diff options
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.core')
879 files changed, 0 insertions, 280204 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.core/.classpath b/plugins/org.eclipse.jst.j2ee.core/.classpath deleted file mode 100644 index dcc933ecb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/.classpath +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="mofj2ee/"/> - <classpathentry kind="src" path="webservices/"/> - <classpathentry kind="src" path="commonArchive/"/> - <classpathentry kind="src" path="j2ee-validation/"/> - <classpathentry kind="src" path="j2eeCorePlugin/"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/plugins/org.eclipse.jst.j2ee.core/.cvsignore b/plugins/org.eclipse.jst.j2ee.core/.cvsignore deleted file mode 100644 index b39f8f47b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/.cvsignore +++ /dev/null @@ -1,7 +0,0 @@ -bin -temp.folder -build.xml -runtime -@dot -src.zip -javaCompiler...args diff --git a/plugins/org.eclipse.jst.j2ee.core/.project b/plugins/org.eclipse.jst.j2ee.core/.project deleted file mode 100644 index fc4f457ee..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/.project +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.jst.j2ee.core</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> diff --git a/plugins/org.eclipse.jst.j2ee.core/META-INF/MANIFEST.MF b/plugins/org.eclipse.jst.j2ee.core/META-INF/MANIFEST.MF deleted file mode 100644 index eab14f748..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/META-INF/MANIFEST.MF +++ /dev/null @@ -1,81 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: J2EE Core Component -Bundle-SymbolicName: org.eclipse.jst.j2ee.core; singleton:=true -Bundle-Version: 1.1.0.qualifier -Bundle-Activator: org.eclipse.jst.j2ee.core.internal.plugin.J2EECorePlugin -Bundle-Vendor: Eclipse.org -Bundle-Localization: plugin -Export-Package: org.eclipse.jst.j2ee.application, - org.eclipse.jst.j2ee.application.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.application.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.client, - org.eclipse.jst.j2ee.client.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.client.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.common, - org.eclipse.jst.j2ee.common.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.common.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.commonarchivecore.internal;x-internal:=true, - org.eclipse.jst.j2ee.commonarchivecore.internal.exception;x-internal:=true, - org.eclipse.jst.j2ee.commonarchivecore.internal.helpers;x-internal:=true, - org.eclipse.jst.j2ee.commonarchivecore.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.commonarchivecore.internal.strategy;x-internal:=true, - org.eclipse.jst.j2ee.commonarchivecore.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal;x-internal:=true, - org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.core.internal.bindings, - org.eclipse.jst.j2ee.core.internal.plugin;x-internal:=true, - org.eclipse.jst.j2ee.ejb, - org.eclipse.jst.j2ee.ejb.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.ejb.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.internal;x-internal:=true, - org.eclipse.jst.j2ee.internal.common;x-internal:=true, - org.eclipse.jst.j2ee.internal.model.translator.application;x-internal:=true, - org.eclipse.jst.j2ee.internal.model.translator.client;x-internal:=true, - org.eclipse.jst.j2ee.internal.model.translator.common;x-internal:=true, - org.eclipse.jst.j2ee.internal.model.translator.connector;x-internal:=true, - org.eclipse.jst.j2ee.internal.model.translator.ejb;x-internal:=true, - org.eclipse.jst.j2ee.internal.model.translator.webapplication;x-internal:=true, - org.eclipse.jst.j2ee.internal.model.translator.webservices;x-internal:=true, - org.eclipse.jst.j2ee.internal.xml;x-internal:=true, - org.eclipse.jst.j2ee.jca, - org.eclipse.jst.j2ee.jca.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.jca.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.jsp, - org.eclipse.jst.j2ee.jsp.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.jsp.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.model.internal.validation;x-internal:=true, - org.eclipse.jst.j2ee.taglib.internal;x-internal:=true, - org.eclipse.jst.j2ee.taglib.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.taglib.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.webapplication, - org.eclipse.jst.j2ee.webapplication.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.webapplication.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.webservice.internal;x-internal:=true, - org.eclipse.jst.j2ee.webservice.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.webservice.internal.wsdd;x-internal:=true, - org.eclipse.jst.j2ee.webservice.jaxrpcmap, - org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.webservice.wsclient, - org.eclipse.jst.j2ee.webservice.wsclient.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.webservice.wsclient.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.webservice.wscommon, - org.eclipse.jst.j2ee.webservice.wscommon.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.webservice.wscommon.internal.util;x-internal:=true, - org.eclipse.jst.j2ee.webservice.wsdd, - org.eclipse.jst.j2ee.webservice.wsdd.internal.impl;x-internal:=true, - org.eclipse.jst.j2ee.webservice.wsdd.internal.util;x-internal:=true -Require-Bundle: org.eclipse.jem;bundle-version="[1.2.0,1.3.0)", - org.eclipse.emf.common;bundle-version="[2.2.0,2.3.0)", - org.eclipse.wst.common.frameworks;bundle-version="[1.1.0,1.2.0)", - org.eclipse.emf.ecore.xmi;bundle-version="[2.2.0,2.3.0)", - org.eclipse.wst.common.emf;bundle-version="[1.1.0,1.2.0)", - org.eclipse.core.runtime;bundle-version="[3.2.0,3.3.0)", - org.eclipse.wst.validation;bundle-version="[1.1.0,1.2.0)", - org.eclipse.jem.util;bundle-version="[1.2.0,1.3.0)", - com.ibm.icu;bundle-version="[3.4.4,3.5.0)", - org.eclipse.core.resources;bundle-version="[3.2.0,3.3.0)", - org.eclipse.wst.xml.core;bundle-version="[1.1.0,1.2.0)" -Eclipse-LazyStart: true diff --git a/plugins/org.eclipse.jst.j2ee.core/about.html b/plugins/org.eclipse.jst.j2ee.core/about.html deleted file mode 100644 index 4ec598958..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/about.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> -<HTML> - -<head> -<title>About</title> -<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> -</head> - -<BODY lang="EN-US"> - -<H3>About This Content</H3> - -<P>May 2, 2006</P> - -<H3>License</H3> - -<P>The Eclipse Foundation makes available all content in this plug-in -("Content"). Unless otherwise indicated below, the Content is provided to you -under the terms and conditions of the Eclipse Public License Version 1.0 -("EPL"). A copy of the EPL is available at -<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>. -For purposes of the EPL, "Program" will mean the Content.</P> - -<P>If you did not receive this Content directly from the Eclipse Foundation, the -Content is being redistributed by another party ("Redistributor") and different -terms and conditions may apply to your use of any object code in the Content. -Check the Redistributor’s license that was provided with the Content. If no such -license exists, contact the Redistributor. Unless otherwise indicated below, the -terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at -<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P> - -</BODY> -</HTML> diff --git a/plugins/org.eclipse.jst.j2ee.core/build.properties b/plugins/org.eclipse.jst.j2ee.core/build.properties deleted file mode 100644 index f1ce0a8e6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/build.properties +++ /dev/null @@ -1,26 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2005 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: -# IBM Corporation - initial API and implementation -############################################################################### -bin.includes = plugin.xml,\ - plugin.properties,\ - META-INF/,\ - about.html,\ - .,\ - schema/ -src.includes = rose/,\ - component.xml,\ - model/ -jars.compile.order = . -output.. = bin/ -source.. = mofj2ee/,\ - webservices/,\ - commonArchive/,\ - j2eeCorePlugin/,\ - j2ee-validation/ diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/commonarchive.properties b/plugins/org.eclipse.jst.j2ee.core/commonArchive/commonarchive.properties deleted file mode 100644 index f50f5490a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/commonarchive.properties +++ /dev/null @@ -1,94 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2005 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: -# IBM Corporation - initial API and implementation -############################################################################### -subclass_responsibilty_EXC_=IWAE0001E {0} must be implemented in subclass -key_class_reflection_ERROR_=IWAE0002E Unable to reflect the class "{0}" in order to compare the primary key field "{1}" from entity "{2}" -key_field_reflection_ERROR_=IWAE0003E Unable to reflect the type of the primary key field "{0}" from entity "{1}" -removing_key_field_INFO_=IWAE0004I Removing invalid prim-key-field "{0}" from entity "{1}" -repair_usage_ERROR_=IWAE0005E RepairArchiveCommand usage: cannot write to destinationPath: {0} -invalid_archive_EXC_=IWAE0006E Archive is not a valid {0} because the deployment descriptor can not be found (case sensitive): {1} -load_resource_EXC_=IWAE0007E Could not load resource "{0}" in archive "{1}" -nested_jar_EXC_=IWAE0008E An error occurred reading {0} from {1} -make_temp_dir_EXC_=IWAE0009E Unable to make temp directory: {0} -invalid_classpath_WARN_=IWAE0010W Classpath element "{0}" is not a directory or a Zip file -invalid_cp_file_WARN_=IWAE0011W Classpath element "{0}" does not point to a local file -io_ex_loading_EXC_=IWAE0012E An IO exception occurred loading {0} -tx_bean_mgd_WARN_=IWAE0013W EJB 1.0 Import: Not mapping TX_BEAN_MANAGED control descriptor for {0} -error_saving_EXC_=IWAE0014E Error saving {0} -io_ex_manifest_EXC_=IWAE0015E An IOException occurred reading the manifest in archive: {0} -io_ex_reopen_EXC_=IWAE0016E IOException occurred while reopening {0} -unable_replace_EXC_=IWAE0017E Unable to replace original archive: {0} -duplicate_file_EXC_=IWAE0018E The archive named {0} already contains a file named {1} -duplicate_entry_EXC_=IWAE0019E A file or resource with uri {0} already exists in the archive named {1} -file_exist_as_dir_EXC_=IWAE0020E A file named {0} exists and is a directory -uncontained_module_EXC_=IWAE0021E Module {0} is not contained by an EAR file -dd_in_ear_load_EXC_=IWAE0022E Exception occurred loading deployment descriptor for module "{0}" in EAR file "{1}" -nested_open_fail_EXC_=IWAE0023E Unable to open module file "{0}" in EAR file "{1}" -duplicate_module_EXC_=IWAE0024E The deployment descriptor for the EAR file "{0}" already contains a module having uri "{1}" -no_sec_role_EXC_=IWAE0025E {0}: EAR File deployment descriptor does not contain a security role named {1} -dup_sec_role_EXC_=IWAE0026E {0}: EAR File deployment descriptor already contains a security role named {1} -dup_sec_role_module_EXC_=IWAE0027E Deployment descriptor for {0} already contains a security role named {1} -dup_resource_EXC_=IWAE0028E Resource named "{0}" already exists in archive "{1}" -error_saving_EXC_=IWAE0030E Error saving {0} -add_copy_class_dir_EXC_=IWAE0031E The method "addCopyClass" is not supported for directories. URI: {0} -add_copy_lib_dir_EXC_=IWAE0032E The method "addCopyLib" is not supported for directories. URI: {0} -list_components_war_EXC_=IWAE0033E Exception occurred listing components in WAR file: {0} -open_nested_EXC_=IWAE0034E Could not open the nested archive "{0}" in "{1}" -make_temp_file_WARN_=IWAE0035W Warning: Unable to create temp file for {0}. This will impact performance. -file_not_found_EXC_=IWAE0036E URI Name: {0}; File name: {1} -could_not_open_EXC_=IWAE0037E Could not open {0} -could_not_find_dir_EXC_=IWAE0038E Unable to open directory {0} -not_a_dir_EXC_=IWAE0039E Unable to open directory because file is not a directory: {0} -inferred_dds_EXC_=IWAE0040E The EJB JAR file "{0}" was inferred to be of version 1.0 because the manifest does not declare enterprise beans but serialized deployment descriptors exist in the JAR. -filename_exception_EXC_=IWAE0041E Filename: {0}; Exception: {1} -no_dds_10_EXC_=IWAE0042E No deployment descriptors in EJB 1.0 JAR file: {0} -manifest_dd_load_EXC_=IWAE0043E The JAR manifest declares an enterprise bean for which the deployment descriptor file can not be loaded: {0} -manifest_dd_find_EXC_=IWAE0044E The JAR manifest declares an enterprise bean for which the deployment descriptor file can not be found: {0} -io_ex_reading_dd_EXC_=IWAE0045E IO Exception occurred reading {0} -ser_not_dd_EXC_=IWAE0046E The serialized object in file "{0}" is not a an instance of javax.ejb.deployment.DeploymentDescriptor -reading_dd_EXC_=IWAE0047E Exception occurred reading {0} -missing_class_EXC_=IWAE0048E Could not deserialize {0} because a required class could not be found. Exception: {1} -Converted=Converted -Stack_trace_of_nested_exce_EXC_=IWAE0049E Stack trace of nested exception: -IOException_occurred_while_EXC_=IWAE0050E IOException occurred while copying manifest -Extract_destination_is_the_EXC_=IWAE0051E Extract destination is the same path as source file -Parameter_should_not_be_nu_EXC_=IWAE0052E Parameter should not be null -Archive_is_not_a_valid_EJB_EXC_=IWAE0055E Archive is not a valid EJB JAR file (1.0) because no serialized deployment descriptors can be found, either in the manifest or in entries with a ".ser" extension -_The_following_files_could_EXC_=IWAE0056E The following files could not be loaded: -FixPrimKeyCommand_failed___EXC_=IWAE0057E FixPrimKeyCommand failed - exception stack trace: -FixPrimKeyCommand_usage___=FixPrimKeyCommand usage: <sourceJarFilePath> [destinationPath] -FixPrimKeyCommand_usage__s_EXC_=IWAE0058E FixPrimKeyCommand usage: sourceJarFilePath must point to a valid EJB JAR file or directory of an inflated EJB JAR file -Repair_command_failed___ex_EXC_=IWAE0059E Repair command failed - exception stack trace: -Repairs_all_entries_in_the=Repairs all entries in the META-INF and/or WEB-INF directories to be the correct case -RepairArchiveCommand_usage=RepairArchiveCommand usage: <sourceJarFilePath> <destinationPath> -RepairArchiveCommand_usage1_ERROR_=IWAE0060E RepairArchiveCommand usage: sourceJarFilePath must point to a valid archive or directory of an inflated archive -Application_Client_Jar_Fil=Application Client JAR File -EAR_File=EAR File -EJB_Jar_File=EJB JAR File -RAR_File=RAR File -WAR_File=WAR File -Error_occurred_iterating_f_EXC_=IWAE0061E Error occurred iterating files -End_of_list_reached_EXC_=IWAE0062E Reached end of list -Internal_Error__Iterator_o_EXC_=IWAE0063E Internal Error: Iterator out of sync with zip entries -Error_iterating_the_archiv_EXC_=IWAE0064E Error iterating the archive -Absolute_path_unknown_EXC_=IWAE0065E Absolute path unknown -Original_archive_is_not_a__EXC_=IWAE0066E Original archive is not a directory -Null_uri_EXC_=IWAE0067E Null uri -Module_file=Module file -A_WAR_file=WAR file -An_EJB_JAR_file=EJB JAR file -An_Application_Client_JAR_file=Application Client JAR file -A_RAR_file=RAR file -A_Application_file=Application file -A_file_does_not_exist_for_module=A file does not exist for module element having uri: {0} -File_not_correct_type=The file {0} in EAR file {1} is not the correct type based on the application deployment descriptor. Expected type: {2}"; -Module_not_in_EAR=Module is not in an EAR: {0} -Module_file_does_not_exist_2=Module file does not exist for Module ref. Module = {0} -FileImpl__Error_0=Recursive containment not allowed for diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ApplicationClientFile.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ApplicationClientFile.java deleted file mode 100644 index 73b84984b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ApplicationClientFile.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException; - - -/** - * @generated - */ -public interface ApplicationClientFile extends ModuleFile { - - /** - * @throws DeploymentDescriptorLoadException - - * is a runtime exception, because we can't override the signature of the generated - * methods - */ - - - - /** - * @generated This field/method will be replaced during code generation - * @return The DeploymentDescriptor reference - */ - ApplicationClient getDeploymentDescriptor() throws DeploymentDescriptorLoadException; - - /** - * @generated This field/method will be replaced during code generation - * @param l - * The new value of the DeploymentDescriptor reference - */ - void setDeploymentDescriptor(ApplicationClient value); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/Archive.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/Archive.java deleted file mode 100644 index df8bd31ce..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/Archive.java +++ /dev/null @@ -1,469 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.util.Collection; -import java.util.List; -import java.util.Set; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ReopenException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIterator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.RuntimeClasspathEntry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilter; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; - - -/** - * @generated - */ -public interface Archive extends Container{ - - public static final int EXPAND_NONE = 0; - public static final int EXPAND_WAR_FILES = 1 << 1; - public static final int EXPAND_EAR_FILES = 1 << 2; - public static final int EXPAND_EJBJAR_FILES = 1 << 3; - public static final int EXPAND_APPCLIENT_FILES = 1 << 4; - public static final int EXPAND_ARCHIVES = 1 << 5; - public static final int EXPAND_RAR_FILES = 1 << 6; - public static final int EXPAND_ALL = (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 6); - - public Archive addCopy(Archive anArchive) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; - - public File addCopy(File aFile) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; - - /** - * Get a flattened list from the directory, then addCopy the list - * - * @throws com.ibm.etools.archive.exception.DuplicateObjectException - * if a file with a uri that equals one of the nested files in the directory exists - * - * @return java.util.List the copied files that were added to the archive - */ - public List addCopy(ReadOnlyDirectory dir) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; - - public List addCopyFiles(List listOfFiles) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; - - public void addOrReplaceMofResource(Resource aResource); - - /** - * @deprecated Use {@link #getDependentOpenArchives()} - * - * If any opened archive contains files that have this archive as its loading container, return - * false; otherwise return true. This method supports the following scenario: open jar A. create - * jar B. Copy files from A to B. Attempt to close jar A before saving jar B. Then attempt to - * save B, and the save fails because A is closed. This method allows client code to test for - * dependent open archives before saving the source archive. If this method returns false, the - * solution is to either close or save B before closing A. - */ - public boolean canClose(); - - /** - * Closes the load strategy for this archive and closes all contained archives; WARNING: If - * files have been copied from this archive to another archive, then the destination archive - * should be saved or closed before this archive can be safely closed; to test if this archive - * can safely close invoke {@link #canClose()} - */ - public void close(); - - /** - * Save this archive as an expanded directory where the flags is the result of bitwise or of the - * specified types to be expanded; example: - * <code>anEarFile.saveAsDirectory(anEarFile.EXPAND_WAR_FILES | anEarFile.EXPAND_EJBJARFILES)</code>; - * - * If this archive was loaded from the same uri as it is being extracted to, the orignal will be - * deleted and replaced with the directory - * - * @throws SaveFailureException - * if an exception occurs while saving - * - * @throws ReopenException - * if an exception occurs while re-syncing the archive to the newly saved - * destination - */ - public void extract(int expansionFlags) throws SaveFailureException, ReopenException; - - /** - * For performance, save the archive without reopening; Further operations on this instance - * without first calling {@link #reopen}will yield unexpected results. - * - * @see #extract(int) - */ - public void extractNoReopen(int expansionFlags) throws SaveFailureException; - - /** - * Save this archive as a directory using the specified uri - * - * The archive will not be renamed - * - * @throws SaveFailureException - * if an exception occurs while saving - * - * @see #extract(int) - */ - public void extractTo(String uri, int expansionFlags) throws SaveFailureException; - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return java.lang.ClassLoader - */ - public java.lang.ClassLoader getArchiveClassLoader(); - - /** - * Return a list of files in the ARchive that start with the prefix - */ - public java.util.List filterFilesByPrefix(String prefix); - - /** - * Return a list of files in the Archive excluding any file that starts with one of the prefixes - */ - public java.util.List filterFilesWithoutPrefix(String[] prefixes); - - /** - * Returns a filtered list of archive files; adds will not be reflected; use - * - * @link Archive#add(File) - */ - public List getArchiveFiles(); - - public ResourceSet getResourceSet(); - - /** - * Return a list of all root level (non-nested) opened archives containing files that have this - * archive as its loading container; the set will be empty if no such opened archive exists. - * This method supports the following scenario: open jar A. create jar B. Copy files from A to - * B. Attempt to close jar A before saving jar B. Then attempt to save B, and the save fails - * because A is closed. This method allows client code to test for dependent open archives - * before saving the source archive. If the return value is not empty, the solution is to either - * close or save B before closing A. - */ - public Set getDependentOpenArchives(); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return java.lang.String - */ - public java.lang.String getExtraClasspath(); - - /** - * Used internally by the framework, specifically as an optimization when saving/exploding - * archives with nested archives - */ - public FileIterator getFilesForSave() throws IOException; - - public Collection getLoadedMofResources(); - - public ArchiveManifest getManifest(); - - public Resource getMofResource(String uri) throws FileNotFoundException, ResourceLoadException; - - public org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions getOptions(); - - /** - * @see LoadStrategy#getResourceInputStream(String) - */ - public InputStream getResourceInputStream(String uri) throws IOException; - - /** - * Used for websphere runtime where archives are on disk (not nested in jars) - * - * @return list of absolute paths that represents this archive only, and in the case of - * WARFiles, the nested loadable contents. - */ - public RuntimeClasspathEntry[] getLocalRuntimeClassPath(); - - /** - * Used for websphere runtime where archives are on disk (not nested in jars) to get the - * recursive behavior, the Archive must belong to an EAR file - * - * @return list of absolute paths that represents this archive, all it's prereqs, recursive. - */ - public RuntimeClasspathEntry[] getFullRuntimeClassPath(); - - /** - * Used for websphere runtime where archives are on disk (not nested in jars) to get the - * recursive behavior, the Archive must belong to an EAR file - * - * @return list of absolute paths that represents the dependencies of this Archive, all it's - * prereqs, recursive. - */ - public RuntimeClasspathEntry[] getDependencyClassPath(); - - /** - * Return the absolute path of the root from which meta resources get loaded - */ - public String getResourcesPath() throws FileNotFoundException; - - /** - * Return the absolute path of the root from which classes and properties are loaded - */ - public String getBinariesPath() throws FileNotFoundException; - - /** - * Optional filter for saving a subset of files; filter will be applied for all save and extract - * invokations - */ - public SaveFilter getSaveFilter(); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return com.ibm.etools.archive.SaveStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy getSaveStrategy(); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return java.lang.String - */ - public java.lang.String getXmlEncoding(); - - /** - * Return whether this Archive has - * - * @other on it's classpath, either directly or transitively - * @param Archive - * other - another archive in the same EAR file - */ - public boolean hasClasspathVisibilityTo(Archive other); - - /** - * Internal API; Used for implementation of {@link #hasClasspathVisibilityTo(Archive)} - * - * @param Archive - * other - another archive in the same EAR file - * @param Set - * visited - the set of archives already visited - */ - public boolean hasClasspathVisibilityTo(Archive other, Set visited, EARFile ear); - - /** - * Perform any necessary initialization after the archive has been opened. - */ - public void initializeAfterOpen(); - - /** - * Used internally by the load strategy - */ - public void initializeClassLoader(); - - /** - * An item is considered a duplicate if the archive contains a file or loaded mof resource with - * the uri, or if the uri is equal to the manifest uri - */ - public boolean isDuplicate(String uri); - - /** - * Used as an optimization at copy time - */ - public boolean isManifestSet(); - - public boolean isMofResourceLoaded(String uri); - - /** - * Used internally for dispatch between the archive and the load strategy when building the file - * list; clients should not need to call this method. - */ - public boolean isNestedArchive(String uri); - - /** - * Indicates whether the archive is still opened for read; if not, IOExceptions could be thrown - * on attempts to get input streams on file entries. reopen() will cause this archive and its - * nested archives to rebuild their load strategies - */ - public boolean isOpen(); - - /** - * Create a new mof resource and add it to the resource set of the context of this archive; all - * resources in memory are saved when the archive is saved - * - * @throws DuplicateObjectException - * if a resource already exists in this archive having the uri - */ - public Resource makeMofResource(String uri) throws DuplicateObjectException; - - /** - * Create a new mof resource and add it to the resource set of the context of this archive; all - * resources in memory are saved when the archive is saved - * - * @throws DuplicateObjectException - * if a resource already exists in this archive having the uri - */ - public Resource makeMofResource(String uri, EList extent) throws DuplicateObjectException; - - /** - * Used internally for dispatch between the archive and the load strategy when building the file - * list; clients should not need to call this method. - */ - public Archive openNestedArchive(String uri) throws OpenFailureException; - - /** - * Used internally for dispatch between the archive and the load strategy when building the file - * list; clients should not need to call this method. - */ - public Archive openNestedArchive(LooseArchive loose) throws OpenFailureException; - - /** - * Set the value of the extra class path with no refresh of the class loader - */ - public void primSetExtraClasspath(java.lang.String newExtraClasspath); - - public void remove(File aFile); - - /** - * Used internally for "re-syncing" an archive after save; clients normally should not need this - * method - */ - public void reopen() throws ReopenException; - - /** - * Used internally for reopening nested archives; clients normally should not need this method - */ - public void reopen(Archive parent) throws ReopenException; - - /** - * Save this archive as a jar file with the uri of the archive; - * - * @throws SaveFailureException - * if an exception occurs while saving - * - * @throws ReopenException - * if an exception occurs while re-syncing the archive to the newly saved - * destination - */ - public void save() throws SaveFailureException, ReopenException; - - /** - * Save this archive using the save strategy specified - * - * @throws SaveFailureException - * if an exception occurs while saving - */ - public void save(SaveStrategy aStrategy) throws SaveFailureException; - - /** - * Save this archive as a jar file using uri provided; If the uri is different than the URI of - * this archive, the uri of this archive will change to the new uri (for reopen) - * - * @throws SaveFailureException - * if an exception occurs while saving - * - * @throws ReopenException - * if an exception occurs while re-syncing the archive to the newly saved - * destination - */ - public void saveAs(String uri) throws SaveFailureException, ReopenException; - - /** - * For performance, save the archive without reopening; Further operations on this instance - * without first calling {@link #reopen}will yield unexpected results. - * - * @see #saveAs(String) - */ - public void saveAsNoReopen(String uri) throws SaveFailureException; - - /** - * For performance, save the archive without reopening; Further operations on this instance - * without first calling {@link #reopen}will yield unexpected results. - * - * @see #save() - */ - public void saveNoReopen() throws SaveFailureException; - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newArchiveClassLoader - * java.lang.ClassLoader - */ - public void setArchiveClassLoader(java.lang.ClassLoader newArchiveClassLoader); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newExtraClasspath - * java.lang.String - */ - public void setExtraClasspath(java.lang.String newExtraClasspath); - - public void setManifest(ArchiveManifest newManifest); - - public void setManifest(java.util.jar.Manifest aManifest); - - /** - * Sets the Class-path manifest entry, rebuilds the class loader, and refreshes any reflected - * java classes - */ - public void setManifestClassPathAndRefresh(String classpath); - - public void setOptions(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions newOptions); - - /** - * Optional filter for saving a subset of files; filter will be applied for all save and extract - * invokations - */ - public void setSaveFilter(SaveFilter aFilter); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newSaveStrategy - * com.ibm.etools.archive.SaveStrategy - */ - public void setSaveStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy newSaveStrategy); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newXmlEncoding - * java.lang.String - */ - public void setXmlEncoding(java.lang.String newXmlEncoding); - - /** - * Determine whether java reflection should be set up for this archive - */ - public boolean shouldUseJavaReflection(); - - /** - * Returns the value of the '<em><b>Types</b></em>' attribute list. - * The list contents are of type {@link java.lang.String}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Types</em>' attribute list isn't clear, there really should be - * more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Types</em>' attribute list. - * @see org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage#getArchive_Types() - * @model type="java.lang.String" - * @generated - */ - EList getTypes(); - - boolean isType(String type); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ArchiveTypeDiscriminatorRegistry.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ArchiveTypeDiscriminatorRegistry.java deleted file mode 100644 index d0a763084..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ArchiveTypeDiscriminatorRegistry.java +++ /dev/null @@ -1,102 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; - - - -/** - * @author mdelder - */ -public class ArchiveTypeDiscriminatorRegistry { - - private Collection discriminators = null; - private Collection customTypes = null; - - /* - * Most known types are of length 3. Whenver a new type is added that is not of length 3, - * modifications may be necessary to the 'isKnownArchiveType() method - */ - private static final String[] defaultKnownTypes = new String[]{"ear", "war", "jar", "zip", "far"}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ - - - public static final ArchiveTypeDiscriminatorRegistry INSTANCE = new ArchiveTypeDiscriminatorRegistry(); - - public static void registorDiscriminator(GenericArchiveTypeDiscriminator discriminator) { - INSTANCE.getDiscriminators().add(discriminator); - INSTANCE.addKnownArchiveTypes(discriminator.getCustomFileExtensions()); - } - - public static ArchiveTypeDiscriminatorRegistry getInstance() { - return INSTANCE; - } - - /** - * @return - */ - public Collection getDiscriminators() { - if (discriminators == null) - discriminators = new ArrayList(); - return discriminators; - } - - public void contributeTypes(Archive archive) { - if (discriminators == null) - return; - GenericArchiveTypeDiscriminator discriminator = null; - for (Iterator itr = discriminators.iterator(); itr.hasNext();) { - discriminator = (GenericArchiveTypeDiscriminator) itr.next(); - if (discriminator.discriminate(archive)) - archive.getTypes().add(discriminator.getTypeKey()); - } - } - - public void addKnownArchiveTypes(String[] newTypes) { - if (customTypes == null) { - customTypes = new ArrayList(); - } - for (int i = 0; i < newTypes.length; i++) { - customTypes.add(newTypes[i]); - } - } - - public boolean isKnownArchiveType(String fileURI) { - if (fileURI == null || fileURI.length() == 0) - return false; - - String lowerCaseUri = fileURI.toLowerCase(); - /* - * Ensure that the length of the URI is long enough to contain a .3 style extension - */ - if (lowerCaseUri.length() > 4 && lowerCaseUri.charAt(lowerCaseUri.length() - 4) == '.') { - String ending = lowerCaseUri.substring(lowerCaseUri.length() - 3); - for (int i = 0; i < defaultKnownTypes.length; i++) - if (defaultKnownTypes[i].equals(ending)) - return true; - } - - String customType = null; - if (customTypes != null) { - Iterator customTypesIterator = customTypes.iterator(); - while (customTypesIterator.hasNext()) { - customType = (String) customTypesIterator.next(); - if (fileURI.endsWith(customType)) - return true; - } - } - - return false; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ClientModuleRef.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ClientModuleRef.java deleted file mode 100644 index 9e48b06ec..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ClientModuleRef.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; - - - - -public interface ClientModuleRef extends ModuleRef { - ApplicationClient getApplicationClient() throws ArchiveWrappedException; -} //ClientModuleRef - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonArchiveFactoryRegistry.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonArchiveFactoryRegistry.java deleted file mode 100644 index 153081021..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonArchiveFactoryRegistry.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Aug 7, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl; - - -/** - * @author jlanuti - * - * To change the template for this generated type comment go to Window>Preferences>Java>Code - * Generation>Code and Comments - */ -public class CommonArchiveFactoryRegistry { - - public static CommonArchiveFactoryRegistry INSTANCE = new CommonArchiveFactoryRegistry(); - - protected CommonarchiveFactory commonArchiveFactory = ((CommonarchiveFactoryImpl) CommonarchivePackage.eINSTANCE.getCommonarchiveFactory()).getDelegate(); - - /** - * Constructor - */ - public CommonArchiveFactoryRegistry() { - super(); - } - - public CommonarchiveFactory getCommonArchiveFactory() { - return commonArchiveFactory; - } - - public void setCommonArchiveFactory(CommonarchiveFactory factory) { - commonArchiveFactory = factory; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonArchiveResourceHandler.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonArchiveResourceHandler.java deleted file mode 100644 index 829627066..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonArchiveResourceHandler.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -import org.eclipse.osgi.util.NLS; - -public class CommonArchiveResourceHandler extends NLS { - private static final String BUNDLE_NAME = "commonarchive";//$NON-NLS-1$ - - private CommonArchiveResourceHandler() { - // Do not instantiate - } - - public static String not_a_dir_EXC_; - public static String FileImpl__Error_0; - public static String RepairArchiveCommand_usage1_ERROR_; - public static String file_exist_as_dir_EXC_; - public static String duplicate_entry_EXC_; - public static String ser_not_dd_EXC_; - public static String EAR_File; - public static String RAR_File; - public static String filename_exception_EXC_; - public static String An_Application_Client_JAR_file; - public static String no_sec_role_EXC_; - public static String Original_archive_is_not_a__EXC_; - public static String duplicate_module_EXC_; - public static String reading_dd_EXC_; - public static String Module_file_does_not_exist_2; - public static String A_WAR_file; - public static String IOException_occurred_while_EXC_; - public static String io_ex_manifest_EXC_; - public static String FixPrimKeyCommand_usage__s_EXC_; - public static String FixPrimKeyCommand_usage___; - public static String Parameter_should_not_be_nu_EXC_; - public static String dd_in_ear_load_EXC_; - public static String no_dds_10_EXC_; - public static String list_components_war_EXC_; - public static String An_EJB_JAR_file; - public static String open_nested_EXC_; - public static String Repair_command_failed___ex_EXC_; - public static String nested_open_fail_EXC_; - public static String Error_iterating_the_archiv_EXC_; - public static String make_temp_file_WARN_; - public static String missing_class_EXC_; - public static String repair_usage_ERROR_; - public static String Application_Client_Jar_Fil; - public static String WAR_File; - public static String could_not_find_dir_EXC_; - public static String Converted; - public static String Absolute_path_unknown_EXC_; - public static String add_copy_lib_dir_EXC_; - public static String removing_key_field_INFO_; - public static String Module_file; - public static String Stack_trace_of_nested_exce_EXC_; - public static String tx_bean_mgd_WARN_; - public static String manifest_dd_load_EXC_; - public static String key_class_reflection_ERROR_; - public static String uncontained_module_EXC_; - public static String file_not_found_EXC_; - public static String io_ex_reading_dd_EXC_; - public static String invalid_cp_file_WARN_; - public static String invalid_archive_EXC_; - public static String load_resource_EXC_; - public static String invalid_classpath_WARN_; - public static String Extract_destination_is_the_EXC_; - public static String subclass_responsibilty_EXC_; - public static String Module_not_in_EAR; - public static String File_not_correct_type; - public static String io_ex_loading_EXC_; - public static String could_not_open_EXC_; - public static String manifest_dd_find_EXC_; - public static String nested_jar_EXC_; - public static String dup_resource_EXC_; - public static String Repairs_all_entries_in_the; - public static String add_copy_class_dir_EXC_; - public static String io_ex_reopen_EXC_; - public static String Error_occurred_iterating_f_EXC_; - public static String dup_sec_role_module_EXC_; - public static String duplicate_file_EXC_; - public static String inferred_dds_EXC_; - public static String unable_replace_EXC_; - public static String EJB_Jar_File; - public static String A_file_does_not_exist_for_module; - public static String A_RAR_file; - public static String dup_sec_role_EXC_; - public static String _The_following_files_could_EXC_; - public static String key_field_reflection_ERROR_; - public static String End_of_list_reached_EXC_; - public static String error_saving_EXC_; - public static String Archive_is_not_a_valid_EJB_EXC_; - public static String make_temp_dir_EXC_; - public static String RepairArchiveCommand_usage; - public static String FixPrimKeyCommand_failed___EXC_; - public static String A_Application_file; - public static String Null_uri_EXC_; - public static String Internal_Error__Iterator_o_EXC_; - - static { - NLS.initializeMessages(BUNDLE_NAME, CommonArchiveResourceHandler.class); - } - - public static String getString(String key, Object[] args) { - return NLS.bind(key, args); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonarchiveFactory.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonarchiveFactory.java deleted file mode 100644 index b3a0046c4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonarchiveFactory.java +++ /dev/null @@ -1,445 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.Set; - -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; - - -/** - * @generated - */ -public interface CommonarchiveFactory extends EFactory{ - - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - CommonarchiveFactory eINSTANCE = new org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl(); - - /** - * Tell the factory that an archive has been opened; the factory maintains a weak set of all the - * open archives to determine if another archive can be closed. - */ - public void archiveClosed(Archive aClosedArchive); - - /** - * Tell the factory that an archive has been opened; the factory maintains a weak set of all the - * open archives to determine if another archive can be closed. - */ - public void archiveOpened(Archive anOpenArchive); - - /** - * @deprecated Use {@link #getOpenArchivesDependingOn(Archive)} - * - * If any opened archive contains files that have the parameter as its loading container, return - * false; otherwise return true. This method supports the following scenario: open jar A. create - * jar B. Copy files from A to B. Attempt to close jar A before saving jar B. Then attempt to - * save B, and the save fails because A is closed. This method allows client code to test for - * dependent open archives before saving the source archive. If this method returns false, the - * solution is to either close or save B before closing A. - */ - public boolean canClose(Archive anArchive); - - /** - * Close any open archives and delete the temp files associated with nested archives. Due to - * limitations in the deleteOnExit() method of file, in 1.2.2 there is no way to ensure these - * files get deleted. Client code should use good practice by calling {@link Archive#close}when - * finished with an Archive instance, rather than just discard an instance with open file - * handles and wait for it to be gc'd. Beyond that, program code compiled for 1.3 can (and - * should) implement the following shutdown hook: <code> - * Runtime.getRuntime().addShutdownHook(new Thread() { - public void run() { - ((CommonarchivePackage)EPackage.Registry.INSTANCE.getEPackage(CommonarchivePackage.eNS_URI)).getCommonarchiveFactory().closeOpenArchives(); - } - });</code> - */ - public void closeOpenArchives(); - - public Archive copy(Archive anArchive); - - public ModuleFile copy(ModuleFile aModuleFile); - - /** - * Creates a new archive for editing, and initializes it appropriately (adds an empty deployment - * descriptor) - */ - public ApplicationClientFile createApplicationClientFileInitialized(String uri); - - /** - * Creates a new archive for editing, and initializes it appropriately - */ - public Archive createArchiveInitialized(String uri); - - /** - * Used internally; clients usually should not need this method - */ - public LoadStrategy createChildLoadStrategy(String uri, LoadStrategy parent) throws java.io.IOException, java.io.FileNotFoundException; - - /** - * Creates a new archive for editing, and initializes it appropriately (adds an empty deployment - * descriptor) - */ - public EARFile createEARFileInitialized(String uri); - - /** - * Creates a new archive for editing, and initializes it appropriately (adds an empty deployment - * descriptor) - */ - public EJBJarFile createEJBJarFileInitialized(String uri); - - /** - * Create an initialized archive based on the given URI and options - */ - public Archive createArchiveInitialized(ArchiveOptions options, java.lang.String uri); - - /** - * Create an initialized EAR based on the given URI and options - */ - public EARFile createEARFileInitialized(ArchiveOptions options, java.lang.String uri); - - /** - * Create an initialized EJB based on the given URI and options - */ - public EJBJarFile createEJBJarFileInitialized(ArchiveOptions options, java.lang.String uri); - - /** - * Initialize archive based on the options - */ - public void initializeNewApplicationClientFile(ApplicationClientFile anArchive, String uri, ArchiveOptions options); - - /** - * Initialize archive based on the options - */ - public void initializeNewArchive(Archive anArchive, String uri, ArchiveOptions options); - - /** - * Initialize archive based on the options - */ - public void initializeNewEARFile(EARFile anArchive, String uri, ArchiveOptions options); - - /** - * Initialized archive based on the options - */ - public void initializeNewEJBJarFile(EJBJarFile anArchive, String uri, ArchiveOptions options); - - /** - * Initialized archive based on the options - */ - public void initializeNewModuleFile(ModuleFile anArchive, String uri, ArchiveOptions options); - - /** - * Initialized archive based on the options - */ - public void initializeNewRARFile(RARFile anArchive, String uri, ArchiveOptions options); - - /** - * Initialized archive based on the options - */ - public void initializeNewWARFile(WARFile anArchive, String uri, ArchiveOptions options); - - /** - * Returns a NullLoadStrategyImpl; used for new archives - */ - LoadStrategy createEmptyLoadStrategy(); - - /** - * Helper method to dynamically build a load strategy from the file system. Determines whether - * the uri points to a jar file or directory and returns the appropriate strategy - */ - public LoadStrategy createLoadStrategy(String uri) throws FileNotFoundException, IOException; - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public RARFile createRARFileInitialized(java.lang.String uri); - - /** - * Creates a new archive for editing, and initializes it appropriately (adds an empty deployment - * descriptor) - */ - public WARFile createWARFileInitialized(String uri); - - /** - * Helper method to introspect an archive and get it's class path entries before fully opening - * the archive; needed because we may need extra classpath info to be able to open the 1.0 file - * and deserialize its deployment descriptor - * - * @return a tokenized array of class path components - */ - public String[] getManifestClassPathValues(String uri) throws OpenFailureException; - - /** - * Return a list of all root level (non-nested) opened archives containing files that have the - * parameter as its loading container; the set will be empty if no such opened archive exists. - * This method supports the following scenario: open jar A. create jar B. Copy files from A to - * B. Attempt to close jar A before saving jar B. Then attempt to save B, and the save fails - * because A is closed. This method allows client code to test for dependent open archives - * before saving the source archive. If the return value is not empty, the solution is to either - * close or save B before closing A. - */ - public Set getOpenArchivesDependingOn(Archive anArchive); - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public ApplicationClientFile openApplicationClientFile(ArchiveOptions options, String uri) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public ApplicationClientFile openApplicationClientFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException; - - public ApplicationClientFile openApplicationClientFile(String uri) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public Archive openArchive(ArchiveOptions options, String uri) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public Archive openArchive(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException; - - /** - * open the archive by the passed uri - * - * @return the appropriate kind of archive - */ - public Archive openArchive(String uri) throws OpenFailureException; - - /** - * open the archive by the passed uri, and use the extraClassPath for java reflection, in - * addition to the manifest class-path; mostly used for ejb 1.0 jar files to be converted - * - * @return the appropriate kind of archive - */ - public Archive openArchive(String uri, String extraClassPath) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public EARFile openEARFile(ArchiveOptions options, String uri) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public EARFile openEARFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException; - - public EARFile openEARFile(String uri) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public EJBJarFile openEJB11JarFile(ArchiveOptions options, String uri) throws OpenFailureException; - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EJBJarFile openEJB11JarFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException; - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EJBJarFile openEJB11JarFile(String uri) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public EJBJarFile openEJBJarFile(ArchiveOptions options, String uri) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public EJBJarFile openEJBJarFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public EJBJarFile openEJBJarFile(LoadStrategy aLoadStrategy, String uri, String extraClassPath) throws OpenFailureException; - - public EJBJarFile openEJBJarFile(String uri) throws OpenFailureException; - - public EJBJarFile openEJBJarFile(String uri, String extraClassPath) throws OpenFailureException; - - /** - * Used internally for openning an Archive in an Archive - */ - public Archive openNestedArchive(String uri, Archive parent) throws OpenFailureException; - - /** - * Used internally for openning an Archive in an Archive - */ - public Archive openNestedArchive(LooseArchive loose, Archive parent) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public RARFile openRARFile(ArchiveOptions options, java.lang.String uri) throws OpenFailureException; - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public RARFile openRARFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException; - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public RARFile openRARFile(String uri) throws OpenFailureException; - - public ReadOnlyDirectory openReadOnlyDirectory(String uri) throws java.io.IOException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public WARFile openWARFile(ArchiveOptions options, String uri) throws OpenFailureException; - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public WARFile openWARFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException; - - public WARFile openWARFile(String uri) throws OpenFailureException; - - /** - * Open the archive by the passed parameter, without attempting to determine what kind of - * archive it is - * - * @return an instance of Archive, but not a subclass - */ - Archive primOpenArchive(String uri) throws OpenFailureException; - - Archive primOpenArchive(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException; - - Archive primOpenArchive(ArchiveOptions options, String uri) throws OpenFailureException; - - /** - * @generated This field/method will be replaced during code generation - * @return WARFile value - */ - WARFile createWARFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBJarFile value - */ - EJBJarFile createEJBJarFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return ApplicationClientFile value - */ - ApplicationClientFile createApplicationClientFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return EARFile value - */ - EARFile createEARFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return RARFile value - */ - RARFile createRARFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return Archive value - */ - Archive createArchive(); - - /** - * @generated This field/method will be replaced during code generation - * @return File value - */ - File createFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return ReadOnlyDirectory value - */ - ReadOnlyDirectory createReadOnlyDirectory(); - - /** - * @generated This field/method will be replaced during code generation. - */ - CommonarchivePackage getCommonarchivePackage(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBModuleRef value - */ - EJBModuleRef createEJBModuleRef(); - - /** - * Convienince method for wrapping a standalone EJB JAR file - */ - EJBModuleRef createEJBModuleRef(EJBJarFile ejbJarFile); - - - /** - * @generated This field/method will be replaced during code generation - * @return WebModuleRef value - */ - WebModuleRef createWebModuleRef(); - - /** - * Convienince method for wrapping a standalone WAR file - */ - WebModuleRef createWebModuleRef(WARFile warFile); - - /** - * @generated This field/method will be replaced during code generation - * @return ClientModuleRef value - */ - ClientModuleRef createClientModuleRef(); - - /** - * Convienince method for wrapping a standalone Application Client JAR file - */ - ClientModuleRef createClientModuleRef(ApplicationClientFile clientFile); - - /** - * @generated This field/method will be replaced during code generation - * @return ConnectorModuleRef value - */ - ConnectorModuleRef createConnectorModuleRef(); - - /** - * Convienince method for wrapping a standalone RAR file - */ - ConnectorModuleRef createConnectorModuleRef(RARFile rarFile); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonarchivePackage.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonarchivePackage.java deleted file mode 100644 index 78531c273..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/CommonarchivePackage.java +++ /dev/null @@ -1,1018 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - - -/** - * @lastgen interface CommonarchivePackage extends EPackage {} - */ -public interface CommonarchivePackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - String eNAME = "commonarchivecore"; //$NON-NLS-1$ - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER = 7; - /** - * @generated This field/method will be replaced during code generation. - */ - int WAR_FILE = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_FILE = 6; - /** - * @generated This field/method will be replaced during code generation. - */ - int EAR_FILE = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_REF = 10; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_MODULE_REF = 11; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_MODULE_REF = 12; - /** - * @generated This field/method will be replaced during code generation. - */ - int CLIENT_MODULE_REF = 13; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR_MODULE_REF = 14; - /** - * @generated This field/method will be replaced during code generation. - */ - - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT_FILE = 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR_FILE = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int RAR_FILE = 9; - /** - * @generated This field/method will be replaced during code generation. - */ - int ARCHIVE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILE = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILE__URI = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILE__LAST_MODIFIED = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILE__SIZE = 2; - /** - * The feature id for the '<em><b>Directory Entry</b></em>' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int FILE__DIRECTORY_ENTRY = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int FILE__ORIGINAL_URI = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILE__LOADING_CONTAINER = 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILE__CONTAINER = 6; - - /** - * The number of structural features of the the '<em>File</em>' class. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int FILE_FEATURE_COUNT = 7; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER__URI = FILE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER__LAST_MODIFIED = FILE__LAST_MODIFIED; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER__SIZE = FILE__SIZE; - /** - * The feature id for the '<em><b>Directory Entry</b></em>' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTAINER__DIRECTORY_ENTRY = FILE__DIRECTORY_ENTRY; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER__ORIGINAL_URI = FILE__ORIGINAL_URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER__LOADING_CONTAINER = FILE__LOADING_CONTAINER; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER__CONTAINER = FILE__CONTAINER; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER__FILES = FILE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Container</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int CONTAINER_FEATURE_COUNT = FILE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ARCHIVE__URI = CONTAINER__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int ARCHIVE__LAST_MODIFIED = CONTAINER__LAST_MODIFIED; - /** - * @generated This field/method will be replaced during code generation. - */ - int ARCHIVE__SIZE = CONTAINER__SIZE; - /** - * The feature id for the '<em><b>Directory Entry</b></em>' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int ARCHIVE__DIRECTORY_ENTRY = CONTAINER__DIRECTORY_ENTRY; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ARCHIVE__ORIGINAL_URI = CONTAINER__ORIGINAL_URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int ARCHIVE__LOADING_CONTAINER = CONTAINER__LOADING_CONTAINER; - /** - * @generated This field/method will be replaced during code generation. - */ - int ARCHIVE__CONTAINER = CONTAINER__CONTAINER; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ARCHIVE__FILES = CONTAINER__FILES; - /** - * The feature id for the '<em><b>Types</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ARCHIVE__TYPES = CONTAINER_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>Archive</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int ARCHIVE_FEATURE_COUNT = CONTAINER_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_FILE__URI = ARCHIVE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_FILE__LAST_MODIFIED = ARCHIVE__LAST_MODIFIED; - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_FILE__SIZE = ARCHIVE__SIZE; - /** - * The feature id for the '<em><b>Directory Entry</b></em>' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE_FILE__DIRECTORY_ENTRY = ARCHIVE__DIRECTORY_ENTRY; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_FILE__ORIGINAL_URI = ARCHIVE__ORIGINAL_URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_FILE__LOADING_CONTAINER = ARCHIVE__LOADING_CONTAINER; - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_FILE__CONTAINER = ARCHIVE__CONTAINER; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_FILE__FILES = ARCHIVE__FILES; - /** - * The feature id for the '<em><b>Types</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE_FILE__TYPES = ARCHIVE__TYPES; - - /** - * The number of structural features of the the '<em>Module File</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MODULE_FILE_FEATURE_COUNT = ARCHIVE_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR_FILE__URI = MODULE_FILE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR_FILE__LAST_MODIFIED = MODULE_FILE__LAST_MODIFIED; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR_FILE__SIZE = MODULE_FILE__SIZE; - /** - * The feature id for the '<em><b>Directory Entry</b></em>' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_JAR_FILE__DIRECTORY_ENTRY = MODULE_FILE__DIRECTORY_ENTRY; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR_FILE__ORIGINAL_URI = MODULE_FILE__ORIGINAL_URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR_FILE__LOADING_CONTAINER = MODULE_FILE__LOADING_CONTAINER; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR_FILE__CONTAINER = MODULE_FILE__CONTAINER; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR_FILE__FILES = MODULE_FILE__FILES; - /** - * The feature id for the '<em><b>Types</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_JAR_FILE__TYPES = MODULE_FILE__TYPES; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR_FILE__DEPLOYMENT_DESCRIPTOR = MODULE_FILE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>EJB Jar File</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int EJB_JAR_FILE_FEATURE_COUNT = MODULE_FILE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WAR_FILE__URI = MODULE_FILE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int WAR_FILE__LAST_MODIFIED = MODULE_FILE__LAST_MODIFIED; - /** - * @generated This field/method will be replaced during code generation. - */ - int WAR_FILE__SIZE = MODULE_FILE__SIZE; - /** - * The feature id for the '<em><b>Directory Entry</b></em>' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int WAR_FILE__DIRECTORY_ENTRY = MODULE_FILE__DIRECTORY_ENTRY; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WAR_FILE__ORIGINAL_URI = MODULE_FILE__ORIGINAL_URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int WAR_FILE__LOADING_CONTAINER = MODULE_FILE__LOADING_CONTAINER; - /** - * @generated This field/method will be replaced during code generation. - */ - int WAR_FILE__CONTAINER = MODULE_FILE__CONTAINER; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WAR_FILE__FILES = MODULE_FILE__FILES; - /** - * The feature id for the '<em><b>Types</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WAR_FILE__TYPES = MODULE_FILE__TYPES; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WAR_FILE__DEPLOYMENT_DESCRIPTOR = MODULE_FILE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>WAR File</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int WAR_FILE_FEATURE_COUNT = MODULE_FILE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EAR_FILE__URI = MODULE_FILE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int EAR_FILE__LAST_MODIFIED = MODULE_FILE__LAST_MODIFIED; - /** - * @generated This field/method will be replaced during code generation. - */ - int EAR_FILE__SIZE = MODULE_FILE__SIZE; - /** - * The feature id for the '<em><b>Directory Entry</b></em>' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int EAR_FILE__DIRECTORY_ENTRY = MODULE_FILE__DIRECTORY_ENTRY; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EAR_FILE__ORIGINAL_URI = MODULE_FILE__ORIGINAL_URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int EAR_FILE__LOADING_CONTAINER = MODULE_FILE__LOADING_CONTAINER; - /** - * @generated This field/method will be replaced during code generation. - */ - int EAR_FILE__CONTAINER = MODULE_FILE__CONTAINER; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EAR_FILE__FILES = MODULE_FILE__FILES; - /** - * The feature id for the '<em><b>Types</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EAR_FILE__TYPES = MODULE_FILE__TYPES; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EAR_FILE__MODULE_REFS = MODULE_FILE_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int EAR_FILE__DEPLOYMENT_DESCRIPTOR = MODULE_FILE_FEATURE_COUNT + 1; - /** - * The number of structural features of the the '<em>EAR File</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int EAR_FILE_FEATURE_COUNT = MODULE_FILE_FEATURE_COUNT + 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT_FILE__URI = MODULE_FILE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT_FILE__LAST_MODIFIED = MODULE_FILE__LAST_MODIFIED; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT_FILE__SIZE = MODULE_FILE__SIZE; - /** - * The feature id for the '<em><b>Directory Entry</b></em>' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT_FILE__DIRECTORY_ENTRY = MODULE_FILE__DIRECTORY_ENTRY; - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT_FILE__ORIGINAL_URI = MODULE_FILE__ORIGINAL_URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT_FILE__LOADING_CONTAINER = MODULE_FILE__LOADING_CONTAINER; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT_FILE__CONTAINER = MODULE_FILE__CONTAINER; - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT_FILE__FILES = MODULE_FILE__FILES; - /** - * The feature id for the '<em><b>Types</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT_FILE__TYPES = MODULE_FILE__TYPES; - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT_FILE__DEPLOYMENT_DESCRIPTOR = MODULE_FILE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Application Client File</em>' class. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT_FILE_FEATURE_COUNT = MODULE_FILE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int READ_ONLY_DIRECTORY = 8; - /** - * @generated This field/method will be replaced during code generation. - */ - int READ_ONLY_DIRECTORY__URI = CONTAINER__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int READ_ONLY_DIRECTORY__LAST_MODIFIED = CONTAINER__LAST_MODIFIED; - /** - * @generated This field/method will be replaced during code generation. - */ - int READ_ONLY_DIRECTORY__SIZE = CONTAINER__SIZE; - /** - * The feature id for the '<em><b>Directory Entry</b></em>' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int READ_ONLY_DIRECTORY__DIRECTORY_ENTRY = CONTAINER__DIRECTORY_ENTRY; - - /** - * @generated This field/method will be replaced during code generation. - */ - int READ_ONLY_DIRECTORY__ORIGINAL_URI = CONTAINER__ORIGINAL_URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int READ_ONLY_DIRECTORY__LOADING_CONTAINER = CONTAINER__LOADING_CONTAINER; - /** - * @generated This field/method will be replaced during code generation. - */ - int READ_ONLY_DIRECTORY__CONTAINER = CONTAINER__CONTAINER; - - - /** - * @generated This field/method will be replaced during code generation. - */ - int READ_ONLY_DIRECTORY__FILES = CONTAINER__FILES; - /** - * The number of structural features of the the '<em>Read Only Directory</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int READ_ONLY_DIRECTORY_FEATURE_COUNT = CONTAINER_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int RAR_FILE__URI = MODULE_FILE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int RAR_FILE__LAST_MODIFIED = MODULE_FILE__LAST_MODIFIED; - /** - * @generated This field/method will be replaced during code generation. - */ - int RAR_FILE__SIZE = MODULE_FILE__SIZE; - /** - * The feature id for the '<em><b>Directory Entry</b></em>' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @generated - * @ordered - */ - int RAR_FILE__DIRECTORY_ENTRY = MODULE_FILE__DIRECTORY_ENTRY; - - /** - * @generated This field/method will be replaced during code generation. - */ - int RAR_FILE__ORIGINAL_URI = MODULE_FILE__ORIGINAL_URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int RAR_FILE__LOADING_CONTAINER = MODULE_FILE__LOADING_CONTAINER; - /** - * @generated This field/method will be replaced during code generation. - */ - int RAR_FILE__CONTAINER = MODULE_FILE__CONTAINER; - - /** - * @generated This field/method will be replaced during code generation. - */ - int RAR_FILE__FILES = MODULE_FILE__FILES; - /** - * The feature id for the '<em><b>Types</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RAR_FILE__TYPES = MODULE_FILE__TYPES; - - /** - * The feature id for the '<em><b>Deployment Descriptor</b></em>' reference. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int RAR_FILE__DEPLOYMENT_DESCRIPTOR = MODULE_FILE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>RAR File</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int RAR_FILE_FEATURE_COUNT = MODULE_FILE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_REF__MODULE_FILE = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE_REF__EAR_FILE = 1; - - /** - * The feature id for the '<em><b>Module</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE_REF__MODULE = 2; - - /** - * The number of structural features of the the '<em>Module Ref</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MODULE_REF_FEATURE_COUNT = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_MODULE_REF__MODULE_FILE = MODULE_REF__MODULE_FILE; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_MODULE_REF__EAR_FILE = MODULE_REF__EAR_FILE; - - /** - * The feature id for the '<em><b>Module</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_MODULE_REF__MODULE = MODULE_REF__MODULE; - - /** - * The number of structural features of the the '<em>EJB Module Ref</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int EJB_MODULE_REF_FEATURE_COUNT = MODULE_REF_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_MODULE_REF__MODULE_FILE = MODULE_REF__MODULE_FILE; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_MODULE_REF__EAR_FILE = MODULE_REF__EAR_FILE; - - /** - * The feature id for the '<em><b>Module</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_MODULE_REF__MODULE = MODULE_REF__MODULE; - - /** - * The number of structural features of the the '<em>Web Module Ref</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int WEB_MODULE_REF_FEATURE_COUNT = MODULE_REF_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CLIENT_MODULE_REF__MODULE_FILE = MODULE_REF__MODULE_FILE; - /** - * @generated This field/method will be replaced during code generation. - */ - int CLIENT_MODULE_REF__EAR_FILE = MODULE_REF__EAR_FILE; - - /** - * The feature id for the '<em><b>Module</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CLIENT_MODULE_REF__MODULE = MODULE_REF__MODULE; - - /** - * The number of structural features of the the '<em>Client Module Ref</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int CLIENT_MODULE_REF_FEATURE_COUNT = MODULE_REF_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR_MODULE_REF__MODULE_FILE = MODULE_REF__MODULE_FILE; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR_MODULE_REF__EAR_FILE = MODULE_REF__EAR_FILE; - - /** - * The feature id for the '<em><b>Module</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTOR_MODULE_REF__MODULE = MODULE_REF__MODULE; - - /** - * The number of structural features of the the '<em>Connector Module Ref</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int CONNECTOR_MODULE_REF_FEATURE_COUNT = MODULE_REF_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - String eNS_URI = "commonarchive.xmi"; //$NON-NLS-1$ - /** - * The package namespace name. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.commonarchivecore"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - CommonarchivePackage eINSTANCE = org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchivePackageImpl.init(); - - /** - * @generated This field/method will be replaced during code generation - * @return Container object - */ - EClass getContainer(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getContainer_Files(); - - /** - * @generated This field/method will be replaced during code generation - * @return WARFile object - */ - EClass getWARFile(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getWARFile_DeploymentDescriptor(); - - /** - * @generated This field/method will be replaced during code generation - * @return ModuleFile object - */ - EClass getModuleFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return EARFile object - */ - EClass getEARFile(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEARFile_DeploymentDescriptor(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEARFile_ModuleRefs(); - - /** - * @generated This field/method will be replaced during code generation - * @return ModuleRef object - */ - EClass getModuleRef(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getModuleRef_ModuleFile(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getModuleRef_EarFile(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef#getModule <em>Module</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Module</em>'. - * @see org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef#getModule() - * @see #getModuleRef() - * @generated - */ - EReference getModuleRef_Module(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBModuleRef object - */ - EClass getEJBModuleRef(); - - /** - * @generated This field/method will be replaced during code generation - * @return WebModuleRef object - */ - EClass getWebModuleRef(); - - /** - * @generated This field/method will be replaced during code generation - * @return ClientModuleRef object - */ - EClass getClientModuleRef(); - - /** - * @generated This field/method will be replaced during code generation - * @return ConnectorModuleRef object - */ - EClass getConnectorModuleRef(); - - /** - * @generated This field/method will be replaced during code generation - * @return ApplicationClientFile object - */ - EClass getApplicationClientFile(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getApplicationClientFile_DeploymentDescriptor(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBJarFile object - */ - EClass getEJBJarFile(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEJBJarFile_DeploymentDescriptor(); - - /** - * @generated This field/method will be replaced during code generation - * @return RARFile object - */ - EClass getRARFile(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile#getDeploymentDescriptor <em>Deployment Descriptor</em>}'. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @return the meta object for the reference '<em>Deployment Descriptor</em>'. - * @see org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile#getDeploymentDescriptor() - * @see #getRARFile() - * @generated - */ - EReference getRARFile_DeploymentDescriptor(); - - /** - * @generated This field/method will be replaced during code generation - * @return Archive object - */ - EClass getArchive(); - - /** - * Returns the meta object for the attribute list ' - * {@link org.eclipse.jst.j2ee.internal.commonarchivecore.Archive#getTypes <em>Types</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute list '<em>Types</em>'. - * @see org.eclipse.jst.j2ee.internal.commonarchivecore.Archive#getTypes() - * @see #getArchive() - * @generated - */ - EAttribute getArchive_Types(); - - /** - * @generated This field/method will be replaced during code generation - * @return File object - */ - EClass getFile(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getFile_URI(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getFile_LastModified(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getFile_Size(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.File#isDirectoryEntry <em>Directory Entry</em>}'. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Directory Entry</em>'. - * @see org.eclipse.jst.j2ee.commonarchivecore.internal.File#isDirectoryEntry() - * @see #getFile() - * @generated - */ - EAttribute getFile_DirectoryEntry(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getFile_OriginalURI(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getFile_LoadingContainer(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getFile_Container(); - - /** - * @generated This field/method will be replaced during code generation - * @return ReadOnlyDirectory object - */ - EClass getReadOnlyDirectory(); - - /** - * @generated This field/method will be replaced during code generation. - */ - CommonarchiveFactory getCommonarchiveFactory(); - -} //CommonarchivePackage - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ConnectorModuleRef.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ConnectorModuleRef.java deleted file mode 100644 index b42d0610f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ConnectorModuleRef.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.jca.Connector; - - -public interface ConnectorModuleRef extends ModuleRef { - Connector getConnector() throws ArchiveWrappedException; - -} //ConnectorModuleRef - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/Container.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/Container.java deleted file mode 100644 index cea334e92..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/Container.java +++ /dev/null @@ -1,83 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; - -import org.eclipse.emf.common.util.EList; - -/** - * @generated - */ -public interface Container extends File { - - /** - * Indicate whether the archive contains a file having a relative path of the parameter; the uri - * may or may not have a leading separator - */ - public boolean containsFile(String uri); - - /** - * Return the absolute path of the file from its load strategy, if it is known. Should be used - * mainly for read-only runtime purposes, as edit-time modifications may make the result - * undefined. - * - * @throws FileNotFoundException - * if the archive is "virtual", eg, a nested jar - */ - public String getAbsolutePath() throws FileNotFoundException; - - public File getFile(String uri) throws FileNotFoundException; - - public InputStream getInputStream(String uri) throws FileNotFoundException, IOException; - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return com.ibm.etools.archive.LoadStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy getLoadStrategy(); - - /** - * Indicates whether the archive has ever had its files enumerated; used as an optimization - */ - public boolean isIndexed(); - - /** - * Goes directly to the strategy - */ - public InputStream primGetInputStream(String uri) throws FileNotFoundException, IOException; - - public void rebuildFileIndex(); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newLoadStrategy - * com.ibm.etools.archive.LoadStrategy - */ - public void setLoadStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy newLoadStrategy); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Files references - */ - EList getFiles(); - - /** - * Clears the list of files in this Container and drops the index - */ - public void clearFiles(); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/EARFile.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/EARFile.java deleted file mode 100644 index 20c7545d5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/EARFile.java +++ /dev/null @@ -1,299 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import java.io.FileNotFoundException; -import java.util.List; -import java.util.Map; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ConnectorModule; -import org.eclipse.jst.j2ee.application.EjbModule; -import org.eclipse.jst.j2ee.application.JavaClientModule; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.application.WebModule; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.EmptyResourceException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ObjectNotFoundException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.jca.Connector; -import org.eclipse.jst.j2ee.webapplication.WebApp; - - -/** - * @generated - */ -public interface EARFile extends ModuleFile { - - /** - * Makes a copy of - * - * @aModuleFile, using its local deployment descriptor; creates a new Module and adds it to the - * Application deployment descriptor of this EAR file and adds the copy of the - * ModuleFile to this EAR. - * - * @return The copied module file - * - * @exception DuplicateObjectException - * if this EAR already contains a file with the same uri as - * @aModuleFile - */ - - public ModuleFile addCopy(ModuleFile aModuleFile) throws DuplicateObjectException; - - - /** - * This is the same as addCopy(ModuleFile) except the return value is the new ModuleRef - */ - public ModuleRef addCopyRef(ModuleFile aModuleFile) throws DuplicateObjectException; - - /** - * Add a copy of the security role to the dd for the module; if an alt dd is specified, add to - * that dd; otherwise add to the standard dd of the module; also add a copy of the role to the - * ear file dd if a role with that name does not already exist - * - * @throws DuplicateObjectException - * if the dd for aModule already contains a role with that name - */ - public SecurityRole addCopy(SecurityRole aRole, Module aModule) throws DuplicateObjectException; - - /** - * Add a copy of the security role to the ear file's dd, if it does not already contain a role - * with the same name - */ - public SecurityRole addCopyIfNotExists(SecurityRole aRole); - - EObject getAltDeploymentDescriptor(Module aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException; - - /** - * Returns a filtered list of ApplicationClientFiles; adds will not be reflected; use - * - * @link Archive#add(File) - */ - public List getApplicationClientFiles(); - - /** - * Returns a filtered list of ClientModuleRefs - */ - public List getClientModuleRefs(); - - /** - * @throws DeploymentDescriptorLoadException - - * is a runtime exception, because we can't override the signature of the generated - * methods - */ - - - - /** - * @generated This field/method will be replaced during code generation - * @return The DeploymentDescriptor reference - */ - Application getDeploymentDescriptor() throws DeploymentDescriptorLoadException; - - Connector getDeploymentDescriptor(ConnectorModule aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException; - - EJBJar getDeploymentDescriptor(EjbModule aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException; - - ApplicationClient getDeploymentDescriptor(JavaClientModule aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException; - - EObject getDeploymentDescriptor(Module aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException; - - WebApp getDeploymentDescriptor(WebModule aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException; - - /** - * Returns a filtered list of EJBJarFiles; adds will not be reflected; use - * - * @link Archive#add(File) - */ - public List getEJBJarFiles(); - - /** - * Returns a filtered list of EJBModuleRefs - */ - public List getEJBModuleRefs(); - - - /** - * Return an enterprise bean referenced by the EjbRef, if one exists. The ejb-link value of the - * ref must equate to a named enterprise bean contained in the jar; otherwise return null. - * Returns the first hit found; assumption that the ejb names are unique within the scope of the - * ear file. This will likely be replaced with a better way for dereferencing ejb refs. - * - * Can be used with ejb 1.1 references only. - * - * @deprecated {@link#getEnterpiseBeanFromRef(EjbRef ref, String moduleUri ) - * @param EjbRef - * ref - An ejb reference - * @return EnterpriseBean - */ - public EnterpriseBean getEnterpiseBeanFromRef(EjbRef ref); - - /** - * Return an enterprise bean referenced by the EjbRef and a module uri, if one exists. The - * ejb-link value of the ref must equate to a named enterprise bean contained in the jar; - * otherwise return null. Returns the first hit found; assumption that the ejb names are unique - * within the scope of the ear file. This will likely be replaced with a better way for - * dereferencing ejb refs. - * - * Can be used with ejb 1.1 & ejb 2.0 references. - * - * @param EjbRef - * ref - An ejb reference - * @param String - * moduleUri - The module uri - * @return EnterpriseBean - */ - public EnterpriseBean getEnterpiseBeanFromRef(EjbRef ref, String moduleUri); - - public Module getModule(String uri, String altDD); - - /** - * @return the module ref which references - * @moduleDescriptor - */ - public ModuleRef getModuleRef(Module moduleDescriptor); - - /** - * @return java.util.List of all module refs in this EAR having a reference to - * @aModuleFile - */ - public List getModuleRefs(ModuleFile aModuleFile); - - /** - * Returns a filtered list of ModuleFiles; adds will not be reflected; use - * - * @link Archive#add(File) - */ - public List getModuleFiles(); - - /** - * Returns a filtered list of RarFiles; adds will not be reflected; use - * - * @link Archive#add(File) - */ - public List getRARFiles(); - - /** - * Returns a filtered list of FARFiles; adds will not be reflected; use - * {@link Archive#add(File)} - */ - public List getFARFiles(); - - /** - * Returns a filtered list of ConnectorModuleRefs - */ - public List getConnectorModuleRefs(); - - /** - * Return all security roles from all existing modules (EjbModule and WebModule) - */ - public EList getRolesFromAllModules(); - - /** - * Return all security roles from an existing module (EjbModule and WebModule) - */ - public EList getRolesFromModule(Module aModule); - - /** - * Returns a filtered list of WarFiles; adds will not be reflected; use - * - * @link Archive#add(File) - */ - public List getWARFiles(); - - /** - * Returns a filtered list of WebModuleRefs - */ - public List getWebModuleRefs(); - - /** - * Copy the role into each ModuleFile in the ear file which does not already contain the role - * Assumption: a role with the same name as - * - * @role exists in the application deployment descriptor - */ - public void pushDownRole(SecurityRole role); - - /** - * Copy the role into the ModuleFile for the module, if the module does not already contain the - * role Assumption: a role with the same name as - * - * @role exists in the application deployment descriptor - */ - public void pushDownRole(SecurityRole role, Module aModule); - - /** - * Attempt to remove the module for the parameter from this object's dd, then remove the module - * file, if it is not referenced from any other ModuleRef, from the list of files - */ - public void remove(ModuleRef aModuleRef); - - /** - * Rename the security role in the ear file's dd; push this change down to any contained module - * dd's; if the module specifies an alt-dd, the change will be reflected there; otherwise it - * will be reflected in the standard dd of the module - * - * @throws ObjectNotFoundException - * if the dd for the ear does not contain a role with the existingRoleName - * - * @throws DuplicateObjectException - * if the dd for the ear file already contains a role with the new name - */ - public void renameSecurityRole(String existingRoleName, String newRoleName) throws ObjectNotFoundException, DuplicateObjectException; - - /** - * For each security role in the dd for each module, add a copy to the ear file's dd; if an - * alt-dd is specified for the module, use that dd; otherwise use the standard dd in the module - * file - */ - public void rollUpRoles(); - - /** - * For each security role in the dd for a module, add a copy to the ear file's dd; if an alt-dd - * is specified for the module, use that dd; otherwise use the standard dd in the module file - */ - public void rollUpRoles(Module aModule); - - /** - * @generated This field/method will be replaced during code generation - * @param l - * The new value of the DeploymentDescriptor reference - */ - void setDeploymentDescriptor(Application value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of ModuleRefs references - */ - EList getModuleRefs(); - - public List getArchivesOfType(String type); - - /** - * Return a Map of Modules as keys and a List of EJB References as the values. This will let you - * know which Modules the references came from. You can filter the list of EJB References - * returned on the linked attributed of the reference. This means that you can filter linked - * references, non-linked references, or neither (i.e., return all references). - */ - Map getEJBReferences(boolean filterLinkedReferences, boolean filterNonLinkedReferences) throws ArchiveWrappedException; -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/EJBJarFile.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/EJBJarFile.java deleted file mode 100644 index e7bd0a70a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/EJBJarFile.java +++ /dev/null @@ -1,55 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import java.util.List; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - -/** - * @generated - */ -public interface EJBJarFile extends ModuleFile { - - /** - * Used for tools performing selective import - */ - public List getAssociatedFiles(EnterpriseBean ejb); - - /** - * @throws DeploymentDescriptorLoadException - - * is a runtime exception, because we can't override the signature of the generated - * methods - */ - - - - /** - * @generated This field/method will be replaced during code generation - * @return The DeploymentDescriptor reference - */ - EJBJar getDeploymentDescriptor() throws DeploymentDescriptorLoadException; - - public boolean isImportedFrom10(); - - /** - * @generated This field/method will be replaced during code generation - * @param l - * The new value of the DeploymentDescriptor reference - */ - void setDeploymentDescriptor(EJBJar value); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/EJBModuleRef.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/EJBModuleRef.java deleted file mode 100644 index cec50714c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/EJBModuleRef.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.ejb.EJBJar; - - -public interface EJBModuleRef extends ModuleRef { - - EJBJar getEJBJar() throws ArchiveWrappedException; - -} //EJBModuleRef - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/File.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/File.java deleted file mode 100644 index 98e9c842f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/File.java +++ /dev/null @@ -1,240 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import java.io.InputStream; - -import org.eclipse.emf.ecore.EObject; - -/** - * @generated - */ -public interface File extends EObject{ - - /** - * Return the path up to the filename; e.g., from com/ibm/foo/bar.class, com/ibm/foo - */ - public String getDirectoryURI(); - - public InputStream getInputStream() throws java.io.FileNotFoundException, java.io.IOException; - - /** - * Return the tail of the file path; e.g., from com/ibm/foo/bar.class, return bar.class - */ - public String getName(); - - public boolean isApplicationClientFile(); - - public boolean isArchive(); - - public boolean isContainer(); - - public boolean isEARFile(); - - public boolean isFARFile(); - - public boolean isEJBJarFile(); - - public boolean isModuleFile(); - - public boolean isRARFile(); - - public boolean isReadOnlyDirectory(); - - public boolean isWARFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the URI attribute - */ - String getURI(); - - /** - * @generated This field/method will be replaced during code generation - * @param value - * The new value of the URI attribute - */ - void setURI(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the LastModified attribute - */ - long getLastModified(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.File#getLastModified <em>Last Modified</em>}' attribute. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @param value the new value of the '<em>Last Modified</em>' attribute. - * @see #isSetLastModified() - * @see #unsetLastModified() - * @see #getLastModified() - * @generated - */ - void setLastModified(long value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.File#getLastModified <em>Last Modified</em>}' attribute. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @see #isSetLastModified() - * @see #getLastModified() - * @see #setLastModified(long) - * @generated - */ - void unsetLastModified(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.File#getLastModified <em>Last Modified</em>}' attribute is set. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @return whether the value of the '<em>Last Modified</em>' attribute is set. - * @see #unsetLastModified() - * @see #getLastModified() - * @see #setLastModified(long) - * @generated - */ - boolean isSetLastModified(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Size attribute - */ - long getSize(); - - /** - * Sets the value of the ' - * {@link org.eclipse.jst.j2ee.internal.commonarchivecore.File#getSize <em>Size</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Size</em>' attribute. - * @see #isSetSize() - * @see #unsetSize() - * @see #getSize() - * @generated - */ - void setSize(long value); - - /** - * Unsets the value of the ' - * {@link org.eclipse.jst.j2ee.internal.commonarchivecore.File#getSize <em>Size</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see #isSetSize() - * @see #getSize() - * @see #setSize(long) - * @generated - */ - void unsetSize(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.File#getSize <em>Size</em>}' attribute is set. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @return whether the value of the '<em>Size</em>' attribute is set. - * @see #unsetSize() - * @see #getSize() - * @see #setSize(long) - * @generated - */ - boolean isSetSize(); - - /** - * Returns the value of the '<em><b>Directory Entry</b></em>' attribute. <!-- - * begin-user-doc --> - * <p> - * If the meaning of the '<em>Directory Entry</em>' attribute isn't clear, there really - * should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Directory Entry</em>' attribute. - * @see #isSetDirectoryEntry() - * @see #unsetDirectoryEntry() - * @see #setDirectoryEntry(boolean) - * @see org.eclipse.jst.j2ee.internal.commonarchivecore.CommonarchivePackage#getFile_DirectoryEntry() - * @model unsettable="true" - * @generated - */ - boolean isDirectoryEntry(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.File#isDirectoryEntry <em>Directory Entry</em>}' attribute. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @param value the new value of the '<em>Directory Entry</em>' attribute. - * @see #isSetDirectoryEntry() - * @see #unsetDirectoryEntry() - * @see #isDirectoryEntry() - * @generated - */ - void setDirectoryEntry(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.File#isDirectoryEntry <em>Directory Entry</em>}' attribute. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @see #isSetDirectoryEntry() - * @see #isDirectoryEntry() - * @see #setDirectoryEntry(boolean) - * @generated - */ - void unsetDirectoryEntry(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.File#isDirectoryEntry <em>Directory Entry</em>}' attribute is set. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @return whether the value of the '<em>Directory Entry</em>' attribute is set. - * @see #unsetDirectoryEntry() - * @see #isDirectoryEntry() - * @see #setDirectoryEntry(boolean) - * @generated - */ - boolean isSetDirectoryEntry(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the OriginalURI attribute - */ - String getOriginalURI(); - - /** - * @generated This field/method will be replaced during code generation - * @param value - * The new value of the OriginalURI attribute - */ - void setOriginalURI(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The LoadingContainer reference - */ - Container getLoadingContainer(); - - /** - * @generated This field/method will be replaced during code generation - * @param l - * The new value of the LoadingContainer reference - */ - void setLoadingContainer(Container value); - - /** - * @generated This field/method will be replaced during code generation - * @return The Container reference - */ - Container getContainer(); - - /** - * @generated This field/method will be replaced during code generation - * @param l - * The new value of the Container reference - */ - void setContainer(Container value); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/GenericArchiveTypeDiscriminator.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/GenericArchiveTypeDiscriminator.java deleted file mode 100644 index c2acce7f1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/GenericArchiveTypeDiscriminator.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -/** - * @author mdelder - */ -public interface GenericArchiveTypeDiscriminator { - - /** - * This is a unique identifier that contributors should use to specify the generic type that - * should be associated with archives. Example: com.yourcompany.j2ee.extension.customModule - * - * @return - */ - public String getTypeKey(); - - /** - * If common archive should recognize file extensions other than the standard ones, e.g., .jar, - * .zip, then these file extensions can be specified here. - * - * @return - */ - public String[] getCustomFileExtensions(); - - /** - * Method that individual discriminators can implement to determine if an Archive is of a - * particular type. Implementers should be sensitive to performance requirments. Usually simple - * tests should be performed, such as: - * <code>if (anArchive.containsFile("xxx.xml")<code>. The result will - * be stored in the Archive's "types" attribute. - * @param anArchive - * @return - */ - public boolean discriminate(Archive anArchive); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ModuleFile.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ModuleFile.java deleted file mode 100644 index 5704b827b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ModuleFile.java +++ /dev/null @@ -1,96 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; - -/** - * @generated - */ -public interface ModuleFile extends Archive { - - public Resource getDeploymentDescriptorResource() throws java.io.FileNotFoundException, ResourceLoadException; - - public String getDeploymentDescriptorUri(); - - /** - * Return the container for this archive casted to EARFile; null if this file is not contained - * in an EARFile - */ - public EARFile getEARFile(); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return com.ibm.etools.archive.ExportStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ExportStrategy getExportStrategy(); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return com.ibm.etools.archive.ImportStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy getImportStrategy(); - - /** - * Returns the specification version of the module file. For example, "2.0" - * - * @deprecated, Use getDeploymentDescriptorResource().getModuleVersionID(); - */ - public String getSpecVersion(); - - /** - * Return the version ID of the module For example, "20" - * - * @return int - */ - public int getSpecVersionID(); - - EObject getStandardDeploymentDescriptor() throws DeploymentDescriptorLoadException; - - /** - * Answers whether the deployment descriptor is null; used for copy, to determine whether the - * import strategy needs to be copied or not - */ - public boolean isDeploymentDescriptorSet(); - - public Resource makeDeploymentDescriptorResource(); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newExportStrategy - * com.ibm.etools.archive.ExportStrategy - */ - public void setExportStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ExportStrategy newExportStrategy); - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newImportStrategy - * com.ibm.etools.archive.ImportStrategy - */ - public void setImportStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy newImportStrategy); - - /** - * Sets the J2EE version for this archive - * - * @see org.eclipse.jst.j2ee.internal.J2EEVersionConstants - */ - public void setJ2EEVersion(int versionID); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ModuleRef.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ModuleRef.java deleted file mode 100644 index 6b8bf8ac1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ModuleRef.java +++ /dev/null @@ -1,177 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy; - - -public interface ModuleRef extends EObject{ - - /** - * Return the parsed local deployment descriptor from the ModuleFile - */ - EObject getStandardDeploymentDescriptor(); - - /** - * Return the parsed alt dd, if it exists, from the EAR file containing this module - */ - EObject getAltDeploymentDescriptor() throws ArchiveWrappedException; - - /** - * Return an alt dd if it exists, otherwise the local dd - */ - EObject getDeploymentDescriptor() throws ArchiveWrappedException; - - - /** - * Gets the uri from the {@link Module}referenced by this ref; if there is no module, (eg. a - * standalone JAR), gets the uri from the {@link ModuleFile}. Assumption: The uri of the - * {@link Module}and {@link ModuleFile}should stay in sync - */ - String getUri(); - - /** - * @generated This field/method will be replaced during code generation - * @return The ModuleFile reference - */ - ModuleFile getModuleFile(); - - /** - * Similar to {@link Archive#getMofResource(String)}, except that alt-dd indirection is - * considered. If this module uses an alt-dd, then the uri will be prepended with the "alt-root" - * and the resource will be loaded from the owning EAR file. In this case, all hrefs into and - * out of this resource should be relative to the root of the EAR. The hrefs are taken care of - * for free when the client uses {@link #makeAltDescriptorsAndResources()}. The alt root is - * automatically generated when it does not exist. - * - * @see ModuleExtension#getAltRoot() - */ - Resource getMofResource(String uri) throws FileNotFoundException, ResourceLoadException; - - public InputStream getAltResourceInputStream(String uri) throws IOException; - - public InputStream getLocalResourceInputStream(String uri) throws IOException; - - /** - * Return an input stream from the resources path of either the ModuleFile, if the module does - * not use alt-dd, or from the altRoot of the module, found in the resources path of the EAR - * - * @see LoadStrategy#getResourceInputStream(String) - */ - public InputStream getResourceInputStream(String uri) throws IOException; - - - /** - * Retrieve a resource from the ModuleFile - * - * @see Archive#getMofResource(String) - */ - Resource getLocalMofResource(String uri) throws FileNotFoundException, ResourceLoadException; - - /** - * The uri will be prepended with the "alt-root" and the resource will be loaded from the owning - * EAR file. - */ - Resource getAltMofResource(String uri) throws FileNotFoundException, ResourceLoadException; - - /** - * Create a new mof resource and add it to the resource set of the context of either the module - * file if this ModuleRef is not an alt, or to the EAR file if it is an alt. If this module is - * uses an alt-dd, then the uri will be prepended with the "alt-root" The alt root is - * automatically generated when it does not exist. - * - * @throws DuplicateObjectException - * if a resource already exists in this archive having the uri - */ - Resource makeMofResource(String uri) throws DuplicateObjectException; - - Resource makeLocalMofResource(String uri) throws DuplicateObjectException; - - Resource makeAltMofResource(String uri) throws DuplicateObjectException; - - - /** - * @generated This field/method will be replaced during code generation - * @param l - * The new value of the ModuleFile reference - */ - void setModuleFile(ModuleFile value); - - /** - * Rename this module; both its ModuleFile and Module element from the Application deployment - * descriptor. - */ - public void setURI(String uri); - - boolean isEJB(); - - boolean isWeb(); - - boolean isClient(); - - boolean isConnector(); - - boolean usesAltDD(); - - /** - * @generated This field/method will be replaced during code generation - * @return The EarFile reference - */ - EARFile getEarFile(); - - /** - * @generated This field/method will be replaced during code generation - * @param l - * The new value of the EarFile reference - */ - void setEarFile(EARFile value); - - /** - * Returns the value of the '<em><b>Module</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Module</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Module</em>' reference. - * @see #setModule(Module) - * @see org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage#getModuleRef_Module() - * @model required="true" - * @generated - */ - Module getModule(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef#getModule <em>Module</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Module</em>' reference. - * @see #getModule() - * @generated - */ - void setModule(Module value); - -} //ModuleRef - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/RARFile.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/RARFile.java deleted file mode 100644 index 7df552076..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/RARFile.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; -import org.eclipse.jst.j2ee.jca.Connector; - - -/** - * @generated - */ -public interface RARFile extends ModuleFile{ - - /** - * Returns the value of the '<em><b>Deployment Descriptor</b></em>' reference. <!-- - * begin-user-doc --> - * <p> - * If the meaning of the '<em>Deployment Descriptor</em>' reference list isn't clear, there - * really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Deployment Descriptor</em>' reference. - * @see #setDeploymentDescriptor(Connector) - * @see org.eclipse.jst.j2ee.internal.commonarchivecore.CommonarchivePackage#getRARFile_DeploymentDescriptor() - * @model required="true" - * @generated - */ - Connector getDeploymentDescriptor(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile#getDeploymentDescriptor <em>Deployment Descriptor</em>}' reference. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @param value the new value of the '<em>Deployment Descriptor</em>' reference. - * @see #getDeploymentDescriptor() - * @generated - */ - void setDeploymentDescriptor(Connector value); - - /** - * Extracts the RAR file to the specified directory. This method should be used for expanding - * the RAR file if it is a standalone RAR. If the RAR file is packaged as part of an EAR, this - * method should not be used. Instead, the expandTo() of the EAR should be used expand the - * contents of the ear and the nested RAR relative to the EAR's directory (similar to WAR's). - * Creation date: (2/6/2001 7:44:41 PM) - * - * @param dir - * java.lang.String - * @param expandFlags - * int - */ - void extractToConnectorDirectory(String dir, int expandFlags) throws SaveFailureException; -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ReadOnlyDirectory.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ReadOnlyDirectory.java deleted file mode 100644 index 83ef763a1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ReadOnlyDirectory.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import java.util.List; - -/** - * @generated - */ -public interface ReadOnlyDirectory extends Container { - - public boolean containsFileInSelfOrSubdirectory(String uri); - - public File getFileInSelfOrSubdirectory(String uri) throws java.io.FileNotFoundException; - - /** - * Returns a flat list of all the files contained in this directory and subdirectories, with the - * directories filtered out, as the list would appear in an archive - */ - public List getFilesRecursive(); - - /** - * Return a filtered list on the files with just the instances of ReadOnlyDirectory - */ - public List getReadOnlyDirectories(); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/RepairArchiveCommand.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/RepairArchiveCommand.java deleted file mode 100644 index 94c750cec..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/RepairArchiveCommand.java +++ /dev/null @@ -1,159 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.eclipse.emf.common.command.AbstractCommand; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveConstants; -import org.eclipse.jst.j2ee.internal.J2EEConstants; - - -/** - * Insert the type's description here. Creation date: (02/27/01 2:20:44 PM) - * - * @author: Administrator - */ -public class RepairArchiveCommand extends AbstractCommand { - protected Archive archive; - protected static Map directoryNames; - - /** - * RepairMetaInfCommand constructor comment. - * - * @param label - * java.lang.String - * @param description - * java.lang.String - */ - public RepairArchiveCommand(Archive anArchive) { - super("Repair Archive", CommonArchiveResourceHandler.Repairs_all_entries_in_the); // = "Repairs all entries in the META-INF and/or WEB-INF directories to be the correct case"//$NON-NLS-1$ - archive = anArchive; - //Ensure Initiailization - getDirectoryNames(); - } - - /** - * @see com.ibm.etools.common.command.Command - */ - public void execute() { - List files = archive.getFiles(); - for (int i = 0; i < files.size(); i++) { - File aFile = (File) files.get(i); - if (aFile.isArchive()) { - new RepairArchiveCommand((Archive) aFile).execute(); - } else { - String upperUri = aFile.getURI().toUpperCase(); - Iterator keysAndValues = directoryNames.entrySet().iterator(); - while (keysAndValues.hasNext()) { - String uri = aFile.getURI(); - Map.Entry entry = (Map.Entry) keysAndValues.next(); - String key = (String) entry.getKey(); - String value = (String) entry.getValue(); - if (upperUri.startsWith(key) && !uri.startsWith(value)) { - String tail = uri.substring(key.length()); - aFile.setURI(value.concat(tail)); - break; - } - } - } - } - } - - /** - * Insert the method's description here. Creation date: (03/14/01 5:55:14 PM) - * - * @return java.util.Set - */ - protected static java.util.Map getDirectoryNames() { - if (directoryNames == null) { - directoryNames = new HashMap(6); - directoryNames.put(J2EEConstants.META_INF.toUpperCase(), J2EEConstants.META_INF); - directoryNames.put(J2EEConstants.WEB_INF.toUpperCase(), J2EEConstants.WEB_INF); - directoryNames.put(ArchiveConstants.WEBAPP_LIB_URI.toUpperCase(), ArchiveConstants.WEBAPP_LIB_URI); - directoryNames.put(ArchiveConstants.WEBAPP_CLASSES_URI.toUpperCase(), ArchiveConstants.WEBAPP_CLASSES_URI); - } - return directoryNames; - } - - public Collection getResult() { - return Arrays.asList(new Object[]{archive}); - } - - /** - * Insert the method's description here. Creation date: (03/14/01 6:46:16 PM) - * - * @param args - * java.lang.String[] - */ - public static void main(String[] args) { - if (!validateArgs(args)) - return; - try { - Archive anArchive = CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory().primOpenArchive(args[0]); - new RepairArchiveCommand(anArchive).execute(); - anArchive.saveAs(args[1]); - } catch (Exception ex) { - System.out.println(CommonArchiveResourceHandler.Repair_command_failed___ex_EXC_); // = "Repair command failed - exception stack trace:" - ex.printStackTrace(); - } - } - - protected boolean prepare() { - return true; - } - - /** - * @see com.ibm.etools.common.command.Command - */ - public void redo() { - //Default - } - - protected static boolean validateArgs(String[] args) { - if (!(args.length == 2)) { - org.eclipse.jem.util.logger.proxy.Logger.getLogger().logError(CommonArchiveResourceHandler.RepairArchiveCommand_usage); // = "RepairArchiveCommand usage: <sourceJarFilePath> <destinationPath>" - return false; - } - java.io.File file = new java.io.File(args[0]); - boolean isZip = false; - java.util.zip.ZipFile zip = null; - try { - zip = new java.util.zip.ZipFile(file); - isZip = true; - } catch (java.io.IOException ex) { - isZip = false; - } finally { - if (zip != null) - try { - zip.close(); - } catch (java.io.IOException ex) { - //Ignore - } - } - if (!isZip && !file.isDirectory()) { - System.out.println(CommonArchiveResourceHandler.RepairArchiveCommand_usage1_ERROR_); // = "RepairArchiveCommand usage: sourceJarFilePath must point to a valid archive or directory of an inflated archive" - return false; - } - if (new java.io.File(args[1]).canWrite()) { - System.out.println(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.repair_usage_ERROR_, (new Object[]{args[1]}))); // = "RepairArchiveCommand usage: cannot write to destinationPath " - return false; - } - return true; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ValidateXmlCommand.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ValidateXmlCommand.java deleted file mode 100644 index f1de9168a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/ValidateXmlCommand.java +++ /dev/null @@ -1,174 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.command.AbstractCommand; -import org.eclipse.emf.common.command.Command; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.internal.xml.CollectingErrorHandler; -import org.eclipse.jst.j2ee.internal.xml.XmlDocumentReader; -import org.xml.sax.InputSource; - -/** - * Insert the type's description here. Creation date: (03/19/01 10:04:08 AM) - * - * @author: Administrator - */ -public class ValidateXmlCommand extends AbstractCommand { - protected List results; - protected ModuleFile archive; - public boolean validateNested = true; - - /** - * ValidateXmlCommand constructor comment. - */ - protected ValidateXmlCommand() { - super(); - } - - /** - * ValidateXmlCommand constructor comment. - * - * @param label - * java.lang.String - * @param description - * java.lang.String - */ - public ValidateXmlCommand(ModuleFile m) { - super(); - archive = m; - } - - /** - * ValidateXmlCommand constructor comment. - * - * @param label - * java.lang.String - */ - protected ValidateXmlCommand(String label) { - super(label); - } - - /** - * ValidateXmlCommand constructor comment. - * - * @param label - * java.lang.String - * @param description - * java.lang.String - */ - protected ValidateXmlCommand(String label, String description) { - super(label, description); - } - - /** - * @see Command - */ - public void execute() { - results = new ArrayList(); - validatateXml(); - if (isValidateNested()) { - List archives = archive.getArchiveFiles(); - for (int i = 0; i < archives.size(); i++) { - Archive a = (Archive) archives.get(i); - if (!a.isModuleFile()) - continue; - ModuleFile m = (ModuleFile) a; - ValidateXmlCommand cmd = new ValidateXmlCommand(m); - cmd.execute(); - results.addAll(cmd.getResult()); - } - } - } - - /** - * @return List of XmlValidationResult; 1 for the archive, and one for each nested module file - */ - public Collection getResult() { - return results; - } - - /** - * Insert the method's description here. Creation date: (10/22/2001 1:06:52 PM) - * - * @return boolean - */ - public boolean isValidateNested() { - return validateNested; - } - - protected boolean prepare() { - return true; - } - - /** - * @see Command - */ - public void redo() { - //Default - } - - /** - * Insert the method's description here. Creation date: (10/22/2001 1:06:52 PM) - * - * @param newValidateNested - * boolean - */ - public void setValidateNested(boolean newValidateNested) { - validateNested = newValidateNested; - } - - protected void validatateXml() { - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - Resource res = archive.getStandardDeploymentDescriptor().eResource(); - XmlValidationResult result = new XmlValidationResult(); - result.setArchive(archive); - try { - res.save(bos, new java.util.HashMap()); - } catch (Exception ex) { - throw new org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveRuntimeException(ex); - } - ByteArrayInputStream inStream = new ByteArrayInputStream(bos.toByteArray()); - InputSource source = new InputSource(inStream); - CollectingErrorHandler handler = new CollectingErrorHandler(); - XmlDocumentReader parseAdapter = new XmlDocumentReader(source, null, handler); - - // the following try/catch clause is added to handle the case - // when SAX parser throws a fatal exception (type SAXException) - // for unmatching end tag that results in a RuntimeException to - // be thrown. Need to catch it so we can get the parser exceptions - // and display them to the user. - try { - parseAdapter.parseDocument(); - } catch (RuntimeException re) { - - if (handler.getCaughtExceptions() != null) { - result.setArchive(archive); - result.setCaughtExceptions(handler.getCaughtExceptions()); - results.add(result); - } - - throw re; - } - - result.setArchive(archive); - result.setCaughtExceptions(handler.getCaughtExceptions()); - results.add(result); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/WARFile.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/WARFile.java deleted file mode 100644 index 577b0849a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/WARFile.java +++ /dev/null @@ -1,100 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import java.util.List; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.webapplication.WebApp; - - -/** - * @generated - */ -public interface WARFile extends ModuleFile { - - /** - * Copy the file, and swizzle the file uri if necessary by prepending the classes directory - * - * @throws DuplicateObjectException - * of a file with the modified uri already exists in the archive - * - * @throws IllegalArgumentException - * if the parameter is a ReadOnlyDirectory - */ - public File addCopyClass(File aFile) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; - - /** - * Copy the file, and swizzle the file uri if necessary by prepending the libs directory - * - * @throws DuplicateObjectException - * of a file with the modified uri already exists in the archive - * - * @throws IllegalArgumentException - * if the parameter is a ReadOnlyDirectory - */ - public File addCopyLib(File aFile) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; - - /** - * getClasses() - filter files to return the class files from \web-inf\classes - */ - public List getClasses(); - - /** - * @throws DeploymentDescriptorLoadException - - * is a runtime exception, because we can't override the signature of the generated - * methods - */ - - - - /** - * @generated This field/method will be replaced during code generation - * @return The DeploymentDescriptor reference - */ - WebApp getDeploymentDescriptor() throws DeploymentDescriptorLoadException; - - /** - * Filter files to return the files from \we-inf\lib - */ - public List getLibs(); - - /** - * Filter files to return the JARs and Zips from \we-inf\lib - */ - public List getLibArchives(); - - /** - * getResources() - filter files to return the Web resources within the WAR (no - * classes/libs/metadata) - */ - public List getResources(); - - /** - * Return the source file that matches the output file passed in - * - * @param aClassFile - * The .class file or other output file to find the source for - * @return String The matching source. Null if there is no matching source found - */ - public File getSourceFile(File aClassFile); - - /** - * @generated This field/method will be replaced during code generation - * @param l - * The new value of the DeploymentDescriptor reference - */ - void setDeploymentDescriptor(WebApp value); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/WebModuleRef.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/WebModuleRef.java deleted file mode 100644 index bd4a3d2ca..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/WebModuleRef.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.webapplication.WebApp; - - -public interface WebModuleRef extends ModuleRef { - WebApp getWebApp() throws ArchiveWrappedException; - -} //WebModuleRef - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/XmlValidationResult.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/XmlValidationResult.java deleted file mode 100644 index c55958531..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/XmlValidationResult.java +++ /dev/null @@ -1,72 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal; - - - -import java.util.List; - - - -/** - * Insert the type's description here. Creation date: (03/19/01 3:31:53 PM) - * - * @author: Administrator - */ -public class XmlValidationResult { - protected ModuleFile archive; - protected List caughtExceptions; - - /** - * XmlValidationResult constructor comment. - */ - public XmlValidationResult() { - super(); - } - - /** - * Insert the method's description here. Creation date: (03/19/01 3:34:45 PM) - * - * @return com.ibm.etools.commonarchive.ModuleFile - */ - public ModuleFile getArchive() { - return archive; - } - - /** - * Insert the method's description here. Creation date: (03/19/01 3:34:45 PM) - * - * @return java.util.List - */ - public java.util.List getCaughtExceptions() { - return caughtExceptions; - } - - /** - * Insert the method's description here. Creation date: (03/19/01 3:34:45 PM) - * - * @param newArchive - * com.ibm.etools.commonarchive.ModuleFile - */ - public void setArchive(ModuleFile newArchive) { - archive = newArchive; - } - - /** - * Insert the method's description here. Creation date: (03/19/01 3:34:45 PM) - * - * @param newCaughtExceptions - * java.util.List - */ - public void setCaughtExceptions(java.util.List newCaughtExceptions) { - caughtExceptions = newCaughtExceptions; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ArchiveException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ArchiveException.java deleted file mode 100644 index 5357b47d3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ArchiveException.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Base exception class for non-runtime exceptions occurring with manipulation of archives - */ -public class ArchiveException extends Exception { - /** - * - */ - private static final long serialVersionUID = 4340145465956505570L; - - /** - * - */ - public ArchiveException() { - super(); - } - - /** - * - */ - public ArchiveException(String s) { - super(s); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ArchiveRuntimeException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ArchiveRuntimeException.java deleted file mode 100644 index 11b1a5ae2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ArchiveRuntimeException.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - -import org.eclipse.jst.j2ee.internal.IWrappedException; -import org.eclipse.jst.j2ee.internal.WrappedRuntimeException; - - - -/** - * Base exception class for runtime exceptions occurring with manipulation of archives; there are - * some situations where we can only throw a runtime exception instead of a subtype of exception, - * because the signatures of etools generated methods cannot be overridden to throw any exception - * other than runtime. - */ -public class ArchiveRuntimeException extends WrappedRuntimeException implements IWrappedException { - /** - * - */ - private static final long serialVersionUID = -4727603215052186958L; - - /** - * Constructor for ArchiveRuntimeException. - */ - public ArchiveRuntimeException() { - super(); - } - - /** - * Constructor for ArchiveRuntimeException. - * - * @param e - */ - public ArchiveRuntimeException(Exception e) { - super(e); - } - - /** - * Constructor for ArchiveRuntimeException. - * - * @param s - */ - public ArchiveRuntimeException(String s) { - super(s); - } - - /** - * Constructor for ArchiveRuntimeException. - * - * @param s - * @param e - */ - public ArchiveRuntimeException(String s, Exception e) { - super(s, e); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ArchiveWrappedException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ArchiveWrappedException.java deleted file mode 100644 index 2396cb7fb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ArchiveWrappedException.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - -import org.eclipse.jst.j2ee.internal.IWrappedException; -import org.eclipse.jst.j2ee.internal.WrappedException; - - - -/** - * Base exception class for non-runtime exceptions occurring with manipulation of archives, where a - * caught exception causes this exception to be thrown - */ -public class ArchiveWrappedException extends WrappedException implements IWrappedException { - /** - * - */ - private static final long serialVersionUID = 3011655166037300546L; - - /** - * Constructor for ArchiveWrappedException. - */ - public ArchiveWrappedException() { - super(); - } - - /** - * Constructor for ArchiveWrappedException. - * - * @param e - */ - public ArchiveWrappedException(Exception e) { - super(e); - } - - /** - * Constructor for ArchiveWrappedException. - * - * @param s - */ - public ArchiveWrappedException(String s) { - super(s); - } - - /** - * Constructor for ArchiveWrappedException. - * - * @param s - * @param e - */ - public ArchiveWrappedException(String s, Exception e) { - super(s, e); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/DeploymentDescriptorLoadException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/DeploymentDescriptorLoadException.java deleted file mode 100644 index d7b8e6228..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/DeploymentDescriptorLoadException.java +++ /dev/null @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Exception which can occur if an error/exception occurs while loading a deployment descriptor - */ -public class DeploymentDescriptorLoadException extends ArchiveRuntimeException { - /** - * - */ - private static final long serialVersionUID = -3870314481148871665L; - - /** - * ResourceLoadException constructor comment. - */ - public DeploymentDescriptorLoadException() { - super(); - } - - /** - * ResourceLoadException constructor comment. - * - * @param e - * java.lang.Exception - */ - public DeploymentDescriptorLoadException(Exception e) { - super(e); - } - - /** - * ResourceLoadException constructor comment. - * - * @param s - * java.lang.String - */ - public DeploymentDescriptorLoadException(String s) { - super(s); - } - - /** - * ResourceLoadException constructor comment. - * - * @param s - * java.lang.String - * @param e - * java.lang.Exception - */ - public DeploymentDescriptorLoadException(String s, Exception e) { - super(s, e); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/DuplicateObjectException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/DuplicateObjectException.java deleted file mode 100644 index 9c8be7893..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/DuplicateObjectException.java +++ /dev/null @@ -1,72 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Exception which can occur when an attemp is made to add to a list an object equaling, or having - * the same name, id, etc, as another object in the list. - */ -public class DuplicateObjectException extends ArchiveException { - /** - * - */ - private static final long serialVersionUID = 7269139518957826130L; - protected Object duplicate; - - /** - * DuplicateObjectException constructor comment. - */ - public DuplicateObjectException() { - super(); - } - - /** - * DuplicateObjectException constructor comment. - * - * @param s - * java.lang.String - */ - public DuplicateObjectException(String s) { - super(s); - } - - /** - * DuplicateObjectException constructor comment. - * - * @param s - * java.lang.String - */ - public DuplicateObjectException(String s, Object o) { - super(s); - setDuplicate(o); - } - - /** - * Insert the method's description here. Creation date: (04/16/01 9:43:00 AM) - * - * @return java.lang.Object - */ - public java.lang.Object getDuplicate() { - return duplicate; - } - - /** - * Insert the method's description here. Creation date: (04/16/01 9:43:00 AM) - * - * @param newDuplicate - * java.lang.Object - */ - protected void setDuplicate(java.lang.Object newDuplicate) { - duplicate = newDuplicate; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/EmptyResourceException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/EmptyResourceException.java deleted file mode 100644 index 4d39f86b3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/EmptyResourceException.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Exception which occurs when a mof resource's extent contains zero elements and an attempt is made - * to access an elememt from the resource. - */ -public class EmptyResourceException extends ArchiveException { - /** - * - */ - private static final long serialVersionUID = -6482393304280160585L; - - /** - * EmptyResourceException constructor comment. - */ - public EmptyResourceException() { - super(); - } - - /** - * EmptyResourceException constructor comment. - * - * @param s - * java.lang.String - */ - public EmptyResourceException(String s) { - super(s); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/IArchiveWrappedException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/IArchiveWrappedException.java deleted file mode 100644 index aa97248eb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/IArchiveWrappedException.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - -import org.eclipse.jst.j2ee.internal.IWrappedException; - -/** - * @deprecated - * @see org.eclipse.jst.j2ee.internal.exception.IWrappedException - */ -public interface IArchiveWrappedException extends IWrappedException { - //Default -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ManifestException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ManifestException.java deleted file mode 100644 index 93fe20594..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ManifestException.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - -public class ManifestException extends ArchiveRuntimeException { - - /** - * - */ - private static final long serialVersionUID = 1045140899078192019L; - - /** - * Constructor for ManifestException. - */ - public ManifestException() { - super(); - } - - /** - * Constructor for ManifestException. - * - * @param e - */ - public ManifestException(Exception e) { - super(e); - } - - /** - * Constructor for ManifestException. - * - * @param s - */ - public ManifestException(String s) { - super(s); - } - - /** - * Constructor for ManifestException. - * - * @param s - * @param e - */ - public ManifestException(String s, Exception e) { - super(s, e); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NestedJarException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NestedJarException.java deleted file mode 100644 index 5828f5790..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NestedJarException.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Runtime exception thrown when an error occurs reading a jar within a jar - */ -public class NestedJarException extends ArchiveRuntimeException { - - /** - * - */ - private static final long serialVersionUID = -559954723242646381L; - - public NestedJarException() { - super(); - } - - public NestedJarException(Exception e) { - super(e); - } - - public NestedJarException(String s, Exception e) { - super(s, e); - } - - public NestedJarException(String s) { - super(s); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NoEJB10DescriptorsException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NoEJB10DescriptorsException.java deleted file mode 100644 index d9973e5b6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NoEJB10DescriptorsException.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Insert the type's description here. Creation date: (06/05/01 7:31:27 PM) - * - * @author: Administrator - */ -public class NoEJB10DescriptorsException extends RuntimeException { - /** - * - */ - private static final long serialVersionUID = 7222290886333179223L; - - /** - * NoEJB10DescriptorsException constructor comment. - */ - public NoEJB10DescriptorsException() { - super(); - } - - /** - * NoEJB10DescriptorsException constructor comment. - * - * @param s - * java.lang.String - */ - public NoEJB10DescriptorsException(String s) { - super(s); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NoModuleElementException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NoModuleElementException.java deleted file mode 100644 index 68bc7ecc1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NoModuleElementException.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * @deprecated No Longer used; check for null instead Exception which occurs if an attempt is made - * to access a non-existent module dd element from an ear file - */ -public class NoModuleElementException extends ArchiveException { - /** - * - */ - private static final long serialVersionUID = 3781813351160222774L; - - /** - * NoModuleElementException constructor comment. - */ - public NoModuleElementException() { - super(); - } - - /** - * NoModuleElementException constructor comment. - * - * @param s - * java.lang.String - */ - public NoModuleElementException(String s) { - super(s); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NoModuleFileException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NoModuleFileException.java deleted file mode 100644 index e1f435a4e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NoModuleFileException.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - -public class NoModuleFileException extends ArchiveRuntimeException { - - /** - * - */ - private static final long serialVersionUID = -7261084646147362776L; - - /** - * Constructor for NoModuleFileException. - */ - public NoModuleFileException() { - super(); - } - - /** - * Constructor for NoModuleFileException. - * - * @param e - */ - public NoModuleFileException(Exception e) { - super(e); - } - - /** - * Constructor for NoModuleFileException. - * - * @param s - */ - public NoModuleFileException(String s) { - super(s); - } - - /** - * Constructor for NoModuleFileException. - * - * @param s - * @param e - */ - public NoModuleFileException(String s, Exception e) { - super(s, e); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NotADeploymentDescriptorException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NotADeploymentDescriptorException.java deleted file mode 100644 index 418974546..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NotADeploymentDescriptorException.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Insert the type's description here. Creation date: (06/06/01 9:26:43 AM) - * - * @author: Administrator - */ -public class NotADeploymentDescriptorException extends Exception { - /** - * - */ - private static final long serialVersionUID = -9072252417343910963L; - - /** - * NotADeploymentDescriptorException constructor comment. - */ - public NotADeploymentDescriptorException() { - super(); - } - - /** - * NotADeploymentDescriptorException constructor comment. - * - * @param s - * java.lang.String - */ - public NotADeploymentDescriptorException(String s) { - super(s); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NotSupportedException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NotSupportedException.java deleted file mode 100644 index 435d13e4f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/NotSupportedException.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -public class NotSupportedException extends ArchiveWrappedException { - /** - * - */ - private static final long serialVersionUID = -6690631631593101382L; - - /** - * NotSupportedException constructor comment. - */ - public NotSupportedException() { - super(); - } - - /** - * NotSupportedException constructor comment. - * - * @param e - * java.lang.Exception - */ - public NotSupportedException(Exception e) { - super(e); - } - - /** - * NotSupportedException constructor comment. - * - * @param s - * java.lang.String - */ - public NotSupportedException(String s) { - super(s); - } - - /** - * NotSupportedException constructor comment. - * - * @param s - * java.lang.String - * @param e - * java.lang.Exception - */ - public NotSupportedException(String s, Exception e) { - super(s, e); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ObjectNotFoundException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ObjectNotFoundException.java deleted file mode 100644 index 1c266b007..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ObjectNotFoundException.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Insert the type's description here. Creation date: (02/08/01 8:33:51 PM) - * - * @author: Administrator - */ -public class ObjectNotFoundException extends ArchiveException { - /** - * - */ - private static final long serialVersionUID = 3539317762510485699L; - - /** - * ObjectNotFoundException constructor comment. - */ - public ObjectNotFoundException() { - super(); - } - - /** - * ObjectNotFoundException constructor comment. - * - * @param s - * java.lang.String - */ - public ObjectNotFoundException(String s) { - super(s); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/OpenFailureException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/OpenFailureException.java deleted file mode 100644 index c78d4a496..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/OpenFailureException.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Exception which occurs while opening an archive; could occur for a variety of reasons, eg, io - * failure, deployment descriptor errors, etc. Check the nested exception for more info. - */ -public class OpenFailureException extends ArchiveWrappedException { - /** - * - */ - private static final long serialVersionUID = -1786924156051091340L; - - /** - * OpenFailureException constructor comment. - */ - public OpenFailureException() { - super(); - } - - /** - * OpenFailureException constructor comment. - * - * @param e - * java.lang.Exception - */ - public OpenFailureException(Exception e) { - super(e); - } - - /** - * OpenFailureException constructor comment. - * - * @param s - * java.lang.String - */ - public OpenFailureException(String s) { - super(s); - } - - /** - * OpenFailureException constructor comment. - * - * @param s - * java.lang.String - * @param e - * java.lang.Exception - */ - public OpenFailureException(String s, Exception e) { - super(s, e); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ReopenException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ReopenException.java deleted file mode 100644 index be479db6f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ReopenException.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Exception which can be thrown as a result of an IO exception which may occur while "re-syncing" - * an archive after it has been saved. For example, if 10 files are copied from Archive A to Archive - * B, then archive b is saved, its contents will be loaded from a new source, the newly saved jar - * file. Therefore, the archive will be reopened after saving, which could result in an IOException. - */ -public class ReopenException extends ArchiveWrappedException { - /** - * - */ - private static final long serialVersionUID = -2797595721842336360L; - - /** - * ReopenException constructor comment. - */ - public ReopenException() { - super(); - } - - /** - * ReopenException constructor comment. - * - * @param e - * java.lang.Exception - */ - public ReopenException(Exception e) { - super(e); - } - - /** - * ReopenException constructor comment. - * - * @param s - * java.lang.String - */ - public ReopenException(String s) { - super(s); - } - - /** - * ReopenException constructor comment. - * - * @param s - * java.lang.String - * @param e - * java.lang.Exception - */ - public ReopenException(String s, Exception e) { - super(s, e); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ResourceLoadException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ResourceLoadException.java deleted file mode 100644 index 394c836bd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/ResourceLoadException.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Exception thrown if in exception other than java.io.FileNotFoundException is caught while - * attempting to load a mof resource. - */ -public class ResourceLoadException extends ArchiveRuntimeException { - /** - * - */ - private static final long serialVersionUID = -3337225489102635339L; - - /** - * ResourceLoadException constructor comment. - */ - public ResourceLoadException() { - super(); - } - - /** - * ResourceLoadException constructor comment. - * - * @param e - * java.lang.Exception - */ - public ResourceLoadException(Exception e) { - super(e); - } - - /** - * ResourceLoadException constructor comment. - * - * @param s - * java.lang.String - */ - public ResourceLoadException(String s) { - super(s); - } - - /** - * ResourceLoadException constructor comment. - * - * @param s - * java.lang.String - * @param e - * java.lang.Exception - */ - public ResourceLoadException(String s, Exception e) { - super(s, e); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/SaveFailureException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/SaveFailureException.java deleted file mode 100644 index b2bd5562b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/SaveFailureException.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -/** - * Exception which occurs while saving an archive; could occur for a variety of reasons, eg, io - * failure, etc. Check the nested exception for more info. - */ -public class SaveFailureException extends ArchiveWrappedException { - /** - * - */ - private static final long serialVersionUID = 8593253339847650246L; - - /** - * SaveFailureException constructor comment. - */ - public SaveFailureException() { - super(); - } - - /** - * SaveFailureException constructor comment. - * - * @param s - * java.lang.String - */ - public SaveFailureException(Exception e) { - super(e); - } - - /** - * SaveFailureException constructor comment. - * - * @param s - * java.lang.String - */ - public SaveFailureException(String s) { - super(s); - } - - /** - * SaveFailureException constructor comment. - * - * @param s - * java.lang.String - */ - public SaveFailureException(String s, Exception e) { - super(s, e); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/SubclassResponsibilityException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/SubclassResponsibilityException.java deleted file mode 100644 index 2c1ef6ee0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/SubclassResponsibilityException.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; - -/** - * Runtime exception used as a way to enforce abstract behavior without declaring the methods - * abstract. Necessary because impl classes in the etools generated hierarchy cannot be abstract if - * they have subtypes. - */ -public class SubclassResponsibilityException extends ArchiveRuntimeException { - /** - * - */ - private static final long serialVersionUID = -6815673671775564354L; - - /** - * SubclassResponsibilityException constructor comment. - */ - public SubclassResponsibilityException() { - super(); - } - - /** - * SubclassResponsibilityException constructor comment. - * - * @param s - * java.lang.String - */ - public SubclassResponsibilityException(String methodName) { - super(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.subclass_responsibilty_EXC_, (new Object[]{methodName}))); // = " must be implemented in subclass" - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/UncontainedModuleFileException.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/UncontainedModuleFileException.java deleted file mode 100644 index 61ed8253f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/exception/UncontainedModuleFileException.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.exception; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; - - -/** - * @deprecated Exception no longer thrown; check for null instead. Exception which may be thrown - * whenever a {@link ModuleFile}is expected to be contained within an ear file but it - * is not - */ -public class UncontainedModuleFileException extends ArchiveRuntimeException { - /** - * - */ - private static final long serialVersionUID = 7311775746549718190L; - - /** - * UncontainedModuleException constructor comment. - */ - public UncontainedModuleFileException() { - super(); - } - - /** - * UncontainedModuleException constructor comment. - * - * @param s - * java.lang.String - */ - public UncontainedModuleFileException(String s) { - super(s); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveConstants.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveConstants.java deleted file mode 100644 index 47418eeb1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveConstants.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - -import org.eclipse.jst.j2ee.internal.J2EEConstants; - - - -/** - * This is a catalog of useful constants for the archive support. Can be used to store relative - * paths to specific xml and xmi resources. - */ -public interface ArchiveConstants extends J2EEConstants { - //Standard Jar info - /** "com" */ - String RAR_CLASSES_URI = "com"; //$NON-NLS-1$ - - /** - * Relative path in a war file with no leading slash "WEB-INF/lib/" - */ - String WEBAPP_LIB_URI = "WEB-INF/lib/"; //$NON-NLS-1$ - - /** - * Relative path in a war file with no leading slash "WEB-INF/classes/" - */ - String WEBAPP_CLASSES_URI = "WEB-INF/classes/"; //$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveInit.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveInit.java deleted file mode 100644 index 9866325af..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveInit.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchiveFactory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigFactory; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; -import org.eclipse.jst.j2ee.internal.J2EEInit; -import org.eclipse.wst.common.internal.emf.utilities.ExtendedEcoreUtil; - - -/** - * Initializer class to preregister packages - */ -public class ArchiveInit { - protected static boolean initialized = false; - protected static boolean plugin_initialized = false; - - public static void init() { - init(true); - } - - public static void init(boolean shouldPreRegisterPackages) { - if (!initialized) { - initialized = true; - invokePrereqInits(shouldPreRegisterPackages); - if (shouldPreRegisterPackages) - preRegisterPackages(); - } - } - - private static void preRegisterPackages() { - //CommonarchivePackage reg - ExtendedEcoreUtil.preRegisterPackage("commonarchive.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return CommonarchivePackage.eINSTANCE; - } - public EFactory getEFactory() { - return CommonarchiveFactory.eINSTANCE; - } - }); - ExtendedEcoreUtil.preRegisterPackage("commonarchive.looseconfig.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return LooseconfigPackage.eINSTANCE; - } - public EFactory getEFactory() { - return LooseconfigFactory.eINSTANCE; - } - }); - } - - public static void invokePrereqInits(boolean shouldPreRegisterPackages) { - J2EEInit.init(shouldPreRegisterPackages); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveManifest.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveManifest.java deleted file mode 100644 index cc4d35094..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveManifest.java +++ /dev/null @@ -1,124 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.Map; -import java.util.jar.Attributes; - -/** - * Contains the API of - * - * @link java.util.jar.Manifest, along with added helpers - */ -public interface ArchiveManifest { - /** - * Creates a new manifest entry (attributes) for the given name - */ - public void addEntry(String entryName); - - public void addEntry(String entryName, Attributes attr); - - /** - * Adds the key/value pair to the attributes for the given entry name; if the entry does not - * exist, creates a new attributes - */ - public void addEntryAttribute(String entryName, String key, String value); - - /** - * Defaults the version to "1.0" if not already set - */ - public void addVersionIfNecessary(); - - public void appendClassPath(String extension); - - /** - * @see java.util.jar.Manifest#clear - */ - public void clear(); - - /** - * @see java.util.jar.Manifest#getAttributes - */ - public Attributes getAttributes(String name); - - public String getClassPath(); - - public String[] getClassPathTokenized(); - - /** - * @see java.util.jar.Manifest#getEntries - */ - public Map getEntries(); - - public String getEntryAttribute(String entryName, String key); - - /** - * @see java.util.jar.Manifest#getAttributes - */ - public Attributes getMainAttributes(); - - public String getMainClass(); - - /** - * Return the value iff the entry exists in a case-sensitive manner; manifest version is - * required for the manifest to save correctly - */ - public String getManifestVersion(); - - /** - * Return the value iff the entry exists in a case-sensitive manner; implementation version is - * optional in the manifest - * */ - public String getImplementationVersion(); - - /** - * Add all the entries not already contained in the class path of this manifest - */ - public void mergeClassPath(String[] classPathEntries); - - /** - * @see java.util.jar.Manifest#read - */ - public void read(InputStream is) throws IOException; - - public void removeEntry(String entryName); - - public void removeEntryAttribute(String entryName, Object key); - - public void setClassPath(String aSpaceDelimitedPath); - - public void setMainClass(String className); - - public void setManifestVersion(java.lang.String version); - - public void setImplemenationVersion(java.lang.String version); - - /** - * @see java.util.jar.Manifest#write - */ - public void write(OutputStream out) throws IOException; - - /** - * Writes the Manifest to the specified OutputStream, splitting each classpath entry on a line - * by itself. - * - * @param out - * the output stream - * @exception IOException - * if an I/O error has occurred - */ - public void writeSplittingClasspath(OutputStream out) throws IOException; -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveManifestImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveManifestImpl.java deleted file mode 100644 index 2d2feb6a1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveManifestImpl.java +++ /dev/null @@ -1,349 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import java.io.DataOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.util.Iterator; -import java.util.Map; -import com.ibm.icu.util.StringTokenizer; -import java.util.jar.Attributes; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; - - -/** - * Helper class for manifest files - */ -public class ArchiveManifestImpl extends java.util.jar.Manifest implements org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest { - /** - * ArchiveManifest constructor comment. - */ - public ArchiveManifestImpl() { - super(); - } - - /** - * ArchiveManifest constructor comment. - * - * @param is - * java.io.InputStream - * @throws java.io.IOException - * The exception description. - */ - public ArchiveManifestImpl(java.io.InputStream is) throws java.io.IOException { - super(is); - } - - /** - * ArchiveManifest constructor comment. - * - * @param man - * java.util.jar.Manifest - */ - public ArchiveManifestImpl(java.util.jar.Manifest man) { - super(man); - } - - /** - * Creates a new manifest entry (attributes) for the given name - */ - public void addEntry(String entryName) { - Attributes attr = new Attributes(); - addEntry(entryName, attr); - } - - public void addEntry(String entryName, Attributes attr) { - getEntries().put(entryName, attr); - } - - /** - * Adds the key/value pair to the attributes for the given entry name; if the entry does not - * exist, creates a new attributes - */ - public void addEntryAttribute(String entryName, String key, String value) { - Attributes attr = getAttributes(entryName); - if (attr == null) - addEntry(entryName); - attr = getAttributes(entryName); - attr.putValue(key, value); - } - - public void addVersionIfNecessary() { - //This is a hack because of the fact that the manifest does not serialize correctly if - //The version is not set. In addition to saves, the serialization is used for copy - if (getManifestVersion() == null || getManifestVersion().equals(""))//$NON-NLS-1$ - setManifestVersion("1.0");//$NON-NLS-1$ - } - - /** - * @see com.ibm.etools.archive.ArchiveManifest - */ - public void appendClassPath(java.lang.String extension) { - String classPath = getClassPath(); - if (classPath != null) - setClassPath(classPath + " " + extension);//$NON-NLS-1$ - else - setClassPath(extension); - } - - /** - * @see com.ibm.etools.archive.ArchiveManifest - */ - public java.lang.String getClassPath() { - return ArchiveUtil.getValueIgnoreKeyCase(Attributes.Name.CLASS_PATH.toString(), getMainAttributes()); - } - - /** - * @see com.ibm.etools.archive.ArchiveManifest - */ - public java.lang.String[] getClassPathTokenized() { - String classPath = getClassPath(); - if (classPath == null) - return new String[0]; - return org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil.getTokens(classPath); - } - - public String getEntryAttribute(String entryName, String key) { - Attributes attr = getAttributes(entryName); - if (attr == null) - return null; - return attr.getValue(key); - } - - public String getMainClass() { - return ArchiveUtil.getValueIgnoreKeyCase(Attributes.Name.MAIN_CLASS.toString(), getMainAttributes()); - } - - public String getManifestVersion() { - return getMainAttributes().getValue(Attributes.Name.MANIFEST_VERSION); - } - - /** - * @see com.ibm.etools.archive.ArchiveManifest - */ - public void mergeClassPath(java.lang.String[] classPathEntries) { - StringBuffer sb = new StringBuffer(); - java.util.List existing = java.util.Arrays.asList(getClassPathTokenized()); - String cp = getClassPath(); - if (cp != null) - sb.append(cp); - boolean empty = cp == null || "".equals(cp); //$NON-NLS-1$ - for (int i = 0; i < classPathEntries.length; i++) { - if (!existing.contains(classPathEntries[i])) { - if (!empty) - sb.append(" "); //$NON-NLS-1$ - else - empty = false; - sb.append(classPathEntries[i]); - } - } - setClassPath(sb.toString()); - } - - public void removeEntry(String entryName) { - getEntries().remove(entryName); - } - - public void removeEntryAttribute(String entryName, Object key) { - Attributes attr = getAttributes(entryName); - if (attr != null) - attr.remove(key); - } - - /** - * @see com.ibm.etools.archive.ArchiveManifest - */ - public void setClassPath(java.lang.String aSpaceDelimitedPath) { - Attributes attributes = getMainAttributes(); - if (aSpaceDelimitedPath == null) - attributes.remove(Attributes.Name.CLASS_PATH); - else - attributes.putValue(Attributes.Name.CLASS_PATH.toString(), aSpaceDelimitedPath); - } - - /** - * @see com.ibm.etools.archive.ArchiveManifest - */ - public void setMainClass(java.lang.String className) { - Attributes attributes = getMainAttributes(); - if (className == null) - attributes.remove(Attributes.Name.MAIN_CLASS); - else - attributes.putValue(Attributes.Name.MAIN_CLASS.toString(), className); - } - - /** - * @see com.ibm.etools.archive.ArchiveManifest - */ - public void setManifestVersion(java.lang.String version) { - Attributes attributes = getMainAttributes(); - attributes.putValue(Attributes.Name.MANIFEST_VERSION.toString(), version); - } - - /** - * Writes the Manifest to the specified OutputStream, splitting each classpath entry on a line - * by itself. - * - * @param out - * the output stream - * @exception IOException - * if an I/O error has occurred - */ - public void writeSplittingClasspath(OutputStream out) throws IOException { - DataOutputStream dos = new DataOutputStream(out); - // Write out the main attributes for the manifest - writeMainSplittingClasspath(getMainAttributes(), dos); - // Now write out the pre-entry attributes - Iterator it = getEntries().entrySet().iterator(); - while (it.hasNext()) { - Map.Entry e = (Map.Entry) it.next(); - StringBuffer buffer = new StringBuffer("Name: "); //$NON-NLS-1$ - buffer.append((String) e.getKey()); - buffer.append("\r\n"); //$NON-NLS-1$ - localMake72Safe(buffer); - dos.writeBytes(buffer.toString()); - write((Attributes) e.getValue(), dos); - } - dos.flush(); - } - - /* - * Writes the current attributes to the specified data output stream. XXX Need to handle UTF8 - * values and break up lines longer than 72 bytes - * - * @see Attributes#write - */ - protected void write(Attributes attributes, DataOutputStream os) throws IOException { - Iterator it = attributes.entrySet().iterator(); - while (it.hasNext()) { - Map.Entry e = (Map.Entry) it.next(); - StringBuffer buffer = new StringBuffer(((Attributes.Name) e.getKey()).toString()); - buffer.append(": "); //$NON-NLS-1$ - buffer.append(toUtf8((String) e.getValue())); - buffer.append("\r\n"); //$NON-NLS-1$ - localMake72Safe(buffer); - os.writeBytes(buffer.toString()); - } - os.writeBytes("\r\n"); //$NON-NLS-1$ - } - - /* - * Writes the current attributes to the specified data output stream, make sure to write out the - * MANIFEST_VERSION or SIGNATURE_VERSION attributes first. - * - * @see Attributes#writeMain - */ - protected void writeMainSplittingClasspath(Attributes attributes, DataOutputStream out) throws IOException { - // write out the *-Version header first, if it exists - String vername = Attributes.Name.MANIFEST_VERSION.toString(); - String version = toUtf8(attributes.getValue(vername)); - if (version == null) { - vername = Attributes.Name.SIGNATURE_VERSION.toString(); - version = toUtf8(attributes.getValue(vername)); - } - - if (version != null) { - out.writeBytes(vername + ": " + version + "\r\n"); //$NON-NLS-1$ //$NON-NLS-2$ - } - - // write out all attributes except for the version - // we wrote out earlier - Iterator it = attributes.entrySet().iterator(); - while (it.hasNext()) { - Map.Entry e = (Map.Entry) it.next(); - String name = ((Attributes.Name) e.getKey()).toString(); - if ((version != null) && !(name.equalsIgnoreCase(vername))) { - if (name.equalsIgnoreCase(Attributes.Name.CLASS_PATH.toString())) { - writeSplit(out, name, toUtf8((String) e.getValue())); - continue; - } - StringBuffer buffer = new StringBuffer(name); - buffer.append(": "); //$NON-NLS-1$ - buffer.append(toUtf8((String) e.getValue())); - buffer.append("\r\n"); //$NON-NLS-1$ - localMake72Safe(buffer); - out.writeBytes(buffer.toString()); - } - } - out.writeBytes("\r\n"); //$NON-NLS-1$ - } - - protected void writeSplit(DataOutputStream out, String name, String value) throws IOException { - StringTokenizer tok = new StringTokenizer(value); - int inc = 0; - while (tok.hasMoreTokens()) { - StringBuffer buffer = null; - if (inc == 0) { - buffer = new StringBuffer(name); - buffer.append(": "); //$NON-NLS-1$ - } else { - buffer = new StringBuffer(); - buffer.append(' '); - } - buffer.append(tok.nextToken()); - if (tok.countTokens() > 0) - buffer.append(" \r\n"); //$NON-NLS-1$ - else - buffer.append("\r\n"); //$NON-NLS-1$ - localMake72Safe(buffer); - out.writeBytes(buffer.toString()); - inc++; - } - } - - /** - * Adds line breaks to enforce a maximum 72 bytes per line. - */ - protected static void localMake72Safe(StringBuffer line) { - int length = line.length(); - if (length > 72) { - int index = 70; - while (index - 1 < length) { - line.insert(index, "\r\n "); //$NON-NLS-1$ - index += 72; - length += 3; - } - } - return; - } - - public String getImplementationVersion() { - return getMainAttributes().getValue(Attributes.Name.IMPLEMENTATION_VERSION); - } - - public void setImplemenationVersion(String version) { - Attributes attributes = getMainAttributes(); - attributes.putValue(Attributes.Name.IMPLEMENTATION_VERSION.toString(), version); - } - - /** - * Encodes a double-byte string into UTF8 form. Every character in the - * returned string represents one byte of the UTF8 encoding. - */ - - private String toUtf8( final String str ) throws IOException - { - if( str == null ) - { - return null; - } - else - { - final byte[] utf8 = str.getBytes( "UTF-8" ); - return new String( utf8, 0, 0, utf8.length ); - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveOptions.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveOptions.java deleted file mode 100644 index 98afdf9c2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveOptions.java +++ /dev/null @@ -1,247 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy; - - -/** - * Insert the type's description here. Creation date: (05/02/01 2:58:48 PM) - * - * @author: Administrator - */ -public class ArchiveOptions implements Cloneable { - - public static final int SAX = 1; - public static final int DOM = 2; - public static final int DEFAULT = 3; - - private int rendererType = DEFAULT; - - public static final int LOAD_MODE_COMPAT = 0; - public static final int LOAD_MODE_SPEC = 1; - - private int classLoadingMode = LOAD_MODE_COMPAT; - - - /** - * Load strategy for opening/reading the archive; optional - if null a load strategy will be - * created when the archive is opened - */ - private LoadStrategy loadStrategy; - /** - * Indicator for whether auto java reflection should be turned on in the archive - defaults to - * true - */ - private boolean useJavaReflection = true; - /** - * Indicator for whether the archive will be modified after opening or if it is just being - * opened, read, saved to a new location; this is an optimization to avoid temp file creation - * and saving of individual files within a nested archive if the nested archive will not change - - * defaults to false - */ - private boolean isReadOnly; - - /** - * Indicator for whether a libary nested in another archive (eg, utility JARs in an EAR) will be - * saved out as an ordinary file or as a nested Archive. When loaded into memory these files are - * treated as Archives, to support dynamic class loading for Java reflection of classes in - * EJBJarFiles and dependent JARs. An archive opened for edit, either by adding or removing - * files or changning the Manifest or a deployment descriptor, will be saved as a new file one - * file at a time. The default for this flag is true; it only applies to library Archives, not - * instances of ModuleFile. If you wish to edit a nested library, set this flag to false - */ - private boolean saveLibrariesAsFiles = true; - - - private boolean saveOnlyDirtyMofResources = true; - - /** - * By default, nested archives are treated as primitive archives and are not piped through the - * discriminator tree on the archive factory; module files in an EAR are opened using the - * specific open methods on the factory; change this flag if you'd like nested archives to be - * discriminated - */ - private boolean discriminateNestedArchives = false; - - private Map readOnlyFlags; - - /** - * ArchiveOptions constructor comment. - */ - public ArchiveOptions() { - super(); - } - - /** - * Make a copy of the reciever, setting the loadStrategy to null - */ - public Object clone() { - return cloneWith(null); - } - - /** - * Make a copy of the reciever, setting the loadStrategy to null - */ - public ArchiveOptions cloneWith(LoadStrategy aLoadStrategy) { - try { - ArchiveOptions result = (ArchiveOptions) super.clone(); - result.setLoadStrategy(aLoadStrategy); - result.readOnlyFlags = null; - return result; - } catch (CloneNotSupportedException ignore) { - return null; - } - } - - public ArchiveOptions cloneWith(LoadStrategy aLoadStrategy, String uri) { - ArchiveOptions result = cloneWith(aLoadStrategy); - result.setIsReadOnly(isReadOnly(uri)); - return result; - } - - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy getLoadStrategy() { - return loadStrategy; - } - - public boolean isReadOnly() { - return isReadOnly; - } - - /** - * Insert the method's description here. Creation date: (7/18/2001 2:42:11 PM) - * - * @return boolean - */ - public boolean saveOnlyDirtyMofResources() { - return saveOnlyDirtyMofResources; - } - - public void setIsReadOnly(boolean newIsReadOnly) { - isReadOnly = newIsReadOnly; - } - - public void setIsReadOnly(boolean readOnly, String uri) { - if (readOnlyFlags == null) - readOnlyFlags = new HashMap(); - readOnlyFlags.put(uri, new Boolean(readOnly)); - } - - public boolean isReadOnly(String uri) { - if (readOnlyFlags != null) { - Boolean bool = (Boolean) readOnlyFlags.get(uri); - if (bool != null) - return bool.booleanValue(); - } - return isReadOnly; - } - - public void setLoadStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy newLoadStrategy) { - loadStrategy = newLoadStrategy; - loadStrategy.setReadOnly(isReadOnly()); - loadStrategy.setRendererType(getRendererType()); - } - - /** - * Insert the method's description here. Creation date: (7/18/2001 2:42:11 PM) - * - * @param newSaveOnlyDirtyMofResources - * boolean - */ - public void setSaveOnlyDirtyMofResources(boolean newSaveOnlyDirtyMofResources) { - saveOnlyDirtyMofResources = newSaveOnlyDirtyMofResources; - } - - public void setUseJavaReflection(boolean newUseJavaReflection) { - useJavaReflection = newUseJavaReflection; - } - - public boolean useJavaReflection() { - return useJavaReflection; - } - - /** - * Gets the saveLibrariesAsFiles. - * - * @return Returns a boolean - */ - public boolean isSaveLibrariesAsFiles() { - return saveLibrariesAsFiles; - } - - /** - * Sets the saveLibrariesAsFiles. - * - * @param saveLibrariesAsFiles - * The saveLibrariesAsFiles to set - */ - public void setSaveLibrariesAsFiles(boolean saveLibrariesAsFiles) { - this.saveLibrariesAsFiles = saveLibrariesAsFiles; - } - - - /** - * Gets the discriminateNestedArchives. - * - * @return Returns a boolean - */ - public boolean shouldDiscriminateNestedArchives() { - return discriminateNestedArchives; - } - - /** - * Sets the discriminateNestedArchives. - * - * @param discriminateNestedArchives - * The discriminateNestedArchives to set - */ - public void setDiscriminateNestedArchives(boolean discriminateNestedArchives) { - this.discriminateNestedArchives = discriminateNestedArchives; - } - - /** - * @return Returns the rendererType. - */ - public int getRendererType() { - return rendererType; - } - - /** - * The rendererType allows a user to override the renderer used by Common Archive for special - * cases in the UI where you really want to use a non-synchronizing renderer. - * - * @param rendererType - * The rendererType to set. - */ - public void setRendererType(int rendererType) { - this.rendererType = rendererType; - } - - public int getClassLoadingMode() { - return classLoadingMode; - } - - /** - * Valid values are LOAD_MODE_COMPAT or LOAD_MODE_SPEC. The default is LOAD_MODE_COMPAT. This - * flag is to set the class loading mode; the default is LOAD_MODE_COMPAT for backwards - * compatibility, while LOAD_MODE_SPEC will enforce spec defined class loading. - * - * @param classLoadingMode - */ - public void setClassLoadingMode(int classLoadingMode) { - this.classLoadingMode = classLoadingMode; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveTypeDiscriminator.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveTypeDiscriminator.java deleted file mode 100644 index 9236586fd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveTypeDiscriminator.java +++ /dev/null @@ -1,80 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy; - - -/** - * An interface that defines an API for opening archives. The {@link CommonArchiveFactory} - * implementation uses a root level discriminator to open an archive. The main benefit of this api - * is it allows extended teams or third parties to plug in to the framework to allow specialized - * kinds of jar files do be discerned at creation/open time without the client having to provide a - * lot of logic. For example, a client would simply write - * <code>((CommonArchivePackage)EPackage.Registry.INSTANCE.getEPackage(CommonArchivePackage.eNS_URI)).getCommonArchiveFactory().open(aString)<code>, and get back - * the correct kind of archive instance. A discriminator contains children, which is an ordered list of discriminators, each of which - * can have its turn to determine if it can open an archive. The first one to succeed wins. Once a discriminator determines that it - * can open an archive, it gives each of its children the opportuntity to do something more specific, and so on. In the base - * implementation, discriminators are defined as single instances of an inner class for each import strategy. The following code shows - * how to register a discriminator for a specialized EJBJarFile: - * <code>EjbJar11ImportStrategyImpl.getDiscriminator().addChild(aDiscriminator);</code> - * This would be done as an initialization at startup time. If the child discriminator is ever invoked, the parent will have already - * determined that the archive is an EJBJarFile and will have converted it to that type. - */ -public interface ArchiveTypeDiscriminator { - public void addChild(ArchiveTypeDiscriminator child); - - /** - * @throws java.util.NoSuchElementException - * if the predecessor is not included in the list of children - */ - public void addChildAfter(ArchiveTypeDiscriminator child, ArchiveTypeDiscriminator predecessor) throws java.util.NoSuchElementException; - - /** - * @throws java.util.NoSuchElementException - * if the successor is not included in the list of children - */ - public void addChildBefore(ArchiveTypeDiscriminator child, ArchiveTypeDiscriminator successor) throws java.util.NoSuchElementException; - - /** - * Performs tests on the archive to determine if it is the kind this discriminator is interested - * in - */ - public boolean canImport(Archive anArchive); - - /** - * Factory method to create the import strategy for a converted archive - */ - public ImportStrategy createImportStrategy(Archive old, Archive newArchive); - - /** - * Return a string to be presented either through an exception or error message when a specific - * kind of archive is expected and this discriminator can't open it. - */ - public String getUnableToOpenMessage(); - - public boolean hasChild(ArchiveTypeDiscriminator disc); - - public boolean hasChildren(); - - /** - * Point of entry for attempting to open an archive - * - * @return a converted archive or null if this discriminator can't convert it - */ - public Archive openArchive(Archive anArchive) throws OpenFailureException; - - public void removeChild(ArchiveTypeDiscriminator child); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveTypeDiscriminatorImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveTypeDiscriminatorImpl.java deleted file mode 100644 index 9046b3c7b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveTypeDiscriminatorImpl.java +++ /dev/null @@ -1,180 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import java.util.List; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy; - - -/** - * @see ArchiveTypeDiscriminator - */ -public abstract class ArchiveTypeDiscriminatorImpl implements ArchiveTypeDiscriminator { - protected List children; - - public ArchiveTypeDiscriminatorImpl() { - super(); - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public void addChild(ArchiveTypeDiscriminator child) { - if (hasChild(child)) - return; - getChildren().add(child); - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public void addChildAfter(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator child, org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator predecessor) throws java.util.NoSuchElementException { - if (hasChild(child)) - return; - int index = getChildren().indexOf(predecessor); - if (index >= 0) { - index++; - getChildren().add(index, child); - } else { - throw new java.util.NoSuchElementException(predecessor.toString()); - } - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public void addChildBefore(ArchiveTypeDiscriminator child, ArchiveTypeDiscriminator successor) throws java.util.NoSuchElementException { - if (hasChild(child)) - return; - int index = getChildren().indexOf(successor); - if (index >= 0) { - getChildren().add(index, child); - } else { - throw new java.util.NoSuchElementException(successor.toString()); - } - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public abstract boolean canImport(Archive anArchive); - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public Archive convert(Archive anArchive) throws OpenFailureException { - Archive destination = createConvertedArchive(); - - //turn of notifications - destination.eSetDeliver(false); - destination.eSetDeliver(false); - - //Copy the relevant attributes - destination.setURI(anArchive.getURI()); - destination.setOriginalURI(anArchive.getURI()); - destination.setSize(anArchive.getSize()); - destination.setLastModified(anArchive.getLastModified()); - - destination.setLoadStrategy(anArchive.getLoadStrategy()); - destination.setOptions(anArchive.getOptions()); - destination.setExtraClasspath(anArchive.getExtraClasspath()); - if (destination.isModuleFile()) { - ImportStrategy importStrategy = createImportStrategy(anArchive, destination); - ((ModuleFile) destination).setImportStrategy(importStrategy); - } - - - - //turn notifications back on - destination.eSetDeliver(true); - destination.eSetDeliver(true); - - return destination; - } - - public abstract Archive createConvertedArchive(); - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public abstract ImportStrategy createImportStrategy(Archive old, Archive newArchive); - - public java.util.List getChildren() { - if (children == null) - children = new java.util.ArrayList(); - return children; - } - - /** - * Iterate through each child and attempt to convert the archive to the child's type; return the - * converted archive from the first child that succeeds, or null if no child succeeds or no - * child exists - */ - protected Archive getImportableArchiveFromChild(Archive anArchive) throws OpenFailureException { - if (!hasChildren()) { - return null; - } - List theChildren = getChildren(); - Archive childConvertedArchive = null; - for (int i = 0; i < theChildren.size(); i++) { - ArchiveTypeDiscriminator child = (ArchiveTypeDiscriminator) theChildren.get(i); - childConvertedArchive = child.openArchive(anArchive); - if (childConvertedArchive != null) { - return childConvertedArchive; - } - } - return null; - } - - protected String getXmlDDMessage(String archiveType, String ddUri) { - return CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.invalid_archive_EXC_, (new Object[]{archiveType, ddUri})); // = "Archive is not a valid {0} because the deployment descriptor can not be found (case sensitive): {1}" - } - - public boolean hasChild(ArchiveTypeDiscriminator disc) { - return hasChildren() && getChildren().contains(disc); - } - - public boolean hasChildren() { - return children != null && children.size() > 0; - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public Archive openArchive(Archive anArchive) throws OpenFailureException { - if (!canImport(anArchive)) { - return null; - } - Archive convertedArchive = convert(anArchive); - Archive childConvertedArchive = getImportableArchiveFromChild(convertedArchive); - if (childConvertedArchive != null) - return childConvertedArchive; - return convertedArchive; - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public void removeChild(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator child) { - getChildren().remove(child); - } - - public void setChildren(java.util.List newChildren) { - children = newChildren; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveURIConverterImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveURIConverterImpl.java deleted file mode 100644 index 6c4982a02..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ArchiveURIConverterImpl.java +++ /dev/null @@ -1,309 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.net.MalformedURLException; -import java.net.URL; -import java.net.URLConnection; -import com.ibm.icu.util.StringTokenizer; -import java.util.zip.ZipEntry; -import java.util.zip.ZipFile; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.impl.URIConverterImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy; - - -/** - * Helper class used for loading of mof resources contained within an archive; knows how to retrieve - * an input stream for a given uri - */ -public class ArchiveURIConverterImpl extends URIConverterImpl { - protected static final String fileProtocol = "file"; //$NON-NLS-1$ - protected static final String platformProtocol = "platform"; //$NON-NLS-1$ - private String inFilepath, outFilepath; - - public ArchiveURIConverterImpl(org.eclipse.jst.j2ee.commonarchivecore.internal.Archive anArchive, String resourcesPath) { - setArchive(anArchive); - this.resourcesPath = resourcesPath; - setInputFilepath(resourcesPath); - String outpath = resourcesPath; - if (outpath == null) { - LoadStrategy l = anArchive.getLoadStrategy(); - if (l != null && l.isDirectory()) { - try { - outpath = l.getAbsolutePath(); - } catch (FileNotFoundException ignore) { - //Ignore - } - } - } - setOutputFilepath(outpath); - } - - /** The archive from which resources will be loaded */ - protected org.eclipse.jst.j2ee.commonarchivecore.internal.Archive archive; - protected String resourcesPath; - - public org.eclipse.jst.j2ee.commonarchivecore.internal.Archive getArchive() { - return archive; - } - - public InputStream createInputStream(URI uri) throws IOException { - InputStream in = null; - if (resourcesPath != null) - in = makeInputStream(uri); - if (in != null) - return in; - return getArchive().getInputStream(uri.toString()); - } - - public void setArchive(org.eclipse.jst.j2ee.commonarchivecore.internal.Archive newArchive) { - archive = newArchive; - } - - /** - * Gets the resourcesPath. - * - * @return Returns a String - */ - public String getResourcesPath() { - return resourcesPath; - } - - /** - * Sets the resourcesPath. - * - * @param resourcesPath - * The resourcesPath to set - */ - public void setResourcesPath(String resourcesPath) { - this.resourcesPath = resourcesPath; - setInputFilepath(resourcesPath); - setOutputFilepath(resourcesPath); - } - - public URI normalize(URI uri) { - return getInternalURIMap().getURI(uri); - } - - /** - * The input file path consists of a string of directories or zip files separated by semi-colons - * that are searched when an input stream is constructed. - * - * @return The file path - */ - public String getInputFilepath() { - return inFilepath; - } - - /** - * @param filepath - * The file path - */ - public void setInputFilepath(String filepath) { - inFilepath = filepath; - } - - /** - * @return The output file path - */ - public String getOutputFilepath() { - return outFilepath; - } - - /** - * The output file path is the path name of a directory to prepend to relative file path names - * when an output stream is constructed. - * - * @param filepath - * The output file path - */ - public void setOutputFilepath(String filepath) { - outFilepath = filepath; - } - - /** - * Convert the URI to an input stream. - * - * @param uri - * The uri - */ - public InputStream makeInputStream(URI uri) throws IOException { - URI converted = uri; - - if ((fileProtocol.equals(converted.scheme()) || converted.scheme() == null) && inFilepath != null) { - return searchFilePath(converted.toString()); - } - URL url = createURL(converted.toString()); - URLConnection urlConnection = url.openConnection(); - return urlConnection.getInputStream(); - } - - /** - * Search the file path if the file portion of the URL is not absolute (does not begin with "/"; - * otherwise, attempt to create an input stream for the file. - */ - protected InputStream searchFilePath(String filename) throws IOException { - File file = new File(filename); - if (file.isAbsolute()) - return new FileInputStream(file); - StringTokenizer st = new StringTokenizer(inFilepath, ";"); //$NON-NLS-1$ - while (st.hasMoreTokens()) { - String f = st.nextToken(); - ZipFile zf = null; - try { - zf = new ZipFile(f); - } catch (Exception e) { - //Ignore - } - InputStream in = null; - if (zf != null) { - in = searchZipFile(zf, filename); - if (in == null) - try { - zf.close(); - } catch (Exception e) { - //Ignore - } - } else { - in = searchDirectory(f, filename); - } - if (in != null) - return in; - } - return null; - } - - /** - * This method determines whether the file with the relative path name of filename exists in the - * given directory. If not, it returns null; otherwise, it opens the file up and returns the - * input source. - * - * @param dir - * java.lang.String - * @return java.io.InputSource - */ - protected InputStream searchDirectory(String dir, String filename) throws IOException { - if (dir.equals(".")) //$NON-NLS-1$ - dir = System.getProperty("user.dir"); //$NON-NLS-1$ - File f = new File(dir + System.getProperty("file.separator") + filename.replace('/', File.separatorChar)); //$NON-NLS-1$ - if (!f.exists()) - return null; - return new FileInputStream(f); - } - - /** - * This method determines whether there is a ZipEntry whose name is filename in the given - * ZipFile. If not, it returns null; otherwise, it returns an input source to read from the - * ZipEntry. - * - * @param zip - * java.util.zip.ZipFile - * @return java.io.InputSource - */ - protected InputStream searchZipFile(ZipFile zip, String filename) throws IOException { - ZipEntry entry = zip.getEntry(filename); - if (entry == null) - return null; - return zip.getInputStream(entry); - } - - /** - * Make a URL from the uri; if the attempt fails, attempt to append "file:" to the URI; if the - * attempt still fails, attempt to replace the protocol with the file protocol. - * - * @param uri - * The string uri - */ - public URL createURL(String uri) throws MalformedURLException { - MalformedURLException m = null; - if (uri == null) - return null; - URL url = null; - try { - url = new URL(uri); - } catch (Exception e) { - m = (MalformedURLException) e; - } - if (url != null) - return url; - // Either treat the URI as a filepath (if there are no : or - // a : in position 1) or replace the given protocol with the - // file protocol. - int index = uri.indexOf(":"); //$NON-NLS-1$ - if (index == -1 || index == 1) - uri = fileProtocol + ":" + uri; //$NON-NLS-1$ - else if (index > 0) - uri = fileProtocol + ":" + uri.substring(index + 1); //$NON-NLS-1$ - try { - url = new URL(uri); - } catch (Exception e) { - //Ignore - } - if (url != null) - return url; - throw m; - } - - /** - * Convert the URI to an output stream. - * - * @param uri - * The uri - */ - public OutputStream createOutputStream(URI uri) throws IOException { - URI converted = uri; - if (platformProtocol.equals(converted.scheme())) { - URL resolvedURL = resolvePlatform(new URL(converted.toString())); - if (resolvedURL != null) { - converted = URI.createFileURI(resolvedURL.getFile()); - } - } - if (fileProtocol.equals(converted.scheme()) || converted.scheme() == null) { - return openFileOutputStream(converted); - } - URL url = createURL(converted.toString()); - URLConnection urlConnection = url.openConnection(); - urlConnection.setDoOutput(true); - return urlConnection.getOutputStream(); - } - - protected URL resolvePlatform(URL url) throws IOException { - // let WorkbenchURIConverter implement this one. - return null; - } - - /** - * Open a file output stream for the given uri (the uri has file protocol). If an output file - * path is specified and the file name is relative, prepend the output file path to the file - * name. Make the directories that contain the file if they do not exist. - */ - protected OutputStream openFileOutputStream(URI uri) throws IOException { - File file = new File(uri.toFileString()); - if (!file.isAbsolute() && outFilepath != null) { - file = new File(outFilepath + File.separator + uri.toFileString()); - } - String parent = file.getParent(); - if (parent != null) { - new File(parent).mkdirs(); - } - OutputStream outputStream = new FileOutputStream(file); - return outputStream; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ExportStrategy.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ExportStrategy.java deleted file mode 100644 index 89b080090..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ExportStrategy.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ArchiveStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy; - - - -/** - * ExportStrategy knows what to do just before a dump of an archive is about to occur, typically - * adding items such as deployment descriptors and such. This provides a delegation model for - * archive/version/platform specific rules about which resources etc need to be exported. Clients - * can implement this interface, and "plug in" to an instance of an archive. - */ -public interface ExportStrategy extends ArchiveStrategy { - /** - * Returns whether this strategy has already saved a file entry having a uri named by the - * parameter - */ - public boolean hasSaved(String uri); - - /** - * The archive is saving itself, and giving the export strategy the opportunity to do whatever - * it needs to do. The export strategy may write entries directly to the SaveStrategy, but if it - * does, it should remember the names of these entries so the archive does not attempt to - * duplicate by saving an entry with the same name - */ - public void preSave(SaveStrategy aSaveStrategy) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/FileExtensionsFilterImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/FileExtensionsFilterImpl.java deleted file mode 100644 index 7fb9b7c73..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/FileExtensionsFilterImpl.java +++ /dev/null @@ -1,143 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import java.util.Set; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; - - -/** - * Insert the type's description here. Creation date: (02/28/01 1:20:09 PM) - * - * @author: Administrator - */ -public class FileExtensionsFilterImpl extends SaveFilterImpl implements org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilter { - protected Set excludedExtensions; - protected boolean isCaseSensitive = false; - protected Set excludedExtensionsAsUppercase; - - /** - * FileExtensionsFilterImpl constructor comment. - */ - public FileExtensionsFilterImpl(String[] extensionsToExclude, boolean caseSensitive) { - super(); - Set extensions = new java.util.HashSet(); - for (int i = 0; i < extensionsToExclude.length; i++) { - extensions.add(extensionsToExclude[i]); - } - setExcludedExtensions(extensions); - setIsCaseSensitive(caseSensitive); - initialize(); - } - - /** - * FileExtensionsFilterImpl constructor comment. - */ - public FileExtensionsFilterImpl(String extension, boolean caseSensitive) { - super(); - Set extensions = new java.util.HashSet(1); - extensions.add(extension); - setExcludedExtensions(extensions); - setIsCaseSensitive(caseSensitive); - initialize(); - } - - /** - * FileExtensionsFilterImpl constructor comment. - */ - public FileExtensionsFilterImpl(Set extensionsToExclude, boolean caseSensitive) { - super(); - setExcludedExtensions(extensionsToExclude); - setIsCaseSensitive(caseSensitive); - initialize(); - } - - /** - * Insert the method's description here. Creation date: (02/28/01 1:24:28 PM) - * - * @return java.util.Set - */ - public java.util.Set getExcludedExtensions() { - return excludedExtensions; - } - - /** - * Insert the method's description here. Creation date: (02/28/01 2:42:20 PM) - * - * @return java.util.Set - */ - protected java.util.Set getExcludedExtensionsAsUppercase() { - return excludedExtensionsAsUppercase; - } - - protected void initialize() { - if (isCaseSensitive()) - return; - - java.util.HashSet aSet = new java.util.HashSet(); - java.util.Iterator it = getExcludedExtensions().iterator(); - while (it.hasNext()) { - aSet.add(((String) it.next()).toUpperCase()); - } - setExcludedExtensionsAsUppercase(aSet); - } - - public boolean isCaseSensitive() { - return isCaseSensitive; - } - - /** - * Insert the method's description here. Creation date: (02/28/01 1:24:28 PM) - * - * @param newExcludedExtensions - * java.util.Set - */ - protected void setExcludedExtensions(java.util.Set newExcludedExtensions) { - excludedExtensions = newExcludedExtensions; - } - - /** - * Insert the method's description here. Creation date: (02/28/01 2:42:20 PM) - * - * @param newExcludedExtensionsAsUppercase - * java.util.Set - */ - protected void setExcludedExtensionsAsUppercase(java.util.Set newExcludedExtensionsAsUppercase) { - excludedExtensionsAsUppercase = newExcludedExtensionsAsUppercase; - } - - protected void setIsCaseSensitive(boolean value) { - isCaseSensitive = value; - } - - /** - * @see com.ibm.etools.archive.SaveFilter - */ - public boolean shouldSave(String uri, Archive anArchive) { - String extension = org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil.getFileNameExtension(uri); - if (extension.equals(""))//$NON-NLS-1$ - return true; - - Set excluded; - if (isCaseSensitive()) { - excluded = getExcludedExtensions(); - } else { - excluded = getExcludedExtensionsAsUppercase(); - extension = extension.toUpperCase(); - } - - return !excluded.contains(extension); - - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/FileIterator.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/FileIterator.java deleted file mode 100644 index 9502b6165..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/FileIterator.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import java.io.InputStream; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; - - -/** - * Insert the type's description here. Creation date: (05/02/01 5:20:00 PM) - * - * @author: Administrator - */ -public interface FileIterator { - public InputStream getInputStream(File aFile) throws java.io.IOException, java.io.FileNotFoundException; - - public boolean hasNext(); - - public File next(); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/FileIteratorImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/FileIteratorImpl.java deleted file mode 100644 index b1f4641e5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/FileIteratorImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import java.io.InputStream; -import java.util.List; -import java.util.NoSuchElementException; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; - - -public class FileIteratorImpl implements FileIterator { - protected List files; - protected int position = 0; - - /** - * Insert the method's description here. Creation date: (05/02/01 6:16:52 PM) - */ - public FileIteratorImpl() { - //Default - } - - public FileIteratorImpl(List theFiles) { - super(); - files = theFiles; - } - - public InputStream getInputStream(File aFile) throws java.io.IOException, java.io.FileNotFoundException { - return aFile.getInputStream(); - } - - public boolean hasNext() { - return position < files.size(); - } - - public File next() { - if (!hasNext()) - throw new NoSuchElementException(CommonArchiveResourceHandler.End_of_list_reached_EXC_); // = "End of list reached" - return (File) files.get(position++); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ManifestPackageEntryImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ManifestPackageEntryImpl.java deleted file mode 100644 index a3ef827a1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ManifestPackageEntryImpl.java +++ /dev/null @@ -1,110 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - - -/** - * Used for manifest support. - */ -public class ManifestPackageEntryImpl extends java.util.jar.Attributes { - static final String NAME = "Name";//$NON-NLS-1$ - static final String SPECIFICATION_TITLE = "Specification-Title";//$NON-NLS-1$ - static final String SPECIFICATION_VERSION = "Specification-Version";//$NON-NLS-1$ - static final String SPECIFICATION_VENDOR = "Specification-Vendor";//$NON-NLS-1$ - static final String IMPLEMENTATION_TITLE = "Implementation-Title";//$NON-NLS-1$ - static final String IMPLEMENTATION_VERSION = "Implementation-Version";//$NON-NLS-1$ - static final String IMPLEMENTATION_VENDOR = "Implementation-Vendor";//$NON-NLS-1$ - - /** - * ManifestPackageEntry constructor comment. - */ - public ManifestPackageEntryImpl() { - super(); - } - - /** - * ManifestPackageEntry constructor comment. - * - * @param size - * int - */ - public ManifestPackageEntryImpl(int size) { - super(size); - } - - /** - * ManifestPackageEntry constructor comment. - * - * @param attr - * java.util.jar.Attributes - */ - public ManifestPackageEntryImpl(java.util.jar.Attributes attr) { - super(attr); - } - - public String getImplementationTitle() { - return (String) get(IMPLEMENTATION_TITLE); - } - - public String getImplementationVendor() { - return (String) get(IMPLEMENTATION_VENDOR); - } - - public String getImplementationVersion() { - return (String) get(IMPLEMENTATION_VERSION); - } - - public String getName() { - return (String) get(NAME); - } - - public String getSpecificationTitle() { - return (String) get(SPECIFICATION_TITLE); - } - - public String getSpecificationVendor() { - return (String) get(SPECIFICATION_VENDOR); - } - - public String getSpecificationVersion() { - return (String) get(SPECIFICATION_VERSION); - } - - public void setImplementationTitle(String value) { - put(IMPLEMENTATION_TITLE, value); - } - - public void setImplementationVendor(String value) { - put(IMPLEMENTATION_VENDOR, value); - } - - public void setImplementationVersion(String value) { - put(IMPLEMENTATION_VERSION, value); - } - - public void setName(String value) { - put(NAME, value); - } - - public void setSpecificationTitle(String value) { - put(SPECIFICATION_TITLE, value); - } - - public void setSpecificationVendor(String value) { - put(SPECIFICATION_VENDOR, value); - } - - public void setSpecificationVersion(String value) { - put(SPECIFICATION_VERSION, value); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/NestedArchiveIterator.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/NestedArchiveIterator.java deleted file mode 100644 index 622d94034..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/NestedArchiveIterator.java +++ /dev/null @@ -1,77 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import java.io.FilterInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.List; -import java.util.zip.ZipEntry; -import java.util.zip.ZipInputStream; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveRuntimeException; - - -public class NestedArchiveIterator extends FileIteratorImpl { - protected ZipInputStream zipInputStream; - protected ZipEntry currentEntry; - - static class WrapperInputStream extends FilterInputStream { - /** - * @param in - */ - public WrapperInputStream(InputStream in) { - super(in); - // TODO Auto-generated constructor stub - } - - /* - * (non-Javadoc) - * - * @see java.io.FilterInputStream#close() - */ - public void close() throws IOException { - //do nothing because we want to prevent the clients from closing the zip - } - } - - /** - * NestedArchiveIterator constructor comment. - */ - public NestedArchiveIterator(List theFiles, ZipInputStream stream) { - super(theFiles); - zipInputStream = stream; - } - - public InputStream getInputStream(File aFile) throws java.io.IOException, java.io.FileNotFoundException { - if (!aFile.getURI().equals(currentEntry.getName())) - throw new java.io.IOException(CommonArchiveResourceHandler.Internal_Error__Iterator_o_EXC_); // = "Internal Error: Iterator out of sync with zip entries" - return new WrapperInputStream(zipInputStream); - } - - public File next() { - File next = super.next(); - try { - do { - currentEntry = zipInputStream.getNextEntry(); - } while (currentEntry.isDirectory()); - } catch (java.io.IOException ex) { - throw new ArchiveRuntimeException(CommonArchiveResourceHandler.Error_iterating_the_archiv_EXC_, ex); // = "Error iterating the archive" - } - return next; - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ResourceProxyValidator.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ResourceProxyValidator.java deleted file mode 100644 index a28a3b9c4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/ResourceProxyValidator.java +++ /dev/null @@ -1,107 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Jun 11, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * @author cbridgha - * - * To change the template for this generated type comment go to Window>Preferences>Java>Code - * Generation>Code and Comments - */ -final class ResourceProxyValidator { - static HashMap resourceURIMap = new HashMap(); - - private static void resolveContainedProxies(EObject refObject) { - List contained = refObject.eContents(); - EObject mofObject; - for (int i = 0; i < contained.size(); i++) { - mofObject = (EObject) contained.get(i); - resolveProxies(mofObject); - } - } - - private static void resolveNonContainedProxies(EObject refObject) { - List references = refObject.eClass().getEAllReferences(); - EReference reference; - EObject proxyOrObject; - for (int i = 0; i < references.size(); i++) { - reference = (EReference) references.get(i); - if (!reference.isContainment() && !reference.isTransient()) { - if (reference.isMany()) { - Iterator value = ((List) refObject.eGet(reference)).iterator(); - while (value.hasNext()) { - proxyOrObject = (EObject) value.next(); - if (proxyOrObject.eIsProxy()) - value.remove(); - } - } else { - proxyOrObject = (EObject) refObject.eGet(reference, false); - if (proxyOrObject != null && proxyOrObject.eIsProxy()) { - URI resourceURI = ((EObjectImpl) proxyOrObject).eProxyURI().trimFragment(); - String protocol = resourceURI.scheme(); - if (protocol == null || !protocol.equals("java")) { //$NON-NLS-1$ - String id = ((EObjectImpl) proxyOrObject).eProxyURI().fragment(); - if (resourceURIMap.get(resourceURI) != null) { - Resource cachedResource = (Resource) resourceURIMap.get(resourceURI); - proxyOrObject = (EObject) ((XMLResource) cachedResource).getIDToEObjectMap().get(id); - } else { - proxyOrObject = (EObject) refObject.eGet(reference); - resourceURIMap.put(resourceURI, proxyOrObject.eResource()); - } - if (proxyOrObject == null || proxyOrObject.eIsProxy()) - refObject.eSet(reference, null); - } - } - } - } - } - } - - private static void resolveProxies(EObject refObject) { - if (refObject != null) { - resolveNonContainedProxies(refObject); - resolveContainedProxies(refObject); - } - } - - /** - * Force all of the proxies with <code>resource</code> to be resolved. - */ - static void checkForUnresolvableProxies(Resource resource) { - resourceURIMap = new HashMap(); //Reset hashmap on each call - if (resource != null) { - List topLevels = resource.getContents(); - EObject mofObject; - for (int i = 0; i < topLevels.size(); i++) { - mofObject = (EObject) topLevels.get(i); - resolveProxies(mofObject); - } - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/RuntimeClasspathEntry.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/RuntimeClasspathEntry.java deleted file mode 100644 index 3281c6716..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/RuntimeClasspathEntry.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; - -public interface RuntimeClasspathEntry { - - - /** - * The resolved absolute path of the entry - */ - String getAbsolutePath(); - - void setAbsolutePath(String absolutePath); - - /** - * A single token from the Class-Path: attrbute - */ - String getManifestValue(); - - void setManifestValue(String manifestValue); - - /** - * valid only if this entry is a library in a WARFile, under WEB-INF/lib - */ - WARFile getWarFile(); - - void setWarFile(WARFile aWarFile); - - /** - * true if this entry is a library in a WAR file - */ - boolean isWebLib(); - - /** - * The resolved archive inside an EAR that this entry points to; Note that this is NOT the - * Archive that has the entry in the manifest, but rather the referenced archive/ - */ - Archive getReferencedArchive(); - - void setReferencedArchive(Archive anArchive); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/RuntimeClasspathEntryImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/RuntimeClasspathEntryImpl.java deleted file mode 100644 index caf60cb51..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/RuntimeClasspathEntryImpl.java +++ /dev/null @@ -1,135 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; - -public class RuntimeClasspathEntryImpl implements RuntimeClasspathEntry { - - /** A single token from the Class-Path: attrbute */ - protected String manifestValue; - /** The resolved absolute path of the entry */ - protected String absolutePath; - /** valid only if this entry is a library in a WARFile, under WEB-INF/lib */ - protected WARFile warFile; - - protected Archive referencedArchive; - - /** - * Constructor for ManifestClasspathEntryImpl. - */ - public RuntimeClasspathEntryImpl() { - super(); - } - - /** - * Gets the absolutePath. - * - * @return Returns a String - */ - public String getAbsolutePath() { - return absolutePath; - } - - /** - * Sets the absolutePath. - * - * @param absolutePath - * The absolutePath to set - */ - public void setAbsolutePath(String absolutePath) { - this.absolutePath = absolutePath; - } - - /** - * Gets the manifestValue. - * - * @return Returns a String - */ - public String getManifestValue() { - return manifestValue; - } - - /** - * Sets the manifestValue. - * - * @param manifestValue - * The manifestValue to set - */ - public void setManifestValue(String manifestValue) { - this.manifestValue = manifestValue; - } - - - - /** - * Gets the warFile. - * - * @return Returns a WARFile - */ - public WARFile getWarFile() { - return warFile; - } - - /** - * Sets the warFile. - * - * @param warFile - * The warFile to set - */ - public void setWarFile(WARFile warFile) { - this.warFile = warFile; - } - - public String toString() { - return getAbsolutePath(); - } - - public boolean equals(Object o) { - if (o instanceof RuntimeClasspathEntry) - return getAbsolutePath().equals(((RuntimeClasspathEntry) o).getAbsolutePath()); - return false; - } - - public int hashCode() { - return getAbsolutePath().hashCode(); - } - - - /** - * @see RuntimeClasspathEntry#isWebLib() - */ - public boolean isWebLib() { - return warFile != null; - } - - /** - * Gets the referencedArchive. - * - * @return Returns a Archive - */ - public Archive getReferencedArchive() { - return referencedArchive; - } - - /** - * Sets the referencedArchive. - * - * @param referencedArchive - * The referencedArchive to set - */ - public void setReferencedArchive(Archive referencedArchive) { - this.referencedArchive = referencedArchive; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/SaveFilter.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/SaveFilter.java deleted file mode 100644 index 8ee945038..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/SaveFilter.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy; - -/** - * Object used for saving an archive with only a subset of its files. By default all files are - * saved. Clients can create a custom filter and set it on a save strategy, and call - * {@link Archive#save(SaveStrategy)} - */ -public interface SaveFilter { - /** - * Answer whether an element in the archive having the uri should be saved; the uri may be for a - * file, a nested archive, or a loaded mof resource - */ - public boolean shouldSave(String uri, Archive anArchive); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/SaveFilterImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/SaveFilterImpl.java deleted file mode 100644 index de041ecf4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/SaveFilterImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; - - - -/** - * Default filter which allows all elememts to save - */ -public class SaveFilterImpl implements org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilter { - /** - * SaveFilterImpl constructor comment. - */ - public SaveFilterImpl() { - super(); - } - - /** - * @see com.ibm.etools.archive.SaveFilter - */ - public boolean shouldSave(java.lang.String uri, Archive anArchive) { - return true; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/SelectedFilesFilterImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/SelectedFilesFilterImpl.java deleted file mode 100644 index 4b81f724d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/SelectedFilesFilterImpl.java +++ /dev/null @@ -1,83 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.helpers; - - - -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; - - -/** - * Insert the type's description here. Creation date: (03/23/01 11:04:52 AM) - * - * @author: Administrator - */ -public class SelectedFilesFilterImpl extends SaveFilterImpl { - /** Set of file uris to be saved */ - protected Set selectedFileNames; - - /** - * SelectedFilesFilterImpl constructor comment. - */ - public SelectedFilesFilterImpl() { - super(); - } - - /** - * Constructor with a preselected subset of the files in the archive to be saved; each element - * in the list must be an instance of {@link com.ibm.etools.commonarchive.File} - */ - public SelectedFilesFilterImpl(List archiveFiles) { - super(); - Set fileNames = new HashSet(); - for (int i = 0; i < archiveFiles.size(); i++) { - File aFile = (File) archiveFiles.get(i); - fileNames.add(aFile.getURI()); - } - setSelectedFileNames(fileNames); - } - - /** - * Parameter must be a set of valid uris in the archive - */ - public SelectedFilesFilterImpl(Set fileNames) { - super(); - setSelectedFileNames(fileNames); - } - - /** - * Insert the method's description here. Creation date: (03/23/01 11:19:01 AM) - * - * @return java.util.Set - */ - public java.util.Set getSelectedFileNames() { - return selectedFileNames; - } - - /** - * Insert the method's description here. Creation date: (03/23/01 11:19:01 AM) - * - * @param newSelectedFileNames - * java.util.Set - */ - public void setSelectedFileNames(java.util.Set newSelectedFileNames) { - selectedFileNames = newSelectedFileNames; - } - - public boolean shouldSave(java.lang.String uri, Archive anArchive) { - return getSelectedFileNames().contains(uri); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/AltResourceRegister.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/AltResourceRegister.java deleted file mode 100644 index 253d7a181..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/AltResourceRegister.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - -import java.util.Collections; -import java.util.HashSet; -import java.util.Set; - -public class AltResourceRegister { - protected static Set registeredURIs = new HashSet(); - - protected AltResourceRegister() { - //Default - } - - - /** - * Registers an Archive relative path for the resource which can be copied up as an alt in an - * EAR file. The uri should be in cananonical form and use the forward slash, eg, - * "META-INF/vendor-extensions.xmi" - */ - public static void registerURI(String uri) { - registeredURIs.add(uri); - } - - public static void deRegisterURI(String uri) { - registeredURIs.remove(uri); - } - - public static boolean isRegistered(String uri) { - return registeredURIs.contains(uri); - } - - public static Set getRegisteredURIs() { - return Collections.unmodifiableSet(registeredURIs); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ApplicationClientFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ApplicationClientFileImpl.java deleted file mode 100644 index d5d4d9c4a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ApplicationClientFileImpl.java +++ /dev/null @@ -1,350 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ApplicationClientFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.common.XMLResource; - - -/** - * @generated - */ -public class ApplicationClientFileImpl extends ModuleFileImpl implements ApplicationClientFile { - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected ApplicationClient deploymentDescriptor = null; - - public ApplicationClientFileImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getApplicationClientFile(); - } - - /** - * @throws DeploymentDescriptorLoadException - - * is a runtime exception, because we can't override the signature of the generated - * methods - */ - public ApplicationClient getDeploymentDescriptor() throws DeploymentDescriptorLoadException { - ApplicationClient dd = this.getDeploymentDescriptorGen(); - if (dd == null && canLazyInitialize()) { - try { - getImportStrategy().importMetaData(); - } catch (Exception e) { - throw new DeploymentDescriptorLoadException(getDeploymentDescriptorUri(), e); - } - } - - return this.getDeploymentDescriptorGen(); - } - - /** - * @see com.ibm.etools.commonarchive.impl.ModuleFileImpl - */ - public java.lang.String getDeploymentDescriptorUri() { - return J2EEConstants.APP_CLIENT_DD_URI; - } - - /** - * Return the DeployementDescriptor. - */ - public EObject getStandardDeploymentDescriptor() throws DeploymentDescriptorLoadException { - return getDeploymentDescriptor(); - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isApplicationClientFile() { - return true; - } - - public boolean isDeploymentDescriptorSet() { - return deploymentDescriptor != null; - } - - /** - * @see com.ibm.etools.commonarchive.impl.ModuleFileImpl - */ - public org.eclipse.emf.ecore.EObject makeDeploymentDescriptor(XMLResource resource) { - ApplicationClient aClient = ((ClientPackage) EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI)).getClientFactory().createApplicationClient(); - resource.setID(aClient, J2EEConstants.APP_CLIENT_ID); - setDeploymentDescriptorGen(aClient); - resource.getContents().add(aClient); - return aClient; - } - - public void setDeploymentDescriptor(ApplicationClient l) { - this.setDeploymentDescriptorGen(l); - replaceRoot(getMofResourceMakeIfNecessary(getDeploymentDescriptorUri()), l); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.APPLICATION_CLIENT_FILE__CONTAINER: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.APPLICATION_CLIENT_FILE__CONTAINER, msgs); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__FILES: - return ((InternalEList)getFiles()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.APPLICATION_CLIENT_FILE__CONTAINER: - return eBasicSetContainer(null, CommonarchivePackage.APPLICATION_CLIENT_FILE__CONTAINER, msgs); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__FILES: - return ((InternalEList)getFiles()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.APPLICATION_CLIENT_FILE__CONTAINER: - return eContainer.eInverseRemove(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.APPLICATION_CLIENT_FILE__URI: - return getURI(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__LAST_MODIFIED: - return new Long(getLastModified()); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__SIZE: - return new Long(getSize()); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__DIRECTORY_ENTRY: - return isDirectoryEntry() ? Boolean.TRUE : Boolean.FALSE; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__ORIGINAL_URI: - return getOriginalURI(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__LOADING_CONTAINER: - if (resolve) return getLoadingContainer(); - return basicGetLoadingContainer(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__CONTAINER: - return getContainer(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__FILES: - return getFiles(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__TYPES: - return getTypes(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__DEPLOYMENT_DESCRIPTOR: - if (resolve) return getDeploymentDescriptor(); - return basicGetDeploymentDescriptor(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.APPLICATION_CLIENT_FILE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__LAST_MODIFIED: - return isSetLastModified(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__SIZE: - return isSetSize(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__DIRECTORY_ENTRY: - return isSetDirectoryEntry(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__ORIGINAL_URI: - return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__LOADING_CONTAINER: - return loadingContainer != null; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__CONTAINER: - return getContainer() != null; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__FILES: - return files != null && !files.isEmpty(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__TYPES: - return types != null && !types.isEmpty(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE__DEPLOYMENT_DESCRIPTOR: - return deploymentDescriptor != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.APPLICATION_CLIENT_FILE__URI: - setURI((String)newValue); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__LAST_MODIFIED: - setLastModified(((Long)newValue).longValue()); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__SIZE: - setSize(((Long)newValue).longValue()); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__DIRECTORY_ENTRY: - setDirectoryEntry(((Boolean)newValue).booleanValue()); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__ORIGINAL_URI: - setOriginalURI((String)newValue); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)newValue); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__CONTAINER: - setContainer((Container)newValue); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__FILES: - getFiles().clear(); - getFiles().addAll((Collection)newValue); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__TYPES: - getTypes().clear(); - getTypes().addAll((Collection)newValue); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__DEPLOYMENT_DESCRIPTOR: - setDeploymentDescriptor((ApplicationClient)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.APPLICATION_CLIENT_FILE__URI: - setURI(URI_EDEFAULT); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__LAST_MODIFIED: - unsetLastModified(); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__SIZE: - unsetSize(); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__DIRECTORY_ENTRY: - unsetDirectoryEntry(); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__ORIGINAL_URI: - setOriginalURI(ORIGINAL_URI_EDEFAULT); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)null); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__CONTAINER: - setContainer((Container)null); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__FILES: - getFiles().clear(); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__TYPES: - getTypes().clear(); - return; - case CommonarchivePackage.APPLICATION_CLIENT_FILE__DEPLOYMENT_DESCRIPTOR: - setDeploymentDescriptor((ApplicationClient)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public ApplicationClient getDeploymentDescriptorGen() { - if (deploymentDescriptor != null && deploymentDescriptor.eIsProxy()) { - ApplicationClient oldDeploymentDescriptor = deploymentDescriptor; - deploymentDescriptor = (ApplicationClient)eResolveProxy((InternalEObject)deploymentDescriptor); - if (deploymentDescriptor != oldDeploymentDescriptor) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonarchivePackage.APPLICATION_CLIENT_FILE__DEPLOYMENT_DESCRIPTOR, oldDeploymentDescriptor, deploymentDescriptor)); - } - } - return deploymentDescriptor; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public ApplicationClient basicGetDeploymentDescriptor() { - return deploymentDescriptor; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDeploymentDescriptorGen(ApplicationClient newDeploymentDescriptor) { - ApplicationClient oldDeploymentDescriptor = deploymentDescriptor; - deploymentDescriptor = newDeploymentDescriptor; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.APPLICATION_CLIENT_FILE__DEPLOYMENT_DESCRIPTOR, oldDeploymentDescriptor, deploymentDescriptor)); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ArchiveCopySessionUtility.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ArchiveCopySessionUtility.java deleted file mode 100644 index c515a3838..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ArchiveCopySessionUtility.java +++ /dev/null @@ -1,108 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - -import java.util.List; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.wst.common.internal.emf.utilities.EtoolsCopySession; -import org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility; - - -/** - * OverRide class to use the proper copying of XMLResource doctypes. Had to create this class Due to - * the way it's handled in the copy commands of EtoolsCopyUtility - * - * Creation date: (11/18/01 88888888:48 PM) - * - * @author: Jared Jurkiewicz - */ -public class ArchiveCopySessionUtility extends EtoolsCopySession { - public EObject copy(EObject aRefObject, String idSuffix) { - EObject copied = super.copy(aRefObject, idSuffix); - if (copied instanceof ContainerManagedEntity) - copyPrimKeyInfo((ContainerManagedEntity) aRefObject, (ContainerManagedEntity) copied); - return copied; - } - - public EObject primCopy(EObject aRefObject, String idSuffix) { - EObject copied = super.primCopy(aRefObject, idSuffix); - if (copied instanceof ContainerManagedEntity) - copyPrimKeyInfo((ContainerManagedEntity) aRefObject, (ContainerManagedEntity) copied); - return copied; - } - - public ArchiveCopySessionUtility(EtoolsCopyUtility aCopyUtility) { - super(aCopyUtility); - } - - /** - * @see com.ibm.etools.emf.ecore.utilities.copy.EtoolsCopySession#newInstance(Resource, String) - */ - public Resource newInstance(Resource aResource, String newUri) { - Resource copyResource = super.newInstance(aResource, newUri); - - if (aResource instanceof XMLResource) - ((XMLResource) copyResource).setVersionID(((XMLResource) aResource).getVersionID()); - return copyResource; - } - - public EObject getCopyIfFound(EObject anObject) { - EObject copiedObject = super.getCopyIfFound(anObject); - if ((anObject instanceof JavaClass) && (anObject == copiedObject)) { - copiedObject = newInstance(anObject); - URI uri = EcoreUtil.getURI(anObject); - ((InternalEObject) copiedObject).eSetProxyURI(uri); - } - return copiedObject; - } - - public EObject copyObject(EObject aRefObject, String idSuffix) { - EObject copied = super.copyObject(aRefObject, idSuffix); - if (copied instanceof ContainerManagedEntity) - copyPrimKeyInfo((ContainerManagedEntity) aRefObject, (ContainerManagedEntity) copied); - return copied; - } - - public void copyPrimKeyInfo(ContainerManagedEntity source, ContainerManagedEntity copied) { - CMPAttribute primKeyField = source.getPrimKeyField(); - if (primKeyField != null) - copied.setPrimKeyField(primKeyField); - } - - /* - * Super class override to handle unresolvable proxies (JavaClass) - */ - - protected void copyReference(EReference aReference, EObject aRefObject, String idSuffix, EObject copyRef) { - if (aReference.isMany()) { - List value = (List) aRefObject.eGet(aReference); - if (value != null) - copyManyReference(aReference, value, aRefObject, idSuffix, copyRef); - } else if (aRefObject.eIsSet(aReference)) { - Object value = aRefObject.eGet(aReference); - if (value == null) - value = ((InternalEObject) aRefObject).eGet(aReference, false); - copySingleReference(aReference, (EObject) value, aRefObject, idSuffix, copyRef); - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ArchiveCopyUtility.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ArchiveCopyUtility.java deleted file mode 100644 index ab9bc6009..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ArchiveCopyUtility.java +++ /dev/null @@ -1,239 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.common.internal.util.Defaultable; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchiveFactory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveRuntimeException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifestImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.webapplication.FilterMapping; -import org.eclipse.wst.common.internal.emf.utilities.CopyGroup; -import org.eclipse.wst.common.internal.emf.utilities.EtoolsCopySession; -import org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility; - - - -/** - * Insert the type's description here. Creation date: (12/18/00 6:26:48 PM) - * - * @author: Administrator - */ -public class ArchiveCopyUtility extends EtoolsCopyUtility { - /** - * ModuleFileCopyUtiltity constructor comment. - */ - public ArchiveCopyUtility() { - super(); - setCopyAdapters(true); - } - - /* - * End of code pulled from EtoolsCopyUtility to over-ride the primCopy method. - */ - - protected void addDeferredSingleReferenceCopy(EReference reference, EObject aValue, String idSuffix, EObject aCopyContainer) { - if (((Defaultable) aValue).isDefault()) - return; - super.addDeferredSingleReferenceCopy(reference, aValue, idSuffix, aCopyContainer); - } - - public ArchiveManifest copy(ArchiveManifest mf) { - try { - ByteArrayOutputStream out = new ByteArrayOutputStream(); - mf.write(out); - InputStream in = new ByteArrayInputStream(out.toByteArray()); - return new ArchiveManifestImpl(in); - } catch (IOException iox) { - //This should almost never happen, unless there is an issure with memory allocation - throw new ArchiveRuntimeException(CommonArchiveResourceHandler.IOException_occurred_while_EXC_, iox); // = "IOException occurred while copying manifest" - } - } - - public Archive copy(Archive anArchive) { - - //First create a copy group and copy util; copy the archive and all its resources - CopyGroup copyGroup = new CopyGroup(); - copyGroup.setPreserveIds(true); - prepareResourcesForCopy(anArchive, copyGroup); - copyGroup.add(anArchive); - this.copy(copyGroup); - - Archive copiedArchive = (Archive) getCopy(anArchive); - - finishCopy(anArchive, copiedArchive, copyGroup); - return copiedArchive; - } - - public ModuleFile copy(ModuleFile aModuleFile) { - /** - * Timing issue; if the resources containing the bindings, extensions, and dd have not yet - * be loaded, force that before the copy occurs; otherwise, they will get loaded as the - * accessors are invoked during copy. Because they will be loaded but not copied into the - * new archive's context, then changes will not get saved. By forcing the load before the - * copy commences, the loaded resources will also be copied to the new archive - */ - aModuleFile.getStandardDeploymentDescriptor(); - - /* - * RLS-8/12/2002 Hack to fix botp defect "141640-failed to install .war file with - * filter-mapping" The problem is that there is a transient field on the filter mapping - * class for the servlet name the relationship to the servlet is lazily populated the first - * time it is requested. If we don't trip it, then it won't get copied. - */ - - if (aModuleFile.isWARFile()) { - List filterMappings = ((WARFile) aModuleFile).getDeploymentDescriptor().getFilterMappings(); - for (int i = 0; i < filterMappings.size(); i++) { - ((FilterMapping) filterMappings.get(i)).getServlet(); - } - } - ModuleFile copied = (ModuleFile) copy((Archive) aModuleFile); - - return copied; - } - - /* - * The following methods were pulled out of EtoolsCopyUtility so we can over-ride the - * EtoolsCopySession object with our own such that doictypes do get preserved with XML - * Resources. - */ - public void copy(CopyGroup aGroup) { - if (aGroup != null) { - EtoolsCopySession session = new ArchiveCopySessionUtility(this); - session.setPreserveIds(aGroup.getPreserveIds()); - session.copy(aGroup); - session.flush(); - } - } - - public EObject copy(EObject aRefObject, String idSuffix) { - EtoolsCopySession session = new ArchiveCopySessionUtility(this); - EObject copied = session.copy(aRefObject, idSuffix); - session.flush(); - return copied; - } - - public Resource copy(Resource aResource, String newUri) { - EtoolsCopySession session = new ArchiveCopySessionUtility(this); - Resource copied = session.copy(aResource, newUri); - session.flush(); - return copied; - } - - protected void copyImportStrategyIfNecessary(ModuleFile aModuleFile, ModuleFile copy) { - if (!aModuleFile.isDeploymentDescriptorSet()) - copy.setImportStrategy(aModuleFile.getImportStrategy().createImportStrategy(aModuleFile, copy)); - } - - public EObject copyObject(EObject aRefObject, String idSuffix) { - EtoolsCopySession session = new ArchiveCopySessionUtility(this); - EObject copied = session.copyObject(aRefObject, idSuffix); - session.flush(); - return copied; - } - - public static void createCopy(CopyGroup aGroup) { - ArchiveCopyUtility utility = new ArchiveCopyUtility(); - utility.copy(aGroup); - } - - protected void finishCopy(Archive source, Archive copy, CopyGroup group) { - - copy.setLoadStrategy(getCommonarchiveFactory().createEmptyLoadStrategy()); - copy.setExtraClasspath(source.getExtraClasspath()); - copy.setXmlEncoding(source.getXmlEncoding()); - if (source.isManifestSet()) { - copy.setManifest(copy(source.getManifest())); - } else { - try { - File manifestToCopy = source.getFile(J2EEConstants.MANIFEST_URI); - if (manifestToCopy != null) { - File copiedManifest = (File) getCopy(manifestToCopy); - copiedManifest.setLoadingContainer(manifestToCopy.getLoadingContainer()); - copy.addCopy(copiedManifest); - } - } catch (FileNotFoundException e) { - //Ignore - } catch (DuplicateObjectException e) { - //Ignore - } - } - retrieveResourcesFromCopy(copy, group); - - if (source.isModuleFile()) - copyImportStrategyIfNecessary((ModuleFile) source, (ModuleFile) copy); - - List files = source.getFiles(); - for (int i = 0; i < files.size(); i++) { - File aFile = (File) files.get(i); - File copiedFile = (File) getCopy(aFile); - copiedFile.setLoadingContainer(aFile.getLoadingContainer()); - if (aFile.isArchive()) - finishNestedCopy((Archive) aFile, (Archive) copiedFile); - } - //Notification was suspended during copy; therefore we need to make sure the files - //In the archive get indexed - copy.rebuildFileIndex(); - } - - protected void finishNestedCopy(Archive source, Archive copy) { - - CopyGroup group = new CopyGroup(); - prepareResourcesForCopy(source, group); - copy(group); - finishCopy(source, copy, group); - } - - private CommonarchiveFactory getCommonarchiveFactory() { - return CommonarchivePackage.eINSTANCE.getCommonarchiveFactory(); - } - - protected void prepareResourcesForCopy(Archive anArchive, CopyGroup copyGroup) { - Iterator iter = anArchive.getLoadedMofResources().iterator(); - while (iter.hasNext()) { - Resource resource = (Resource) iter.next(); - if (!ArchiveUtil.isJavaResource(resource)) - copyGroup.add(resource); - } - } - - protected void retrieveResourcesFromCopy(Archive copiedArchive, CopyGroup copyGroup) { - - List resources = copyGroup.getCopiedResources(); - for (int i = 0; i < resources.size(); i++) { - Resource copiedResource = (Resource) resources.get(i); - copiedArchive.addOrReplaceMofResource(copiedResource); - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ArchiveImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ArchiveImpl.java deleted file mode 100644 index 72f8ed05a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ArchiveImpl.java +++ /dev/null @@ -1,1590 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.WrappedException; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.internal.java.adapters.ReadAdaptor; -import org.eclipse.jem.internal.java.adapters.jdk.JavaJDKAdapterFactory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ArchiveTypeDiscriminatorRegistry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ReadOnlyDirectory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ManifestException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ReopenException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifestImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.RuntimeClasspathEntry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.RuntimeClasspathEntryImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilter; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.DirectorySaveStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ZipStreamSaveStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveFileDynamicClassLoader; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ClasspathUtil; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility; -import org.eclipse.wst.common.internal.emf.utilities.ExtendedEcoreUtil; - - -/** - * @generated - */ -public class ArchiveImpl extends ContainerImpl implements Archive { - - /** - * The cached value of the '{@link #getTypes() <em>Types</em>}' attribute list. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see #getTypes() - * @generated - * @ordered - */ - protected EList types = null; - - /** Our specialized manifest */ - protected ArchiveManifest manifest; - - /** Implementer for saving this archive */ - protected SaveStrategy saveStrategy; - - /** - * Optional filter for saving a subset of files; filter will be applied for all save and extract - * invokations - */ - protected SaveFilter saveFilter; - - /** Encoding to be used for all xmi resources and xml dds; defaults to UTF-8 */ - protected String xmlEncoding = J2EEConstants.DEFAULT_XML_ENCODING; - - /** Custom class loader used to load classes from the archive */ - protected ClassLoader archiveClassLoader; - - /** - * path of the standard classpath format where the archive may look for classes not found in the - * system classpath or in the archive - used for java reflection - */ - protected String extraClasspath; - - protected ArchiveOptions options; - - public ArchiveImpl() { - super(); - getCommonArchiveFactory().archiveOpened(this); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getArchive(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EList getTypes() { - if (types == null) { - types = new EDataTypeUniqueEList(String.class, this, CommonarchivePackage.ARCHIVE__TYPES); - } - return types; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.ARCHIVE__CONTAINER: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.ARCHIVE__CONTAINER, msgs); - case CommonarchivePackage.ARCHIVE__FILES: - return ((InternalEList)getFiles()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.ARCHIVE__CONTAINER: - return eBasicSetContainer(null, CommonarchivePackage.ARCHIVE__CONTAINER, msgs); - case CommonarchivePackage.ARCHIVE__FILES: - return ((InternalEList)getFiles()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.ARCHIVE__CONTAINER: - return eContainer.eInverseRemove(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.ARCHIVE__URI: - return getURI(); - case CommonarchivePackage.ARCHIVE__LAST_MODIFIED: - return new Long(getLastModified()); - case CommonarchivePackage.ARCHIVE__SIZE: - return new Long(getSize()); - case CommonarchivePackage.ARCHIVE__DIRECTORY_ENTRY: - return isDirectoryEntry() ? Boolean.TRUE : Boolean.FALSE; - case CommonarchivePackage.ARCHIVE__ORIGINAL_URI: - return getOriginalURI(); - case CommonarchivePackage.ARCHIVE__LOADING_CONTAINER: - if (resolve) return getLoadingContainer(); - return basicGetLoadingContainer(); - case CommonarchivePackage.ARCHIVE__CONTAINER: - return getContainer(); - case CommonarchivePackage.ARCHIVE__FILES: - return getFiles(); - case CommonarchivePackage.ARCHIVE__TYPES: - return getTypes(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.ARCHIVE__URI: - setURI((String)newValue); - return; - case CommonarchivePackage.ARCHIVE__LAST_MODIFIED: - setLastModified(((Long)newValue).longValue()); - return; - case CommonarchivePackage.ARCHIVE__SIZE: - setSize(((Long)newValue).longValue()); - return; - case CommonarchivePackage.ARCHIVE__DIRECTORY_ENTRY: - setDirectoryEntry(((Boolean)newValue).booleanValue()); - return; - case CommonarchivePackage.ARCHIVE__ORIGINAL_URI: - setOriginalURI((String)newValue); - return; - case CommonarchivePackage.ARCHIVE__LOADING_CONTAINER: - setLoadingContainer((Container)newValue); - return; - case CommonarchivePackage.ARCHIVE__CONTAINER: - setContainer((Container)newValue); - return; - case CommonarchivePackage.ARCHIVE__FILES: - getFiles().clear(); - getFiles().addAll((Collection)newValue); - return; - case CommonarchivePackage.ARCHIVE__TYPES: - getTypes().clear(); - getTypes().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.ARCHIVE__URI: - setURI(URI_EDEFAULT); - return; - case CommonarchivePackage.ARCHIVE__LAST_MODIFIED: - unsetLastModified(); - return; - case CommonarchivePackage.ARCHIVE__SIZE: - unsetSize(); - return; - case CommonarchivePackage.ARCHIVE__DIRECTORY_ENTRY: - unsetDirectoryEntry(); - return; - case CommonarchivePackage.ARCHIVE__ORIGINAL_URI: - setOriginalURI(ORIGINAL_URI_EDEFAULT); - return; - case CommonarchivePackage.ARCHIVE__LOADING_CONTAINER: - setLoadingContainer((Container)null); - return; - case CommonarchivePackage.ARCHIVE__CONTAINER: - setContainer((Container)null); - return; - case CommonarchivePackage.ARCHIVE__FILES: - getFiles().clear(); - return; - case CommonarchivePackage.ARCHIVE__TYPES: - getTypes().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.ARCHIVE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case CommonarchivePackage.ARCHIVE__LAST_MODIFIED: - return isSetLastModified(); - case CommonarchivePackage.ARCHIVE__SIZE: - return isSetSize(); - case CommonarchivePackage.ARCHIVE__DIRECTORY_ENTRY: - return isSetDirectoryEntry(); - case CommonarchivePackage.ARCHIVE__ORIGINAL_URI: - return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); - case CommonarchivePackage.ARCHIVE__LOADING_CONTAINER: - return loadingContainer != null; - case CommonarchivePackage.ARCHIVE__CONTAINER: - return getContainer() != null; - case CommonarchivePackage.ARCHIVE__FILES: - return files != null && !files.isEmpty(); - case CommonarchivePackage.ARCHIVE__TYPES: - return types != null && !types.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (types: "); - result.append(types); - result.append(')'); - return result.toString(); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public Archive addCopy(Archive anArchive) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException { - checkAddValid(anArchive); - Archive copy = getCommonArchiveFactory().copy(anArchive); - getFiles().add(copy); - return copy; - } - - /** - * @see com.ibm.etools.commonarchive.Archive Adds a copy of the parameter to this archive - * @throws com.ibm.etools.archive.exception.DuplicateObjectException - * if the archive already contains a file with the specified uri - */ - public File addCopy(File aFile) throws DuplicateObjectException { - if (aFile.isReadOnlyDirectory()) { - addCopy((ReadOnlyDirectory) aFile); - return null; - } - checkAddValid(aFile); - File copy = copy(aFile); - getFiles().add(copy); - return copy; - } - - /** - * Get a flattened list from the directory, then addCopy the list - * - * @throws com.ibm.etools.archive.exception.DuplicateObjectException - * if a file with a uri that equals one of the nested files in the directory exists - * - * @return java.util.List the copied files that were added to the archive - */ - public java.util.List addCopy(ReadOnlyDirectory dir) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException { - return addCopyFiles(dir.getFilesRecursive()); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public List addCopyFiles(java.util.List list) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException { - //Optimization - make sure the fileIndex is already built to speed up - // containsFile - getFiles(); - List copyList = new ArrayList(); - for (int i = 0; i < list.size(); i++) { - File aFile = (File) list.get(i); - checkAddValid(aFile); - copyList.add(copy(aFile)); - } - getFiles().addAll(copyList); - return copyList; - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void addOrReplaceMofResource(org.eclipse.emf.ecore.resource.Resource aResource) { - getLoadStrategy().addOrReplaceMofResource(aResource); - } - - /** - * @deprecated Use {@link #getDependentOpenArchives()} - * @see com.ibm.etools.commonarchive.Archive - */ - public boolean canClose() { - return !getCommonArchiveFactory().getOpenArchivesDependingOn(this).isEmpty(); - } - - protected void checkAddValid(File aFile) throws DuplicateObjectException { - checkAddValid(aFile.getURI()); - } - - protected void checkAddValid(String aUri) throws DuplicateObjectException { - try { - File f = getFile(aUri); - if (f != null) - throw new DuplicateObjectException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.duplicate_file_EXC_, (new Object[]{getURI(), aUri})), f); // = "The archive named {0} already contains a file named {1}" - } catch (FileNotFoundException ok) { - //Ignore - } - } - - protected void cleanupAfterTempSave(String aUri, java.io.File original, java.io.File destinationFile) throws SaveFailureException { - - checkWriteable(original); - boolean deleteWorked = false; - if (original.isDirectory() && !isRenameable(original)) { - throw new SaveFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.unable_replace_EXC_, (new Object[]{original.getAbsolutePath()}))); // = "Unable to replace original archive " - } - - for (int i = 0; i < 10; i++) { - if (ArchiveUtil.delete(original)) { - deleteWorked = true; - break; - } - try { - // TODO Major hack here; the problem is that a previous call - // to close the source file may not yet have - //been reflected in the os/vm; therefore a subsequent call - // to delete fails. To get around this, - //wait for a bit and retry; if it continues to fail, then - // time out and throw an exception - Thread.sleep(250); - } catch (InterruptedException e) { - //Ignore - } - } - if (deleteWorked) { - for (int i = 0; i < 10; i++) { - if (destinationFile.renameTo(original)) - return; - try { - Thread.sleep(250); - } catch (InterruptedException e) { - //Ignore - } - } - } - throw new SaveFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.unable_replace_EXC_, (new Object[]{original.getAbsolutePath()}))); // = "Unable to replace original archive " - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void close() { - getLoadStrategy().close(); - releaseClassLoader(); - getCommonArchiveFactory().archiveClosed(this); - if (isIndexed()) { - List archives = getArchiveFiles(); - for (int i = 0; i < archives.size(); i++) { - ((Archive) archives.get(i)).close(); - } - } - } - - protected File copy(File aFile) { - File copy = null; - if (aFile.isArchive()) - copy = getCommonArchiveFactory().copy((Archive) aFile); - else - copy = (File) EtoolsCopyUtility.createCopy(aFile); - return copy; - } - - protected LoadStrategy createLoadStrategyForReopen(Archive parent) throws IOException { - LoadStrategy aLoadStrategy = null; - LooseArchive loose = getLoadStrategy().getLooseArchive(); - - if (loose != null) { - aLoadStrategy = getCommonArchiveFactory().createLoadStrategy(loose.getBinariesPath()); - aLoadStrategy.setLooseArchive(loose); - } else if (parent == null) - aLoadStrategy = getCommonArchiveFactory().createLoadStrategy(getURI()); - else - aLoadStrategy = getCommonArchiveFactory().createChildLoadStrategy(getURI(), parent.getLoadStrategy()); - - return aLoadStrategy; - } - - protected RuntimeClasspathEntry createRuntimeClasspathEntry(String absolutePath) { - RuntimeClasspathEntry entry = new RuntimeClasspathEntryImpl(); - entry.setAbsolutePath(absolutePath); - return entry; - } - - /** - * Convert all the classpath entries to absolute paths - */ - protected List createRuntimeClasspathEntries(String[] entries, String parentPath) { - - List aList = new ArrayList(entries.length); - for (int i = 0; i < entries.length; i++) { - String entry = entries[i]; - /* - * Added for loose module support - if the cananonicalized entry resolves to an archive - * in the containing ear, then add the absolute path of that archive - */ - Archive dependentJar = resolveClasspathEntryInEAR(entry); - if (dependentJar != null) { - try { - RuntimeClasspathEntry runEntry = createRuntimeClasspathEntry(dependentJar.getBinariesPath(), entry); - runEntry.setReferencedArchive(dependentJar); - aList.add(runEntry); - continue; - } catch (FileNotFoundException shouldntHappenInRuntime) { - //Ignore - } - } - //Otherwise, compute the absolute path of the entry relative to - // this jar - java.io.File aFile = new java.io.File(entry); - String absPath = null; - if (aFile.isAbsolute()) - absPath = aFile.getAbsolutePath(); - else { - absPath = ArchiveUtil.getOSUri(parentPath, entry); - absPath = ClasspathUtil.normalizePath(absPath); - } - aList.add(createRuntimeClasspathEntry(absPath, entry)); - } - - return aList; - } - - protected RuntimeClasspathEntry createRuntimeClasspathEntry(String absolutePath, String manifestValue) { - RuntimeClasspathEntry entry = createRuntimeClasspathEntry(absolutePath); - entry.setManifestValue(manifestValue); - return entry; - } - - protected SaveStrategy createSaveStrategyForDirectory(java.io.File dir, int expansionFlags) { - return new DirectorySaveStrategyImpl(dir.getAbsolutePath(), expansionFlags); - } - - protected SaveStrategy createSaveStrategyForDirectory(String aUri, int expansionFlags) { - return new DirectorySaveStrategyImpl(aUri, expansionFlags); - } - - protected SaveStrategy createSaveStrategyForJar(java.io.File aFile) throws java.io.IOException { - if (aFile.exists() && aFile.isDirectory()) - throw new IOException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.file_exist_as_dir_EXC_, (new Object[]{aFile.getAbsolutePath()})));// = "A file named {0} exists and is a directory" - java.io.File parent = aFile.getParentFile(); - if (parent != null) - parent.mkdirs(); - java.io.OutputStream out = new java.io.FileOutputStream(aFile); - return new ZipStreamSaveStrategyImpl(out); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void extract(int expansionFlags) throws SaveFailureException, ReopenException { - extractNoReopen(expansionFlags); - reopen(); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void extractNoReopen(int expansionFlags) throws SaveFailureException { - String aUri = getURI(); - java.io.File aDir = new java.io.File(aUri); - boolean inUse = getLoadStrategy().isUsing(aDir); - - try { - java.io.File destinationDir = inUse ? ArchiveUtil.createTempDirectory(aUri, aDir.getCanonicalFile().getParentFile()) : aDir; - SaveStrategy aSaveStrategy = createSaveStrategyForDirectory(destinationDir, expansionFlags); - save(aSaveStrategy); - aSaveStrategy.close(); - close(); - if (inUse) { - cleanupAfterTempSave(aUri, aDir, destinationDir); - } - } catch (java.io.IOException ex) { - throw new SaveFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.error_saving_EXC_, (new Object[]{uri})), ex); // = "Error saving " - } - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void extractTo(java.lang.String aUri, int expansionFlags) throws SaveFailureException { - java.io.File aDir = new java.io.File(aUri); - if (getLoadStrategy().isUsing(aDir)) - throw new SaveFailureException(CommonArchiveResourceHandler.Extract_destination_is_the_EXC_); // = "Extract destination is the same path as source file" - - try { - SaveStrategy aSaveStrategy = createSaveStrategyForDirectory(aDir, expansionFlags); - save(aSaveStrategy); - aSaveStrategy.close(); - } catch (java.io.IOException ex) { - throw new SaveFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.error_saving_EXC_, (new Object[]{aUri})), ex); // = "Error saving " - } - - } - - public java.util.List filterFilesByPrefix(String prefix) { - return filterFiles(prefix, null); - } - - public java.util.List filterFiles(String prefix, String[] suffixes) { - List subset = new ArrayList(); - List theFiles = getFiles(); - for (int i = 0; i < theFiles.size(); i++) { - File aFile = (File) theFiles.get(i); - if (!aFile.isDirectoryEntry() && aFile.getURI().startsWith(prefix)) - if (suffixes == null || hasSuffix(aFile.getURI(), suffixes)) - subset.add(aFile); - } - return subset; - } - - /** - * @param uri - * @param suffixes - * @return - */ - private boolean hasSuffix(String aUri, String[] suffixes) { - for (int i = 0; i < suffixes.length; i++) { - if (aUri.endsWith(suffixes[i])) - return true; - } - return false; - } - - public java.util.List filterFilesWithoutPrefix(String[] prefixes) { - List subset = new ArrayList(); - List theFiles = getFiles(); - for (int i = 0; i < theFiles.size(); i++) { - File aFile = (File) theFiles.get(i); - if (aFile.isDirectoryEntry()) - continue; - boolean shouldAdd = true; - for (int j = 0; j < prefixes.length; j++) { - if (aFile.getURI().startsWith(prefixes[j])) { - shouldAdd = false; - break; - } - } - if (shouldAdd) - subset.add(aFile); - } - return subset; - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return java.lang.ClassLoader - */ - public java.lang.ClassLoader getArchiveClassLoader() { - if (archiveClassLoader == null) - initializeClassLoader(); - return archiveClassLoader; - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public java.util.List getArchiveFiles() { - List archives = new ArrayList(); - List fileList = getFiles(); - for (int i = 0; i < fileList.size(); i++) { - File aFile = (File) fileList.get(i); - if (aFile.isArchive()) { - archives.add(aFile); - } - } - return archives; - } - - /** - * Parse the manifest class path and the extra class path, and instantiate a URL classloader, - * with a parent of the archiveClassLoader - */ - protected ClassLoader getClassPathClassLoader(ClassLoader parentCl) { - - List classPathComponents = new ArrayList(); - if (getManifest() != null) - classPathComponents.addAll(Arrays.asList(getManifest().getClassPathTokenized())); - String extraCp = getExtraClasspath(); - if (extraCp != null) - classPathComponents.addAll(Arrays.asList(ArchiveUtil.getTokens(extraCp, ";")));//$NON-NLS-1$ - - java.net.URL[] urlArray = ArchiveUtil.toLocalURLs(classPathComponents, getRootForRelativeDependentJars()); - return new java.net.URLClassLoader(urlArray, parentCl); - } - - public ResourceSet getResourceSet() { - return getLoadStrategy().getResourceSet(); - } - - /** - * Helper method to determine the parent for the custom class loader used by this archive - */ - protected ClassLoader getDefaultClassLoader() { - ClassLoader pluginClassLoader = getClass().getClassLoader(); - return pluginClassLoader == null ? ClassLoader.getSystemClassLoader() : pluginClassLoader; - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public java.util.Set getDependentOpenArchives() { - return getCommonArchiveFactory().getOpenArchivesDependingOn(this); - } - - /** - * Convert all the classpath entries to absolute paths - */ - protected List getEntriesAsAbsolutePaths(String[] entries, String parentPath) { - - List aList = new ArrayList(entries.length); - for (int i = 0; i < entries.length; i++) { - String entry = entries[i]; - /* - * Added for loose module support - if the cananonicalized entry resolves to an archive - * in the containing ear, then add the absolute path of that archive - */ - Archive dependentJar = resolveClasspathEntryInEAR(entry); - if (dependentJar != null) { - try { - aList.add(dependentJar.getAbsolutePath()); - continue; - } catch (FileNotFoundException shouldntHappenInRuntime) { - //Ignore - } - } - //Otherwise, compute the absolute path of the entry relative to - // this jar - java.io.File aFile = new java.io.File(entry); - if (aFile.isAbsolute()) - aList.add(aFile.getAbsolutePath()); - else - aList.add(ArchiveUtil.getOSUri(parentPath, entry)); - } - - return aList; - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return java.lang.String - */ - public String getExtraClasspath() { - return extraClasspath; - } - - /** - * Used internally by the framework, specifically as an optimization when saving/exploding - * archives with nested archives - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIterator getFilesForSave() throws IOException { - return getLoadStrategy().getFileIterator(); - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public java.io.InputStream getInputStream() throws java.io.FileNotFoundException, java.io.IOException { - if (getLoadingContainer() != null || getLoadStrategy() == null || getLoadStrategy().isDirectory()) - return super.getInputStream(); - - //This archive was copied in; this operation is not supported for - // module files - if (isModuleFile() || !getOptions().isSaveLibrariesAsFiles()) - throw new IOException("Undefined state of nested archive"); //$NON-NLS-1$ - - //We have to find the absolute path of the original archive from which - // this was copied, - //if it is known - - List list = getFiles(); - - String absolutePath = null; - for (int i = 0; i < list.size(); i++) { - File aFile = (File) list.get(i); - if (aFile.isArchive()) - continue; - absolutePath = aFile.getLoadingContainer().getAbsolutePath(); - } - - return new FileInputStream(absolutePath); - } - - /** - * @see LoadStrategy#getResourceInputStream(String) - */ - public InputStream getResourceInputStream(String aUri) throws IOException { - return getLoadStrategy().getResourceInputStream(aUri); - } - - protected JavaJDKAdapterFactory getJavaAdapterFactory() { - return (JavaJDKAdapterFactory) EcoreUtil.getAdapterFactory(getLoadStrategy().getResourceSet().getAdapterFactories(), ReadAdaptor.TYPE_KEY); - } - - /** - * @see com.ibm.etools.commonarchive.Archive returns an immutable collection of the loaded - * resources in the resource set - */ - public Collection getLoadedMofResources() { - return getLoadStrategy().getLoadedMofResources(); - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - */ - public ArchiveManifest getManifest() { - if (manifest == null) { - InputStream in = null; - try { - in = getInputStream(J2EEConstants.MANIFEST_URI); - makeManifest(in); - } catch (FileNotFoundException ex) { - makeManifest(); - } catch (Resource.IOWrappedException ex) { - WrappedException wrapEx = new WrappedException((ex).getWrappedException()); - if (ExtendedEcoreUtil.getFileNotFoundDetector().isFileNotFound(wrapEx)) - makeManifest(); - else - throw new ManifestException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.io_ex_manifest_EXC_, (new Object[]{getURI()})), ex); // = "An IOException occurred reading the manifest: " - } catch (IOException ex) { - throw new ManifestException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.io_ex_manifest_EXC_, (new Object[]{getURI()})), ex); // = "An IOException occurred reading the manifest: " - } finally { - if (in != null) - try { - in.close(); - } catch (IOException iox) { - //Ignore - } - } - } - //This is a hack because of the fact that the manifest does not - // serialize correctly if - //The version is not set. In addition to saves, the serialization is - // used for copy - if (manifest.getManifestVersion() == null || manifest.getManifestVersion().equals("")) //$NON-NLS-1$ - manifest.setManifestVersion("1.0");//$NON-NLS-1$ - return manifest; - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public org.eclipse.emf.ecore.resource.Resource getMofResource(java.lang.String aUri) throws FileNotFoundException, ResourceLoadException { - return getLoadStrategy().getMofResource(aUri); - } - - protected Resource getMofResourceMakeIfNecessary(String aUri) { - if (getLoadStrategy() == null) - return null; - Resource resource = null; - try { - resource = getMofResource(aUri); - } catch (java.io.FileNotFoundException ex) { - try { - resource = makeMofResource(aUri); - } catch (DuplicateObjectException dox) { - //We just checked for this; it won't happen - } - } - return resource; - } - - public org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions getOptions() { - if (options == null) { - options = new ArchiveOptions(); - } - return options; - } - - /** - * When looking at the class path of this jar (from the manifest), some of the elements may have - * a relative path, thus we need to determine the install location of this jar. If the absolute - * path from which the archive was loaded, return the parent directory of that path; otherwise, - * see if the containing archive has an absolute path; if neither work, default to the current - * working directory - */ - public String getRootForRelativeDependentJars() { - String path = null; - Container theContainer = this; - while (theContainer != null && path == null) { - try { - path = theContainer.getAbsolutePath(); - } catch (FileNotFoundException ex) { - //Ignore - } - theContainer = theContainer.getLoadingContainer(); - } - if (path == null) { - path = System.getProperty("user.dir");//$NON-NLS-1$ - if (path == null) - //At this point what else can we do? - return "";//$NON-NLS-1$ - return new java.io.File(path).getAbsolutePath(); - } - return new java.io.File(path).getParentFile().getAbsolutePath(); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public java.lang.String[] getRuntimeClassPath() { - - String absolutePath; - try { - absolutePath = getBinariesPath(); - } catch (IOException ex) { - return new String[0]; - } - - List entries = new ArrayList(); - entries.add(absolutePath); - - String parentPath = new java.io.File(absolutePath).getParentFile().getAbsolutePath(); - String[] mfEntries = getManifest().getClassPathTokenized(); - entries.addAll(getEntriesAsAbsolutePaths(mfEntries, parentPath)); - - return (String[]) entries.toArray(new String[entries.size()]); - } - - /** - * Optional filter for saving a subset of files; filter will be applied for all save and extract - * invokations - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilter getSaveFilter() { - return saveFilter; - } - - /** - * Insert the method's description here. Creation date: (12/04/00 3:31:32 PM) - * - * @return com.ibm.etools.archive.SaveStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy getSaveStrategy() { - return saveStrategy; - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return java.lang.String - */ - public java.lang.String getXmlEncoding() { - return xmlEncoding; - } - - /** - * The default is to do nothing; subclasses may override as necessary - * - * @see com.ibm.etools.commonarchive.Archive - */ - public void initializeAfterOpen() { - //Default - } - - public void initializeClassLoader() { - //Some load strategies may provide a mof context for which - //an alternate class loader is not necessary - if (!shouldUseJavaReflection()) - return; - ClassLoader extraCl = null; - ClassLoader defaultCl = getDefaultClassLoader(); - if (getContainer() == null || !getContainer().isEARFile()) - extraCl = getClassPathClassLoader(defaultCl); - ClassLoader cl = createDynamicClassLoader(defaultCl, extraCl); - setArchiveClassLoader(cl); - JavaJDKAdapterFactory factory = getJavaAdapterFactory(); - factory.setContextClassLoader(cl); - factory.flushAll(); - } - - public ClassLoader createDynamicClassLoader(ClassLoader parentCl, ClassLoader extraCl) { - return new ArchiveFileDynamicClassLoader(this, parentCl, extraCl); - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isArchive() { - return true; - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public boolean isDuplicate(java.lang.String aUri) { - return containsFile(aUri) || isMofResourceLoaded(aUri) || J2EEConstants.MANIFEST_URI.equals(aUri); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public boolean isManifestSet() { - return manifest != null; - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public boolean isMofResourceLoaded(java.lang.String aUri) { - return getLoadStrategy().isMofResourceLoaded(aUri); - } - - /** - * By default just test the extension of the uri for one of the known archive types; subclasses - * may which to override. - * - * @see com.ibm.etools.commonarchive.Archive - */ - public boolean isNestedArchive(java.lang.String aUri) { - //110390.3 Error loading alt-bindings - /* - * Don't infer that a folder which ends with .jar is an exploded archive; EAR file will do - * that IF the folder is declared as a module in the EAR - */ - if (getLoadStrategy().isDirectory()) { - try { - String path = ArchiveUtil.getOSUri(getAbsolutePath(), aUri); - java.io.File ioFile = new java.io.File(path); - if (!ioFile.exists() || (ioFile.isDirectory() && aUri.startsWith(J2EEConstants.ALT_INF))) - return false; - } catch (IOException ex) { - return false; - } - } - return ArchiveTypeDiscriminatorRegistry.INSTANCE.isKnownArchiveType(aUri); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public boolean isOpen() { - return getLoadStrategy() != null && getLoadStrategy().isOpen(); - } - - public ArchiveManifest makeManifest() { - ArchiveManifest mf = new ArchiveManifestImpl(); - setManifest(mf); - return mf; - } - - public ArchiveManifest makeManifest(InputStream in) throws IOException { - ArchiveManifest mf = new ArchiveManifestImpl(in); - setManifest(mf); - return mf; - } - - public Resource makeMofResource(String aUri) throws DuplicateObjectException { - return makeMofResource(aUri, null); - } - - /** - * @see com.ibm.etools.commonarchive.Archive#makeMofResource(String, EList) - */ - public Resource makeMofResource(String aUri, EList extent) throws DuplicateObjectException { - if (isDuplicate(aUri)) - throw new DuplicateObjectException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.duplicate_entry_EXC_, (new Object[]{aUri, getURI()}))); // = "A file or resource with uri {0} already exists in the archive named {1}" - return getLoadStrategy().makeMofResource(aUri, extent); - } - - /** - * @see Archive - */ - public Archive openNestedArchive(String aUri) throws OpenFailureException { - return getCommonArchiveFactory().openNestedArchive(aUri, this); - } - - /** - * @see Archive - */ - public Archive openNestedArchive(LooseArchive loose) throws OpenFailureException { - return getCommonArchiveFactory().openNestedArchive(loose, this); - } - - /** - * Set the value of the extra class path with no refresh of the class loader - */ - public void primSetExtraClasspath(java.lang.String newExtraClasspath) { - extraClasspath = newExtraClasspath; - } - - /** - * Remove references to the archive class loader to prevent gc problems or problems with temp - * files not getting deleted - */ - public void releaseClassLoader() { - if (archiveClassLoader != null) { - setArchiveClassLoader(null); - getJavaAdapterFactory().setContextClassLoader(null); - } - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void remove(File aFile) { - getFiles().remove(aFile); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void reopen() throws ReopenException { - reopen(null); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void reopen(Archive parent) throws ReopenException { - LoadStrategy aLoadStrategy = null; - try { - aLoadStrategy = createLoadStrategyForReopen(parent); - } catch (IOException ex) { - throw new ReopenException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.io_ex_reopen_EXC_, (new Object[]{getURI()})), ex); // = "IOException occurred while reopening " - } - //PQ54572 - LoadStrategy current = getLoadStrategy(); - if (current != null) { - aLoadStrategy.setResourceSet(current.primGetResourceSet()); - /* - * fixing problem with orphaned load strategy listening to the resource set - */ - current.setResourceSet(null); - } - - setLoadStrategy(aLoadStrategy); - initializeClassLoader(); - if (!isIndexed()) - return; - List fileList = getFiles(); - for (int i = 0; i < fileList.size(); i++) { - File f = (File) fileList.get(i); - f.setOriginalURI(f.getURI()); - f.setLoadingContainer(this); - if (f.isArchive()) - ((Archive) f).reopen(this); - } - getCommonArchiveFactory().archiveOpened(this); - } - - protected void replaceRoot(Resource aResource, EObject root) { - if (aResource == null) - return; - EList extent = aResource.getContents(); - EObject existingRoot = null; - if (!extent.isEmpty()) { - existingRoot = (EObject) extent.get(0); - if (existingRoot == root) - return; - extent.remove(0); - } - if (root != null) - extent.add(0, root); - } - - protected Archive resolveClasspathEntryInEAR(String entry) { - /* - * Added to support runtime classpath for loose modules - */ - Container parent = getContainer(); - if (parent == null || !parent.isEARFile()) - return null; - - String aUri = ArchiveUtil.deriveEARRelativeURI(entry, this); - if (aUri == null) - return null; - - File aFile = null; - try { - aFile = parent.getFile(aUri); - } catch (FileNotFoundException ex) { - return null; - } - - return aFile.isArchive() ? (Archive) aFile : null; - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void save() throws SaveFailureException, ReopenException { - saveAs(getURI()); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void save(org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy aStrategy) throws SaveFailureException { - setSaveStrategy(aStrategy); - SaveFilter existingFilter = aStrategy.getFilter(); - boolean oldDelivery = eDeliver(); - try { - if (getOptions().isReadOnly()) - eSetDeliver(false); - aStrategy.setFilter(getSaveFilter()); - aStrategy.save(); - try { - aStrategy.finish(); - } catch (java.io.IOException iox) { - throw new SaveFailureException(getURI(), iox); - } - } finally { - //We have to leave the file index if we are a directory because we - // might have - //open file handles to archives - if (getOptions().isReadOnly() && !getLoadStrategy().isDirectory()) { - files.clear(); - //((BasicEList)files).setListImplementation(new ArrayList(0)); - eSetDeliver(oldDelivery); - eAdapters().remove(getFileIndexAdapter()); - fileIndexAdapter = null; - fileIndex = null; - } - setSaveStrategy(null); - aStrategy.setFilter(existingFilter); - } - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void saveAs(String aUri) throws SaveFailureException, ReopenException { - saveAsNoReopen(aUri); - reopen(); - } - - /** - * If we can rename it then we can delete it - */ - protected boolean isRenameable(java.io.File orig) { - java.io.File origCopy1 = null; - java.io.File origCopy2 = null; - try { - origCopy1 = orig.getCanonicalFile(); - origCopy2 = orig.getCanonicalFile(); - } catch (java.io.IOException ex) { - return false; - } - String name = null; - String baseName = "save.tmp"; //$NON-NLS-1$ - try { - if (orig.getParent() != null) - baseName = new java.io.File(orig.getParent(), baseName).getCanonicalPath(); - } catch (java.io.IOException ex) { - return false; - } - - java.io.File temp = null; - int index = 0; - do { - name = baseName + index; - temp = new java.io.File(name); - index++; - } while (temp.exists()); - return origCopy1.renameTo(temp) && temp.renameTo(origCopy2); - } - - protected void checkWriteable(java.io.File dest) throws SaveFailureException { - List locked = ArchiveUtil.getWriteProtectedFiles(dest, null); - if (locked.isEmpty()) - return; - - StringBuffer msg = new StringBuffer(); - msg.append("Cannot write to file: "); //$NON-NLS-1$ - msg.append(dest.getAbsolutePath()); - msg.append('\n'); - msg.append("One or more files is write protected or locked:"); //$NON-NLS-1$ - msg.append('\n'); - for (int i = 0; i < locked.size(); i++) { - java.io.File aFile = (java.io.File) locked.get(i); - msg.append(aFile.getAbsolutePath()); - msg.append('\n'); - } - throw new SaveFailureException(msg.toString()); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void saveAsNoReopen(String aUri) throws SaveFailureException { - java.io.File aFile = new java.io.File(aUri); - checkWriteable(aFile); - boolean fileExisted = aFile.exists(); - //botp 142149 - //boolean inUse = getLoadStrategy().isUsing(aFile); - SaveStrategy aSaveStrategy = null; - try { - try { - java.io.File destinationFile = fileExisted ? ArchiveUtil.createTempFile(aUri, aFile.getCanonicalFile().getParentFile()) : aFile; - aSaveStrategy = createSaveStrategyForJar(destinationFile); - save(aSaveStrategy); - aSaveStrategy.close(); - this.close(); - if (fileExisted) { - cleanupAfterTempSave(aUri, aFile, destinationFile); - } - } catch (java.io.IOException ex) { - throw new SaveFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.error_saving_EXC_, (new Object[]{aUri})), ex); // = "Error saving " - } - } catch (SaveFailureException failure) { - try { - if (aSaveStrategy != null) - aSaveStrategy.close(); - } catch (IOException weTried) { - //Ignore - } - if (!fileExisted) - aFile.delete(); - throw failure; - } - - setURI(aUri); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void saveNoReopen() throws SaveFailureException { - saveAsNoReopen(getURI()); - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newArchiveClassLoader - * java.lang.ClassLoader - */ - public void setArchiveClassLoader(java.lang.ClassLoader newArchiveClassLoader) { - archiveClassLoader = newArchiveClassLoader; - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newExtraClasspath - * java.lang.String - */ - public void setExtraClasspath(java.lang.String newExtraClasspath) { - primSetExtraClasspath(newExtraClasspath); - //Optimization - only re init if a cl exists; otherwise it will init on - // demand - if (archiveClassLoader != null) - initializeClassLoader(); - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - */ - public void setManifest(ArchiveManifest newManifest) { - manifest = newManifest; - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void setManifest(java.util.jar.Manifest aManifest) { - setManifest((ArchiveManifest) new org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifestImpl(aManifest)); - } - - /** - * Sets the Class-path manifest entry, rebuilds the class loader, and refreshes any reflected - * java classes - */ - public void setManifestClassPathAndRefresh(String classpath) { - ArchiveManifest mf = getManifest(); - if (manifest == null) { - makeManifest(); - } - mf.setClassPath(classpath); - //Optimization - only re init if a cl exists; otherwise it will init on - // demand - if (archiveClassLoader != null) - initializeClassLoader(); - } - - public void setOptions(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions newOptions) { - options = newOptions; - } - - /** - * Optional filter for saving a subset of files; filter will be applied for all save and extract - * invokations - */ - public void setSaveFilter(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilter newSaveFilter) { - saveFilter = newSaveFilter; - } - - /** - * Insert the method's description here. Creation date: (12/04/00 3:31:32 PM) - * - * @param newSaveStrategy - * com.ibm.etools.archive.SaveStrategy - */ - public void setSaveStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy newSaveStrategy) { - saveStrategy = newSaveStrategy; - if (newSaveStrategy != null) { - newSaveStrategy.setArchive(this); - } - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newXmlEncoding - * java.lang.String - */ - public void setXmlEncoding(java.lang.String newXmlEncoding) { - xmlEncoding = newXmlEncoding; - } - - /** - * Determine whether java reflection should be set up for this archive - */ - public boolean shouldUseJavaReflection() { - return getOptions().useJavaReflection() && getLoadStrategy().isClassLoaderNeeded(); - } - - protected void throwResourceLoadException(String resourceUri, Exception ex) throws ResourceLoadException { - throw new ResourceLoadException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.load_resource_EXC_, (new Object[]{resourceUri, getURI()})), ex); // = "Could not load resource "{0}" in archive "{1}"" - } - - public String getResourcesPath() throws FileNotFoundException { - return getLoadStrategy().getResourcesPath(); - } - - public String getBinariesPath() throws FileNotFoundException { - return getLoadStrategy().getBinariesPath(); - } - - protected RuntimeClasspathEntry[] emptyClasspath() { - return new RuntimeClasspathEntry[0]; - } - - protected String internalGetBinariesPath() { - try { - return getBinariesPath(); - } catch (FileNotFoundException ex) { - return null; - } - } - - /** - * By default return just the contents of this archive - */ - public RuntimeClasspathEntry[] getLocalRuntimeClassPath() { - - String absolutePath = internalGetBinariesPath(); - if (absolutePath == null) - return emptyClasspath(); - return new RuntimeClasspathEntry[]{createRuntimeClasspathEntry(absolutePath)}; - } - - protected RuntimeClasspathEntry[] getDependencyClassPathAtThisLevel() { - String absolutePath = internalGetBinariesPath(); - if (absolutePath == null) - return emptyClasspath(); - String parentPath = new java.io.File(absolutePath).getParentFile().getAbsolutePath(); - String[] mfEntries = getManifest().getClassPathTokenized(); - if (mfEntries.length == 0) - return emptyClasspath(); - List entries = new ArrayList(); - entries.addAll(createRuntimeClasspathEntries(mfEntries, parentPath)); - - return (RuntimeClasspathEntry[]) entries.toArray(new RuntimeClasspathEntry[entries.size()]); - } - - public RuntimeClasspathEntry[] getFullRuntimeClassPath() { - return concat(getLocalRuntimeClassPath(), getDependencyClassPath()); - } - - protected RuntimeClasspathEntry[] concat(RuntimeClasspathEntry[] array1, RuntimeClasspathEntry[] array2) { - List temp = new ArrayList(); - temp.addAll(Arrays.asList(array1)); - temp.addAll(Arrays.asList(array2)); - return (RuntimeClasspathEntry[]) temp.toArray(new RuntimeClasspathEntry[temp.size()]); - } - - public RuntimeClasspathEntry[] getDependencyClassPath() { - List entries = new ArrayList(); - Set visited = new HashSet(); - Set processedEntries = new HashSet(); - visited.add(this); - getDependencyClassPath(visited, entries, processedEntries, this); - return (RuntimeClasspathEntry[]) entries.toArray(new RuntimeClasspathEntry[entries.size()]); - } - - protected void getDependencyClassPath(Set visitedArchives, List entries, Set processedEntries, Archive current) { - - RuntimeClasspathEntry[] local = ((ArchiveImpl) current).getDependencyClassPathAtThisLevel(); - for (int i = 0; i < local.length; i++) { - RuntimeClasspathEntry entry = local[i]; - if (!processedEntries.contains(entry)) { - entries.add(entry); - processedEntries.add(entry); - } - Archive resolved = entry.getReferencedArchive(); - if (resolved == null) - ClasspathUtil.processManifest(entry.getAbsolutePath(), entries, processedEntries); - else if (!visitedArchives.contains(resolved)) { - visitedArchives.add(resolved); - getDependencyClassPath(visitedArchives, entries, processedEntries, resolved); - } - - } - } - - protected EARFile getEARFile() { - Container parent = getContainer(); - if (parent == null || !(parent instanceof EARFile)) - return null; - return (EARFile) parent; - } - - protected Archive getResolvedArchive(String mfValue, EARFile ear) { - String aUri = ArchiveUtil.deriveEARRelativeURI(mfValue, this); - if (aUri == null) - return null; - try { - return (Archive) ear.getFile(aUri); - } catch (FileNotFoundException ex) { - return null; - } catch (ClassCastException ex2) { - return null; - } - } - - /** - * @see com.ibm.etools.commonarchive.Archive#hasClasspathVisibilityTo(Archive) - */ - public boolean hasClasspathVisibilityTo(Archive other) { - if (other == null) - return false; - EARFile ear = getEARFile(); - if (ear == null) - return false; - Set visited = new HashSet(); - return hasClasspathVisibilityTo(other, visited, ear); - } - - public boolean hasClasspathVisibilityTo(Archive other, Set visited, EARFile ear) { - if (this == other) - return true; - if (visited.contains(this)) - return false; - visited.add(this); - String[] mfEntries = getManifest().getClassPathTokenized(); - for (int i = 0; i < mfEntries.length; i++) { - Archive anArchive = getResolvedArchive(mfEntries[i], ear); - if (anArchive != null && anArchive.hasClasspathVisibilityTo(other, visited, ear)) - return true; - } - return false; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.jst.j2ee.internal.commonarchivecore.Archive#isType(java.lang.String) - */ - public boolean isType(String type) { - - return (types != null && getTypes().contains(type)); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ClientModuleRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ClientModuleRefImpl.java deleted file mode 100644 index a2390518e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ClientModuleRefImpl.java +++ /dev/null @@ -1,183 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ClientModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; - - -public class ClientModuleRefImpl extends ModuleRefImpl implements ClientModuleRef, ModuleRef { - /** - * @generated This field/method will be replaced during code generation. - */ - protected ClientModuleRefImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getClientModuleRef(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.CLIENT_MODULE_REF__EAR_FILE: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.CLIENT_MODULE_REF__EAR_FILE, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.CLIENT_MODULE_REF__EAR_FILE: - return eBasicSetContainer(null, CommonarchivePackage.CLIENT_MODULE_REF__EAR_FILE, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.CLIENT_MODULE_REF__EAR_FILE: - return eContainer.eInverseRemove(this, CommonarchivePackage.EAR_FILE__MODULE_REFS, EARFile.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CLIENT_MODULE_REF__MODULE_FILE: - if (resolve) return getModuleFile(); - return basicGetModuleFile(); - case CommonarchivePackage.CLIENT_MODULE_REF__EAR_FILE: - return getEarFile(); - case CommonarchivePackage.CLIENT_MODULE_REF__MODULE: - if (resolve) return getModule(); - return basicGetModule(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CLIENT_MODULE_REF__MODULE_FILE: - setModuleFile((ModuleFile)newValue); - return; - case CommonarchivePackage.CLIENT_MODULE_REF__EAR_FILE: - setEarFile((EARFile)newValue); - return; - case CommonarchivePackage.CLIENT_MODULE_REF__MODULE: - setModule((Module)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CLIENT_MODULE_REF__MODULE_FILE: - setModuleFile((ModuleFile)null); - return; - case CommonarchivePackage.CLIENT_MODULE_REF__EAR_FILE: - setEarFile((EARFile)null); - return; - case CommonarchivePackage.CLIENT_MODULE_REF__MODULE: - setModule((Module)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CLIENT_MODULE_REF__MODULE_FILE: - return moduleFile != null; - case CommonarchivePackage.CLIENT_MODULE_REF__EAR_FILE: - return getEarFile() != null; - case CommonarchivePackage.CLIENT_MODULE_REF__MODULE: - return module != null; - } - return eDynamicIsSet(eFeature); - } - - public ApplicationClient getApplicationClient() throws ArchiveWrappedException { - return (ApplicationClient) getDeploymentDescriptor(); - } - - - /* - * @see ModuleRef#isClient() - */ - public boolean isClient() { - return true; - } - -} //ClientModuleRefImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/CommonarchiveFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/CommonarchiveFactoryImpl.java deleted file mode 100644 index 35bc0ee5d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/CommonarchiveFactoryImpl.java +++ /dev/null @@ -1,1062 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.WeakHashMap; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ApplicationClientFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ArchiveTypeDiscriminatorRegistry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ClientModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveFactoryRegistry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchiveFactory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ConnectorModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBJarFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ReadOnlyDirectory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WebModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.AppClient12ImportStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.DirectoryArchiveLoadStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.DirectoryArchiveLoadStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear12ImportStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.EjbJar11ImportStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.NestedArchiveLoadStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.NullLoadStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.RarImportStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ReadOnlyDirectoryLoadStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.TempZipFileLoadStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.War22ImportStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.DeleteOnExitUtility; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; - - -/** - * @generated - */ -public class CommonarchiveFactoryImpl extends EFactoryImpl implements CommonarchiveFactory { - - - protected Map openArchives; - private static boolean delegateNeedsInit = true; - private CommonarchiveFactory delegate = null; - - static { - initPrereqs(); - } - - /** - * - */ - public CommonarchiveFactoryImpl() { - super(); - initDelegate(); - } - - /** - * - */ - private void initDelegate() { - if (delegateNeedsInit) { - delegateNeedsInit = false; - delegate = new CommonarchiveFactoryImpl() { - - public ApplicationClientFile createApplicationClientFile() { - return createApplicationClientFileGen(); - } - - - public ClientModuleRef createClientModuleRef() { - return createClientModuleRefGen(); - } - - public ConnectorModuleRef createConnectorModuleRef() { - return createConnectorModuleRefGen(); - } - - public EARFile createEARFile() { - return createEARFileGen(); - } - - public EJBJarFile createEJBJarFile() { - return createEJBJarFileGen(); - } - - public EJBModuleRef createEJBModuleRef() { - return createEJBModuleRefGen(); - } - - public RARFile createRARFile() { - return createRARFileGen(); - } - - public WARFile createWARFile() { - return createWARFileGen(); - } - - public WebModuleRef createWebModuleRef() { - return createWebModuleRefGen(); - } - }; - } - - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case CommonarchivePackage.FILE: return createFile(); - case CommonarchivePackage.ARCHIVE: return createArchive(); - case CommonarchivePackage.EJB_JAR_FILE: return createEJBJarFile(); - case CommonarchivePackage.WAR_FILE: return createWARFile(); - case CommonarchivePackage.EAR_FILE: return createEARFile(); - case CommonarchivePackage.APPLICATION_CLIENT_FILE: return createApplicationClientFile(); - case CommonarchivePackage.READ_ONLY_DIRECTORY: return createReadOnlyDirectory(); - case CommonarchivePackage.RAR_FILE: return createRARFile(); - case CommonarchivePackage.EJB_MODULE_REF: return createEJBModuleRef(); - case CommonarchivePackage.WEB_MODULE_REF: return createWebModuleRef(); - case CommonarchivePackage.CLIENT_MODULE_REF: return createClientModuleRef(); - case CommonarchivePackage.CONNECTOR_MODULE_REF: return createConnectorModuleRef(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public void archiveClosed(Archive aClosedArchive) { - getOpenArchives().remove(aClosedArchive); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public void archiveOpened(Archive anOpenArchive) { - getOpenArchives().put(anOpenArchive, null); - } - - /** - * @deprecated Use {@link #getOpenArchivesDependingOn(Archive)} - */ - public boolean canClose(Archive anArchive) { - return !getOpenArchivesDependingOn(anArchive).isEmpty(); - } - - public void closeOpenArchives() { - if (getOpenArchives().isEmpty()) - return; - List opened = new ArrayList(getOpenArchives().size()); - Iterator it = getOpenArchives().keySet().iterator(); - while (it.hasNext()) { - opened.add(it.next()); - } - for (int i = 0; i < opened.size(); i++) { - Archive anArchive = (Archive) opened.get(i); - anArchive.close(); - } - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public Archive copy(Archive anArchive) { - return new ArchiveCopyUtility().copy(anArchive); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public ModuleFile copy(ModuleFile aModuleFile) { - return new ArchiveCopyUtility().copy(aModuleFile); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public ApplicationClientFile createApplicationClientFileInitialized(java.lang.String uri) { - ApplicationClientFile clientFile = createApplicationClientFile(); - initializeNewApplicationClientFile(clientFile, uri); - return clientFile; - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public Archive createArchiveInitialized(java.lang.String uri) { - Archive anArchive = createArchive(); - initializeNewArchive(anArchive, uri); - return anArchive; - - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public Archive createArchiveInitialized(ArchiveOptions options, java.lang.String uri) { - Archive anArchive = createArchive(); - initializeNewArchive(anArchive, uri, options); - return anArchive; - - } - - public LoadStrategy createChildLoadStrategy(String uri, LoadStrategy parent) throws java.io.IOException, java.io.FileNotFoundException { - - LoadStrategy childStrategy = null; - if (parent.isDirectory()) { - String dirName = ((DirectoryArchiveLoadStrategy) parent).getDirectoryUri(); - String qualifiedUri = ArchiveUtil.getOSUri(dirName, uri); - childStrategy = createLoadStrategy(qualifiedUri); - } else { - childStrategy = createNestedLoadStrategy(uri, parent); - } - return childStrategy; - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EARFile createEARFileInitialized(java.lang.String uri) { - EARFile earFile = createEARFile(); - initializeNewEARFile(earFile, uri); - return earFile; - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EARFile createEARFileInitialized(ArchiveOptions options, java.lang.String uri) { - EARFile earFile = createEARFile(); - initializeNewEARFile(earFile, uri, options); - return earFile; - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EJBJarFile createEJBJarFileInitialized(java.lang.String uri) { - EJBJarFile ejbJarFile = createEJBJarFile(); - initializeNewEJBJarFile(ejbJarFile, uri); - return ejbJarFile; - - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EJBJarFile createEJBJarFileInitialized(ArchiveOptions options, java.lang.String uri) { - EJBJarFile ejbJarFile = createEJBJarFile(); - initializeNewEJBJarFile(ejbJarFile, uri, options); - return ejbJarFile; - - } - - /** - * Returns a NullLoadStrategyImpl; used for new archives - */ - public LoadStrategy createEmptyLoadStrategy() { - return new NullLoadStrategyImpl(); - } - - /** - * Helper method to dynamically build a load strategy from the file system. Determines whether - * the uri points to a jar file or directory and returns the appropriate strategy - */ - public LoadStrategy createLoadStrategy(String uri) throws FileNotFoundException, IOException { - String filename = uri.replace('/', java.io.File.separatorChar); - java.io.File file = new java.io.File(filename); - if (!file.exists()) { - throw new FileNotFoundException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.file_not_found_EXC_, (new Object[]{uri, file.getAbsolutePath()}))); // = "URI Name: {0}; File name: {1}" - } - if (file.isDirectory()) { - return new DirectoryArchiveLoadStrategyImpl(uri); - } - return new org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ZipFileLoadStrategyImpl(file); - } - - /** - * Create a load strategy for a nested archive; by default will extract the nested archive to a - * temp file for performance reasons. This is because random access to the zip entries in a - * nested archive is not supported by the java.util.zip package, and if the archive's contents - * are being modified, copied, etc, this is much faster. If a temp file can not be created, or - * if the archive is opened read only (for runtime), then use a NestedArchiveLoadStrategy, which - * retrieves the contents of a zip entry by sequentially searching a zip input stream - */ - public LoadStrategy createNestedLoadStrategy(String uri, LoadStrategy parent) { - LoadStrategy loadStrategy = null; - ArchiveOptions options = ((Archive) parent.getContainer()).getOptions(); - - if (!options.isReadOnly(uri)) - loadStrategy = createTempZipFileStrategyIfPossible(uri, parent); - - if (loadStrategy == null) - return new NestedArchiveLoadStrategyImpl(parent); - return loadStrategy; - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public RARFile createRARFileInitialized(java.lang.String uri) { - RARFile rarFile = createRARFile(); - initializeNewRARFile(rarFile, uri); - return rarFile; - } - - public LoadStrategy createTempZipFileStrategyIfPossible(String uri, LoadStrategy parent) { - - if (!ArchiveUtil.shouldUseTempDirectoryForRead()) - return null; - - try { - java.io.File tempFile = ArchiveUtil.createTempFile(uri); - DeleteOnExitUtility.markForDeletion(tempFile); - InputStream in = parent.getInputStream(uri); - OutputStream out = new FileOutputStream(tempFile); - ArchiveUtil.copy(in, out); - return new TempZipFileLoadStrategyImpl(tempFile); - } catch (IOException ex) { - ArchiveUtil.inform(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.make_temp_file_WARN_, (new Object[]{uri})) + ex.getLocalizedMessage()); // = "Warning: Unable to create temp file for {0}. This will impact performance." - } - return null; - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public WARFile createWARFileInitialized(java.lang.String uri) { - WARFile warFile = createWARFile(); - initializeNewWARFile(warFile, uri); - return warFile; - } - - protected ArchiveOptions defaultOptions(LoadStrategy aLoadStrategy) { - ArchiveOptions options = new ArchiveOptions(); - options.setLoadStrategy(aLoadStrategy); - return options; - } - - public static CommonarchiveFactory getActiveFactory() { - CommonarchivePackage pkg = getPackage(); - if (pkg != null) - return pkg.getCommonarchiveFactory(); - return null; - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public java.lang.String[] getManifestClassPathValues(java.lang.String uri) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException { - Archive anArchive = primOpenArchive(uri); - String[] result = anArchive.getManifest().getClassPathTokenized(); - anArchive.close(); - return result; - } - - /** - * Insert the method's description here. Creation date: (02/23/01 2:35:55 PM) - * - * @return java.util.Map - */ - public java.util.Map getOpenArchives() { - if (openArchives == null) - openArchives = new WeakHashMap(); - return openArchives; - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public Set getOpenArchivesDependingOn(Archive anArchive) { - Set dependents = new HashSet(); - Iterator opened = getOpenArchives().keySet().iterator(); - while (opened.hasNext()) { - Archive openedArchive = (Archive) opened.next(); - if (openedArchive == anArchive) - continue; - if (!openedArchive.isIndexed()) - //**********Optimization*********** - //If the file list has never been built for the archive, we don't want to trigger - // it now, - //and we are sure that the archive is not preventing the parameter from closing - continue; - List files = openedArchive.getFiles(); - for (int i = 0; i < files.size(); i++) { - File aFile = (File) files.get(i); - if (aFile.getLoadingContainer() == anArchive) { - Archive outermost = openedArchive; - Container c = openedArchive.getContainer(); - while (c != null && c.isArchive()) { - outermost = (Archive) c; - c = c.getContainer(); - } - dependents.add(outermost); - } - } - } - //Elements from one of the children (e.g., a module file in an ear) may have been copied to - //another archive - List nestedArchives = anArchive.getArchiveFiles(); - for (int i = 0; i < nestedArchives.size(); i++) { - dependents.addAll(getOpenArchivesDependingOn((Archive) nestedArchives.get(i))); - } - return dependents; - } - - protected static void initPrereqs() { - org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveInit.invokePrereqInits(true); - ArchiveTypeDiscriminator disc = RootArchiveTypeDescriminatorImpl.singleton(); - disc.addChild(Ear12ImportStrategyImpl.getDiscriminator()); - disc.addChild(War22ImportStrategyImpl.getDiscriminator()); - disc.addChild(AppClient12ImportStrategyImpl.getDiscriminator()); - disc.addChild(RarImportStrategyImpl.getDiscriminator()); - disc.addChild(RootEJBJarDescriminatorImpl.singleton()); - } - - public void initializeNewApplicationClientFile(ApplicationClientFile anArchive, String uri) { - initializeNewModuleFile(anArchive, uri); - } - - public void initializeNewArchive(Archive anArchive, String uri) { - anArchive.setURI(uri); - anArchive.setSize(0); - anArchive.setLastModified(System.currentTimeMillis()); - anArchive.setDirectoryEntry(false); - anArchive.setLoadStrategy(createEmptyLoadStrategy()); - } - - public void initializeNewEARFile(EARFile anArchive, String uri) { - initializeNewModuleFile(anArchive, uri); - } - - public void initializeNewEJBJarFile(EJBJarFile anArchive, String uri) { - initializeNewModuleFile(anArchive, uri); - } - - public void initializeNewModuleFile(ModuleFile anArchive, String uri) { - initializeNewArchive(anArchive, uri); - anArchive.makeDeploymentDescriptorResource(); - } - - public void initializeNewRARFile(RARFile anArchive, String uri) { - initializeNewModuleFile(anArchive, uri); - } - - public void initializeNewWARFile(WARFile anArchive, String uri) { - initializeNewModuleFile(anArchive, uri); - } - - public void initializeNewApplicationClientFile(ApplicationClientFile anArchive, String uri, ArchiveOptions options) { - initializeNewModuleFile(anArchive, uri, options); - } - - public void initializeNewArchive(Archive anArchive, String uri, ArchiveOptions options) { - if (options.getLoadStrategy() == null) { - try { - options.setLoadStrategy(createEmptyLoadStrategy()); - } catch (Exception ex) { - Logger.getLogger().logError(ex); - } - } - - anArchive.setURI(uri); - anArchive.setSize(0); - anArchive.setLastModified(System.currentTimeMillis()); - anArchive.setDirectoryEntry(false); - anArchive.setLoadStrategy(options.getLoadStrategy()); - anArchive.setOptions(options); - - } - - public void initializeNewEARFile(EARFile anArchive, String uri, ArchiveOptions options) { - initializeNewModuleFile(anArchive, uri, options); - } - - public void initializeNewEJBJarFile(EJBJarFile anArchive, String uri, ArchiveOptions options) { - initializeNewModuleFile(anArchive, uri, options); - } - - public void initializeNewModuleFile(ModuleFile anArchive, String uri, ArchiveOptions options) { - initializeNewArchive(anArchive, uri, options); - anArchive.makeDeploymentDescriptorResource(); - } - - public void initializeNewRARFile(RARFile anArchive, String uri, ArchiveOptions options) { - initializeNewModuleFile(anArchive, uri, options); - } - - public void initializeNewWARFile(WARFile anArchive, String uri, ArchiveOptions options) { - initializeNewModuleFile(anArchive, uri, options); - } - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public ApplicationClientFile openApplicationClientFile(ArchiveOptions options, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(options, uri); - ArchiveTypeDiscriminator disc = AppClient12ImportStrategyImpl.getDiscriminator(); - return (ApplicationClientFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public ApplicationClientFile openApplicationClientFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(aLoadStrategy, uri); - ArchiveTypeDiscriminator disc = AppClient12ImportStrategyImpl.getDiscriminator(); - return (ApplicationClientFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public ApplicationClientFile openApplicationClientFile(String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(uri); - ArchiveTypeDiscriminator disc = AppClient12ImportStrategyImpl.getDiscriminator(); - return (ApplicationClientFile) openSpecificArchive(anArchive, disc); - } - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public Archive openArchive(ArchiveOptions options, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(options, uri); - return openSpecificArchive(anArchive, RootArchiveTypeDescriminatorImpl.singleton()); - } - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public Archive openArchive(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(aLoadStrategy, uri); - return openSpecificArchive(anArchive, RootArchiveTypeDescriminatorImpl.singleton()); - } - - /** - * openArchive(String uri) - open the archive by the passed name, setting up the appropriate - * strategies. Name may be a path to a jar, a zip, or a directory return the appropriate Archive - * type - */ - public Archive openArchive(java.lang.String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(uri); - return openSpecificArchive(anArchive, RootArchiveTypeDescriminatorImpl.singleton()); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public Archive openArchive(String uri, String extraClassPath) throws OpenFailureException { - Archive anArchive = primOpenArchive(uri); - anArchive.setExtraClasspath(extraClassPath); - return openSpecificArchive(anArchive, RootArchiveTypeDescriminatorImpl.singleton()); - } - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public EARFile openEARFile(ArchiveOptions options, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(options, uri); - ArchiveTypeDiscriminator disc = Ear12ImportStrategyImpl.getDiscriminator(); - return (EARFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EARFile openEARFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(aLoadStrategy, uri); - ArchiveTypeDiscriminator disc = Ear12ImportStrategyImpl.getDiscriminator(); - return (EARFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EARFile openEARFile(String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(uri); - ArchiveTypeDiscriminator disc = Ear12ImportStrategyImpl.getDiscriminator(); - return (EARFile) openSpecificArchive(anArchive, disc); - } - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public EJBJarFile openEJB11JarFile(ArchiveOptions options, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(options, uri); - ArchiveTypeDiscriminator disc = EjbJar11ImportStrategyImpl.getDiscriminator(); - return (EJBJarFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EJBJarFile openEJB11JarFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(aLoadStrategy, uri); - ArchiveTypeDiscriminator disc = EjbJar11ImportStrategyImpl.getDiscriminator(); - return (EJBJarFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EJBJarFile openEJB11JarFile(String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(uri); - ArchiveTypeDiscriminator disc = EjbJar11ImportStrategyImpl.getDiscriminator(); - return (EJBJarFile) openSpecificArchive(anArchive, disc); - } - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public EJBJarFile openEJBJarFile(ArchiveOptions options, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(options, uri); - RootEJBJarDescriminatorImpl disc = (RootEJBJarDescriminatorImpl) RootEJBJarDescriminatorImpl.singleton(); - return (EJBJarFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EJBJarFile openEJBJarFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(aLoadStrategy, uri); - RootEJBJarDescriminatorImpl disc = (RootEJBJarDescriminatorImpl) RootEJBJarDescriminatorImpl.singleton(); - return (EJBJarFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EJBJarFile openEJBJarFile(LoadStrategy aLoadStrategy, String uri, String extraClassPath) throws OpenFailureException { - Archive anArchive = primOpenArchive(aLoadStrategy, uri); - anArchive.setExtraClasspath(extraClassPath); - RootEJBJarDescriminatorImpl disc = (RootEJBJarDescriminatorImpl) RootEJBJarDescriminatorImpl.singleton(); - return (EJBJarFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EJBJarFile openEJBJarFile(String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(uri); - RootEJBJarDescriminatorImpl disc = (RootEJBJarDescriminatorImpl) RootEJBJarDescriminatorImpl.singleton(); - return (EJBJarFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public EJBJarFile openEJBJarFile(String uri, String extraClassPath) throws OpenFailureException { - Archive anArchive = primOpenArchive(uri); - anArchive.setExtraClasspath(extraClassPath); - RootEJBJarDescriminatorImpl disc = (RootEJBJarDescriminatorImpl) RootEJBJarDescriminatorImpl.singleton(); - return (EJBJarFile) openSpecificArchive(anArchive, disc); - } - - public Archive openNestedArchive(LooseArchive loose, Archive parent) throws OpenFailureException { - String uri = loose.getUri(); - try { - if(loose.getBinariesPath() == null){ - throw new OpenFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.open_nested_EXC_, (new Object[] {uri,parent.getURI()})), null); // = "Could not open the nested archive "{0}" in "{1}"" - } - LoadStrategy childStrategy = createLoadStrategy(loose.getBinariesPath()); - childStrategy.setLooseArchive(loose); - ArchiveOptions options = parent.getOptions().cloneWith(childStrategy, loose.getUri()); - return primOpenArchive(options, uri); - } catch (IOException ex) { - throw new OpenFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.open_nested_EXC_, (new Object[]{uri, parent.getURI()})), ex); // = "Could not open the nested archive "{0}" in "{1}"" - } - } - - /** - * @see CommonarchiveFactory - */ - public Archive openNestedArchive(String uri, Archive parent) throws OpenFailureException { - try { - LoadStrategy childStrategy = createChildLoadStrategy(uri, parent.getLoadStrategy()); - ArchiveOptions options = parent.getOptions().cloneWith(childStrategy, uri); - if (options.shouldDiscriminateNestedArchives()) - return openArchive(options, uri); - return primOpenArchive(options, uri); - } catch (IOException ex) { - throw new OpenFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.open_nested_EXC_, (new Object[]{uri, parent.getURI()})), ex); // = "Could not open the nested archive "{0}" in "{1}"" - } - } - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public RARFile openRARFile(ArchiveOptions options, java.lang.String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(options, uri); - ArchiveTypeDiscriminator disc = RarImportStrategyImpl.getDiscriminator(); - return (RARFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public RARFile openRARFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(aLoadStrategy, uri); - ArchiveTypeDiscriminator disc = RarImportStrategyImpl.getDiscriminator(); - return (RARFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public RARFile openRARFile(String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(uri); - ArchiveTypeDiscriminator disc = RarImportStrategyImpl.getDiscriminator(); - return (RARFile) openSpecificArchive(anArchive, disc); - } - - /** - * openReadOnlyDirectory method comment. - */ - public ReadOnlyDirectory openReadOnlyDirectory(java.lang.String uri) throws java.io.IOException { - java.io.File aFile = new java.io.File(uri); - if (!aFile.exists()) - throw new FileNotFoundException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.could_not_find_dir_EXC_, (new Object[]{uri}))); // = "Unable to open directory " - if (!aFile.isDirectory()) - throw new IOException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.not_a_dir_EXC_, (new Object[]{uri}))); // = "Unable to open directory because file is not a directory :" - LoadStrategy strategy = new ReadOnlyDirectoryLoadStrategyImpl(uri); - ReadOnlyDirectory container = createReadOnlyDirectory(); - container.setURI(uri); - container.setLoadStrategy(strategy); - container.setLastModified(aFile.lastModified()); - return container; - } - - /** - * Take the primitive archive and run it through the list of discriminators to convert it to the - * correct specialized type; after after conversion, tell the archive to initalize itself if - * necessary. - */ - protected Archive openSpecificArchive(Archive anArchive, ArchiveTypeDiscriminator disc) throws OpenFailureException { - if (!disc.canImport(anArchive)) { - anArchive.close(); - throw new OpenFailureException(disc.getUnableToOpenMessage()); - } - Archive specificArchive = disc.openArchive(anArchive); - specificArchive.initializeAfterOpen(); - return specificArchive; - } - - /** - * Special case for ejb jar files, because of the need to support non-compliant 1.0 jars - */ - protected Archive openSpecificArchive(Archive anArchive, RootEJBJarDescriminatorImpl disc) throws OpenFailureException { - Archive specific = openSpecificArchive(anArchive, (ArchiveTypeDiscriminator) disc); - if (specific == anArchive) { - //The discriminator failed to convert the archve to an ejb jar file - anArchive.close(); - throw new OpenFailureException(disc.getUnableToOpenMessage()); - } - return specific; - } - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public WARFile openWARFile(ArchiveOptions options, java.lang.String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(options, uri); - ArchiveTypeDiscriminator disc = War22ImportStrategyImpl.getDiscriminator(); - return (WARFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public WARFile openWARFile(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(aLoadStrategy, uri); - ArchiveTypeDiscriminator disc = War22ImportStrategyImpl.getDiscriminator(); - return (WARFile) openSpecificArchive(anArchive, disc); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public WARFile openWARFile(String uri) throws OpenFailureException { - Archive anArchive = primOpenArchive(uri); - ArchiveTypeDiscriminator disc = War22ImportStrategyImpl.getDiscriminator(); - return (WARFile) openSpecificArchive(anArchive, disc); - } - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public Archive primOpenArchive(ArchiveOptions options, String uri) throws OpenFailureException { - if (options.getLoadStrategy() == null) { - try { - options.setLoadStrategy(createLoadStrategy(uri)); - } catch (IOException ex) { - throw new OpenFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.could_not_open_EXC_, (new Object[]{uri})), ex); // = "Could not open " - } - } - Archive anArchive = createArchive(); - anArchive.setURI(uri); - anArchive.setOriginalURI(uri); - anArchive.setLoadStrategy(options.getLoadStrategy()); - anArchive.setOptions(options); - ArchiveTypeDiscriminatorRegistry.getInstance().contributeTypes(anArchive); - return anArchive; - } - - /** - * open the archive, setting up the appropriate strategies, using the loadStrategy passed in; - * URI still necessary so the archive has a name, but it will not be used for io. - */ - public Archive primOpenArchive(LoadStrategy aLoadStrategy, String uri) throws OpenFailureException { - return primOpenArchive(defaultOptions(aLoadStrategy), uri); - } - - /** - * @see com.ibm.etools.commonarchive.CommonarchiveFactory - */ - public Archive primOpenArchive(String uri) throws OpenFailureException { - return primOpenArchive(new ArchiveOptions(), uri); - } - - protected void setOpenArchives(java.util.Map newOpenArchives) { - openArchives = newOpenArchives; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public WARFile createWARFileGen() { - WARFileImpl warFile = new WARFileImpl(); - return warFile; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EJBJarFile createEJBJarFileGen() { - EJBJarFileImpl ejbJarFile = new EJBJarFileImpl(); - return ejbJarFile; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ApplicationClientFile createApplicationClientFileGen() { - ApplicationClientFileImpl applicationClientFile = new ApplicationClientFileImpl(); - return applicationClientFile; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EARFile createEARFileGen() { - EARFileImpl earFile = new EARFileImpl(); - return earFile; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public RARFile createRARFileGen() { - RARFileImpl rarFile = new RARFileImpl(); - return rarFile; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public File createFile() { - FileImpl file = new FileImpl(); - return file; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ReadOnlyDirectory createReadOnlyDirectory() { - ReadOnlyDirectoryImpl readOnlyDirectory = new ReadOnlyDirectoryImpl(); - return readOnlyDirectory; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public CommonarchivePackage getCommonarchivePackage() { - return (CommonarchivePackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static CommonarchivePackage getPackage() { - return CommonarchivePackage.eINSTANCE; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EJBModuleRef createEJBModuleRefGen() { - EJBModuleRefImpl ejbModuleRef = new EJBModuleRefImpl(); - return ejbModuleRef; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public WebModuleRef createWebModuleRefGen() { - WebModuleRefImpl webModuleRef = new WebModuleRefImpl(); - return webModuleRef; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ClientModuleRef createClientModuleRefGen() { - ClientModuleRefImpl clientModuleRef = new ClientModuleRefImpl(); - return clientModuleRef; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ConnectorModuleRef createConnectorModuleRefGen() { - ConnectorModuleRefImpl connectorModuleRef = new ConnectorModuleRefImpl(); - return connectorModuleRef; - } - - public ClientModuleRef createClientModuleRef(ApplicationClientFile clientFile) { - ClientModuleRef ref = createClientModuleRef(); - ref.setModuleFile(clientFile); - return ref; - } - - /* - * @see CommonarchiveFactory#createConnectorModuleRef(RARFile) - */ - public ConnectorModuleRef createConnectorModuleRef(RARFile rarFile) { - ConnectorModuleRef ref = createConnectorModuleRef(); - ref.setModuleFile(rarFile); - return ref; - - } - - /* - * @see CommonarchiveFactory#createEJBModuleRef(EJBJarFile) - */ - public EJBModuleRef createEJBModuleRef(EJBJarFile ejbJarFile) { - EJBModuleRef ref = createEJBModuleRef(); - ref.setModuleFile(ejbJarFile); - return ref; - } - - /* - * @see CommonarchiveFactory#createWebModuleRef(WARFile) - */ - public WebModuleRef createWebModuleRef(WARFile warFile) { - WebModuleRef ref = createWebModuleRef(); - ref.setModuleFile(warFile); - return ref; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Archive createArchive() { - ArchiveImpl archive = new ArchiveImpl(); - return archive; - } - - public ApplicationClientFile createApplicationClientFile() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory().createApplicationClientFile(); - } - - - public ClientModuleRef createClientModuleRef() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory().createClientModuleRef(); - } - - public ConnectorModuleRef createConnectorModuleRef() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory().createConnectorModuleRef(); - } - - public EARFile createEARFile() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory().createEARFile(); - } - - public EJBJarFile createEJBJarFile() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory().createEJBJarFile(); - } - - public EJBModuleRef createEJBModuleRef() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory().createEJBModuleRef(); - } - - public RARFile createRARFile() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory().createRARFile(); - } - - public WARFile createWARFile() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory().createWARFile(); - } - - public WebModuleRef createWebModuleRef() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory().createWebModuleRef(); - } - - /** - * @return - */ - public CommonarchiveFactory getDelegate() { - return delegate; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/CommonarchivePackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/CommonarchivePackageImpl.java deleted file mode 100644 index 432c25b54..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/CommonarchivePackageImpl.java +++ /dev/null @@ -1,637 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ApplicationClientFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ClientModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchiveFactory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ConnectorModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBJarFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ReadOnlyDirectory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WebModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl.LooseconfigPackageImpl; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; - - -/** - * @lastgen class CommonarchivePackageImpl extends EPackageImpl implements CommonarchivePackage, - * EPackage {} - */ -public class CommonarchivePackageImpl extends EPackageImpl implements CommonarchivePackage { - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass fileEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass archiveEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass ejbJarFileEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass warFileEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass earFileEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass applicationClientFileEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass moduleFileEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass containerEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass readOnlyDirectoryEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass rarFileEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass moduleRefEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass ejbModuleRefEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass webModuleRefEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass clientModuleRefEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass connectorModuleRefEClass = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - private CommonarchivePackageImpl() { - super(eNS_URI, CommonarchiveFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - public static CommonarchivePackage init() { - if (isInited) return (CommonarchivePackage)EPackage.Registry.INSTANCE.getEPackage(CommonarchivePackage.eNS_URI); - - // Obtain or create and register package - CommonarchivePackageImpl theCommonarchivePackage = (CommonarchivePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof CommonarchivePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new CommonarchivePackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - - // Obtain or create and register interdependencies - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - LooseconfigPackageImpl theLooseconfigPackage = (LooseconfigPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(LooseconfigPackage.eNS_URI) instanceof LooseconfigPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(LooseconfigPackage.eNS_URI) : LooseconfigPackage.eINSTANCE); - JavaRefPackageImpl theJavaRefPackage = (JavaRefPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI) instanceof JavaRefPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI) : JavaRefPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - - // Create package meta-data objects - theCommonarchivePackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theLooseconfigPackage.createPackageContents(); - theJavaRefPackage.createPackageContents(); - theCommonPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - - // Initialize created meta-data - theCommonarchivePackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theLooseconfigPackage.initializePackageContents(); - theJavaRefPackage.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theCommonarchivePackage.freeze(); - - return theCommonarchivePackage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getContainer() { - return containerEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getContainer_Files() { - return (EReference)containerEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getWARFile() { - return warFileEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWARFile_DeploymentDescriptor() { - return (EReference)warFileEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getModuleFile() { - return moduleFileEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEARFile() { - return earFileEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEARFile_DeploymentDescriptor() { - return (EReference)earFileEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEARFile_ModuleRefs() { - return (EReference)earFileEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getModuleRef() { - return moduleRefEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getModuleRef_ModuleFile() { - return (EReference)moduleRefEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getModuleRef_EarFile() { - return (EReference)moduleRefEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getModuleRef_Module() { - return (EReference)moduleRefEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEJBModuleRef() { - return ejbModuleRefEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getWebModuleRef() { - return webModuleRefEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getClientModuleRef() { - return clientModuleRefEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getConnectorModuleRef() { - return connectorModuleRefEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getApplicationClientFile() { - return applicationClientFileEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getApplicationClientFile_DeploymentDescriptor() { - return (EReference)applicationClientFileEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEJBJarFile() { - return ejbJarFileEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEJBJarFile_DeploymentDescriptor() { - return (EReference)ejbJarFileEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getRARFile() { - return rarFileEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getRARFile_DeploymentDescriptor() { - return (EReference)rarFileEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getArchive() { - return archiveEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getArchive_Types() { - return (EAttribute)archiveEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getFile() { - return fileEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getFile_URI() { - return (EAttribute)fileEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getFile_LastModified() { - return (EAttribute)fileEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getFile_Size() { - return (EAttribute)fileEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getFile_DirectoryEntry() { - return (EAttribute)fileEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getFile_OriginalURI() { - return (EAttribute)fileEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getFile_LoadingContainer() { - return (EReference)fileEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getFile_Container() { - return (EReference)fileEClass.getEStructuralFeatures().get(6); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getReadOnlyDirectory() { - return readOnlyDirectoryEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public CommonarchiveFactory getCommonarchiveFactory() { - return (CommonarchiveFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - fileEClass = createEClass(FILE); - createEAttribute(fileEClass, FILE__URI); - createEAttribute(fileEClass, FILE__LAST_MODIFIED); - createEAttribute(fileEClass, FILE__SIZE); - createEAttribute(fileEClass, FILE__DIRECTORY_ENTRY); - createEAttribute(fileEClass, FILE__ORIGINAL_URI); - createEReference(fileEClass, FILE__LOADING_CONTAINER); - createEReference(fileEClass, FILE__CONTAINER); - - archiveEClass = createEClass(ARCHIVE); - createEAttribute(archiveEClass, ARCHIVE__TYPES); - - ejbJarFileEClass = createEClass(EJB_JAR_FILE); - createEReference(ejbJarFileEClass, EJB_JAR_FILE__DEPLOYMENT_DESCRIPTOR); - - warFileEClass = createEClass(WAR_FILE); - createEReference(warFileEClass, WAR_FILE__DEPLOYMENT_DESCRIPTOR); - - earFileEClass = createEClass(EAR_FILE); - createEReference(earFileEClass, EAR_FILE__MODULE_REFS); - createEReference(earFileEClass, EAR_FILE__DEPLOYMENT_DESCRIPTOR); - - applicationClientFileEClass = createEClass(APPLICATION_CLIENT_FILE); - createEReference(applicationClientFileEClass, APPLICATION_CLIENT_FILE__DEPLOYMENT_DESCRIPTOR); - - moduleFileEClass = createEClass(MODULE_FILE); - - containerEClass = createEClass(CONTAINER); - createEReference(containerEClass, CONTAINER__FILES); - - readOnlyDirectoryEClass = createEClass(READ_ONLY_DIRECTORY); - - rarFileEClass = createEClass(RAR_FILE); - createEReference(rarFileEClass, RAR_FILE__DEPLOYMENT_DESCRIPTOR); - - moduleRefEClass = createEClass(MODULE_REF); - createEReference(moduleRefEClass, MODULE_REF__MODULE_FILE); - createEReference(moduleRefEClass, MODULE_REF__EAR_FILE); - createEReference(moduleRefEClass, MODULE_REF__MODULE); - - ejbModuleRefEClass = createEClass(EJB_MODULE_REF); - - webModuleRefEClass = createEClass(WEB_MODULE_REF); - - clientModuleRefEClass = createEClass(CLIENT_MODULE_REF); - - connectorModuleRefEClass = createEClass(CONNECTOR_MODULE_REF); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - LooseconfigPackageImpl theLooseconfigPackage = (LooseconfigPackageImpl)EPackage.Registry.INSTANCE.getEPackage(LooseconfigPackage.eNS_URI); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI); - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI); - ClientPackageImpl theClientPackage = (ClientPackageImpl)EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI); - - // Add subpackages - getESubpackages().add(theLooseconfigPackage); - - // Add supertypes to classes - archiveEClass.getESuperTypes().add(this.getContainer()); - ejbJarFileEClass.getESuperTypes().add(this.getModuleFile()); - warFileEClass.getESuperTypes().add(this.getModuleFile()); - earFileEClass.getESuperTypes().add(this.getModuleFile()); - applicationClientFileEClass.getESuperTypes().add(this.getModuleFile()); - moduleFileEClass.getESuperTypes().add(this.getArchive()); - containerEClass.getESuperTypes().add(this.getFile()); - readOnlyDirectoryEClass.getESuperTypes().add(this.getContainer()); - rarFileEClass.getESuperTypes().add(this.getModuleFile()); - ejbModuleRefEClass.getESuperTypes().add(this.getModuleRef()); - webModuleRefEClass.getESuperTypes().add(this.getModuleRef()); - clientModuleRefEClass.getESuperTypes().add(this.getModuleRef()); - connectorModuleRefEClass.getESuperTypes().add(this.getModuleRef()); - - // Initialize classes and features; add operations and parameters - initEClass(fileEClass, File.class, "File", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFile_URI(), ecorePackage.getEString(), "URI", null, 0, 1, File.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFile_LastModified(), ecorePackage.getELong(), "lastModified", null, 0, 1, File.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFile_Size(), ecorePackage.getELong(), "size", null, 0, 1, File.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFile_DirectoryEntry(), ecorePackage.getEBoolean(), "directoryEntry", null, 0, 1, File.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFile_OriginalURI(), ecorePackage.getEString(), "originalURI", null, 0, 1, File.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFile_LoadingContainer(), this.getContainer(), null, "loadingContainer", null, 1, 1, File.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFile_Container(), this.getContainer(), this.getContainer_Files(), "container", null, 0, 1, File.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(archiveEClass, Archive.class, "Archive", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getArchive_Types(), ecorePackage.getEString(), "types", null, 0, -1, Archive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(ejbJarFileEClass, EJBJarFile.class, "EJBJarFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEJBJarFile_DeploymentDescriptor(), theEjbPackage.getEJBJar(), null, "deploymentDescriptor", null, 1, 1, EJBJarFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(warFileEClass, WARFile.class, "WARFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getWARFile_DeploymentDescriptor(), theWebapplicationPackage.getWebApp(), null, "deploymentDescriptor", null, 1, 1, WARFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(earFileEClass, EARFile.class, "EARFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEARFile_ModuleRefs(), this.getModuleRef(), this.getModuleRef_EarFile(), "moduleRefs", null, 1, -1, EARFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEARFile_DeploymentDescriptor(), theApplicationPackage.getApplication(), null, "deploymentDescriptor", null, 1, 1, EARFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(applicationClientFileEClass, ApplicationClientFile.class, "ApplicationClientFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getApplicationClientFile_DeploymentDescriptor(), theClientPackage.getApplicationClient(), null, "deploymentDescriptor", null, 1, 1, ApplicationClientFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(moduleFileEClass, ModuleFile.class, "ModuleFile", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(containerEClass, Container.class, "Container", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getContainer_Files(), this.getFile(), this.getFile_Container(), "files", null, 0, -1, Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(readOnlyDirectoryEClass, ReadOnlyDirectory.class, "ReadOnlyDirectory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(rarFileEClass, RARFile.class, "RARFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRARFile_DeploymentDescriptor(), theJcaPackage.getConnector(), null, "deploymentDescriptor", null, 1, 1, RARFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(moduleRefEClass, ModuleRef.class, "ModuleRef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getModuleRef_ModuleFile(), this.getModuleFile(), null, "moduleFile", null, 1, 1, ModuleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getModuleRef_EarFile(), this.getEARFile(), this.getEARFile_ModuleRefs(), "earFile", null, 1, 1, ModuleRef.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getModuleRef_Module(), theApplicationPackage.getModule(), null, "module", null, 1, 1, ModuleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(ejbModuleRefEClass, EJBModuleRef.class, "EJBModuleRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(webModuleRefEClass, WebModuleRef.class, "WebModuleRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(clientModuleRefEClass, ClientModuleRef.class, "ClientModuleRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(connectorModuleRefEClass, ConnectorModuleRef.class, "ConnectorModuleRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - } - -} //CommonarchivePackageImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ConnectorModuleRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ConnectorModuleRefImpl.java deleted file mode 100644 index 2fc9e790e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ConnectorModuleRefImpl.java +++ /dev/null @@ -1,182 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ConnectorModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.jca.Connector; - - -public class ConnectorModuleRefImpl extends ModuleRefImpl implements ConnectorModuleRef, ModuleRef { - /** - * @generated This field/method will be replaced during code generation. - */ - protected ConnectorModuleRefImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getConnectorModuleRef(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.CONNECTOR_MODULE_REF__EAR_FILE: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.CONNECTOR_MODULE_REF__EAR_FILE, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.CONNECTOR_MODULE_REF__EAR_FILE: - return eBasicSetContainer(null, CommonarchivePackage.CONNECTOR_MODULE_REF__EAR_FILE, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.CONNECTOR_MODULE_REF__EAR_FILE: - return eContainer.eInverseRemove(this, CommonarchivePackage.EAR_FILE__MODULE_REFS, EARFile.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CONNECTOR_MODULE_REF__MODULE_FILE: - if (resolve) return getModuleFile(); - return basicGetModuleFile(); - case CommonarchivePackage.CONNECTOR_MODULE_REF__EAR_FILE: - return getEarFile(); - case CommonarchivePackage.CONNECTOR_MODULE_REF__MODULE: - if (resolve) return getModule(); - return basicGetModule(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CONNECTOR_MODULE_REF__MODULE_FILE: - setModuleFile((ModuleFile)newValue); - return; - case CommonarchivePackage.CONNECTOR_MODULE_REF__EAR_FILE: - setEarFile((EARFile)newValue); - return; - case CommonarchivePackage.CONNECTOR_MODULE_REF__MODULE: - setModule((Module)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CONNECTOR_MODULE_REF__MODULE_FILE: - setModuleFile((ModuleFile)null); - return; - case CommonarchivePackage.CONNECTOR_MODULE_REF__EAR_FILE: - setEarFile((EARFile)null); - return; - case CommonarchivePackage.CONNECTOR_MODULE_REF__MODULE: - setModule((Module)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CONNECTOR_MODULE_REF__MODULE_FILE: - return moduleFile != null; - case CommonarchivePackage.CONNECTOR_MODULE_REF__EAR_FILE: - return getEarFile() != null; - case CommonarchivePackage.CONNECTOR_MODULE_REF__MODULE: - return module != null; - } - return eDynamicIsSet(eFeature); - } - - public Connector getConnector() throws ArchiveWrappedException { - return (Connector) getDeploymentDescriptor(); - } - - /* - * @see ModuleRef#isConnector() - */ - public boolean isConnector() { - return true; - } - -} //ConnectorModuleRefImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ContainerImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ContainerImpl.java deleted file mode 100644 index ad2ab4a6e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ContainerImpl.java +++ /dev/null @@ -1,504 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; - - -/** - * @generated - */ -public abstract class ContainerImpl extends FileImpl implements Container { - - - /** - * Inner class which maintains the index for the domain's collection of nodes keyed by name. - */ - protected class FileNotificationAdapter extends AdapterImpl { - public boolean isAdapterForType(Object type) { - return (type == "FileNotificationAdapter");//$NON-NLS-1$ - } - - public void addIndexedFile(String newValue, Notifier notifier) { - fileIndex.put(newValue, notifier); - if (notifier.eAdapters() == null || !notifier.eAdapters().contains(this)) - notifier.eAdapters().add(this); - } - - public void removeIndexedFile(String oldValue, Notifier notifier) { - fileIndex.remove(oldValue); - notifier.eAdapters().remove(this); - } - - public void notifyChanged(Notification notification) { - if (fileIndex == null || notification.getFeature() == null) - return; - //If the name changed, update the index - if (notification.getFeature().equals(CommonarchivePackage.eINSTANCE.getFile_URI()) && ((File) notification.getNotifier()).getContainer() == ContainerImpl.this) { - fileIndex.remove(notification.getOldValue()); - fileIndex.put(notification.getNewValue(), notification.getNotifier()); - } - //Handle adds and removes - if (notification.getFeature().equals(CommonarchivePackage.eINSTANCE.getContainer_Files()) && notification.getNotifier() == ContainerImpl.this) { - switch (notification.getEventType()) { - case Notification.ADD : { - File file = (File) notification.getNewValue(); - addIndexedFile(file.getURI(), file); - break; - } - case Notification.REMOVE : { - removeIndexedFile(((File) notification.getOldValue()).getURI(), (File) notification.getOldValue()); - break; - } - case Notification.ADD_MANY : { - filesAdded((List) notification.getNewValue()); - break; - } - case Notification.REMOVE_MANY : { - filesRemoved((List) notification.getOldValue()); - break; - } - case Notification.MOVE : { - break; - } - case Notification.SET : { - if (notification.getPosition() != Notification.NO_INDEX) { //This is now a - // replace in - // MOF2 - File file = (File) notification.getNewValue(); - removeIndexedFile(((File) notification.getOldValue()).getURI(), (File) notification.getOldValue()); - addIndexedFile(file.getURI(), file); - } - break; - } - } - } - } - - public void filesAdded(List newFiles) { - for (int i = 0; i < newFiles.size(); i++) { - File file = (File) newFiles.get(i); - addIndexedFile(file.getURI(), file); - } - } - - public void filesRemoved(List oldFiles) { - for (int i = 0; i < oldFiles.size(); i++) { - File file = (File) oldFiles.get(i); - removeIndexedFile(file.getURI(), file); - } - } - - public void rebuildFileIndex() { - removeAdaptersIfNecessary(); - fileIndex = new HashMap(); - - // If the primary collection already has elements, - //'reflect them in the index... - if (getFiles().size() > 0) { - Iterator i = getFiles().iterator(); - while (i.hasNext()) { - File file = (File) i.next(); - addIndexedFile(file.getURI(), file); - } - } - } - - public void removeAdaptersIfNecessary() { - if (fileIndex == null) - return; - Iterator iter = fileIndex.values().iterator(); - while (iter.hasNext()) { - File aFile = (File) iter.next(); - aFile.eAdapters().remove(this); - } - } - } - - /** Implementer for loading entries in this container */ - protected LoadStrategy loadStrategy; - /** - * Index to provide fast lookup by name of files. - */ - protected Map fileIndex; - /** - * An adapter which maintains the file index - */ - protected FileNotificationAdapter fileIndexAdapter; - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList files = null; - - public ContainerImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getContainer(); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public boolean containsFile(java.lang.String aUri) { - String key = aUri.startsWith("/") ? ArchiveUtil.truncateFromFrontIgnoreCase(aUri, "/") : aUri;//$NON-NLS-2$//$NON-NLS-1$ - if (isIndexed()) - return getFileIndex().containsKey(key); - return getLoadStrategy().contains(key); - - } - - /** - * @see com.ibm.etools.commonarchive.Container - */ - public java.lang.String getAbsolutePath() throws java.io.FileNotFoundException { - return getLoadStrategy().getAbsolutePath(); - } - - public File getFile(String URI) throws java.io.FileNotFoundException { - if (!isIndexed()) { - getFiles(); - } - File file = (File) getFileIndex().get(URI); - if (file == null) { - throw new java.io.FileNotFoundException(URI); - } - return file; - } - - /** - * Insert the method's description here. Creation date: (12/05/00 7:20:21 PM) - * - * @return java.util.Map - */ - protected java.util.Map getFileIndex() { - if (fileIndex == null) - getFileIndexAdapter().rebuildFileIndex(); - return fileIndex; - } - - /** - * Insert the method's description here. Creation date: (12/05/00 7:20:21 PM) - * - * @return FileNotificationAdapter - */ - protected FileNotificationAdapter getFileIndexAdapter() { - if (fileIndexAdapter == null) { - fileIndexAdapter = new FileNotificationAdapter(); - eAdapters().add(fileIndexAdapter); - } - return fileIndexAdapter; - } - - /** - * List is built on demand, by requesting from the load strategy. - */ - public EList getFiles() { - EList filesList = this.getFilesGen(); - if (!isIndexed()) { - if (filesList.isEmpty() && getLoadStrategy() != null) { - filesList.addAll(getLoadStrategy().collectFiles()); - } - //Causes the index to be built - getFileIndex(); - } - return filesList; - } - - /** - * @see com.ibm.etools.commonarchive.Archive Looks for a file with the given uri, and returns an - * input stream; optimization: if the file list has not been built, goes directly to the - * loadStrategy. - */ - public java.io.InputStream getInputStream(java.lang.String aUri) throws java.io.IOException, java.io.FileNotFoundException { - if (isIndexed()) { - return getFile(aUri).getInputStream(); - } - return primGetInputStream(aUri); - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return com.ibm.etools.archive.LoadStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy getLoadStrategy() { - return loadStrategy; - } - - public boolean isContainer() { - return true; - } - - public boolean isIndexed() { - return fileIndex != null; - } - - /** - * @see com.ibm.etools.commonarchive.Archive Goes directly to the loadStrategy. - */ - public java.io.InputStream primGetInputStream(java.lang.String aUri) throws java.io.IOException, java.io.FileNotFoundException { - return getLoadStrategy().getInputStream(aUri); - } - - public void rebuildFileIndex() { - getFileIndexAdapter().rebuildFileIndex(); - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newLoadStrategy - * com.ibm.etools.archive.LoadStrategy - */ - public void setLoadStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy newLoadStrategy) { - - if (newLoadStrategy != null) { - newLoadStrategy.setContainer(this); - if (loadStrategy != null) { - newLoadStrategy.setRendererType(loadStrategy.getRendererType()); - newLoadStrategy.setReadOnly(loadStrategy.isReadOnly()); - loadStrategy.setContainer(null); - loadStrategy.close(); - } - } - loadStrategy = newLoadStrategy; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getFilesGen() { - if (files == null) { - files = new EObjectContainmentWithInverseEList(File.class, this, CommonarchivePackage.CONTAINER__FILES, CommonarchivePackage.FILE__CONTAINER); - } - return files; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.CONTAINER__CONTAINER: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.CONTAINER__CONTAINER, msgs); - case CommonarchivePackage.CONTAINER__FILES: - return ((InternalEList)getFiles()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.CONTAINER__CONTAINER: - return eBasicSetContainer(null, CommonarchivePackage.CONTAINER__CONTAINER, msgs); - case CommonarchivePackage.CONTAINER__FILES: - return ((InternalEList)getFiles()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.CONTAINER__CONTAINER: - return eContainer.eInverseRemove(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CONTAINER__URI: - return getURI(); - case CommonarchivePackage.CONTAINER__LAST_MODIFIED: - return new Long(getLastModified()); - case CommonarchivePackage.CONTAINER__SIZE: - return new Long(getSize()); - case CommonarchivePackage.CONTAINER__DIRECTORY_ENTRY: - return isDirectoryEntry() ? Boolean.TRUE : Boolean.FALSE; - case CommonarchivePackage.CONTAINER__ORIGINAL_URI: - return getOriginalURI(); - case CommonarchivePackage.CONTAINER__LOADING_CONTAINER: - if (resolve) return getLoadingContainer(); - return basicGetLoadingContainer(); - case CommonarchivePackage.CONTAINER__CONTAINER: - return getContainer(); - case CommonarchivePackage.CONTAINER__FILES: - return getFiles(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CONTAINER__URI: - setURI((String)newValue); - return; - case CommonarchivePackage.CONTAINER__LAST_MODIFIED: - setLastModified(((Long)newValue).longValue()); - return; - case CommonarchivePackage.CONTAINER__SIZE: - setSize(((Long)newValue).longValue()); - return; - case CommonarchivePackage.CONTAINER__DIRECTORY_ENTRY: - setDirectoryEntry(((Boolean)newValue).booleanValue()); - return; - case CommonarchivePackage.CONTAINER__ORIGINAL_URI: - setOriginalURI((String)newValue); - return; - case CommonarchivePackage.CONTAINER__LOADING_CONTAINER: - setLoadingContainer((Container)newValue); - return; - case CommonarchivePackage.CONTAINER__CONTAINER: - setContainer((Container)newValue); - return; - case CommonarchivePackage.CONTAINER__FILES: - getFiles().clear(); - getFiles().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CONTAINER__URI: - setURI(URI_EDEFAULT); - return; - case CommonarchivePackage.CONTAINER__LAST_MODIFIED: - unsetLastModified(); - return; - case CommonarchivePackage.CONTAINER__SIZE: - unsetSize(); - return; - case CommonarchivePackage.CONTAINER__DIRECTORY_ENTRY: - unsetDirectoryEntry(); - return; - case CommonarchivePackage.CONTAINER__ORIGINAL_URI: - setOriginalURI(ORIGINAL_URI_EDEFAULT); - return; - case CommonarchivePackage.CONTAINER__LOADING_CONTAINER: - setLoadingContainer((Container)null); - return; - case CommonarchivePackage.CONTAINER__CONTAINER: - setContainer((Container)null); - return; - case CommonarchivePackage.CONTAINER__FILES: - getFiles().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.CONTAINER__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case CommonarchivePackage.CONTAINER__LAST_MODIFIED: - return isSetLastModified(); - case CommonarchivePackage.CONTAINER__SIZE: - return isSetSize(); - case CommonarchivePackage.CONTAINER__DIRECTORY_ENTRY: - return isSetDirectoryEntry(); - case CommonarchivePackage.CONTAINER__ORIGINAL_URI: - return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); - case CommonarchivePackage.CONTAINER__LOADING_CONTAINER: - return loadingContainer != null; - case CommonarchivePackage.CONTAINER__CONTAINER: - return getContainer() != null; - case CommonarchivePackage.CONTAINER__FILES: - return files != null && !files.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - public void clearFiles() { - boolean oldDelivery = eDeliver(); - files.clear(); - eSetDeliver(oldDelivery); - if (isIndexed()) { - eAdapters().remove(fileIndexAdapter); - fileIndexAdapter = null; - fileIndex = null; - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/EARFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/EARFileImpl.java deleted file mode 100644 index 0b4b63964..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/EARFileImpl.java +++ /dev/null @@ -1,1320 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationFactory; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.ConnectorModule; -import org.eclipse.jst.j2ee.application.EjbModule; -import org.eclipse.jst.j2ee.application.JavaClientModule; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.application.WebModule; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.client.internal.impl.ApplicationClientResourceFactory; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBJarFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.EmptyResourceException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ObjectNotFoundException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBResource; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.internal.impl.EJBJarResourceFactory; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.jst.j2ee.jca.Connector; -import org.eclipse.jst.j2ee.jca.internal.impl.ConnectorResourceFactory; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppResourceFactory; -import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry; -import org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility; - - -/** - * @generated - */ -public class EARFileImpl extends ModuleFileImpl implements EARFile { - - /** - * Internal; clients should use {@link #getModuleRef(Module)} - */ - public ModuleFile getModuleFile(Module moduleDescriptor) { - ModuleRef ref = getModuleRef(moduleDescriptor); - return (ref == null) ? null : ref.getModuleFile(); - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public ModuleFile addCopy(ModuleFile aModuleFile) throws DuplicateObjectException { - Object result = primAddCopyRef(aModuleFile); - if (result instanceof ModuleRef) - return ((ModuleRef) result).getModuleFile(); - - return (ModuleFile) result; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected Application deploymentDescriptor = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList moduleRefs = null; - - public EARFileImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getEARFile(); - } - - public Archive addCopy(Archive anArchive) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException { - if (anArchive.isModuleFile()) - return addCopy((ModuleFile) anArchive); - Archive copy = super.addCopy(anArchive); - copy.initializeClassLoader(); - return copy; - } - - protected Object primAddCopyRef(ModuleFile aModuleFile) throws DuplicateObjectException { - //force this list to get initialized before the add - EList refs = getModuleRefs(); - - if (aModuleFile.isEARFile()) - //If it's an ear then just treat it like any other archive - return (ModuleFile) super.addCopy(aModuleFile); - checkAddValid(aModuleFile); - ModuleFile copy = getCommonArchiveFactory().copy(aModuleFile); - Module newModule = createModuleForCopying(aModuleFile); - getFiles().add(copy); - copy.initializeClassLoader(); - if (!copy.getURI().equals(newModule.getUri())) - copy.setURI(newModule.getUri()); - - getDeploymentDescriptor().getModules().add(newModule); - ModuleRef aRef = createModuleRef(newModule, copy); - refs.add(aRef); - return aRef; - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public ModuleRef addCopyRef(ModuleFile aModuleFile) throws DuplicateObjectException { - Object result = primAddCopyRef(aModuleFile); - if (result instanceof ModuleRef) - return (ModuleRef) result; - - return null; - } - - - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public SecurityRole addCopy(SecurityRole aRole, Module aModule) throws DuplicateObjectException { - EObject dd = null; - try { - dd = getDeploymentDescriptor(aModule); - } catch (Exception e) { - throw new DeploymentDescriptorLoadException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.dd_in_ear_load_EXC_, (new Object[]{aModule.getUri(), getURI()})), e); // = "Exception occurred loading deployment descriptor for module "{0}" in ear file "{1}"" - } - String roleName = aRole.getRoleName(); - SecurityRole copy = (SecurityRole) EtoolsCopyUtility.createCopy(aRole); - if (aModule.isEjbModule()) { - EJBJar ejbJar = (EJBJar) dd; - if (ejbJar.containsSecurityRole(roleName)) - throw new DuplicateObjectException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.dup_sec_role_module_EXC_, (new Object[]{aModule.getUri(), roleName})), ejbJar.getAssemblyDescriptor().getSecurityRoleNamed(roleName)); // = "Deployment descriptor for {0} already contains a security role named {1}" - getAssemblyDescriptorAddIfNecessary(ejbJar).getSecurityRoles().add(copy); - } else if (aModule.isWebModule()) { - WebApp webApp = (WebApp) dd; - if (webApp.containsSecurityRole(roleName)) - throw new DuplicateObjectException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.dup_sec_role_module_EXC_, (new Object[]{aModule.getUri(), roleName})), webApp.getSecurityRoleNamed(roleName));// = "Deployment descriptor for {0} already contains a security role named {1}" - webApp.getSecurityRoles().add(copy); - } - addCopyIfNotExists(aRole); - return copy; - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public SecurityRole addCopyIfNotExists(SecurityRole aRole) { - Application dd = getDeploymentDescriptor(); - SecurityRole copy = null; - if (!dd.containsSecurityRole(aRole.getRoleName())) { - copy = (SecurityRole) EtoolsCopyUtility.createCopy(aRole); - dd.getSecurityRoles().add(copy); - } - return copy; - } - - protected void checkDuplicate(String aUri) throws DuplicateObjectException { - if (isDuplicate(aUri)) - throw new DuplicateObjectException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.dup_resource_EXC_, (new Object[]{aUri, getURI()}))); // = "Resource named "{0}" already exists in archive "{1}"" - } - - - protected Module createModuleForCopying(ModuleFile aModuleFile) { - Module aModule = null; - if (aModuleFile.isWARFile()) { - aModule = getApplicationFactory().createWebModule(); - } else if (aModuleFile.isEJBJarFile()) { - aModule = getApplicationFactory().createEjbModule(); - } else if (aModuleFile.isApplicationClientFile()) { - aModule = getApplicationFactory().createJavaClientModule(); - } else if (aModuleFile.isRARFile()) { - aModule = getApplicationFactory().createConnectorModule(); - } - aModule.setUri(aModuleFile.getURI()); - return aModule; - } - - /** - * Retrieves the deployment descriptor root element for the specified module. Takes into account - * altDD indirection. - * - * @return Only return null if an altDD is not defined. - */ - public EObject getAltDeploymentDescriptor(Module aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException { - // Look for altDD - String altDD = aModule.getAltDD(); - if (ArchiveUtil.isNullOrEmpty(altDD)) - return null; - if (!isMofResourceLoaded(altDD.trim())) - registerResourceFactory(aModule, altDD); - XMLResource ddRes = (XMLResource) getMofResource(altDD.trim()); - if (!ddRes.isAlt()) { - ddRes.setIsAlt(true); - ddRes.setApplication(getDeploymentDescriptor()); - } - return ArchiveUtil.getRoot(ddRes); - - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public java.util.List getApplicationClientFiles() { - List clientFiles = new ArrayList(); - List fileList = getFiles(); - for (int i = 0; i < fileList.size(); i++) { - File aFile = (File) fileList.get(i); - if (aFile.isApplicationClientFile()) { - clientFiles.add(aFile); - } - } - return clientFiles; - } - - protected ApplicationFactory getApplicationFactory() { - return ((ApplicationPackage) EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI)).getApplicationFactory(); - } - - protected AssemblyDescriptor getAssemblyDescriptorAddIfNecessary(EJBJar ejbJar) { - AssemblyDescriptor ad = ejbJar.getAssemblyDescriptor(); - if (ad == null) { - ad = ((EjbPackage) EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI)).getEjbFactory().createAssemblyDescriptor(); - ejbJar.setAssemblyDescriptor(ad); - } - return ad; - } - - - /** - * @throws DeploymentDescriptorLoadException - - * is a runtime exception, because we can't override the signature of the generated - * methods - */ - public Application getDeploymentDescriptor() throws DeploymentDescriptorLoadException { - Application dd = this.getDeploymentDescriptorGen(); - if (dd == null && canLazyInitialize()) { - try { - getImportStrategy().importMetaData(); - } catch (Exception e) { - throw new DeploymentDescriptorLoadException(getDeploymentDescriptorUri(), e); - } - } - return this.getDeploymentDescriptorGen(); - } - - /** - * Retrieves the deployment descriptor root element for the specified module. Takes into account - * altDD indirection. - */ - public Connector getDeploymentDescriptor(ConnectorModule aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException { - return (Connector) getDeploymentDescriptor((Module) aModule); - } - - /** - * Retrieves the deployment descriptor root element for the specified module. Takes into account - * altDD indirection. - */ - public EJBJar getDeploymentDescriptor(EjbModule aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException { - return (EJBJar) getDeploymentDescriptor((Module) aModule); - } - - /** - * Retrieves the deployment descriptor root element for the specified module. Takes into account - * altDD indirection. - */ - public ApplicationClient getDeploymentDescriptor(JavaClientModule aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException { - return (ApplicationClient) getDeploymentDescriptor((Module) aModule); - } - - /** - * Retrieves the deployment descriptor root element for the specified module. Takes into account - * altDD indirection. - */ - public EObject getDeploymentDescriptor(Module aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException { - EObject dd = getAltDeploymentDescriptor(aModule); - if (dd == null) - dd = getModuleFile(aModule).getStandardDeploymentDescriptor(); - return dd; - } - - /** - * Retrieves the deployment descriptor root element for the specified module. Takes into account - * altDD indirection. - */ - public WebApp getDeploymentDescriptor(WebModule aModule) throws FileNotFoundException, ResourceLoadException, EmptyResourceException { - return (WebApp) getDeploymentDescriptor((Module) aModule); - } - - /** - * @see com.ibm.etools.commonarchive.ModuleFile - */ - public java.lang.String getDeploymentDescriptorUri() { - return J2EEConstants.APPLICATION_DD_URI; - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public java.util.List getEJBJarFiles() { - List ejbJarFiles = new ArrayList(); - List fileList = getFiles(); - for (int i = 0; i < fileList.size(); i++) { - File aFile = (File) fileList.get(i); - if (aFile.isEJBJarFile()) { - ejbJarFiles.add(aFile); - } - } - return ejbJarFiles; - } - - /** - * Return an enterprise bean referenced by the EjbRef, if one exists. The ejb-link value of the - * ref must equate to a named enterprise bean contained in the jar; otherwise return null. - * Returns the first hit found; assumption that the ejb names are unique within the scope of the - * ear file. This will likely be replaced with a better way for dereferencing ejb refs. - * - * Can be used with ejb 1.1 references only. - * - * @deprecated {@link#getEnterpiseBeanFromRef(EjbRef ref, String moduleUri ) - * @param EjbRef - * ref - An ejb reference - * @return EnterpriseBean - */ - public EnterpriseBean getEnterpiseBeanFromRef(EjbRef ref) { - String link = ref.getLink(); - if (link == null) { - return null; - } - List jarFiles = getEJBJarFiles(); - for (int i = 0; i < jarFiles.size(); i++) { - EnterpriseBean bean = ((EJBJarFile) jarFiles.get(i)).getDeploymentDescriptor().getEnterpriseBeanNamed(link); - if (bean != null) { - return bean; - } - } - return null; - } - - /** - * Return an enterprise bean referenced by the EjbRef, if one exists. The ejb-link value of the - * ref must equate to a named enterprise bean contained in the jar; otherwise return null. - * Returns the first hit found; assumption that the ejb names are unique within the scope of the - * ear file. This will likely be replaced with a better way for dereferencing ejb refs - * - * Can be used with ejb 1.1 & ejb 2.0 references. - * - * @param EjbRef - * ref - An ejb reference - * @param String - * moduleUri - The module uri - * @return EnterpriseBean - */ - public EnterpriseBean getEnterpiseBeanFromRef(EjbRef ref, String moduleUri) { - String link = ref.getLink(); - if (link == null) { - return null; - }// if - - if (link.indexOf('#') == -1) { - EnterpriseBean linkedEJB = null; - XMLResource res = (XMLResource) ref.eResource(); - if (res instanceof EJBResource) { - //Must be in an EJB JAR to be here - EJBJar jar = ((EJBResource) res).getEJBJar(); - if (jar != null) - linkedEJB = jar.getEnterpiseBeanFromRef(ref); - } - if (linkedEJB == null) { - List jarFiles = getEJBJarFiles(); - for (int i = 0; i < jarFiles.size(); i++) { - linkedEJB = ((EJBJarFile) jarFiles.get(i)).getDeploymentDescriptor().getEnterpriseBeanNamed(link); - if (linkedEJB != null) { - return linkedEJB; - }// if - }// for - } else - return linkedEJB; - } else { - //Grab the ejb name and ejb jar name from the link - String ejbBeanName = link.substring(link.indexOf("#") + 1, link.length()); //$NON-NLS-1$ - String ejbJarName = link.substring(0, link.indexOf("#")); //$NON-NLS-1$ - - if (ejbBeanName != null && ejbJarName != null) { - //Get the uri of the jar name. - String ejbJarUri = ArchiveUtil.deriveEARRelativeURI(ejbJarName, moduleUri); - if (ejbJarUri != null) { - try { - //Get the actual jar file - File aFile = getFile(ejbJarUri); - if (aFile == null || !aFile.isEJBJarFile()) - return null; - - EJBJarFile jarFile = (EJBJarFile) getFile(ejbJarUri); - List ejbs = jarFile.getDeploymentDescriptor().getEnterpriseBeans(); - //Check if any of the beans in the list match the given ejb bean name give - // in - //the link - if (ejbs != null && !ejbs.isEmpty()) { - Iterator it = ejbs.iterator(); - while (it.hasNext()) { - EnterpriseBean ejbBean = (EnterpriseBean) it.next(); - if (ejbBean != null && ejbBean.getName().equals(ejbBeanName)) { - return ejbBean; - }// if - }// while - }// if - } catch (FileNotFoundException fe) { - return null; - }// try - }// if - }// if - }// if - return null; - }// getEnterpiseBeanFromRef - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public Module getModule(String aUri, String altDD) { - return getDeploymentDescriptor().getModule(aUri, altDD); - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public ModuleRef getModuleRef(Module moduleDescriptor) { - List refs = getModuleRefs(); - for (int i = 0; i < refs.size(); i++) { - ModuleRef ref = (ModuleRef) refs.get(i); - if (ref.getModule() == moduleDescriptor) - return ref; - } - return null; - } - - /** - * Return a filtered list of the archives - */ - public List getModuleFiles() { - List moduleFiles = new ArrayList(); - List fileList = getFiles(); - for (int i = 0; i < fileList.size(); i++) { - File aFile = (File) fileList.get(i); - if (aFile.isModuleFile()) { - moduleFiles.add(aFile); - } - } - return moduleFiles; - } - - protected ArchiveOptions getOptionsForOpening(String aUri) throws IOException { - - LoadStrategy strategy = getCommonArchiveFactory().createChildLoadStrategy(aUri, getLoadStrategy()); - return getOptions().cloneWith(strategy, aUri); - } - - protected ArchiveOptions getOptionsForOpening(LooseArchive loose) throws IOException, OpenFailureException{ - if(loose.getBinariesPath() == null){ - throw new OpenFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.open_nested_EXC_, (new Object[] {loose.getUri(), getURI()})), null); // = "Could not open the nested archive "{0}" in "{1}"" - } - LoadStrategy strategy = getCommonArchiveFactory().createLoadStrategy(loose.getBinariesPath()); - strategy.setLooseArchive(loose); - return getOptions().cloneWith(strategy, loose.getUri()); - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public java.util.List getRARFiles() { - List rarFiles = new ArrayList(); - List fileList = getFiles(); - for (int i = 0; i < fileList.size(); i++) { - File aFile = (File) fileList.get(i); - if (aFile.isRARFile()) { - rarFiles.add(aFile); - } - } - return rarFiles; - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public EList getRolesFromAllModules() { - EList roleList = new org.eclipse.emf.common.util.BasicEList(); - List modules = getDeploymentDescriptor().getModules(); - for (int i = 0, n = modules.size(); i < n; i++) { - Module aModule = (Module) modules.get(i); - EList roles = getRolesFromModule(aModule); - for (int j = 0, m = roles.size(); j < m; j++) { - roleList.add(roles.get(j)); - } - } - return roleList; - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public EList getRolesFromModule(Module aModule) { - EList roleList = new org.eclipse.emf.common.util.BasicEList(); - try { - if (aModule.isWebModule()) - roleList = getDeploymentDescriptor((WebModule) aModule).getSecurityRoles(); - else if (aModule.isEjbModule()) - roleList = getAssemblyDescriptorAddIfNecessary(getDeploymentDescriptor((EjbModule) aModule)).getSecurityRoles(); - } catch (Exception e) { - throw new DeploymentDescriptorLoadException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.dd_in_ear_load_EXC_, (new Object[]{aModule.getUri(), getURI()})), e); // = "Exception occurred loading deployment descriptor for module "{0}" in ear file "{1}"" - } - return roleList; - } - - /** - * Return the DeployementDescriptor. - */ - public EObject getStandardDeploymentDescriptor() throws DeploymentDescriptorLoadException { - return getDeploymentDescriptor(); - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public java.util.List getWARFiles() { - List warFiles = new ArrayList(); - List fileList = getFiles(); - for (int i = 0; i < fileList.size(); i++) { - File aFile = (File) fileList.get(i); - if (aFile.isWARFile()) { - warFiles.add(aFile); - } - } - return warFiles; - } - - public void initializeAfterOpen() { - super.initializeAfterOpen(); - } - - public boolean isDeploymentDescriptorSet() { - return deploymentDescriptor != null; - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isEARFile() { - return true; - } - - /** - * Return true if super returns true, or return whether the app dd contains a module having the - * uri - */ - public boolean isNestedArchive(String aUri) { - if (super.isNestedArchive(aUri)) - return true; - return getDeploymentDescriptor().getFirstModule(aUri) != null; - } - - /** - * @see com.ibm.etools.commonarchive.impl.ModuleFileImpl - */ - public org.eclipse.emf.ecore.EObject makeDeploymentDescriptor(XMLResource resource) { - Application appl = ((ApplicationPackage) EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI)).getApplicationFactory().createApplication(); - resource.setID(appl, J2EEConstants.APPL_ID); - setDeploymentDescriptorGen(appl); - resource.getContents().add(appl); - return appl; - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public Archive openNestedArchive(LooseArchive loose) throws OpenFailureException { - - Module m = getDeploymentDescriptor().getFirstModule(loose.getUri()); - if (m == null) - return super.openNestedArchive(loose); - - try { - ArchiveOptions archiveOptions = getOptionsForOpening(loose); - return openNestedArchive(m, archiveOptions); - } catch (java.io.IOException ex) { - //Probably the file did not exist; silently fail, per request from WS runtime - //More than likely a failure is going to occur down the road when a ModuleFile for a - // Module - //in the dd is requested - } - return null; - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public Archive openNestedArchive(String aUri) throws OpenFailureException { - - Module m = getDeploymentDescriptor().getFirstModule(aUri); - if (m == null) - return super.openNestedArchive(aUri); - - try { - ArchiveOptions archiveOptions = getOptionsForOpening(aUri); - return openNestedArchive(m, archiveOptions); - } catch (java.io.IOException ex) { - //Probably the file did not exist; silently fail, per request from WS runtime - //More than likely a failure is going to occur down the road when a ModuleFile for a - // Module - //in the dd is requested - } - return null; - } - - protected Archive openNestedArchive(Module m, ArchiveOptions archiveOptions) throws OpenFailureException { - String aUri = m.getUri(); - - try { - /* - * Since we have a clue about the type of archive to open Use the appropriate open - * method, so if a failure occurrs, we can get a more specific message - */ - if (m.isWebModule()) - return getCommonArchiveFactory().openWARFile(archiveOptions, aUri); - else if (m.isEjbModule()) - return getCommonArchiveFactory().openEJBJarFile(archiveOptions, aUri); - else if (m.isJavaModule()) - return getCommonArchiveFactory().openApplicationClientFile(archiveOptions, aUri); - else if (m.isConnectorModule()) - return getCommonArchiveFactory().openRARFile(archiveOptions, aUri); - - } catch (OpenFailureException ex) { - throw new OpenFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.nested_open_fail_EXC_, (new Object[]{aUri, getURI()})), ex); // = "Unable to open module file "{0}" in EAR file "{1}"" - } - //Should never reach the code below - return null; - } - - /** - * @see EARFile - */ - public void pushDownRole(SecurityRole role) { - if (role == null) - throw new IllegalArgumentException(CommonArchiveResourceHandler.Parameter_should_not_be_nu_EXC_); // = "Parameter should not be null" - - List modules = getDeploymentDescriptor().getModules(); - for (int i = 0; i < modules.size(); i++) { - Module m = (Module) modules.get(i); - pushDownRole(role, m); - } - } - - /** - * @see EARFile - */ - public void pushDownRole(SecurityRole role, Module aModule) { - try { - if (aModule.isWebModule()) { - WebApp dd = getDeploymentDescriptor((WebModule) aModule); - if (dd.getSecurityRoleNamed(role.getRoleName()) == null) - dd.getSecurityRoles().add(EtoolsCopyUtility.createCopy(role)); - } else if (aModule.isEjbModule()) { - AssemblyDescriptor assembly = getAssemblyDescriptorAddIfNecessary(getDeploymentDescriptor((EjbModule) aModule)); - if (assembly.getSecurityRoleNamed(role.getRoleName()) == null) - assembly.getSecurityRoles().add(EtoolsCopyUtility.createCopy(role)); - } - } catch (Exception e) { - throw new DeploymentDescriptorLoadException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.dd_in_ear_load_EXC_, (new Object[]{aModule.getUri(), getURI()})), e); // = "Exception occurred loading deployment descriptor for module "{0}" in ear file "{1}"" - } - } - - /** - * An alt-dd is about to be loaded; register the appropriate resource factory for the uri so it - * will get loaded correctly. - */ - protected void registerResourceFactory(Module aModule, String aUri) { - org.eclipse.emf.ecore.resource.Resource.Factory factory = null; - if (aModule.isEjbModule()) - factory = EJBJarResourceFactory.getRegisteredFactory(); - else if (aModule.isWebModule()) - factory = WebAppResourceFactory.getRegisteredFactory(); - else if (aModule.isJavaModule()) - factory = ApplicationClientResourceFactory.getRegisteredFactory(); - else if (aModule.isConnectorModule()) - factory = ConnectorResourceFactory.getRegisteredFactory(); - - if (factory != null) { - ResourceSet set = getResourceSet(); - ((FileNameResourceFactoryRegistry) set.getResourceFactoryRegistry()).registerLastFileSegment(aUri, factory); - } - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public void remove(ModuleRef aModuleRef) { - if (aModuleRef == null) - return; - Module aModule = aModuleRef.getModule(); - - if (aModule != null) - getDeploymentDescriptor().getModules().remove(aModule); - - getModuleRefs().remove(aModuleRef); - if (getModuleRefs(aModuleRef.getModuleFile()).isEmpty()) - getFiles().remove(aModuleRef.getModuleFile()); - } - - /** - * @see EARFile - */ - public List getModuleRefs(ModuleFile aModuleFile) { - List refs = getModuleRefs(); - List result = new ArrayList(1); - for (int i = 0; i < refs.size(); i++) { - ModuleRef ref = (ModuleRef) refs.get(i); - if (ref.getModuleFile() == aModuleFile) - result.add(ref); - } - return result; - } - - protected void renameRolesInModuleDDs(String existingRoleName, String newRoleName) { - List modules = getDeploymentDescriptor().getModules(); - for (int i = 0; i < modules.size(); i++) { - Module m = (Module) modules.get(i); - try { - if (m.isEjbModule()) - getDeploymentDescriptor((EjbModule) m).renameSecurityRole(existingRoleName, newRoleName); - else if (m.isWebModule()) - getDeploymentDescriptor((WebModule) m).renameSecurityRole(existingRoleName, newRoleName); - } catch (Exception e) { - throw new DeploymentDescriptorLoadException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.dd_in_ear_load_EXC_, (new Object[]{m.getUri(), getURI()})), e); // = "Exception occurred loading deployment descriptor for module "{0}" in ear file "{1}"" - } - } - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public void renameSecurityRole(String existingRoleName, String newRoleName) throws ObjectNotFoundException, DuplicateObjectException { - Application app = getDeploymentDescriptor(); - SecurityRole aRole = app.getSecurityRoleNamed(existingRoleName); - if (aRole == null) - throw new ObjectNotFoundException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.no_sec_role_EXC_, (new Object[]{getURI(), existingRoleName}))); // = ": EAR File deployment descriptor does not contain a security role named " - if (app.getSecurityRoleNamed(newRoleName) != null) - throw new DuplicateObjectException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.dup_sec_role_EXC_, (new Object[]{getURI(), newRoleName})), app.getSecurityRoleNamed(newRoleName)); // = ": EAR File deployment descriptor already contains a security role named " - - aRole.setRoleName(newRoleName); - - renameRolesInModuleDDs(existingRoleName, newRoleName); - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public void rollUpRoles() { - List modules = getDeploymentDescriptor().getModules(); - for (int i = 0; i < modules.size(); i++) { - Module aModule = (Module) modules.get(i); - rollUpRoles(aModule); - } - } - - /** - * @see com.ibm.etools.commonarchive.EARFile - */ - public void rollUpRoles(Module aModule) { - List securityRoles = null; - try { - if (aModule.isWebModule()) - securityRoles = getDeploymentDescriptor((WebModule) aModule).getSecurityRoles(); - else if (aModule.isEjbModule()) - securityRoles = getAssemblyDescriptorAddIfNecessary(getDeploymentDescriptor((EjbModule) aModule)).getSecurityRoles(); - } catch (Exception e) { - throw new DeploymentDescriptorLoadException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.dd_in_ear_load_EXC_, (new Object[]{aModule.getUri(), getURI()})), e); // = "Exception occurred loading deployment descriptor for module "{0}" in ear file "{1}"" - } - - if (securityRoles == null) - return; - for (int i = 0; i < securityRoles.size(); i++) { - addCopyIfNotExists((SecurityRole) securityRoles.get(i)); - } - } - - public void setDeploymentDescriptor(Application l) { - this.setDeploymentDescriptorGen(l); - replaceRoot(getMofResourceMakeIfNecessary(getDeploymentDescriptorUri()), l); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EAR_FILE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case CommonarchivePackage.EAR_FILE__LAST_MODIFIED: - return isSetLastModified(); - case CommonarchivePackage.EAR_FILE__SIZE: - return isSetSize(); - case CommonarchivePackage.EAR_FILE__DIRECTORY_ENTRY: - return isSetDirectoryEntry(); - case CommonarchivePackage.EAR_FILE__ORIGINAL_URI: - return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); - case CommonarchivePackage.EAR_FILE__LOADING_CONTAINER: - return loadingContainer != null; - case CommonarchivePackage.EAR_FILE__CONTAINER: - return getContainer() != null; - case CommonarchivePackage.EAR_FILE__FILES: - return files != null && !files.isEmpty(); - case CommonarchivePackage.EAR_FILE__TYPES: - return types != null && !types.isEmpty(); - case CommonarchivePackage.EAR_FILE__MODULE_REFS: - return moduleRefs != null && !moduleRefs.isEmpty(); - case CommonarchivePackage.EAR_FILE__DEPLOYMENT_DESCRIPTOR: - return deploymentDescriptor != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EAR_FILE__URI: - setURI((String)newValue); - return; - case CommonarchivePackage.EAR_FILE__LAST_MODIFIED: - setLastModified(((Long)newValue).longValue()); - return; - case CommonarchivePackage.EAR_FILE__SIZE: - setSize(((Long)newValue).longValue()); - return; - case CommonarchivePackage.EAR_FILE__DIRECTORY_ENTRY: - setDirectoryEntry(((Boolean)newValue).booleanValue()); - return; - case CommonarchivePackage.EAR_FILE__ORIGINAL_URI: - setOriginalURI((String)newValue); - return; - case CommonarchivePackage.EAR_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)newValue); - return; - case CommonarchivePackage.EAR_FILE__CONTAINER: - setContainer((Container)newValue); - return; - case CommonarchivePackage.EAR_FILE__FILES: - getFiles().clear(); - getFiles().addAll((Collection)newValue); - return; - case CommonarchivePackage.EAR_FILE__TYPES: - getTypes().clear(); - getTypes().addAll((Collection)newValue); - return; - case CommonarchivePackage.EAR_FILE__MODULE_REFS: - getModuleRefs().clear(); - getModuleRefs().addAll((Collection)newValue); - return; - case CommonarchivePackage.EAR_FILE__DEPLOYMENT_DESCRIPTOR: - setDeploymentDescriptor((Application)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EAR_FILE__URI: - setURI(URI_EDEFAULT); - return; - case CommonarchivePackage.EAR_FILE__LAST_MODIFIED: - unsetLastModified(); - return; - case CommonarchivePackage.EAR_FILE__SIZE: - unsetSize(); - return; - case CommonarchivePackage.EAR_FILE__DIRECTORY_ENTRY: - unsetDirectoryEntry(); - return; - case CommonarchivePackage.EAR_FILE__ORIGINAL_URI: - setOriginalURI(ORIGINAL_URI_EDEFAULT); - return; - case CommonarchivePackage.EAR_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)null); - return; - case CommonarchivePackage.EAR_FILE__CONTAINER: - setContainer((Container)null); - return; - case CommonarchivePackage.EAR_FILE__FILES: - getFiles().clear(); - return; - case CommonarchivePackage.EAR_FILE__TYPES: - getTypes().clear(); - return; - case CommonarchivePackage.EAR_FILE__MODULE_REFS: - getModuleRefs().clear(); - return; - case CommonarchivePackage.EAR_FILE__DEPLOYMENT_DESCRIPTOR: - setDeploymentDescriptor((Application)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public Application getDeploymentDescriptorGen() { - if (deploymentDescriptor != null && deploymentDescriptor.eIsProxy()) { - Application oldDeploymentDescriptor = deploymentDescriptor; - deploymentDescriptor = (Application)eResolveProxy((InternalEObject)deploymentDescriptor); - if (deploymentDescriptor != oldDeploymentDescriptor) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonarchivePackage.EAR_FILE__DEPLOYMENT_DESCRIPTOR, oldDeploymentDescriptor, deploymentDescriptor)); - } - } - return deploymentDescriptor; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Application basicGetDeploymentDescriptor() { - return deploymentDescriptor; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDeploymentDescriptorGen(Application newDeploymentDescriptor) { - Application oldDeploymentDescriptor = deploymentDescriptor; - deploymentDescriptor = newDeploymentDescriptor; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.EAR_FILE__DEPLOYMENT_DESCRIPTOR, oldDeploymentDescriptor, deploymentDescriptor)); - if ( oldDeploymentDescriptor != deploymentDescriptor ) - getModuleRefsGen().clear(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getModuleRefsGen() { - if (moduleRefs == null) { - moduleRefs = new EObjectContainmentWithInverseEList(ModuleRef.class, this, CommonarchivePackage.EAR_FILE__MODULE_REFS, CommonarchivePackage.MODULE_REF__EAR_FILE); - } - return moduleRefs; - } - - public EList getModuleRefs() { - EList refs = getModuleRefsGen(); - - if (refs.isEmpty()) - initRefs(refs); - - return refs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.EAR_FILE__CONTAINER: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.EAR_FILE__CONTAINER, msgs); - case CommonarchivePackage.EAR_FILE__FILES: - return ((InternalEList)getFiles()).basicAdd(otherEnd, msgs); - case CommonarchivePackage.EAR_FILE__MODULE_REFS: - return ((InternalEList)getModuleRefs()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.EAR_FILE__CONTAINER: - return eBasicSetContainer(null, CommonarchivePackage.EAR_FILE__CONTAINER, msgs); - case CommonarchivePackage.EAR_FILE__FILES: - return ((InternalEList)getFiles()).basicRemove(otherEnd, msgs); - case CommonarchivePackage.EAR_FILE__MODULE_REFS: - return ((InternalEList)getModuleRefs()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.EAR_FILE__CONTAINER: - return eContainer.eInverseRemove(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EAR_FILE__URI: - return getURI(); - case CommonarchivePackage.EAR_FILE__LAST_MODIFIED: - return new Long(getLastModified()); - case CommonarchivePackage.EAR_FILE__SIZE: - return new Long(getSize()); - case CommonarchivePackage.EAR_FILE__DIRECTORY_ENTRY: - return isDirectoryEntry() ? Boolean.TRUE : Boolean.FALSE; - case CommonarchivePackage.EAR_FILE__ORIGINAL_URI: - return getOriginalURI(); - case CommonarchivePackage.EAR_FILE__LOADING_CONTAINER: - if (resolve) return getLoadingContainer(); - return basicGetLoadingContainer(); - case CommonarchivePackage.EAR_FILE__CONTAINER: - return getContainer(); - case CommonarchivePackage.EAR_FILE__FILES: - return getFiles(); - case CommonarchivePackage.EAR_FILE__TYPES: - return getTypes(); - case CommonarchivePackage.EAR_FILE__MODULE_REFS: - return getModuleRefs(); - case CommonarchivePackage.EAR_FILE__DEPLOYMENT_DESCRIPTOR: - if (resolve) return getDeploymentDescriptor(); - return basicGetDeploymentDescriptor(); - } - return eDynamicGet(eFeature, resolve); - } - - public void initRefs(EList refs) { - List modules = getDeploymentDescriptor().getModules(); - for (int i = 0; i < modules.size(); i++) { - Module module = (Module) modules.get(i); - refs.add(createModuleRef(module, null)); - } - } - - protected ModuleRef createModuleRef(Module aModule, ModuleFile aFile) { - ModuleRef newRef = null; - - if (aModule.isEjbModule()) - newRef = getCommonArchiveFactory().createEJBModuleRef(); - else if (aModule.isWebModule()) - newRef = getCommonArchiveFactory().createWebModuleRef(); - else if (aModule.isConnectorModule()) - newRef = getCommonArchiveFactory().createConnectorModuleRef(); - else if (aModule.isJavaModule()) - newRef = getCommonArchiveFactory().createClientModuleRef(); - - newRef.setModule(aModule); - newRef.setModuleFile(aFile); - - return newRef; - } - - /* - * @see EARFile#getClientModuleRefs() - */ - public List getClientModuleRefs() { - List result = new ArrayList(); - List refs = getModuleRefs(); - for (int i = 0; i < refs.size(); i++) { - ModuleRef ref = (ModuleRef) refs.get(i); - if (ref.isClient()) - result.add(ref); - } - return result; - } - - /* - * @see EARFile#getConnectorModuleRefs() - */ - public List getConnectorModuleRefs() { - List result = new ArrayList(); - List refs = getModuleRefs(); - for (int i = 0; i < refs.size(); i++) { - ModuleRef ref = (ModuleRef) refs.get(i); - if (ref.isConnector()) - result.add(ref); - } - return result; - } - - /* - * @see EARFile#getEJBModuleRefs() - */ - public List getEJBModuleRefs() { - List result = new ArrayList(); - List refs = getModuleRefs(); - for (int i = 0; i < refs.size(); i++) { - ModuleRef ref = (ModuleRef) refs.get(i); - if (ref.isEJB()) - result.add(ref); - } - return result; - } - - /* - * @see EARFile#getWebModuleRefs() - */ - public List getWebModuleRefs() { - List result = new ArrayList(); - List refs = getModuleRefs(); - for (int i = 0; i < refs.size(); i++) { - ModuleRef ref = (ModuleRef) refs.get(i); - if (ref.isWeb()) - result.add(ref); - } - return result; - } - - /* - * @see EARFile#getFARFiles() - */ - public List getFARFiles() { - List farFiles = new ArrayList(); - List fileList = getFiles(); - for (int i = 0; i < fileList.size(); i++) { - File aFile = (File) fileList.get(i); - if (aFile.isFARFile()) { - farFiles.add(aFile); - } - } - return farFiles; - - } - - /* - * (non-Javadoc) - * - * @see com.ibm.etools.commonarchive.EARFile#getArchivesOfType(java.lang.String) - */ - public List getArchivesOfType(String type) { - return Collections.EMPTY_LIST; - } - - public Map getEJBReferences(boolean filterLinkedReferences, boolean filterNonLinkedReferences) throws ArchiveWrappedException { - if (!filterLinkedReferences || !filterNonLinkedReferences) { - Application app = getDeploymentDescriptor(); - if (app != null) { - List modules = app.getModules(); - Module module; - Map references = null; - for (int i = 0; i < modules.size(); i++) { - module = (Module) modules.get(i); - try { - references = collectEJBReferences(module, filterLinkedReferences, filterNonLinkedReferences, references); - } catch (ResourceLoadException e) { - throw new ArchiveWrappedException(e); - } catch (FileNotFoundException e) { - throw new ArchiveWrappedException(e); - } catch (EmptyResourceException e) { - throw new ArchiveWrappedException(e); - } - } - return references; - } - } - return Collections.EMPTY_MAP; - } - - /** - * @param module - * @param filterLinkedReferences - * @param filterNonLinkedReferences - * @param references - * @return - */ - private Map collectEJBReferences(Module module, boolean filterLinkedReferences, boolean filterNonLinkedReferences, Map references) throws ResourceLoadException, FileNotFoundException, EmptyResourceException { - Map myReferences = references; - List moduleReferences = getEJBReferneces(module); - if (moduleReferences != null && !moduleReferences.isEmpty()) { - EjbRef ref = null; - List filteredRefs = null; - String link = null; - for (int i = 0; i < moduleReferences.size(); i++) { - ref = (EjbRef) moduleReferences.get(i); - link = ref.getLink(); - if ((link != null && link.length() > 0 && !filterLinkedReferences) || ((link == null || link.length() == 0) && !filterNonLinkedReferences)) { - if (filteredRefs == null) - filteredRefs = new ArrayList(moduleReferences.size()); - filteredRefs.add(ref); - } - } - if (filteredRefs != null) { - if (myReferences == null) - myReferences = new HashMap(); - myReferences.put(module, filteredRefs); - } - } - return myReferences; - } - - /** - * @param module - * @return - */ - private List getEJBReferneces(Module module) throws ResourceLoadException, FileNotFoundException, EmptyResourceException { - if (module != null) { - if (module.isEjbModule()) { - EJBJar ejbJar = getDeploymentDescriptor((EjbModule) module); - return getEJBReferences(ejbJar); - } else if (module.isWebModule()) { - WebApp webApp = getDeploymentDescriptor((WebModule) module); - if (webApp != null) - return webApp.getEjbRefs(); - } else if (module.isJavaModule()) { - ApplicationClient appClient = getDeploymentDescriptor((JavaClientModule) module); - if (appClient != null) - return appClient.getEjbReferences(); - } - } - return Collections.EMPTY_LIST; - } - - /** - * @param ejbJar - * @return - */ - private List getEJBReferences(EJBJar ejbJar) { - if (ejbJar != null) { - List ejbs = ejbJar.getEnterpriseBeans(); - List refs = null; - EnterpriseBean ejb = null; - for (int i = 0; i < ejbs.size(); i++) { - ejb = (EnterpriseBean) ejbs.get(i); - if (refs == null) - refs = new ArrayList(); - refs.addAll(ejb.getEjbRefs()); - } - if (refs != null) - return refs; - } - return Collections.EMPTY_LIST; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/EJBJarFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/EJBJarFileImpl.java deleted file mode 100644 index 623bf1995..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/EJBJarFileImpl.java +++ /dev/null @@ -1,409 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBJarFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.XMLResource; - - -/** - * @generated - */ -public class EJBJarFileImpl extends ModuleFileImpl implements EJBJarFile { - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected EJBJar deploymentDescriptor = null; - - public EJBJarFileImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getEJBJarFile(); - } - - /** - * Used for tools performing selective import - */ - public List getAssociatedFiles(EnterpriseBean ejb) { - - List classNames = new java.util.ArrayList(); - List result = new ArrayList(); - if (ejb.getVersionID() <= J2EEVersionConstants.EJB_1_1_ID) { - classNames.add(ejb.getHomeInterfaceName()); - classNames.add(ejb.getRemoteInterfaceName()); - } else if (ejb.getVersionID() >= J2EEVersionConstants.EJB_2_0_ID) { - if (ejb.hasRemoteClient()) { - classNames.add(ejb.getHomeInterfaceName()); - classNames.add(ejb.getRemoteInterfaceName()); - } - if (ejb.hasLocalClient()) { - classNames.add(ejb.getLocalHomeInterfaceName()); - classNames.add(ejb.getLocalInterfaceName()); - } - } - classNames.add(ejb.getEjbClassName()); - - if (ejb.isEntity()) { - String className = ((Entity) ejb).getPrimaryKeyName(); - if (!className.startsWith("java"))//$NON-NLS-1$ - classNames.add(className); - } - for (int i = 0; i < classNames.size(); i++) { - String className = (String) classNames.get(i); - if (className == null) - continue; - String classUri = org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil.classNameToUri(className); - String javaUri = org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil.classNameToJavaUri(className); - try { - result.add(getFile(classUri)); - } catch (java.io.FileNotFoundException iox) { - //Do nothing - the file does not exist in this jar file - } - try { - result.add(getFile(javaUri)); - } catch (java.io.FileNotFoundException iox) { - //Do nothing - the file does not exist in this jar file - } - } - return result; - } - - /** - * @throws DeploymentDescriptorLoadException - - * is a runtime exception, because we can't override the signature of the generated - * methods - */ - public EJBJar getDeploymentDescriptor() throws DeploymentDescriptorLoadException { - EJBJar dd = this.getDeploymentDescriptorGen(); - if (dd == null && canLazyInitialize()) { - try { - getImportStrategy().importMetaData(); - } catch (DeploymentDescriptorLoadException ex) { - throw ex; - } catch (Exception e) { - throw new DeploymentDescriptorLoadException(getDeploymentDescriptorUri(), e); - } - } - return this.getDeploymentDescriptorGen(); - } - - public java.lang.String getDeploymentDescriptorUri() { - return J2EEConstants.EJBJAR_DD_URI; - } - - /** - * Return the DeployementDescriptor. - */ - public EObject getStandardDeploymentDescriptor() throws DeploymentDescriptorLoadException { - return getDeploymentDescriptor(); - } - - public boolean isDeploymentDescriptorSet() { - return deploymentDescriptor != null; - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isEJBJarFile() { - return true; - } - - /** - * @see com.ibm.etools.commonarchive.EJBJarFile - */ - public boolean isImportedFrom10() { - return getImportStrategy() != null && getImportStrategy().isEJB10(); - } - - /** - * @see com.ibm.etools.commonarchive.impl.ModuleFileImpl - */ - public org.eclipse.emf.ecore.EObject makeDeploymentDescriptor(XMLResource resource) { - EJBJar ejbJar = ((EjbPackage) EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI)).getEjbFactory().createEJBJar(); - resource.setID(ejbJar, J2EEConstants.EJBJAR_ID); - setDeploymentDescriptorGen(ejbJar); - resource.getContents().add(ejbJar); - - return ejbJar; - } - - - public void setDeploymentDescriptor(EJBJar l) { - this.setDeploymentDescriptorGen(l); - replaceRoot(getMofResourceMakeIfNecessary(getDeploymentDescriptorUri()), l); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EJB_JAR_FILE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case CommonarchivePackage.EJB_JAR_FILE__LAST_MODIFIED: - return isSetLastModified(); - case CommonarchivePackage.EJB_JAR_FILE__SIZE: - return isSetSize(); - case CommonarchivePackage.EJB_JAR_FILE__DIRECTORY_ENTRY: - return isSetDirectoryEntry(); - case CommonarchivePackage.EJB_JAR_FILE__ORIGINAL_URI: - return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); - case CommonarchivePackage.EJB_JAR_FILE__LOADING_CONTAINER: - return loadingContainer != null; - case CommonarchivePackage.EJB_JAR_FILE__CONTAINER: - return getContainer() != null; - case CommonarchivePackage.EJB_JAR_FILE__FILES: - return files != null && !files.isEmpty(); - case CommonarchivePackage.EJB_JAR_FILE__TYPES: - return types != null && !types.isEmpty(); - case CommonarchivePackage.EJB_JAR_FILE__DEPLOYMENT_DESCRIPTOR: - return deploymentDescriptor != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EJB_JAR_FILE__URI: - setURI((String)newValue); - return; - case CommonarchivePackage.EJB_JAR_FILE__LAST_MODIFIED: - setLastModified(((Long)newValue).longValue()); - return; - case CommonarchivePackage.EJB_JAR_FILE__SIZE: - setSize(((Long)newValue).longValue()); - return; - case CommonarchivePackage.EJB_JAR_FILE__DIRECTORY_ENTRY: - setDirectoryEntry(((Boolean)newValue).booleanValue()); - return; - case CommonarchivePackage.EJB_JAR_FILE__ORIGINAL_URI: - setOriginalURI((String)newValue); - return; - case CommonarchivePackage.EJB_JAR_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)newValue); - return; - case CommonarchivePackage.EJB_JAR_FILE__CONTAINER: - setContainer((Container)newValue); - return; - case CommonarchivePackage.EJB_JAR_FILE__FILES: - getFiles().clear(); - getFiles().addAll((Collection)newValue); - return; - case CommonarchivePackage.EJB_JAR_FILE__TYPES: - getTypes().clear(); - getTypes().addAll((Collection)newValue); - return; - case CommonarchivePackage.EJB_JAR_FILE__DEPLOYMENT_DESCRIPTOR: - setDeploymentDescriptor((EJBJar)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EJB_JAR_FILE__URI: - setURI(URI_EDEFAULT); - return; - case CommonarchivePackage.EJB_JAR_FILE__LAST_MODIFIED: - unsetLastModified(); - return; - case CommonarchivePackage.EJB_JAR_FILE__SIZE: - unsetSize(); - return; - case CommonarchivePackage.EJB_JAR_FILE__DIRECTORY_ENTRY: - unsetDirectoryEntry(); - return; - case CommonarchivePackage.EJB_JAR_FILE__ORIGINAL_URI: - setOriginalURI(ORIGINAL_URI_EDEFAULT); - return; - case CommonarchivePackage.EJB_JAR_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)null); - return; - case CommonarchivePackage.EJB_JAR_FILE__CONTAINER: - setContainer((Container)null); - return; - case CommonarchivePackage.EJB_JAR_FILE__FILES: - getFiles().clear(); - return; - case CommonarchivePackage.EJB_JAR_FILE__TYPES: - getTypes().clear(); - return; - case CommonarchivePackage.EJB_JAR_FILE__DEPLOYMENT_DESCRIPTOR: - setDeploymentDescriptor((EJBJar)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EJBJar getDeploymentDescriptorGen() { - if (deploymentDescriptor != null && deploymentDescriptor.eIsProxy()) { - EJBJar oldDeploymentDescriptor = deploymentDescriptor; - deploymentDescriptor = (EJBJar)eResolveProxy((InternalEObject)deploymentDescriptor); - if (deploymentDescriptor != oldDeploymentDescriptor) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonarchivePackage.EJB_JAR_FILE__DEPLOYMENT_DESCRIPTOR, oldDeploymentDescriptor, deploymentDescriptor)); - } - } - return deploymentDescriptor; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EJBJar basicGetDeploymentDescriptor() { - return deploymentDescriptor; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDeploymentDescriptorGen(EJBJar newDeploymentDescriptor) { - EJBJar oldDeploymentDescriptor = deploymentDescriptor; - deploymentDescriptor = newDeploymentDescriptor; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.EJB_JAR_FILE__DEPLOYMENT_DESCRIPTOR, oldDeploymentDescriptor, deploymentDescriptor)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.EJB_JAR_FILE__CONTAINER: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.EJB_JAR_FILE__CONTAINER, msgs); - case CommonarchivePackage.EJB_JAR_FILE__FILES: - return ((InternalEList)getFiles()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.EJB_JAR_FILE__CONTAINER: - return eBasicSetContainer(null, CommonarchivePackage.EJB_JAR_FILE__CONTAINER, msgs); - case CommonarchivePackage.EJB_JAR_FILE__FILES: - return ((InternalEList)getFiles()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.EJB_JAR_FILE__CONTAINER: - return eContainer.eInverseRemove(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EJB_JAR_FILE__URI: - return getURI(); - case CommonarchivePackage.EJB_JAR_FILE__LAST_MODIFIED: - return new Long(getLastModified()); - case CommonarchivePackage.EJB_JAR_FILE__SIZE: - return new Long(getSize()); - case CommonarchivePackage.EJB_JAR_FILE__DIRECTORY_ENTRY: - return isDirectoryEntry() ? Boolean.TRUE : Boolean.FALSE; - case CommonarchivePackage.EJB_JAR_FILE__ORIGINAL_URI: - return getOriginalURI(); - case CommonarchivePackage.EJB_JAR_FILE__LOADING_CONTAINER: - if (resolve) return getLoadingContainer(); - return basicGetLoadingContainer(); - case CommonarchivePackage.EJB_JAR_FILE__CONTAINER: - return getContainer(); - case CommonarchivePackage.EJB_JAR_FILE__FILES: - return getFiles(); - case CommonarchivePackage.EJB_JAR_FILE__TYPES: - return getTypes(); - case CommonarchivePackage.EJB_JAR_FILE__DEPLOYMENT_DESCRIPTOR: - if (resolve) return getDeploymentDescriptor(); - return basicGetDeploymentDescriptor(); - } - return eDynamicGet(eFeature, resolve); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/EJBModuleRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/EJBModuleRefImpl.java deleted file mode 100644 index 0b5734695..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/EJBModuleRefImpl.java +++ /dev/null @@ -1,184 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.ejb.EJBJar; - - -public class EJBModuleRefImpl extends ModuleRefImpl implements EJBModuleRef, ModuleRef { - - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EJBModuleRefImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getEJBModuleRef(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.EJB_MODULE_REF__EAR_FILE: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.EJB_MODULE_REF__EAR_FILE, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.EJB_MODULE_REF__EAR_FILE: - return eBasicSetContainer(null, CommonarchivePackage.EJB_MODULE_REF__EAR_FILE, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.EJB_MODULE_REF__EAR_FILE: - return eContainer.eInverseRemove(this, CommonarchivePackage.EAR_FILE__MODULE_REFS, EARFile.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EJB_MODULE_REF__MODULE_FILE: - if (resolve) return getModuleFile(); - return basicGetModuleFile(); - case CommonarchivePackage.EJB_MODULE_REF__EAR_FILE: - return getEarFile(); - case CommonarchivePackage.EJB_MODULE_REF__MODULE: - if (resolve) return getModule(); - return basicGetModule(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EJB_MODULE_REF__MODULE_FILE: - setModuleFile((ModuleFile)newValue); - return; - case CommonarchivePackage.EJB_MODULE_REF__EAR_FILE: - setEarFile((EARFile)newValue); - return; - case CommonarchivePackage.EJB_MODULE_REF__MODULE: - setModule((Module)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EJB_MODULE_REF__MODULE_FILE: - setModuleFile((ModuleFile)null); - return; - case CommonarchivePackage.EJB_MODULE_REF__EAR_FILE: - setEarFile((EARFile)null); - return; - case CommonarchivePackage.EJB_MODULE_REF__MODULE: - setModule((Module)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.EJB_MODULE_REF__MODULE_FILE: - return moduleFile != null; - case CommonarchivePackage.EJB_MODULE_REF__EAR_FILE: - return getEarFile() != null; - case CommonarchivePackage.EJB_MODULE_REF__MODULE: - return module != null; - } - return eDynamicIsSet(eFeature); - } - - public EJBJar getEJBJar() throws ArchiveWrappedException { - return (EJBJar) getDeploymentDescriptor(); - } - - /* - * @see ModuleRef#isEJB() - */ - public boolean isEJB() { - return true; - } - -} //EJBModuleRefImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/FileImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/FileImpl.java deleted file mode 100644 index c4d6b1ee2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/FileImpl.java +++ /dev/null @@ -1,648 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveFactoryRegistry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchiveFactory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; - - - -/** - * @generated - */ -public class FileImpl extends EObjectImpl implements File { - - /** - * The default value of the '{@link #getURI() <em>URI</em>}' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @see #getURI() - * @generated - * @ordered - */ - protected static final String URI_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String uri = URI_EDEFAULT; - /** - * The default value of the '{@link #getLastModified() <em>Last Modified</em>}' attribute. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @see #getLastModified() - * @generated - * @ordered - */ - protected static final long LAST_MODIFIED_EDEFAULT = 0L; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected long lastModified = LAST_MODIFIED_EDEFAULT; - /** - * This is true if the Last Modified attribute has been set. - * <!-- begin-user-doc --> <!-- - * end-user-doc --> - * @generated - * @ordered - */ - protected boolean lastModifiedESet = false; - - /** - * The default value of the '{@link #getSize() <em>Size</em>}' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @see #getSize() - * @generated - * @ordered - */ - protected static final long SIZE_EDEFAULT = 0L; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected long size = SIZE_EDEFAULT; - /** - * This is true if the Size attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - protected boolean sizeESet = false; - - /** - * The default value of the '{@link #isDirectoryEntry() <em>Directory Entry</em>}' attribute. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @see #isDirectoryEntry() - * @generated - * @ordered - */ - protected static final boolean DIRECTORY_ENTRY_EDEFAULT = false; - - /** - * The cached value of the '{@link #isDirectoryEntry() <em>Directory Entry</em>}' attribute. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @see #isDirectoryEntry() - * @generated - * @ordered - */ - protected boolean directoryEntry = DIRECTORY_ENTRY_EDEFAULT; - - /** - * This is true if the Directory Entry attribute has been set. - * <!-- begin-user-doc --> <!-- - * end-user-doc --> - * @generated - * @ordered - */ - protected boolean directoryEntryESet = false; - - /** - * The default value of the '{@link #getOriginalURI() <em>Original URI</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see #getOriginalURI() - * @generated - * @ordered - */ - protected static final String ORIGINAL_URI_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String originalURI = ORIGINAL_URI_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected Container loadingContainer = null; - - public FileImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getFile(); - } - - public CommonarchiveFactory getCommonArchiveFactory() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory(); - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public java.lang.String getDirectoryURI() { - return ArchiveUtil.getFileNameParent(getURI()); - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public java.io.InputStream getInputStream() throws java.io.FileNotFoundException, java.io.IOException { - return getLoadingContainer().primGetInputStream(getOriginalURI()); - } - - public String getName() { - return ArchiveUtil.getFileNameTail(getURI()); - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isApplicationClientFile() { - return false; - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isArchive() { - return false; - } - - /** - * isContainer method comment. - */ - public boolean isContainer() { - return false; - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isEARFile() { - return false; - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isEJBJarFile() { - return false; - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isModuleFile() { - return false; - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isRARFile() { - return false; - } - - /** - * isReadOnlyDirectory method comment. - */ - public boolean isReadOnlyDirectory() { - return false; - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isWARFile() { - return false; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getURI() { - return uri; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setURI(String newURI) { - String oldURI = uri; - uri = newURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.FILE__URI, oldURI, uri)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public long getLastModified() { - return lastModified; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void setLastModified(long newLastModified) { - long oldLastModified = lastModified; - lastModified = newLastModified; - boolean oldLastModifiedESet = lastModifiedESet; - lastModifiedESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.FILE__LAST_MODIFIED, oldLastModified, lastModified, !oldLastModifiedESet)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void unsetLastModified() { - long oldLastModified = lastModified; - boolean oldLastModifiedESet = lastModifiedESet; - lastModified = LAST_MODIFIED_EDEFAULT; - lastModifiedESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CommonarchivePackage.FILE__LAST_MODIFIED, oldLastModified, LAST_MODIFIED_EDEFAULT, oldLastModifiedESet)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean isSetLastModified() { - return lastModifiedESet; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public long getSize() { - return size; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void setSize(long newSize) { - long oldSize = size; - size = newSize; - boolean oldSizeESet = sizeESet; - sizeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.FILE__SIZE, oldSize, size, !oldSizeESet)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void unsetSize() { - long oldSize = size; - boolean oldSizeESet = sizeESet; - size = SIZE_EDEFAULT; - sizeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CommonarchivePackage.FILE__SIZE, oldSize, SIZE_EDEFAULT, oldSizeESet)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean isSetSize() { - return sizeESet; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean isDirectoryEntry() { - return directoryEntry; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void setDirectoryEntry(boolean newDirectoryEntry) { - boolean oldDirectoryEntry = directoryEntry; - directoryEntry = newDirectoryEntry; - boolean oldDirectoryEntryESet = directoryEntryESet; - directoryEntryESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.FILE__DIRECTORY_ENTRY, oldDirectoryEntry, directoryEntry, !oldDirectoryEntryESet)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void unsetDirectoryEntry() { - boolean oldDirectoryEntry = directoryEntry; - boolean oldDirectoryEntryESet = directoryEntryESet; - directoryEntry = DIRECTORY_ENTRY_EDEFAULT; - directoryEntryESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CommonarchivePackage.FILE__DIRECTORY_ENTRY, oldDirectoryEntry, DIRECTORY_ENTRY_EDEFAULT, oldDirectoryEntryESet)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean isSetDirectoryEntry() { - return directoryEntryESet; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getOriginalURI() { - return originalURI; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setOriginalURI(String newOriginalURI) { - String oldOriginalURI = originalURI; - originalURI = newOriginalURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.FILE__ORIGINAL_URI, oldOriginalURI, originalURI)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public Container getLoadingContainer() { - if (loadingContainer != null && loadingContainer.eIsProxy()) { - Container oldLoadingContainer = loadingContainer; - loadingContainer = (Container)eResolveProxy((InternalEObject)loadingContainer); - if (loadingContainer != oldLoadingContainer) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonarchivePackage.FILE__LOADING_CONTAINER, oldLoadingContainer, loadingContainer)); - } - } - return loadingContainer; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Container basicGetLoadingContainer() { - return loadingContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLoadingContainer(Container newLoadingContainer) { - Container oldLoadingContainer = loadingContainer; - loadingContainer = newLoadingContainer; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.FILE__LOADING_CONTAINER, oldLoadingContainer, loadingContainer)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public Container getContainer() { - if (eContainerFeatureID != CommonarchivePackage.FILE__CONTAINER) return null; - return (Container)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setContainer(Container newContainer) { - if (newContainer != eContainer || (eContainerFeatureID != CommonarchivePackage.FILE__CONTAINER && newContainer != null)) { - if (EcoreUtil.isAncestor(this, newContainer)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newContainer != null) - msgs = ((InternalEObject)newContainer).eInverseAdd(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newContainer, CommonarchivePackage.FILE__CONTAINER, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.FILE__CONTAINER, newContainer, newContainer)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.FILE__CONTAINER: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.FILE__CONTAINER, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.FILE__CONTAINER: - return eBasicSetContainer(null, CommonarchivePackage.FILE__CONTAINER, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.FILE__CONTAINER: - return eContainer.eInverseRemove(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.FILE__URI: - return getURI(); - case CommonarchivePackage.FILE__LAST_MODIFIED: - return new Long(getLastModified()); - case CommonarchivePackage.FILE__SIZE: - return new Long(getSize()); - case CommonarchivePackage.FILE__DIRECTORY_ENTRY: - return isDirectoryEntry() ? Boolean.TRUE : Boolean.FALSE; - case CommonarchivePackage.FILE__ORIGINAL_URI: - return getOriginalURI(); - case CommonarchivePackage.FILE__LOADING_CONTAINER: - if (resolve) return getLoadingContainer(); - return basicGetLoadingContainer(); - case CommonarchivePackage.FILE__CONTAINER: - return getContainer(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.FILE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case CommonarchivePackage.FILE__LAST_MODIFIED: - return isSetLastModified(); - case CommonarchivePackage.FILE__SIZE: - return isSetSize(); - case CommonarchivePackage.FILE__DIRECTORY_ENTRY: - return isSetDirectoryEntry(); - case CommonarchivePackage.FILE__ORIGINAL_URI: - return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); - case CommonarchivePackage.FILE__LOADING_CONTAINER: - return loadingContainer != null; - case CommonarchivePackage.FILE__CONTAINER: - return getContainer() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.FILE__URI: - setURI((String)newValue); - return; - case CommonarchivePackage.FILE__LAST_MODIFIED: - setLastModified(((Long)newValue).longValue()); - return; - case CommonarchivePackage.FILE__SIZE: - setSize(((Long)newValue).longValue()); - return; - case CommonarchivePackage.FILE__DIRECTORY_ENTRY: - setDirectoryEntry(((Boolean)newValue).booleanValue()); - return; - case CommonarchivePackage.FILE__ORIGINAL_URI: - setOriginalURI((String)newValue); - return; - case CommonarchivePackage.FILE__LOADING_CONTAINER: - setLoadingContainer((Container)newValue); - return; - case CommonarchivePackage.FILE__CONTAINER: - setContainer((Container)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.FILE__URI: - setURI(URI_EDEFAULT); - return; - case CommonarchivePackage.FILE__LAST_MODIFIED: - unsetLastModified(); - return; - case CommonarchivePackage.FILE__SIZE: - unsetSize(); - return; - case CommonarchivePackage.FILE__DIRECTORY_ENTRY: - unsetDirectoryEntry(); - return; - case CommonarchivePackage.FILE__ORIGINAL_URI: - setOriginalURI(ORIGINAL_URI_EDEFAULT); - return; - case CommonarchivePackage.FILE__LOADING_CONTAINER: - setLoadingContainer((Container)null); - return; - case CommonarchivePackage.FILE__CONTAINER: - setContainer((Container)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (URI: "); - result.append(uri); - result.append(", lastModified: "); - if (lastModifiedESet) result.append(lastModified); else result.append("<unset>"); - result.append(", size: "); - if (sizeESet) result.append(size); else result.append("<unset>"); - result.append(", directoryEntry: "); - if (directoryEntryESet) result.append(directoryEntry); else result.append("<unset>"); - result.append(", originalURI: "); - result.append(originalURI); - result.append(')'); - return result.toString(); - } - - /* - * @see File#isFARFile() - */ - public boolean isFARFile() { - return false; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ModuleFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ModuleFileImpl.java deleted file mode 100644 index 7c43d6168..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ModuleFileImpl.java +++ /dev/null @@ -1,399 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.io.FileNotFoundException; -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveRuntimeException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ExportStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy; -import org.eclipse.jst.j2ee.internal.common.XMLResource; - - -/** - * @generated - */ -public abstract class ModuleFileImpl extends ArchiveImpl implements ModuleFile { - - /** Implementer for extracting meta-data from this archive into the root object */ - protected ImportStrategy importStrategy; - /** Implementer for adding meta-data to an about-to-be-exported archive */ - protected ExportStrategy exportStrategy; - - public ModuleFileImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getModuleFile(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.MODULE_FILE__CONTAINER: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.MODULE_FILE__CONTAINER, msgs); - case CommonarchivePackage.MODULE_FILE__FILES: - return ((InternalEList)getFiles()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.MODULE_FILE__CONTAINER: - return eBasicSetContainer(null, CommonarchivePackage.MODULE_FILE__CONTAINER, msgs); - case CommonarchivePackage.MODULE_FILE__FILES: - return ((InternalEList)getFiles()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.MODULE_FILE__CONTAINER: - return eContainer.eInverseRemove(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.MODULE_FILE__URI: - return getURI(); - case CommonarchivePackage.MODULE_FILE__LAST_MODIFIED: - return new Long(getLastModified()); - case CommonarchivePackage.MODULE_FILE__SIZE: - return new Long(getSize()); - case CommonarchivePackage.MODULE_FILE__DIRECTORY_ENTRY: - return isDirectoryEntry() ? Boolean.TRUE : Boolean.FALSE; - case CommonarchivePackage.MODULE_FILE__ORIGINAL_URI: - return getOriginalURI(); - case CommonarchivePackage.MODULE_FILE__LOADING_CONTAINER: - if (resolve) return getLoadingContainer(); - return basicGetLoadingContainer(); - case CommonarchivePackage.MODULE_FILE__CONTAINER: - return getContainer(); - case CommonarchivePackage.MODULE_FILE__FILES: - return getFiles(); - case CommonarchivePackage.MODULE_FILE__TYPES: - return getTypes(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.MODULE_FILE__URI: - setURI((String)newValue); - return; - case CommonarchivePackage.MODULE_FILE__LAST_MODIFIED: - setLastModified(((Long)newValue).longValue()); - return; - case CommonarchivePackage.MODULE_FILE__SIZE: - setSize(((Long)newValue).longValue()); - return; - case CommonarchivePackage.MODULE_FILE__DIRECTORY_ENTRY: - setDirectoryEntry(((Boolean)newValue).booleanValue()); - return; - case CommonarchivePackage.MODULE_FILE__ORIGINAL_URI: - setOriginalURI((String)newValue); - return; - case CommonarchivePackage.MODULE_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)newValue); - return; - case CommonarchivePackage.MODULE_FILE__CONTAINER: - setContainer((Container)newValue); - return; - case CommonarchivePackage.MODULE_FILE__FILES: - getFiles().clear(); - getFiles().addAll((Collection)newValue); - return; - case CommonarchivePackage.MODULE_FILE__TYPES: - getTypes().clear(); - getTypes().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.MODULE_FILE__URI: - setURI(URI_EDEFAULT); - return; - case CommonarchivePackage.MODULE_FILE__LAST_MODIFIED: - unsetLastModified(); - return; - case CommonarchivePackage.MODULE_FILE__SIZE: - unsetSize(); - return; - case CommonarchivePackage.MODULE_FILE__DIRECTORY_ENTRY: - unsetDirectoryEntry(); - return; - case CommonarchivePackage.MODULE_FILE__ORIGINAL_URI: - setOriginalURI(ORIGINAL_URI_EDEFAULT); - return; - case CommonarchivePackage.MODULE_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)null); - return; - case CommonarchivePackage.MODULE_FILE__CONTAINER: - setContainer((Container)null); - return; - case CommonarchivePackage.MODULE_FILE__FILES: - getFiles().clear(); - return; - case CommonarchivePackage.MODULE_FILE__TYPES: - getTypes().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.MODULE_FILE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case CommonarchivePackage.MODULE_FILE__LAST_MODIFIED: - return isSetLastModified(); - case CommonarchivePackage.MODULE_FILE__SIZE: - return isSetSize(); - case CommonarchivePackage.MODULE_FILE__DIRECTORY_ENTRY: - return isSetDirectoryEntry(); - case CommonarchivePackage.MODULE_FILE__ORIGINAL_URI: - return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); - case CommonarchivePackage.MODULE_FILE__LOADING_CONTAINER: - return loadingContainer != null; - case CommonarchivePackage.MODULE_FILE__CONTAINER: - return getContainer() != null; - case CommonarchivePackage.MODULE_FILE__FILES: - return files != null && !files.isEmpty(); - case CommonarchivePackage.MODULE_FILE__TYPES: - return types != null && !types.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - protected boolean canLazyInitialize() { - return getImportStrategy() != null; - } - - public Resource getDeploymentDescriptorResource() throws java.io.FileNotFoundException, ResourceLoadException { - return getMofResource(getDeploymentDescriptorUri()); - } - - /** - * Subclasses must override - */ - public abstract String getDeploymentDescriptorUri(); - - /** - * @see com.ibm.etools.commonarchive.ModuleFile - */ - public EARFile getEARFile() { - Container aContainer = getContainer(); - if (aContainer == null || !aContainer.isEARFile()) { - return null; - } - return ((EARFile) aContainer); - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return com.ibm.etools.archive.ExportStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ExportStrategy getExportStrategy() { - return exportStrategy; - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @return com.ibm.etools.archive.ImportStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy getImportStrategy() { - return importStrategy; - } - - /** - * Returns the specification version of the module file, or empty string if unknown version. For - * example, "2.0" - * - * @deprecated, Use getDeploymentDescriptorResource().getModuleVersionID(); - */ - public String getSpecVersion() { - float ver = getSpecVersionID(); - Float specVersion = new Float(ver / 10); - return specVersion.toString(); - } - - /** - * Return the version ID of the module For example, "20" - * - * @return int - */ - public int getSpecVersionID() { - try { - return ((XMLResource) getDeploymentDescriptorResource()).getModuleVersionID(); - } catch (Exception e) { - throw new ArchiveRuntimeException(e); - } - } - - /** - * @see com.ibm.etools.commonarchive.ModuleFile - */ - public abstract boolean isDeploymentDescriptorSet(); - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isModuleFile() { - return true; - } - - - - /** - * subclasses must override - */ - public abstract EObject makeDeploymentDescriptor(XMLResource resource); - - public Resource makeDeploymentDescriptorResource() { - XMLResource resource = null; - try { - resource = (XMLResource) makeMofResource(getDeploymentDescriptorUri()); - } catch (DuplicateObjectException ex) { - try { - return getDeploymentDescriptorResource(); - } catch (java.io.FileNotFoundException fnfEx) { - //Ignore - } - } - makeDeploymentDescriptor(resource); - return resource; - } - - public void save(SaveStrategy aSaveStrategy) throws SaveFailureException { - setSaveStrategy(aSaveStrategy); - if (getExportStrategy() != null) - getExportStrategy().preSave(aSaveStrategy); - super.save(aSaveStrategy); - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newExportStrategy - * com.ibm.etools.archive.ExportStrategy - */ - public void setExportStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ExportStrategy newExportStrategy) { - exportStrategy = newExportStrategy; - if (newExportStrategy != null) { - newExportStrategy.setArchive(this); - } - } - - /** - * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) - * - * @param newImportStrategy - * com.ibm.etools.archive.ImportStrategy - */ - public void setImportStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy newImportStrategy) { - importStrategy = newImportStrategy; - if (newImportStrategy != null) { - newImportStrategy.setArchive(this); - } - } - - /* - * (non-Javadoc) - * - * @see com.ibm.etools.commonarchive.ModuleFile#setJ2EEVersion(int) - */ - public void setJ2EEVersion(int versionID) { - try { - ((XMLResource) getDeploymentDescriptorResource()).setVersionID(versionID); - } catch (ResourceLoadException e) { - throw e; - } catch (FileNotFoundException e) { - throw new ArchiveRuntimeException(e); - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ModuleRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ModuleRefImpl.java deleted file mode 100644 index c42147f4f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ModuleRefImpl.java +++ /dev/null @@ -1,530 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveFactoryRegistry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchiveFactory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveRuntimeException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NoModuleFileException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; - - -public class ModuleRefImpl extends EObjectImpl implements ModuleRef, EObject { - /** - * @generated This field/method will be replaced during code generation. - */ - protected ModuleFile moduleFile = null; - /** - * The cached value of the '{@link #getModule() <em>Module</em>}' reference. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see #getModule() - * @ordered - */ - protected Module module = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected ModuleRefImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getModuleRef(); - } - - protected CommonarchiveFactory getCommonArchiveFactory() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory(); - } - - /** - * The default is to do nothing; subclasses should override if necessary - */ - protected void buildComponentList(EList list) { - //Default - } - - /** - * @generated This field/method will be replaced during code generation - */ - public ModuleFile getModuleFileGen() { - if (moduleFile != null && moduleFile.eIsProxy()) { - ModuleFile oldModuleFile = moduleFile; - moduleFile = (ModuleFile)eResolveProxy((InternalEObject)moduleFile); - if (moduleFile != oldModuleFile) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonarchivePackage.MODULE_REF__MODULE_FILE, oldModuleFile, moduleFile)); - } - } - return moduleFile; - } - - public ModuleFile getModuleFile() { - if (moduleFile == null) - initModuleFileFromEAR(); - return moduleFile; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public ModuleFile basicGetModuleFile() { - return moduleFile; - } - - protected void initModuleFileFromEAR() { - checkEARFile(); - ModuleFile aFile = null; - try { - aFile = (ModuleFile) getEarFile().getFile(module.getUri()); - } catch (FileNotFoundException ex) { - //Ignore - } catch (ClassCastException ex) { - //Ignore - } - checkType(module, aFile); - setModuleFile(aFile); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setModuleFile(ModuleFile newModuleFile) { - ModuleFile oldModuleFile = moduleFile; - moduleFile = newModuleFile; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.MODULE_REF__MODULE_FILE, oldModuleFile, moduleFile)); - } - - public boolean usesAltDD() { - if (module == null) - return false; - return !ArchiveUtil.isNullOrEmpty(module.getAltDD()); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.MODULE_REF__MODULE_FILE: - return moduleFile != null; - case CommonarchivePackage.MODULE_REF__EAR_FILE: - return getEarFile() != null; - case CommonarchivePackage.MODULE_REF__MODULE: - return module != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.MODULE_REF__MODULE_FILE: - setModuleFile((ModuleFile)newValue); - return; - case CommonarchivePackage.MODULE_REF__EAR_FILE: - setEarFile((EARFile)newValue); - return; - case CommonarchivePackage.MODULE_REF__MODULE: - setModule((Module)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.MODULE_REF__MODULE_FILE: - setModuleFile((ModuleFile)null); - return; - case CommonarchivePackage.MODULE_REF__EAR_FILE: - setEarFile((EARFile)null); - return; - case CommonarchivePackage.MODULE_REF__MODULE: - setModule((Module)null); - return; - } - eDynamicUnset(eFeature); - } - - public EObject getAltDeploymentDescriptor() throws ArchiveWrappedException { - if (getEarFile() == null) - return null; - try { - return getEarFile().getAltDeploymentDescriptor(getModule()); - } catch (Exception ex) { - throw new ArchiveWrappedException(ex); - } - } - - /* - * @see ModuleRef#getDeploymentDescriptor() - */ - public EObject getDeploymentDescriptor() throws ArchiveWrappedException { - if (getEarFile() == null) - return getStandardDeploymentDescriptor(); - try { - return getEarFile().getDeploymentDescriptor(getModule()); - } catch (Exception ex) { - throw new ArchiveWrappedException(ex); - } - } - - /* - * @see ModuleRef#getEARFile() - */ - public EObject getStandardDeploymentDescriptor() { - if (getModuleFile() == null) - return null; - return getModuleFile().getStandardDeploymentDescriptor(); - } - - - /* - * @see ModuleRef#setURI(String) - */ - public void setURI(String uri) { - if (getModuleFile() != null) - getModuleFile().setURI(uri); - - if (getModule() != null) - getModule().setUri(uri); - } - - /* - * @see ModuleRef#isClient() - */ - public boolean isClient() { - return false; - } - - /* - * @see ModuleRef#isConnector() - */ - public boolean isConnector() { - return false; - } - - /* - * @see ModuleRef#isEJB() - */ - public boolean isEJB() { - return false; - } - - /* - * @see ModuleRef#isWeb() - */ - public boolean isWeb() { - return false; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EARFile getEarFile() { - if (eContainerFeatureID != CommonarchivePackage.MODULE_REF__EAR_FILE) return null; - return (EARFile)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setEarFile(EARFile newEarFile) { - if (newEarFile != eContainer || (eContainerFeatureID != CommonarchivePackage.MODULE_REF__EAR_FILE && newEarFile != null)) { - if (EcoreUtil.isAncestor(this, newEarFile)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newEarFile != null) - msgs = ((InternalEObject)newEarFile).eInverseAdd(this, CommonarchivePackage.EAR_FILE__MODULE_REFS, EARFile.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newEarFile, CommonarchivePackage.MODULE_REF__EAR_FILE, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.MODULE_REF__EAR_FILE, newEarFile, newEarFile)); - } - - public Module getModule() { - if (module != null && module.eIsProxy()) { - Module oldModule = module; - module = (Module) EcoreUtil.resolve(module, this); - if (module != oldModule) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonarchivePackage.MODULE_REF__MODULE, oldModule, module)); - } - } - return module; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Module basicGetModule() { - return module; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setModule(Module newModule) { - Module oldModule = module; - module = newModule; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.MODULE_REF__MODULE, oldModule, module)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.MODULE_REF__EAR_FILE: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.MODULE_REF__EAR_FILE, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.MODULE_REF__EAR_FILE: - return eBasicSetContainer(null, CommonarchivePackage.MODULE_REF__EAR_FILE, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.MODULE_REF__EAR_FILE: - return eContainer.eInverseRemove(this, CommonarchivePackage.EAR_FILE__MODULE_REFS, EARFile.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.MODULE_REF__MODULE_FILE: - if (resolve) return getModuleFile(); - return basicGetModuleFile(); - case CommonarchivePackage.MODULE_REF__EAR_FILE: - return getEarFile(); - case CommonarchivePackage.MODULE_REF__MODULE: - if (resolve) return getModule(); - return basicGetModule(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * Return an input stream from the "resources path" of either the ModuleFile, if the module does - * not use alt-dd, or from the altRoot of the module, found in the resources path of the EAR - * - * @see LoadStrategy#getResourceInputStream(String) - */ - public InputStream getResourceInputStream(String uri) throws IOException { - if (usesAltDD()) - return getAltResourceInputStream(uri); - return getLocalResourceInputStream(uri); - } - - public InputStream getLocalResourceInputStream(String uri) throws IOException { - checkModuleFile(); - return moduleFile.getResourceInputStream(uri); - } - - public InputStream getAltResourceInputStream(String uri) throws IOException { - checkEARFile(); - return getEarFile().getResourceInputStream(uri); - } - - /* - * @see ModuleRef#getUri() - */ - public String getUri() { - if (module != null) - return module.getUri(); - if (moduleFile != null) - return moduleFile.getURI(); - - return null; - } - - /** - * @see ModuleRef#getAltMofResource(String) - */ - public Resource getAltMofResource(String uri) throws FileNotFoundException, ResourceLoadException { - checkEARFile(); - return getEarFile().getMofResource(uri); - } - - /** - * @see ModuleRef#getLocalMofResource(String) - */ - public Resource getLocalMofResource(String uri) throws FileNotFoundException, ResourceLoadException { - checkModuleFile(); - return moduleFile.getMofResource(uri); - } - - /** - * @see ModuleRef#getMofResource(String) - */ - public Resource getMofResource(String uri) throws FileNotFoundException, ResourceLoadException { - if (usesAltDD()) - return getAltMofResource(uri); - return getLocalMofResource(uri); - } - - /** - * @see ModuleRef#makeAltMofResource(String) - */ - public Resource makeAltMofResource(String uri) throws DuplicateObjectException { - checkEARFile(); - return getEarFile().makeMofResource(uri); - } - - protected void checkEARFile() { - if (getEarFile() == null) - throw new ArchiveRuntimeException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.Module_not_in_EAR, new Object[]{getUri()})); - } - - /** - * @see ModuleRef#makeLocalMofResource(String) - */ - public Resource makeLocalMofResource(String uri) throws DuplicateObjectException { - checkModuleFile(); - return moduleFile.makeMofResource(uri); - - } - - protected void checkModuleFile() { - getModuleFile(); - if (moduleFile == null) - throw new NoModuleFileException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.Module_file_does_not_exist_2, new Object[]{getUri()})); - } - - protected void checkType(Module moduleDescriptor, File aFile) { - if (aFile == null) { - String message = CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.A_file_does_not_exist_for_module, new Object[]{moduleDescriptor.getUri()}); - throw new NoModuleFileException(message); - } - //Added for defect 113929 - boolean isValid = true; - String type = CommonArchiveResourceHandler.Module_file; - if (moduleDescriptor.isWebModule() && !aFile.isWARFile()) { - isValid = false; - type = CommonArchiveResourceHandler.A_WAR_file; - } else if (moduleDescriptor.isEjbModule() && !aFile.isEJBJarFile()) { - isValid = false; - type = CommonArchiveResourceHandler.An_EJB_JAR_file; - } else if (moduleDescriptor.isJavaModule() && !aFile.isApplicationClientFile()) { - isValid = false; - type = CommonArchiveResourceHandler.An_Application_Client_JAR_file; - } else if (moduleDescriptor.isConnectorModule() && !aFile.isRARFile()) { - isValid = false; - type = CommonArchiveResourceHandler.A_RAR_file; - } else if (!aFile.isModuleFile()) - isValid = false; - - if (isValid) - return; - - String earUri = ""; //$NON-NLS-1$ - if (getEarFile() != null) - earUri = getEarFile().getURI(); - String message = CommonArchiveResourceHandler.getString("File_not_correct_type", new Object[]{aFile.getURI(), earUri, type}); //$NON-NLS-1$ - throw new ArchiveRuntimeException(message); - } - - - /** - * @see ModuleRef#makeMofResource(String) - */ - public Resource makeMofResource(String uri) throws DuplicateObjectException { - if (usesAltDD()) - return makeAltMofResource(uri); - return makeLocalMofResource(uri); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/RARFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/RARFileImpl.java deleted file mode 100644 index 310bbcedc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/RARFileImpl.java +++ /dev/null @@ -1,393 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveConstants; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ConnectorDirectorySaveStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.RarFileDynamicClassLoader; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.jst.j2ee.jca.Connector; -import org.eclipse.jst.j2ee.jca.JcaFactory; -import org.eclipse.jst.j2ee.jca.JcaPackage; - - -/** - * @generated - */ -public class RARFileImpl extends ModuleFileImpl implements RARFile { - - /** - * The cached value of the '{@link #getDeploymentDescriptor() <em>Deployment Descriptor</em>}' reference. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @see #getDeploymentDescriptor() - * @generated - * @ordered - */ - protected Connector deploymentDescriptor = null; - - public RARFileImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getRARFile(); - } - - /** - * @see com.ibm.etools.commonarchive.WARFile - */ - public File addCopyClass(File aFile) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException { - if (aFile.isReadOnlyDirectory()) - throw new IllegalArgumentException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.add_copy_class_dir_EXC_, (new Object[]{aFile.getURI()}))); // = "Method addCopyClass not supported for directories :" - return addCopyFileAddingPrefix(aFile, ArchiveConstants.WEBAPP_CLASSES_URI); - } - - protected File addCopyFileAddingPrefix(File aFile, String uriPrefix) throws DuplicateObjectException { - String swizzledUri = aFile.getURI(); - if (!swizzledUri.startsWith(uriPrefix)) { - swizzledUri = ArchiveUtil.concatUri(uriPrefix, swizzledUri, '/'); - } - checkAddValid(swizzledUri); - File copy = copy(aFile); - copy.setURI(swizzledUri); - getFiles().add(copy); - return copy; - } - - protected SaveStrategy createSaveStrategyForConnectorDirectory(java.io.File dir, int expansionFlags) { - return new ConnectorDirectorySaveStrategyImpl(dir.getAbsolutePath(), expansionFlags); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public void extractToConnectorDirectory(java.lang.String aUri, int expansionFlags) throws SaveFailureException { - java.io.File aDir = new java.io.File(aUri); - if (getLoadStrategy().isUsing(aDir)) - throw new SaveFailureException(CommonArchiveResourceHandler.Extract_destination_is_the_EXC_); // = "Extract destination is the same path as source file" - - try { - SaveStrategy aSaveStrategy = createSaveStrategyForConnectorDirectory(aDir, expansionFlags); - save(aSaveStrategy); - aSaveStrategy.close(); - } catch (java.io.IOException ex) { - throw new SaveFailureException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.error_saving_EXC_, (new Object[]{uri})), ex); // = "Error saving " - } - - } - - /** - * @see com.ibm.etools.commonarchive.RARFile - */ - public java.util.List getClasses() { - return filterFilesByPrefix(ArchiveConstants.RAR_CLASSES_URI); - } - - /** - * @throws DeploymentDescriptorLoadException - - * is a runtime exception, because we can't override the signature of the generated - * methods - */ - public Connector getDeploymentDescriptor() throws DeploymentDescriptorLoadException { - Connector dd = deploymentDescriptor; - if (dd == null && canLazyInitialize()) - try { - getImportStrategy().importMetaData(); - } catch (Exception e) { - throw new DeploymentDescriptorLoadException(getDeploymentDescriptorUri(), e); - } - return deploymentDescriptor; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Connector basicGetDeploymentDescriptor() { - return deploymentDescriptor; - } - - public String getDeploymentDescriptorUri() { - return J2EEConstants.RAR_DD_URI; - } - - /** - * @see com.ibm.etools.commonarchive.WARFile - */ - public java.util.List getResources() { - String[] prefixes = {J2EEConstants.META_INF, J2EEConstants.WEB_INF}; - return filterFilesWithoutPrefix(prefixes); - } - - /** - * Return the DeployementDescriptor. - */ - public EObject getStandardDeploymentDescriptor() throws DeploymentDescriptorLoadException { - return getDeploymentDescriptor(); - } - - public boolean isDeploymentDescriptorSet() { - return deploymentDescriptor != null; - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isRARFile() { - return true; - } - - /** - * @see com.ibm.etools.commonarchive.impl.ModuleFileImpl - */ - public org.eclipse.emf.ecore.EObject makeDeploymentDescriptor(XMLResource resource) { - JcaPackage p = (JcaPackage) EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI); - JcaFactory fct = p.getJcaFactory(); - Connector connector = fct.createConnector(); - setDeploymentDescriptor(connector); - resource.getContents().add(connector); - return connector; - } - - - public void setDeploymentDescriptor(Connector l) { - deploymentDescriptor = l; - replaceRoot(getMofResourceMakeIfNecessary(getDeploymentDescriptorUri()), l); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.RAR_FILE__CONTAINER: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.RAR_FILE__CONTAINER, msgs); - case CommonarchivePackage.RAR_FILE__FILES: - return ((InternalEList)getFiles()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.RAR_FILE__CONTAINER: - return eBasicSetContainer(null, CommonarchivePackage.RAR_FILE__CONTAINER, msgs); - case CommonarchivePackage.RAR_FILE__FILES: - return ((InternalEList)getFiles()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.RAR_FILE__CONTAINER: - return eContainer.eInverseRemove(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.RAR_FILE__URI: - return getURI(); - case CommonarchivePackage.RAR_FILE__LAST_MODIFIED: - return new Long(getLastModified()); - case CommonarchivePackage.RAR_FILE__SIZE: - return new Long(getSize()); - case CommonarchivePackage.RAR_FILE__DIRECTORY_ENTRY: - return isDirectoryEntry() ? Boolean.TRUE : Boolean.FALSE; - case CommonarchivePackage.RAR_FILE__ORIGINAL_URI: - return getOriginalURI(); - case CommonarchivePackage.RAR_FILE__LOADING_CONTAINER: - if (resolve) return getLoadingContainer(); - return basicGetLoadingContainer(); - case CommonarchivePackage.RAR_FILE__CONTAINER: - return getContainer(); - case CommonarchivePackage.RAR_FILE__FILES: - return getFiles(); - case CommonarchivePackage.RAR_FILE__TYPES: - return getTypes(); - case CommonarchivePackage.RAR_FILE__DEPLOYMENT_DESCRIPTOR: - if (resolve) return getDeploymentDescriptor(); - return basicGetDeploymentDescriptor(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.RAR_FILE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case CommonarchivePackage.RAR_FILE__LAST_MODIFIED: - return isSetLastModified(); - case CommonarchivePackage.RAR_FILE__SIZE: - return isSetSize(); - case CommonarchivePackage.RAR_FILE__DIRECTORY_ENTRY: - return isSetDirectoryEntry(); - case CommonarchivePackage.RAR_FILE__ORIGINAL_URI: - return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); - case CommonarchivePackage.RAR_FILE__LOADING_CONTAINER: - return loadingContainer != null; - case CommonarchivePackage.RAR_FILE__CONTAINER: - return getContainer() != null; - case CommonarchivePackage.RAR_FILE__FILES: - return files != null && !files.isEmpty(); - case CommonarchivePackage.RAR_FILE__TYPES: - return types != null && !types.isEmpty(); - case CommonarchivePackage.RAR_FILE__DEPLOYMENT_DESCRIPTOR: - return deploymentDescriptor != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.RAR_FILE__URI: - setURI((String)newValue); - return; - case CommonarchivePackage.RAR_FILE__LAST_MODIFIED: - setLastModified(((Long)newValue).longValue()); - return; - case CommonarchivePackage.RAR_FILE__SIZE: - setSize(((Long)newValue).longValue()); - return; - case CommonarchivePackage.RAR_FILE__DIRECTORY_ENTRY: - setDirectoryEntry(((Boolean)newValue).booleanValue()); - return; - case CommonarchivePackage.RAR_FILE__ORIGINAL_URI: - setOriginalURI((String)newValue); - return; - case CommonarchivePackage.RAR_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)newValue); - return; - case CommonarchivePackage.RAR_FILE__CONTAINER: - setContainer((Container)newValue); - return; - case CommonarchivePackage.RAR_FILE__FILES: - getFiles().clear(); - getFiles().addAll((Collection)newValue); - return; - case CommonarchivePackage.RAR_FILE__TYPES: - getTypes().clear(); - getTypes().addAll((Collection)newValue); - return; - case CommonarchivePackage.RAR_FILE__DEPLOYMENT_DESCRIPTOR: - setDeploymentDescriptor((Connector)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.RAR_FILE__URI: - setURI(URI_EDEFAULT); - return; - case CommonarchivePackage.RAR_FILE__LAST_MODIFIED: - unsetLastModified(); - return; - case CommonarchivePackage.RAR_FILE__SIZE: - unsetSize(); - return; - case CommonarchivePackage.RAR_FILE__DIRECTORY_ENTRY: - unsetDirectoryEntry(); - return; - case CommonarchivePackage.RAR_FILE__ORIGINAL_URI: - setOriginalURI(ORIGINAL_URI_EDEFAULT); - return; - case CommonarchivePackage.RAR_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)null); - return; - case CommonarchivePackage.RAR_FILE__CONTAINER: - setContainer((Container)null); - return; - case CommonarchivePackage.RAR_FILE__FILES: - getFiles().clear(); - return; - case CommonarchivePackage.RAR_FILE__TYPES: - getTypes().clear(); - return; - case CommonarchivePackage.RAR_FILE__DEPLOYMENT_DESCRIPTOR: - setDeploymentDescriptor((Connector)null); - return; - } - eDynamicUnset(eFeature); - } - - public ClassLoader createDynamicClassLoader(ClassLoader parentCl, ClassLoader extraCl) { - return new RarFileDynamicClassLoader(this, parentCl, extraCl); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ReadOnlyDirectoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ReadOnlyDirectoryImpl.java deleted file mode 100644 index 8a2f50213..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ReadOnlyDirectoryImpl.java +++ /dev/null @@ -1,295 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ReadOnlyDirectory; - -/** - * @generated - */ -public class ReadOnlyDirectoryImpl extends ContainerImpl implements ReadOnlyDirectory { - - public ReadOnlyDirectoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getReadOnlyDirectory(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.READ_ONLY_DIRECTORY__CONTAINER: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.READ_ONLY_DIRECTORY__CONTAINER, msgs); - case CommonarchivePackage.READ_ONLY_DIRECTORY__FILES: - return ((InternalEList)getFiles()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.READ_ONLY_DIRECTORY__CONTAINER: - return eBasicSetContainer(null, CommonarchivePackage.READ_ONLY_DIRECTORY__CONTAINER, msgs); - case CommonarchivePackage.READ_ONLY_DIRECTORY__FILES: - return ((InternalEList)getFiles()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.READ_ONLY_DIRECTORY__CONTAINER: - return eContainer.eInverseRemove(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.READ_ONLY_DIRECTORY__URI: - return getURI(); - case CommonarchivePackage.READ_ONLY_DIRECTORY__LAST_MODIFIED: - return new Long(getLastModified()); - case CommonarchivePackage.READ_ONLY_DIRECTORY__SIZE: - return new Long(getSize()); - case CommonarchivePackage.READ_ONLY_DIRECTORY__DIRECTORY_ENTRY: - return isDirectoryEntry() ? Boolean.TRUE : Boolean.FALSE; - case CommonarchivePackage.READ_ONLY_DIRECTORY__ORIGINAL_URI: - return getOriginalURI(); - case CommonarchivePackage.READ_ONLY_DIRECTORY__LOADING_CONTAINER: - if (resolve) return getLoadingContainer(); - return basicGetLoadingContainer(); - case CommonarchivePackage.READ_ONLY_DIRECTORY__CONTAINER: - return getContainer(); - case CommonarchivePackage.READ_ONLY_DIRECTORY__FILES: - return getFiles(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.READ_ONLY_DIRECTORY__URI: - setURI((String)newValue); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__LAST_MODIFIED: - setLastModified(((Long)newValue).longValue()); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__SIZE: - setSize(((Long)newValue).longValue()); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__DIRECTORY_ENTRY: - setDirectoryEntry(((Boolean)newValue).booleanValue()); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__ORIGINAL_URI: - setOriginalURI((String)newValue); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__LOADING_CONTAINER: - setLoadingContainer((Container)newValue); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__CONTAINER: - setContainer((Container)newValue); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__FILES: - getFiles().clear(); - getFiles().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.READ_ONLY_DIRECTORY__URI: - setURI(URI_EDEFAULT); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__LAST_MODIFIED: - unsetLastModified(); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__SIZE: - unsetSize(); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__DIRECTORY_ENTRY: - unsetDirectoryEntry(); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__ORIGINAL_URI: - setOriginalURI(ORIGINAL_URI_EDEFAULT); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__LOADING_CONTAINER: - setLoadingContainer((Container)null); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__CONTAINER: - setContainer((Container)null); - return; - case CommonarchivePackage.READ_ONLY_DIRECTORY__FILES: - getFiles().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.READ_ONLY_DIRECTORY__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case CommonarchivePackage.READ_ONLY_DIRECTORY__LAST_MODIFIED: - return isSetLastModified(); - case CommonarchivePackage.READ_ONLY_DIRECTORY__SIZE: - return isSetSize(); - case CommonarchivePackage.READ_ONLY_DIRECTORY__DIRECTORY_ENTRY: - return isSetDirectoryEntry(); - case CommonarchivePackage.READ_ONLY_DIRECTORY__ORIGINAL_URI: - return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); - case CommonarchivePackage.READ_ONLY_DIRECTORY__LOADING_CONTAINER: - return loadingContainer != null; - case CommonarchivePackage.READ_ONLY_DIRECTORY__CONTAINER: - return getContainer() != null; - case CommonarchivePackage.READ_ONLY_DIRECTORY__FILES: - return files != null && !files.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public boolean containsFile(java.lang.String aUri) { - getFiles(); - return getFileIndex().containsKey(aUri); - } - - /** - * containsFileInRootOrSubdirectory method comment. - */ - public boolean containsFileInSelfOrSubdirectory(java.lang.String aUri) { - return getLoadStrategy().contains(aUri); - } - - /** - * getFileInSelfOrSubdirectory method comment. - */ - public File getFileInSelfOrSubdirectory(java.lang.String aUri) throws java.io.FileNotFoundException { - if (!containsFileInSelfOrSubdirectory(aUri)) - throw new java.io.FileNotFoundException(aUri); - - if (containsFile(aUri)) - return getFile(aUri); - - List subdirs = getReadOnlyDirectories(); - for (int i = 0; i < subdirs.size(); i++) { - ReadOnlyDirectory subdir = (ReadOnlyDirectory) subdirs.get(i); - if (subdir.containsFileInSelfOrSubdirectory(aUri)) - return subdir.getFileInSelfOrSubdirectory(aUri); - } - throw new java.io.FileNotFoundException(aUri); - } - - /** - * Returns a flat list of all the files contained in this directory and subdirectories, with the - * directories filtered out, as the list would appear in an archive - */ - public java.util.List getFilesRecursive() { - List allFiles = new ArrayList(); - List filesList = getFiles(); - for (int i = 0; i < filesList.size(); i++) { - File aFile = (File) filesList.get(i); - if (aFile.isReadOnlyDirectory()) - allFiles.addAll(((ReadOnlyDirectory) aFile).getFilesRecursive()); - else - allFiles.add(aFile); - } - return allFiles; - } - - /** - * Return a filtered list on the files with just the instances of ReadOnlyDirectory - */ - public List getReadOnlyDirectories() { - List filtered = new ArrayList(); - List filesList = getFiles(); - for (int i = 0; i < filesList.size(); i++) { - File aFile = (File) filesList.get(i); - if (aFile.isReadOnlyDirectory()) - filtered.add(aFile); - } - return filtered; - } - - /** - * isReadOnlyDirectory method comment. - */ - public boolean isReadOnlyDirectory() { - return true; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/RootArchiveTypeDescriminatorImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/RootArchiveTypeDescriminatorImpl.java deleted file mode 100644 index 26356725e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/RootArchiveTypeDescriminatorImpl.java +++ /dev/null @@ -1,89 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminatorImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy; - - -/** - * Insert the type's description here. Creation date: (12/04/00 5:24:44 PM) - * - * @author: Administrator - */ -public class RootArchiveTypeDescriminatorImpl extends org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminatorImpl implements org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator { - protected static ArchiveTypeDiscriminatorImpl singleton; - - /** - * CommonArchiveFactoryDescriminator constructor comment. - */ - public RootArchiveTypeDescriminatorImpl() { - super(); - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public boolean canImport(Archive anArchive) { - return true; - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public Archive convert(Archive anArchive) { - return anArchive; - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator This never gets called for this - * implementer. - */ - public Archive createConvertedArchive() { - return null; - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator This never gets called for this - * implementer. - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy() { - return null; - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator This never gets called for this - * implementer. - */ - public ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return null; - } - - /** - * @return null This method should not get called at this level - * - * @see ArchiveTypeDescriminator#getUnableToOpenMessage() - */ - public java.lang.String getUnableToOpenMessage() { - return "";//$NON-NLS-1$ - } - - public static ArchiveTypeDiscriminator singleton() { - if (singleton == null) { - singleton = new RootArchiveTypeDescriminatorImpl(); - } - return singleton; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/RootEJBJarDescriminatorImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/RootEJBJarDescriminatorImpl.java deleted file mode 100644 index ed9acc836..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/RootEJBJarDescriminatorImpl.java +++ /dev/null @@ -1,120 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminatorImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.EjbJar11ImportStrategyImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy; - - -/** - * Insert the type's description here. Creation date: (12/04/00 5:24:44 PM) - * - * @author: Administrator - */ -public class RootEJBJarDescriminatorImpl extends org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminatorImpl implements org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator { - protected static ArchiveTypeDiscriminatorImpl singleton; - - /** - * CommonArchiveFactoryDescriminator constructor comment. - */ - public RootEJBJarDescriminatorImpl() { - super(); - initialize(); - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public boolean canImport(Archive anArchive) { - java.util.List theChildren = getChildren(); - for (int i = 0; i < theChildren.size(); i++) { - ArchiveTypeDiscriminator child = (ArchiveTypeDiscriminator) theChildren.get(i); - if (child.canImport(anArchive)) - return true; - } - return false; - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public Archive convert(Archive anArchive) { - return anArchive; - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator This never gets called for this - * implementer. - */ - public Archive createConvertedArchive() { - return null; - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator This never gets called for this - * implementer. - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy() { - return null; - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator This never gets called for this - * implementer. - */ - public ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return null; - } - - /** - * @return null This method should not get called at this level - * - * @see ArchiveTypeDescriminator#getUnableToOpenMessage() - */ - public java.lang.String getUnableToOpenMessage() { - StringBuffer message = new StringBuffer(); - java.util.List theChildren = getChildren(); - for (int i = 0; i < theChildren.size(); i++) { - ArchiveTypeDiscriminator child = (ArchiveTypeDiscriminator) theChildren.get(i); - message.append(child.getUnableToOpenMessage()); - message.append('\n'); - } - return message.toString(); - } - - public void initialize() { - addChild(EjbJar11ImportStrategyImpl.getDiscriminator()); - } - - /** - * @see ArchiveTypeDiscriminator#openArchive(Archive) - */ - public Archive openArchive(Archive anArchive) throws OpenFailureException { - Archive result = super.openArchive(anArchive); - if (result == anArchive) - //Couldn't convert - return null; - return result; - } - - public static ArchiveTypeDiscriminator singleton() { - if (singleton == null) { - singleton = new RootEJBJarDescriminatorImpl(); - } - return singleton; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/WARFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/WARFileImpl.java deleted file mode 100644 index 2bf154840..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/WARFileImpl.java +++ /dev/null @@ -1,582 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - - -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Vector; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveConstants; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.RuntimeClasspathEntry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.WarFileDynamicClassLoader; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseLibrary; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseWARFile; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * @generated - */ -public class WARFileImpl extends ModuleFileImpl implements WARFile { - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected WebApp deploymentDescriptor = null; - protected List sourceFiles; - - public WARFileImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getWARFile(); - } - - /** - * @see com.ibm.etools.commonarchive.WARFile - */ - public File addCopyClass(File aFile) throws DuplicateObjectException { - if (aFile.isReadOnlyDirectory()) - throw new IllegalArgumentException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.add_copy_class_dir_EXC_, (new Object[]{aFile.getURI()}))); // = "Method addCopyClass not supported for directories :" - return addCopyFileAddingPrefix(aFile, ArchiveConstants.WEBAPP_CLASSES_URI); - } - - protected File addCopyFileAddingPrefix(File aFile, String uriPrefix) throws DuplicateObjectException { - String swizzledUri = aFile.getURI(); - if (!swizzledUri.startsWith(uriPrefix)) { - swizzledUri = ArchiveUtil.concatUri(uriPrefix, swizzledUri, '/'); - } - checkAddValid(swizzledUri); - File copy = copy(aFile); - copy.setURI(swizzledUri); - getFiles().add(copy); - return copy; - } - - /** - * @see com.ibm.etools.commonarchive.WARFile - */ - public File addCopyLib(File aFile) throws DuplicateObjectException { - if (aFile.isReadOnlyDirectory()) - throw new IllegalArgumentException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.add_copy_lib_dir_EXC_, (new Object[]{aFile.getURI()}))); // = "Method addCopyLib not supported for directories :" - return addCopyFileAddingPrefix(aFile, ArchiveConstants.WEBAPP_LIB_URI); - } - - protected RuntimeClasspathEntry createLibClasspathEntry(String libPath) { - RuntimeClasspathEntry entry = createRuntimeClasspathEntry(libPath); - entry.setWarFile(this); - return entry; - } - - /** - * Used internally for building the runtime class path - * - * @return List of Strings, the absolute paths of all file entries (no directories) - */ - protected List getAllFileEntriesRecursive(java.io.File aFile, List aList) { - if (!aFile.exists()) - return aList; - //modified for botp 126140 05.29.02 - String name = aFile.getName(); - if (name.regionMatches(true, name.length() - 4, ".jar", 0, 4)) {//$NON-NLS-1$ - aList.add(aFile.getAbsolutePath()); - } else if (aFile.isDirectory()) { - java.io.File[] children = aFile.listFiles(); - for (int i = 0; i < children.length; i++) { - getAllFileEntriesRecursive(children[i], aList); - } - } - return aList; - } - - /** - * @see com.ibm.etools.commonarchive.WARFile - */ - public java.util.List getClasses() { - return filterFilesByPrefix(ArchiveConstants.WEBAPP_CLASSES_URI); - } - - /** - * @throws DeploymentDescriptorLoadException - - * is a runtime exception, because we can't override the signature of the generated - * methods - */ - public WebApp getDeploymentDescriptor() throws DeploymentDescriptorLoadException { - WebApp dd = this.getDeploymentDescriptorGen(); - if (dd == null && canLazyInitialize()) - try { - getImportStrategy().importMetaData(); - } catch (Exception e) { - throw new DeploymentDescriptorLoadException(getDeploymentDescriptorUri(), e); - } - return this.getDeploymentDescriptorGen(); - } - - public String getDeploymentDescriptorUri() { - return J2EEConstants.WEBAPP_DD_URI; - } - - - /** - * @see com.ibm.etools.commonarchive.WARFile - */ - public java.util.List getLibs() { - return filterFilesByPrefix(ArchiveConstants.WEBAPP_LIB_URI); - } - - /** - * @see com.ibm.etools.commonarchive.WARFile - */ - public List getLibArchives() { - return filterFiles(ArchiveConstants.WEBAPP_LIB_URI, new String[]{"jar", "zip"}); //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * @see com.ibm.etools.commonarchive.WARFile - */ - public java.util.List getResources() { - String[] prefixes = {J2EEConstants.META_INF, J2EEConstants.WEB_INF}; - return filterFilesWithoutPrefix(prefixes); - } - - /** - * Overridden from superclass to include the claseses and libs of a WARFile There also is an - * assumption that this is an exploded war file The following is what should be returned: - * - * 1) WAR directory + /WEB-INF/classes 2) all JAR files contained in [WAR directory + - * /WEB-INF/lib] 3) WAR directory - */ - public RuntimeClasspathEntry[] getLocalRuntimeClassPath() { - - String absolutePath; - try { - absolutePath = getLoadStrategy().getBinariesPath(); - } catch (IOException ex) { - return new RuntimeClasspathEntry[0]; - } - - List entries = new ArrayList(); - - if (getLoadStrategy().isDirectory()) { - String classesPath = ArchiveUtil.getOSUri(absolutePath, ArchiveConstants.WEBAPP_CLASSES_URI); - entries.add(createRuntimeClasspathEntry(classesPath)); - addWebLibs(absolutePath, entries); - } - - entries.add(createRuntimeClasspathEntry(absolutePath)); - return (RuntimeClasspathEntry[]) entries.toArray(new RuntimeClasspathEntry[entries.size()]); - } - - protected RuntimeClasspathEntry[] getDependencyClassPathAtThisLevel() { - - String absolutePath = internalGetBinariesPath(); - if (absolutePath == null) - return emptyClasspath(); - RuntimeClasspathEntry[] mfEntries = super.getDependencyClassPathAtThisLevel(); - List entries = new ArrayList(); - entries.addAll(Arrays.asList(mfEntries)); - - return (RuntimeClasspathEntry[]) entries.toArray(new RuntimeClasspathEntry[entries.size()]); - } - - protected void addWebLibs(String absolutePath, List entries) { - /******************************************************************************************* - * Optimization*********** We could have used the helper getlibs here; however, that could - * drag down performance as the full file list would have to get built, and this is runtime; - * if the classes portion is huge then building the file list would be slow; moreover, we - * would then have to clear the index from this war file. therefore, we'll do a little extra - * work to get the libs - ******************************************************************************************/ - java.io.File aFile = new java.io.File(ArchiveUtil.getOSUri(absolutePath, ArchiveConstants.WEBAPP_LIB_URI)); - List libs = getAllFileEntriesRecursive(aFile, new ArrayList()); - for (int i = 0; i < libs.size(); i++) { - String libPath = (String) libs.get(i); - entries.add(createLibClasspathEntry(libPath)); - } - addLooseLibsToRuntimeClasspath(entries); - } - - protected void addLooseLibsToRuntimeClasspath(List entries) { - LooseWARFile loose = (LooseWARFile) getLoadStrategy().getLooseArchive(); - if (loose == null) - return; - - List looseLibs = loose.getLooseLibs(); - for (int i = 0; i < looseLibs.size(); i++) { - LooseLibrary lib = (LooseLibrary) looseLibs.get(i); - entries.add(createLibClasspathEntry(lib.getBinariesPath())); - } - } - - protected List calculateSourceCandidateFiles() { - List filesList = getFiles(); - List retFiles = new Vector(); - for (Iterator iter = filesList.iterator(); iter.hasNext();) { - File file = (File) iter.next(); - String aUri = file.getURI(); - if (aUri.startsWith(J2EEConstants.WEB_INF) && !aUri.startsWith(ArchiveConstants.WEBAPP_LIB_URI)) - retFiles.add(file); - } - return retFiles; - } - - protected List getSourceCandidateFiles() { - if (sourceFiles == null) { - sourceFiles = calculateSourceCandidateFiles(); - } - return sourceFiles; - } - - protected String makeRelative(String pathString, String relToPathString) { - - if (pathString.startsWith(relToPathString)) - return ArchiveUtil.truncateFromFrontIgnoreCase(pathString, relToPathString); - - return pathString; - } - - /** - * Return the source file that matches the output file passed in - * - * @param aClassFile - * The .class file or other output file to find the source for - * @return String The matching source. Null if there is no matching source found - */ - public File getSourceFile(File aClassFile) { - List sourceFilesList = getSourceCandidateFiles(); - String classURI = aClassFile.getURI(); - String convertedClassURI = classURI; - if (classURI.endsWith(".class")) //$NON-NLS-1$ - convertedClassURI = ArchiveUtil.classUriToJavaUri(aClassFile.getURI()); - else - return null; - convertedClassURI = makeRelative(convertedClassURI, ArchiveConstants.WEBAPP_CLASSES_URI); - int bestLength = 32767; - File bestMatch = null; - File file = null; - String aUri = null; - for (Iterator iter = sourceFilesList.iterator(); iter.hasNext();) { - file = (File) iter.next(); - aUri = file.getURI(); - if (aUri.endsWith(convertedClassURI) && !aUri.equals(classURI)) { - int excessLength = aUri.length() - convertedClassURI.length(); - if (excessLength < bestLength) { - bestMatch = file; - bestLength = excessLength; - } - } - } - return bestMatch; - } - - /** - * Return the DeployementDescriptor. - */ - public EObject getStandardDeploymentDescriptor() throws DeploymentDescriptorLoadException { - return getDeploymentDescriptor(); - } - - public boolean isDeploymentDescriptorSet() { - return deploymentDescriptor != null; - } - - /** - * @see com.ibm.etools.commonarchive.File - */ - public boolean isWARFile() { - return true; - } - - /** - * @see com.ibm.etools.commonarchive.impl.ModuleFileImpl - */ - public org.eclipse.emf.ecore.EObject makeDeploymentDescriptor(XMLResource resource) { - WebApp webApp = ((WebapplicationPackage) EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI)).getWebapplicationFactory().createWebApp(); - resource.setID(webApp, J2EEConstants.WEBAPP_ID); - setDeploymentDescriptorGen(webApp); - resource.getContents().add(webApp); - return webApp; - } - - public void setDeploymentDescriptor(WebApp l) { - this.setDeploymentDescriptorGen(l); - replaceRoot(getMofResourceMakeIfNecessary(getDeploymentDescriptorUri()), l); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.WAR_FILE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case CommonarchivePackage.WAR_FILE__LAST_MODIFIED: - return isSetLastModified(); - case CommonarchivePackage.WAR_FILE__SIZE: - return isSetSize(); - case CommonarchivePackage.WAR_FILE__DIRECTORY_ENTRY: - return isSetDirectoryEntry(); - case CommonarchivePackage.WAR_FILE__ORIGINAL_URI: - return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); - case CommonarchivePackage.WAR_FILE__LOADING_CONTAINER: - return loadingContainer != null; - case CommonarchivePackage.WAR_FILE__CONTAINER: - return getContainer() != null; - case CommonarchivePackage.WAR_FILE__FILES: - return files != null && !files.isEmpty(); - case CommonarchivePackage.WAR_FILE__TYPES: - return types != null && !types.isEmpty(); - case CommonarchivePackage.WAR_FILE__DEPLOYMENT_DESCRIPTOR: - return deploymentDescriptor != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.WAR_FILE__URI: - setURI((String)newValue); - return; - case CommonarchivePackage.WAR_FILE__LAST_MODIFIED: - setLastModified(((Long)newValue).longValue()); - return; - case CommonarchivePackage.WAR_FILE__SIZE: - setSize(((Long)newValue).longValue()); - return; - case CommonarchivePackage.WAR_FILE__DIRECTORY_ENTRY: - setDirectoryEntry(((Boolean)newValue).booleanValue()); - return; - case CommonarchivePackage.WAR_FILE__ORIGINAL_URI: - setOriginalURI((String)newValue); - return; - case CommonarchivePackage.WAR_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)newValue); - return; - case CommonarchivePackage.WAR_FILE__CONTAINER: - setContainer((Container)newValue); - return; - case CommonarchivePackage.WAR_FILE__FILES: - getFiles().clear(); - getFiles().addAll((Collection)newValue); - return; - case CommonarchivePackage.WAR_FILE__TYPES: - getTypes().clear(); - getTypes().addAll((Collection)newValue); - return; - case CommonarchivePackage.WAR_FILE__DEPLOYMENT_DESCRIPTOR: - setDeploymentDescriptor((WebApp)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.WAR_FILE__URI: - setURI(URI_EDEFAULT); - return; - case CommonarchivePackage.WAR_FILE__LAST_MODIFIED: - unsetLastModified(); - return; - case CommonarchivePackage.WAR_FILE__SIZE: - unsetSize(); - return; - case CommonarchivePackage.WAR_FILE__DIRECTORY_ENTRY: - unsetDirectoryEntry(); - return; - case CommonarchivePackage.WAR_FILE__ORIGINAL_URI: - setOriginalURI(ORIGINAL_URI_EDEFAULT); - return; - case CommonarchivePackage.WAR_FILE__LOADING_CONTAINER: - setLoadingContainer((Container)null); - return; - case CommonarchivePackage.WAR_FILE__CONTAINER: - setContainer((Container)null); - return; - case CommonarchivePackage.WAR_FILE__FILES: - getFiles().clear(); - return; - case CommonarchivePackage.WAR_FILE__TYPES: - getTypes().clear(); - return; - case CommonarchivePackage.WAR_FILE__DEPLOYMENT_DESCRIPTOR: - setDeploymentDescriptor((WebApp)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebApp getDeploymentDescriptorGen() { - if (deploymentDescriptor != null && deploymentDescriptor.eIsProxy()) { - WebApp oldDeploymentDescriptor = deploymentDescriptor; - deploymentDescriptor = (WebApp)eResolveProxy((InternalEObject)deploymentDescriptor); - if (deploymentDescriptor != oldDeploymentDescriptor) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonarchivePackage.WAR_FILE__DEPLOYMENT_DESCRIPTOR, oldDeploymentDescriptor, deploymentDescriptor)); - } - } - return deploymentDescriptor; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public WebApp basicGetDeploymentDescriptor() { - return deploymentDescriptor; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDeploymentDescriptorGen(WebApp newDeploymentDescriptor) { - WebApp oldDeploymentDescriptor = deploymentDescriptor; - deploymentDescriptor = newDeploymentDescriptor; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonarchivePackage.WAR_FILE__DEPLOYMENT_DESCRIPTOR, oldDeploymentDescriptor, deploymentDescriptor)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.WAR_FILE__CONTAINER: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.WAR_FILE__CONTAINER, msgs); - case CommonarchivePackage.WAR_FILE__FILES: - return ((InternalEList)getFiles()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.WAR_FILE__CONTAINER: - return eBasicSetContainer(null, CommonarchivePackage.WAR_FILE__CONTAINER, msgs); - case CommonarchivePackage.WAR_FILE__FILES: - return ((InternalEList)getFiles()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.WAR_FILE__CONTAINER: - return eContainer.eInverseRemove(this, CommonarchivePackage.CONTAINER__FILES, Container.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.WAR_FILE__URI: - return getURI(); - case CommonarchivePackage.WAR_FILE__LAST_MODIFIED: - return new Long(getLastModified()); - case CommonarchivePackage.WAR_FILE__SIZE: - return new Long(getSize()); - case CommonarchivePackage.WAR_FILE__DIRECTORY_ENTRY: - return isDirectoryEntry() ? Boolean.TRUE : Boolean.FALSE; - case CommonarchivePackage.WAR_FILE__ORIGINAL_URI: - return getOriginalURI(); - case CommonarchivePackage.WAR_FILE__LOADING_CONTAINER: - if (resolve) return getLoadingContainer(); - return basicGetLoadingContainer(); - case CommonarchivePackage.WAR_FILE__CONTAINER: - return getContainer(); - case CommonarchivePackage.WAR_FILE__FILES: - return getFiles(); - case CommonarchivePackage.WAR_FILE__TYPES: - return getTypes(); - case CommonarchivePackage.WAR_FILE__DEPLOYMENT_DESCRIPTOR: - if (resolve) return getDeploymentDescriptor(); - return basicGetDeploymentDescriptor(); - } - return eDynamicGet(eFeature, resolve); - } - - public ClassLoader createDynamicClassLoader(ClassLoader parentCl, ClassLoader extraCl) { - return new WarFileDynamicClassLoader(this, parentCl, extraCl); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/WebModuleRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/WebModuleRefImpl.java deleted file mode 100644 index 4df57761f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/WebModuleRefImpl.java +++ /dev/null @@ -1,187 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.impl; - - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WebModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.webapplication.WebApp; - - -public class WebModuleRefImpl extends ModuleRefImpl implements WebModuleRef, ModuleRef { - - - /** - * @generated This field/method will be replaced during code generation. - */ - protected WebModuleRefImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonarchivePackage.eINSTANCE.getWebModuleRef(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.WEB_MODULE_REF__EAR_FILE: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, CommonarchivePackage.WEB_MODULE_REF__EAR_FILE, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonarchivePackage.WEB_MODULE_REF__EAR_FILE: - return eBasicSetContainer(null, CommonarchivePackage.WEB_MODULE_REF__EAR_FILE, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case CommonarchivePackage.WEB_MODULE_REF__EAR_FILE: - return eContainer.eInverseRemove(this, CommonarchivePackage.EAR_FILE__MODULE_REFS, EARFile.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.WEB_MODULE_REF__MODULE_FILE: - if (resolve) return getModuleFile(); - return basicGetModuleFile(); - case CommonarchivePackage.WEB_MODULE_REF__EAR_FILE: - return getEarFile(); - case CommonarchivePackage.WEB_MODULE_REF__MODULE: - if (resolve) return getModule(); - return basicGetModule(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.WEB_MODULE_REF__MODULE_FILE: - setModuleFile((ModuleFile)newValue); - return; - case CommonarchivePackage.WEB_MODULE_REF__EAR_FILE: - setEarFile((EARFile)newValue); - return; - case CommonarchivePackage.WEB_MODULE_REF__MODULE: - setModule((Module)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.WEB_MODULE_REF__MODULE_FILE: - setModuleFile((ModuleFile)null); - return; - case CommonarchivePackage.WEB_MODULE_REF__EAR_FILE: - setEarFile((EARFile)null); - return; - case CommonarchivePackage.WEB_MODULE_REF__MODULE: - setModule((Module)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonarchivePackage.WEB_MODULE_REF__MODULE_FILE: - return moduleFile != null; - case CommonarchivePackage.WEB_MODULE_REF__EAR_FILE: - return getEarFile() != null; - case CommonarchivePackage.WEB_MODULE_REF__MODULE: - return module != null; - } - return eDynamicIsSet(eFeature); - } - - /* - * @see WebModuleRef#getWebApp() - */ - public WebApp getWebApp() throws ArchiveWrappedException { - return (WebApp) getDeploymentDescriptor(); - } - - /* - * @see ModuleRef#isWeb() - */ - public boolean isWeb() { - return true; - } - -} //WebModuleRefImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/AppClient12ExportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/AppClient12ExportStrategyImpl.java deleted file mode 100644 index 64e591654..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/AppClient12ExportStrategyImpl.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - - -/** - * Concrete implementer that knows how to export meta-data for a 1.2 Application Client - */ -public class AppClient12ExportStrategyImpl extends ExportStrategyImpl { - /** - * AppClient12ExportStrategy constructor comment. - */ - public AppClient12ExportStrategyImpl() { - super(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/AppClient12ImportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/AppClient12ImportStrategyImpl.java deleted file mode 100644 index c5236f291..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/AppClient12ImportStrategyImpl.java +++ /dev/null @@ -1,91 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ApplicationClientFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminatorImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; - - -/** - * Concrete implementer that knows how to import meta-data for a 1.2 Application Client - */ -public class AppClient12ImportStrategyImpl extends XmlBasedImportStrategyImpl { - - public static class Discriminator extends ArchiveTypeDiscriminatorImpl { - public boolean canImport(Archive anArchive) { - return anArchive.containsFile(J2EEConstants.APP_CLIENT_DD_URI); - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return new AppClient12ImportStrategyImpl(); - } - - public String getUnableToOpenMessage() { - return getXmlDDMessage(CommonArchiveResourceHandler.Application_Client_Jar_Fil, J2EEConstants.APP_CLIENT_DD_URI); // = "Application Client Jar File" - } - - public Archive createConvertedArchive() { - return getArchiveFactory().createApplicationClientFile(); - } - } - - protected static Discriminator discriminator; - - /** - * AppClient22ImportStrategy constructor comment. - */ - public AppClient12ImportStrategyImpl() { - super(); - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return getDiscriminator().createImportStrategy(old, newArchive); - } - - public ApplicationClientFile getApplicationClientFile() { - return (ApplicationClientFile) getArchive(); - } - - public static ArchiveTypeDiscriminator getDiscriminator() { - if (discriminator == null) { - discriminator = new Discriminator(); - } - return discriminator; - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public void importMetaData() throws Exception { - loadDeploymentDescriptor(); - } - - public void loadDeploymentDescriptor() throws Exception { - ApplicationClient client = null; - - client = (ApplicationClient) primLoadDeploymentDescriptor(); - - getApplicationClientFile().setDeploymentDescriptor(client); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ArchiveStrategy.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ArchiveStrategy.java deleted file mode 100644 index 263ad14aa..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ArchiveStrategy.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; - -/** - * Represents a supertype for all the archive strategies. - */ -public interface ArchiveStrategy { - public Archive getArchive(); - - public void setArchive(Archive archive); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ArchiveStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ArchiveStrategyImpl.java deleted file mode 100644 index 8352490c4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ArchiveStrategyImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; - -/** - * This an abstract type off which any implementers of the archive strategy can subclass. - */ -public abstract class ArchiveStrategyImpl implements ArchiveStrategy { - protected Archive archive; - - /** - * ArchiveStrategy constructor comment. - */ - public ArchiveStrategyImpl() { - super(); - } - - public Archive getArchive() { - return archive; - } - - public void setArchive(Archive newArchive) { - archive = newArchive; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ConnectorDirectorySaveStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ConnectorDirectorySaveStrategyImpl.java deleted file mode 100644 index 2eb2eb6b2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ConnectorDirectorySaveStrategyImpl.java +++ /dev/null @@ -1,217 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.URIConverter; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveURIConverterImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; - - -/** - * Implementer that knows how to save an archives contents to a directory on the local file system - */ -public class ConnectorDirectorySaveStrategyImpl extends SaveStrategyImpl implements SaveStrategy { - protected String directoryName; - protected URIConverter uriConverter; - /** Indicates which type of archives should be expanded */ - protected int expansionFlags; - - /** - * DirectoryDumpStrategy constructor comment. - */ - public ConnectorDirectorySaveStrategyImpl() { - super(); - } - - /** - * DirectoryDumpStrategy constructor comment. - */ - public ConnectorDirectorySaveStrategyImpl(String dirName, int flags) { - super(); - setDirectoryName(dirName); - setExpansionFlags(flags); - initialize(); - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - protected SaveStrategy createNestedDirectoryStrategy(Archive anArchive) { - String uri = org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil.getOSUri(getDirectoryName(), "");//$NON-NLS-1$ - return new ConnectorDirectorySaveStrategyImpl(uri, getExpansionFlags()); - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - protected SaveStrategy createNestedSaveStrategy(Archive anArchive) throws IOException { - if (shouldExpand(anArchive)) - return createNestedDirectoryStrategy(anArchive); - return createNestedZipStrategy(anArchive); - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - protected SaveStrategy createNestedZipStrategy(Archive anArchive) throws IOException { - OutputStream out = getUriConverter().createOutputStream(URI.createURI(anArchive.getURI())); - return new ZipStreamSaveStrategyImpl(out); - } - - /** - * Insert the method's description here. Creation date: (11/15/00 2:26:37 PM) - * - * @return java.lang.String - */ - public java.lang.String getDirectoryName() { - return directoryName; - } - - /** - * Insert the method's description here. Creation date: (12/19/00 10:18:21 AM) - * - * @return int - */ - public int getExpansionFlags() { - return expansionFlags; - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - protected java.io.OutputStream getOutputStreamForResource(Resource aResource) throws java.io.IOException { - return getUriConverter().createOutputStream(aResource.getURI()); - } - - /** - * Insert the method's description here. Creation date: (12/08/00 4:50:32 PM) - * - * @return org.eclipse.emf.ecore.resource.URIConverter - */ - public org.eclipse.emf.ecore.resource.URIConverter getUriConverter() { - return uriConverter; - } - - public void initialize() { - ArchiveURIConverterImpl converter = new ArchiveURIConverterImpl(getArchive(), getDirectoryName()); - converter.setOutputFilepath(getDirectoryName()); - setUriConverter(converter); - } - - /** - * @see com.ibm.etools.archive.SaveStrategy - */ - public boolean isDirectory() { - return true; - } - - protected void mkdirs(String directoryPath) { - File aDirectory = new File(getDirectoryName() + File.separatorChar + directoryPath); - aDirectory.mkdirs(); - } - - /** - * @see com.ibm.etools.archive.SaveStrategy - */ - public void save(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest aManifest) throws SaveFailureException { - try { - OutputStream out = getUriConverter().createOutputStream(URI.createURI(J2EEConstants.MANIFEST_URI)); - aManifest.write(out); - out.close(); - } catch (IOException iox) { - throw new SaveFailureException(J2EEConstants.MANIFEST_URI, iox); - } - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - public void save(org.eclipse.jst.j2ee.commonarchivecore.internal.File aFile, InputStream in) throws SaveFailureException { - String entryName = aFile.getURI(); - if (aFile.isDirectoryEntry()) - mkdirs(entryName); - else { - try { - OutputStream out = getUriConverter().createOutputStream(URI.createURI(entryName)); - org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil.copy(in, out); - } catch (IOException iox) { - throw new SaveFailureException(aFile.getURI(), iox); - } - } - } - - protected void saveMofResource(org.eclipse.emf.ecore.resource.Resource aResource, OutputStream os) throws IOException { - super.saveMofResource(aResource, os); - os.close(); - } - - /** - * Insert the method's description here. Creation date: (11/15/00 2:26:37 PM) - * - * @param newDirectoryName - * java.lang.String - */ - public void setDirectoryName(java.lang.String newDirectoryName) { - directoryName = newDirectoryName; - } - - /** - * Insert the method's description here. Creation date: (12/19/00 10:18:21 AM) - * - * @param newExpansionFlags - * int - */ - public void setExpansionFlags(int newExpansionFlags) { - expansionFlags = newExpansionFlags; - } - - /** - * Insert the method's description here. Creation date: (12/08/00 4:50:32 PM) - * - * @param newUriConverter - * org.eclipse.emf.ecore.resource.URIConverter - */ - public void setUriConverter(org.eclipse.emf.ecore.resource.URIConverter newUriConverter) { - uriConverter = newUriConverter; - } - - protected boolean shouldExpand(Archive anArchive) { - - int flag = 0; - - if (anArchive.isWARFile()) - flag = Archive.EXPAND_WAR_FILES; - else if (anArchive.isEARFile()) - flag = Archive.EXPAND_EAR_FILES; - else if (anArchive.isEJBJarFile()) - flag = Archive.EXPAND_EJBJAR_FILES; - else if (anArchive.isRARFile()) - flag = Archive.EXPAND_RAR_FILES; - else if (anArchive.isApplicationClientFile()) - flag = Archive.EXPAND_APPCLIENT_FILES; - else - flag = Archive.EXPAND_ARCHIVES; - - return (getExpansionFlags() & flag) != 0; - - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectoryArchiveLoadStrategy.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectoryArchiveLoadStrategy.java deleted file mode 100644 index b6549c3e8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectoryArchiveLoadStrategy.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -/** - * Specialized load strategy that reads entries in an archive from a directory on the file system - */ -public interface DirectoryArchiveLoadStrategy extends LoadStrategy { - public String getDirectoryUri(); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectoryArchiveLoadStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectoryArchiveLoadStrategyImpl.java deleted file mode 100644 index 6e8668651..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectoryArchiveLoadStrategyImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseConfigRegister; - - -/** - * Load strategy used for reading expanding archives; typically in a running server this would be an - * EAR or WAR, although it can be any Archive - */ -public class DirectoryArchiveLoadStrategyImpl extends DirectoryLoadStrategyImpl { - - - - public DirectoryArchiveLoadStrategyImpl(String aDirectoryUri) { - super(aDirectoryUri); - } - - protected void addDirectory(java.io.File aFile, java.util.List aList) { - addFiles(aFile, aList); - } - - protected java.io.File getDirectoryForList() { - return new java.io.File(getDirectoryUri()); - } - - - - public LooseArchive getLooseArchive() { - if (looseArchive == null && getContainer().isEARFile()) { - String osString = ArchiveUtil.getOSUri(getContainer().getURI()); - setLooseArchive(LooseConfigRegister.singleton().findLooseApplication(osString)); - } - return looseArchive; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectoryLoadStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectoryLoadStrategyImpl.java deleted file mode 100644 index 474788c74..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectoryLoadStrategyImpl.java +++ /dev/null @@ -1,252 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseWARFile; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; - - -/** - * Implementer that knows how to read files from the local file system and treat them as file - * entries in an archive - * - * @see DirectoryArchiveLoadStrategy - */ -public abstract class DirectoryLoadStrategyImpl extends LoadStrategyImpl implements DirectoryArchiveLoadStrategy { - /** - * The root uri from which all relative files entries are loaded; must point to a valid local - * directory - */ - static boolean IS_AIX = "AIX".equals(System.getProperty("os.name")); //$NON-NLS-1$ //$NON-NLS-2$ - protected String directoryUri; - /** - * Used internally; the directory uri with the system dependent file separator replaced by a - * forward slash - */ - protected String directoryUriAsZipString; - protected static char SEPARATOR_CHAR = java.io.File.separatorChar; - - public DirectoryLoadStrategyImpl(String aDirectoryUri) { - super(); - setDirectoryUri(aDirectoryUri); - String normalized = null; - try { - normalized = new File(aDirectoryUri).getCanonicalPath(); - } catch (IOException iox) { - normalized = aDirectoryUri; - } - setDirectoryUriAsZipString(normalized.replace(SEPARATOR_CHAR, '/')); - - } - - protected abstract void addDirectory(java.io.File aFile, List aList); - - protected void addFile(java.io.File aFile, List aList) { - - String uri = getURIFrom(aFile); - if (collectedLooseArchiveFiles.containsKey(uri)) - return; - - org.eclipse.jst.j2ee.commonarchivecore.internal.File cFile = createFile(uri); - cFile.setSize(aFile.length()); - cFile.setLastModified(aFile.lastModified()); - aList.add(cFile); - } - - protected void addFiles(java.io.File aDirectory, List aList) { - - String[] fileNames = aDirectory.list(); - if (fileNames == null) - return; - for (int i = 0; i < fileNames.length; i++) { - String fileName = ArchiveUtil.concatUri(aDirectory.getPath(), fileNames[i], SEPARATOR_CHAR); - if (fileNames[i] == null || (IS_AIX && ".backup".equals(fileNames[i]))) //$NON-NLS-1$ - continue; - java.io.File aFile = new java.io.File(fileName); - if (!aFile.exists()) - continue; - //This could occur on some windows machines, eg C:\pagefile.sys - //throw new RuntimeException("Error scanning directory structure"); - if (aFile.isDirectory() && !isArchive(getURIFrom(aFile))) { - addDirectory(aFile, aList); - } else { - addFile(aFile, aList); - } - } - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - protected boolean primContains(java.lang.String uri) { - return new java.io.File(getFileNameFrom(uri)).exists(); - } - - /** - * @see com.ibm.etools.archive.LoadStrategy - */ - public java.lang.String getAbsolutePath() throws java.io.FileNotFoundException { - return new java.io.File(getDirectoryUri()).getAbsolutePath(); - } - - protected abstract java.io.File getDirectoryForList(); - - public java.lang.String getDirectoryUri() { - return directoryUri; - } - - public java.lang.String getDirectoryUriAsZipString() { - return directoryUriAsZipString; - } - - /** - * Returns an OS filename from a relative uri - */ - // TODO Fix the type casing in v6.0 - protected String getFileNameFrom(String uri) { - LooseArchive aLooseArchive = getLooseArchive(); - if (aLooseArchive != null) { - String result = null; - switch (aLooseArchive.eClass().getClassifierID()) { - case LooseconfigPackage.LOOSE_APPLICATION : - result = getURIFromLooseArchivesIfAvailable(((LooseApplication) aLooseArchive).getLooseArchives(), uri); - break; - case LooseconfigPackage.LOOSE_WAR_FILE : - result = getURIFromLooseArchivesIfAvailable(((LooseWARFile) aLooseArchive).getLooseLibs(), uri); - - break; - } - if (result != null) - return result; - } - String name = uri; - if (SEPARATOR_CHAR != '/') - name = name.replace('/', SEPARATOR_CHAR); - return getDirectoryUri() + SEPARATOR_CHAR + name; - } - - private String getURIFromLooseArchivesIfAvailable(List looseArchives, String uri) { - - for (Iterator iter = looseArchives.iterator(); iter.hasNext();) { - LooseArchive looseArchiveElement = (LooseArchive) iter.next(); - if (uri.equals(looseArchiveElement.getUri())) - return looseArchiveElement.getBinariesPath(); - } - return null; - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - public java.util.List getFiles() { - List list = new ArrayList(); - java.io.File directory = getDirectoryForList(); - addFiles(directory, list); - return list; - } - - public java.util.List getFiles(String subfolderPath) { - List list = new ArrayList(); - java.io.File containerDirectory = getDirectoryForList(); - java.io.File subfolder = new java.io.File(containerDirectory, subfolderPath); - addFiles(subfolder, list); - return list; - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - public java.io.InputStream getInputStream(java.lang.String uri) throws IOException, FileNotFoundException { - return new FileInputStream(getFileNameFrom(uri)); - } - - /** - * Returns a relative uri from the java.io.File, to be used for a file entry; the separator will - * be the zip standard (forward slash ("/")). - */ - - protected String getURIFrom(File aFile) { - String name = ""; //$NON-NLS-1$ - String relative = null; - String root = getDirectoryUriAsZipString(); - try { - name = aFile.getCanonicalPath(); - relative = makeRelative(name, root); - } catch (IOException iox) { - name = null; - } - if (relative == null) { - name = aFile.getAbsolutePath(); - relative = makeRelative(name, root); - } - if (relative == null) { - name = aFile.getPath(); - root = replaceSeparators(getDirectoryUri()); - relative = makeRelative(name, root); - } - return relative; - } - - private String replaceSeparators(String path) { - if (File.separatorChar != '/') - return path.replace(File.separatorChar, '/'); - return path; - } - - private String makeRelative(String fileName, String root) { - if (fileName == null || root == null) - return null; - String name = null; - for (; root.endsWith("/"); root = ArchiveUtil.truncateIgnoreCase(root, "/")); //$NON-NLS-1$ //$NON-NLS-2$ - name = replaceSeparators(fileName); - if (name.startsWith(root)) - name = name.substring(root.length() + 1); - else - name = null; - return name; - } - - /** - * @see com.ibm.etools.archive.LoadStrategy - */ - public boolean isDirectory() { - return true; - } - - /** - * @see com.ibm.etools.archive.LoadStrategy - */ - public boolean isUsing(java.io.File aSystemFile) { - java.io.File dir = new java.io.File(getDirectoryUri()); - return dir.equals(aSystemFile); - } - - public void setDirectoryUri(java.lang.String newDirectoryUri) { - directoryUri = newDirectoryUri; - } - - public void setDirectoryUriAsZipString(java.lang.String newDirectoryUriAsZipString) { - directoryUriAsZipString = newDirectoryUriAsZipString; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectorySaveStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectorySaveStrategyImpl.java deleted file mode 100644 index b404f5d37..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/DirectorySaveStrategyImpl.java +++ /dev/null @@ -1,245 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.URIConverter; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveURIConverterImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.internal.J2EEConstants; - - -/** - * Implementer that knows how to save an archives contents to a directory on the local file system - */ -public class DirectorySaveStrategyImpl extends SaveStrategyImpl implements SaveStrategy { - protected String directoryName; - protected URIConverter uriConverter; - /** Indicates which type of archives should be expanded */ - protected int expansionFlags; - - /** - * DirectoryDumpStrategy constructor comment. - */ - public DirectorySaveStrategyImpl() { - super(); - } - - /** - * DirectoryDumpStrategy constructor comment. - */ - public DirectorySaveStrategyImpl(String dirName, int flags) { - super(); - setDirectoryName(dirName); - setExpansionFlags(flags); - initialize(); - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - protected SaveStrategy createNestedDirectoryStrategy(Archive anArchive) { - String uri = org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil.getOSUri(getDirectoryName(), anArchive.getURI()); - return new DirectorySaveStrategyImpl(uri, getExpansionFlags()); - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - protected SaveStrategy createNestedSaveStrategy(Archive anArchive) throws IOException { - if (shouldExpand(anArchive)) - return createNestedDirectoryStrategy(anArchive); - return createNestedZipStrategy(anArchive); - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - protected SaveStrategy createNestedZipStrategy(Archive anArchive) throws IOException { - OutputStream out = getUriConverter().createOutputStream(URI.createURI(anArchive.getURI())); - return new ZipStreamSaveStrategyImpl(out); - } - - /** - * Insert the method's description here. Creation date: (11/15/00 2:26:37 PM) - * - * @return java.lang.String - */ - public java.lang.String getDirectoryName() { - return directoryName; - } - - /** - * Insert the method's description here. Creation date: (12/19/00 10:18:21 AM) - * - * @return int - */ - public int getExpansionFlags() { - return expansionFlags; - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - protected java.io.OutputStream getOutputStreamForResource(Resource aResource) throws java.io.IOException { - return getUriConverter().createOutputStream(aResource.getURI()); - } - - /** - * Insert the method's description here. Creation date: (12/08/00 4:50:32 PM) - * - * @return org.eclipse.emf.ecore.resource.URIConverter - */ - public org.eclipse.emf.ecore.resource.URIConverter getUriConverter() { - return uriConverter; - } - - public void initialize() { - ArchiveURIConverterImpl converter = new ArchiveURIConverterImpl(getArchive(), getDirectoryName()); - converter.setOutputFilepath(getDirectoryName()); - setUriConverter(converter); - } - - /** - * @see com.ibm.etools.archive.SaveStrategy - */ - public boolean isDirectory() { - return true; - } - - protected void mkdirs(String directoryPath) { - File aDirectory = new File(getDirectoryName() + File.separatorChar + directoryPath); - aDirectory.mkdirs(); - } - - /** - * @see com.ibm.etools.archive.SaveStrategy - */ - public void save(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest aManifest) throws SaveFailureException { - try { - OutputStream out = getUriConverter().createOutputStream(URI.createURI(J2EEConstants.MANIFEST_URI)); - aManifest.write(out); - out.close(); - if (getArchive().getOptions().isReadOnly()) - setTimestampAfterSaving(J2EEConstants.MANIFEST_URI); - } catch (IOException iox) { - throw new SaveFailureException(J2EEConstants.MANIFEST_URI, iox); - } - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - public void save(org.eclipse.jst.j2ee.commonarchivecore.internal.File aFile, InputStream in) throws SaveFailureException { - String entryName = aFile.getURI(); - if (aFile.isDirectoryEntry()) - mkdirs(entryName); - else { - try { - OutputStream out = getUriConverter().createOutputStream(URI.createURI(entryName)); - ArchiveUtil.copy(in, out); - setTimestampAfterSaving(aFile); - } catch (IOException iox) { - throw new SaveFailureException(aFile.getURI(), iox); - } - } - } - - protected void saveMofResource(org.eclipse.emf.ecore.resource.Resource aResource, OutputStream os) throws IOException { - super.saveMofResource(aResource, os); - os.close(); - } - - /** - * Insert the method's description here. Creation date: (11/15/00 2:26:37 PM) - * - * @param newDirectoryName - * java.lang.String - */ - public void setDirectoryName(java.lang.String newDirectoryName) { - directoryName = newDirectoryName; - } - - /** - * Insert the method's description here. Creation date: (12/19/00 10:18:21 AM) - * - * @param newExpansionFlags - * int - */ - public void setExpansionFlags(int newExpansionFlags) { - expansionFlags = newExpansionFlags; - } - - protected void setTimestampAfterSaving(org.eclipse.jst.j2ee.commonarchivecore.internal.File aFile) { - long lastMod = aFile.getLastModified(); - if (lastMod == 0) - return; - String absPath = ArchiveUtil.getOSUri(getDirectoryName(), aFile.getURI()); - File ioFile = new File(absPath); - ioFile.setLastModified(lastMod); - } - - protected void setTimestampAfterSaving(String uri) { - org.eclipse.jst.j2ee.commonarchivecore.internal.File aFile = null; - try { - aFile = getArchive().getFile(uri); - } catch (FileNotFoundException mustBeANewEntry) { - return; - } - setTimestampAfterSaving(aFile); - } - - /** - * Insert the method's description here. Creation date: (12/08/00 4:50:32 PM) - * - * @param newUriConverter - * org.eclipse.emf.ecore.resource.URIConverter - */ - public void setUriConverter(org.eclipse.emf.ecore.resource.URIConverter newUriConverter) { - uriConverter = newUriConverter; - } - - protected boolean shouldExpand(Archive anArchive) { - - int flag = 0; - - if (anArchive.isWARFile()) - flag = Archive.EXPAND_WAR_FILES; - else if (anArchive.isEARFile()) - flag = Archive.EXPAND_EAR_FILES; - else if (anArchive.isRARFile()) - flag = Archive.EXPAND_RAR_FILES; - else if (anArchive.isEJBJarFile()) - flag = Archive.EXPAND_EJBJAR_FILES; - else if (anArchive.isApplicationClientFile()) - flag = Archive.EXPAND_APPCLIENT_FILES; - else - flag = Archive.EXPAND_ARCHIVES; - - return (getExpansionFlags() & flag) != 0; - - } - - protected boolean shouldIterateOver(Archive anArchive) { - return super.shouldIterateOver(anArchive) || shouldExpand(anArchive); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/Ear12ExportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/Ear12ExportStrategyImpl.java deleted file mode 100644 index cb02d1979..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/Ear12ExportStrategyImpl.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - - -/** - * Concrete implementer that knows how to export meta-data for a 1.2 Application - */ -public class Ear12ExportStrategyImpl extends ExportStrategyImpl { - /** - * Ear12ExportStrategy constructor comment. - */ - public Ear12ExportStrategyImpl() { - super(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/Ear12ImportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/Ear12ImportStrategyImpl.java deleted file mode 100644 index 441d56c32..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/Ear12ImportStrategyImpl.java +++ /dev/null @@ -1,91 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminatorImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; - - -/** - * Concrete implementer that knows how to import meta-data for a 1.2 Application Client - */ -public class Ear12ImportStrategyImpl extends XmlBasedImportStrategyImpl { - - public static class Discriminator extends ArchiveTypeDiscriminatorImpl { - public Archive createConvertedArchive() { - return getArchiveFactory().createEARFile(); - } - - public boolean canImport(Archive anArchive) { - return anArchive.containsFile(J2EEConstants.APPLICATION_DD_URI); - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return new Ear12ImportStrategyImpl(); - } - - public String getUnableToOpenMessage() { - return getXmlDDMessage(CommonArchiveResourceHandler.EAR_File, J2EEConstants.APPLICATION_DD_URI); // = "EAR File" - } - } - - protected static Discriminator discriminator; - - /** - * Ear12ImportStrategy constructor comment. - */ - public Ear12ImportStrategyImpl() { - super(); - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return getDiscriminator().createImportStrategy(old, newArchive); - } - - public static ArchiveTypeDiscriminator getDiscriminator() { - if (discriminator == null) { - discriminator = new Discriminator(); - } - return discriminator; - } - - public EARFile getEARFile() { - return (EARFile) getArchive(); - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public void importMetaData() throws Exception { - loadDeploymentDescriptor(); - } - - public void loadDeploymentDescriptor() throws Exception { - Application appl = null; - - appl = (Application) primLoadDeploymentDescriptor(); - - getEARFile().setDeploymentDescriptor(appl); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/EjbJar11ExportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/EjbJar11ExportStrategyImpl.java deleted file mode 100644 index cc944cfc5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/EjbJar11ExportStrategyImpl.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - - -/** - * Concrete implementer that knows how to export meta-data for a 1.1 Ejb Jar - */ -public class EjbJar11ExportStrategyImpl extends ExportStrategyImpl { - /** - * EjbJar11ExportStrategy constructor comment. - */ - public EjbJar11ExportStrategyImpl() { - super(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/EjbJar11ImportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/EjbJar11ImportStrategyImpl.java deleted file mode 100644 index 5da26c119..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/EjbJar11ImportStrategyImpl.java +++ /dev/null @@ -1,90 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBJarFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminatorImpl; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.internal.J2EEConstants; - - -/** - * Concrete implementer that knows how to import meta-data for a 1.1 Ejb Jar - */ -public class EjbJar11ImportStrategyImpl extends XmlBasedImportStrategyImpl { - - public static class Discriminator extends ArchiveTypeDiscriminatorImpl { - public boolean canImport(Archive anArchive) { - return anArchive.containsFile(J2EEConstants.EJBJAR_DD_URI); - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return new EjbJar11ImportStrategyImpl(); - } - - public String getUnableToOpenMessage() { - return getXmlDDMessage(CommonArchiveResourceHandler.EJB_Jar_File, J2EEConstants.EJBJAR_DD_URI); // = "EJB Jar File" - } - - public Archive createConvertedArchive() { - return getArchiveFactory().createEJBJarFile(); - } - } - - protected static Discriminator discriminator; - - /** - * EjbJar11ImportStrategy constructor comment. - */ - public EjbJar11ImportStrategyImpl() { - super(); - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return getDiscriminator().createImportStrategy(old, newArchive); - } - - public static ArchiveTypeDiscriminator getDiscriminator() { - if (discriminator == null) { - discriminator = new Discriminator(); - } - return discriminator; - } - - public EJBJarFile getEJBJarFile() { - return (EJBJarFile) getArchive(); - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public void importMetaData() throws Exception { - loadDeploymentDescriptor(); - } - - public void loadDeploymentDescriptor() throws Exception { - EJBJar ejbJar = null; - - ejbJar = (EJBJar) primLoadDeploymentDescriptor(); - getEJBJarFile().setDeploymentDescriptor(ejbJar); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ExportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ExportStrategyImpl.java deleted file mode 100644 index fd875ea3c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ExportStrategyImpl.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.util.HashSet; -import java.util.Set; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ExportStrategy; - - -/** - * Abstract implementer off which other export strategies can subclass - * - * @see ExportStrategy - */ -public abstract class ExportStrategyImpl extends ArchiveStrategyImpl implements ExportStrategy { - /** The list of files already saved by this strategy during invokation of preSave() */ - protected Set savedFiles; - - public ExportStrategyImpl() { - super(); - } - - public java.util.Set getSavedFiles() { - if (savedFiles == null) - savedFiles = new HashSet(); - return savedFiles; - } - - public boolean hasSaved(String uri) { - return savedFiles != null && getSavedFiles().contains(uri); - } - - /** - * The default is to do nothing; subclasses may wish to override; typical operations would be to - * add extra elements to the outgoing archive, using SaveStrategy#save(File, - * java.io.InputStream) - */ - public void preSave(SaveStrategy aSaveStrategy) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException { - //Default - } - - /** - * The file with the given uri has just been saved; add this to the list of saved files - */ - protected void saved(String uri) { - getSavedFiles().add(uri); - } - - public void setSavedFiles(java.util.Set newSavedFiles) { - savedFiles = newSavedFiles; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ImportStrategy.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ImportStrategy.java deleted file mode 100644 index b1d85cc32..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ImportStrategy.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; - -/** - * ImportStrategy knows how to interpret the information in an archive, usually in deployment - * descriptors, to build up a model of the contained objects. - */ -public interface ImportStrategy extends ArchiveStrategy { - /** - * Helper method used for copying archives; create a new instance of this kind of strategy - */ - public ImportStrategy createImportStrategy(Archive old, Archive newArchive); - - /** - * Do whatever is necessary to bring in metadata from the archive and set the deployment - * descriptors to the standard form that the apis can recognize - */ - public void importMetaData() throws Exception; - - public boolean isEJB10(); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ImportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ImportStrategyImpl.java deleted file mode 100644 index 17461739a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ImportStrategyImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveFactoryRegistry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchiveFactory; - - -/** - * Abstract implementation off which other import strategies can subclass - * - * @see ImportStrategy - */ -public abstract class ImportStrategyImpl extends ArchiveStrategyImpl implements ImportStrategy { - /** - * ArchiveImportStrategy constructor comment. - */ - public ImportStrategyImpl() { - super(); - } - - public static CommonarchiveFactory getArchiveFactory() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory(); - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public boolean isEJB10() { - return false; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/LoadStrategy.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/LoadStrategy.java deleted file mode 100644 index 015dcb192..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/LoadStrategy.java +++ /dev/null @@ -1,150 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIterator; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; - - -/** - * LoadStrategy knows how to load or read the contents of a container. This provides a delegation - * model for reading in the contents of an archive file. Clients can implement this interface, and - * "plug in" to an instance of an archive. Examples might include reading from a zip file, from an - * input stream, from the local file system, or from a workbench. - */ -public interface LoadStrategy { - public void addOrReplaceMofResource(Resource aResource); - - /** - * Release any resources being held by this object - */ - public void close(); - - public boolean contains(String uri); - - /** - * Return the absolute path of this strategy, if it exists; cases where it might not exist is if - * the load strategy is "virtual", e.g., a jar within a jar - */ - public String getAbsolutePath() throws FileNotFoundException; - - /** - * Return the absolute path of the root from which meta resources get loaded - */ - public String getResourcesPath() throws FileNotFoundException; - - /** - * Return the absolute path of the root from which classes and properties are loaded - */ - public String getBinariesPath() throws FileNotFoundException; - - - public Container getContainer(); - - public ResourceSet getResourceSet(); - - public ResourceSet primGetResourceSet(); - - /** - * Used internally; clients should not need to call - */ - public FileIterator getFileIterator() throws IOException; - - /** - * Used by an archive to obtain a list of it's files, which is usually deferred until the first - * time it is invoked, as an optimization. - */ - public List collectFiles(); - - /** - * Returns an input stream on an entry named by the parameter - */ - public InputStream getInputStream(String uri) throws IOException, FileNotFoundException; - - /** - * Returns an input stream on an entry named by the parameter, from the "resources path" of the - * loose archive if it exists, Otherwise the default behavior is the same as - * {@link #getInputStream(String)} - */ - public InputStream getResourceInputStream(String uri) throws IOException; - - public Collection getLoadedMofResources(); - - public Resource getExistingMofResource(String uri); - - public Resource getMofResource(String uri) throws FileNotFoundException, ResourceLoadException; - - /** - * An archive uses a custom class loader for java reflection within a mof resourceSet; - * implementers of LoadStrategy may supply a mof resourceSet for which this class loader is not - * necessary, or could even cause breakage; this test gives the strategy the chance to "opt out" - * of the class loading game - */ - public boolean isClassLoaderNeeded(); - - /** - * Returns whether this archive is reading files from a directory on the file system - */ - public boolean isDirectory(); - - public boolean isMofResourceLoaded(String uri); - - /** - * Returns whether resources can be read by this strategy - */ - public boolean isOpen(); - - /** - * Is the parameter in use by this strategy? Needed for when the archive is saved to the same - * location from which it was read - */ - public boolean isUsing(java.io.File aSystemFile); - - /** - * Used for optimizations, where the contents of the archive have not been changed; instead of - * iterating each file in the archive, we may be able to bulk save the whole thing - */ - public boolean requiresIterationOnSave(); - - public Resource makeMofResource(String uri, EList extent); - - public void setContainer(Container aContainer); - - public void setResourceSet(ResourceSet aResourceSet); - - public LooseArchive getLooseArchive(); - - public void setLooseArchive(LooseArchive aLooseArchive); - - public java.util.List getFiles(String subfolderPath); - - public boolean isReadOnly(); - - public void setReadOnly(boolean readOnly); - - public int getRendererType(); - - public void setRendererType(int i); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/LoadStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/LoadStrategyImpl.java deleted file mode 100644 index b810eb8c9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/LoadStrategyImpl.java +++ /dev/null @@ -1,578 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.common.util.WrappedException; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.resource.URIConverter; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.jem.internal.java.adapters.jdk.JavaJDKAdapterFactory; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResouceFactorySaxRegistry; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryDomRegistry; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveFactoryRegistry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchiveFactory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveRuntimeException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveURIConverterImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIterator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIteratorImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseConfigRegister; -import org.eclipse.wst.common.internal.emf.utilities.ExtendedEcoreUtil; - -/** - * Abstact implementer off which and load strategy may subclass - * - * @see LoadStrategy - */ -public abstract class LoadStrategyImpl extends AdapterImpl implements LoadStrategy { - - /** flag to indicate whether underlying resources have been closed */ - protected boolean isOpen = true; - - /** The archive or directory to which this strategy belongs */ - protected Container container; - - /** ResourceSet used for mof/xmi resources */ - protected ResourceSet resourceSet; - - protected LooseArchive looseArchive; - - protected Map collectedLooseArchiveFiles = Collections.EMPTY_MAP; - - protected boolean readOnly = false; - - private int rendererType; - - public LoadStrategyImpl() { - super(); - } - - /** - * @see Archive - */ - public void addOrReplaceMofResource(Resource aResource) { - Resource existingResource = getResourceSet().getResource(aResource.getURI(), false); - if (existingResource != null) - getResourceSet().getResources().remove(existingResource); - getResourceSet().getResources().add(aResource); - } - - protected void updateModificationTracking(Resource res) { - boolean trackingMods = res.isTrackingModification(); - boolean isReadOnly = (container != null) ? ((Archive) container).getOptions().isReadOnly() : false; - boolean shouldTrackMods = !(isReadOnly || ArchiveUtil.isJavaResource(res) || ArchiveUtil.isRegisteredURIMapping(res)); - if (shouldTrackMods && !trackingMods) - res.setTrackingModification(true); - } - - /** - * Release any resources being held by this object and set the state to closed. Subclasses - * should override as necessary - */ - public void close() { - setIsOpen(false); - if(resourceSet != null && resourceSet.eAdapters().contains(this)) - resourceSet.eAdapters().remove(this); - - } - - protected abstract boolean primContains(String uri); - - /** - * @see LoadStrategy - */ - public boolean contains(String uri) { - if (containsUsingLooseArchive(uri)) - return true; - return primContains(uri); - } - - /* - * Try the resources path first; if that false, see if we have a child loose archive with the - * uri - */ - protected boolean containsUsingLooseArchive(String uri) { - if (getLooseArchive() == null) - return false; - - LooseArchive loose = getLooseArchive(); - if (loose.getResourcesPath() == null) - return false; - - java.io.File aFile = new java.io.File(loose.getResourcesPath(), uri); - if (aFile.exists()) - return true; - - return LooseConfigRegister.singleton().findFirstLooseChild(uri, loose) != null; - } - - protected File createDirectory(String uri){ - File aFile = null; - aFile = getArchiveFactory().createFile(); - aFile.setDirectoryEntry(true); - aFile.setURI(uri); - aFile.setOriginalURI(uri); - aFile.setLoadingContainer(getContainer()); - return aFile; - } - - protected File createFile(String uri) { - File aFile = null; - if (isArchive(uri)) - aFile = openNestedArchive(uri); - if (aFile == null) { - aFile = getArchiveFactory().createFile(); - aFile.setURI(uri); - aFile.setOriginalURI(uri); - } - aFile.setLoadingContainer(getContainer()); - return aFile; - } - - protected void finalize() throws Throwable { - close(); - } - - /** - * @see LoadStrategy - */ - public java.lang.String getAbsolutePath() throws FileNotFoundException { - throw new FileNotFoundException(CommonArchiveResourceHandler.Absolute_path_unknown_EXC_); // = "Absolute path unknown" - } - - public String getResourcesPath() throws FileNotFoundException { - return getLooseArchive() == null ? getAbsolutePath() : getLooseArchive().getResourcesPath(); - } - - protected String primGetResourcesPath() { - return getLooseArchive() == null ? null : getLooseArchive().getResourcesPath(); - } - - public String getBinariesPath() throws FileNotFoundException { - return getLooseArchive() == null ? getAbsolutePath() : getLooseArchive().getBinariesPath(); - } - - public CommonarchiveFactory getArchiveFactory() { - return CommonArchiveFactoryRegistry.INSTANCE.getCommonArchiveFactory(); - } - - public Container getContainer() { - return container; - } - - public ResourceSet primGetResourceSet() { - return resourceSet; - } - - /** - * - * Should we iterate all the files in the archive as part of saving, or can we treat the archive - * as one big file during save? The following rules apply, iterating the files if: 1) If the - * archive is a module file and it is NOT read-only 2) If the load strategy is a directory 3) If - * the archive is a utility JAR, and the files list has never been initialized, or if the - * loading containers for all the files are the same AND not directories, AND the - * {@link ArchiveOptions#isSaveLibrariesAsFiles()}of the archive is true. - * - * @see com.ibm.etools.archive.LoadStrategy#requiresIterationOnSave() - */ - public boolean requiresIterationOnSave() { - if (!getContainer().isArchive() || isDirectory()) - return true; - Archive anArchive = (Archive) getContainer(); - //We should leave utility JARs intact, unless were told not to - //The manifest may have been signed - if (anArchive.isModuleFile()) - return !anArchive.getOptions().isReadOnly(); - else if (anArchive.getOptions().isSaveLibrariesAsFiles() && anArchive.getLoadingContainer() != null) { - if (anArchive.isIndexed()) { - List files = anArchive.getFiles(); - File aFile = null; - Container firstContainer = null; - Container lContainer = null; - for (int i = 0; i < files.size(); i++) { - aFile = (File) files.get(i); - if (i == 0) { - firstContainer = aFile.getLoadingContainer(); - if (firstContainer.getLoadStrategy().isDirectory()) - return true; - } - lContainer = aFile.getLoadingContainer(); - if (lContainer != firstContainer) - return true; - } - } - return false; - } else - return true; - } - - public ResourceSet getResourceSet() { - if (resourceSet == null) { - initializeResourceSet(); - resourceSet.eAdapters().add(this); - } - return resourceSet; - } - - /** - * @see org.eclipse.emf.common.notify.impl.AdapterImpl#notifyChanged(Notification) - */ - public void notifyChanged(Notification msg) { - switch (msg.getEventType()) { - case Notification.ADD : - updateModificationTracking((Resource) msg.getNewValue()); - break; - case Notification.ADD_MANY : - List list = (List) msg.getNewValue(); - for (int i = 0; i < list.size(); i++) { - updateModificationTracking((Resource) list.get(i)); - } - default : - break; - } - } - - /** - * Used internally; clients should not need to call - */ - public FileIterator getFileIterator() throws IOException { - return new FileIteratorImpl(getContainer().getFiles()); - } - - /** - * @see com.ibm.etools.archive.LoadStrategy - */ - public abstract List getFiles(); - - public List collectFiles() { - //The loose archives need to be read first - collectFilesFromLooseArchives(); - List files = getFiles(); - files.addAll(collectedLooseArchiveFiles.values()); - collectedLooseArchiveFiles = Collections.EMPTY_MAP; - return files; - } - - protected void collectFilesFromLooseArchives() { - if (!canHaveLooseChildren() || getLooseArchive() == null) { - collectedLooseArchiveFiles = Collections.EMPTY_MAP; - return; - } - - collectedLooseArchiveFiles = new HashMap(); - List children = LooseConfigRegister.singleton().getLooseChildren(getLooseArchive()); - - for (int i = 0; i < children.size(); i++) { - LooseArchive loose = (LooseArchive) children.get(i); - String uri = loose.getUri(); - if (!collectedLooseArchiveFiles.containsKey(uri)) { - Archive archive = openNestedArchive(loose); - if (archive != null) { - collectedLooseArchiveFiles.put(uri, archive); - archive.setLoadingContainer(getContainer()); - } - } - } - } - - /** - * @see com.ibm.etools.archive.LoadStrategy - */ - public abstract InputStream getInputStream(String uri) throws IOException, FileNotFoundException; - - public InputStream getResourceInputStream(String uri) throws IOException { - return getResourceSet().getURIConverter().createInputStream(URI.createURI(uri)); - } - - /** - * @see com.ibm.etools.commonarchive.Archive returns an immutable collection of the loaded - * resources in the resource set - */ - public Collection getLoadedMofResources() { - Collection resources = getResourceSet().getResources(); - if (resources.isEmpty()) - return Collections.EMPTY_LIST; - - List result = new ArrayList(resources.size()); - Iterator iter = resources.iterator(); - while (iter.hasNext()) { - Resource res = (Resource) iter.next(); - if (res.isLoaded()) - result.add(res); - } - return result; - } - - /** - * @see com.ibm.etools.commonarchive.Archive - */ - public Resource getMofResource(String uri) throws FileNotFoundException, ResourceLoadException { - try { - return getResourceSet().getResource(URI.createURI(uri), true); - } catch (WrappedException wrapEx) { - if ((ExtendedEcoreUtil.getFileNotFoundDetector().isFileNotFound(wrapEx))) { - FileNotFoundException fileNotFoundEx = ExtendedEcoreUtil.getInnerFileNotFoundException(wrapEx); - throw fileNotFoundEx; - } - throwResourceLoadException(uri, wrapEx); - return null; //never happens - compiler expects it though - } - } - - protected void initializeResourceSet() { - //Not the best design here, because a load strategy should only know - // about - //container; however, this method will only get called when the - // container - //is an archive - Archive archive = (Archive) getContainer(); - URIConverter converter = new ArchiveURIConverterImpl(archive, primGetResourcesPath()); - ResourceSet rs = new ResourceSetImpl(); - Resource.Factory.Registry reg = createResourceFactoryRegistry(); - rs.setResourceFactoryRegistry(reg); - setResourceSet(rs); - rs.setURIConverter(converter); - if (archive.shouldUseJavaReflection()) { - rs.getAdapterFactories().add(new JavaJDKAdapterFactory()); - archive.initializeClassLoader(); - } - } - - protected Resource.Factory.Registry createResourceFactoryRegistry() { - if (isReadOnly()) - return new J2EEResouceFactorySaxRegistry(); - - Resource.Factory.Registry registry = null; - switch (getRendererType()) { - case ArchiveOptions.SAX : - registry = new J2EEResouceFactorySaxRegistry(); - break; - case ArchiveOptions.DOM : - registry = new J2EEResourceFactoryDomRegistry(); - break; - case ArchiveOptions.DEFAULT : - default : - registry = new J2EEResourceFactoryRegistry(); - break; - } - return registry; - } - - /** - * @return - */ - public int getRendererType() { - return rendererType; - } - - protected boolean isArchive(String uri) { - return ((Archive) getContainer()).isNestedArchive(uri); - } - - /** - * An archive uses a custom class loader for java reflection within a mof resourceSet; - * implementers of LoadStrategy may supply a mof resourceSet for which this class loader is not - * necessary, or could even cause breakage; this test gives the strategy the chance to "opt out" - * of the class loading game - */ - public boolean isClassLoaderNeeded() { - return true; - } - - /** - * @see com.ibm.etools.archive.LoadStrategy The default is false - */ - public boolean isDirectory() { - return false; - } - - /** - * @see com.ibm.etools.archive.LoadStrategy#getExistingMofResource(String) - */ - public Resource getExistingMofResource(String uri) { - return getResourceSet().getResource(URI.createURI(uri), false); - } - - public boolean isMofResourceLoaded(java.lang.String uri) { - Resource res = getExistingMofResource(uri); - return res != null && res.isLoaded(); - } - - public boolean isOpen() { - return isOpen; - } - - /** - * @see com.ibm.etools.archive.LoadStrategy return false by default; subclasses should override - * if necessary - */ - public boolean isUsing(java.io.File aSystemFile) { - return false; - } - - public Resource makeMofResource(String uri, EList extent) { - Resource existing = getExistingMofResource(uri); - if (existing != null) - return existing; - return getResourceSet().createResource(URI.createURI(uri)); - } - - protected Archive openNestedArchive(String uri) { - - try { - return ((Archive) getContainer()).openNestedArchive(uri); - } catch (OpenFailureException e) { - //Caught an exception trying to open the nested archive - Logger.getLogger().logError(e); - return null; - } - - } - - protected Archive openNestedArchive(LooseArchive loose) { - - try { - return ((Archive) getContainer()).openNestedArchive(loose); - } catch (OpenFailureException e) { - //Caught an exception trying to open the nested archive - Logger.getLogger().logError(e); - return null; - } - - } - - public void setContainer(Container newContainer) { - container = newContainer; - } - - public void setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet newResourceSet) { - // fixes problem in reopen - if (resourceSet != newResourceSet) { - - // remove adapter from old resource set - if (resourceSet != null) - resourceSet.eAdapters().remove(this); - - // add as adapter to new resource set if necessary - if (newResourceSet != null && !newResourceSet.eAdapters().contains(this)) - newResourceSet.eAdapters().add(this); - - resourceSet = newResourceSet; - } // no need to update if old set equals new set (by reference) - } - - protected void setIsOpen(boolean newIsOpen) { - isOpen = newIsOpen; - } - - protected void throwResourceLoadException(String resourceUri, Exception ex) throws ResourceLoadException { - throw new ResourceLoadException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.load_resource_EXC_, (new Object[]{resourceUri, getContainer().getURI()})), ex); // = "Could not load resource "{0}" in archive "{1}"" - } - - /** - * Gets the looseArchive. - * - * @return Returns a LooseArchive - */ - public LooseArchive getLooseArchive() { - return looseArchive; - } - - /** - * Sets the looseArchive. - * - * @param looseArchive - * The looseArchive to set - */ - public void setLooseArchive(LooseArchive looseArchive) { - this.looseArchive = looseArchive; - checkLoosePathsValid(); - } - - /* - * Added to support WAS runtime; throw an ArchiveRuntimeException if one of the paths in the - * loose config does not point to an existing file - */ - protected void checkLoosePathsValid() { - if (looseArchive == null) - return; - - String path = looseArchive.getBinariesPath(); - if (path != null) { - java.io.File ioFile = new java.io.File(path); - if (!ioFile.exists()) - throw new ArchiveRuntimeException("Invalid binaries path: " + path); //$NON-NLS-1$ - } - path = looseArchive.getResourcesPath(); - if (path != null) { - java.io.File ioFile = new java.io.File(path); - if (!ioFile.exists()) - throw new ArchiveRuntimeException("Invalid resources path: " + path); //$NON-NLS-1$ - } - } - - protected boolean canHaveLooseChildren() { - return container.isEARFile() || container.isWARFile(); - } - - public boolean isReadOnly() { - return readOnly; - } - - public void setReadOnly(boolean readOnly) { - this.readOnly = readOnly; - } - - /** - * @param rendererType - * The rendererType to set. - */ - public void setRendererType(int rendererType) { - this.rendererType = rendererType; - } - - public java.util.List getFiles(String subfolderPath) { - List subset = new ArrayList(); - List theFiles = getFiles(); - for (int i = 0; i < theFiles.size(); i++) { - File aFile = (File)theFiles.get(i); - if (aFile.getURI().startsWith(subfolderPath)) - subset.add(aFile); - } - return subset; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/NestedArchiveLoadStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/NestedArchiveLoadStrategyImpl.java deleted file mode 100644 index def55bcd4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/NestedArchiveLoadStrategyImpl.java +++ /dev/null @@ -1,260 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.zip.ZipEntry; -import java.util.zip.ZipInputStream; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NestedJarException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIterator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.NestedArchiveIterator; - - -/** - * Load strategy used as a last resort to read entries from jars inside of jars. It is a last resort - * because of the poor perfomance involved, as the contents of the zip entries are not cached, and - * sequential scan searches will cause the zip stream to be inflated on each search. Whenever - * possible, - * - * @link {TempFileLoadStrategy} should be used. - */ -public class NestedArchiveLoadStrategyImpl extends LoadStrategyImpl { - /** - * Index to improve lookup performance - not used if in Runtime to reduce footprint - */ - protected Map urisToPositions; - protected LoadStrategy parent; - - /** - * NestedArchiveLoadStrategyImpl constructor comment. - */ - public NestedArchiveLoadStrategyImpl(LoadStrategy parentStrategy) { - super(); - setParent(parentStrategy); - } - - protected void buildIndex() { - Map map = new HashMap(); - try { - ZipInputStream zis = getZipInputStream(); - ZipEntry entry = null; - long position = 0; - while ((entry = zis.getNextEntry()) != null) { - position++; - map.put(entry.getName(), new Long(position)); - } - } catch (IOException iox) { - throwNestedJarException(iox); - } - setUrisToPositions(map); - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - protected boolean primContains(String uri) { - if (usingIndex()) - return containsUsingIndex(uri); - return containsSequentially(uri); - } - - - protected boolean containsSequentially(String uri) { - ZipInputStream zis = null; - try { - zis = getZipInputStreamSkippedTo(uri); - return zis != null; - } catch (IOException ex) { - return false; - } finally { - if (zis != null) { - try { - zis.close(); - } catch (IOException ioe) { - //Ignore - } - } - } - } - - - protected boolean containsUsingIndex(String uri) { - return getUrisToPositions().containsKey(uri); - } - - - /** - * Used internally; clients should not need to call - */ - public FileIterator getFileIterator() throws IOException { - if (((Archive) getContainer()).getOptions().isReadOnly()) - return new NestedArchiveIterator(getContainer().getFiles(), getZipInputStream()); - return super.getFileIterator(); - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - public java.util.List getFiles() { - List list = new ArrayList(500); - ZipInputStream zis = null; - try { - zis = getZipInputStream(); - ZipEntry entry = zis.getNextEntry(); - while (entry != null) { - if (!entry.isDirectory()) { - File aFile = createFile(entry.getName()); - aFile.setSize(entry.getSize()); - aFile.setLastModified(entry.getTime()); - list.add(aFile); - } - entry = zis.getNextEntry(); - } - } catch (IOException iox) { - throwNestedJarException(iox); - } finally { - if (zis != null) { - try { - zis.close(); - } catch (IOException iox) { - //Ignore - } - } - } - return list; - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - public java.io.InputStream getInputStream(String uri) throws IOException, FileNotFoundException { - if (usingIndex()) - return getInputStreamUsingIndex(uri); - return getInputStreamSequentially(uri); - } - - protected java.io.InputStream getInputStreamSequentially(String uri) throws IOException, FileNotFoundException { - return new java.io.BufferedInputStream(getZipInputStreamSkippedTo(uri)); - } - - protected java.io.InputStream getInputStreamUsingIndex(String uri) throws IOException, FileNotFoundException { - Long position = (Long) getUrisToPositions().get(uri); - if (position == null) - throw new FileNotFoundException(); - ZipInputStream zis = getZipInputStream(); - long pos = position.longValue(); - for (long i = 0; i < pos; i++) { - zis.getNextEntry(); - } - return new java.io.BufferedInputStream(zis); - } - - /** - * Insert the method's description here. Creation date: (12/07/00 6:12:36 PM) - * - * @return com.ibm.etools.archive.LoadStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy getParent() { - return parent; - } - - /** - * Insert the method's description here. Creation date: (12/07/00 4:38:21 PM) - * - * @return java.util.Map - */ - public java.util.Map getUrisToPositions() { - if (usingIndex() && urisToPositions == null) - buildIndex(); - return urisToPositions; - } - - protected ZipInputStream getZipInputStream() throws IOException, FileNotFoundException { - String uri = getContainer().getURI(); - InputStream in = getParent().getInputStream(uri); - return new ZipInputStream(in); - } - - protected ZipInputStream getZipInputStreamSkippedTo(String uri) throws IOException, FileNotFoundException { - if (uri == null) - throw new NullPointerException(CommonArchiveResourceHandler.Null_uri_EXC_); // = "Null uri" - ZipInputStream zis = null; - ZipEntry entry = null; - try { - zis = getZipInputStream(); - entry = zis.getNextEntry(); - while (entry != null) { - if (uri.equals(entry.getName())) - return zis; - entry = zis.getNextEntry(); - } - } finally { - // entry was not found so close the stream - if (entry == null && zis != null) { - try { - zis.close(); - } catch (IOException ioe) { - //Ignore - } - } - } - throw new FileNotFoundException(uri); - } - - /** - * Insert the method's description here. Creation date: (12/07/00 6:12:36 PM) - * - * @param newParent - * com.ibm.etools.archive.LoadStrategy - */ - public void setParent(org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy newParent) { - parent = newParent; - } - - /** - * Insert the method's description here. Creation date: (12/07/00 4:38:21 PM) - * - * @param newUrisToPositions - * java.util.Map - */ - public void setUrisToPositions(java.util.Map newUrisToPositions) { - urisToPositions = newUrisToPositions; - } - - /** - * An exception was caught reading the nested jar; throws a runtime exception - */ - protected void throwNestedJarException(Exception caughtException) { - throw new NestedJarException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.nested_jar_EXC_, (new Object[]{getContainer().getURI(), getParent().getContainer().getURI()})), caughtException);// = "An error occurred reading {0} from {1}" - } - - /** - * Don't use the index in the runtime environment; reduce footprint - */ - public boolean usingIndex() { - return false; - //return !com.ibm.etools.archive.util.ArchiveUtil.isRuntime(); - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/NullLoadStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/NullLoadStrategyImpl.java deleted file mode 100644 index 5ef61c3f4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/NullLoadStrategyImpl.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.util.ArrayList; -import java.util.List; - -/** - * No-op implementer used for new archive instances, which have their contents added and copied from - * other sources - */ -public class NullLoadStrategyImpl extends LoadStrategyImpl { - protected static List emptyList = new ArrayList(0); - - /** - * NullLoadStrategy constructor comment. - */ - public NullLoadStrategyImpl() { - super(); - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - public boolean contains(String uri) { - return false; - } - - protected boolean primContains(String uri) { - return false; - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - public java.util.List getFiles() { - return emptyList; - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - public java.io.InputStream getInputStream(String uri) throws java.io.IOException, java.io.FileNotFoundException { - throw new java.io.FileNotFoundException(uri); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/RarExportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/RarExportStrategyImpl.java deleted file mode 100644 index 87e77e3b1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/RarExportStrategyImpl.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - - -/** - * Concrete implementer that knows how to export meta-data for a J2C Resource Adapter - */ -public class RarExportStrategyImpl extends ExportStrategyImpl { - /** - * RarExportStrategy constructor comment. - */ - public RarExportStrategyImpl() { - super(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/RarImportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/RarImportStrategyImpl.java deleted file mode 100644 index 5a8dc180f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/RarImportStrategyImpl.java +++ /dev/null @@ -1,93 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminatorImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.jst.j2ee.jca.Connector; - - -/** - * Concrete implementer that knows how to import meta-data for a J2C Resource Adapter - */ -public class RarImportStrategyImpl extends XmlBasedImportStrategyImpl { - - public static class Discriminator extends ArchiveTypeDiscriminatorImpl { - public boolean canImport(Archive anArchive) { - return anArchive.containsFile(J2EEConstants.RAR_DD_URI); - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return new RarImportStrategyImpl(); - } - - public String getUnableToOpenMessage() { - return getXmlDDMessage(CommonArchiveResourceHandler.RAR_File, J2EEConstants.RAR_DD_URI); // = "RAR File" - } - - public Archive createConvertedArchive() { - return getArchiveFactory().createRARFile(); - } - } - - protected static Discriminator discriminator; - - /** - * RarImportStrategy constructor comment. - */ - public RarImportStrategyImpl() { - super(); - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return getDiscriminator().createImportStrategy(old, newArchive); - } - - public static ArchiveTypeDiscriminator getDiscriminator() { - if (discriminator == null) { - discriminator = new Discriminator(); - // Connectors use their own special entity resolver for now... - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.CONNECTOR_SYSTEMID_1_0, "connector_1_0.dtd"); //$NON-NLS-1$ - } - return discriminator; - } - - public RARFile getRARFile() { - return (RARFile) getArchive(); - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public void importMetaData() throws Exception { - loadDeploymentDescriptor(); - } - - public void loadDeploymentDescriptor() throws Exception { - Connector connector = null; - - connector = (Connector) primLoadDeploymentDescriptor(); - getRARFile().setDeploymentDescriptor(connector); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ReadOnlyDirectoryLoadStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ReadOnlyDirectoryLoadStrategyImpl.java deleted file mode 100644 index cf08edb88..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ReadOnlyDirectoryLoadStrategyImpl.java +++ /dev/null @@ -1,113 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.ReadOnlyDirectory; - -public class ReadOnlyDirectoryLoadStrategyImpl extends DirectoryLoadStrategyImpl { - protected java.io.File subdirectory; - - /** - * ReadOnlyDirectoryLoadStrategy constructor comment. - */ - public ReadOnlyDirectoryLoadStrategyImpl(String aDirectoryUri) { - super(aDirectoryUri); - } - - /** - * ReadOnlyDirectoryLoadStrategy constructor comment. - */ - public ReadOnlyDirectoryLoadStrategyImpl(String rootDirectoryUri, java.io.File subdir) { - super(rootDirectoryUri); - setSubdirectory(subdir); - } - - /** - * addDirectory method comment. - */ - protected void addDirectory(java.io.File aFile, java.util.List aList) { - ReadOnlyDirectory dir = getArchiveFactory().createReadOnlyDirectory(); - dir.setLastModified(aFile.lastModified()); - dir.setURI(getURIFrom(aFile)); - dir.setLoadingContainer(getContainer()); - dir.setLoadStrategy(new ReadOnlyDirectoryLoadStrategyImpl(getDirectoryUri(), aFile)); - aList.add(dir); - - } - - public boolean contains(java.lang.String uri) { - return super.contains(uri) && (getSubdirectory() == null || subdirectoryContains(uri)); - } - - /** - * @see com.ibm.etools.archive.LoadStrategy - */ - public java.lang.String getAbsolutePath() throws java.io.FileNotFoundException { - java.io.File subdir = getSubdirectory(); - if (subdir == null) { - return super.getAbsolutePath(); - } - return subdir.getAbsolutePath(); - } - - /** - * getDirectoryForList method comment. - */ - protected java.io.File getDirectoryForList() { - if (getSubdirectory() != null) - return getSubdirectory(); - return new java.io.File(getDirectoryUri()); - } - - /** - * Insert the method's description here. Creation date: (01/08/01 1:10:47 PM) - * - * @return java.io.File - */ - protected java.io.File getSubdirectory() { - return subdirectory; - } - - /** - * Always return false, because we want to treat the entries in a file system directory as basic - * files - */ - protected boolean isArchive(String uri) { - return false; - } - - /** - * Insert the method's description here. Creation date: (01/08/01 1:10:47 PM) - * - * @param newSubdirectory - * java.io.File - */ - protected void setSubdirectory(java.io.File newSubdirectory) { - subdirectory = newSubdirectory; - } - - protected boolean subdirectoryContains(String uri) { - if (getSubdirectory() == null) - return false; - java.io.File aFile = new java.io.File(getFileNameFrom(uri)).getParentFile(); - boolean contains = false; - while (aFile != null && !contains) { - if (getSubdirectory().equals(aFile)) { - contains = true; - } else { - aFile = aFile.getParentFile(); - } - } - return contains; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/SaveStrategy.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/SaveStrategy.java deleted file mode 100644 index d3bce2cb3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/SaveStrategy.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIterator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilter; - - -/** - * Knows how to export the contents of an archive file. This provides a delegation model saving the - * archive. Examples might include exporting to a zip output stream, to the file system, or into a - * workbench. - */ -public interface SaveStrategy extends ArchiveStrategy { - /** - * Close and release any resources being held by this object - */ - public void close() throws java.io.IOException; - - /** - * Notify resources if necessary that save is complete for this archive, being careful not to - * close any resources that a parent archive might still be using - */ - public void finish() throws java.io.IOException; - - public SaveFilter getFilter(); - - /** - * Returns whether this archive is saving files to a directory on the file system - */ - public boolean isDirectory(); - - public void save() throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; - - public void save(ArchiveManifest aManifest) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; - - public void save(File aFile, FileIterator iterator) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; - - public void save(File aFile, java.io.InputStream in) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; - - public void saveMofResource(Resource aResource) throws org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; - - public void setFilter(SaveFilter aFilter); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/SaveStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/SaveStrategyImpl.java deleted file mode 100644 index bd998054a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/SaveStrategyImpl.java +++ /dev/null @@ -1,280 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIterator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilter; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilterImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResource; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; -import org.eclipse.wst.common.internal.emf.utilities.Revisit; - - -/** - * Abstract implementer off which any save strategy can subclass - * - * @see com.ibm.etools.archive.SaveStrategy - */ - -public abstract class SaveStrategyImpl extends ArchiveStrategyImpl implements SaveStrategy { - protected SaveFilter filter; - - /** - * SaveStrategyImpl constructor comment. - */ - public SaveStrategyImpl() { - super(); - } - - /** - * The default is to do nothing - subclasses should override as necessary - */ - public void close() throws java.io.IOException { - //Default - } - - protected abstract SaveStrategy createNestedSaveStrategy(Archive anArchive) throws java.io.IOException; - - /** - * The default is to do nothing - subclasses should override as necessary - */ - public void finish() throws java.io.IOException { - //Default - } - - /** - * Insert the method's description here. Creation date: (02/28/01 4:11:28 PM) - * - * @return com.ibm.etools.archive.SaveFilter - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilter getFilter() { - if (filter == null) - filter = new SaveFilterImpl(); - return filter; - } - - protected abstract OutputStream getOutputStreamForResource(Resource aResource) throws java.io.IOException; - - /** - * @see com.ibm.etools.archive.SaveStrategy - */ - public boolean isDirectory() { - return false; - } - - protected boolean isLoadedResourceOrManifest(File aFile) { - return getArchive().isMofResourceLoaded(aFile.getURI()) || aFile.getURI().equals(J2EEConstants.MANIFEST_URI); - } - - public void save() throws SaveFailureException { - - saveManifest(); - saveMofResources(); - saveFiles(); - - } - - /** - * @see com.ibm.etools.archive.SaveStrategy - */ - public void save(Archive anArchive) throws SaveFailureException { - SaveStrategy strat = null; - try { - strat = createNestedSaveStrategy(anArchive); - } catch (java.io.IOException iox) { - throw new SaveFailureException(anArchive.getURI(), iox); - } - anArchive.save(strat); - - } - - /** - * @see com.ibm.etools.archive.SaveStrategy - */ - public void save(File aFile, FileIterator iterator) throws SaveFailureException { - if (aFile.isArchive() && shouldIterateOver((Archive) aFile)) - save((Archive) aFile); - else { - InputStream in = null; - if (!aFile.isDirectoryEntry()) { - try { - in = iterator.getInputStream(aFile); - } catch (IOException ex) { - throw new SaveFailureException(aFile.getURI(), ex); - } - } - save(aFile, in); - } - } - - public abstract void save(File aFile, InputStream in) throws SaveFailureException; - - protected void saveFiles() throws SaveFailureException { - try { - FileIterator iterator = getArchive().getFilesForSave(); - while (iterator.hasNext()) { - File aFile = iterator.next(); - if (shouldSave(aFile)) - save(aFile, iterator); - } - } catch (IOException iox) { - throw new SaveFailureException(CommonArchiveResourceHandler.Error_occurred_iterating_f_EXC_, iox); // = "Error occurred iterating files" - } - } - - protected void saveManifest() throws SaveFailureException { - if (!shouldSave(J2EEConstants.MANIFEST_URI)) - return; - ArchiveManifest mf = getArchive().getManifest(); - if (mf.getManifestVersion() == null || mf.getManifestVersion().equals(""))//$NON-NLS-1$ - mf.setManifestVersion("1.0");//$NON-NLS-1$ - save(mf); - } - - /** - * @see com.ibm.etools.archive.SaveStrategy - */ - public void saveMofResource(org.eclipse.emf.ecore.resource.Resource aResource) throws SaveFailureException { - if (!shouldSave(aResource)) - return; - setEncoding(aResource); - try { - boolean wasModified = aResource.isModified(); - OutputStream os = getOutputStreamForResource(aResource); - saveMofResource(aResource, os); - aResource.setModified(wasModified); - } catch (Exception e) { - throw new SaveFailureException(aResource.getURI().toString(), e); - } - } - - /** - * @see com.ibm.etools.archive.SaveStrategy - */ - protected void saveMofResource(org.eclipse.emf.ecore.resource.Resource aResource, OutputStream os) throws IOException { - aResource.save(os, Collections.EMPTY_MAP); - } - - protected void saveMofResources() throws SaveFailureException { - Iterator iterator = getArchive().getLoadedMofResources().iterator(); - //We have to go through this process because java resources could get added during the - //process of iterating and saving, and adding to a collection while iterating causes a - // failure - List xmiResources = new ArrayList(); - //We will save the xmi resources first, then the xml resources. This way the - //any necessary id's for referenced objects will have been generated prior to save - List xmlResources = new ArrayList(); - Resource res = null; - while (iterator.hasNext()) { - res = (Resource) iterator.next(); - // We don't want to save the java reflection resources or uri mapped resources - if (!ArchiveUtil.isJavaResource(res) && !ArchiveUtil.isRegisteredURIMapping(res) && !ArchiveUtil.isPlatformMetaResource(res)) { - Revisit.revisit(); - //For now, always use the mof5 format - if (res instanceof CompatibilityXMIResource) - ((CompatibilityXMIResource) res).setFormat(CompatibilityXMIResource.FORMAT_MOF5); - if (res instanceof TranslatorResource) - xmlResources.add(res); - else { - xmiResources.add(res); - } - } - } - basicSaveMofResources(xmiResources); - basicSaveMofResources(xmlResources); - } - - protected void basicSaveMofResources(List resources) throws SaveFailureException { - Resource res = null; - for (int i = 0; i < resources.size(); i++) { - res = (Resource) resources.get(i); - saveMofResource(res); - - } - } - - protected void setEncoding(Resource aResource) { - if (aResource instanceof org.eclipse.emf.ecore.xmi.XMLResource) - ((org.eclipse.emf.ecore.xmi.XMLResource) aResource).setEncoding(archive.getXmlEncoding()); - } - - /** - * Insert the method's description here. Creation date: (02/28/01 4:11:28 PM) - * - * @param newFilter - * com.ibm.etools.archive.SaveFilter - */ - public void setFilter(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.SaveFilter newFilter) { - filter = newFilter; - } - - /** - * Answer whether the nested archive needs to be saved one file at a time, or if we can bulk - * save it from the original - */ - protected boolean shouldIterateOver(Archive anArchive) { - return anArchive.getLoadStrategy().requiresIterationOnSave(); - } - - protected boolean shouldSave(File aFile) { - boolean loaded = isLoadedResourceOrManifest(aFile); - if (loaded) { - Resource res = archive.getLoadStrategy().getExistingMofResource(aFile.getURI()); - if (res == null) - return false; - //must be manifest - return !shouldSave(res); - } - - if (getArchive().isModuleFile()) { - ModuleFile m = (ModuleFile) getArchive(); - if (m.getExportStrategy() != null && m.getExportStrategy().hasSaved(aFile.getURI())) - return false; - } - return shouldSave(aFile.getURI()); - } - - protected boolean shouldSave(Resource res) { - if (!res.isModified() && getArchive().getOptions().saveOnlyDirtyMofResources()) - return false; - - return shouldSave(res.getURI().toString()); - } - - - /** - * This is the one method through which all elements of an archive (file, nested archive, mof - * resource, or manifest) will be tested before saving. Subclasses can override to do something - * more specific - */ - protected boolean shouldSave(String uri) { - return getFilter().shouldSave(uri, getArchive()); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/TempZipFileLoadStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/TempZipFileLoadStrategyImpl.java deleted file mode 100644 index 2ada33124..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/TempZipFileLoadStrategyImpl.java +++ /dev/null @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.io.File; -import java.io.FileNotFoundException; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.DeleteOnExitUtility; - - -/** - * Used as an optimization for reading jars within jars. Reading from a ZipFile is much faster than - * from a ZipInputStream, therefore, when possible, it makes sense to copy the nested jar to a temp - * file. It is the responsibility of the caller to ensure that the temp file gets deleted on normal - * system exit, using the helper method on java.io.File. This strategy will also delete the file - * when closed or finalized. - */ -public class TempZipFileLoadStrategyImpl extends ZipFileLoadStrategyImpl { - /** - * TemporaryZipFileLoadStrategyImpl constructor comment. - */ - public TempZipFileLoadStrategyImpl() { - super(); - } - - /** - * TemporaryZipFileLoadStrategyImpl constructor comment. - * - * @param file - * java.io.File - * @throws java.io.IOException - * The exception description. - */ - public TempZipFileLoadStrategyImpl(java.io.File file) throws java.io.IOException { - super(file); - } - - public void close() { - super.close(); - File file = getFile(); - file.delete(); - DeleteOnExitUtility.fileHasBeenDeleted(file); - } - - /** - * @see com.ibm.etools.archive.LoadStrategy - */ - public java.lang.String getAbsolutePath() throws java.io.FileNotFoundException { - throw new FileNotFoundException(CommonArchiveResourceHandler.Absolute_path_unknown_EXC_); // = "Absolute path unknown" - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/War22ExportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/War22ExportStrategyImpl.java deleted file mode 100644 index 2120efce9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/War22ExportStrategyImpl.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - - -/** - * Concrete implementer that knows how to export meta-data for a 2.2 Web app - */ -public class War22ExportStrategyImpl extends ExportStrategyImpl { - /** - * War22ExportStrategy constructor comment. - */ - public War22ExportStrategyImpl() { - super(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/War22ImportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/War22ImportStrategyImpl.java deleted file mode 100644 index f45d65de9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/War22ImportStrategyImpl.java +++ /dev/null @@ -1,91 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminator; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveTypeDiscriminatorImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.webapplication.WebApp; - - -/** - * Concrete implementer that knows how to import meta-data for a 2.2 Web app - */ -public class War22ImportStrategyImpl extends XmlBasedImportStrategyImpl { - - public static class Discriminator extends ArchiveTypeDiscriminatorImpl { - public boolean canImport(Archive anArchive) { - return anArchive.containsFile(J2EEConstants.WEBAPP_DD_URI); - } - - /** - * @see com.ibm.etools.archive.ArchiveTypeDiscriminator - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return new War22ImportStrategyImpl(); - } - - public String getUnableToOpenMessage() { - return getXmlDDMessage(CommonArchiveResourceHandler.WAR_File, J2EEConstants.WEBAPP_DD_URI); // = "WAR File" - } - - public Archive createConvertedArchive() { - return getArchiveFactory().createWARFile(); - } - } - - protected static Discriminator discriminator; - - /** - * War22ImportStrategy constructor comment. - */ - public War22ImportStrategyImpl() { - super(); - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ImportStrategy createImportStrategy(Archive old, Archive newArchive) { - return getDiscriminator().createImportStrategy(old, newArchive); - } - - public static ArchiveTypeDiscriminator getDiscriminator() { - if (discriminator == null) { - discriminator = new Discriminator(); - } - return discriminator; - } - - public WARFile getWARFile() { - return (WARFile) getArchive(); - } - - /** - * @see com.ibm.etools.archive.ImportStrategy - */ - public void importMetaData() throws Exception { - loadDeploymentDescriptor(); - } - - public void loadDeploymentDescriptor() throws Exception { - - WebApp webapp = null; - webapp = (WebApp) primLoadDeploymentDescriptor(); - - getWARFile().setDeploymentDescriptor(webapp); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/XmlBasedImportStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/XmlBasedImportStrategyImpl.java deleted file mode 100644 index f36bfe0e0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/XmlBasedImportStrategyImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; - - -/** - * Abstract implementer for archives that use xml deployment descriptors - */ -public abstract class XmlBasedImportStrategyImpl extends ImportStrategyImpl { - /** - * XmlBasedImportStrategy constructor comment. - */ - public XmlBasedImportStrategyImpl() { - super(); - } - - public ModuleFile getModuleFile() { - return (ModuleFile) getArchive(); - } - - protected EObject primLoadDeploymentDescriptor() throws Exception { - Resource resource = null; - - resource = getModuleFile().getDeploymentDescriptorResource(); - EObject root = null; - - root = ArchiveUtil.getRoot(resource); - - return root; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ZipFileLoadStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ZipFileLoadStrategyImpl.java deleted file mode 100644 index 5f9c188d8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ZipFileLoadStrategyImpl.java +++ /dev/null @@ -1,161 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Enumeration; -import java.util.List; -import java.util.zip.ZipEntry; -import java.util.zip.ZipFile; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; - - -/** - * Implementer that knows how to read files from a zip/jar file on the local file system - * - * @see LoadStrategy - */ - -public class ZipFileLoadStrategyImpl extends LoadStrategyImpl { - protected java.io.File file; - protected ZipFile zipFile; - - /** - * ZipFileLoadStrategy constructor comment. - */ - public ZipFileLoadStrategyImpl() { - super(); - } - - /** - * ZipFileLoadStrategy constructor comment. - */ - public ZipFileLoadStrategyImpl(java.io.File file) throws IOException { - super(); - setFile(file); - setZipFile(new ZipFile(file)); - } - - public void close() { - super.close(); - try { - getZipFile().close(); - } catch (Throwable t) { - //Ignore - } - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - protected boolean primContains(java.lang.String uri) { - return getZipFile().getEntry(uri) != null; - } - - /** - * @see com.ibm.etools.archive.LoadStrategy - */ - public java.lang.String getAbsolutePath() throws java.io.FileNotFoundException { - return getFile().getAbsolutePath(); - } - - /** - * Insert the method's description here. Creation date: (12/20/00 4:40:14 PM) - * - * @return java.io.File - */ - public java.io.File getFile() { - return file; - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - public java.util.List getFiles() { - List list = new ArrayList(); - Enumeration entries = getZipFile().entries(); - while (entries.hasMoreElements()) { - ZipEntry entry = (ZipEntry) entries.nextElement(); - if (!entry.isDirectory()){ - if(!collectedLooseArchiveFiles.containsKey(entry.getName())) { - File aFile = createFile(entry.getName()); - aFile.setSize(entry.getSize()); - aFile.setLastModified(entry.getTime()); - list.add(aFile); - } - } else { - File aFile = createDirectory(entry.getName()); - aFile.setDirectoryEntry(true); - aFile.setSize(entry.getSize()); - aFile.setLastModified(entry.getTime()); - list.add(aFile); - } - } - return list; - } - - /** - * @see com.ibm.etools.archive.impl.LoadStrategyImpl - */ - public java.io.InputStream getInputStream(java.lang.String uri) throws IOException, FileNotFoundException { - try { - ZipEntry entry = getZipFile().getEntry(uri); - if (entry == null) - throw new FileNotFoundException(uri); - - return new java.io.BufferedInputStream(getZipFile().getInputStream(entry)); - } catch (IllegalStateException zipClosed) { - throw new IOException(zipClosed.toString()); - } - } - - /** - * Insert the method's description here. Creation date: (11/01/00 11:28:12 AM) - * - * @return java.util.zip.ZipFile - */ - public java.util.zip.ZipFile getZipFile() { - return zipFile; - } - - /** - * @see com.ibm.etools.archive.LoadStrategy - */ - public boolean isUsing(java.io.File aSystemFile) { - return getFile() != null && getFile().equals(aSystemFile); - } - - /** - * Insert the method's description here. Creation date: (12/20/00 4:40:14 PM) - * - * @param newFile - * java.io.File - */ - public void setFile(java.io.File newFile) { - file = newFile; - } - - - /** - * Insert the method's description here. Creation date: (11/01/00 11:28:12 AM) - * - * @param newZipFile - * java.util.zip.ZipFile - */ - public void setZipFile(java.util.zip.ZipFile newZipFile) { - zipFile = newZipFile; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ZipStreamSaveStrategyImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ZipStreamSaveStrategyImpl.java deleted file mode 100644 index 9fee0c8bf..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/ZipStreamSaveStrategyImpl.java +++ /dev/null @@ -1,161 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.strategy; - - - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.zip.ZipEntry; -import java.util.zip.ZipOutputStream; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.URIConverter; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.wst.common.internal.emf.resource.CompatibilityURIConverter; -import org.eclipse.wst.common.internal.emf.utilities.Revisit; - - -/** - * This is a concrete implentation of SaveStrategy. All the contents of the archive, including xmi - * resources, will be output to a ZipOutputStream. The output stream should be passed in by the - * client. - */ -public class ZipStreamSaveStrategyImpl extends SaveStrategyImpl implements SaveStrategy { - protected OutputStream destinationStream; - /** Used internally */ - protected ZipOutputStream zipOutputStream; - - /** - * Wraps a new zip output stream around the parameter - */ - public ZipStreamSaveStrategyImpl(OutputStream out) { - setDestinationStream(out); - setZipOutputStream(new ZipOutputStream(out)); - } - - public void close() throws IOException { - getDestinationStream().close(); - } - - protected SaveStrategy createNestedSaveStrategy(Archive anArchive) { - return new ZipStreamSaveStrategyImpl(getZipOutputStream()); - } - - public void finish() throws IOException { - getZipOutputStream().finish(); - //If this is not nested, close the stream to free up the resource - //otherwise, don't close it because the parent may not be done - if (!(getDestinationStream() instanceof ZipOutputStream)) - getDestinationStream().close(); - } - - /** - * @return java.io.OutputStream - */ - public java.io.OutputStream getDestinationStream() { - return destinationStream; - } - - /** - * @see com.ibm.etools.archive.impl.SaveStrategyImpl - */ - protected java.io.OutputStream getOutputStreamForResource(Resource aResource) throws java.io.IOException { - return getZipOutputStream(); - } - - /** - * @see com.ibm.etools.archive.SaveStrategy#saveMofResource(Resource) - */ - public void saveMofResource(Resource aResource, OutputStream out) throws IOException { - Revisit.revisit(); - URI uri = aResource.getURI(); - //Ensure container relative URI - URIConverter conv = getArchive().getResourceSet().getURIConverter(); - if (conv instanceof CompatibilityURIConverter) - uri = ((CompatibilityURIConverter) conv).deNormalize(uri); - ZipEntry entry = new ZipEntry(uri.toString()); - zipOutputStream.putNextEntry(entry); - super.saveMofResource(aResource, out); - zipOutputStream.closeEntry(); - } - - /** - * @return java.util.zip.ZipOutputStream - */ - protected java.util.zip.ZipOutputStream getZipOutputStream() { - return zipOutputStream; - } - - /** - * @see com.ibm.etools.archive.SaveStrategy - */ - public void save(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest aManifest) throws SaveFailureException { - try { - ZipEntry entry = new ZipEntry(J2EEConstants.MANIFEST_URI); - getZipOutputStream().putNextEntry(entry); - aManifest.write(getZipOutputStream()); - getZipOutputStream().closeEntry(); - } catch (IOException iox) { - throw new SaveFailureException(J2EEConstants.MANIFEST_URI, iox); - } - } - - public void save(Archive anArchive) throws SaveFailureException { - try { - ZipEntry entry = new ZipEntry(anArchive.getURI()); - getZipOutputStream().putNextEntry(entry); - super.save(anArchive); - getZipOutputStream().closeEntry(); - } catch (IOException iox) { - throw new SaveFailureException(anArchive.getURI(), iox); - } - } - - public void save(File aFile, InputStream in) throws SaveFailureException { - try { - String entryName = aFile.getURI(); - if (aFile.isDirectoryEntry() && !entryName.endsWith("/"))//$NON-NLS-1$ - entryName = entryName + '/'; - ZipEntry entry = new ZipEntry(entryName); - if (aFile.getLastModified() > 0) - entry.setTime(aFile.getLastModified()); - getZipOutputStream().putNextEntry(entry); - if (!aFile.isDirectoryEntry()) { - org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil.copy(in, getZipOutputStream()); - } - getZipOutputStream().closeEntry(); - } catch (IOException iox) { - throw new SaveFailureException(aFile.getURI(), iox); - } - } - - /** - * @param newDestinationStream - * java.io.OutputStream - */ - public void setDestinationStream(java.io.OutputStream newDestinationStream) { - destinationStream = newDestinationStream; - } - - /** - * @param newZipOutputStream - * java.util.zip.ZipOutputStream - */ - protected void setZipOutputStream(java.util.zip.ZipOutputStream newZipOutputStream) { - zipOutputStream = newZipOutputStream; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ArchiveFileDynamicClassLoader.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ArchiveFileDynamicClassLoader.java deleted file mode 100644 index eb945c277..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ArchiveFileDynamicClassLoader.java +++ /dev/null @@ -1,302 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.net.MalformedURLException; -import java.net.URL; -import java.net.URLConnection; -import java.net.URLStreamHandler; -import java.util.HashSet; -import java.util.Set; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveRuntimeException; - - -/** - * Class loader which loads a given set of classes stored in byte arrays. (Assumption: System - * classes and those in the set are the only classes needed to resolve each one) - */ - -public class ArchiveFileDynamicClassLoader extends ClassLoader { - protected Archive archive = null; - protected ClassLoader extraClassLoader; - protected boolean inEARFile; - private static final String URL_PROTOCOL = "archive"; - private ArchiveURLStreamHandler handler; - - public ArchiveFileDynamicClassLoader(Archive anArchive, ClassLoader parentCl, ClassLoader extraCl) { - super(parentCl); - setArchive(anArchive); - setExtraClassLoader(extraCl); - inEARFile = anArchive.getContainer() != null && anArchive.getContainer().isEARFile(); - handler = new ArchiveURLStreamHandler(); - } - - /** - * Loads a specified class. This gets called only after the parent class loader has had it's - * chance, based on the Java2 delegation model - */ - protected Class findClass(String name) throws ClassNotFoundException { - - Class result; - // Load class bytes from current set of class byte[]'s - byte[] bytes = getClassBytesFor(name); - - if (bytes != null) { - result = defineClass(name, bytes, 0, bytes.length); - if (result == null) { - throw new ClassNotFoundException(name); - } // endif - } else { - throw new ClassNotFoundException(name); - } // endif - return result; - } - - /** - * Insert the method's description here. Creation date: (12/17/00 9:59:57 PM) - * - * @return com.ibm.etools.commonarchive.Archive - */ - public Archive getArchive() { - return archive; - } - - private byte[] getData(File file) { - if (null != file) { - try { - return ArchiveUtil.inputStreamToBytes(file.getInputStream()); - } catch (FileNotFoundException e) { - return null; - } catch (IOException e) { - throw new ArchiveRuntimeException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.io_ex_loading_EXC_, (new Object[]{file.getName()})), e); // = "An IO exception occurred loading " } - } - } - return null; - } - - protected byte[] getClassBytesFor(String className) { - if (className == null) - return null; - // Change the class name to a jar entry name - String jarEntryName = ArchiveUtil.classNameToUri(className); - return getData(getFile(jarEntryName)); - } - - protected EARFile getEARFile() { - return (EARFile) getArchive().getContainer(); - } - - /** - * Insert the method's description here. Creation date: (11/21/00 6:58:05 PM) - * - * @return java.lang.ClassLoader - */ - public java.lang.ClassLoader getExtraClassLoader() { - return extraClassLoader; - } - - /** - * Used for dynamic class loading in dependent jars in ears; the set is used to terminate a - * cycle if one exists; the cycle is invalid, but you never know what people might try... - */ - protected synchronized Class loadClass(String name, Set visitedArchives) throws ClassNotFoundException { - if (visitedArchives.contains(getArchive())) - throw new ClassNotFoundException(name); - visitedArchives.add(getArchive()); - try { - return super.loadClass(name, false); - } catch (ClassNotFoundException ex) { - return loadClassInDependentJarInEAR(name, visitedArchives); - } - } - - protected synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException { - try { - return super.loadClass(name, resolve); - } catch (ClassNotFoundException ex) { - Class c = loadClassInDependentJar(name); - if (c != null && resolve) - resolveClass(c); - return c; - } - } - - protected Class loadClassInDependentJar(String name) throws ClassNotFoundException { - - if (inEARFile) { - return loadClassInDependentJarInEAR(name); - } else if (getExtraClassLoader() != null) { - return getExtraClassLoader().loadClass(name); - } - throw new ClassNotFoundException(name); - } - - protected Class loadClassInDependentJarInEAR(String name, Set visitedArchives) throws ClassNotFoundException { - Object obj = getResourceInDependentJarInEAR(name, visitedArchives, CLASS_TYPE); - if (obj == null) { - throw new ClassNotFoundException(name); - } - return (Class) obj; - } - - protected Class loadClassInDependentJarInEAR(String name) throws ClassNotFoundException { - Object obj = getResourceInDependentJarInEAR(name, CLASS_TYPE); - if (obj == null) { - throw new ClassNotFoundException(name); - } - return (Class) obj; - } - - protected File getFileFromDependentJar(String name) { - Object obj = getResourceInDependentJarInEAR(name, FILE_TYPE); - if (obj != null) { - return (File) obj; - } - return null; - } - - protected static final int CLASS_TYPE = 0; - protected static final int FILE_TYPE = 1; - - protected Object getResourceInDependentJarInEAR(String name, int type) { - Set visitedArchives = new HashSet(5); - visitedArchives.add(getArchive()); - return getResourceInDependentJarInEAR(name, visitedArchives, type); - } - - protected Object getResourceInDependentJarInEAR(String name, Set visitedArchives, int type) { - String[] classpath = archive.getManifest().getClassPathTokenized(); - for (int i = 0; i < classpath.length; i++) { - try { - String uri = ArchiveUtil.deriveEARRelativeURI(classpath[i], archive); - if (uri == null) - continue; - File jarFile = getEARFile().getFile(uri); - if (jarFile.isArchive()) { - Archive dep = (Archive) jarFile; - switch (type) { - case CLASS_TYPE : - try { - return ((ArchiveFileDynamicClassLoader) dep.getArchiveClassLoader()).loadClass(name, visitedArchives); - } catch (ClassNotFoundException noDice) { - continue; - } - case FILE_TYPE : - try { - return dep.getFile(name); - } catch (FileNotFoundException noDice) { - continue; - } - } - } - } catch (java.io.FileNotFoundException depJarNotInEAR) { - } - } - return null; - } - - /** - * Insert the method's description here. Creation date: (12/17/00 9:59:57 PM) - * - * @param newArchive - * com.ibm.etools.commonarchive.Archive - */ - public void setArchive(Archive newArchive) { - archive = newArchive; - } - - /** - * Insert the method's description here. Creation date: (11/21/00 6:58:05 PM) - * - * @param newExtraClassLoader - * java.lang.ClassLoader - */ - public void setExtraClassLoader(java.lang.ClassLoader newExtraClassLoader) { - extraClassLoader = newExtraClassLoader; - } - - public InputStream getResourceAsStream(String name) { - try { - File file = getFile(name); - if (null != file) { - return file.getInputStream(); - } - } catch (IOException e) { - throw new ArchiveRuntimeException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.io_ex_loading_EXC_, (new Object[]{name})), e); // = "An IO exception occurred loading " - } - return null; - } - - protected File getFileFromArchive(String name) { - try { - return getArchive().getFile(name); - } catch (FileNotFoundException e) { - } - return null; - } - - - - protected File getFile(String name) { - File file = getFileFromArchive(name); - if (file == null) { - file = getFileFromDependentJar(name); - } - return file; - } - - protected URL findResource(String name) { - if (getFile(name) != null) { - try { - return new URL(null, URL_PROTOCOL + "://" + name, handler); - } catch (MalformedURLException e) { - e.printStackTrace(); - throw new RuntimeException(e); - } - } - return null; - } - - private class ArchiveURLStreamHandler extends URLStreamHandler { - public ArchiveURLStreamHandler() { - } - - protected URLConnection openConnection(URL url) throws IOException { - return new ArchiveURLConnection(url); - } - } - - private class ArchiveURLConnection extends URLConnection { - private String resourceName; - - protected ArchiveURLConnection(URL url) { - super(url); - resourceName = url.toString().substring(URL_PROTOCOL.length() + 3); - } - - public void connect() throws IOException { - } - - public InputStream getInputStream() throws IOException { - return getResourceAsStream(resourceName); - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ArchiveUtil.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ArchiveUtil.java deleted file mode 100644 index c6fba67da..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ArchiveUtil.java +++ /dev/null @@ -1,873 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Properties; -import com.ibm.icu.util.StringTokenizer; -import java.util.zip.ZipFile; -import java.util.zip.ZipInputStream; -import java.util.zip.ZipOutputStream; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.resource.URIConverter; -import org.eclipse.emf.ecore.resource.impl.URIMappingRegistryImpl; -import org.eclipse.jem.java.JavaURL; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.EmptyResourceException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveURIConverterImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.jst.j2ee.internal.xml.GeneralXmlDocumentReader; -import org.eclipse.jst.j2ee.internal.xml.XmlDocumentReader; -import org.w3c.dom.Document; -import org.w3c.dom.DocumentType; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; -import org.xml.sax.InputSource; - - -/** - * This is a utility class to hold helper methods common to multiple classes in the archive support - * packages - */ -public class ArchiveUtil { - public static final String DOT_CLASS = ".class"; //$NON-NLS-1$ - - public static final String DOT_JAVA = ".java"; //$NON-NLS-1$ - - public static final String DOT_SQLJ = ".sqlj"; //$NON-NLS-1$ - - public static final String DOT_JSP = ".jsp"; //$NON-NLS-1$ - - protected static boolean isRuntime = false; - - /** - * Flag to indicate whether the temp directory should be used for extracting nested jars for - * read; defaults to true - */ - protected static boolean shouldUseTempDirectoryForRead = true; - - /** - * Settable name for the temp directory; must resolve to a valid file on the file system; if not - * specified, defaults to the system temp directory - */ - protected static String tempDirectoryName; - - protected static java.io.File tempDirectory; - - public static String classNameToJavaUri(String className) { - return className.replace('.', '/').concat(DOT_JAVA); - } - - public static String classNameToUri(String className) { - return className.replace('.', '/').concat(DOT_CLASS); - } - - /** - * For a given uri of a .class file, derive the uri of the .java file; takes into consideration - * inner classes by splitting on the first occurrence of '$' - * - * @return String a uri or null if the input is null or doesn't end with ".class" - */ - public static String classUriToJavaUri(String classUri) { - if (classUri == null || !classUri.endsWith(DOT_CLASS)) - return null; - - String truncated = truncateIgnoreCase(classUri, DOT_CLASS); - StringTokenizer tok = new StringTokenizer(truncated, "$"); //$NON-NLS-1$ - return tok.nextToken().concat(DOT_JAVA); - } - - /** - * Concatenates the two strings with a separator, if necessary - */ - public static String concatUri(String directoryname, String filename, char separator) { - String uri = directoryname; - if (!directoryname.endsWith(separator + "") && !filename.startsWith(separator + "")) //$NON-NLS-2$//$NON-NLS-1$ - uri = uri + separator; - return uri + filename; - } - - /** - * Copy all the data from the input stream to the output stream up until the first end of file - * character, and close the two streams - */ - public static void copy(InputStream in, OutputStream out) throws IOException { - byte[] buffer = new byte[1024]; - try { - int n = in.read(buffer); - while (n > 0) { - out.write(buffer, 0, n); - n = in.read(buffer); - } - } finally { - if (!(in instanceof ZipInputStream)) - in.close(); - if (!(out instanceof ZipOutputStream)) - out.close(); - } - } - - public static File createTempDirectory(String baseName, File parentDirectory) throws IOException { - - File tempFile = createTempFile(baseName, parentDirectory); - tempFile.delete(); - tempFile.mkdir(); - return tempFile; - } - - public static File createTempFile(String baseName) throws IOException { - return createTempFile(baseName, getTempDirectory()); - } - - public static File createTempFile(String baseName, File directory) throws IOException { - String fileName = getFileNameTail(baseName); - if (fileName.length() < 3) { - fileName = "WSTMP" + fileName; //$NON-NLS-1$ - } - File tempFile = File.createTempFile(fileName, null, directory); - return tempFile; - } - - /** - * deletes a file from the file system; for directories, recurse the subdirectories and delete - * them as well - * - * @return true if successful; false if any file or sub file could not be deleted - */ - public static boolean delete(File aFile) { - if (aFile == null) - return true; - if (aFile.isDirectory()) { - File[] files = aFile.listFiles(); - if (files != null) { - for (int i = 0; i < files.length; i++) { - if (!delete(files[i])) - return false; - } - } - } - return aFile.delete(); - } - - /** - * returns a list of all files, recursive, that can't be written - */ - public static List getWriteProtectedFiles(File aFile, List aList) { - if (aList == null) - aList = new ArrayList(); - if (aFile.exists() && !aFile.canWrite()) - aList.add(aFile); - if (aFile.isDirectory()) { - File[] files = aFile.listFiles(); - for (int i = 0; i < files.length; i++) { - getWriteProtectedFiles(files[i], aList); - } - } - return aList; - } - - /** - * Leverage the java.io.File apis to resolve things like "./xxx" and "../xxx" into uris of - * entries in the ear file - * - * @param classpathEntry - - * a classpath entry from the manifest of - * @anArchive - * @param anArchive - - * the archive to which the dependent jar is relative - * - * @return a cananonicalized relative uri of an entry in an ear file representing the dependent - * jar - */ - public static String deriveEARRelativeURI(String classpathEntry, Archive anArchive) { - return deriveEARRelativeURI(classpathEntry, anArchive.getURI()); - } - - /** - * Leverage the java.io.File apis to resolve things like "./xxx" and "../xxx" into uris of - * entries in the ear file - * - * @param classpathEntry - - * a classpath entry from the manifest of an archive - * @param String - - * the uri of the archive to which the dependent jar is relative - * - * @return a cananonicalized relative uri of an entry in an ear file representing the dependent - * jar - */ - public static String deriveEARRelativeURI(String classpathEntry, String archiveUri) { - try { - String parent = getFileNameParent(archiveUri); - if (parent == null || parent.equals("")) //$NON-NLS-1$ - parent = "."; //$NON-NLS-1$ - String workingDir = new java.io.File(".").getCanonicalPath(); //$NON-NLS-1$ - - String resolvedPath = new java.io.File(parent, classpathEntry).getCanonicalPath(); - if (!resolvedPath.startsWith(workingDir)) - return null; - if (resolvedPath.equals(workingDir)) - return null; - int start = workingDir.endsWith(java.io.File.separator) ? workingDir.length() : workingDir.length() + 1; - return resolvedPath.substring(start, resolvedPath.length()).replace(java.io.File.separatorChar, '/'); - } catch (java.io.IOException ex) { - //getCanonicalPath could throw this - return null; - } - } - - /** - * Return "" if there is no extension - */ - public static String getFileNameExtension(String uri) { - - if (uri != null) { - int index = uri.lastIndexOf("."); //$NON-NLS-1$ - if (index != -1) - return uri.substring(index + 1); - } - return ""; //$NON-NLS-1$ - } - - /** - * Returns the directory from the uri, or the truncation of the segment after the last - * occurrence of a separator - */ - public static String getFileNameParent(String uri) { - if (uri==null) - return ""; //$NON-NLS-1$ - String tempURI = uri.replace('\\', '/'); - while (tempURI.endsWith("/")) //$NON-NLS-1$ - tempURI = tempURI.substring(0, tempURI.length() - 1); - int lastIndex = tempURI.lastIndexOf('/'); - if (lastIndex == -1) - return ""; //$NON-NLS-1$ - else if (lastIndex == 0) - return "/"; //$NON-NLS-1$ - return uri.substring(0, lastIndex); - } - - /** - * Returns the filename from the uri, or the segment after the last occurrence of a separator - */ - public static String getFileNameTail(String uri) { - String tempURI = uri.replace('\\', '/'); - while (tempURI.endsWith("/")) //$NON-NLS-1$ - tempURI = tempURI.substring(0, tempURI.length() - 1); - int lastIndex = tempURI.lastIndexOf('/'); - if (lastIndex == -1) - return uri; - return uri.substring(lastIndex + 1, tempURI.length()); - } - - /** - * For the given object in the deployment descriptor, return the owning module file; for - * example, retrieve the EJBJarFile that owns the EJBJar. This works even for alts - */ - public static ModuleFile getModuleFile(EObject ddObject) { - Resource res = ddObject.eResource(); - if (res == null) - return null; - - Archive archive = getArchive(res); - if (archive == null || !archive.isModuleFile()) - return null; - - if (!(res instanceof XMLResource)) - return null; - - XMLResource xmlRes = (XMLResource) res; - if (xmlRes.isAlt()) - return getModuleFileUsingAltDD((EARFile) archive, res); - - return (ModuleFile) archive; - } - - protected static ModuleFile getModuleFileUsingAltDD(EARFile ear, Resource res) { - if (res == null) - return null; - - String uri = res.getURI().toString(); - Module m = ear.getDeploymentDescriptor().getModuleHavingAltDD(uri); - if (m == null) - return null; - ModuleRef ref = ear.getModuleRef(m); - if (ref == null) - return null; - - return ref.getModuleFile(); - } - - public static String getModuleFileTypeName(int moduleType) { - switch (moduleType) { - case XMLResource.APPLICATION_TYPE : - return CommonArchiveResourceHandler.A_Application_file; - case XMLResource.APP_CLIENT_TYPE : - return CommonArchiveResourceHandler.An_Application_Client_JAR_file; - case XMLResource.EJB_TYPE : - return CommonArchiveResourceHandler.An_EJB_JAR_file; - case XMLResource.WEB_APP_TYPE : - return CommonArchiveResourceHandler.A_WAR_file; - case XMLResource.RAR_TYPE : - return CommonArchiveResourceHandler.A_RAR_file; - } - return null; - } - - /** - * For the given resource, return the owning module file; for example, retrieve the EJBJarFile - * that owns the EJBJar. In the case of alts, this returns the EARFile and not the module file. - * This method is internal; clients should use {@link #getModuleFile(EObject)} - */ - public static Archive getArchive(Resource res) { - if (res == null) - return null; - - ResourceSet set = res.getResourceSet(); - if (set == null) - return null; - - URIConverter conv = set.getURIConverter(); - if (conv == null || !(conv instanceof ArchiveURIConverterImpl)) - return null; - - return ((ArchiveURIConverterImpl) conv).getArchive(); - } - - /** - * Concatenates the two strings and ensures the correct separator is used in the path - */ - public static String getOSUri(String uri) { - char sep = File.separatorChar; - if (sep != '/') - return uri.replace('/', sep); - return uri.replace('\\', sep); - } - - /** - * Concatenates the two strings and ensures the correct separator is used in the path - */ - public static String getOSUri(String directoryname, String filename) { - String osDirName = getOSUri(directoryname); - String osFileName = getOSUri(filename); - return concatUri(osDirName, osFileName, File.separatorChar); - } - - /** - * Returns the first element in the extent of the resource - * - * @throws EmptyResourceException - - * thrown if the extent is empty - */ - public static EObject getRoot(Resource aResource) throws EmptyResourceException { - EList extent = aResource.getContents(); - if (extent.size() < 1) { - throw new EmptyResourceException(aResource.getURI().toString()); - } - return (EObject) extent.get(0); - } - - public static java.io.File getTempDirectory() { - return tempDirectory; - } - - /** - * Insert the method's description here. Creation date: (12/19/00 1:16:48 PM) - * - * @return java.lang.String - */ - public static java.lang.String getTempDirectoryName() { - return tempDirectoryName; - } - - public static String[] getTokens(String aString) { - return getTokens(aString, null); - } - - public static String[] getTokens(String aString, String delimiter) { - - StringTokenizer tok = (delimiter == null) ? new StringTokenizer(aString) : new StringTokenizer(aString, delimiter); - int size = tok.countTokens(); - String[] tokens = new String[size]; - for (int i = 0; i < size && tok.hasMoreTokens(); i++) { - tokens[i] = tok.nextToken(); - } - return tokens; - } - - /** - * getValueIgnoreKeyCase method comment. - */ - public static java.lang.String getValueIgnoreKeyCase(java.lang.String key, java.util.jar.Attributes attr) { - Iterator keysAndValues = attr.entrySet().iterator(); - while (keysAndValues.hasNext()) { - Map.Entry entry = (Map.Entry) keysAndValues.next(); - String entryKey = entry.getKey().toString(); - if (entryKey.equalsIgnoreCase(key)) - return entry.getValue() == null ? null : entry.getValue().toString(); - } - return null; - } - - public static void inform(String message) { - org.eclipse.jem.util.logger.proxy.Logger.getLogger().logInfo(message); - } - - /** - * Read all the data from the input stream up until the first end of file character, add this - * data to a byte array, and close the input stream; returns the byte array - */ - public static byte[] inputStreamToBytes(InputStream in) throws IOException { - ByteArrayOutputStream out = new ByteArrayOutputStream(); - copy(in, out); - return out.toByteArray(); - } - - public static boolean isJavaResource(Resource aResource) { - return JavaURL.isJavaURL(aResource.getURI().toString()); - } - - public static boolean isRegisteredURIMapping(Resource res) { - return URIMappingRegistryImpl.INSTANCE.getURI(res.getURI()) != res.getURI(); - } - - public static boolean isPlatformMetaResource(Resource res) { - URI uri = res.getURI(); - return "platform".equals(uri.scheme()) && "meta".equals(uri.segment(0)); //$NON-NLS-1$ //$NON-NLS-2$ - } - - public static boolean isNullOrEmpty(String aString) { - return aString == null || aString.trim().length() == 0; - } - - public static boolean isRuntime() { - return isRuntime; - } - - /** - * Is it within the spec for the JAR or module file to reference the archive via the Manifest - * Class-Path? - */ - public static boolean isValidDependency(Archive referencedJAR, Archive referencingJAR) { - //No other modules should reference wars - if (referencedJAR.isWARFile()) - return false; - - if (referencedJAR == referencingJAR) - return false; - - //Clients can reference all but the WARs, which we've already covered - // above; WARs and EJB JARs - //can reference all but WARs, above, or ApplicationClients - return referencingJAR.isApplicationClientFile() || !referencedJAR.isApplicationClientFile(); - } - - /** - * Loads a properties file with the given uri from the given archive - * - * @throws FileNotFoundException - * if the file does not exist in the archive - * @throws IOException - * if an IO exception occurs reading the properties - */ - public static Properties loadProperties(Archive archive, String uri) throws FileNotFoundException, IOException { - InputStream in = null; - try { - in = archive.getInputStream(uri); - Properties p = new Properties(); - p.load(in); - return p; - } finally { - if (in != null) - in.close(); - } - } - - public static void setIsRuntime(boolean aBoolean) { - isRuntime = aBoolean; - } - - /** - * - */ - public static void setShouldUseTempDirectoryForRead(boolean value) { - shouldUseTempDirectoryForRead = value; - } - - /** - * Insert the method's description here. Creation date: (12/19/00 1:26:28 PM) - * - * @param newTempDirectory - * java.io.File - */ - public static void setTempDirectory(java.io.File newTempDirectory) { - tempDirectory = newTempDirectory; - tempDirectoryName = newTempDirectory.getAbsolutePath(); - } - - /** - * Sets the temp directory to the specified path; creates it and sets it to be deleted on exit - * if it does not exist. - * - * @param newTempDirectoryName - * java.lang.String - * @throws ArchiveException - * thrown if the directory does not exist and can not be created - */ - public static void setTempDirectoryName(java.lang.String newTempDirectoryName) throws ArchiveException { - java.io.File dir = new java.io.File(newTempDirectoryName); - if (!dir.exists()) { - dir.mkdirs(); - if (!dir.exists()) - throw new ArchiveException(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.make_temp_dir_EXC_, (new Object[]{newTempDirectoryName}))); // = "Unable to make temp directory: " - DeleteOnExitUtility.markForDeletion(dir); - } - setTempDirectory(dir); - } - - /** - * Insert the method's description here. Creation date: (12/19/00 1:08:20 PM) - * - * @return boolean - */ - public static boolean shouldUseTempDirectoryForRead() { - return shouldUseTempDirectoryForRead; - } - - /** - * Convert the list of string elements to an array of file URLs; if an entry is relative, make - * it relative to the uri root - */ - public static java.net.URL[] toLocalURLs(List entries, String uriRoot) { - List urls = new ArrayList(); - for (int i = 0; i < entries.size(); i++) { - String pathEntry = (String) entries.get(i); - java.io.File aFile = new java.io.File(pathEntry); - if (!aFile.isAbsolute()) { - pathEntry = getOSUri(uriRoot, pathEntry); - aFile = new java.io.File(pathEntry); - } - if (!aFile.exists()) { - //inform("Classpath element " + pathEntry + " does not - // exist"); - continue; - } - if (aFile.isDirectory()) { - if (!pathEntry.endsWith(java.io.File.separator)) { - pathEntry = pathEntry + java.io.File.separatorChar; - } - } else { - ZipFile zip = null; - try { - zip = new ZipFile(aFile); - } catch (Exception ex) { - inform(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.invalid_classpath_WARN_, (new Object[]{pathEntry}))); // = "Classpath element "{0}" is not a directory or a Zip file" - continue; - } finally { - if (zip != null) - try { - zip.close(); - } catch (IOException ignore) { - //Ignore - } - } - } - try { - aFile = new java.io.File(pathEntry); - java.net.URL aUrl = aFile.toURL(); - urls.add(aUrl); - } catch (java.net.MalformedURLException ex) { - inform(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.invalid_cp_file_WARN_, (new Object[]{pathEntry}))); // = "Classpath element "{0}" does not point to a local file" - } - } - java.net.URL[] urlArray = new java.net.URL[urls.size()]; - return (java.net.URL[]) urls.toArray(urlArray); - } - - /** - * Return a substring of the first parameter, starting at the end of the prefix - */ - public static String truncateFromFrontIgnoreCase(String aString, String leadingSubString) { - if (!aString.toLowerCase().startsWith(leadingSubString.toLowerCase())) - return aString; - return aString.substring(leadingSubString.length(), aString.length()); - } - - /** - * Return a substring of the first parameter, up to the last index of the second - */ - public static String truncateIgnoreCase(String aString, String trailingSubString) { - int index = aString.toLowerCase().lastIndexOf(trailingSubString.toLowerCase()); - if (index != -1) - return aString.substring(0, index); - return aString; - } - - public static String uriToClassName(String uri) { - return truncateIgnoreCase(uri.replace('/', '.'), DOT_CLASS); - } - - public static boolean isJ2EE13FastCheck(ModuleFile moduleFile) { - if (moduleFile == null) - return false; - else if (moduleFile.isRARFile()) - return true; - InputStream in = null; - String uri = moduleFile.getDeploymentDescriptorUri(); - try { - in = moduleFile.getInputStream(uri); - - DocumentType docType = XmlDocumentReader.readDocumentType(in, uri); - if (docType == null) - return false; - String[] ids = getJ2EE13PublicAndSystemIdFor(moduleFile); - if (ids == null) - return false; - return ids[0].equals(docType.getPublicId()) && ids[1].equals(docType.getSystemId()); - } catch (IOException ex) { - return false; - } finally { - try { - if (in != null) - in.close(); - } catch (IOException ex) { - //Ignore - } - } - - } - - protected static String[] getJ2EE13PublicAndSystemIdFor(ModuleFile moduleFile) { - if (moduleFile.isEARFile()) - return new String[]{J2EEConstants.APPLICATION_PUBLICID_1_3, J2EEConstants.APPLICATION_SYSTEMID_1_3}; - else if (moduleFile.isEJBJarFile()) - return new String[]{J2EEConstants.EJBJAR_PUBLICID_2_0, J2EEConstants.EJBJAR_SYSTEMID_2_0}; - else if (moduleFile.isApplicationClientFile()) - return new String[]{J2EEConstants.APP_CLIENT_PUBLICID_1_3, J2EEConstants.APP_CLIENT_SYSTEMID_1_3}; - else if (moduleFile.isWARFile()) - return new String[]{J2EEConstants.WEBAPP_PUBLICID_2_3, J2EEConstants.WEBAPP_SYSTEMID_2_3}; - else if (moduleFile.isRARFile()) - return new String[]{J2EEConstants.CONNECTOR_PUBLICID_1_0, J2EEConstants.CONNECTOR_SYSTEMID_1_0}; - else - return null; - } - - //TODO doing the parse with SAX would be faster - public static int getFastSpecVersion(ModuleFile moduleFile) { - InputStream in = null; - String uri = moduleFile.getDeploymentDescriptorUri(); - try { - in = moduleFile.getInputStream(uri); - - DocumentType docType = null; - - InputSource source = new InputSource(in); - GeneralXmlDocumentReader aReader = new XmlDocumentReader(source); - aReader.setValidate(false); - Document aDocument = aReader.parseDocument(); - if (aDocument != null) { - docType = aDocument.getDoctype(); - } - int version = -1; - if (null != docType) { - String publicID = docType.getPublicId(); - String systemID = docType.getSystemId(); - if (publicID != null && systemID != null) { - version = lookupVersion(moduleFile, publicID, systemID); - } - } - if (version == -1) { - String schemaName = null; - String versionString = null; - if (aDocument != null) { - if (null == docType) { - NamedNodeMap map = aDocument.getDocumentElement().getAttributes(); - if (null != map) { - Node schemaNode = map.getNamedItem("xsi:schemaLocation"); //$NON-NLS-1$ - if (null != schemaNode) { - schemaName = schemaNode.getNodeValue(); - } - Node versionNode = map.getNamedItem("version");//$NON-NLS-1$ - if (null != versionNode) { - versionString = versionNode.getNodeValue(); - } - } - } - } - if (null != schemaName) { - version = lookupVersion(moduleFile, schemaName); - } - if (version == -1) { - version = parseVersionString(moduleFile, versionString); - } - } - - return version; - } catch (IOException ex) { - return -1; - } finally { - try { - if (in != null) - in.close(); - } catch (IOException ex) { - //Ignore - } - } - } - - private static int parseVersionString(ModuleFile moduleFile, String versionAttr) { - int version = -1; - if (moduleFile.isEARFile()) { - if (null == versionAttr) { - version = J2EEVersionConstants.J2EE_1_4_ID; - } else if (versionAttr.equals(J2EEVersionConstants.VERSION_1_2_TEXT)) { - version = J2EEVersionConstants.J2EE_1_2_ID; - } else if (versionAttr.equals(J2EEVersionConstants.VERSION_1_3_TEXT)) { - version = J2EEVersionConstants.J2EE_1_3_ID; - } else { - version = J2EEVersionConstants.J2EE_1_4_ID; - } - } else if (moduleFile.isEJBJarFile()) { - if (null == versionAttr) { - version = J2EEVersionConstants.EJB_2_1_ID; - } else if (versionAttr.equals(J2EEVersionConstants.VERSION_1_1_TEXT)) { - version = J2EEVersionConstants.EJB_1_1_ID; - } else if (versionAttr.equals(J2EEVersionConstants.VERSION_2_0_TEXT)) { - version = J2EEVersionConstants.EJB_2_0_ID; - } else { - version = J2EEVersionConstants.EJB_2_1_ID; - } - } else if (moduleFile.isApplicationClientFile()) { - if (null == versionAttr) { - version = J2EEVersionConstants.J2EE_1_4_ID; - } else if (versionAttr.equals(J2EEVersionConstants.VERSION_1_2_TEXT)) { - version = J2EEVersionConstants.J2EE_1_2_ID; - } else if (versionAttr.equals(J2EEVersionConstants.VERSION_1_3_TEXT)) { - version = J2EEVersionConstants.J2EE_1_3_ID; - } else { - version = J2EEVersionConstants.J2EE_1_4_ID; - } - } else if (moduleFile.isWARFile()) { - if (null == versionAttr) { - version = J2EEVersionConstants.WEB_2_4_ID; - } else if (versionAttr.equals(J2EEVersionConstants.VERSION_2_2_TEXT)) { - version = J2EEVersionConstants.WEB_2_2_ID; - } else if (versionAttr.equals(J2EEVersionConstants.VERSION_2_3_TEXT)) { - version = J2EEVersionConstants.WEB_2_3_ID; - } else { - version = J2EEVersionConstants.WEB_2_4_ID; - } - } else if (moduleFile.isRARFile()) { - if (null == versionAttr) { - version = J2EEVersionConstants.JCA_1_5_ID; - } else if (versionAttr.equals(J2EEVersionConstants.VERSION_1_0_TEXT)) { - version = J2EEVersionConstants.JCA_1_0_ID; - } else { - version = J2EEVersionConstants.JCA_1_5_ID; - } - } - return version; - - } - - private static int lookupVersion(ModuleFile moduleFile, String schemaName) { - int version = -1; - if (moduleFile.isEARFile()) { - if (schemaName.equals(J2EEConstants.APPLICATION_SCHEMA_1_4)) { - version = J2EEVersionConstants.J2EE_1_4_ID; - } - } else if (moduleFile.isEJBJarFile()) { - if ((schemaName.indexOf(J2EEConstants.EJBJAR_SCHEMA_2_1_NS)) != -1) { - version = J2EEVersionConstants.EJB_2_1_ID; - } - } else if (moduleFile.isApplicationClientFile()) { - if (schemaName.equals(J2EEConstants.APP_CLIENT_SCHEMA_1_4)) { - version = J2EEVersionConstants.J2EE_1_4_ID; - } - } else if (moduleFile.isWARFile()) { - if (schemaName.equals(J2EEConstants.WEBAPP_SCHEMA_2_4)) { - version = J2EEVersionConstants.WEB_2_4_ID; - } - } else if (moduleFile.isRARFile()) { - if (schemaName.equals(J2EEConstants.CONNECTOR_SCHEMA_1_5)) { - version = J2EEVersionConstants.JCA_1_5_ID; - } - } - return version; - } - - private static int lookupVersion(ModuleFile moduleFile, String publicID, String systemID) { - int version = -1; - if (moduleFile.isEARFile()) { - if (publicID.equals(J2EEConstants.APPLICATION_PUBLICID_1_3) && (systemID.equals(J2EEConstants.APPLICATION_SYSTEMID_1_3)||systemID.equals(J2EEConstants.APPLICATION_ALT_SYSTEMID_1_3))) { - version = J2EEVersionConstants.J2EE_1_3_ID; - } else if (publicID.equals(J2EEConstants.APPLICATION_PUBLICID_1_2) && (systemID.equals(J2EEConstants.APPLICATION_SYSTEMID_1_2)||systemID.equals(J2EEConstants.APPLICATION_ALT_SYSTEMID_1_2))) { - version = J2EEVersionConstants.J2EE_1_2_ID; - } else { - version = J2EEVersionConstants.J2EE_1_4_ID; - } - } else if (moduleFile.isEJBJarFile()) { - if (publicID.equals(J2EEConstants.EJBJAR_PUBLICID_2_0) && (systemID.equals(J2EEConstants.EJBJAR_SYSTEMID_2_0)||systemID.equals(J2EEConstants.EJBJAR_ALT_SYSTEMID_2_0))) { - version = J2EEVersionConstants.EJB_2_0_ID; - } else if (publicID.equals(J2EEConstants.EJBJAR_PUBLICID_1_1) && (systemID.equals(J2EEConstants.EJBJAR_SYSTEMID_1_1)||systemID.equals(J2EEConstants.EJBJAR_ALT_SYSTEMID_1_1))) { - version = J2EEVersionConstants.EJB_1_1_ID; - } else { - version = J2EEVersionConstants.EJB_2_1_ID; - } - } else if (moduleFile.isApplicationClientFile()) { - if (publicID.equals(J2EEConstants.APP_CLIENT_PUBLICID_1_3) && (systemID.equals(J2EEConstants.APP_CLIENT_SYSTEMID_1_3)||systemID.equals(J2EEConstants.APP_CLIENT_ALT_SYSTEMID_1_3))) { - version = J2EEVersionConstants.J2EE_1_3_ID; - } else if (publicID.equals(J2EEConstants.APP_CLIENT_PUBLICID_1_2) && (systemID.equals(J2EEConstants.APP_CLIENT_SYSTEMID_1_2)||systemID.equals(J2EEConstants.APP_CLIENT_ALT_SYSTEMID_1_2))) { - version = J2EEVersionConstants.J2EE_1_2_ID; - } else { - version = J2EEVersionConstants.J2EE_1_4_ID; - } - } else if (moduleFile.isWARFile()) { - if (publicID.equals(J2EEConstants.WEBAPP_PUBLICID_2_3) && (systemID.equals(J2EEConstants.WEBAPP_SYSTEMID_2_3)||systemID.equals(J2EEConstants.WEBAPP_ALT_SYSTEMID_2_3))) { - version = J2EEVersionConstants.WEB_2_3_ID; - } else if (publicID.equals(J2EEConstants.WEBAPP_PUBLICID_2_2) && (systemID.equals(J2EEConstants.WEBAPP_SYSTEMID_2_2)||systemID.equals(J2EEConstants.WEBAPP_ALT_SYSTEMID_2_2))) { - version = J2EEVersionConstants.WEB_2_2_ID; - } else { - version = J2EEVersionConstants.WEB_2_4_ID; - } - } else if (moduleFile.isRARFile()) { - if (publicID.equals(J2EEConstants.CONNECTOR_PUBLICID_1_0) && (systemID.equals(J2EEConstants.CONNECTOR_SYSTEMID_1_0)||systemID.equals(J2EEConstants.CONNECTOR_ALT_SYSTEMID_1_0))) { - version = J2EEVersionConstants.JCA_1_0_ID; - } else { - version = J2EEVersionConstants.JCA_1_5_ID; - } - } - return version; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ClasspathUtil.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ClasspathUtil.java deleted file mode 100644 index 2e39c5f07..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ClasspathUtil.java +++ /dev/null @@ -1,124 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - - -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; -import com.ibm.icu.util.StringTokenizer; -import java.util.jar.Attributes; -import java.util.jar.JarFile; -import java.util.jar.Manifest; - -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.RuntimeClasspathEntry; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.RuntimeClasspathEntryImpl; - - -public class ClasspathUtil { - - public static void processManifest(String inPath, List rtClasspath, Set processedPaths) { - ArrayList paths = getManifestPaths(inPath); - for (int i = 0; i < paths.size(); i++) { - RuntimeClasspathEntry entry = (RuntimeClasspathEntry) paths.get(i); - if (!processedPaths.contains(entry)) { - processedPaths.add(entry); - rtClasspath.add(entry); - processManifest(entry.getAbsolutePath(), rtClasspath, processedPaths); - } - } - } - - protected static RuntimeClasspathEntry createRuntimeClasspathEntry(String absolutePath, String manifestValue) { - RuntimeClasspathEntry entry = new RuntimeClasspathEntryImpl(); - entry.setAbsolutePath(absolutePath); - entry.setManifestValue(manifestValue); - return entry; - } - - protected static ArrayList getManifestPaths(String path) { - ArrayList manifestPaths = new ArrayList(); - File f = new File(path); - if (f.exists()) { - if (f.isDirectory()) { - File manifestFile = new File(path + File.separator + "META-INF" + File.separator + "MANIFEST.MF"); //$NON-NLS-1$ //$NON-NLS-2$ - if (manifestFile.exists()) { - FileInputStream inputStream = null; - try { - inputStream = new FileInputStream(manifestFile); - Manifest manifest = new Manifest(inputStream); - manifestPaths = getManifestClassPaths(manifest, f.getParent()); - } catch (IOException e) { - //Ignore - } finally { - if (null != inputStream) { - try { - inputStream.close(); - } catch (IOException ex) { - Logger.getLogger().logError(ex); - } - } - } - } - } else { - JarFile jarFile = null; - try { - jarFile = new JarFile(f); - Manifest manifest = jarFile.getManifest(); - if (manifest != null) - manifestPaths = getManifestClassPaths(manifest, f.getParent()); - } catch (IOException e) { - //Ignore - } finally { - if (jarFile != null) - try { - jarFile.close(); - } catch (IOException ex) { - //Ignore - } - } - } - } - return manifestPaths; - } - - protected static ArrayList getManifestClassPaths(Manifest manifest, String archivePath) { - ArrayList pathList = new ArrayList(); - Attributes main = manifest.getMainAttributes(); - String classPath = main.getValue(Attributes.Name.CLASS_PATH); - if (classPath != null) { - StringTokenizer st = new StringTokenizer(classPath, " "); //$NON-NLS-1$ - while (st.hasMoreTokens()) { - String token = st.nextToken(); - String path = archivePath + File.separator + token; - path = normalizePath(path); - if (new File(path).exists()) { - pathList.add(createRuntimeClasspathEntry(path, token)); - } - } - } - return pathList; - } - - public static String normalizePath(String path) { - File f = new File(path); - try { - f = f.getCanonicalFile(); - } catch (Exception ex) { - //Ignore - } - return f.getPath(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/CommonarchiveAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/CommonarchiveAdapterFactory.java deleted file mode 100644 index 02bbad602..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/CommonarchiveAdapterFactory.java +++ /dev/null @@ -1,367 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ApplicationClientFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ClientModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ConnectorModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBJarFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ReadOnlyDirectory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WebModuleRef; - - -public class CommonarchiveAdapterFactory extends AdapterFactoryImpl { - protected static CommonarchivePackage modelPackage; - - public CommonarchiveAdapterFactory() { - if (modelPackage == null) { - modelPackage = (CommonarchivePackage) EPackage.Registry.INSTANCE.getEPackage(CommonarchivePackage.eNS_URI); - } - } - - public boolean isFactoryForType(Object type) { - if (type == modelPackage) { - return true; - } - if (type instanceof EObject) { - return ((EObject) type).eClass().eContainer() == modelPackage; - } - return false; - } - - protected CommonarchiveSwitch sw = new CommonarchiveSwitch() { - public Object caseContainer(Container object) { - return createContainerAdapter(); - } - - public Object caseWARFile(WARFile object) { - return createWARFileAdapter(); - } - - public Object caseModuleFile(ModuleFile object) { - return createModuleFileAdapter(); - } - - public Object caseEARFile(EARFile object) { - return createEARFileAdapter(); - } - - public Object caseApplicationClientFile(ApplicationClientFile object) { - return createApplicationClientFileAdapter(); - } - - public Object caseEJBJarFile(EJBJarFile object) { - return createEJBJarFileAdapter(); - } - - public Object caseRARFile(RARFile object) { - return createRARFileAdapter(); - } - - public Object caseArchive(Archive object) { - return createArchiveAdapter(); - } - - public Object caseFile(File object) { - return createFileAdapter(); - } - - public Object caseReadOnlyDirectory(ReadOnlyDirectory object) { - return createReadOnlyDirectoryAdapter(); - } - }; - - public Adapter createAdapter(Notifier target) { - return (Adapter) sw.doSwitch((EObject) target); - } - - /** - * By default create methods return null so that we can easily ignore cases. It's useful to - * ignore a case when inheritance will catch all the cases anyway. - */ - - public Adapter createContainerAdapter() { - return null; - } - - public Adapter createEJBComponentAdapter() { - return null; - } - - public Adapter createModuleComponentAdapter() { - return null; - } - - public Adapter createServletComponentAdapter() { - return null; - } - - public Adapter createWARFileAdapter() { - return null; - } - - public Adapter createModuleFileAdapter() { - return null; - } - - public Adapter createEARFileAdapter() { - return null; - } - - public Adapter createApplicationClientFileAdapter() { - return null; - } - - public Adapter createEJBJarFileAdapter() { - return null; - } - - public Adapter createRARFileAdapter() { - return null; - } - - public Adapter createArchiveAdapter() { - return null; - } - - public Adapter createFileAdapter() { - return null; - } - - public Adapter createEJBClientJarFileAdapter() { - return null; - } - - public Adapter createReadOnlyDirectoryAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createModuleRefAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEJBModuleRefAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createWebModuleRefAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createClientModuleRefAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createConnectorModuleRefAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> This default - * implementation returns null. <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean isFactoryForTypeGen(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected CommonarchiveSwitch modelSwitch = - new CommonarchiveSwitch() { - public Object caseFile(File object) { - return createFileAdapter(); - } - public Object caseArchive(Archive object) { - return createArchiveAdapter(); - } - public Object caseEJBJarFile(EJBJarFile object) { - return createEJBJarFileAdapter(); - } - public Object caseWARFile(WARFile object) { - return createWARFileAdapter(); - } - public Object caseEARFile(EARFile object) { - return createEARFileAdapter(); - } - public Object caseApplicationClientFile(ApplicationClientFile object) { - return createApplicationClientFileAdapter(); - } - public Object caseModuleFile(ModuleFile object) { - return createModuleFileAdapter(); - } - public Object caseContainer(Container object) { - return createContainerAdapter(); - } - public Object caseReadOnlyDirectory(ReadOnlyDirectory object) { - return createReadOnlyDirectoryAdapter(); - } - public Object caseRARFile(RARFile object) { - return createRARFileAdapter(); - } - public Object caseModuleRef(ModuleRef object) { - return createModuleRefAdapter(); - } - public Object caseEJBModuleRef(EJBModuleRef object) { - return createEJBModuleRefAdapter(); - } - public Object caseWebModuleRef(WebModuleRef object) { - return createWebModuleRefAdapter(); - } - public Object caseClientModuleRef(ClientModuleRef object) { - return createClientModuleRefAdapter(); - } - public Object caseConnectorModuleRef(ConnectorModuleRef object) { - return createConnectorModuleRefAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAdapterGen(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * By default create methods return null so that we can easily ignore cases. It's useful to - * ignore a case when inheritance will catch all the cases anyway. - */ - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createContainerAdapterGen() { - - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createWARFileAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createModuleFileAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createApplicationClientFileAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEARFileAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEJBJarFileAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createRARFileAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createArchiveAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createFileAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createReadOnlyDirectoryAdapterGen() { - return null; - } - -} //CommonarchiveAdapterFactory - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/CommonarchiveSwitch.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/CommonarchiveSwitch.java deleted file mode 100644 index f426e7d27..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/CommonarchiveSwitch.java +++ /dev/null @@ -1,489 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ApplicationClientFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ClientModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchiveFactory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ConnectorModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBJarFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ReadOnlyDirectory; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WebModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl; - - -public class CommonarchiveSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected static CommonarchivePackage modelPackage; - - protected static CommonarchiveFactory factory; - - public CommonarchiveSwitch() { - factory = (CommonarchiveFactory) CommonarchiveFactoryImpl.getPackage().getEFactoryInstance(); - modelPackage = CommonarchiveFactoryImpl.getPackage(); - } - - public Object doSwitch(EObject theEObject) { - EClass theEClass = theEObject.eClass(); - if (theEClass.eContainer() != modelPackage) - return defaultCase(theEObject); - - switch (theEClass.getClassifierID()) { - case CommonarchivePackage.WAR_FILE : { - WARFile castedObject = (WARFile) theEObject; - Object result = caseWARFile(castedObject); - if (result == null) - result = caseModuleFile(castedObject); - if (result == null) - result = caseArchive(castedObject); - if (result == null) - result = caseContainer(castedObject); - if (result == null) - result = caseFile(castedObject); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.EAR_FILE : { - EARFile castedObject = (EARFile) theEObject; - Object result = caseEARFile(castedObject); - if (result == null) - result = caseModuleFile(castedObject); - if (result == null) - result = caseArchive(castedObject); - if (result == null) - result = caseContainer(castedObject); - if (result == null) - result = caseFile(castedObject); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.APPLICATION_CLIENT_FILE : { - ApplicationClientFile castedObject = (ApplicationClientFile) theEObject; - Object result = caseApplicationClientFile(castedObject); - if (result == null) - result = caseModuleFile(castedObject); - if (result == null) - result = caseArchive(castedObject); - if (result == null) - result = caseContainer(castedObject); - if (result == null) - result = caseFile(castedObject); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.EJB_JAR_FILE : { - EJBJarFile castedObject = (EJBJarFile) theEObject; - Object result = caseEJBJarFile(castedObject); - if (result == null) - result = caseModuleFile(castedObject); - if (result == null) - result = caseArchive(castedObject); - if (result == null) - result = caseContainer(castedObject); - if (result == null) - result = caseFile(castedObject); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.RAR_FILE : { - RARFile castedObject = (RARFile) theEObject; - Object result = caseRARFile(castedObject); - if (result == null) - result = caseModuleFile(castedObject); - if (result == null) - result = caseArchive(castedObject); - if (result == null) - result = caseContainer(castedObject); - if (result == null) - result = caseFile(castedObject); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.ARCHIVE : { - Archive castedObject = (Archive) theEObject; - Object result = caseArchive(castedObject); - if (result == null) - result = caseContainer(castedObject); - if (result == null) - result = caseFile(castedObject); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.FILE : { - File castedObject = (File) theEObject; - Object result = caseFile(castedObject); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.READ_ONLY_DIRECTORY : { - ReadOnlyDirectory castedObject = (ReadOnlyDirectory) theEObject; - Object result = caseReadOnlyDirectory(castedObject); - if (result == null) - result = caseContainer(castedObject); - if (result == null) - result = caseFile(castedObject); - if (result == null) - result = defaultCase(theEObject); - return result; - } - default : - return defaultCase(theEObject); - } - } // doSwitch - - public Object caseContainer(Container object) { - return null; - } - - public Object caseWARFile(WARFile object) { - return null; - } - - public Object caseModuleFile(ModuleFile object) { - return null; - } - - public Object caseEARFile(EARFile object) { - return null; - } - - public Object caseApplicationClientFile(ApplicationClientFile object) { - return null; - } - - public Object caseEJBJarFile(EJBJarFile object) { - return null; - } - - public Object caseRARFile(RARFile object) { - return null; - } - - public Object caseArchive(Archive object) { - return null; - } - - public Object caseFile(File object) { - return null; - } - - public Object caseReadOnlyDirectory(ReadOnlyDirectory object) { - return null; - } - - public Object defaultCase(EObject object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseModuleRef(ModuleRef object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseEJBModuleRef(EJBModuleRef object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseWebModuleRef(WebModuleRef object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseClientModuleRef(ClientModuleRef object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseConnectorModuleRef(ConnectorModuleRef object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object doSwitchGen(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case CommonarchivePackage.FILE: { - File file = (File)theEObject; - Object result = caseFile(file); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.ARCHIVE: { - Archive archive = (Archive)theEObject; - Object result = caseArchive(archive); - if (result == null) result = caseContainer(archive); - if (result == null) result = caseFile(archive); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.EJB_JAR_FILE: { - EJBJarFile ejbJarFile = (EJBJarFile)theEObject; - Object result = caseEJBJarFile(ejbJarFile); - if (result == null) result = caseModuleFile(ejbJarFile); - if (result == null) result = caseArchive(ejbJarFile); - if (result == null) result = caseContainer(ejbJarFile); - if (result == null) result = caseFile(ejbJarFile); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.WAR_FILE: { - WARFile warFile = (WARFile)theEObject; - Object result = caseWARFile(warFile); - if (result == null) result = caseModuleFile(warFile); - if (result == null) result = caseArchive(warFile); - if (result == null) result = caseContainer(warFile); - if (result == null) result = caseFile(warFile); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.EAR_FILE: { - EARFile earFile = (EARFile)theEObject; - Object result = caseEARFile(earFile); - if (result == null) result = caseModuleFile(earFile); - if (result == null) result = caseArchive(earFile); - if (result == null) result = caseContainer(earFile); - if (result == null) result = caseFile(earFile); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.APPLICATION_CLIENT_FILE: { - ApplicationClientFile applicationClientFile = (ApplicationClientFile)theEObject; - Object result = caseApplicationClientFile(applicationClientFile); - if (result == null) result = caseModuleFile(applicationClientFile); - if (result == null) result = caseArchive(applicationClientFile); - if (result == null) result = caseContainer(applicationClientFile); - if (result == null) result = caseFile(applicationClientFile); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.MODULE_FILE: { - ModuleFile moduleFile = (ModuleFile)theEObject; - Object result = caseModuleFile(moduleFile); - if (result == null) result = caseArchive(moduleFile); - if (result == null) result = caseContainer(moduleFile); - if (result == null) result = caseFile(moduleFile); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.CONTAINER: { - Container container = (Container)theEObject; - Object result = caseContainer(container); - if (result == null) result = caseFile(container); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.READ_ONLY_DIRECTORY: { - ReadOnlyDirectory readOnlyDirectory = (ReadOnlyDirectory)theEObject; - Object result = caseReadOnlyDirectory(readOnlyDirectory); - if (result == null) result = caseContainer(readOnlyDirectory); - if (result == null) result = caseFile(readOnlyDirectory); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.RAR_FILE: { - RARFile rarFile = (RARFile)theEObject; - Object result = caseRARFile(rarFile); - if (result == null) result = caseModuleFile(rarFile); - if (result == null) result = caseArchive(rarFile); - if (result == null) result = caseContainer(rarFile); - if (result == null) result = caseFile(rarFile); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.MODULE_REF: { - ModuleRef moduleRef = (ModuleRef)theEObject; - Object result = caseModuleRef(moduleRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.EJB_MODULE_REF: { - EJBModuleRef ejbModuleRef = (EJBModuleRef)theEObject; - Object result = caseEJBModuleRef(ejbModuleRef); - if (result == null) result = caseModuleRef(ejbModuleRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.WEB_MODULE_REF: { - WebModuleRef webModuleRef = (WebModuleRef)theEObject; - Object result = caseWebModuleRef(webModuleRef); - if (result == null) result = caseModuleRef(webModuleRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.CLIENT_MODULE_REF: { - ClientModuleRef clientModuleRef = (ClientModuleRef)theEObject; - Object result = caseClientModuleRef(clientModuleRef); - if (result == null) result = caseModuleRef(clientModuleRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonarchivePackage.CONNECTOR_MODULE_REF: { - ConnectorModuleRef connectorModuleRef = (ConnectorModuleRef)theEObject; - Object result = caseConnectorModuleRef(connectorModuleRef); - if (result == null) result = caseModuleRef(connectorModuleRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseContainerGen(Container object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseWARFileGen(WARFile object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseModuleFileGen(ModuleFile object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseApplicationClientFileGen(ApplicationClientFile object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseEARFileGen(EARFile object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseEJBJarFileGen(EJBJarFile object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseRARFileGen(RARFile object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseArchiveGen(Archive object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseFileGen(File object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseReadOnlyDirectoryGen(ReadOnlyDirectory object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object defaultCaseGen(EObject object) { - return null; - } - -} //CommonarchiveSwitch - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/DeleteOnExitUtility.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/DeleteOnExitUtility.java deleted file mode 100644 index e92f063c9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/DeleteOnExitUtility.java +++ /dev/null @@ -1,116 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2003, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - -import java.io.File; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Set; - - -/** - * @author jsholl - * - * TODO To change the template for this generated type comment go to Window - Preferences - Java - - * Code Style - Code Templates - */ -public class DeleteOnExitUtility { - - private static Set tempFilesToDelete; - private static boolean initialized = false; - private static int cleanupCount = 0; - private static final int CLEANUP_THRESHOLD = 10000; - - public static void markForDeletion(File file) { - if (!initialized) { - initialized = true; - try { - Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { - public void run() { - if (tempFilesToDelete != null) { - synchronized (tempFilesToDelete) { - Iterator iterator = tempFilesToDelete.iterator(); - File file = null; - while (iterator.hasNext()) { - try { - file = (File) iterator.next(); - if (file.exists()) { - file.delete(); - } - } catch (SecurityException e) { - } - } - } - } - } - })); - tempFilesToDelete = new HashSet(); - } catch (SecurityException e) { - } - } - if (tempFilesToDelete != null) { - synchronized (tempFilesToDelete) { - cleanupCount++; - tempFilesToDelete.add(file); - } - if (cleanupCount > CLEANUP_THRESHOLD) { - runCleanup(); - } - } - } - - public static void fileHasBeenDeleted(File file) { - if (tempFilesToDelete != null) { - synchronized (tempFilesToDelete) { - cleanupCount++; - try { - if (!file.exists()) { - tempFilesToDelete.remove(file); - } - } catch (SecurityException e) { - } - } - if (cleanupCount > CLEANUP_THRESHOLD) { - runCleanup(); - } - } - } - - public static void runCleanup() { - if (tempFilesToDelete != null) { - synchronized (tempFilesToDelete) { - cleanupCount = 0; - List filesToRemove = null; - Iterator iterator = tempFilesToDelete.iterator(); - File file = null; - while (iterator.hasNext()) { - try { - file = (File) iterator.next(); - if (!file.exists()) { - if (filesToRemove == null) { - filesToRemove = new ArrayList(); - } - filesToRemove.add(file); - } - } catch (SecurityException e) { - } - } - if (filesToRemove != null) { - tempFilesToDelete.removeAll(filesToRemove); - } - } - } - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/EARFileUtil.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/EARFileUtil.java deleted file mode 100644 index c22e9599b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/EARFileUtil.java +++ /dev/null @@ -1,90 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - - -import java.io.FileNotFoundException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.XMLResource; - - -public class EARFileUtil { - - /** - * Constructor for EARFileUtil. - */ - private EARFileUtil() { - super(); - } - - /** - * Returns a list of all module files which are a spec level too high for the EAR file. If the - * EAR is 1.3, returns an empty list. Otherwise returns any J2EE 1.3 modules. - */ - public static List getIncompatible13ModuleFiles(EARFile earFile) { - if (isJ2EE13(earFile)) - return Collections.EMPTY_LIST; - - List moduleFiles = earFile.getModuleFiles(); - List result = new ArrayList(); - for (int i = 0; i < moduleFiles.size(); i++) { - ModuleFile aModuleFile = (ModuleFile) moduleFiles.get(i); - if (isJ2EE13(aModuleFile)) - result.add(aModuleFile); - } - return result; - } - - /** - * Returns a list of all module files which are a spec level too high for the EAR file. If the - * EAR is 1.4, returns an empty list. Otherwise returns any J2EE 1.4 modules. - */ - public static List getIncompatible14ModuleFiles(EARFile earFile) { - if (isJ2EE14(earFile)) - return Collections.EMPTY_LIST; - - List moduleFiles = earFile.getModuleFiles(); - List result = new ArrayList(); - for (int i = 0; i < moduleFiles.size(); i++) { - ModuleFile aModuleFile = (ModuleFile) moduleFiles.get(i); - if (isJ2EE14(aModuleFile)) - result.add(aModuleFile); - } - return result; - } - - public static boolean isJ2EE13(ModuleFile aModuleFile) { - try { - XMLResource xmlResource = (XMLResource) aModuleFile.getDeploymentDescriptorResource(); - return xmlResource.getJ2EEVersionID() == J2EEVersionConstants.J2EE_1_3_ID; - } catch (FileNotFoundException ex) { - return false; - } - } - - public static boolean isJ2EE14(ModuleFile aModuleFile) { - try { - XMLResource xmlResource = (XMLResource) aModuleFile.getDeploymentDescriptorResource(); - return xmlResource.getJ2EEVersionID() == J2EEVersionConstants.J2EE_1_4_ID; - } catch (FileNotFoundException ex) { - return false; - } - } - - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/FileDups.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/FileDups.java deleted file mode 100644 index c2cdebef6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/FileDups.java +++ /dev/null @@ -1,201 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - - -import java.io.File; -import java.util.Arrays; -import java.util.Enumeration; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.Map; -import java.util.Set; -import com.ibm.icu.util.StringTokenizer; -import java.util.TreeMap; -import java.util.zip.ZipEntry; -import java.util.zip.ZipFile; - -/** - * Insert the type's description here. Creation date: (4/11/2001 10:28:44 AM) - * - * @author: Administrator - */ -public class FileDups { - private static int sFiles = 0; - private static int sDups = 0; - private static int sJARs = 0; - private static String[] excludedEntryNames = new String[]{"com/ibm/ivj/ejb/runtime/_CopyHelper_Stub.class", //$NON-NLS-1$ - "org/omg/stub/javax/ejb/_HomeHandle_Stub.class", //$NON-NLS-1$ - "org/omg/stub/javax/ejb/_Handle_Stub.class", //$NON-NLS-1$ - "org/omg/stub/javax/ejb/_EJBObject_Stub.class", //$NON-NLS-1$ - "org/omg/stub/javax/ejb/_EJBHome_Stub.class", //$NON-NLS-1$ - "org/omg/stub/java/lang/_Cloneable_Stub.class", //$NON-NLS-1$ - "com/ibm/websphere/csi/_TransactionalObject_Stub.class", //$NON-NLS-1$ - "com/ibm/websphere/csi/_CSIServant_Stub.class", //$NON-NLS-1$ - "com/ibm/ejs/container/_EJSWrapper_Tie.class", //$NON-NLS-1$ - "com/ibm/ejs/container/_EJSWrapper_Stub.class" //$NON-NLS-1$ - }; - private static HashSet excluded = new HashSet(Arrays.asList(excludedEntryNames)); - - private static void addEntry(String entry, Map map, String jarName) { - sFiles++; - - Object current = map.get(entry); - if (current == null) { - // This is the first time the entry is found - map.put(entry, jarName); - } else if (current instanceof String) { - // There is one other entry - map.remove(entry); - - String other = (String) current; - LinkedList list = new LinkedList(); - list.addFirst(other); - list.addFirst(jarName); - map.put(entry, list); - - sDups++; - } else { - // There are more than one other instances - LinkedList list = (LinkedList) current; - list.addFirst(jarName); - - sDups++; - } - } - - /** - * Starts the application. - * - * @param args - * an array of command-line arguments - */ - public static void main(java.lang.String[] args) { - if (args.length != 1) { - StringBuffer sb = new StringBuffer(); - sb.append("FileDups utility\r\n\r\n"); //$NON-NLS-1$ - sb.append("Synopsis:\r\n"); //$NON-NLS-1$ - sb.append("Analyzes JAR and ZIP files in a directory for duplicate entries with the same name. This excludes all entries in the \"META-INF\" directory of the archive. This does not check timestamps or size.\r\n\r\n"); //$NON-NLS-1$ - sb.append("Usage: FileDups dirName\r\n"); //$NON-NLS-1$ - System.out.println(sb.toString()); - return; - } - - TreeMap map = new TreeMap(); - - try { - for (int i = 0; i < args.length; i++) { - File root = new File(args[i]); - processDirectory(root, map); - } - - TreeMap outputMap = new TreeMap(); - - Set set = map.entrySet(); - Iterator it = set.iterator(); - while (it.hasNext()) { - Map.Entry me = (Map.Entry) it.next(); - Object o = me.getValue(); - if (o instanceof LinkedList) { - StringBuffer jars = new StringBuffer(); - - LinkedList list = (LinkedList) o; - Iterator entryIter = list.iterator(); - while (entryIter.hasNext()) { - jars.append(entryIter.next()); - jars.append("\r\n"); //$NON-NLS-1$ - } - - LinkedList outputList = (LinkedList) outputMap.get(jars.toString()); - if (outputList == null) { - outputList = new LinkedList(); - outputMap.put(jars.toString(), outputList); - } - outputList.addFirst(me.getKey()); - } - } - - Set outSet = outputMap.entrySet(); - it = outSet.iterator(); - while (it.hasNext()) { - Map.Entry me = (Map.Entry) it.next(); - String jars = (String) me.getKey(); - StringTokenizer tokens = new StringTokenizer(jars, "\r\n"); //$NON-NLS-1$ - - while (tokens.hasMoreTokens()) { - System.out.println(tokens.nextToken()); - } - - LinkedList list = (LinkedList) me.getValue(); - Iterator entryIter = list.iterator(); - while (entryIter.hasNext()) { - System.out.println(" " + (String) entryIter.next()); //$NON-NLS-1$ - } - } - - System.out.println("\r\nSearched " + sJARs + " jars, found " + sDups + " dups in " + sFiles + " files."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ - } catch (Exception x) { - x.printStackTrace(); - } - } - - private static void processDirectory(File root, Map map) throws java.io.IOException { - File[] files = root.listFiles(); - for (int i = 0; i < files.length; i++) { - File f = files[i]; - if (f.isDirectory()) - processDirectory(f, map); - else { - String name = f.getName().toLowerCase(); - if (name.endsWith(".zip") || name.endsWith(".jar")) //$NON-NLS-1$ //$NON-NLS-2$ - { - processFile(f, map); - } - } - } - } - - private static void processFile(File file, Map map) throws java.io.IOException { - HashSet filesInFile = new HashSet(); - - sJARs++; - ZipFile zip = null; - try { - zip = new ZipFile(file); - Enumeration eNum = zip.entries(); - while (eNum.hasMoreElements()) { - ZipEntry entry = (ZipEntry) eNum.nextElement(); - String name = entry.getName(); - if (!name.startsWith("META-INF") && !excluded.contains(name)) //$NON-NLS-1$ - filesInFile.add(name); - } - } catch (Exception x) { - System.out.println("*Error searching in " + file.getAbsolutePath()); //$NON-NLS-1$ - } finally { - try { - if (zip != null) - zip.close(); - } catch (java.io.IOException ignored) { - //Ignore - } - } - - // Now add the packages to the map - String filename = file.getPath(); - - Iterator it = filesInFile.iterator(); - while (it.hasNext()) { - String entryName = (String) it.next(); - addEntry(entryName, map, filename); - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ObjectInputStreamCustomResolver.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ObjectInputStreamCustomResolver.java deleted file mode 100644 index 76cef83c1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/ObjectInputStreamCustomResolver.java +++ /dev/null @@ -1,102 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - - - -import java.io.IOException; -import java.io.InputStream; -import java.io.ObjectStreamClass; -import java.io.StreamCorruptedException; -import java.lang.reflect.Array; - -public class ObjectInputStreamCustomResolver extends java.io.ObjectInputStream { - private ClassLoader cl; - - /** - * Constructor - */ - - public ObjectInputStreamCustomResolver(InputStream is, ClassLoader loader) throws IOException, StreamCorruptedException { - - super(is); - - if (loader != null) - cl = loader; - - } - - /** - * Gets the java type class given a signature letter. - */ - - private Class getType(char type) { - - switch (type) { - case 'B' : - return byte.class; - case 'C' : - return char.class; - case 'D' : - return double.class; - case 'F' : - return float.class; - case 'I' : - return int.class; - case 'J' : - return long.class; - case 'S' : - return short.class; - case 'Z' : - return boolean.class; - default : - return null; - } - - } - - /** - * This overrides the default resolveClass() method to use a custom class loader. - */ - - protected Class resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException { - - String className = classDesc.getName(); - - //UtilsTrace.trace(" ObjectInputStreamCustomResolver: Resolving " + className); - - // Handle arrays of classes differently - - if (className.startsWith("[")) {//$NON-NLS-1$ - - Class component = null; - int dimNum; - - for (dimNum = 1; className.charAt(dimNum) == '['; dimNum++) - - if (className.charAt(dimNum) == 'L') { - component = cl.loadClass(className.substring(dimNum + 1, className.length() - 1)); - } else { - if (className.length() != dimNum + 1) - throw new ClassNotFoundException(className); // malformed - component = getType(className.charAt(dimNum)); - } - - int dimensions[] = new int[dimNum]; - for (int i = 0; i < dimNum; i++) - dimensions[i] = 0; - - return Array.newInstance(component, dimensions).getClass(); - - } - return cl.loadClass(className); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/RarFileDynamicClassLoader.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/RarFileDynamicClassLoader.java deleted file mode 100644 index c7a26abbe..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/RarFileDynamicClassLoader.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Jun 2, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - -import java.util.List; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile; - - -public class RarFileDynamicClassLoader extends ArchiveFileDynamicClassLoader { - - public RarFileDynamicClassLoader(Archive anArchive, ClassLoader parentCl, ClassLoader extraCl) { - super(anArchive, parentCl, extraCl); - } - - protected File getFile(String name) { - List children = getRarFile().getArchiveFiles(); - for (int i = 0; i < children.size(); i++) { - try { - return ((Archive) children.get(i)).getFile(name); - } catch (java.io.FileNotFoundException ex) { - continue; - } - } - return getFileFromDependentJar(name); - } - - private RARFile getRarFile() { - return (RARFile) getArchive(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/WarFileDynamicClassLoader.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/WarFileDynamicClassLoader.java deleted file mode 100644 index e59c6a234..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/util/WarFileDynamicClassLoader.java +++ /dev/null @@ -1,74 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Jun 23, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.commonarchivecore.internal.util; - -import java.util.List; - -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.commonarchivecore.internal.File; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveConstants; -import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions; - - -/** - * @author dfholttp - * - * To change the template for this generated type comment go to Window>Preferences>Java>Code - * Generation>Code and Comments - */ -public class WarFileDynamicClassLoader extends ArchiveFileDynamicClassLoader { - - private boolean allowLoadingFromWAR = true; - - public WarFileDynamicClassLoader(Archive anArchive, ClassLoader parentCl, ClassLoader extraCl) { - super(anArchive, parentCl, extraCl); - allowLoadingFromWAR = anArchive.getOptions().getClassLoadingMode() == ArchiveOptions.LOAD_MODE_COMPAT; - } - - protected File getFile(String name) { - //search classes directory first, then war, then nested archives. - //search classes directory - String swizzledName = ArchiveUtil.concatUri(ArchiveConstants.WEBAPP_CLASSES_URI, name, '/'); - try { - return getWarFile().getFile(swizzledName); - } catch (java.io.FileNotFoundException ex) { - } - //search war if running with compatibility - if (allowLoadingFromWAR) { - File file = getFileFromArchive(name); - if (file != null) { - return file; - } - } - //search nested archives - List children = getWarFile().getLibs(); - for (int i = 0; i < children.size(); i++) { - try { - return ((Archive) children.get(i)).getFile(name); - } catch (java.io.FileNotFoundException ex) { - continue; - } - } - //finally search jars in ear - return getFileFromDependentJar(name); - } - - private WARFile getWarFile() { - return (WARFile) getArchive(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseApplication.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseApplication.java deleted file mode 100644 index 4f8a48552..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseApplication.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal; - - - -import org.eclipse.emf.common.util.EList; - - -public interface LooseApplication extends LooseArchive { - /** - * @generated This field/method will be replaced during code generation - * @return The list of LooseArchives references - */ - EList getLooseArchives(); - -} //LooseApplication - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseArchive.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseArchive.java deleted file mode 100644 index c7cf1866f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseArchive.java +++ /dev/null @@ -1,80 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal; - - - -import org.eclipse.emf.ecore.EObject; - - -public interface LooseArchive extends EObject { - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Uri attribute - */ - String getUri(); - - /** - * @generated This field/method will be replaced during code generation - * @param value - * The new value of the Uri attribute - */ - void setUri(String value); - - boolean isEAR(); - - boolean isWAR(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the BinariesPath attribute - */ - String getBinariesPath(); - - /** - * @generated This field/method will be replaced during code generation - * @param value - * The new value of the BinariesPath attribute - */ - void setBinariesPath(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ResourcesPath attribute - */ - String getResourcesPath(); - - /** - * @generated This field/method will be replaced during code generation - * @param value - * The new value of the ResourcesPath attribute - */ - void setResourcesPath(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The LooseApp reference - */ - LooseApplication getLooseApp(); - - /** - * @generated This field/method will be replaced during code generation - * @param l - * The new value of the LooseApp reference - */ - void setLooseApp(LooseApplication value); - - boolean isModule(); - -} //LooseArchive - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseConfigRegister.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseConfigRegister.java deleted file mode 100644 index 17c670796..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseConfigRegister.java +++ /dev/null @@ -1,358 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal; - -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Container; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveRuntimeException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; -import org.eclipse.wst.common.internal.emf.utilities.StringUtil; - - -/** - * Used internally for loose module support - */ -public class LooseConfigRegister { - - /** - * The system property used to specify the absolute path to the loose config document; - * "was.loose.config" - */ - public static final String LOOSE_CONFIG_PROPERTY = "was.loose.config"; //$NON-NLS-1$ - - protected static LooseConfigRegister singleton; - - protected LooseConfiguration looseConfiguration; - - protected ResourceSet resourceSet; - - /** Have we previously loaded or tried to load the loose configuration? */ - protected boolean loadAttempted = false; - - private Map looseEarMap; - - /** - * Constructor for LooseConfigRegister. - */ - protected LooseConfigRegister() { - super(); - initialize(); - } - - public static LooseConfigRegister singleton() { - if (singleton == null) - singleton = new LooseConfigRegister(); - - return singleton; - } - - /** - * Searches for the ear file in the fluffed LooseConfiguration object, and attempts to load the - * LooseApplication on demand from the existing mappings if it is not already loaded. - * - * @param earFileURI - * @return - */ - public LooseApplication findLooseApplication(String earFileURI) { - // System.out.println(getClass().getName() + ".findLooseApplication(String - // earFileURI=\""+earFileURI+"\")"); - if (getLooseConfiguration() != null) { - List apps = getLooseConfiguration().getApplications(); - for (int i = 0; i < apps.size(); i++) { - LooseApplication app = (LooseApplication) apps.get(i); - // System.out.println(getClass().getName() + ".findLooseApplication(): - // app["+i+"].getURI()=\""+app.getUri()+"\"" ); - if (app.getUri().equals(earFileURI)) - return app; - } - } - // System.out.println(getClass().getName() + ".findLooseApplication(): did not find loaded - // LooseApplication, loading new value." ); - if (getDocumentURI() == null || getDocumentURI().trim().length() == 0) { - URI looseConfig = (URI) getLooseEarMap().get(earFileURI); - // System.out.println(getClass().getName() + ".findLooseApplication(): looseConfig URI - // from map \""+looseConfig+"\""); - LooseApplication application = loadLooseApplication(looseConfig); - // System.out.println(getClass().getName() + ".findLooseApplication(): - // looseApplication="+application); - if (application != null) { - List modules = application.getLooseArchives(); - // System.out.println(getClass().getName() + ".findLooseApplication(): - // looseApplication contains " + modules.size() + " modules."); - for (int i = 0; i < modules.size(); i++) - // System.out.println(getClass().getName() + ".findLooseApplication(): - // modules.get("+i+"):"+ modules.get(i)); - getLooseConfiguration().getApplications().add(application); - return application; - } - } - return null; - } - - /** - * @param earFileURI - * The containing EAR -- the absolute file system URI will be determined - * automatically - * @param looseApplicationResource - * The absolute file system URI of a document containing a LooseApplication as its - * root - */ - public void addLooseMapping(Container container, String looseApplicationResource) { - if (container != null) - addLooseMapping(ArchiveUtil.getOSUri(container.getURI()), looseApplicationResource); - } - - /** - * @param earFileURI - * The absolute file system URI of the EAR file of the given mapping - * @param looseApplicationResource - * The absolute file system URI of a document containing a LooseApplication as its - * root - */ - public void addLooseMapping(String earFileURI, String looseApplicationResource) { - if (earFileURI != null) { - // System.out.println(getClass().getName() + ".addLooseMapping(String - // earFileURI=\""+earFileURI+"\", String - // looseApplicationResource=\""+looseApplicationResource+"\")"); - if (getLooseEarMap().containsKey(earFileURI)) { - // System.out.println(getClass().getName() + ".addLooseMapping(): Found existing key - // with same earFileURI, looking for loaded app."); - LooseApplication app = findLooseApplicationIfLoaded(earFileURI); - // System.out.println(getClass().getName() + ".addLooseMapping(): Loaded app=" + - // app); - if (app != null) { - Resource res = loadLooseApplicationResource(URI.createURI(looseApplicationResource)); - // System.out.println(getClass().getName() + ".addLooseMapping(): clearing - // resource:" + res); - res.unload(); - removeLooseApplication(app); - } - } - getLooseEarMap().put(earFileURI, URI.createURI(looseApplicationResource)); - } - } - - /** - * @param earFileURI - * @return - */ - public LooseApplication findLooseApplicationIfLoaded(String earFileURI) { - // System.out.println(getClass().getName() + ".findLooseApplicationIfLoaded(String - // earFileURI=\""+earFileURI+"\")"); - if (getLooseConfiguration() != null) { - List apps = getLooseConfiguration().getApplications(); - for (int i = 0; i < apps.size(); i++) { - LooseApplication app = (LooseApplication) apps.get(i); - // System.out.println(getClass().getName() + ".findLooseApplicationIfLoaded(): - // app["+i+"].getURI()=\""+app.getUri()+"\"" ); - if (app.getUri().equals(earFileURI)) - return app; - } - } - return null; - } - - /** - * Allows adding LooseApplications dynmically. - * - * @param application - * An application created and persisted by an external entity - */ - public void addLooseApplication(LooseApplication application) { - getLooseConfiguration().getApplications().add(application); - } - - /** - * Allows removing LooseApplications dynmically. - * - * @param application - * An application created and persisted by an external entity - */ - public void removeLooseApplication(LooseApplication application) { - // System.out.println(getClass().getName() + ".removeLooseApplication(LooseApplication - // application=\""+application+"\")"); - getLooseConfiguration().getApplications().remove(application); - } - - /** - * @param earFileURI - * The absolute file system URI of the EAR file of the given mapping - */ - public void removeLooseMapping(String earFileURI) { - // System.out.println(getClass().getName() + ".removeLooseMapping(String - // earFileURI=\""+earFileURI+"\")"); - if (earFileURI != null) - getLooseEarMap().remove(earFileURI); - } - - public LooseModule findLooseModule(LooseApplication app, String uri, String altDD) { - List archives = app.getLooseArchives(); - for (int i = 0; i < archives.size(); i++) { - LooseArchive element = (LooseArchive) archives.get(i); - if (!element.isModule()) - continue; - - if (StringUtil.stringsEqual(uri, element.getUri()) && StringUtil.stringsEqual(altDD, ((LooseModule) element).getAltDD())) - return (LooseModule) element; - } - return null; - } - - public LooseModule findLooseModule(Module m, EARFile ear) { - LooseApplication app = findLooseApplication(ear.getURI()); - return app == null ? null : findLooseModule(app, m.getUri(), m.getAltDD()); - } - - /** - * Clears the loose configuration; the next time it is requested it will be reloaded; - */ - public void flush() { - loadAttempted = false; - looseConfiguration = null; - resourceSet = new ResourceSetImpl(); - } - - protected void initialize() { - resourceSet = new ResourceSetImpl(); - } - - protected void loadLooseConfiguration() { - Resource res = loadLooseConfigurationResource(); - if (res != null && !res.getContents().isEmpty()) - setLooseConfiguration((LooseConfiguration) res.getContents().get(0)); - else - /* - * if the document is empty then fluff up a LooseConfiguration object - */ - setLooseConfiguration(LooseconfigFactory.eINSTANCE.createLooseConfiguration()); - loadAttempted = true; - } - - protected Resource loadLooseConfigurationResource() { - String uri = getDocumentURI(); - if (ArchiveUtil.isNullOrEmpty(uri)) - return null; - try { - return resourceSet.getResource(URI.createURI(uri), true); - } catch (Exception ex) { - throw new ArchiveRuntimeException("Exception occurred loading loose configuration", ex); //$NON-NLS-1$ - } - } - - protected LooseApplication loadLooseApplication(URI looseAppURI) { - Resource res = loadLooseApplicationResource(looseAppURI); - if (res != null && !res.getContents().isEmpty()) - return (LooseApplication) res.getContents().get(0); - return null; - } - - protected Resource loadLooseApplicationResource(URI looseConfigURI) { - if (looseConfigURI == null) - return null; - try { - return resourceSet.getResource(looseConfigURI, true); - } catch (Exception ex) { - throw new ArchiveRuntimeException("Exception occurred loading loose application", ex); //$NON-NLS-1$ - } - } - - /** - * Gets the looseConfiguration. Basic accessor with no initialization - * - * @return Returns a LooseConfiguration - */ - public LooseConfiguration primGetLooseConfiguration() { - return looseConfiguration; - } - - /** The value of the loose config property */ - protected String getDocumentURI() { - return System.getProperty(LOOSE_CONFIG_PROPERTY); - } - - /** - * Gets the looseConfiguration. Tries to load it using the system property was.loose.config, if - * necessary. - * - * @return Returns a LooseConfiguration or null - */ - public LooseConfiguration getLooseConfiguration() { - if (looseConfiguration == null && !loadAttempted) - loadLooseConfiguration(); - return looseConfiguration; - } - - /** - * Assumption: the parameter must be a type that can have children, e.g., LooseWAR or - * LooseApplication - */ - public List getLooseChildren(LooseArchive loose) { - if (loose != null) { - if (loose.isEAR()) - return ((LooseApplication) loose).getLooseArchives(); - else if (loose.isWAR()) - return ((LooseWARFile) loose).getLooseLibs(); - } - return Collections.EMPTY_LIST; - } - - /** - * Assumption: the parameter must be a type that can have children, e.g., LooseWAR or - * LooseApplication - */ - public LooseArchive findFirstLooseChild(String uri, LooseArchive loose) { - List children = getLooseChildren(loose); - for (int i = 0; i < children.size(); i++) { - LooseArchive child = (LooseArchive) children.get(i); - if (StringUtil.stringsEqual(uri, child.getUri())) - return loose; - } - return null; - } - - /** - * Sets the looseConfiguration. - * - * @param looseConfiguration - * The looseConfiguration to set - */ - public void setLooseConfiguration(LooseConfiguration config) { - looseConfiguration = config; - } - - /** - * Have we previously loaded or tried to load the loose configuration? - * - * @return Returns a boolean - */ - public boolean getLoadAttempted() { - return loadAttempted; - } - - /** - * @return Returns the looseEarMap. - */ - public Map getLooseEarMap() { - if (looseEarMap == null) - looseEarMap = new HashMap(); - return looseEarMap; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseConfiguration.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseConfiguration.java deleted file mode 100644 index 7df3fcef7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseConfiguration.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal; - - - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - - -public interface LooseConfiguration extends EObject { - /** - * @generated This field/method will be replaced during code generation - * @return The list of Applications references - */ - EList getApplications(); - -} //LooseConfiguration - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseLibrary.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseLibrary.java deleted file mode 100644 index 4e4b31c85..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseLibrary.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal; - - - - -public interface LooseLibrary extends LooseArchive { - /** - * @generated This field/method will be replaced during code generation - * @return The LooseWAR reference - */ - LooseWARFile getLooseWAR(); - - /** - * @generated This field/method will be replaced during code generation - * @param l - * The new value of the LooseWAR reference - */ - void setLooseWAR(LooseWARFile value); - -} //LooseLibrary - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseModule.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseModule.java deleted file mode 100644 index 39888c843..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseModule.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal; - - - - -public interface LooseModule extends LooseArchive { - /** - * @generated This field/method will be replaced during code generation - * @return The value of the AltDD attribute - */ - String getAltDD(); - - /** - * @generated This field/method will be replaced during code generation - * @param value - * The new value of the AltDD attribute - */ - void setAltDD(String value); - -} //LooseModule - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseWARFile.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseWARFile.java deleted file mode 100644 index 4bea0474e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseWARFile.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal; - - - -import org.eclipse.emf.common.util.EList; - - -public interface LooseWARFile extends LooseModule { - /** - * @generated This field/method will be replaced during code generation - * @return The list of LooseLibs references - */ - EList getLooseLibs(); - -} //LooseWARFile - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseconfigFactory.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseconfigFactory.java deleted file mode 100644 index 2a9007606..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseconfigFactory.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal; - - -import org.eclipse.emf.ecore.EFactory; - - -public interface LooseconfigFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - LooseconfigFactory eINSTANCE = new org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl.LooseconfigFactoryImpl(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseApplication value - */ - LooseApplication createLooseApplication(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseLibrary value - */ - LooseLibrary createLooseLibrary(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseWARFile value - */ - LooseWARFile createLooseWARFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseModule value - */ - LooseModule createLooseModule(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseConfiguration value - */ - LooseConfiguration createLooseConfiguration(); - - /** - * @generated This field/method will be replaced during code generation. - */ - LooseconfigPackage getLooseconfigPackage(); - -} //LooseconfigFactory - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseconfigPackage.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseconfigPackage.java deleted file mode 100644 index d17963a20..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/LooseconfigPackage.java +++ /dev/null @@ -1,334 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal; - - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - - -/** - * @lastgen interface LooseconfigPackage extends EPackage {} - */ -public interface LooseconfigPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - String eNAME = "looseconfig"; //$NON-NLS-1$ - - /** - * @generated This field/method will be replaced during code generation. - */ - - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_APPLICATION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_ARCHIVE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_ARCHIVE__URI = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_ARCHIVE__BINARIES_PATH = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_ARCHIVE__RESOURCES_PATH = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_ARCHIVE__LOOSE_APP = 3; - - /** - * The number of structural features of the the '<em>Loose Archive</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int LOOSE_ARCHIVE_FEATURE_COUNT = 4; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_APPLICATION__URI = LOOSE_ARCHIVE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_APPLICATION__BINARIES_PATH = LOOSE_ARCHIVE__BINARIES_PATH; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_APPLICATION__RESOURCES_PATH = LOOSE_ARCHIVE__RESOURCES_PATH; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_APPLICATION__LOOSE_APP = LOOSE_ARCHIVE__LOOSE_APP; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_APPLICATION__LOOSE_ARCHIVES = LOOSE_ARCHIVE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Loose Application</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int LOOSE_APPLICATION_FEATURE_COUNT = LOOSE_ARCHIVE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_LIBRARY = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_LIBRARY__URI = LOOSE_ARCHIVE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_LIBRARY__BINARIES_PATH = LOOSE_ARCHIVE__BINARIES_PATH; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_LIBRARY__RESOURCES_PATH = LOOSE_ARCHIVE__RESOURCES_PATH; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_LIBRARY__LOOSE_APP = LOOSE_ARCHIVE__LOOSE_APP; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_LIBRARY__LOOSE_WAR = LOOSE_ARCHIVE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Loose Library</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int LOOSE_LIBRARY_FEATURE_COUNT = LOOSE_ARCHIVE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_WAR_FILE = 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_MODULE = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_MODULE__URI = LOOSE_ARCHIVE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_MODULE__BINARIES_PATH = LOOSE_ARCHIVE__BINARIES_PATH; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_MODULE__RESOURCES_PATH = LOOSE_ARCHIVE__RESOURCES_PATH; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_MODULE__LOOSE_APP = LOOSE_ARCHIVE__LOOSE_APP; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_MODULE__ALT_DD = LOOSE_ARCHIVE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Loose Module</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int LOOSE_MODULE_FEATURE_COUNT = LOOSE_ARCHIVE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_CONFIGURATION = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_CONFIGURATION__APPLICATIONS = 0; - - - /** - * The number of structural features of the the '<em>Loose Configuration</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int LOOSE_CONFIGURATION_FEATURE_COUNT = 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_WAR_FILE__URI = LOOSE_MODULE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_WAR_FILE__BINARIES_PATH = LOOSE_MODULE__BINARIES_PATH; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_WAR_FILE__RESOURCES_PATH = LOOSE_MODULE__RESOURCES_PATH; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_WAR_FILE__LOOSE_APP = LOOSE_MODULE__LOOSE_APP; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_WAR_FILE__ALT_DD = LOOSE_MODULE__ALT_DD; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOOSE_WAR_FILE__LOOSE_LIBS = LOOSE_MODULE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Loose WAR File</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int LOOSE_WAR_FILE_FEATURE_COUNT = LOOSE_MODULE_FEATURE_COUNT + 1; - - - /** - * @generated This field/method will be replaced during code generation. - */ - String eNS_URI = "commonarchive.looseconfig.xmi"; //$NON-NLS-1$ - /** - * The package namespace name. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.commonarchivecore.looseconfig"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - LooseconfigPackage eINSTANCE = org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl.LooseconfigPackageImpl.init(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseApplication object - */ - EClass getLooseApplication(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getLooseApplication_LooseArchives(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseArchive object - */ - EClass getLooseArchive(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getLooseArchive_Uri(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getLooseArchive_BinariesPath(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getLooseArchive_ResourcesPath(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getLooseArchive_LooseApp(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseLibrary object - */ - EClass getLooseLibrary(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getLooseLibrary_LooseWAR(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseWARFile object - */ - EClass getLooseWARFile(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getLooseWARFile_LooseLibs(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseModule object - */ - EClass getLooseModule(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getLooseModule_AltDD(); - - /** - * @generated This field/method will be replaced during code generation - * @return LooseConfiguration object - */ - EClass getLooseConfiguration(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getLooseConfiguration_Applications(); - - /** - * @generated This field/method will be replaced during code generation. - */ - LooseconfigFactory getLooseconfigFactory(); - -} //LooseconfigPackage - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseApplicationImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseApplicationImpl.java deleted file mode 100644 index ea23d13e9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseApplicationImpl.java +++ /dev/null @@ -1,213 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl; - - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; - -public class LooseApplicationImpl extends LooseArchiveImpl implements LooseApplication, LooseArchive { - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList looseArchives = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected LooseApplicationImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return LooseconfigPackage.eINSTANCE.getLooseApplication(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getLooseArchives() { - if (looseArchives == null) { - looseArchives = new EObjectContainmentWithInverseEList(LooseArchive.class, this, LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES, LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP); - } - return looseArchives; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, LooseconfigPackage.LOOSE_APPLICATION__LOOSE_APP, msgs); - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES: - return ((InternalEList)getLooseArchives()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_APP: - return eBasicSetContainer(null, LooseconfigPackage.LOOSE_APPLICATION__LOOSE_APP, msgs); - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES: - return ((InternalEList)getLooseArchives()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_APP: - return eContainer.eInverseRemove(this, LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES, LooseApplication.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_APPLICATION__URI: - return getUri(); - case LooseconfigPackage.LOOSE_APPLICATION__BINARIES_PATH: - return getBinariesPath(); - case LooseconfigPackage.LOOSE_APPLICATION__RESOURCES_PATH: - return getResourcesPath(); - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_APP: - return getLooseApp(); - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES: - return getLooseArchives(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_APPLICATION__URI: - setUri((String)newValue); - return; - case LooseconfigPackage.LOOSE_APPLICATION__BINARIES_PATH: - setBinariesPath((String)newValue); - return; - case LooseconfigPackage.LOOSE_APPLICATION__RESOURCES_PATH: - setResourcesPath((String)newValue); - return; - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_APP: - setLooseApp((LooseApplication)newValue); - return; - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES: - getLooseArchives().clear(); - getLooseArchives().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_APPLICATION__URI: - setUri(URI_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_APPLICATION__BINARIES_PATH: - setBinariesPath(BINARIES_PATH_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_APPLICATION__RESOURCES_PATH: - setResourcesPath(RESOURCES_PATH_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_APP: - setLooseApp((LooseApplication)null); - return; - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES: - getLooseArchives().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_APPLICATION__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case LooseconfigPackage.LOOSE_APPLICATION__BINARIES_PATH: - return BINARIES_PATH_EDEFAULT == null ? binariesPath != null : !BINARIES_PATH_EDEFAULT.equals(binariesPath); - case LooseconfigPackage.LOOSE_APPLICATION__RESOURCES_PATH: - return RESOURCES_PATH_EDEFAULT == null ? resourcesPath != null : !RESOURCES_PATH_EDEFAULT.equals(resourcesPath); - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_APP: - return getLooseApp() != null; - case LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES: - return looseArchives != null && !looseArchives.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - public boolean isEAR() { - return true; - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseArchiveImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseArchiveImpl.java deleted file mode 100644 index 98dfd2b7d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseArchiveImpl.java +++ /dev/null @@ -1,326 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl; - - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; - -public class LooseArchiveImpl extends EObjectImpl implements LooseArchive, EObject { - /** - * The default value of the '{@link #getUri() <em>Uri</em>}' attribute. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @see #getUri() - * @generated - * @ordered - */ - protected static final String URI_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String uri = URI_EDEFAULT; - /** - * The default value of the '{@link #getBinariesPath() <em>Binaries Path</em>}' attribute. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @see #getBinariesPath() - * @generated - * @ordered - */ - protected static final String BINARIES_PATH_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String binariesPath = BINARIES_PATH_EDEFAULT; - /** - * The default value of the '{@link #getResourcesPath() <em>Resources Path</em>}' attribute. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @see #getResourcesPath() - * @generated - * @ordered - */ - protected static final String RESOURCES_PATH_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String resourcesPath = RESOURCES_PATH_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected LooseArchiveImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return LooseconfigPackage.eINSTANCE.getLooseArchive(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getUri() { - return uri; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setUri(String newUri) { - String oldUri = uri; - uri = newUri; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, LooseconfigPackage.LOOSE_ARCHIVE__URI, oldUri, uri)); - } - - public boolean isEAR() { - return false; - } - - public boolean isWAR() { - return false; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getBinariesPath() { - return binariesPath; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setBinariesPath(String newBinariesPath) { - String oldBinariesPath = binariesPath; - binariesPath = newBinariesPath; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, LooseconfigPackage.LOOSE_ARCHIVE__BINARIES_PATH, oldBinariesPath, binariesPath)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getResourcesPath() { - return resourcesPath; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setResourcesPath(String newResourcesPath) { - String oldResourcesPath = resourcesPath; - resourcesPath = newResourcesPath; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, LooseconfigPackage.LOOSE_ARCHIVE__RESOURCES_PATH, oldResourcesPath, resourcesPath)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public LooseApplication getLooseApp() { - if (eContainerFeatureID != LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP) return null; - return (LooseApplication)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLooseApp(LooseApplication newLooseApp) { - if (newLooseApp != eContainer || (eContainerFeatureID != LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP && newLooseApp != null)) { - if (EcoreUtil.isAncestor(this, newLooseApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newLooseApp != null) - msgs = ((InternalEObject)newLooseApp).eInverseAdd(this, LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES, LooseApplication.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newLooseApp, LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP, newLooseApp, newLooseApp)); - } - - public boolean isModule() { - return false; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP: - return eBasicSetContainer(null, LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP: - return eContainer.eInverseRemove(this, LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES, LooseApplication.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_ARCHIVE__URI: - return getUri(); - case LooseconfigPackage.LOOSE_ARCHIVE__BINARIES_PATH: - return getBinariesPath(); - case LooseconfigPackage.LOOSE_ARCHIVE__RESOURCES_PATH: - return getResourcesPath(); - case LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP: - return getLooseApp(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_ARCHIVE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case LooseconfigPackage.LOOSE_ARCHIVE__BINARIES_PATH: - return BINARIES_PATH_EDEFAULT == null ? binariesPath != null : !BINARIES_PATH_EDEFAULT.equals(binariesPath); - case LooseconfigPackage.LOOSE_ARCHIVE__RESOURCES_PATH: - return RESOURCES_PATH_EDEFAULT == null ? resourcesPath != null : !RESOURCES_PATH_EDEFAULT.equals(resourcesPath); - case LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP: - return getLooseApp() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_ARCHIVE__URI: - setUri((String)newValue); - return; - case LooseconfigPackage.LOOSE_ARCHIVE__BINARIES_PATH: - setBinariesPath((String)newValue); - return; - case LooseconfigPackage.LOOSE_ARCHIVE__RESOURCES_PATH: - setResourcesPath((String)newValue); - return; - case LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP: - setLooseApp((LooseApplication)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_ARCHIVE__URI: - setUri(URI_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_ARCHIVE__BINARIES_PATH: - setBinariesPath(BINARIES_PATH_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_ARCHIVE__RESOURCES_PATH: - setResourcesPath(RESOURCES_PATH_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_ARCHIVE__LOOSE_APP: - setLooseApp((LooseApplication)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (uri: "); - result.append(uri); - result.append(", binariesPath: "); - result.append(binariesPath); - result.append(", resourcesPath: "); - result.append(resourcesPath); - result.append(')'); - return result.toString(); - } - -} //LooseArchiveImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseConfigurationImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseConfigurationImpl.java deleted file mode 100644 index a08767a73..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseConfigurationImpl.java +++ /dev/null @@ -1,134 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl; - - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseConfiguration; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; - - -public class LooseConfigurationImpl extends EObjectImpl implements LooseConfiguration, EObject { - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList applications = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected LooseConfigurationImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return LooseconfigPackage.eINSTANCE.getLooseConfiguration(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getApplications() { - if (applications == null) { - applications = new EObjectContainmentEList(LooseApplication.class, this, LooseconfigPackage.LOOSE_CONFIGURATION__APPLICATIONS); - } - return applications; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_CONFIGURATION__APPLICATIONS: - return ((InternalEList)getApplications()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_CONFIGURATION__APPLICATIONS: - return getApplications(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_CONFIGURATION__APPLICATIONS: - getApplications().clear(); - getApplications().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_CONFIGURATION__APPLICATIONS: - getApplications().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_CONFIGURATION__APPLICATIONS: - return applications != null && !applications.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - -} //LooseConfigurationImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseLibraryImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseLibraryImpl.java deleted file mode 100644 index 09705baf5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseLibraryImpl.java +++ /dev/null @@ -1,221 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl; - - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseLibrary; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseWARFile; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; - - -public class LooseLibraryImpl extends LooseArchiveImpl implements LooseLibrary, LooseArchive { - /** - * @generated This field/method will be replaced during code generation. - */ - protected LooseLibraryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return LooseconfigPackage.eINSTANCE.getLooseLibrary(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public LooseWARFile getLooseWAR() { - if (eContainerFeatureID != LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR) return null; - return (LooseWARFile)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLooseWAR(LooseWARFile newLooseWAR) { - if (newLooseWAR != eContainer || (eContainerFeatureID != LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR && newLooseWAR != null)) { - if (EcoreUtil.isAncestor(this, newLooseWAR)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newLooseWAR != null) - msgs = ((InternalEObject)newLooseWAR).eInverseAdd(this, LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_LIBS, LooseWARFile.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newLooseWAR, LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR, newLooseWAR, newLooseWAR)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, LooseconfigPackage.LOOSE_LIBRARY__LOOSE_APP, msgs); - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_APP: - return eBasicSetContainer(null, LooseconfigPackage.LOOSE_LIBRARY__LOOSE_APP, msgs); - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR: - return eBasicSetContainer(null, LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_APP: - return eContainer.eInverseRemove(this, LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES, LooseApplication.class, msgs); - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR: - return eContainer.eInverseRemove(this, LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_LIBS, LooseWARFile.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_LIBRARY__URI: - return getUri(); - case LooseconfigPackage.LOOSE_LIBRARY__BINARIES_PATH: - return getBinariesPath(); - case LooseconfigPackage.LOOSE_LIBRARY__RESOURCES_PATH: - return getResourcesPath(); - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_APP: - return getLooseApp(); - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR: - return getLooseWAR(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_LIBRARY__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case LooseconfigPackage.LOOSE_LIBRARY__BINARIES_PATH: - return BINARIES_PATH_EDEFAULT == null ? binariesPath != null : !BINARIES_PATH_EDEFAULT.equals(binariesPath); - case LooseconfigPackage.LOOSE_LIBRARY__RESOURCES_PATH: - return RESOURCES_PATH_EDEFAULT == null ? resourcesPath != null : !RESOURCES_PATH_EDEFAULT.equals(resourcesPath); - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_APP: - return getLooseApp() != null; - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR: - return getLooseWAR() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_LIBRARY__URI: - setUri((String)newValue); - return; - case LooseconfigPackage.LOOSE_LIBRARY__BINARIES_PATH: - setBinariesPath((String)newValue); - return; - case LooseconfigPackage.LOOSE_LIBRARY__RESOURCES_PATH: - setResourcesPath((String)newValue); - return; - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_APP: - setLooseApp((LooseApplication)newValue); - return; - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR: - setLooseWAR((LooseWARFile)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_LIBRARY__URI: - setUri(URI_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_LIBRARY__BINARIES_PATH: - setBinariesPath(BINARIES_PATH_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_LIBRARY__RESOURCES_PATH: - setResourcesPath(RESOURCES_PATH_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_APP: - setLooseApp((LooseApplication)null); - return; - case LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR: - setLooseWAR((LooseWARFile)null); - return; - } - eDynamicUnset(eFeature); - } - -} //LooseLibraryImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseModuleImpl.java deleted file mode 100644 index 19e8587f1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseModuleImpl.java +++ /dev/null @@ -1,231 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl; - - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseModule; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; - -public class LooseModuleImpl extends LooseArchiveImpl implements LooseModule, LooseArchive { - /** - * The default value of the '{@link #getAltDD() <em>Alt DD</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see #getAltDD() - * @generated - * @ordered - */ - protected static final String ALT_DD_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String altDD = ALT_DD_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected LooseModuleImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return LooseconfigPackage.eINSTANCE.getLooseModule(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getAltDD() { - return altDD; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setAltDD(String newAltDD) { - String oldAltDD = altDD; - altDD = newAltDD; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, LooseconfigPackage.LOOSE_MODULE__ALT_DD, oldAltDD, altDD)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_MODULE__LOOSE_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, LooseconfigPackage.LOOSE_MODULE__LOOSE_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_MODULE__LOOSE_APP: - return eBasicSetContainer(null, LooseconfigPackage.LOOSE_MODULE__LOOSE_APP, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case LooseconfigPackage.LOOSE_MODULE__LOOSE_APP: - return eContainer.eInverseRemove(this, LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES, LooseApplication.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_MODULE__URI: - return getUri(); - case LooseconfigPackage.LOOSE_MODULE__BINARIES_PATH: - return getBinariesPath(); - case LooseconfigPackage.LOOSE_MODULE__RESOURCES_PATH: - return getResourcesPath(); - case LooseconfigPackage.LOOSE_MODULE__LOOSE_APP: - return getLooseApp(); - case LooseconfigPackage.LOOSE_MODULE__ALT_DD: - return getAltDD(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_MODULE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case LooseconfigPackage.LOOSE_MODULE__BINARIES_PATH: - return BINARIES_PATH_EDEFAULT == null ? binariesPath != null : !BINARIES_PATH_EDEFAULT.equals(binariesPath); - case LooseconfigPackage.LOOSE_MODULE__RESOURCES_PATH: - return RESOURCES_PATH_EDEFAULT == null ? resourcesPath != null : !RESOURCES_PATH_EDEFAULT.equals(resourcesPath); - case LooseconfigPackage.LOOSE_MODULE__LOOSE_APP: - return getLooseApp() != null; - case LooseconfigPackage.LOOSE_MODULE__ALT_DD: - return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_MODULE__URI: - setUri((String)newValue); - return; - case LooseconfigPackage.LOOSE_MODULE__BINARIES_PATH: - setBinariesPath((String)newValue); - return; - case LooseconfigPackage.LOOSE_MODULE__RESOURCES_PATH: - setResourcesPath((String)newValue); - return; - case LooseconfigPackage.LOOSE_MODULE__LOOSE_APP: - setLooseApp((LooseApplication)newValue); - return; - case LooseconfigPackage.LOOSE_MODULE__ALT_DD: - setAltDD((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_MODULE__URI: - setUri(URI_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_MODULE__BINARIES_PATH: - setBinariesPath(BINARIES_PATH_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_MODULE__RESOURCES_PATH: - setResourcesPath(RESOURCES_PATH_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_MODULE__LOOSE_APP: - setLooseApp((LooseApplication)null); - return; - case LooseconfigPackage.LOOSE_MODULE__ALT_DD: - setAltDD(ALT_DD_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (altDD: "); - result.append(altDD); - result.append(')'); - return result.toString(); - } - -} //LooseModuleImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseWARFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseWARFileImpl.java deleted file mode 100644 index 962f71fe2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseWARFileImpl.java +++ /dev/null @@ -1,228 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl; - - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseLibrary; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseModule; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseWARFile; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; - - -public class LooseWARFileImpl extends LooseModuleImpl implements LooseWARFile, LooseModule { - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList looseLibs = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected LooseWARFileImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return LooseconfigPackage.eINSTANCE.getLooseWARFile(); - } - - public boolean isWAR() { - return true; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getLooseLibs() { - if (looseLibs == null) { - looseLibs = new EObjectContainmentWithInverseEList(LooseLibrary.class, this, LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_LIBS, LooseconfigPackage.LOOSE_LIBRARY__LOOSE_WAR); - } - return looseLibs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_APP, msgs); - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_LIBS: - return ((InternalEList)getLooseLibs()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_APP: - return eBasicSetContainer(null, LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_APP, msgs); - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_LIBS: - return ((InternalEList)getLooseLibs()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_APP: - return eContainer.eInverseRemove(this, LooseconfigPackage.LOOSE_APPLICATION__LOOSE_ARCHIVES, LooseApplication.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_WAR_FILE__URI: - return getUri(); - case LooseconfigPackage.LOOSE_WAR_FILE__BINARIES_PATH: - return getBinariesPath(); - case LooseconfigPackage.LOOSE_WAR_FILE__RESOURCES_PATH: - return getResourcesPath(); - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_APP: - return getLooseApp(); - case LooseconfigPackage.LOOSE_WAR_FILE__ALT_DD: - return getAltDD(); - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_LIBS: - return getLooseLibs(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_WAR_FILE__URI: - setUri((String)newValue); - return; - case LooseconfigPackage.LOOSE_WAR_FILE__BINARIES_PATH: - setBinariesPath((String)newValue); - return; - case LooseconfigPackage.LOOSE_WAR_FILE__RESOURCES_PATH: - setResourcesPath((String)newValue); - return; - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_APP: - setLooseApp((LooseApplication)newValue); - return; - case LooseconfigPackage.LOOSE_WAR_FILE__ALT_DD: - setAltDD((String)newValue); - return; - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_LIBS: - getLooseLibs().clear(); - getLooseLibs().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_WAR_FILE__URI: - setUri(URI_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_WAR_FILE__BINARIES_PATH: - setBinariesPath(BINARIES_PATH_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_WAR_FILE__RESOURCES_PATH: - setResourcesPath(RESOURCES_PATH_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_APP: - setLooseApp((LooseApplication)null); - return; - case LooseconfigPackage.LOOSE_WAR_FILE__ALT_DD: - setAltDD(ALT_DD_EDEFAULT); - return; - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_LIBS: - getLooseLibs().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case LooseconfigPackage.LOOSE_WAR_FILE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case LooseconfigPackage.LOOSE_WAR_FILE__BINARIES_PATH: - return BINARIES_PATH_EDEFAULT == null ? binariesPath != null : !BINARIES_PATH_EDEFAULT.equals(binariesPath); - case LooseconfigPackage.LOOSE_WAR_FILE__RESOURCES_PATH: - return RESOURCES_PATH_EDEFAULT == null ? resourcesPath != null : !RESOURCES_PATH_EDEFAULT.equals(resourcesPath); - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_APP: - return getLooseApp() != null; - case LooseconfigPackage.LOOSE_WAR_FILE__ALT_DD: - return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD); - case LooseconfigPackage.LOOSE_WAR_FILE__LOOSE_LIBS: - return looseLibs != null && !looseLibs.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - -} //LooseWARFileImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseconfigFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseconfigFactoryImpl.java deleted file mode 100644 index db00a6ba9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseconfigFactoryImpl.java +++ /dev/null @@ -1,108 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl; - - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseConfiguration; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseLibrary; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseModule; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseWARFile; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigFactory; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; - - -public class LooseconfigFactoryImpl extends EFactoryImpl implements LooseconfigFactory, EFactory { - /** - * @generated This field/method will be replaced during code generation. - */ - public LooseconfigFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case LooseconfigPackage.LOOSE_APPLICATION: return createLooseApplication(); - case LooseconfigPackage.LOOSE_LIBRARY: return createLooseLibrary(); - case LooseconfigPackage.LOOSE_MODULE: return createLooseModule(); - case LooseconfigPackage.LOOSE_CONFIGURATION: return createLooseConfiguration(); - case LooseconfigPackage.LOOSE_WAR_FILE: return createLooseWARFile(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public LooseApplication createLooseApplication() { - LooseApplicationImpl looseApplication = new LooseApplicationImpl(); - return looseApplication; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public LooseLibrary createLooseLibrary() { - LooseLibraryImpl looseLibrary = new LooseLibraryImpl(); - return looseLibrary; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public LooseWARFile createLooseWARFile() { - LooseWARFileImpl looseWARFile = new LooseWARFileImpl(); - return looseWARFile; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public LooseModule createLooseModule() { - LooseModuleImpl looseModule = new LooseModuleImpl(); - return looseModule; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public LooseConfiguration createLooseConfiguration() { - LooseConfigurationImpl looseConfiguration = new LooseConfigurationImpl(); - return looseConfiguration; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public LooseconfigPackage getLooseconfigPackage() { - return (LooseconfigPackage)getEPackage(); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public static LooseconfigPackage getPackage() { - return LooseconfigPackage.eINSTANCE; - } - -} //LooseconfigFactoryImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseconfigPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseconfigPackageImpl.java deleted file mode 100644 index 9caef699c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/impl/LooseconfigPackageImpl.java +++ /dev/null @@ -1,368 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage; -import org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchivePackageImpl; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseConfiguration; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseLibrary; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseModule; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseWARFile; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigFactory; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; - - -/** - * @lastgen class LooseconfigPackageImpl extends EPackageImpl implements LooseconfigPackage, - * EPackage {} - */ -public class LooseconfigPackageImpl extends EPackageImpl implements LooseconfigPackage { - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass looseApplicationEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass looseArchiveEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass looseLibraryEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass looseModuleEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass looseConfigurationEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass looseWARFileEClass = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - private LooseconfigPackageImpl() { - super(eNS_URI, LooseconfigFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - public static LooseconfigPackage init() { - if (isInited) return (LooseconfigPackage)EPackage.Registry.INSTANCE.getEPackage(LooseconfigPackage.eNS_URI); - - // Obtain or create and register package - LooseconfigPackageImpl theLooseconfigPackage = (LooseconfigPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof LooseconfigPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new LooseconfigPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - - // Obtain or create and register interdependencies - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - CommonarchivePackageImpl theCommonarchivePackage = (CommonarchivePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonarchivePackage.eNS_URI) instanceof CommonarchivePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonarchivePackage.eNS_URI) : CommonarchivePackage.eINSTANCE); - JavaRefPackageImpl theJavaRefPackage = (JavaRefPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI) instanceof JavaRefPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI) : JavaRefPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - - // Create package meta-data objects - theLooseconfigPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theCommonarchivePackage.createPackageContents(); - theJavaRefPackage.createPackageContents(); - theCommonPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - - // Initialize created meta-data - theLooseconfigPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theCommonarchivePackage.initializePackageContents(); - theJavaRefPackage.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theLooseconfigPackage.freeze(); - - return theLooseconfigPackage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getLooseApplication() { - return looseApplicationEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getLooseApplication_LooseArchives() { - return (EReference)looseApplicationEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getLooseArchive() { - return looseArchiveEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getLooseArchive_Uri() { - return (EAttribute)looseArchiveEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getLooseArchive_BinariesPath() { - return (EAttribute)looseArchiveEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getLooseArchive_ResourcesPath() { - return (EAttribute)looseArchiveEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getLooseArchive_LooseApp() { - return (EReference)looseArchiveEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getLooseLibrary() { - return looseLibraryEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getLooseLibrary_LooseWAR() { - return (EReference)looseLibraryEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getLooseWARFile() { - return looseWARFileEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getLooseWARFile_LooseLibs() { - return (EReference)looseWARFileEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getLooseModule() { - return looseModuleEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getLooseModule_AltDD() { - return (EAttribute)looseModuleEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getLooseConfiguration() { - return looseConfigurationEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getLooseConfiguration_Applications() { - return (EReference)looseConfigurationEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public LooseconfigFactory getLooseconfigFactory() { - return (LooseconfigFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - looseApplicationEClass = createEClass(LOOSE_APPLICATION); - createEReference(looseApplicationEClass, LOOSE_APPLICATION__LOOSE_ARCHIVES); - - looseArchiveEClass = createEClass(LOOSE_ARCHIVE); - createEAttribute(looseArchiveEClass, LOOSE_ARCHIVE__URI); - createEAttribute(looseArchiveEClass, LOOSE_ARCHIVE__BINARIES_PATH); - createEAttribute(looseArchiveEClass, LOOSE_ARCHIVE__RESOURCES_PATH); - createEReference(looseArchiveEClass, LOOSE_ARCHIVE__LOOSE_APP); - - looseLibraryEClass = createEClass(LOOSE_LIBRARY); - createEReference(looseLibraryEClass, LOOSE_LIBRARY__LOOSE_WAR); - - looseModuleEClass = createEClass(LOOSE_MODULE); - createEAttribute(looseModuleEClass, LOOSE_MODULE__ALT_DD); - - looseConfigurationEClass = createEClass(LOOSE_CONFIGURATION); - createEReference(looseConfigurationEClass, LOOSE_CONFIGURATION__APPLICATIONS); - - looseWARFileEClass = createEClass(LOOSE_WAR_FILE); - createEReference(looseWARFileEClass, LOOSE_WAR_FILE__LOOSE_LIBS); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Add supertypes to classes - looseApplicationEClass.getESuperTypes().add(this.getLooseArchive()); - looseLibraryEClass.getESuperTypes().add(this.getLooseArchive()); - looseModuleEClass.getESuperTypes().add(this.getLooseArchive()); - looseWARFileEClass.getESuperTypes().add(this.getLooseModule()); - - // Initialize classes and features; add operations and parameters - initEClass(looseApplicationEClass, LooseApplication.class, "LooseApplication", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getLooseApplication_LooseArchives(), this.getLooseArchive(), this.getLooseArchive_LooseApp(), "looseArchives", null, 0, -1, LooseApplication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(looseArchiveEClass, LooseArchive.class, "LooseArchive", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getLooseArchive_Uri(), ecorePackage.getEString(), "uri", null, 0, 1, LooseArchive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getLooseArchive_BinariesPath(), ecorePackage.getEString(), "binariesPath", null, 0, 1, LooseArchive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getLooseArchive_ResourcesPath(), ecorePackage.getEString(), "resourcesPath", null, 0, 1, LooseArchive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getLooseArchive_LooseApp(), this.getLooseApplication(), this.getLooseApplication_LooseArchives(), "looseApp", null, 0, 1, LooseArchive.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - addEOperation(looseArchiveEClass, ecorePackage.getEBoolean(), "isModule"); - - initEClass(looseLibraryEClass, LooseLibrary.class, "LooseLibrary", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getLooseLibrary_LooseWAR(), this.getLooseWARFile(), this.getLooseWARFile_LooseLibs(), "looseWAR", null, 0, 1, LooseLibrary.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(looseModuleEClass, LooseModule.class, "LooseModule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getLooseModule_AltDD(), ecorePackage.getEString(), "altDD", null, 0, 1, LooseModule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(looseConfigurationEClass, LooseConfiguration.class, "LooseConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getLooseConfiguration_Applications(), this.getLooseApplication(), null, "applications", null, 0, -1, LooseConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(looseWARFileEClass, LooseWARFile.class, "LooseWARFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getLooseWARFile_LooseLibs(), this.getLooseLibrary(), this.getLooseLibrary_LooseWAR(), "looseLibs", null, 0, -1, LooseWARFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - } - -} //LooseconfigPackageImpl - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/util/LooseconfigAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/util/LooseconfigAdapterFactory.java deleted file mode 100644 index d32602011..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/util/LooseconfigAdapterFactory.java +++ /dev/null @@ -1,163 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.util; - - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseConfiguration; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseLibrary; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseModule; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseWARFile; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; - - -/** - * @lastgen class LooseconfigAdapterFactory extends AdapterFactoryImpl {} - */ -public class LooseconfigAdapterFactory extends AdapterFactoryImpl { - /** - * @generated This field/method will be replaced during code generation. - */ - - /** - * @generated This field/method will be replaced during code generation. - */ - protected static LooseconfigPackage modelPackage; - - /** - * @generated This field/method will be replaced during code generation. - */ - public LooseconfigAdapterFactory() { - if (modelPackage == null) { - modelPackage = LooseconfigPackage.eINSTANCE; - } - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected LooseconfigSwitch modelSwitch = - new LooseconfigSwitch() { - public Object caseLooseApplication(LooseApplication object) { - return createLooseApplicationAdapter(); - } - public Object caseLooseArchive(LooseArchive object) { - return createLooseArchiveAdapter(); - } - public Object caseLooseLibrary(LooseLibrary object) { - return createLooseLibraryAdapter(); - } - public Object caseLooseModule(LooseModule object) { - return createLooseModuleAdapter(); - } - public Object caseLooseConfiguration(LooseConfiguration object) { - return createLooseConfigurationAdapter(); - } - public Object caseLooseWARFile(LooseWARFile object) { - return createLooseWARFileAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * By default create methods return null so that we can easily ignore cases. It's useful to - * ignore a case when inheritance will catch all the cases anyway. - */ - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createLooseApplicationAdapter() { - - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createLooseArchiveAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createLooseLibraryAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createLooseWARFileAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> This default - * implementation returns null. <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createLooseModuleAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createLooseConfigurationAdapter() { - return null; - } - -} //LooseconfigAdapterFactory - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/util/LooseconfigSwitch.java b/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/util/LooseconfigSwitch.java deleted file mode 100644 index ce123d87e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/looseconfig/internal/util/LooseconfigSwitch.java +++ /dev/null @@ -1,180 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.util; - - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseApplication; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseArchive; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseConfiguration; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseLibrary; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseModule; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseWARFile; -import org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage; - - -/** - * @lastgen class LooseconfigSwitch {} - */ -public class LooseconfigSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected static LooseconfigPackage modelPackage; - - /** - * @generated This field/method will be replaced during code generation. - */ - public LooseconfigSwitch() { - if (modelPackage == null) { - modelPackage = LooseconfigPackage.eINSTANCE; - } - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case LooseconfigPackage.LOOSE_APPLICATION: { - LooseApplication looseApplication = (LooseApplication)theEObject; - Object result = caseLooseApplication(looseApplication); - if (result == null) result = caseLooseArchive(looseApplication); - if (result == null) result = defaultCase(theEObject); - return result; - } - case LooseconfigPackage.LOOSE_ARCHIVE: { - LooseArchive looseArchive = (LooseArchive)theEObject; - Object result = caseLooseArchive(looseArchive); - if (result == null) result = defaultCase(theEObject); - return result; - } - case LooseconfigPackage.LOOSE_LIBRARY: { - LooseLibrary looseLibrary = (LooseLibrary)theEObject; - Object result = caseLooseLibrary(looseLibrary); - if (result == null) result = caseLooseArchive(looseLibrary); - if (result == null) result = defaultCase(theEObject); - return result; - } - case LooseconfigPackage.LOOSE_MODULE: { - LooseModule looseModule = (LooseModule)theEObject; - Object result = caseLooseModule(looseModule); - if (result == null) result = caseLooseArchive(looseModule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case LooseconfigPackage.LOOSE_CONFIGURATION: { - LooseConfiguration looseConfiguration = (LooseConfiguration)theEObject; - Object result = caseLooseConfiguration(looseConfiguration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case LooseconfigPackage.LOOSE_WAR_FILE: { - LooseWARFile looseWARFile = (LooseWARFile)theEObject; - Object result = caseLooseWARFile(looseWARFile); - if (result == null) result = caseLooseModule(looseWARFile); - if (result == null) result = caseLooseArchive(looseWARFile); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseLooseApplication(LooseApplication object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseLooseArchive(LooseArchive object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseLooseLibrary(LooseLibrary object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseLooseWARFile(LooseWARFile object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseLooseModule(LooseModule object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseLooseConfiguration(LooseConfiguration object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object defaultCase(EObject object) { - return null; - } - -} //LooseconfigSwitch - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/component.xml b/plugins/org.eclipse.jst.j2ee.core/component.xml deleted file mode 100644 index 3fa448186..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/component.xml +++ /dev/null @@ -1,176 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<component xmlns="http://eclipse.org/wtp/releng/tools/component-model" - name="org.eclipse.jst.j2ee.core"> - <description url=""></description> - <component-depends unrestricted="true"></component-depends> - <plugin id="org.eclipse.jst.j2ee.core" fragment="false" /> - <package name="org.eclipse.jst.j2ee.webservice.wsclient" api="false"> - <type name="ComponentScopedRefs" implement="false" subclass="false" instantiate="false"/> - <type name="Handler" implement="false" subclass="false" instantiate="false"/> - <type name="PortComponentRef" implement="false" subclass="false" instantiate="false"/> - <type name="ServiceRef" implement="false" subclass="false" instantiate="false"/> - <type name="Webservice_clientFactory" implement="false" subclass="false" instantiate="false"/> - <type name="WebServicesClient" implement="false" subclass="false" instantiate="false"/> - <type name="WebServicesResource" implement="false" subclass="false" instantiate="false"/> - </package> - <package name="org.eclipse.jst.j2ee.application" api="false" > - <type name="Application" implement="false" subclass="false" instantiate="false"/> - <type name="ApplicationFactory" implement="false" subclass="false" instantiate="false"/> - <type name="ApplicationResource" implement="false" subclass="false" instantiate="false"/> - <type name="ConnectorModule" implement="false" subclass="false" instantiate="false"/> - <type name="EjbModule" implement="false" subclass="false" instantiate="false"/> - <type name="JavaClientModule" implement="false" subclass="false" instantiate="false"/> - <type name="Module" implement="false" subclass="false" instantiate="false"/> - <type name="WebModule" implement="false" subclass="false" instantiate="false"/> - </package> - <package name="org.eclipse.jst.j2ee.webservice.wsdd"></package> - <package name="org.eclipse.jst.j2ee.jsp" api="false" > - <type name="JSPConfig" implement="false" subclass="false" instantiate="false"/> - <type name="JspFactory" implement="false" subclass="false" instantiate="false"/> - <type name="JSPPropertyGroup" implement="false" subclass="false" instantiate="false"/> - <type name="TagLibRefType" implement="false" subclass="false" instantiate="false"/> - </package> - <package name="org.eclipse.jst.j2ee.client" api="false" > - <type name="ApplicationClient" implement="false" subclass="false" instantiate="false"/> - <type name="ApplicationClientResource" implement="false" subclass="false" instantiate="false"/> - <type name="ClientFactory" implement="false" subclass="false" instantiate="false"/> - <type name="ResAuthApplicationType" implement="false" subclass="false" instantiate="false"/> - </package> - <package name="org.eclipse.jst.j2ee.webapplication" api="false"> - <type name="AuthConstraint" implement="false" subclass="false" instantiate="false"/> - <type name="AuthMethodKind" implement="false" subclass="false" instantiate="false"/> - <type name="ContextParam" implement="false" subclass="false" instantiate="false"/> - <type name="DispatcherType" implement="false" subclass="false" instantiate="false"/> - <type name="ErrorCodeErrorPage" implement="false" subclass="false" instantiate="false"/> - <type name="ErrorPage" implement="false" subclass="false" instantiate="false"/> - <type name="ExceptionTypeErrorPage" implement="false" subclass="false" instantiate="false"/> - <type name="Filter" implement="false" subclass="false" instantiate="false"/> - <type name="FilterMapping" implement="false" subclass="false" instantiate="false"/> - <type name="FormLoginConfig" implement="false" subclass="false" instantiate="false"/> - <type name="HTTPMethodType" implement="false" subclass="false" instantiate="false"/> - <type name="HTTPMethodTypeEnum" implement="false" subclass="false" instantiate="false"/> - <type name="InitParam" implement="false" subclass="false" instantiate="false"/> - <type name="JSPType" implement="false" subclass="false" instantiate="false"/> - <type name="LocalEncodingMapping" implement="false" subclass="false" instantiate="false"/> - <type name="LocalEncodingMappingList" implement="false" subclass="false" instantiate="false"/> - <type name="LoginConfig" implement="false" subclass="false" instantiate="false"/> - <type name="MimeMapping" implement="false" subclass="false" instantiate="false"/> - <type name="ResAuthServletType" implement="false" subclass="false" instantiate="false"/> - <type name="RoleNameType" implement="false" subclass="false" instantiate="false"/> - <type name="SecurityConstraint" implement="false" subclass="false" instantiate="false"/> - <type name="Servlet" implement="false" subclass="false" instantiate="false"/> - <type name="ServletMapping" implement="false" subclass="false" instantiate="false"/> - <type name="ServletType" implement="false" subclass="false" instantiate="false"/> - <type name="SessionConfig" implement="false" subclass="false" instantiate="false"/> - <type name="TagLibRef" implement="false" subclass="false" instantiate="false"/> - <type name="TransportGuaranteeType" implement="false" subclass="false" instantiate="false"/> - <type name="URLPatternType" implement="false" subclass="false" instantiate="false"/> - <type name="UserDataConstraint" implement="false" subclass="false" instantiate="false"/> - <type name="WebApp" implement="false" subclass="false" instantiate="false"/> - <type name="WebapplicationFactory" implement="false" subclass="false" instantiate="false"/> - <type name="WebAppResource" implement="false" subclass="false" instantiate="false"/> - <type name="WebResourceCollection" implement="false" subclass="false" instantiate="false"/> - <type name="WebType" implement="false" subclass="false" instantiate="false"/> - <type name="WelcomeFile" implement="false" subclass="false" instantiate="false"/> - <type name="WelcomeFileList" implement="false" subclass="false" instantiate="false"/> - </package> - <package name="org.eclipse.jst.j2ee.webservice"></package> - <package name="org.eclipse.jst.j2ee.common" api="false"> - <type name="CommonFactory" implement="false" subclass="false" instantiate="false"/> - <type name="CompatibilityDescriptionGroup" implement="false" subclass="false" instantiate="false"/> - <type name="DeploymentExtension" implement="false" subclass="false" instantiate="false"/> - <type name="Description" implement="false" subclass="false" instantiate="false"/> - <type name="DescriptionGroup" implement="false" subclass="false" instantiate="false"/> - <type name="DisplayName" implement="false" subclass="false" instantiate="false"/> - <type name="EJBLocalRef" implement="false" subclass="false" instantiate="false"/> - <type name="EjbRef" implement="false" subclass="false" instantiate="false"/> - <type name="EjbRefType" implement="false" subclass="false" instantiate="false"/> - <type name="EnvEntry" implement="false" subclass="false" instantiate="false"/> - <type name="EnvEntryType" implement="false" subclass="false" instantiate="false"/> - <type name="ExtensibleType" implement="false" subclass="false" instantiate="false"/> - <type name="IconType" implement="false" subclass="false" instantiate="false"/> - <type name="Identity" implement="false" subclass="false" instantiate="false"/> - <type name="JNDIEnvRefsGroup" implement="false" subclass="false" instantiate="false"/> - <type name="Listener" implement="false" subclass="false" instantiate="false"/> - <type name="MessageDestination" implement="false" subclass="false" instantiate="false"/> - <type name="MessageDestinationRef" implement="false" subclass="false" instantiate="false"/> - <type name="MessageDestinationUsageType" implement="false" subclass="false" instantiate="false"/> - <type name="ParamValue" implement="false" subclass="false" instantiate="false"/> - <type name="QName" implement="false" subclass="false" instantiate="false"/> - <type name="ResAuthTypeBase" implement="false" subclass="false" instantiate="false"/> - <type name="ResourceEnvRef" implement="false" subclass="false" instantiate="false"/> - <type name="ResourceRef" implement="false" subclass="false" instantiate="false"/> - <type name="ResSharingScopeType" implement="false" subclass="false" instantiate="false"/> - <type name="RunAsSpecifiedIdentity" implement="false" subclass="false" instantiate="false"/> - <type name="SecurityIdentity" implement="false" subclass="false" instantiate="false"/> - <type name="SecurityRole" implement="false" subclass="false" instantiate="false"/> - <type name="SecurityRoleRef" implement="false" subclass="false" instantiate="false"/> - <type name="UseCallerIdentity" implement="false" subclass="false" instantiate="false"/> - </package> - <package name="org.eclipse.jst.j2ee.webservice.jaxrpcmap"> - <type name="JaxrpcmapResourceFactory" reference="false" implement="false" subclass="false" instantiate="false"/> - </package> - <package name="org.eclipse.jst.j2ee.webservice.wscommon"></package> - <package name="org.eclipse.jst.j2ee.jca" api="false" > - <type name="ActivationSpec" implement="false" subclass="false" instantiate="false"/> - <type name="AdminObject" implement="false" subclass="false" instantiate="false"/> - <type name="AuthenticationMechanism" implement="false" subclass="false" instantiate="false"/> - <type name="AuthenticationMechanismType" implement="false" subclass="false" instantiate="false"/> - <type name="ConfigProperty" implement="false" subclass="false" instantiate="false"/> - <type name="ConnectionDefinition" implement="false" subclass="false" instantiate="false"/> - <type name="Connector" implement="false" subclass="false" instantiate="false"/> - <type name="ConnectorResource" implement="false" subclass="false" instantiate="false"/> - <type name="InboundResourceAdapter" implement="false" subclass="false" instantiate="false"/> - <type name="JcaFactory" implement="false" subclass="false" instantiate="false"/> - <type name="License" implement="false" subclass="false" instantiate="false"/> - <type name="MessageAdapter" implement="false" subclass="false" instantiate="false"/> - <type name="MessageListener" implement="false" subclass="false" instantiate="false"/> - <type name="OutboundResourceAdapter" implement="false" subclass="false" instantiate="false"/> - <type name="RequiredConfigPropertyType" implement="false" subclass="false" instantiate="false"/> - <type name="ResourceAdapter" implement="false" subclass="false" instantiate="false"/> - <type name="SecurityPermission" implement="false" subclass="false" instantiate="false"/> - <type name="TransactionSupportKind" implement="false" subclass="false" instantiate="false"/> - </package> - <package name="org.eclipse.jst.j2ee.ejb" api="false"> - <type name="AcknowledgeMode" implement="false" subclass="false" instantiate="false"/> - <type name="ActivationConfig" implement="false" subclass="false" instantiate="false"/> - <type name="ActivationConfigProperty" implement="false" subclass="false" instantiate="false"/> - <type name="AssemblyDescriptor" implement="false" subclass="false" instantiate="false"/> - <type name="CMPAttribute" implement="false" subclass="false" instantiate="false"/> - <type name="CMRField" implement="false" subclass="false" instantiate="false"/> - <type name="CommonRelationship" implement="false" subclass="false" instantiate="false"/> - <type name="CommonRelationshipRole" implement="false" subclass="false" instantiate="false"/> - <type name="ContainerManagedEntity" implement="false" subclass="false" instantiate="false"/> - <type name="DestinationType" implement="false" subclass="false" instantiate="false"/> - <type name="EJBExtensionFilter" implement="false" subclass="false" instantiate="false"/> - <type name="EjbFactory" implement="false" subclass="false" instantiate="false"/> - <type name="EJBJar" implement="false" subclass="false" instantiate="false"/> - <type name="EJBMethodCategory" implement="false" subclass="false" instantiate="false"/> - <type name="EjbMethodElementComparator" implement="false" subclass="false" instantiate="false"/> - <type name="EjbMethodElementHelper" implement="false" subclass="false" instantiate="false"/> - <type name="EJBRelation" implement="false" subclass="false" instantiate="false"/> - <type name="EJBRelationshipRole" implement="false" subclass="false" instantiate="false"/> - <type name="EJBResource" implement="false" subclass="false" instantiate="false"/> - <type name="EnterpriseBean" implement="false" subclass="false" instantiate="false"/> - <type name="Entity" implement="false" subclass="false" instantiate="false"/> - <type name="ExcludeList" implement="false" subclass="false" instantiate="false"/> - <type name="IRoleShapeStrategy" implement="false" subclass="false" instantiate="false"/> - <type name="MessageDriven" implement="false" subclass="false" instantiate="false"/> - <type name="MessageDrivenDestination" implement="false" subclass="false" instantiate="false"/> - <type name="MethodElement" implement="false" subclass="false" instantiate="false"/> - <type name="MethodElementKind" implement="false" subclass="false" instantiate="false"/> - <type name="MethodPermission" implement="false" subclass="false" instantiate="false"/> - <type name="MethodTransaction" implement="false" subclass="false" instantiate="false"/> - <type name="MultiplicityKind" implement="false" subclass="false" instantiate="false"/> - <type name="Query" implement="false" subclass="false" instantiate="false"/> - <type name="QueryMethod" implement="false" subclass="false" instantiate="false"/> - <type name="Relationships" implement="false" subclass="false" instantiate="false"/> - <type name="ReturnTypeMapping" implement="false" subclass="false" instantiate="false"/> - <type name="RoleSource" implement="false" subclass="false" instantiate="false"/> - <type name="Session" implement="false" subclass="false" instantiate="false"/> - <type name="SessionType" implement="false" subclass="false" instantiate="false"/> - <type name="SubscriptionDurabilityKind" implement="false" subclass="false" instantiate="false"/> - <type name="TransactionAttributeType" implement="false" subclass="false" instantiate="false"/> - <type name="TransactionType" implement="false" subclass="false" instantiate="false"/> - </package> -</component>
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/applicationclientvalidation.properties b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/applicationclientvalidation.properties deleted file mode 100644 index 9dd19953a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/applicationclientvalidation.properties +++ /dev/null @@ -1,65 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2004 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: -# IBM Corporation - initial API and implementation -############################################################################### -# This properties file holds all the externalized strings for the Application Client project -# -# :Begin: WebSphere Quality Validation Information :Begin: -#COMPONENTPREFIX CHKJ -#COMPONENTNAMEFOR CHKJ IBM WebSphere Validation -#CMVCPATHNAME ncf/src/java/com/ibm/websphere/validation/applicationclientvalidation.properties -# :End: WebSphere Quality Validation Information :End: - - -ERROR_APPLICATIONCLIENT_INVALID_APPCLIENT_FILE=CHKJ1000E: Validation failed because the application client file is not valid. Ensure that the deployment descriptor is valid. -#EXPLANATION None. -#USERACTION None. - -ERROR_APPCLIENT_VALIDATION_FAILED=CHKJ1001E: Validation failed: -#EXPLANATION None. -#USERACTION None. - -ERROR_EJB_REFS=CHKJ1002E: Unresolvable EJB references in {0}; -#EXPLANATION None. -#USERACTION None. - -INVALID_DD=CHKJ1003E: The application client project has an invalid deployment descriptor. -#EXPLANATION None. -#USERACTION None. - -MESSAGE_APPCLIENT_MISSING_URI=CHKJ1004E: The URI, {0}, does not match anything in the application client file. -#EXPLANATION None. -#USERACTION None. - -APPCLIENT_DD_PARSE_LINECOL=CHKJ1005E: The deployment descriptor could not be loaded due to an unknown syntax error. The bad section starts at line {0}, column {1}. -#EXPLANATION None. -#USERACTION None. - -APPCLIENT_DD_PARSE_LINE=CHKJ1006E: The deployment descriptor could not be loaded due to an unknown syntax error. The bad section starts at line {0}. -#EXPLANATION None. -#USERACTION None. - -APPCLIENT_DD_PARSE_NOINFO=CHKJ1007E: The deployment descriptor could not be loaded due to an unknown syntax error. There is no information available to help identify the bad section. -#EXPLANATION None. -#USERACTION None. - -APPCLIENT_DD_CANNOT_OPEN_DD=CHKJ1008E: Validation cannot complete because the deployment descriptor cannot be opened. -#EXPLANATION None. -#USERACTION None. - -APPCLIENT_DUP_RES_ENV_REF_ERROR_=IWAE0002E Duplicate resource environment reference "{0}" in application-client.xml. -#EXPLANATION None. -#USERACTION None. - -APPCLIENT_INVALID_DOC_TYPE_ERROR_=IWAE0003E Document type version "{0}" for application-client.xml in project "{1}" needs to be version "{2}". -#EXPLANATION None. -#USERACTION None. - -APPCLIENT_DUP_EJB_REF_ERROR_=IWAE0004E Duplicate enterprise bean reference "{0}" in application-client.xml. -APPCLIENT_MAIN_CLASS_ERROR_=IWAE0035E The Main-Class attribute must be defined in the application client module. diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/earvalidation.properties b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/earvalidation.properties deleted file mode 100644 index 05e4e4a9d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/earvalidation.properties +++ /dev/null @@ -1,141 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2004 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: -# IBM Corporation - initial API and implementation -############################################################################### -# This properties file hold all the externalised strings for eTools -# EAR Validation project -# -# Messages should be according to the format at -# http://hany.austin.ibm.com/messages/index.html -# -# Briefly: -# MESSAGE_ID=<ComponentPrefix><MessageNumber><TypeCode>: <MessageText> -# -# The prefix for this component is: -# CHKW (IBM WebSphere Validation) -# -# Message numbers are four digit numbers, from '0000' to '9999', inclusive. -# Message numbers are filled to the left with '0', to a width of 4. -# -# Valid message type codes are: -# I (Informational) -# W (Warning) -# E (Error) -# -# Note the ": " that appears between the type code and the message text. -# -# :Begin: WebSphere Quality Validation Information :Begin: -#COMPONENTPREFIX CHKJ -#COMPONENTNAMEFOR CHKJ IBM WebSphere Validation -#CMVCPATHNAME ncf/src/java/com/ibm/websphere/validation/earvalidation.properties -# :End: WebSphere Quality Validation Information :End: -# -# 29-June-2001: -# This file has been tested using the ProcessMsgFile tool, written by -# Hany Salem and owned by Dennis Hebert. Any future changes should -# also be verified using this tool. Please contact Dennis -# (hebert@us.ibm.com or T/L 543-2520) for more information. -# -# -------------------------------- -#NOTAMSG -validator.name=EAR Validator - -# -------------------------------- -ERROR_EAR_VALIDATION_FAILED=CHKJ1000E: EAR Validation failed: {0} -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -ERROR_EAR_INVALID_EAR_FILE=CHKJ1001E: The EAR project {0} is invalid. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -ERROR_EAR_DUPLICATE_ROLES=CHKJ1002E: Duplicate security role named {0}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_EAR_NO_MODULE_URI=CHKJ1003E: A module has been defined with no URI. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_EAR_MISSING_URI=CHKJ1004E: The URI, {0}, does not match anything in the EAR file. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -EAR_DD_PARSE_LINECOL=CHKJ1005E: The deployment descriptor could not be loaded. The start of the bad section is at line {0}, column {1}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -EAR_DD_PARSE_LINE=CHKJ1006E: The deployment descriptor could not be loaded. The start of the bad section is at line {0}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -EAR_DD_PARSE_NOINFO=CHKJ1007E: The deployment descriptor could not be loaded. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -EAR_DD_CANNOT_OPEN_DD=CHKJ1008E: Cannot open the deployment descriptor. Validation cannot complete. -#EXPLANATION None. -#USERACTION None. - -# errors --------------------------- -URI_CONTAINS_SPACES_ERROR_=IWAE0005E The URI {0} contains a space. This is not recommended because it cannot be referenced from a manifest file. -MESSAGE_EAR_DUPLICATE_URI_ERROR_=IWAE0006E The module {0} has duplicate uri in EAR: {1}. -MESSAGE_EAR_DUPICATE_ROOTCONTEXT_ERROR_=IWAE0007E Same context root "{0}" exists in Web modules "{1}" and "{2}". -MESSAGE_EMPTY_ALT_DD_ERROR_=IWAE0009E The module {0} has empty <alt-dd> tag in EAR {1}. The tag should be removed or the value should be valid. -DUPLICATE_UTILJAR_FOR_PROJECT_NAME_ERROR_=IWAE0010E =The project {0} in Enterprise Application project {1} has duplicate utility JAR URI {2}. -DUPLICATE_MODULE_FOR_PROJECT_NAME_ERROR_=IWAE0011E The project {0} in Enterprise Application project {1} has duplicate module name {2}. -MESSAGE_UTIL_URI_NAME_COLLISION_ERROR_=IWAE0012E The module {0} in Enterprise Application project {1} has same name as utility JAR URI. -MESSAGE_UTIL_PROJECT_NAME_COLLISION_ERROR_=IWAE0013E The module {0} in Enterprise Application project {1} has same name as utility JAR project name. -ERROR_READING_MANIFEST_ERROR_=IWAE0014E An error occurred validating the MANIFEST.MF file in archive {0}. -MANIFEST_LINE_END_ERROR_=IWAE0015E The MANIFEST.MF file in archive {0} does not end with a newline. -MANIFEST_LINE_EXCEEDS_LENGTH_ERROR_=IWAE0016E Line {0} in the MANIFEST.MF file in archive {1} exceeds the specification limit of 72 bytes. - -INVALID_URI_FOR_MODULE_ERROR_=IWAE0017E The module {0} has a wrong default extension (.jar for EJB modules and .war for Web modules). -EAR_INVALID_DOC_TYPE_ERROR_=IWAE0018E Document type version "{0}" for application.xml in project "{1}" needs to be version "{2}". - -MODULE_DD_PARSE_LINECOL_ERROR_=IWAE0019E The deployment descriptor of module {0} could not be loaded. The bad section starts at line {1}, column {2}. -MODULE_DD_PARSE_LINE_ERROR_=IWAE0020E The deployment descriptor of module {0} could not be loaded. The bad section starts at line {1} -MODULE_DD_PARSE_NOINFO_ERROR_=IWAE0021E The deployment descriptor of module {0} could not be loaded. -EJB_BEAN_EJB_LINK_INTEFACE_MISMATCH_ERROR_=IWAE0037E The interfaces of the linked enterprise bean {0} do not match those in EJB ref {1} in module {2}. - -# warnings ---------------------------- -WARNING_METAFOLDER_MISSING=IWAJ0000W: Meta folder {0} must exist in project {1}. -WARNING_FILE_MISSING=IWAJ0001W: {0} must exist in project {1}. -MESSAGE_INVALID_ALT_DD_WARN_=IWAE0022W The module {0} has alt-dd {1}, but the resource does not exist in EAR {2}. -INVALID_MANIFEST_CLASSPATH_ONE_WARN_=IWAE0023W The Manifest Class-Path in archive {0} contains an entry that cannot be resolved in the EAR: {1}. -INVALID_MANIFEST_CLASSPATH_TWO_WARN_=IWAE0024W The Manifest Class-Path for archive {0} contains an entry, {1}, that is not resolvable to a file or module in the Enterprise Application: {2}. -INVALID_MANIFEST_CLASSPATH_DEPENDENCY_WARN_=IWAE0025W The Manifest Class-Path in module {0} contains an entry, {1}, that resolves to archive {2}. This dependency does not comply with the J2EE specification. -PROJECT_IS_CLOSED_WARN_=IWAE0026W EAR Validation cannot run on closed project: {0}. Open the project, and try again. -PROJECT_DOES_NOT_EXIST_WARN_=IWAE0027W The project {0} for module or utility JAR {1} in enterprise application project {2} does not exist in the workspace. -MISSING_WEBNATURE_FORMODULE_WARN_=IWAE0028W The web module {0} in enterprise application project {1} is not a J2EE Web project. -DEPRECATED_ABSPATHS_WARN_=IWAE0029W The IBM extensions file in enterprise application project {0} contains deprecated absolute paths. Use the application editor to clean up the file. -INVALID_CONTEXTROOT_WEBMODULE_WARN_=IWAE0030W The context root for Web module: {0} in enterprise application project: {1} does not match the context root in web project settings of {2}. -MISSING_CLIENTNATURE_FORMODULE_WARN_=IWAE0031W The application client module {0} in enterprise application project:{1} is not an application client project. -MISSING_EJBNATURE_FORMODULE_WARN_=IWAE0032W The EJB module {0} in enterprise application project {1} is not an EJB project. -MISSING_PROJECT_FORMODULE_WARN_=IWAE0033W The module {0} in enterprise application project {1} has not been configured as a J2EE module dependency. -INVALID_CASE_FOR_MANIFEST_ERROR_=IWAE0038E The case of the manifest file name "{0}" in archive {1} in incorrect. File name must be "META-INF/MANIFEST.MF", case sensitive. -URI_ALREADY_EXISTS_IN_EAR_WARN_=IWAE0039W Project utility JAR URI {0} collides with an existing file in project {1}. -MISSING_MODULE_EXTENSION_ERROR_=IWAE0040E The application extension in EAR project: {0} is missing module extension for module project: {1}. -PROJECT_SERVER_TARGET_DOES_NOT_MATCH_EAR=The target server of the module project "{0}" does not match the target server of the containing enterprise application project "{1}" -NO_SERVER_TARGET_MODULE_IN_EAR_WITH_SERVER_TARGET=The module project "{0}" with no target server belongs to an enterprise application project "{1}" that has a target server -NO_SERVER_TARGET_ON_EAR_WITH_MODULE_SERVER_TARGETS=The ear project "{0}" with no target server has module project "{1}" that has a target server -INVALID_EAR_SERVER_TARGET_FOR_14_SPEC_LEVEL=The J2EE 1.4 specification EAR project "{0}" has an incompatible target server "{1}" -INVALID_MODULE_SERVER_TARGET_FOR_14_SPEC_LEVEL=The J2EE 1.4 specification module project "{0}" has an incompatible target server "{1}". -MESSAGE_INCOMPATIBLE_SPEC_WARNING_=IWAE0008E The module "{0}" is at an incompatible J2EE specification level than that of the "{1}" Enterprise Application. -MESSAGE_INCOMPATIBLE_13_SPEC_WARNING_=IWAE0008E The module "{0}" is J2EE v1.3 specification level, which is incompatible in the v1.2 EAR. -MESSAGE_INCOMPATIBLE_14_SPEC_WARNING_=The module "{0}" is J2EE v1.4 specification level, which is incompatible in the v1.3 EAR. -EAR_VALIDATION_INTERNAL_ERROR_UI_=IWAE0053E An internal error has occurred running validation on project:{0}, check the log file for details diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/ejbvalidator.properties b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/ejbvalidator.properties deleted file mode 100644 index bc3703429..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/ejbvalidator.properties +++ /dev/null @@ -1,1532 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2004 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: -# IBM Corporation - initial API and implementation -############################################################################### -# -# ************************************************************************* -# * Code oriented instructions: -# * -# * In the string, you may see the following special sequences: -# * a) {n} where n is a number. These are replaceable parameters. -# * b) '' In .properties files, in order to see one apostrophe (') in the final -# * string, sometimes two apostrophes must be entered in the string. In the translated -# * string, if there is at least one {n} in the string, then to show one apostrophe -# * to the user, put two apostrophes in the string. If there are no {n} in the string, -# * then put one apostrophe. -# * For example, say that you want the user to read "George's file". -# * GEORGE=George's file was on the desk. -# * GEORGE2=George''s file and {0} were on the desk. -# * GEORGE uses one apostrophe because there are no {n} and GEORGE2 -# * uses two apostrophes because there is a {n}. -# * c) '' text '' where text can be any word(s). The text between the double -# * apostrophes should not be translated. -# * d) <text> where text can be any word(s). The text between the angle -# * brackets should NOT be translated. -# * e) "text" where text can be any word(s). The text between the quotation -# * marks should NOT be translated. -# * -# ************************************************************************* -# * Other instructions -# * a) Do not translate any text that is on a line which begins with a comment -# * symbol (#). -# * b) Do not translate these words: -# * schema, EJB, RDB, JAR, RMI, BMP, CMP, OOSQL -# * c) Please return the .properties files using the same directory structure. -# * This is necessary because two of the files have the same name. -# * -# ************************************************************************* -# Any other comments to the translators are on lines which start like this: # 2TC: -# -# Version 1.42 -# - -# -# Begin EJB Validator strings. -# -# The purpose of -# IDs: -# STATUS=Status message -# LOC=Text description of a location (identifies the source of the problem when no line number is available) -# CHKJ=EJB validation message -# - -# -# Start of status messages -# -STATUS_VALIDATING=Validating {0}. - -LOC_CLASS=Class: {0} -LOC_FIELD=Field: {0}, Class: {1} -LOC_METHOD=Method: {0}, Class: {1} -LOC_BEAN=Enterprise bean: {0} -LOC_ROLE=<localRelationshipRoles>: {0}, Enterprise bean: {1} -LOC_ROLEREF=<security-role-ref>: {0} -LOC_METHODELEMENT=<method> element: {0} -LOC_METHODPERMISSION=<method-permission> element: {0} -LOC_METHODTRANSACTION=<container-transaction> element: {0} -LOC_EJBRELATION=<ejb-relation>: {0} -LOC_EJBRELATIONSHIPROLE=<ejb-relationship-role>: {0}, <ejb-relation>: {1} -# -# end of status messages -# - -# -# Start of validation messages -# -# All unique error ids follow this format: -# -# CHKJnnnn[s] -# -# where -# - CHKJ is the four character unique component prefix -# - nnnn is the numerical id, unique within EJB Validator -# - [s] is the severity indicator: E (error), W (warning), or I (information). -# -# nnnn ranges from 2000 - 2999 -# 2000 - 2099 Messages on a class -# 2100 - 2199 Messages which are specific to Websphere or WSA (i.e., not mentioned in EJB specification, such as associations & finders) -# 2200 - 2399 Messages on a field -# 2400 - 2799 Messages on a method -# 2800 - 2899 Messages on the deployment descriptor -# 2900 - 2999 Miscellaneous -# - -# -# Messages common across EJB specifications -# -CHKJ2900=CHKJ2900I: Internal error when running EJB validator. Read the log for details. -CHKJ2852=CHKJ2852W: Internal error while validating {0}. The bean being validated was {1}. -CHKJ2433=CHKJ2433W: Cannot validate {0} because {1} cannot be reflected. Check the classpath. -CHKJ2907=CHKJ2907E: Type {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2905=CHKJ2905W: The EJB Validator did not run because ejb-jar.xml could not be loaded. Run the XML validator for more information. -CHKJ2041=CHKJ2041I: Permanent classes and interfaces should be in a named package. (JLS 2.0: 7.4.2). - -CHKJ2456.i=CHKJ2456W: {0} should throw {1} for {2} or there may be compile errors in the deployment code. -CHKJ2456.m=CHKJ2456W: This method should throw {0} for {1} or there may be compile errors in the deployment code. - -# -# end of common messages -# - -# -# Messages for the EJB 1.1 specification -# -CHKJ2001.eb.ejb11=CHKJ2001W: The {0} key class must implement the {1} method. (EJB 1.1: 9.2.9) -CHKJ2002.eb.i.ejb11=CHKJ2002W: This class should implement a matching ejbPostCreate method for {0}. (EJB 1.1: 9.2.4) -CHKJ2002.eb.m.ejb11=CHKJ2002W: This class should implement a matching ejbPostCreate method for this method. (EJB 1.1: 9.2.4) -CHKJ2003E.ejb11=CHKJ2003E: This class must not implement javax.ejb.SessionSynchronization. (EJB 1.1: 6.5.3). -CHKJ2003I.ejb11=CHKJ2003I: Bean-managed transaction stateful session beans do not need to implement javax.ejb.SessionSynchronization. (EJB 1.1: 6.5.3). -CHKJ2004.eb.i.ejb11=CHKJ2004W: The {1} bean class should not implement the {0} ejbFind method. (EJB 1.1: 9.4.6) -CHKJ2004.eb.m.ejb11=CHKJ2004W: The {0} bean class should not implement an ejbFind method. (EJB 1.1: 9.4.6) -CHKJ2005.eh.i.ejb11=CHKJ2005E: {0} must be either a create method or a find method. (EJB 1.1: 9.2.8) -CHKJ2005.eh.m.ejb11=CHKJ2005E: The method must be either a create method or a find method. (EJB 1.1: 9.2.8) -CHKJ2006.sb.ejb11=CHKJ2006E: The {0} bean class must have a public constructor that takes no arguments. (EJB 1.1: 6.10.2) -CHKJ2006.eb.ejb11=CHKJ2006E: The {0} bean class must have a public constructor that takes no arguments. (EJB 1.1: 9.2.2) -CHKJ2007.sb.ejb11=CHKJ2007W: {0} should not declare the finalize() method. (EJB 1.1: 6.10.2) -CHKJ2007.eb.ejb11=CHKJ2007W: {0} should not declare the finalize() method. (EJB 1.1: 9.2.2) -CHKJ2008.sb.ejb11=CHKJ2008E: The {0} bean class must contain at least one ejbCreate method. (EJB 1.1: 6.5.5, 6.10.3) -CHKJ2009.eb.ejb11=CHKJ2009E: The {0} bean class must contain at least one ejbFindByPrimaryKey method. (EJB 1.1: 9.2.5) -CHKJ2010.sh.ejb11=CHKJ2010E: The {0} home interface must contain at least one create method. (EJB 1.1: 6.10.6) -CHKJ2011.eh.ejb11=CHKJ2011E: The {0} home interface must contain one findByPrimaryKey method. (EJB 1.1: 9.2.8) -CHKJ2012.sr.ejb11=CHKJ2012E: This type must be an interface. (EJB 1.1: 6.10.5). -CHKJ2012.sh.ejb11=CHKJ2012E: This type must be an interface. (EJB 1.1: 6.10.6). -CHKJ2012.er.ejb11=CHKJ2012E: This type must be an interface. (EJB 1.1: 9.2.7). -CHKJ2012.eh.ejb11=CHKJ2012E: This type must be an interface. (EJB 1.1: 9.2.8). -CHKJ2013.sb.ejb11=CHKJ2013E: The {0} bean class must implement {1}. (EJB 1.1: 6.10.2). -CHKJ2013.eb.ejb11=CHKJ2013E: The {0} bean class must implement {1}. (EJB 1.1: 9.2.2). -CHKJ2014.sb.ejb11=CHKJ2014E: The {0} bean class cannot be abstract. (EJB 1.1: 6.10.2) -CHKJ2014.eb.ejb11=CHKJ2014E: The {0} bean class cannot be abstract. (EJB 1.1: 9.2.2) -CHKJ2015.sb.ejb11=CHKJ2015E: The {0} bean class cannot be final. (EJB 1.1: 6.10.2) -CHKJ2015.eb.ejb11=CHKJ2015E: The {0} bean class cannot be final. (EJB 1.1: 9.2.2) -CHKJ2017.sr.ejb11=CHKJ2017E: Interface must extend {0}. (EJB 1.1: 6.10.5) -CHKJ2017.sh.ejb11=CHKJ2017E: Interface must extend {0}. (EJB 1.1: 6.10.6) -CHKJ2017.er.ejb11=CHKJ2017E: Interface must extend {0}. (EJB 1.1: 9.2.7) -CHKJ2017.eh.ejb11=CHKJ2017E: Interface must extend {0}. (EJB 1.1: 9.2.8) -CHKJ2019.eb.ejb11=CHKJ2019I: The {0} key class must be serializable at runtime. (EJB 1.1: 9.2.9) (RMI 1.3: 2.6). - - -CHKJ2020.eb.ejb11=CHKJ2020E: The {0} key class must be public. (EJB 1.1: 9.4.7.2) -CHKJ2021.eb.ejb11=CHKJ2021E: The {0} key class must define a public default constructor. (EJB 1.1: 9.4.7.2) -CHKJ2022.sb.ejb11=CHKJ2022E: {0} bean class must be public. (EJB 1.1: 6.10.2) -CHKJ2022.eb.ejb11=CHKJ2022E: {0} bean class must be public. (EJB 1.1: 9.2.2) -CHKJ2023.sr.i.ejb11=CHKJ2023E: {0} must have a matching method in the {1} bean class. (EJB 1.1: 6.10.5) -CHKJ2023.sr.m.ejb11=CHKJ2023E: This method must have a matching method in the {0} bean class. (EJB 1.1: 6.10.5) -CHKJ2023.er.i.ejb11=CHKJ2023E: {0} must have a matching method in the {1} bean class. (EJB 1.1: 9.2.7) -CHKJ2023.er.m.ejb11=CHKJ2023E: This method must have a matching method in the {0} bean class. (EJB 1.1: 9.2.7) -CHKJ2024.sh.i.ejb11=CHKJ2024E: {0} must not exist. Only create() may exist (EJB 1.1: 6.8). -CHKJ2024.sh.m.ejb11=CHKJ2024E: This method must not exist. Only create() may exist (EJB 1.1: 6.8). -CHKJ2025.sb.i.ejb11=CHKJ2025E: {0} must not exist. Only ejbCreate() may exist (EJB 1.1: 6.8). -CHKJ2025.sb.m.ejb11=CHKJ2025E: This method must not exist. Only ejbCreate() may exist (EJB 1.1: 6.8). -CHKJ2026.sh.i.ejb11=CHKJ2026E: Bean class {1} must implement a matching ejbCreate method for {0}. (EJB 1.1: 6.10.6) -CHKJ2026.sh.m.ejb11=CHKJ2026E: Bean class {0} must implement a matching ejbCreate method for this method. (EJB 1.1: 6.10.6) -CHKJ2026.eh.i.ejb11=CHKJ2026E: Bean class {1} must implement a matching ejbCreate method for {0}. (EJB 1.1: 9.2.8) -CHKJ2026.eh.m.ejb11=CHKJ2026E: Bean class {0} must implement a matching ejbCreate method for this method. (EJB 1.1: 9.2.8) -CHKJ2028.eb.i.ejb11=CHKJ2028W: {0} will not be called unless a matching ejbCreate method is defined. (EJB 1.1: 9.1.5.1) -CHKJ2028.eb.m.ejb11=CHKJ2028W: This method will not be called unless a matching ejbCreate method is defined. (EJB 1.1: 9.1.5.1) -CHKJ2029.eb.i.ejb11=CHKJ2029W: {0} cannot be called without the matching create method on the home interface {1}. (EJB 1.1: 9.2.3) -CHKJ2029.eb.m.ejb11=CHKJ2029W: This method cannot be called without the matching create method on the home interface {0}. (EJB 1.1: 9.2.3) -CHKJ2030.eh.i.ejb11=CHKJ2030E: {0} must have a matching ejbFind method in the {1} bean class. (EJB 1.1: 9.2.8) -CHKJ2030.eh.m.ejb11=CHKJ2030E: This method must have a matching ejbFind method in the {0} bean class. (EJB 1.1: 9.2.8) -CHKJ2032.eb.ejb11=CHKJ2032W: Bean class {0} must declare at least one container managed field. (EJB 1.1: 9.4.7) -CHKJ2033.eb.ejb11=CHKJ2033W: The setEntityContext(EntityContext ic) method must exist. (EJB 1.1: 9.1.5.1) -CHKJ2034.eb.ejb11=CHKJ2034W: The unsetEntityContext() method must exist. (EJB 1.1: 9.1.5.1) -CHKJ2035.eb.ejb11=CHKJ2035W: The ejbActivate() method must exist. (EJB 1.1: 9.1.5.1) -CHKJ2036.eb.ejb11=CHKJ2036W: The ejbPassivate() method must exist. (EJB 1.1: 9.1.5.1) -CHKJ2037.eb.ejb11=CHKJ2037W: The ejbRemove() method must exist. (EJB 1.1: 9.1.5.1) -CHKJ2038.eb.ejb11=CHKJ2038W: The ejbLoad() method must exist. (EJB 1.1: 9.1.5.1) -CHKJ2039.eb.ejb11=CHKJ2039W: The ejbStore() method must exist. (EJB 1.1: 9.1.5.1) - -CHKJ2040.sb.ejb11=CHKJ2040I: "this" must not be passed as a method argument or result. (EJB 1.1: 6.10.2) - -CHKJ2100.ejb11=CHKJ2100E: Both ends of the role must use the same number of attributes. -CHKJ2101.ejb11=CHKJ2101E: Both ends of the role must use the same type. -CHKJ2102.eh.ejb11=CHKJ2102E: Either a finder descriptor, or a matching custom finder method on the {0} class, must be defined. -CHKJ2103.ejb11=CHKJ2103E: In component inheritance, the {0} bean class must inherit {1}. (EJB 1.1: B.2) -CHKJ2104.ejb11=CHKJ2104E: In component inheritance, the {0} home interface must not inherit {1}. (EJB 1.1: B.2) -CHKJ2105.ejb11=CHKJ2105E: In component inheritance, the {0} remote interface must inherit {1}. (EJB 1.1: B.2) -CHKJ2106.ejb11=CHKJ2106E: Bean {0} must use {1} as its <prim-key-class> (EJB 1.1: B.2). - -CHKJ2200.i.ejb11=CHKJ2200W: The {0} static field should be final. (EJB 1.1: 18.1.2) -CHKJ2200.m.ejb11=CHKJ2200W: This static field should be final. (EJB 1.1: 18.1.2) -CHKJ2201.eb.i.ejb11=CHKJ2201E: {0} must not be transient. (EJB 1.1: 9.4.1) -CHKJ2201.eb.m.ejb11=CHKJ2201E: The field must not be transient. (EJB 1.1: 9.4.1) -CHKJ2202.eb.i.ejb11=CHKJ2202W: The field type of field {0} is invalid for a CMP bean. (EJB 1.1: 9.4.1) -CHKJ2202.eb.m.ejb11=CHKJ2202W: The field type is invalid for a CMP bean. (EJB 1.1: 9.4.1) -CHKJ2203.eb.i.ejb11=CHKJ2203E: {0} must be public. (EJB 1.1: 9.4.1) -CHKJ2203.eb.m.ejb11=CHKJ2203E: The field must be public. (EJB 1.1: 9.4.1) -CHKJ2205.eb.i.ejb11=CHKJ2205W: The primary key field named {0} must be public. (EJB 1.1: 9.4.7.2) -CHKJ2205.eb.m.ejb11=CHKJ2205W: The primary key field must be public. (EJB 1.1: 9.4.7.2) -CHKJ2206.eb.i.ejb11=CHKJ2206W: {0} must be a <cmp-field> of {1} and a field of bean class {2}. (EJB 1.1: 9.4.7.2). -CHKJ2206.eb.m.ejb11=CHKJ2206W: This field must be a <cmp-field> of {0} and a field of bean class {1}. (EJB 1.1: 9.4.7.2). -CHKJ2207.eb.ejb11=CHKJ2207E: Key field {0} must be the same type as the primary key, {1}. (EJB 1.1: 9.4.7.1). - -CHKJ2400.ejbCreate.sb.i.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException on method {0}. (EJB 1.1: 6.10.3). -CHKJ2400.ejbCreate.sb.m.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException. (EJB 1.1: 6.10.3). -CHKJ2400.bus.sb.i.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException on method {0}. (EJB 1.1: 6.10.4). -CHKJ2400.bus.sb.m.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException. (EJB 1.1: 6.10.4). -CHKJ2400.ejbCreate.eb.i.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException on {0}. (EJB 1.1: 9.2.3). -CHKJ2400.ejbCreate.eb.m.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException. (EJB 1.1: 9.2.3). -CHKJ2400.ejbPostCreate.eb.i.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException on {0}. (EJB 1.1: 9.2.4). -CHKJ2400.ejbPostCreate.eb.m.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException. (EJB 1.1: 9.2.4). -CHKJ2400.ejbFind.eb.i.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException on {0}. (EJB 1.1: 9.2.5). -CHKJ2400.ejbFind.eb.m.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException. (EJB 1.1: 9.2.5). -CHKJ2400.bus.eb.i.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException on {0}. (EJB 1.1: 9.2.6). -CHKJ2400.bus.eb.m.ejb11=CHKJ2400W: Deprecated use of a java.rmi.RemoteException. (EJB 1.1: 9.2.6). - -CHKJ2401.sb.i.ejb11=CHKJ2401E: {0} must return void. (EJB 1.1: 6.10.3) -CHKJ2401.sb.m.ejb11=CHKJ2401E: This method must return void. (EJB 1.1: 6.10.3) -CHKJ2402.sh.i.ejb11=CHKJ2402W: {0} must return the {1} remote interface type. (EJB 1.1: 6.10.6). -CHKJ2402.sh.m.ejb11=CHKJ2402W: This create method must return the {0} remote interface type. (EJB 1.1: 6.10.6). -CHKJ2402.eh.i.ejb11=CHKJ2402W: {0} must return the {1} remote interface type. (EJB 1.1: 9.2.8). -CHKJ2402.eh.m.ejb11=CHKJ2402W: This create method must return the {0} remote interface type. (EJB 1.1: 9.2.8). -CHKJ2403.eh.i.ejb11=CHKJ2403W: {0} must return {1} or a collection thereof. (EJB 1.1: 9.2.8) -CHKJ2403.eh.m.ejb11=CHKJ2403W: The method must return {0} or a collection thereof. (EJB 1.1: 9.2.8) -CHKJ2405.eh.i.ejb11=CHKJ2405W: The order and types of the arguments in {0} must match the order and types of the fields in the {1} key class. (EJB 1.1: 9.2.8, 9.4.7.3, 16.5) -CHKJ2405.eh.m.ejb11=CHKJ2405W: The order and types of the arguments must match the order and types of the fields in the {0} key class. (EJB 1.1: 9.2.8, 9.4.7.3, 16.5) -CHKJ2406.eb.i.ejb11=CHKJ2406W: {0} should return the primary key type {1}. (EJB 1.1: 9.2.3, 9.4.2, 9.4.7.3). -CHKJ2406.eb.m.ejb11=CHKJ2406W: The method should return the primary key type {0}. (EJB 1.1: 9.2.3, 9.4.2, 9.4.7.3). -CHKJ2407.eb.i.ejb11=CHKJ2407W: {0} should return either {1} or a collection thereof. (EJB 1.1: 9.2.5) -CHKJ2407.eb.m.ejb11=CHKJ2407W: This method should return either {0} or a collection thereof. (EJB 1.1: 9.2.5) - -CHKJ2408.ejbCreate.sb.i.ejb11=CHKJ2408E: {0} must be public. (EJB 1.1: 6.10.3). -CHKJ2408.ejbCreate.sb.m.ejb11=CHKJ2408E: The method must be public. (EJB 1.1: 6.10.3). -CHKJ2408.bus.sb.i.ejb11=CHKJ2408E: {0} must be public. (EJB 1.1: 6.10.4). -CHKJ2408.bus.sb.m.ejb11=CHKJ2408E: This method must be public. (EJB 1.1: 6.10.4). -CHKJ2408.ejbCreate.eb.i.ejb11=CHKJ2408E: {0} must be public. (EJB 1.1: 9.2.3). -CHKJ2408.ejbCreate.eb.m.ejb11=CHKJ2408E: This method must be public. (EJB 1.1: 9.2.3). -CHKJ2408.ejbPostCreate.eb.i.ejb11=CHKJ2408E: {0} must be public. (EJB 1.1: 9.2.4). -CHKJ2408.ejbPostCreate.eb.m.ejb11=CHKJ2408E: This method must be public. (EJB 1.1: 9.2.4). -CHKJ2408.ejbFind.eb.i.ejb11=CHKJ2408E: {0} must be public. (EJB 1.1: 9.2.5). -CHKJ2408.ejbFind.eb.m.ejb11=CHKJ2408E: This method must be public. (EJB 1.1: 9.2.5). -CHKJ2408.bus.eb.i.ejb11=CHKJ2408E: {0} must be public. (EJB 1.1: 9.2.6). -CHKJ2408.bus.eb.m.ejb11=CHKJ2408E: This method must be public. (EJB 1.1: 9.2.6). - -CHKJ2409.ejbCreate.sb.i.ejb11=CHKJ2409E: {0} must not be final. (EJB 1.1: 6.10.3). -CHKJ2409.ejbCreate.sb.m.ejb11=CHKJ2409E: This method must not be final. (EJB 1.1: 6.10.3). -CHKJ2409.bus.sb.i.ejb11=CHKJ2409E: {0} must not be final. (EJB 1.1: 6.10.4). -CHKJ2409.bus.sb.m.ejb11=CHKJ2409E: This method must not be final. (EJB 1.1: 6.10.4). -CHKJ2409.ejbCreate.eb.i.ejb11=CHKJ2409E: {0} must not be final. (EJB 1.1: 9.2.3). -CHKJ2409.ejbCreate.eb.m.ejb11=CHKJ2409E: This method must not be final. (EJB 1.1: 9.2.3). -CHKJ2409.ejbPostCreate.eb.i.ejb11=CHKJ2409E: {0} must not be final. (EJB 1.1: 9.2.4). -CHKJ2409.ejbPostCreate.eb.m.ejb11=CHKJ2409E: This method must not be final. (EJB 1.1: 9.2.4). -CHKJ2409.ejbFind.eb.i.ejb11=CHKJ2409E: {0} must not be final. (EJB 1.1: 9.2.5). -CHKJ2409.ejbFind.eb.m.ejb11=CHKJ2409E: This method must not be final. (EJB 1.1: 9.2.5). -CHKJ2409.bus.eb.i.ejb11=CHKJ2409E: {0} must not be final. (EJB 1.1: 9.2.6). -CHKJ2409.bus.eb.m.ejb11=CHKJ2409E: This method must not be final. (EJB 1.1: 9.2.6). - -CHKJ2410.ejbCreate.sb.i.ejb11=CHKJ2410E: {0} must not be static. (EJB 1.1: 6.10.3). -CHKJ2410.ejbCreate.sb.m.ejb11=CHKJ2410E: This method must not be static. (EJB 1.1: 6.10.3). -CHKJ2410.bus.sb.i.ejb11=CHKJ2410E: {0} must not be static. (EJB 1.1: 6.10.4). -CHKJ2410.bus.sb.m.ejb11=CHKJ2410E: This method must not be static. (EJB 1.1: 6.10.4). -CHKJ2410.ejbCreate.eb.i.ejb11=CHKJ2410E: {0} must not be static. (EJB 1.1: 9.2.3). -CHKJ2410.ejbCreate.eb.m.ejb11=CHKJ2410E: This method must not be static. (EJB 1.1: 9.2.3). -CHKJ2410.ejbPostCreate.eb.i.ejb11=CHKJ2410E: {0} must not be static. (EJB 1.1: 9.2.4). -CHKJ2410.ejbPostCreate.eb.m.ejb11=CHKJ2410E: This method must not be static. (EJB 1.1: 9.2.4). -CHKJ2410.ejbFind.eb.i.ejb11=CHKJ2410E: {0} must not be static. (EJB 1.1: 9.2.5). -CHKJ2410.ejbFind.eb.m.ejb11=CHKJ2410E: This method must not be static. (EJB 1.1: 9.2.5). -CHKJ2410.bus.eb.i.ejb11=CHKJ2410E: {0} must not be static. (EJB 1.1: 9.2.6). -CHKJ2410.bus.eb.m.ejb11=CHKJ2410E: This method must not be static. (EJB 1.1: 9.2.6). - -CHKJ2411.sb.i.ejb11=CHKJ2411E: The name of {0} must not start with "ejb". (EJB 1.1: 6.10.4) -CHKJ2411.sb.m.ejb11=CHKJ2411E: The name of the method must not start with "ejb". (EJB 1.1: 6.10.4) -CHKJ2411.eb.i.ejb11=CHKJ2411E: The name of {0} must not start with "ejb". (EJB 1.1: 9.2.6) -CHKJ2411.eb.m.ejb11=CHKJ2411E: The name of the method must not start with "ejb". (EJB 1.1: 9.2.6) - -CHKJ2412.sb.i.ejb11=CHKJ2412I: The return type of {0} must be serializable at runtime. (EJB 1.1: 6.10) (RMI 1.3: 2.6). -CHKJ2412.sb.m.ejb11=CHKJ2412I: The return type must be serializable at runtime. (EJB 1.1: 6.10) (RMI 1.3: 2.6). -CHKJ2412.eb.i.ejb11=CHKJ2412I: The return type of {0} must be serializable at runtime. (EJB 1.1: 9.2) (RMI 1.3: 2.6). -CHKJ2412.eb.m.ejb11=CHKJ2412I: The return type must be serializable at runtime. (EJB 1.1: 9.2) (RMI 1.3: 2.6). -CHKJ2412.sr.i.ejb11=CHKJ2412I: The return type of {0} must be serializable at runtime. (EJB 1.1: 6.10.5) (RMI 1.3: 2.6). -CHKJ2412.sr.m.ejb11=CHKJ2412I: The return type must be serializable at runtime. (EJB 1.1: 6.10.5) (RMI 1.3: 2.6). -CHKJ2412.er.i.ejb11=CHKJ2412I: The return type of {0} must be serializable at runtime. (EJB 1.1: 9.2.7) (RMI 1.3: 2.6). -CHKJ2412.er.m.ejb11=CHKJ2412I: The return type must be serializable at runtime. (EJB 1.1: 9.2.7) (RMI 1.3: 2.6). -CHKJ2412.sh.i.ejb11=CHKJ2412I: The return type of {0} must be serializable at runtime. (EJB 1.1: 6.10.6) (RMI 1.3: 2.6). -CHKJ2412.sh.m.ejb11=CHKJ2412I: The return type must be serializable at runtime. (EJB 1.1: 6.10.6) (RMI 1.3: 2.6). -CHKJ2412.eh.i.ejb11=CHKJ2412I: The return type of {0} must be serializable at runtime. (EJB 1.1: 9.2.8) (RMI 1.3: 2.6). -CHKJ2412.eh.m.ejb11=CHKJ2412I: The return type must be serializable at runtime. (EJB 1.1: 9.2.8) (RMI 1.3: 2.6). - -CHKJ2413.sb.i.ejb11=CHKJ2413I: Argument {1} of {0} must be serializable at runtime. (EJB 1.1: 6.10) (RMI 1.3: 2.6). -CHKJ2413.sb.m.ejb11=CHKJ2413I: Argument {0} must be serializable at runtime. (EJB 1.1: 6.10) (RMI 1.3: 2.6). -CHKJ2413.eb.i.ejb11=CHKJ2413I: Argument {1} of {0} must be serializable at runtime. (EJB 1.1: 9.2) (RMI 1.3: 2.6). -CHKJ2413.eb.m.ejb11=CHKJ2413I: Argument {0} must be serializable at runtime. (EJB 1.1: 9.2) (RMI 1.3: 2.6). -CHKJ2413.sr.i.ejb11=CHKJ2413I: Argument {1} of {0} must be serializable at runtime. (EJB 1.1: 6.10.5) (RMI 1.3: 2.6). -CHKJ2413.sr.m.ejb11=CHKJ2413I: Argument {0} must be serializable at runtime. (EJB 1.1: 6.10.5) (RMI 1.3: 2.6). -CHKJ2413.er.i.ejb11=CHKJ2413I: Argument {1} of {0} must be serializable at runtime. (EJB 1.1: 9.2.7) (RMI 1.3: 2.6). -CHKJ2413.er.m.ejb11=CHKJ2413I: Argument {0} must be serializable at runtime. (EJB 1.1: 9.2.7) (RMI 1.3: 2.6). -CHKJ2413.sh.i.ejb11=CHKJ2413I: Argument {1} of {0} must be serializable at runtime. (EJB 1.1: 6.10.6) (RMI 1.3: 2.6). -CHKJ2413.sh.m.ejb11=CHKJ2413I: Argument {0} must be serializable at runtime. (EJB 1.1: 6.10.6) (RMI 1.3: 2.6). -CHKJ2413.eh.i.ejb11=CHKJ2413I: Argument {1} of {0} must be serializable at runtime. (EJB 1.1: 9.2.8) (RMI 1.3: 2.6). -CHKJ2413.eh.m.ejb11=CHKJ2413I: Argument {0} must be serializable at runtime. (EJB 1.1: 9.2.8) (RMI 1.3: 2.6). - -CHKJ2414.sh.i.ejb11=CHKJ2414E: {0} must throw {1}. (EJB 1.1: 6.10.6) -CHKJ2414.sh.m.ejb11=CHKJ2414E: The method must throw {0}. (EJB 1.1: 6.10.6) -CHKJ2414.eh.i.ejb11=CHKJ2414E: {0} must throw {1}. (EJB 1.1: 9.2.8) -CHKJ2414.eh.m.ejb11=CHKJ2414E: The method must throw {0}. (EJB 1.1: 9.2.8) -CHKJ2414.sr.i.ejb11=CHKJ2414E: {0} must throw {1}. (EJB 1.1: 6.10.5) -CHKJ2414.sr.m.ejb11=CHKJ2414E: The method must throw {0}. (EJB 1.1: 6.10.5) -CHKJ2414.er.i.ejb11=CHKJ2414E: {0} must throw {1}. (EJB 1.1: 9.2.7) -CHKJ2414.er.m.ejb11=CHKJ2414E: The method must throw {0}. (EJB 1.1: 9.2.7) - -CHKJ2415.sr.i.ejb11=CHKJ2415E: The return type of {0} must match the return type, {1}, of the matching method in the {2} bean class. (EJB 1.1: 6.10.5) -CHKJ2415.sr.m.ejb11=CHKJ2415E: The return type must match the return type, {0}, of the matching method in the {1} bean class. (EJB 1.1: 6.10.5) -CHKJ2415.er.i.ejb11=CHKJ2415E: The return type of {0} must match the return type, {1}, of the matching method in the {2} bean class. (EJB 1.1: 9.2.7) -CHKJ2415.er.m.ejb11=CHKJ2415E: The return type must match the return type, {0}, of the matching method in the {1} bean class. (EJB 1.1: 9.2.7) -CHKJ2415.sh.i.ejb11=CHKJ2415E: The return type of {0} must match the return type, {1}, of the matching method in the {2} bean class. (EJB 1.1: 6.10.6) -CHKJ2415.sh.m.ejb11=CHKJ2415E: The return type must match the return type, {0}, of the matching method in the {1} bean class. (EJB 1.1: 6.10.6) -CHKJ2415.eh.i.ejb11=CHKJ2415E: The return type of {0} must match the return type, {1}, of the matching method in the {2} bean class. (EJB 1.1: 9.2.8) -CHKJ2415.eh.m.ejb11=CHKJ2415E: The return type must match the return type, {0}, of the matching method in the {1} bean class. (EJB 1.1: 9.2.8) - -CHKJ2418.eb.i.ejb11=CHKJ2418E: {0} must return void. (EJB 1.1: 9.2.4) -CHKJ2418.eb.m.ejb11=CHKJ2418E: This method must return void. (EJB 1.1: 9.2.4) -CHKJ2419.sh.i.ejb11=CHKJ2419E: {0} must be a create method. (EJB 1.1: 6.10.6) -CHKJ2419.sh.m.ejb11=CHKJ2419E: This method must be a create method. (EJB 1.1: 6.10.6) - -CHKJ2420.sb.i.ejb11=CHKJ2420E: {1} must be thrown by {0}''s corresponding method on the {2} home interface. (EJB 1.1: 6.10.6, 12.2.1, 12.2.2) -CHKJ2420.sb.m.ejb11=CHKJ2420E: {0} must be thrown by the corresponding method on the {1} home interface. (EJB 1.1: 6.10.6, 12.2.1, 12.2.2) -CHKJ2420.eb.i.ejb11=CHKJ2420E: {1} must be thrown by {0}''s corresponding method on the {2} home interface. (EJB 1.1: 9.2.8, 12.2.1, 12.2.2) -CHKJ2420.eb.m.ejb11=CHKJ2420E: {0} must be thrown by the corresponding method on the {1} home interface. (EJB 1.1: 9.2.8, 12.2.1, 12.2.2) -CHKJ2432.sb.i.ejb11=CHKJ2432E: {0}''s corresponding method on the {1} remote interface must throw {2}. (EJB 1.1: 6.10.5, 12.2.1, 12.2.2) -CHKJ2432.sb.m.ejb11=CHKJ2432E: The corresponding method on the {0} remote interface must throw {1}. (EJB 1.1: 6.10.5, 12.2.1, 12.2.2) -CHKJ2432.eb.i.ejb11=CHKJ2432E: {0}''s corresponding method on the {1} remote interface must throw {2}. (EJB 1.1: 9.2.7, 12.2.1, 12.2.2) -CHKJ2432.eb.m.ejb11=CHKJ2432E: The corresponding method on the {0} remote interface must throw {1}. (EJB 1.1: 9.2.7, 12.2.1, 12.2.2) - -CHKJ2801.ejb11=CHKJ2801E: The value of the <ejb-name> element must be specified. (EJB 1.1: 16.2, 16.5) -CHKJ2802.named.ejb11=CHKJ2802E: <ejb-class> class {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2802.unnamed.ejb11=CHKJ2802E: Unknown class specified in the <ejb-class> element. (EJB 1.1: 16.2, 16.5). -CHKJ2803.named.ejb11=CHKJ2803E: <home> interface {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2803.unnamed.ejb11=CHKJ2803E: Unknown interface specified in the <home> element. (EJB 1.1: 16.2, 16.5). -CHKJ2804.named.ejb11=CHKJ2804E: <remote> interface {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2804.unnamed.ejb11=CHKJ2804E: Unknown interface specified in the <remote> element. (EJB 1.1: 16.2, 16.5). -CHKJ2806.ejb11=CHKJ2806E: The value of the <reentrant> element must be either "True" or "False". (EJB 1.1: 16.2, 16.5) -CHKJ2807.ejb11=CHKJ2807E: The value of the <session-type> element must be either "Stateful" or "Stateless". (EJB 1.1: 16.2, 16.5) -CHKJ2808.ejb11=CHKJ2808E: The value of the <transaction-type> element must be either "Container" or "Bean". (EJB 1.1: 11.3.5, 16.2,, 16.5) -CHKJ2809.ejb11=CHKJ2809E: The value of the <persistence-type> element must be either "Container" or "Bean". (EJB 1.1: 16.2, 16.5) -CHKJ2810.named.ejb11=CHKJ2810E: <prim-key-class> class {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2810.unnamed.ejb11=CHKJ2810E: Unknown class specified in the <prim-key-class> element. (EJB 1.1: 16.2, 16.5). -CHKJ2811.named.ejb11=CHKJ2811E: <field-name> {0} cannot be located on bean class {1}. (EJB 1.1: 16.5). -CHKJ2811.unnamed.ejb11=CHKJ2811E: <cmp-field> must specify a <field-name>. (EJB 1.1: 16.5). -CHKJ2812.ejb11=CHKJ2812E: Bean class {0} must specify at least one of its fields as a <cmp-field>. (EJB 1.1: 16.5) -CHKJ2814.ejb11=CHKJ2814W: <ejb-name>, in <method>, should specify a known enterprise bean. (EJB 1.1: 11.4.1, 15.3.2, 16.5) - -CHKJ2820.ejb11=CHKJ2820W: The security role ref must be defined only once. -CHKJ2822.ejb11=CHKJ2822W: <security-role-ref> element for bean {0} should define the <role-name> element. (EJB 1.1: 15.2.5.3) -CHKJ2823.ejb11=CHKJ2823W: <security-role-ref> element should define the <role-link> element. (EJB 1.1: 15.3.3) -CHKJ2824.ejb11=CHKJ2824W: <security-role-ref> element refers to unknown role {0}. (EJB 1.1: 15.3.3) -CHKJ2825.ejb11=CHKJ2825W: <security-role> element in ejb-jar.xml should define the <role-name> element. (EJB 1.1: 15.3.1) -CHKJ2826.ejb11=CHKJ2826W: The security-role name must be unique. (EJB 1.1: 15.3.1) -CHKJ2827.ejb11=CHKJ2827W: Cannot use a <role-link> element without <security-role> elements. (EJB 1.1: 15.2.5.3, 15.3.1, 15.3.3) -CHKJ2828.ejb11=CHKJ2828E: Cannot use a <primkey-field> element without a primitive primary key. (EJB 1.1: 9.4.7, 16.5) -CHKJ2829.ejb11=CHKJ2829E: Key class {0} does not map to any fields in enterprise bean {1}. (EJB 1.1: 9.4.7, 16.5) - -CHKJ2830.ejb11=CHKJ2830W: The type of the {0} field cannot be reflected. Check the classpath. -CHKJ2831.ejb11=CHKJ2831W: {0} must be declared in a <cmp-field> element. (EJB 1.1: 9.4.7.2) -CHKJ2832.ejb11=CHKJ2832I: Home {0}, specified in the <ejb-ref> element, cannot be found in the EJB module. (EJB 1.1: 14.3.1.2) -CHKJ2833.ejb11=CHKJ2833I: Remote {0}, specified in the <ejb-ref> element, cannot be found in the EJB module. (EJB 1.1: 14.3.1.2) -CHKJ2834.ejb11=CHKJ2834I: Bean {0}, specified in the <ejb-ref> element, cannot be found in the EJB module. (EJB 1.1: 14.3.2) -CHKJ2835.ejb11=CHKJ2835I: Bean {0} is a {1} type. Update the <ejb-ref-type> element of the <ejb-ref> element. (EJB 1.1: 14.3.2) -CHKJ2836.ejb11=CHKJ2836I: Bean {0} uses home {1}. Update the <ejb-ref> element of the <ejb-ref> element. (EJB 1.1: 14.3.2) -CHKJ2837.ejb11=CHKJ2837I: Bean {0} uses remote {1}. Update the <ejb-ref> element of the <ejb-ref> element. (EJB 1.1: 14.3.2). -CHKJ2838.ejb11=CHKJ2838I: It is recommended that all references to enterprise beans be organized in the "ejb" subcontext. (EJB 1.1: 14.3.1.1). -CHKJ2839.ejb11=CHKJ2839W: The <env-entry-name> element, of the <env-entry> element, is invalid. (EJB 1.1: 14.2.1.2) - -CHKJ2840.ejb11=CHKJ2840W: The <env-entry-type> element, of the <env-entry> element, is invalid. (EJB 1.1: 14.2.1.2). -CHKJ2841.ejb11=CHKJ2841W: The {0} name, in the <env-entry-name> element, can be used only once in the bean. (EJB 1.1: 14.2.1.2). -CHKJ2842.ejb11=CHKJ2842W: <method-params> is ignored when <method-name> is "*". (EJB 1.1: 11.4.1, 15.3.2). -CHKJ2843.ejb11=CHKJ2843W: No methods, on {0}, match this <method>. (EJB 1.1: 11.4.1, 15.3.2). -CHKJ2844.ejb11=CHKJ2844W: At least one <method> should be set in a <method-permission>. (EJB 1.1: 11.4.1, 15.3.2). -CHKJ2845.ejb11=CHKJ2845W: At least one <role-name> should be set in a <method-permission>. (EJB 1.1: 11.4.1, 15.3.2). -CHKJ2846.ejb11=CHKJ2846W: No methods can be found for this <method-permission>. (EJB 1.1: 15.3.2). -CHKJ2847.ejb11=CHKJ2847W: No methods can be found for this <container-transaction>. (EJB 1.1: 11.4.1). -CHKJ2849.ejb11=CHKJ2849W: Cannot validate component inheritance of {0} because {1}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2850.ejb11=CHKJ2850W: Cannot validate <method> because {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2851.ejb11=CHKJ2851W: Cannot validate {0} because {1}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2852.ejb11=CHKJ2852W: Throwable caught while validating the ejb-jar.xml. The bean being validated was {0}. -CHKJ2853.ejb11=CHKJ2853W: Throwable caught while validating the ibm-ejb-jar-ext.xmi. The bean being validated was {0}. - -CHKJ2908.ejb11=CHKJ2908W: An enterprise bean cannot be reflected properly. Run the XML validator for more information. - -CHKJ2895.ejb11=CHKJ2895W: <ejb-name> {0} must be unique within the ejb-jar.xml file (EJB 1.1: 16.5). -CHKJ2875.ejb11=CHKJ2875E: <ejb-client-jar> {0} must exist in every EAR file that contains this EJB module (EJB 1.1: 16.5, 17.4). - - -# EJB_METHOD_BEAN_NULL=CHKJ2434W: Validation of this method was terminated because the bean class cannot be found. Check the spelling of the bean class'' name in the ejb-jar.xml file. -# EJB_METHOD_HOME_NULL=CHKJ2435W: Validation of this method was terminated because the home interface cannot be found. Check the spelling of the home interface''s name in the ejb-jar.xml file. -# EJB_METHOD_REMOTE_NULL=CHKJ2436W: Validation of this method was terminated because the remote interface cannot be found. Check the spelling of the remote interface''s name in the ejb-jar.xml file. -# EJB_METHOD_NULL=CHKJ2437W: Validation of this method was terminated because the enterprise bean cannot be found. -# EJB_METHOD_KEY_NULL=CHKJ2438W: Validation of this method was terminated because the primary key cannot be found. Check the spelling of the key class'' name in the ejb-jar.xml file. -# EJB_REMOTE_NULL=CHKJ2904E: Validation of {0} was terminated because the remote interface cannot be found. Check the spelling of its name in the ejb-jar.xml file. -# EJB_NULL=CHKJ2903E: Validation was terminated because the enterprise bean cannot be found. -# EJB_NOTREFLECTED_JAVACLASS=CHKJ2907E: Cannot validate because the {0} type cannot be reflected. Ensure that it, and all of its dependencies, are included in the classpath. -# EJB_FIELD_CANNOT_REFLECT=CHKJ2208W: Type {0} of field {1} cannot be reflected. Ensure that {0}, and all of its dependencies, are included in the classpath. -# EJB_FIELD_BEAN_NULL=CHKJ2209W: Validation of this field was terminated because the bean class cannot be found. Check the spelling of the bean class'' name in the ejb-jar.xml file. -# EJB_FIELD_HOME_NULL=CHKJ2210W: Validation of this field was terminated because the home interface cannot be found. Check the spelling of the home interface''s name in the ejb-jar.xml file. -# EJB_FIELD_REMOTE_NULL=CHKJ2211W: Validation of this field was terminated because the remote interface cannot be found. Check the spelling of the remote interface''s name in the ejb-jar.xml file. -# EJB_FIELD_NULL=CHKJ2212W: Validation of this field was terminated because the enterprise bean cannot be found. -# EJB_FIELD_KEY_NULL=CHKJ2213W: Validation of this field was terminated because the primary key cannot be found. Check the spelling of the key class'' name in the ejb-jar.xml file. -# EJB_HAS_MULTIPLE_PK_METHODS=CHKJ2000W: The {0} home interface must contain only one findByPrimaryKey method. (EJB 1.1: 9.2.8) -# EJB_HOME_NULL=CHKJ2901E: Validation of {0} was terminated because the home interface cannot be found. Check the spelling of its name in the ejb-jar.xml file. -# EJB_KEY_NULL=CHKJ2902E: Validation of {0} was terminated because the key class cannot be found. Check the spelling of its name in the ejb-jar.xml file. -# EJB_BEAN_NULL=CHKJ2900E: Validation of {0} was terminated because the bean class cannot be found. Check the spelling of its name in the ejb-jar.xml file. -# EJB_BMP_NOFIELDS=CHKJ2042W: To have a primary key, the {0} bean class must declare at least one field. (EJB 1.1: 9.1.5.1) -# EJB_DD_CANNOT_OPEN_DD=CHKJ2821E: Cannot open the deployment descriptor. Validation cannot complete. -# EJB_DD_METHTRANSACTION_NO_TRANSACTION=CHKJ2848W: At least one <trans-attribute> must be set in a <container-transaction>. (EJB 1.1: 11.4.1) - -# -# end of messages for the EJB 1.1 specification -# - -# -# Messages for EJB 2.0 specification -# -CHKJ2828.ejb20=CHKJ2828E: Cannot use a <primkey-field> without a primitive primary key (EJB 2.0: 10.8.1, 22.5). -CHKJ2829.ejb20=CHKJ2829E: Key class {0} does not map to any fields in enterprise bean {1}. (EJB 2.0: 10.8, 22.5). -CHKJ2839.ejb20=CHKJ2839W: The <env-entry-name> element, of the <env-entry> element, is invalid. (EJB 2.0: 20.2.1.2). -CHKJ2840.ejb20=CHKJ2840W: The <env-entry-type> element, of the <env-entry> element, is invalid. (EJB 2.0: 20.2.1.2). -CHKJ2841.ejb20=CHKJ2841W: The {0} name, in the <env-entry-name> element, can be used only once in the bean. (EJB 2.0: 20.2.1.2). -CHKJ2830.ejb20=CHKJ2830W: The type of the {0} field cannot be reflected. Check the classpath. -CHKJ2831.ejb20=CHKJ2831W: {0} must be declared in a <cmp-field> element. (EJB 2.0: 10.8.2). -CHKJ2801.ejb20=CHKJ2801E: The value of the <ejb-name> element must be specified. (EJB 2.0 22.2, 22.5). -CHKJ2809.ejb20=CHKJ2809E: The value of the <persistence-type> element must be either "Container" or "Bean". (EJB 2.0: 22.2, 22.5). -CHKJ2806.ejb20=CHKJ2806E: The value of the <reentrant> element must be either "True" or "False". (EJB 2.0: 22.2, 22.5). -CHKJ2807.ejb20=CHKJ2807E: The value of the <session-type> element must be either "Stateful" or "Stateless". (EJB 2.0: 22.2, 22.5). -CHKJ2808.ejb20=CHKJ2808E: The value of the <transaction-type> element must be either "Container" or "Bean". (EJB 2.0: 17.3.6, 22.2, 22.5). -CHKJ2814.ejb20=CHKJ2814W: <ejb-name>, in <method>, should specify a known enterprise bean. (EJB 2.0: 17.4.1, 21.3.2, 22.5). -CHKJ2842.ejb20=CHKJ2842W: <method-params> is ignored when <method-name> is "*". (EJB 2.0: 17.4.1, 21.3.2). -CHKJ2843.ejb20=CHKJ2843W: No methods, on {0}, match this <method>. (EJB 2.0: 17.4.1, 21.3.2). -CHKJ2844.ejb20=CHKJ2844W: At least one <method> should be set in a <method-permission>. (EJB 2.0: 17.4.1, 21.3.2). -CHKJ2845.ejb20=CHKJ2845W: A <role-name> or an <unchecked> element should be set in a <method-permission>. (EJB 2.0: 17.4.1, 21.3.2). -CHKJ2846.ejb20=CHKJ2846W: No methods can be found for this <method-permission>. (EJB 2.0: 21.3.2). -CHKJ2847.ejb20=CHKJ2847W: No methods can be found for this <container-transaction>. (EJB 2.0: 17.4.1). -CHKJ2812.ejb20=CHKJ2812E: Bean class {0} must specify at least one of its fields as a <cmp-field>. (EJB 2.0: 22.5). -CHKJ2832.ejb20=CHKJ2832I: Home {0}, specified in the <ejb-ref> element, cannot be found in the EJB module. (EJB 2.0: 20.3.1.2). -CHKJ2833.ejb20=CHKJ2833I: Remote {0}, specified in the <ejb-ref> element, cannot be found in the EJB module. (EJB 2.0: 20.3.1.2). -CHKJ2834.ejb20=CHKJ2834I: Bean {0}, specified in the <ejb-ref> element, cannot be found in the EJB module. (EJB 2.0: 20.3.2). -CHKJ2835.ejb20=CHKJ2835I: Bean {0} is a {1} type. Update the <ejb-ref-type> element of the <ejb-ref> element. (EJB 2.0: 20.3.2). -CHKJ2836.ejb20=CHKJ2836I: Bean {0} uses home {1}. Update the <ejb-ref> element of the <ejb-ref> element. (EJB 2.0: 20.3.2). -CHKJ2837.ejb20=CHKJ2837I: Bean {0} uses remote {1}. Update the <ejb-ref> element of the <ejb-ref> element. (EJB 2.0: 20.3.2). -CHKJ2838.ejb20=CHKJ2838I: It is recommended that all references to enterprise beans be organized in the "ejb" subcontext. (EJB 2.0: 20.3.1.1). -CHKJ2820.ejb20=CHKJ2820W: The security role ref is defined more than once. -CHKJ2822.ejb20=CHKJ2822W: <security-role-ref> element for bean {0} should define the <role-name> element. (EJB 2.0: 21.2.5.3). -CHKJ2823.ejb20=CHKJ2823W: <security-role-ref> element should define the <role-link> element. (EJB 2.0: 21.3.3). -CHKJ2824.ejb20=CHKJ2824W: <security-role-ref> element refers to unknown role {0}. (EJB 2.0: 21.3.3). -CHKJ2825.ejb20=CHKJ2825W: <security-role> element in ejb-jar.xml should define the <role-name> element. (EJB 2.0: 21.3.1). -CHKJ2826.ejb20=CHKJ2826W: The security-role name must be unique. (EJB 2.0: 21.3.1). -CHKJ2827.ejb20=CHKJ2827W: Cannot use a <role-link> element without <security-role> elements. (EJB 2.0: 21.2.5.3, 21.3.1, 21.3.3). -CHKJ2850.ejb20=CHKJ2850W: Cannot validate <method> because the {0} type cannot be reflected. Check the classpath. -CHKJ2851.ejb20=CHKJ2851W: Cannot validate {0} because type {1} cannot be reflected. Check the classpath. -CHKJ2875.ejb20=CHKJ2875E: <ejb-client-jar> {0} must exist in every EAR file that contains this EJB module (EJB 2.0: 22.5, 23.4, 23.6). - -CHKJ2003E.ejb20=CHKJ2003E: This class must not implement javax.ejb.SessionSynchronization (EJB 2.0: 7.5.3, 7.10.2, 17.3.4.1). -CHKJ2003I.ejb20=CHKJ2003I: Bean-managed transaction stateful session beans need not implement javax.ejb.SessionSynchronization (EJB 2.0: 7.5.3, 7.10.2, 17.3.4.1). -CHKJ2802.named.ejb20=CHKJ2802E: <ejb-class> class {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2802.unnamed.ejb20=CHKJ2802E: The bean class, identified by the <ejb-class> element, cannot be found. (EJB 2.0: 22.2, 22.5). -CHKJ2803.named.ejb20=CHKJ2803E: <home> interface {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2803.unnamed.ejb20=CHKJ2803E: Unknown interface specified in the <home> element. (EJB 2.0: 22.2, 22.5). -CHKJ2804.named.ejb20=CHKJ2804E: <remote> interface {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2804.unnamed.ejb20=CHKJ2804E: Unknown interface specified in the <remote> element. (EJB 2.0: 22.2, 22.5). -CHKJ2805.named.ejb20=CHKJ2805E: <local-home> interface {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2805.unnamed.ejb20=CHKJ2805E: Unknown interface specified in the <local-home> element. (EJB 2.0: 22.2, 22.5). -CHKJ2800.named.ejb20=CHKJ2800E: <local> interface {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2800.unnamed.ejb20=CHKJ2800E: Unknown interface specified in the <local> element. (EJB 2.0: 22.2, 22.5). -CHKJ2810.named.ejb20=CHKJ2810E: <prim-key-class> class {0}, or one of its supertypes, cannot be reflected. Check the classpath. -CHKJ2810.unnamed.ejb20=CHKJ2810E: Unknown class specified in the <prim-key-class> element. (EJB 2.0: 22.2, 22.5). -CHKJ2811.ejb20=CHKJ2811E: <field-name> {0} cannot be located on bean class {1}. (EJB 2.0: 22.5). - -CHKJ2103.ejb20=CHKJ2103E: In component inheritance, the {0} bean class must inherit {1} (EJB 2.0: D.2) -CHKJ2104.ejb20=CHKJ2104E: In component inheritance, the {0} home interface must not inherit {1}. (EJB 2.0: D.2). -CHKJ2105.ejb20=CHKJ2105E: In component inheritance, the {0} component interface must inherit {1}. (EJB 2.0: D.2). -CHKJ2106.ejb20=CHKJ2106E: Bean {0} must use {1} as its <prim-key-class> (EJB 2.0: D.2). -CHKJ2849.ejb20=CHKJ2849W: Cannot validate component inheritance of {0} because the {1} type, or one of its dependencies, cannot be reflected. Check the classpath. - -CHKJ2895.ejb20=CHKJ2895W: <ejb-name> {0} must be unique within the ejb-jar.xml file (EJB 2.0: 22.5). - -################################################## -# class/interface checks -################################################## -# implement SessionBean/EntityBean/MessageDrivenBean/MessageListener -CHKJ2017.sb.ejb20=CHKJ2017E: This class must implement {0} (EJB 2.0: 7.5.1, 7.10.2). -CHKJ2017.mb.ejb20=CHKJ2017E: This class must implement {0} (EJB 2.0: 15.4.1, 15.7.2). -CHKJ2017.cb.ejb20=CHKJ2017E: This class must implement {0} (EJB 2.0: 10.6.2). -CHKJ2017.bb.ejb20=CHKJ2017E: This class must implement {0} (EJB 2.0: 12.2.2). - -# implement EJBHome -CHKJ2017.srh.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBHome (EJB 2.0: 6.3, 7.10.6). -CHKJ2017.crh.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBHome (EJB 2.0: 9.5, 10.6.10). -CHKJ2017.brh.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBHome (EJB 2.0: 9.5, 12.2.9). - -# implement EJBLocalHome -CHKJ2017.slh.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBLocalHome (EJB 2.0: 6.4, 7.10.8). -CHKJ2017.clh.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBLocalHome (EJB 2.0: 9.6, 10.6.12). -CHKJ2017.blh.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBLocalHome (EJB 2.0: 9.6, 12.2.11). - -# implement EJBObject -CHKJ2017.src.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBObject (EJB 2.0: 6.5, 7.10.5). -CHKJ2017.crc.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBObject (EJB 2.0: 9.9, 10.6.9). -CHKJ2017.brc.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBObject (EJB 2.0: 9.9, 12.2.8). - -# implement EJBLocalObject -CHKJ2017.slc.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBLocalObject (EJB 2.0: 7.10.7). -CHKJ2017.clc.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBLocalObject (EJB 2.0: 9.10, 10.6.10). -CHKJ2017.blc.ejb20=CHKJ2017E: This interface must extend javax.ejb.EJBLocalObject (EJB 2.0: 9.10, 12.2.10). - -# impl component interface -CHKJ2040.cb.ejb20=CHKJ2040I: "this" must not be passed as a method argument or result (EJB 2.0: 10.6.2). -CHKJ2040.bb.ejb20=CHKJ2040I: "this" must not be passed as a method argument or result (EJB 2.0: 12.2.2). -CHKJ2040.sb.ejb20=CHKJ2040I: "this" must not be passed as a method argument or result (EJB 2.0: 7.10.2). - -# bean class -CHKJ2014.cb.ejb20=CHKJ2014W: This class must be abstract (EJB 2.0: 10.3.1, 10.4.1, 10.6.2). -CHKJ2014.mb.ejb20=CHKJ2014W: This class must not be abstract (EJB 2.0: 15.7.2). -CHKJ2014.bb.ejb20=CHKJ2014W: This class must not be abstract (EJB 2.0: 12.2.2). -CHKJ2014.sb.ejb20=CHKJ2014W: This class must not be abstract (EJB 2.0: 7.10.1). - -CHKJ2022.cb.ejb20=CHKJ2022W: This class must be public (EJB 2.0: 10.6.2). -CHKJ2022.mb.ejb20=CHKJ2022W: This class must be public (EJB 2.0: 15.7.2). -CHKJ2022.bb.ejb20=CHKJ2022W: This class must be public (EJB 2.0: 12.2.2). -CHKJ2022.sb.ejb20=CHKJ2022W: This class must be public (EJB 2.0: 7.10.1). -CHKJ2022.kc.ejb20=CHKJ2022W: This class must be public (EJB 2.0: 10.8.2). - -CHKJ2015.cb.ejb20=CHKJ2015W: This class must not be final (EJB 2.0: 10.6.2). -CHKJ2015.mb.ejb20=CHKJ2015W: This class must not be final (EJB 2.0: 15.7.2). -CHKJ2015.bb.ejb20=CHKJ2015W: This class must not be final (EJB 2.0: 12.2.2). -CHKJ2015.sb.ejb20=CHKJ2015W: This class must not be final (EJB 2.0: 7.10.1). - -# dependent value class -CHKJ2018.ejb20=CHKJ2018W: This class must be serializable (EJB 2.0: 10.3.3, 10.6.3). -CHKJ2043.ejb20=CHKJ2043W: This class must be public (EJB 2.0: 10.6.3). -CHKJ2044.ejb20=CHKJ2044W: This class must not be abstract (EJB 2.0: 10.6.3). - -# key class -CHKJ2019.kc.ejb20=CHKJ2019W: This class must be a legal Value Type in RMI-IIOP (EJB 2.0: 9.8, 10.6.13). -CHKJ2019.kb.ejb20=CHKJ2019W: This class must be a legal Value Type in RMI-IIOP (EJB 2.0: 9.8, 12.2.12). - - -### -# methods which must exist -### -# public default constructor with no parameters -CHKJ2050.constr.sb.ejb20=CHKJ2050W: public {0} must exist (EJB 2.0: 7.10.2). -CHKJ2050.constr.cb.ejb20=CHKJ2050W: public {0} must exist (EJB 2.0: 10.5.2, 10.6.2). -CHKJ2050.constr.bb.ejb20=CHKJ2050W: public {0} must exist (EJB 2.0: 12.1.4.1, 12.2.2). -CHKJ2050.constr.mb.ejb20=CHKJ2050W: public {0} must exist (EJB 2.0: 15.7.2). -CHKJ2050.constr.kc.ejb20=CHKJ2050W: public {0} must exist (EJB 2.0: 10.8.2). - - -# accessor method -CHKJ2050.acc.cb.ejb20=CHKJ2050E: This class must define {0} (EJB 2.0: 10.3.1). - -CHKJ2050.onMessage.mb.ejb20=CHKJ2050W: onMessage(javax.jms.Message) must exist (EJB 2.0: 15.4.2, 15.7.4). - -CHKJ2050.ejbCreate.sfb.ejb20=CHKJ2050W: At least one ejbCreate method must exist (EJB 2.0: 7.5.5). -CHKJ2050.ejbCreate.ssb.ejb20=CHKJ2050W: The ejbCreate() method must exist (EJB 2.0: 7.8). -CHKJ2050.ejbCreate.mb.ejb20=CHKJ2050W: The ejbCreate() method must exist (EJB 2.0: 15.4.4, 15.7.2). - -CHKJ2050.ejbFindByPrimaryKey.bb.ejb20=CHKJ2050W: The ejbFindByPrimaryKey method must exist (EJB 2.0: 12.2.5). - -CHKJ2050.setEntityContext.cb.ejb20=CHKJ2050W: The setEntityContext(EntityContext) method must exist (EJB 2.0: 10.5.2). -CHKJ2050.setEntityContext.bb.ejb20=CHKJ2050W: The setEntityContext(EntityContext) method must exist (EJB 2.0: 12.1.4.1). - -CHKJ2050.unsetEntityContext.cb.ejb20=CHKJ2050W: The unsetEntityContext() method must exist (EJB 2.0: 10.5.2). -CHKJ2050.unsetEntityContext.bb.ejb20=CHKJ2050W: The unsetEntityContext() method must exist (EJB 2.0: 12.1.4.1). - -CHKJ2050.ejbActivate.cb.ejb20=CHKJ2050W: The ejbActivate() method must exist (EJB 2.0: 10.5.2). -CHKJ2050.ejbActivate.bb.ejb20=CHKJ2050W: The ejbActivate() method must exist (EJB 2.0: 12.1.4.1). - -CHKJ2050.ejbPassivate.cb.ejb20=CHKJ2050W: The ejbPassivate() method must exist (EJB 2.0: 10.5.2). -CHKJ2050.ejbPassivate.bb.ejb20=CHKJ2050W: The ejbPassivate() method must exist (EJB 2.0: 12.1.4.1). -CHKJ2050.ejbPassivate.sb.ejb20=CHKJ2050W: The ejbPassivate() method must exist (EJB 2.0: 7.5.1). - -CHKJ2050.ejbRemove.cb.ejb20=CHKJ2050W: The ejbRemove() method must exist (EJB 2.0: 10.5.2). -CHKJ2050.ejbRemove.bb.ejb20=CHKJ2050W: The ejbRemove() method must exist (EJB 2.0: 12.1.4.1). -CHKJ2050.ejbRemove.mb.ejb20=CHKJ2050W: The ejbRemove() method must exist (EJB 2.0: 15.7.5). -CHKJ2050.ejbRemove.sb.ejb20=CHKJ2050W: The ejbRemove() method must exist (EJB 2.0: 4.2.2, 7.5.1). - -CHKJ2050.ejbLoad.cb.ejb20=CHKJ2050W: The ejbLoad() method must exist (EJB 2.0: 10.5.2). -CHKJ2050.ejbLoad.bb.ejb20=CHKJ2050W: The ejbLoad() method must exist (EJB 2.0: 12.1.4.1). - -CHKJ2050.ejbStore.cb.ejb20=CHKJ2050W: The ejbStore() method must exist (EJB 2.0: 10.5.2). -CHKJ2050.ejbStore.bb.ejb20=CHKJ2050W: The ejbStore() method must exist (EJB 2.0: 12.1.4.1). - -CHKJ2050.create.ssrh.ejb20=CHKJ2050W: The create() method must exist (EJB 2.0: 7.8, 7.10.6). -CHKJ2050.create.sslh.ejb20=CHKJ2050W: The create() method must exist (EJB 2.0: 7.8, 7.10.8). - -CHKJ2050.create.srh.ejb20=CHKJ2050W: This interface must define at least one create method (EJB 2.0: 6.3.1, 7.10.6). -CHKJ2050.create.slh.ejb20=CHKJ2050W: This interface must define at least one create method (EJB 2.0: 6.4.1, 7.10.8). - -CHKJ2050.find.crh.ejb20=CHKJ2050W: At least one finder method must exist (EJB 2.0: 9.5.2). -CHKJ2050.find.brh.ejb20=CHKJ2050W: At least one finder method must exist (EJB 2.0: 9.5.2). -CHKJ2050.find.clh.ejb20=CHKJ2050W: At least one finder method must exist (EJB 2.0: 9.6.2). -CHKJ2050.find.blh.ejb20=CHKJ2050W: At least one finder method must exist (EJB 2.0: 9.6.2). - -CHKJ2050.home.crh.ejb20=CHKJ2050W: This interface must define at least one home method (EJB 2.0: 9.5.4). -CHKJ2050.home.brh.ejb20=CHKJ2050W: This interface must define at least one home method (EJB 2.0: 9.5.4). -CHKJ2050.home.clh.ejb20=CHKJ2050W: This interface must define at least one home method (EJB 2.0: 9.6.4). -CHKJ2050.home.blh.ejb20=CHKJ2050W: This interface must define at least one home method (EJB 2.0: 9.6.4). - -CHKJ2050.ejbHome.crh.ejb20=CHKJ2050W: This class must define at least one ejbHome method (EJB 2.0: 9.5.4). -CHKJ2050.ejbHome.brh.ejb20=CHKJ2050W: This class must define at least one ejbHome method (EJB 2.0: 9.5.4). -CHKJ2050.ejbHome.clh.ejb20=CHKJ2050W: This class must define at least one ejbHome method (EJB 2.0: 9.6.4). -CHKJ2050.ejbHome.blh.ejb20=CHKJ2050W: This class must define at least one ejbHome method (EJB 2.0: 9.6.4). - -CHKJ2050.hashCode.kb.ejb20=CHKJ2050W: hashCode() must exist on this class (EJB 2.0: 12.2.12). -CHKJ2050.hashCode.kc.ejb20=CHKJ2050W: hashCode() must exist on this class (EJB 2.0: 10.6.13). - -CHKJ2050.equals.kb.ejb20=CHKJ2050W: equals(Object) must exist on this class (EJB 2.0: 12.2.12). -CHKJ2050.equals.kc.ejb20=CHKJ2050W: equals(Object) must exist on this class (EJB 2.0: 10.6.13). - -# ejbSelect - needed? pl174 says zero or more, p.193 says one or more -CHKJ2050.ejbSelect.cb.ejb20=CHKJ2050W: An ejbSelect method must exist (EJB 2.0: 10.5.2, 10.6.7). - -CHKJ2050.findByPrimaryKey.crh.ejb20=CHKJ2050W: findByPrimaryKey must exist (EJB 2.0: 9.5.2, 10.6.10). -CHKJ2050.findByPrimaryKey.clh.ejb20=CHKJ2050W: findByPrimaryKey must exist (EJB 2.0: 9.6.2, 10.6.12). -CHKJ2050.findByPrimaryKey.blh.ejb20=CHKJ2050W: findByPrimaryKey must exist (EJB 2.0: 9.6.2, 12.2.11). -CHKJ2050.findByPrimaryKey.brh.ejb20=CHKJ2050W: findByPrimaryKey must exist (EJB 2.0: 9.5.2, 12.2.9). - -# ejbFind -CHKJ2050.ejbFind.bb.ejb20=CHKJ2050W: {0} must exist (EJB 2.0: 12.1.4.1). - -CHKJ2050.ejbPostCreate.cb.ejb20=CHKJ2050E: {0} must exist (EJB 2.0: 10.5.2). -CHKJ2050.ejbPostCreate.bb.ejb20=CHKJ2050E: {0} must exist (EJB 2.0: 12.1.4.1, 12.2.4). - - -################################################## -# method checks -################################################## -# application exception -CHKJ2404.i.ejb20=CHKJ2404W: Application exception {1} on {0} must extend java.lang.Exception (EJB 2.0: 18.1.1, 18.2.1). -CHKJ2404.m.ejb20=CHKJ2404W: Application exception {0} must extend java.lang.Exception (EJB 2.0: 18.1.1, 18.2.1). -CHKJ2416.i.ejb20=CHKJ2416W: Application exception {1} on {0} must not extend java.lang.RuntimeException (EJB 2.0: 18.1.1, 18.2.1). -CHKJ2416.m.ejb20=CHKJ2416W: Application exception {0} must not extend java.lang.RuntimeException (EJB 2.0: 18.1.1, 18.2.1). - -# ejbRemove -CHKJ2492.mb.i.ejb20=CHKJ2492W: {0} on {1} must be public (EJB 2.0: 15.7.5). -CHKJ2492.mb.m.ejb20=CHKJ2492W: This method must be public (EJB 2.0: 15.7.5). -CHKJ2492.cb.i.ejb20=CHKJ2492W: {0} on {1} must be public (EJB 2.0: 10.5.2). -CHKJ2492.cb.m.ejb20=CHKJ2492W: This method must be public (EJB 2.0: 10.5.2). -CHKJ2492.bb.i.ejb20=CHKJ2492W: {0} on {1} must be public (EJB 2.0: 12.1.4.1). -CHKJ2492.bb.m.ejb20=CHKJ2492W: This method must be public (EJB 2.0: 12.1.4.1). -CHKJ2492.sb.i.ejb20=CHKJ2492W: {0} on {1} must be public (EJB 2.0: 7.6). -CHKJ2492.sb.m.ejb20=CHKJ2492W: This method must be public (EJB 2.0: 7.6). - -CHKJ2493.mb.i.ejb20=CHKJ2493W: {0} must not be final (EJB 2.0: 15.7.5). -CHKJ2493.mb.m.ejb20=CHKJ2493W: This method must not be final (EJB 2.0: 15.7.5). -CHKJ2493.cb.i.ejb20=CHKJ2493W: {0} must not be final (EJB 2.0: 10.5.2). -CHKJ2493.cb.m.ejb20=CHKJ2493W: This method must not be final (EJB 2.0: 10.5.2). -CHKJ2493.bb.i.ejb20=CHKJ2493W: {0} must not be final (EJB 2.0: 12.1.4.1). -CHKJ2493.bb.m.ejb20=CHKJ2493W: This method must not be final (EJB 2.0: 12.1.4.1). -CHKJ2493.sb.i.ejb20=CHKJ2493W: {0} must not be final (EJB 2.0: 7.6). -CHKJ2493.sb.m.ejb20=CHKJ2493W: This method must not be final (EJB 2.0: 7.6). - -CHKJ2494.mb.i.ejb20=CHKJ2494W: {0} must not be static (EJB 2.0: 15.7.5). -CHKJ2494.mb.m.ejb20=CHKJ2494W: This method must not be static (EJB 2.0: 15.7.5). -CHKJ2494.cb.i.ejb20=CHKJ2494W: {0} must not be static (EJB 2.0: 10.5.2). -CHKJ2494.cb.m.ejb20=CHKJ2494W: This method must not be static (EJB 2.0: 10.5.2). -CHKJ2494.bb.i.ejb20=CHKJ2494W: {0} must not be static (EJB 2.0: 12.1.4.1). -CHKJ2494.bb.m.ejb20=CHKJ2494W: This method must not be static (EJB 2.0: 12.1.4.1). -CHKJ2494.sb.i.ejb20=CHKJ2494W: {0} must not be static (EJB 2.0: 7.6). -CHKJ2494.sb.m.ejb20=CHKJ2494W: This method must not be static (EJB 2.0: 7.6). - -CHKJ2505.ejbRemove.mb.i.ejb20=CHKJ2505W: {0} must return void (EJB 2.0: 15.7.5). -CHKJ2505.ejbRemove.mb.m.ejb20=CHKJ2505W: This method must return void (EJB 2.0: 15.7.5). -CHKJ2505.ejbRemove.cb.i.ejb20=CHKJ2505W: {0} must return void (EJB 2.0: 10.5.2). -CHKJ2505.ejbRemove.cb.m.ejb20=CHKJ2505W: This method must return void (EJB 2.0: 10.5.2). -CHKJ2505.ejbRemove.bb.i.ejb20=CHKJ2505W: {0} must return void (EJB 2.0: 12.1.4.1). -CHKJ2505.ejbRemove.bb.m.ejb20=CHKJ2505W: This method must return void (EJB 2.0: 12.1.4.1). -CHKJ2505.ejbRemove.sb.i.ejb20=CHKJ2505W: {0} must return void (EJB 2.0: 7.6). -CHKJ2505.ejbRemove.sb.m.ejb20=CHKJ2505W: This method must return void (EJB 2.0: 7.6). - -# ejbCreate -CHKJ2421.mb.i.ejb20=CHKJ2421W: {0} must be public (EJB 2.0: 15.7.3). -CHKJ2421.cb.i.ejb20=CHKJ2421W: {0} must be public (EJB 2.0: 10.6.4). -CHKJ2421.bb.i.ejb20=CHKJ2421W: {0} must be public (EJB 2.0: 12.2.3). -CHKJ2421.sb.i.ejb20=CHKJ2421W: {0} must be public (EJB 2.0: 7.10.3). -CHKJ2421.mb.m.ejb20=CHKJ2421W: This method must be public (EJB 2.0: 15.7.3). -CHKJ2421.cb.m.ejb20=CHKJ2421W: This method must be public (EJB 2.0: 10.6.4). -CHKJ2421.bb.m.ejb20=CHKJ2421W: This method must be public (EJB 2.0: 12.2.3). -CHKJ2421.sb.m.ejb20=CHKJ2421W: This method must be public (EJB 2.0: 7.10.3). - -CHKJ2422.sb.i.ejb20=CHKJ2422W: {0} must not be final (EJB 2.0: 7.10.3). -CHKJ2422.cb.i.ejb20=CHKJ2422W: {0} must not be final (EJB 2.0: 10.6.4). -CHKJ2422.bb.i.ejb20=CHKJ2422W: {0} must not be final (EJB 2.0: 12.2.3). -CHKJ2422.mb.i.ejb20=CHKJ2422W: {0} must not be final (EJB 2.0: 15.7.3). -CHKJ2422.sb.m.ejb20=CHKJ2422W: This method must not be final (EJB 2.0: 7.10.3). -CHKJ2422.cb.m.ejb20=CHKJ2422W: This method must not be final (EJB 2.0: 10.6.4). -CHKJ2422.bb.m.ejb20=CHKJ2422W: This method must not be final (EJB 2.0: 12.2.3). -CHKJ2422.mb.m.ejb20=CHKJ2422W: This method must not be final (EJB 2.0: 15.7.3). - -CHKJ2423.sb.i.ejb20=CHKJ2423W: {0} must not be static (EJB 2.0: 7.10.3). -CHKJ2423.cb.i.ejb20=CHKJ2423W: {0} must not be static (EJB 2.0: 10.6.4). -CHKJ2423.bb.i.ejb20=CHKJ2423W: {0} must not be static (EJB 2.0: 12.2.3). -CHKJ2423.mb.i.ejb20=CHKJ2423W: {0} must not be static (EJB 2.0: 15.7.3). -CHKJ2423.sb.m.ejb20=CHKJ2423W: This method must not be static (EJB 2.0: 7.10.3). -CHKJ2423.cb.m.ejb20=CHKJ2423W: This method must not be static (EJB 2.0: 10.6.4). -CHKJ2423.bb.m.ejb20=CHKJ2423W: This method must not be static (EJB 2.0: 12.2.3). -CHKJ2423.mb.m.ejb20=CHKJ2423W: This method must not be static (EJB 2.0: 15.7.3). - -CHKJ2424.cb.i.ejb20=CHKJ2424W: {0} must return {1} (EJB 2.0: 10.6.4). -CHKJ2424.bb.i.ejb20=CHKJ2424W: {0} must return {1} (EJB 2.0: 12.2.3). -CHKJ2424.sb.i.ejb20=CHKJ2424W: {0} must return void (EJB 2.0: 7.10.3). -CHKJ2424.mb.i.ejb20=CHKJ2424W: {0} must return void (EJB 2.0: 15.7.3). -CHKJ2424.cb.m.ejb20=CHKJ2424W: This method must return {0} (EJB 2.0: 10.6.4). -CHKJ2424.bb.m.ejb20=CHKJ2424W: This method must return {0} (EJB 2.0: 12.2.3). -CHKJ2424.sb.m.ejb20=CHKJ2424W: This method must return void (EJB 2.0: 7.10.3). -CHKJ2424.mb.m.ejb20=CHKJ2424W: This method must return void (EJB 2.0: 15.7.3). - - - -# ejbCreate's method parameters and return type -CHKJ2500.ejbCreate.sb.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 7.10.3). -CHKJ2500.ejbCreate.cb.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 10.6.4). -CHKJ2500.ejbCreate.bb.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 12.2.3). -CHKJ2500.ejbCreate.sb.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 7.10.3). -CHKJ2500.ejbCreate.cb.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 10.6.4). -CHKJ2500.ejbCreate.bb.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 12.2.3). - -CHKJ2497.cb.i.ejb20=CHKJ2497W: {0} must throw javax.ejb.CreateException (EJB 2.0: 10.6.4). -CHKJ2497.cb.m.ejb20=CHKJ2497W: This method must throw javax.ejb.CreateException (EJB 2.0: 10.6.4). - -CHKJ2501.ejbCreate.mb.i.ejb20=CHKJ2501I: {0} must not throw application exceptions (EJB 2.0: 15.7.3, 18.1.1, 18.2.1, 18.3.2). -CHKJ2501.ejbCreate.mb.m.ejb20=CHKJ2501I: This method must not throw application exceptions (EJB 2.0: 15.7.3, 18.1.1, 18.2.1, 18.3.2). -CHKJ2501.ejbRemove.mb.i.ejb20=CHKJ2501I: {0} must not throw application exceptions (EJB 2.0: 15.7.5, 18.1.1, 18.2.1, 18.3.2). -CHKJ2501.ejbRemove.mb.m.ejb20=CHKJ2501I: This method must not throw application exceptions (EJB 2.0: 15.7.5, 18.1.1, 18.2.1, 18.3.2). -CHKJ2501.onMessage.mb.i.ejb20=CHKJ2501I: {0} must not throw application exceptions (EJB 2.0: 15.4.10, 15.7.4, 18.1.1, 18.2.1, 18.3.2). -CHKJ2501.onMessage.mb.m.ejb20=CHKJ2501I: This method must not throw application exceptions (EJB 2.0: 15.4.10, 15.7.4, 18.1.1, 18.2.1, 18.3.2). - - -CHKJ2503.ejbCreate.sb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 7.10.3, 18.3.8, 18.6). -CHKJ2503.ejbCreate.cb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 10.6.4, 18.3.8, 18.6). -CHKJ2503.ejbCreate.bb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 12.2.3, 18.3.8, 18.6). -CHKJ2503.ejbCreate.sb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 7.10.3, 18.3.8, 18.6). -CHKJ2503.ejbCreate.cb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 10.6.4, 18.3.8, 18.6). -CHKJ2503.ejbCreate.bb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 12.2.3, 18.3.8, 18.6). - -# ejbPostCreate -CHKJ2426.cb.i.ejb20=CHKJ2426W: {0} must be public (EJB 2.0: 10.6.5). -CHKJ2426.bb.i.ejb20=CHKJ2426W: {0} must be public (EJB 2.0: 12.2.4). -CHKJ2426.cb.m.ejb20=CHKJ2426W: This method must be public (EJB 2.0: 10.6.5). -CHKJ2426.bb.m.ejb20=CHKJ2426W: This method must be public (EJB 2.0: 12.2.4). - -CHKJ2427.cb.i.ejb20=CHKJ2427W: {0} must not be final (EJB 2.0: 10.6.5). -CHKJ2427.bb.i.ejb20=CHKJ2427W: {0} must not be final (EJB 2.0: 12.2.4). -CHKJ2427.cb.m.ejb20=CHKJ2427W: This method must not be final (EJB 2.0: 10.6.5). -CHKJ2427.bb.m.ejb20=CHKJ2427W: This method must not be final (EJB 2.0: 12.2.4). - -CHKJ2428.cb.i.ejb20=CHKJ2428W: {0} must not be static (EJB 2.0: 10.6.5). -CHKJ2428.bb.i.ejb20=CHKJ2428W: {0} must not be static (EJB 2.0: 12.2.4). -CHKJ2428.cb.m.ejb20=CHKJ2428W: This method must not be static (EJB 2.0: 10.6.5). -CHKJ2428.bb.m.ejb20=CHKJ2428W: This method must not be static (EJB 2.0: 12.2.4). - -CHKJ2505.ejbPostCreate.cb.i.ejb20=CHKJ2505W: {0} must return void (EJB 2.0: 10.6.5). -CHKJ2505.ejbPostCreate.bb.i.ejb20=CHKJ2505W: {0} must return void (EJB 2.0: 12.2.4). -CHKJ2505.ejbPostCreate.cb.m.ejb20=CHKJ2505W: This method must return void (EJB 2.0: 10.6.5). -CHKJ2505.ejbPostCreate.bb.m.ejb20=CHKJ2505W: This method must return void (EJB 2.0: 12.2.4). - -CHKJ2503.ejbPostCreate.cb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 10.6.5, 18.3.8, 18.6). -CHKJ2503.ejbPostCreate.bb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 12.2.4, 18.3.8, 18.6). -CHKJ2503.ejbPostCreate.cb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 10.6.5, 18.3.8, 18.6). -CHKJ2503.ejbPostCreate.bb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 12.2.4, 18.3.8, 18.6). - - -# ejbHome -CHKJ2430.cb.i.ejb20=CHKJ2430I: {1} must exist for {0} to be called (EJB 2.0: 10.5.2, 10.6.6). -CHKJ2430.bb.i.ejb20=CHKJ2430I: {1} must exist for {0} to be called (EJB 2.0: 12.1.4.1). -CHKJ2430.cb.m.ejb20=CHKJ2430I: {0} must exist for this method to be called (EJB 2.0: 10.5.2, 10.6.6). -CHKJ2430.bb.m.ejb20=CHKJ2430I: {0} must exist for this method to be called (EJB 2.0: 12.1.4.1). - -CHKJ2431.cb.i.ejb20=CHKJ2431W: {0} must be public (EJB 2.0: 10.6.6). -CHKJ2431.bb.i.ejb20=CHKJ2431W: {0} must be public. (EJB 2.0: 12.2.6). -CHKJ2431.cb.m.ejb20=CHKJ2431W: This method must be public (EJB 2.0: 10.6.6). -CHKJ2431.bb.m.ejb20=CHKJ2431W: This method must be public. (EJB 2.0: 12.2.6). - -CHKJ2439.cb.i.ejb20=CHKJ2439W: {0} must not be static (EJB 2.0: 10.6.6). -CHKJ2439.bb.i.ejb20=CHKJ2439W: {0} must not be static (EJB 2.0: 12.2.6). -CHKJ2439.cb.m.ejb20=CHKJ2439W: This method must not be static (EJB 2.0: 10.6.6). -CHKJ2439.bb.m.ejb20=CHKJ2439W: This method must not be static (EJB 2.0: 12.2.6). - -CHKJ2500.ejbHome.cb.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 10.6.6). -CHKJ2500.ejbHome.bb.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 12.2.6). -CHKJ2500.ejbHome.cb.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 10.6.6). -CHKJ2500.ejbHome.bb.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 12.2.6). - -CHKJ2503.ejbHome.cb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 10.6.6, 18.3.8, 18.6). -CHKJ2503.ejbHome.bb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 12.2.6, 18.3.8, 18.6). -CHKJ2503.ejbHome.cb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 10.6.6, 18.3.8, 18.6). -CHKJ2503.ejbHome.bb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 12.2.6, 18.3.8, 18.6). - -# ejbFind -CHKJ2457.bb.i.ejb20=CHKJ2457W: {0} must be public (EJB 2.0: 12.2.5). -CHKJ2457.bb.m.ejb20=CHKJ2457W: This method must be public (EJB 2.0: 12.2.5). - -CHKJ2458.bb.i.ejb20=CHKJ2458W: {0} must not be final (EJB 2.0: 12.2.5). -CHKJ2458.bb.m.ejb20=CHKJ2458W: This method must not be final (EJB 2.0: 12.2.5). - -CHKJ2459.bb.i.ejb20=CHKJ2459W: {0} must not be static (EJB 2.0: 12.2.5). -CHKJ2459.bb.m.ejb20=CHKJ2459W: This method must not be static (EJB 2.0: 12.2.5). - -CHKJ2500.ejbFind.bb.i.ejb20=CHKJ2500I: {0} on method {1} must be serializable at runtime (EJB 2.0: 12.2.5). -CHKJ2500.ejbFind.bb.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 12.2.5). - -CHKJ2407.bb.i.ejb20=CHKJ2407W: {0} must return {1} or a collection thereof (EJB 2.0: 12.2.5). -CHKJ2407.bb.m.ejb20=CHKJ2407W: This method must return {0} or a collection thereof (EJB 2.0: 12.2.5). - -CHKJ2503.ejbFind.bb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 12.2.5, 18.3.8, 18.6). -CHKJ2503.ejbFind.bb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 12.2.5, 18.3.8, 18.6). - -CHKJ2498.bb.i.ejb20=CHKJ2498W: {0} must not throw ObjectNotFoundException (EJB 2.0: 12.1.8.4). -CHKJ2498.bb.m.ejb20=CHKJ2498W: This method must not throw ObjectNotFoundException (EJB 2.0: 12.1.8.4). - - -# -# methods which must not exist -# -CHKJ2502.ejbFind.cb.i.ejb20=CHKJ2502I: {0} must not exist. The container provides this method implementation (EJB 2.0: 10.5.2, 10.6.2). -CHKJ2502.ejbFind.cb.m.ejb20=CHKJ2502I: This method must not exist. The container provides this method implementation (EJB 2.0: 10.5.2, 10.6.2). - -CHKJ2502.ejbSelect.bb.i.ejb20=CHKJ2502I: {0} must not exist. Only CMP beans may have ejbSelect methods (EJB 2.0: 12.1.5). -CHKJ2502.ejbSelect.bb.m.ejb20=CHKJ2502I: This method must not exist. Only CMP beans may have ejbSelect methods (EJB 2.0: 12.1.5). -CHKJ2502.ejbSelect.sfb.i.ejb20=CHKJ2502I: {0} must not exist. Only CMP beans may have ejbSelect methods (EJB 2.0: 7.6.1). -CHKJ2502.ejbSelect.sfb.m.ejb20=CHKJ2502I: This method must not exist. Only CMP beans may have ejbSelect methods (EJB 2.0: 7.6.1). -CHKJ2502.ejbSelect.ssb.i.ejb20=CHKJ2502I: {0} must not exist. Only CMP beans may have ejbSelect methods (EJB 2.0: 7.8.2). -CHKJ2502.ejbSelect.ssb.m.ejb20=CHKJ2502I: This method must not exist. Only CMP beans may have ejbSelect methods (EJB 2.0: 7.8.2). -CHKJ2502.ejbSelect.crh.i.ejb20=CHKJ2502I: {0} must not exist (EJB 2.0: 10.5.2, 10.5.7). -CHKJ2502.ejbSelect.crh.m.ejb20=CHKJ2502I: This method must not exist (EJB 2.0: 10.5.2, 10.5.7). -CHKJ2502.ejbSelect.clh.i.ejb20=CHKJ2502I: {0} must not exist (EJB 2.0: 10.5.2, 10.5.7). -CHKJ2502.ejbSelect.clh.m.ejb20=CHKJ2502I: This method must not exist (EJB 2.0: 10.5.2, 10.5.7). -CHKJ2502.ejbSelect.crc.i.ejb20=CHKJ2502I: {0} must not exist (EJB 2.0: 10.5.2, 10.5.7). -CHKJ2502.ejbSelect.crc.m.ejb20=CHKJ2502I: This method must not exist (EJB 2.0: 10.5.2, 10.5.7). -CHKJ2502.ejbSelect.clc.i.ejb20=CHKJ2502I: {0} must not exist (EJB 2.0: 10.5.2, 10.5.7). -CHKJ2502.ejbSelect.clc.m.ejb20=CHKJ2502I: This method must not exist (EJB 2.0: 10.5.2, 10.5.7). - -# finalize -CHKJ2502.finalize.cb.i.ejb20=CHKJ2502I: finalize() must not exist (EJB 2.0: 10.6.2). -CHKJ2502.finalize.cb.m.ejb20=CHKJ2502I: This method must not exist (EJB 2.0: 10.6.2). -CHKJ2502.finalize.mb.i.ejb20=CHKJ2502I: finalize() must not exist (EJB 2.0: 15.7.2). -CHKJ2502.finalize.mb.m.ejb20=CHKJ2502I: This method must not exist (EJB 2.0: 15.7.2). -CHKJ2502.finalize.bb.i.ejb20=CHKJ2502I: finalize() must not exist (EJB 2.0: 12.2.2). -CHKJ2502.finalize.bb.m.ejb20=CHKJ2502I: This method must not exist (EJB 2.0: 12.2.2). -CHKJ2502.finalize.sb.i.ejb20=CHKJ2502I: finalize() must not exist (EJB 2.0: 7.10.2). -CHKJ2502.finalize.sb.m.ejb20=CHKJ2502I: This method must not exist (EJB 2.0: 7.10.2). - -CHKJ2502.slh.i.ejb20=CHKJ2502I: {0} must not exist (EJB 2.0: 7.10.8). -CHKJ2502.slh.m.ejb20=CHKJ2502I: This method must not exist (EJB 2.0: 7.10.8). -CHKJ2502.srh.i.ejb20=CHKJ2502I: {0} must not exist (EJB 2.0: 7.10.6). -CHKJ2502.srh.m.ejb20=CHKJ2502I: This method must not exist (EJB 2.0: 7.10.6). - - -# business -CHKJ2411.sb.i.ejb20=CHKJ2411W: The name of method {0} must not start with "ejb" (EJB 2.0: 7.10.4). -CHKJ2411.cb.i.ejb20=CHKJ2411W: The name of method {0} must not start with "ejb" (EJB 2.0: 10.6.8). -CHKJ2411.bb.i.ejb20=CHKJ2411W: The name of method {0} must not start with "ejb" (EJB 2.0: 12.2.7). -CHKJ2411.sb.m.ejb20=CHKJ2411W: This method name must not start with "ejb" (EJB 2.0: 7.10.4). -CHKJ2411.cb.m.ejb20=CHKJ2411W: This method name must not start with "ejb" (EJB 2.0: 10.6.8). -CHKJ2411.bb.m.ejb20=CHKJ2411W: This method name must not start with "ejb" (EJB 2.0: 12.2.7). - -CHKJ2441.sb.i.ejb20=CHKJ2441W: {0} must be public (EJB 2.0: 7.10.4). -CHKJ2441.cb.i.ejb20=CHKJ2441W: {0} must be public (EJB 2.0: 10.6.8). -CHKJ2441.bb.i.ejb20=CHKJ2441W: {0} must be public (EJB 2.0: 12.2.7). -CHKJ2441.sb.m.ejb20=CHKJ2441W: This method must be public (EJB 2.0: 7.10.4). -CHKJ2441.cb.m.ejb20=CHKJ2441W: This method must be public (EJB 2.0: 10.6.8). -CHKJ2441.bb.m.ejb20=CHKJ2441W: This method must be public (EJB 2.0: 12.2.7). - -CHKJ2442.sb.i.ejb20=CHKJ2442W: {0} must not be final (EJB 2.0: 7.10.4). -CHKJ2442.cb.i.ejb20=CHKJ2442W: {0} must not be final (EJB 2.0: 10.6.8). -CHKJ2442.bb.i.ejb20=CHKJ2442W: {0} must not be final (EJB 2.0: 12.2.7). -CHKJ2442.sb.m.ejb20=CHKJ2442W: This method must not be final (EJB 2.0: 7.10.4). -CHKJ2442.cb.m.ejb20=CHKJ2442W: This method must not be final (EJB 2.0: 10.6.8). -CHKJ2442.bb.m.ejb20=CHKJ2442W: This method must not be final (EJB 2.0: 12.2.7). - -CHKJ2443.sb.i.ejb20=CHKJ2443W: {0} must not be static (EJB 2.0: 7.10.4). -CHKJ2443.cb.i.ejb20=CHKJ2443W: {0} must not be static (EJB 2.0: 10.6.8). -CHKJ2443.bb.i.ejb20=CHKJ2443W: {0} must not be static (EJB 2.0: 12.2.7). -CHKJ2443.sb.m.ejb20=CHKJ2443W: This method must not be static (EJB 2.0: 7.10.4). -CHKJ2443.cb.m.ejb20=CHKJ2443W: This method must not be static (EJB 2.0: 10.6.8). -CHKJ2443.bb.m.ejb20=CHKJ2443W: This method must not be static (EJB 2.0: 12.2.7). - -CHKJ2500.bus.sb.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 7.10.4). -CHKJ2500.bus.cb.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 10.6.8). -CHKJ2500.bus.bb.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 12.2.7). -CHKJ2500.bus.sb.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 7.10.4). -CHKJ2500.bus.cb.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 10.6.8). -CHKJ2500.bus.bb.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 12.2.7). - -CHKJ2503.bus.sb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 7.10.4, 18.3.8, 18.6). -CHKJ2503.bus.cb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 10.6.8, 18.3.8, 18.6). -CHKJ2503.bus.bb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 12.2.7, 18.3.8, 18.6). -CHKJ2503.bus.sb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 7.10.4, 18.3.8, 18.6). -CHKJ2503.bus.cb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 10.6.8, 18.3.8, 18.6). -CHKJ2503.bus.bb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 12.2.7, 18.3.8, 18.6). - -# onMessage -CHKJ2503.onMessage.mb.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 15.4.10, 18.3.8, 18.6). -CHKJ2503.onMessage.mb.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 15.4.10, 18.3.8, 18.6). - -CHKJ2445.mb.i.ejb20=CHKJ2445W: {0} must be public (EJB 2.0: 15.7.4). -CHKJ2445.mb.m.ejb20=CHKJ2445W: This method must be public (EJB 2.0: 15.7.4). - -CHKJ2446.mb.i.ejb20=CHKJ2446W: {0} must not be final (EJB 2.0: 15.7.4). -CHKJ2446.mb.m.ejb20=CHKJ2446W: This method must not be final (EJB 2.0: 15.7.4). - -CHKJ2447.mb.i.ejb20=CHKJ2447W: {0} must not be static (EJB 2.0: 15.7.4). -CHKJ2447.mb.m.ejb20=CHKJ2447W: This method must not be static (EJB 2.0: 15.7.4). - -CHKJ2505.onMessage.mb.i.ejb20=CHKJ2505W: {0} must return void (EJB 2.0: 15.7.4). -CHKJ2505.onMessage.mb.m.ejb20=CHKJ2505W: This method must return void (EJB 2.0: 15.7.4). - -# accessor method -CHKJ2449.cb.i.ejb20=CHKJ2449W: {0} must be public (EJB 2.0: 10.3.1). -CHKJ2449.cb.m.ejb20=CHKJ2449W: This method must be public (EJB 2.0: 10.3.1). - -CHKJ2450.cb.i.ejb20=CHKJ2450W: {0} must be abstract (EJB 2.0: 10.3.1, 10.6.2). -CHKJ2450.cb.m.ejb20=CHKJ2450W: This method must be abstract (EJB 2.0: 10.3.1, 10.6.2). - -# get & set methods of cmr fields -CHKJ2473.crc.i.ejb20=CHKJ2473W: {0} must not be exposed (EJB 2.0: 10.3.1, 10.3.10.1). -CHKJ2473.crc.m.ejb20=CHKJ2473W: This method must not be exposed (EJB 2.0: 10.3.1, 10.3.10.1). -CHKJ2473.crh.i.ejb20=CHKJ2473W: {0} must not be exposed (EJB 2.0: 10.3.1, 10.3.10.1). -CHKJ2473.crh.m.ejb20=CHKJ2473W: This method must not be exposed (EJB 2.0: 10.3.1, 10.3.10.1). - -# home -CHKJ2461.home.brh.ejb20=CHKJ2461W: This interface must follow RMI-IIOP rules for remote interfaces (EJB 2.0: 12.2.9). -CHKJ2461.home.crh.ejb20=CHKJ2461W: This interface must follow RMI-IIOP rules for remote interfaces (EJB 2.0: 10.6.10). -CHKJ2461.home.srh.ejb20=CHKJ2461W: This interface must follow RMI-IIOP rules for remote interfaces (EJB 2.0: 7.10.6). - -CHKJ2462.clh.i.ejb20=CHKJ2462I: The name of method {0} must not start with "create" (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2462.brh.i.ejb20=CHKJ2462I: The name of method {0} must not start with "create" (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2462.crh.i.ejb20=CHKJ2462I: The name of method {0} must not start with "create" (EJB 2.0: 9.6.4, 10.6.12). -CHKJ2462.blh.i.ejb20=CHKJ2462I: The name of method {0} must not start with "create" (EJB 2.0: 9.5.4, 12.2.11). -CHKJ2462.clh.m.ejb20=CHKJ2462I: This method name must not start with "create" (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2462.brh.m.ejb20=CHKJ2462I: This method name must not start with "create" (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2462.crh.m.ejb20=CHKJ2462I: This method name must not start with "create" (EJB 2.0: 9.6.4, 10.6.12). -CHKJ2462.blh.m.ejb20=CHKJ2462I: This method name must not start with "create" (EJB 2.0: 9.5.4, 12.2.11). - -CHKJ2463.clh.i.ejb20=CHKJ2463I: The name of method {0} must not start with "find" (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2463.brh.i.ejb20=CHKJ2463I: The name of method {0} must not start with "find" (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2463.crh.i.ejb20=CHKJ2463I: The name of method {0} must not start with "find" (EJB 2.0: 9.6.4, 10.6.12). -CHKJ2463.blh.i.ejb20=CHKJ2463I: The name of method {0} must not start with "find" (EJB 2.0: 9.5.4, 12.2.11). -CHKJ2463.clh.m.ejb20=CHKJ2463I: This method name must not start with "find" (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2463.brh.m.ejb20=CHKJ2463I: This method name must not start with "find" (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2463.crh.m.ejb20=CHKJ2463I: This method name must not start with "find" (EJB 2.0: 9.6.4, 10.6.12). -CHKJ2463.blh.m.ejb20=CHKJ2463I: This method name must not start with "find" (EJB 2.0: 9.5.4, 12.2.11). - -CHKJ2464.clh.i.ejb20=CHKJ2464I: The name of method {0} must not start with "remove" (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2464.brh.i.ejb20=CHKJ2464I: The name of method {0} must not start with "remove" (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2464.crh.i.ejb20=CHKJ2464I: The name of method {0} must not start with "remove" (EJB 2.0: 9.6.4, 10.6.12). -CHKJ2464.blh.i.ejb20=CHKJ2464I: The name of method {0} must not start with "remove" (EJB 2.0: 9.5.4, 12.2.11). -CHKJ2464.clh.m.ejb20=CHKJ2464I: This method name must not start with "remove" (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2464.brh.m.ejb20=CHKJ2464I: This method name must not start with "remove" (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2464.crh.m.ejb20=CHKJ2464I: This method name must not start with "remove" (EJB 2.0: 9.6.4, 10.6.12). -CHKJ2464.blh.m.ejb20=CHKJ2464I: This method name must not start with "remove" (EJB 2.0: 9.5.4, 12.2.11). - -CHKJ2503.home.brh.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2503.home.crh.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2503.home.srh.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 7.10.6). -CHKJ2503.home.blh.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 9.6.4, 12.2.11, 18.3.8, 18.6). -CHKJ2503.home.clh.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 9.6.4, 10.6.12, 18.3.8, 18.6). -CHKJ2503.home.slh.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 7.10.8, 18.3.8, 18.6). -CHKJ2503.home.brh.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2503.home.crh.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2503.home.srh.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 7.10.6). -CHKJ2503.home.blh.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 9.6.4, 12.2.11, 18.3.8, 18.6). -CHKJ2503.home.clh.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 9.6.4, 10.6.12, 18.3.8, 18.6). -CHKJ2503.home.slh.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 7.10.8, 18.3.8, 18.6). - - -# create -CHKJ2503.create.brh.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 9.5.1, 12.2.9). -CHKJ2503.create.crh.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 9.5.1, 10.6.10). -CHKJ2503.create.srh.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 7.10.6). -CHKJ2503.create.blh.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 9.6.1, 12.2.11, 18.3.8, 18.6). -CHKJ2503.create.clh.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 9.6.1, 10.6.12, 18.3.8, 18.6). -CHKJ2503.create.slh.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 7.10.8, 18.3.8, 18.6). -CHKJ2503.create.brh.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 9.5.1, 12.2.9). -CHKJ2503.create.crh.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 9.5.1, 10.6.10). -CHKJ2503.create.srh.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 7.10.6). -CHKJ2503.create.blh.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 9.6.1, 12.2.11, 18.3.8, 18.6). -CHKJ2503.create.clh.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 9.6.1, 10.6.12, 18.3.8, 18.6). -CHKJ2503.create.slh.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 7.10.8, 18.3.8, 18.6). - -CHKJ2467.srh.i.ejb20=CHKJ2467W: {0} must throw javax.ejb.CreateException (EJB 2.0: 7.10.6). -CHKJ2467.slh.i.ejb20=CHKJ2467W: {0} must throw javax.ejb.CreateException (EJB 2.0: 7.10.8). -CHKJ2467.crh.i.ejb20=CHKJ2467W: {0} must throw javax.ejb.CreateException (EJB 2.0: 9.5.1, 10.6.10). -CHKJ2467.clh.i.ejb20=CHKJ2467W: {0} must throw javax.ejb.CreateException (EJB 2.0: 9.6.1, 10.6.12). -CHKJ2467.brh.i.ejb20=CHKJ2467W: {0} must throw javax.ejb.CreateException (EJB 2.0: 9.5.1, 12.2.9). -CHKJ2467.blh.i.ejb20=CHKJ2467W: {0} must throw javax.ejb.CreateException (EJB 2.0: 9.6.1, 12.2.11). -CHKJ2467.srh.m.ejb20=CHKJ2467W: This method must throw javax.ejb.CreateException (EJB 2.0: 7.10.6). -CHKJ2467.slh.m.ejb20=CHKJ2467W: This method must throw javax.ejb.CreateException (EJB 2.0: 7.10.8). -CHKJ2467.crh.m.ejb20=CHKJ2467W: This method must throw javax.ejb.CreateException (EJB 2.0: 9.5.1, 10.6.10). -CHKJ2467.clh.m.ejb20=CHKJ2467W: This method must throw javax.ejb.CreateException (EJB 2.0: 9.6.1, 10.6.12). -CHKJ2467.brh.m.ejb20=CHKJ2467W: This method must throw javax.ejb.CreateException (EJB 2.0: 9.5.1, 12.2.9). -CHKJ2467.blh.m.ejb20=CHKJ2467W: This method must throw javax.ejb.CreateException (EJB 2.0: 9.6.1, 12.2.11). - -CHKJ2402.sfrh.i.ejb20=CHKJ2402E: {0} must return {1} (EJB 2.0: 6.3.1, 7.10.6). -CHKJ2402.sflh.i.ejb20=CHKJ2402E: {0} must return {1} (EJB 2.0: 6.4.1, 7.10.8). -CHKJ2402.ssrh.i.ejb20=CHKJ2402E: {0} must return {1} (EJB 2.0: 6.3.1, 7.8, 7.10.6). -CHKJ2402.sslh.i.ejb20=CHKJ2402E: {0} must return {1} (EJB 2.0: 6.4.1, 7.8, 7.10.8). -CHKJ2402.crh.i.ejb20=CHKJ2402E: {0} must return {1} (EJB 2.0: 9.5.1, 10.6.10). -CHKJ2402.clh.i.ejb20=CHKJ2402E: {0} must return {1} (EJB 2.0: 9.6.1, 10.6.12). -CHKJ2402.brh.i.ejb20=CHKJ2402E: {0} must return {1} (EJB 2.0: 9.5.1, 12.2.9). -CHKJ2402.blh.i.ejb20=CHKJ2402E: {0} must return {1} (EJB 2.0: 9.6.1, 12.2.11). -CHKJ2402.sfrh.m.ejb20=CHKJ2402E: This method must return {0} (EJB 2.0: 6.3.1, 7.10.6). -CHKJ2402.sflh.m.ejb20=CHKJ2402E: This method must return {0} (EJB 2.0: 6.4.1, 7.10.8). -CHKJ2402.ssrh.m.ejb20=CHKJ2402E: This method must return {0} (EJB 2.0: 6.3.1, 7.8, 7.10.6). -CHKJ2402.sslh.m.ejb20=CHKJ2402E: This method must return {0} (EJB 2.0: 6.4.1, 7.8, 7.10.8). -CHKJ2402.crh.m.ejb20=CHKJ2402E: This method must return {0} (EJB 2.0: 9.5.1, 10.6.10). -CHKJ2402.clh.m.ejb20=CHKJ2402E: This method must return {0} (EJB 2.0: 9.6.1, 10.6.12). -CHKJ2402.brh.m.ejb20=CHKJ2402E: This method must return {0} (EJB 2.0: 9.5.1, 12.2.9). -CHKJ2402.blh.m.ejb20=CHKJ2402E: This method must return {0} (EJB 2.0: 9.6.1, 12.2.11). - -CHKJ2476.srh.i.ejb20=CHKJ2476E: {0} must be the create() method (EJB 2.0: 7.8, 7.10.6). -CHKJ2476.slh.i.ejb20=CHKJ2476E: {0} must be the create() method (EJB 2.0: 7.8, 7.10.8). -CHKJ2476.srh.m.ejb20=CHKJ2476E: This method must be the create() method (EJB 2.0: 7.8, 7.10.6). -CHKJ2476.slh.m.ejb20=CHKJ2476E: This method must be the create() method (EJB 2.0: 7.8, 7.10.8). -CHKJ2476.ssb.i.ejb20=CHKJ2476E: {0} must be the ejbCreate() method (EJB 2.0: 7.8). -CHKJ2476.ssb.m.ejb20=CHKJ2476E: This method must be the ejbCreate() method (EJB 2.0: 7.8). - - -# remote create -CHKJ2504.create.srh.i.ejb20=CHKJ2504W: The {1} matching method for {0} must exist on {2} (EJB 2.0: 7.10.6). -CHKJ2504.create.slh.i.ejb20=CHKJ2504W: The {1} matching method for {0} must exist on {2} (EJB 2.0: 7.10.8). -CHKJ2504.create.crh.i.ejb20=CHKJ2504W: The {1} matching method for {0} must exist on {2} (EJB 2.0: 10.6.10). -CHKJ2504.create.clh.i.ejb20=CHKJ2504W: The {1} matching method for {0} must exist on {2} (EJB 2.0: 10.6.12). -CHKJ2504.create.brh.i.ejb20=CHKJ2504W: The {1} matching method for {0} must exist on {2} (EJB 2.0: 12.2.9). -CHKJ2504.create.blh.i.ejb20=CHKJ2504W: The {1} matching method for {0} must exist on {2} (EJB 2.0: 12.2.11). -CHKJ2504.create.srh.m.ejb20=CHKJ2504W: The {0} matching method must exist on {1} (EJB 2.0: 7.10.6). -CHKJ2504.create.slh.m.ejb20=CHKJ2504W: The {0} matching method must exist on {1} (EJB 2.0: 7.10.8). -CHKJ2504.create.crh.m.ejb20=CHKJ2504W: The {0} matching method must exist on {1} (EJB 2.0: 10.6.10). -CHKJ2504.create.clh.m.ejb20=CHKJ2504W: The {0} matching method must exist on {1} (EJB 2.0: 10.6.12). -CHKJ2504.create.brh.m.ejb20=CHKJ2504W: The {0} matching method must exist on {1} (EJB 2.0: 12.2.9). -CHKJ2504.create.blh.m.ejb20=CHKJ2504W: The {0} matching method must exist on {1} (EJB 2.0: 12.2.11). - -CHKJ2500.create.srh.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 7.10.6). -CHKJ2500.create.crh.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2500.create.brh.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2500.create.srh.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 7.10.6). -CHKJ2500.create.crh.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2500.create.brh.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 9.5.4, 12.2.9). - -# home method -CHKJ2504.home.crh.i.ejb20=CHKJ2504W: The {1} matching method for {0} must exist on {2} (EJB 2.0: 10.5.2, 10.6.10). -CHKJ2504.home.clh.i.ejb20=CHKJ2504W: The {1} matching method for {0} must exist on {2} (EJB 2.0: 10.5.2, 10.6.12). -CHKJ2504.home.brh.i.ejb20=CHKJ2504W: The {1} matching method for {0} must exist on {2} (EJB 2.0: 12.2.9). -CHKJ2504.home.blh.i.ejb20=CHKJ2504W: The {1} matching method for {0} must exist on {2} (EJB 2.0: 12.2.11). -CHKJ2504.home.crh.m.ejb20=CHKJ2504W: The {0} method must exist on {1} (EJB 2.0: 10.5.2, 10.6.10). -CHKJ2504.home.clh.m.ejb20=CHKJ2504W: The {0} method must exist on {1} (EJB 2.0: 10.5.2, 10.6.12). -CHKJ2504.home.brh.m.ejb20=CHKJ2504W: The {0} method must exist on {1} (EJB 2.0: 12.2.9). -CHKJ2504.home.blh.m.ejb20=CHKJ2504W: The {0} method must exist on {1} (EJB 2.0: 12.2.11). - - -# find method -CHKJ2503.find.brh.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 9.5.2, 12.2.9). -CHKJ2503.find.crh.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 9.5.2, 10.6.10). -CHKJ2503.find.srh.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 7.10.6). -CHKJ2503.find.blh.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 9.6.2, 12.2.11, 18.3.8, 18.6). -CHKJ2503.find.clh.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 9.6.2, 10.6.12, 18.3.8, 18.6). -CHKJ2503.find.slh.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 7.10.8, 18.3.8, 18.6). -CHKJ2503.find.brh.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 9.5.2, 12.2.9). -CHKJ2503.find.crh.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 9.5.2, 10.6.10). -CHKJ2503.find.srh.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 7.10.6). -CHKJ2503.find.blh.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 9.6.2, 12.2.11, 18.3.8, 18.6). -CHKJ2503.find.clh.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 9.6.2, 10.6.12, 18.3.8, 18.6). -CHKJ2503.find.slh.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 7.10.8, 18.3.8, 18.6). - -CHKJ2477.crh.i.ejb20=CHKJ2477W: {0} must throw javax.ejb.FinderException (EJB 2.0: 9.5.2, 12.2.9). -CHKJ2477.brh.i.ejb20=CHKJ2477W: {0} must throw javax.ejb.FinderException (EJB 2.0: 9.6.2, 12.2.11). -CHKJ2477.clh.i.ejb20=CHKJ2477W: {0} must throw javax.ejb.FinderException (EJB 2.0: 9.5.2, 10.6.10). -CHKJ2477.blh.i.ejb20=CHKJ2477W: {0} must throw javax.ejb.FinderException (EJB 2.0: 9.6.2, 10.6.12). -CHKJ2477.crh.m.ejb20=CHKJ2477W: This method must throw javax.ejb.FinderException (EJB 2.0: 9.5.2, 12.2.9). -CHKJ2477.brh.m.ejb20=CHKJ2477W: This method must throw javax.ejb.FinderException (EJB 2.0: 9.6.2, 12.2.11). -CHKJ2477.clh.m.ejb20=CHKJ2477W: This method must throw javax.ejb.FinderException (EJB 2.0: 9.5.2, 10.6.10). -CHKJ2477.blh.m.ejb20=CHKJ2477W: This method must throw javax.ejb.FinderException (EJB 2.0: 9.6.2, 10.6.12). - -CHKJ2478.crh.i.ejb20=CHKJ2478I: {0} must not throw ObjectNotFoundException (EJB 2.0: 10.5.8.4). -CHKJ2478.crh.m.ejb20=CHKJ2478I: This method must not throw ObjectNotFoundException (EJB 2.0: 10.5.8.4). -CHKJ2478.clh.i.ejb20=CHKJ2478I: {0} must not throw ObjectNotFoundException (EJB 2.0: 10.5.8.4). -CHKJ2478.clh.m.ejb20=CHKJ2478I: This method must not throw ObjectNotFoundException (EJB 2.0: 10.5.8.4). -CHKJ2478.brh.i.ejb20=CHKJ2478I: {0} must not throw ObjectNotFoundException (EJB 2.0: 12.1.8.4). -CHKJ2478.brh.m.ejb20=CHKJ2478I: This method must not throw ObjectNotFoundException (EJB 2.0: 12.1.8.4). -CHKJ2478.blh.i.ejb20=CHKJ2478I: {0} must not throw ObjectNotFoundException (EJB 2.0: 12.1.8.4). -CHKJ2478.blh.m.ejb20=CHKJ2478I: This method must not throw ObjectNotFoundException (EJB 2.0: 12.1.8.4). -CHKJ2478.cb.i.ejb20=CHKJ2478I: {0} must not throw ObjectNotFoundException (EJB 2.0: 10.5.8.4). -CHKJ2478.cb.m.ejb20=CHKJ2478I: This method must not throw ObjectNotFoundException (EJB 2.0: 10.5.8.4). -CHKJ2478.bb.i.ejb20=CHKJ2478I: {0} must not throw ObjectNotFoundException (EJB 2.0: 12.1.8.4). -CHKJ2478.bb.m.ejb20=CHKJ2478I: This method must not throw ObjectNotFoundException (EJB 2.0: 12.1.8.4). - -CHKJ2403.brh.i.ejb20=CHKJ2403W: {0} must return {1} or a collection thereof (EJB 2.0: 9.5.2, 12.1.7, 12.2.9). -CHKJ2403.blh.i.ejb20=CHKJ2403W: {0} must return {1} or a collection thereof (EJB 2.0: 9.6.2, 12.1.7, 12.2.11). -CHKJ2403.crh.i.ejb20=CHKJ2403W: {0} must return {1} or a collection thereof (EJB 2.0: 9.5.2, 10.5.6, 10.6.10, 11.2.2). -CHKJ2403.clh.i.ejb20=CHKJ2403W: {0} must return {1} or a collection thereof (EJB 2.0: 9.6.2, 10.5.6, 10.6.12, 11.2.2). -CHKJ2403.brh.m.ejb20=CHKJ2403W: This method must return {0} or a collection thereof (EJB 2.0: 9.5.2, 12.1.7, 12.2.9). -CHKJ2403.blh.m.ejb20=CHKJ2403W: This method must return {0} or a collection thereof (EJB 2.0: 9.6.2, 12.1.7, 12.2.11). -CHKJ2403.crh.m.ejb20=CHKJ2403W: This method must return {0} or a collection thereof (EJB 2.0: 9.5.2, 10.5.6, 10.6.10, 11.2.2). -CHKJ2403.clh.m.ejb20=CHKJ2403W: This method must return {0} or a collection thereof (EJB 2.0: 9.6.2, 10.5.6, 10.6.12, 11.2.2). - -# remote find -CHKJ2504.find.brh.i.ejb20=CHKJ2504W: {1} must exist on {2} for {0} (EJB 2.0: 12.2.9). -CHKJ2504.find.crh.i.ejb20=CHKJ2504W: {1} must exist on {2} for {0} (EJB 2.0: 10.6.10). -CHKJ2504.find.brh.m.ejb20=CHKJ2504W: {0} must exist on {1} (EJB 2.0: 12.2.9). -CHKJ2504.find.crh.m.ejb20=CHKJ2504W: {0} must exist on {1} (EJB 2.0: 10.6.10). - -# local find -CHKJ2504.find.blh.i.ejb20=CHKJ2504W: {1} must exist on {2} for {0} (EJB 2.0: 12.2.11). -CHKJ2504.find.clh.i.ejb20=CHKJ2504W: {1} must exist on {2} for {0} (EJB 2.0: 10.6.2). -CHKJ2504.find.blh.m.ejb20=CHKJ2504W: {0} must exist on {1} (EJB 2.0: 12.2.11). -CHKJ2504.find.clh.m.ejb20=CHKJ2504W: {0} must exist on {1} (EJB 2.0: 10.6.2). - - -CHKJ2500.find.srh.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 7.10.6). -CHKJ2500.find.crh.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2500.find.brh.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2500.find.srh.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 7.10.6). -CHKJ2500.find.crh.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2500.find.brh.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 9.5.4, 12.2.9). - -CHKJ2495.clh.i.ejb20=CHKJ2495I: {0} must be associated with a query element in ejb-jar.xml (EJB 2.0: 10.5.6, 10.6.14). -CHKJ2495.clh.m.ejb20=CHKJ2495I: This method must be associated with a query element in ejb-jar.xml (EJB 2.0: 10.5.6, 10.6.14). -CHKJ2495.crh.i.ejb20=CHKJ2495I: {0} must be associated with a query element in ejb-jar.xml (EJB 2.0: 10.5.6, 10.6.14). -CHKJ2495.crh.m.ejb20=CHKJ2495I: This method must be associated with a query element in ejb-jar.xml (EJB 2.0: 10.5.6, 10.6.14). - - -# method on a component interface -CHKJ2503.bus.src.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 7.10.5). -CHKJ2503.bus.slc.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 7.10.7, 18.3.8, 18.6). -CHKJ2503.bus.brc.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 12.2.8). -CHKJ2503.bus.blc.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 9.10, 12.2.10, 18.3.8, 18.6). -CHKJ2503.bus.crc.i.ejb20=CHKJ2503E: {0} must throw java.rmi.RemoteException (EJB 2.0: 10.6.9). -CHKJ2503.bus.clc.i.ejb20=CHKJ2503W: {0} must not throw java.rmi.RemoteException (EJB 2.0: 9.10, 18.3.8, 18.6). -CHKJ2503.bus.src.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 7.10.5). -CHKJ2503.bus.slc.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 7.10.7, 18.3.8, 18.6). -CHKJ2503.bus.brc.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 12.2.8). -CHKJ2503.bus.blc.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 9.10, 12.2.10, 18.3.8, 18.6). -CHKJ2503.bus.crc.m.ejb20=CHKJ2503E: This method must throw java.rmi.RemoteException (EJB 2.0: 10.6.9). -CHKJ2503.bus.clc.m.ejb20=CHKJ2503W: This method must not throw java.rmi.RemoteException (EJB 2.0: 9.10, 18.3.8, 18.6). - -# method on a home interface -CHKJ2465.brh.i.ejb20=CHKJ2465W: {0} must throw {1} for {2} (EJB 2.0: 12.2.9). -CHKJ2465.blh.i.ejb20=CHKJ2465W: {0} must throw {1} for {2} (EJB 2.0: 12.2.11). -CHKJ2465.crh.i.ejb20=CHKJ2465W: {0} must throw {1} for {2} (EJB 2.0: 10.6.10). -CHKJ2465.clh.i.ejb20=CHKJ2465W: {0} must throw {1} for {2} (EJB 2.0: 10.6.12). -CHKJ2465.srh.i.ejb20=CHKJ2465W: {0} must throw {1} for {2} (EJB 2.0: 7.10.6). -CHKJ2465.slh.i.ejb20=CHKJ2465W: {0} must throw {1} for {2} (EJB 2.0: 7.10.8). -CHKJ2465.brh.m.ejb20=CHKJ2465W: This method must throw {0} for {1} (EJB 2.0: 12.2.9). -CHKJ2465.blh.m.ejb20=CHKJ2465W: This method must throw {0} for {1} (EJB 2.0: 12.2.11). -CHKJ2465.crh.m.ejb20=CHKJ2465W: This method must throw {0} for {1} (EJB 2.0: 10.6.10). -CHKJ2465.clh.m.ejb20=CHKJ2465W: This method must throw {0} for {1} (EJB 2.0: 10.6.12). -CHKJ2465.srh.m.ejb20=CHKJ2465W: This method must throw {0} for {1} (EJB 2.0: 7.10.6). -CHKJ2465.slh.m.ejb20=CHKJ2465W: This method must throw {0} for {1} (EJB 2.0: 7.10.8). - -# method on a remote home -CHKJ2500.home.srh.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 7.10.6). -CHKJ2500.home.crh.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2500.home.brh.i.ejb20=CHKJ2500I: {1} in method {0} must be serializable at runtime (EJB 2.0: 9.5.4, 12.2.9). -CHKJ2500.home.srh.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 7.10.6). -CHKJ2500.home.crh.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 9.5.4, 10.6.10). -CHKJ2500.home.brh.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 9.5.4, 12.2.9). - -CHKJ2466.src.i.ejb20=CHKJ2466I: {0} must not expose the {1} type (EJB 2.0: 7.10.5). -CHKJ2466.crh.i.ejb20=CHKJ2466I: {0} must not expose the {1} type (EJB 2.0: 10.6.10). -CHKJ2466.brh.i.ejb20=CHKJ2466I: {0} must not expose the {1} type (EJB 2.0: 12.2.9). -CHKJ2466.crh.m.ejb20=CHKJ2466I: This method must not expose the {0} type (EJB 2.0: 10.6.10). -CHKJ2466.brh.m.ejb20=CHKJ2466I: This method must not expose the {0} type (EJB 2.0: 12.2.9). -CHKJ2466.src.m.ejb20=CHKJ2466I: This method must not expose the {0} type (EJB 2.0: 7.10.5). - -# method on a remote component -CHKJ2468.src.ejb20=CHKJ2468W: This interface must follow RMI-IIOP rules for remote interfaces (EJB 2.0: 7.10.5). -CHKJ2468.crc.ejb20=CHKJ2468W: This interface must follow RMI-IIOP rules for remote interfaces (EJB 2.0: 10.6.9). -CHKJ2468.brc.ejb20=CHKJ2468W: This interface must follow RMI-IIOP rules for remote interfaces (EJB 2.0: 12.2.8). - -CHKJ2500.bus.src.i.ejb20=CHKJ2500I: {0} in method {1} must be serializable at runtime (EJB 2.0: 7.10.5). -CHKJ2500.bus.crc.i.ejb20=CHKJ2500I: {0} in method {1} must be serializable at runtime (EJB 2.0: 10.6.9). -CHKJ2500.bus.brc.i.ejb20=CHKJ2500I: {0} in method {1} must be serializable at runtime (EJB 2.0: 12.2.8). -CHKJ2500.bus.src.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 7.10.5). -CHKJ2500.bus.crc.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 10.6.9). -CHKJ2500.bus.brc.m.ejb20=CHKJ2500I: {0} must be serializable at runtime (EJB 2.0: 12.2.8). - -CHKJ2472.srh.i.ejb20=CHKJ2472W: {1} in method {0} cannot be an argument or result type (EJB 2.0: 6.7.2). -CHKJ2472.brc.i.ejb20=CHKJ2472W: {0} must not pass {1} as an argument or result (EJB 2.0: 9.7.2, 12.2.8). -CHKJ2472.crc.i.ejb20=CHKJ2472W: {0} must not pass {1} as an argument or result (EJB 2.0: 9.7.2, 10.3.1, 10.3.10.1). -CHKJ2472.brc.m.ejb20=CHKJ2472W: This method must not pass {0} as an argument or result (EJB 2.0: 9.7.2, 12.2.8). -CHKJ2472.crc.m.ejb20=CHKJ2472W: This method must not pass {0} as an argument or result (EJB 2.0: 9.7.2, 10.3.1, 10.3.10.1). -CHKJ2472.srh.m.ejb20=CHKJ2472W: {0} cannot be an argument or result type (EJB 2.0: 6.7.2). - -# method on a remote component CMP -CHKJ2474.crc.i.ejb20=CHKJ2474W: {0} must not expose {1} (EJB 2.0: 10.3.1, 10.3.10.1). -CHKJ2474.crc.m.ejb20=CHKJ2474W: This method must not expose {0} (EJB 2.0: 10.3.1, 10.3.10.1). - -CHKJ2490.crc.i.ejb20=CHKJ2490W: {0} must not be exposed (EJB 2.0: 10.3.1, 10.3.10.1). -CJKJ2490.crc.m.ejb20=CHKJ2490W: This method must not be exposed (EJB 2.0: 10.3.1, 10.3.10.1). - -# ejbSelect method -CHKJ2485.cb.i.ejb20=CHKJ2485W: {0} must be abstract (EJB 2.0: 10.5.7, 10.6.7). -CHKJ2485.cb.m.ejb20=CHKJ2485W: This method must be abstract (EJB 2.0: 10.5.7, 10.6.7). - -CHKJ2487.cb.i.ejb20=CHKJ2487W: {0} must be public (EJB 2.0: 10.6.7). -CHKJ2487.cb.m.ejb20=CHKJ2487W: This method must be public (EJB 2.0: 10.6.7). - -CHKJ2488.cb.i.ejb20=CHKJ2488W: {0} must throw javax.ejb.FinderException (EJB 2.0: 10.6.7). -CHKJ2488.cb.m.ejb20=CHKJ2488W: This method must throw javax.ejb.FinderException (EJB 2.0: 10.6.7). - -CHKJ2486.cb.i.ejb20=CHKJ2486W: {0} must return {1} or a collection thereof (EJB 2.0: 10.5.7, 11.2.2). -CHKJ2486.cb.m.ejb20=CHKJ2486W: This method must return {0} or a collection thereof (EJB 2.0: 10.5.7, 11.2.2). - -CHKJ2496.cb.i.ejb20=CHKJ2496W: {0} must be associated with a query element in ejb-jar.xml (EJB 2.0: 10.5.7, 10.6.14). -CHKJ2496.cb.m.ejb20=CHKJ2496W: This method must be associated with a query element in ejb-jar.xml (EJB 2.0: 10.5.7, 10.6.14). - -# component matching method -CHKJ2023.src.i.ejb20=CHKJ2023W: The {0} method needs {1} to exist on {2} (EJB 2.0: 7.10.5). -CHKJ2023.slc.i.ejb20=CHKJ2023W: The {0} method needs {1} to exist on {2} (EJB 2.0: 7.10.7). -CHKJ2023.brc.i.ejb20=CHKJ2023W: The {0} method needs {1} to exist on {2} (EJB 2.0: 12.2.8). -CHKJ2023.blc.i.ejb20=CHKJ2023W: The {0} method needs {1} to exist on {2} (EJB 2.0: 12.2.10). -CHKJ2023.crc.i.ejb20=CHKJ2023W: The {0} method needs {1} to exist on {2} (EJB 2.0: 10.6.9). -CHKJ2023.clc.i.ejb20=CHKJ2023W: The {0} method needs {1} to exist on {2} (EJB 2.0: 10.6.11). -CHKJ2023.src.m.ejb20=CHKJ2023W: The {0} method must exist on {1} (EJB 2.0: 7.10.5). -CHKJ2023.slc.m.ejb20=CHKJ2023W: The {0} method must exist on {1} (EJB 2.0: 7.10.7). -CHKJ2023.brc.m.ejb20=CHKJ2023W: The {0} method must exist on {1} (EJB 2.0: 12.2.8). -CHKJ2023.blc.m.ejb20=CHKJ2023W: The {0} method must exist on {1} (EJB 2.0: 12.2.10). -CHKJ2023.crc.m.ejb20=CHKJ2023W: The {0} method must exist on {1} (EJB 2.0: 10.6.9). -CHKJ2023.clc.m.ejb20=CHKJ2023W: The {0} method must exist on {1} (EJB 2.0: 10.6.11). - -CHKJ2470.src.i.ejb20=CHKJ2470E: {0} must return {1} (EJB 2.0: 7.10.5). -CHKJ2470.slc.i.ejb20=CHKJ2470E: {0} must return {1} (EJB 2.0: 7.10.7). -CHKJ2470.crc.i.ejb20=CHKJ2470E: {0} must return {1} (EJB 2.0: 10.6.9). -CHKJ2470.clc.i.ejb20=CHKJ2470E: {0} must return {1} (EJB 2.0: 10.6.11). -CHKJ2470.brc.i.ejb20=CHKJ2470E: {0} must return {1} (EJB 2.0: 12.2.8). -CHKJ2470.blc.i.ejb20=CHKJ2470E: {0} must return {1} (EJB 2.0: 12.2.10). -CHKJ2470.src.m.ejb20=CHKJ2470E: This method must return {0} (EJB 2.0: 7.10.5). -CHKJ2470.slc.m.ejb20=CHKJ2470E: This method must return {0} (EJB 2.0: 7.10.7). -CHKJ2470.crc.m.ejb20=CHKJ2470E: This method must return {0} (EJB 2.0: 10.6.9). -CHKJ2470.clc.m.ejb20=CHKJ2470E: This method must return {0} (EJB 2.0: 10.6.11). -CHKJ2470.brc.m.ejb20=CHKJ2470E: This method must return {0} (EJB 2.0: 12.2.8). -CHKJ2470.blc.m.ejb20=CHKJ2470E: This method must return {0} (EJB 2.0: 12.2.10). - -CHKJ2471.src.i.ejb20=CHKJ2471W: {0} must throw {1} (EJB 2.0: 7.10.5). -CHKJ2471.slc.i.ejb20=CHKJ2471W: {0} must throw {1} (EJB 2.0: 7.10.7). -CHKJ2471.crc.i.ejb20=CHKJ2471W: {0} must throw {1} (EJB 2.0: 10.6.9). -CHKJ2471.clc.i.ejb20=CHKJ2471W: {0} must throw {1} (EJB 2.0: 10.6.11). -CHKJ2471.brc.i.ejb20=CHKJ2471W: {0} must throw {1} (EJB 2.0: 12.2.8). -CHKJ2471.blc.i.ejb20=CHKJ2471W: {0} must throw {1} (EJB 2.0: 12.2.10). -CHKJ2471.src.m.ejb20=CHKJ2471W: This method must throw {0} (EJB 2.0: 7.10.5). -CHKJ2471.slc.m.ejb20=CHKJ2471W: This method must throw {0} (EJB 2.0: 7.10.7). -CHKJ2471.crc.m.ejb20=CHKJ2471W: This method must throw {0} (EJB 2.0: 10.6.9). -CHKJ2471.clc.m.ejb20=CHKJ2471W: This method must throw {0} (EJB 2.0: 10.6.11). -CHKJ2471.brc.m.ejb20=CHKJ2471W: This method must throw {0} (EJB 2.0: 12.2.8). -CHKJ2471.blc.m.ejb20=CHKJ2471W: This method must throw {0} (EJB 2.0: 12.2.10). - -# EJBObject, EJBLocalObject methods -CHKJ2469.src.i.ejb20=CHKJ2469W: {0} is provided by the container (EJB 2.0: 6.5). -CHKJ2469.slc.i.ejb20=CHKJ2469W: {0} is provided by the container (EJB 2.0: 6.5). -CHKJ2469.crc.i.ejb20=CHKJ2469W: {0} is provided by the container (EJB 2.0: 9.9). -CHKJ2469.clc.i.ejb20=CHKJ2469W: {0} is provided by the container (EJB 2.0: 9.10). -CHKJ2469.brc.i.ejb20=CHKJ2469W: {0} is provided by the container (EJB 2.0: 9.9). -CHKJ2469.blc.i.ejb20=CHKJ2469W: {0} is provided by the container (EJB 2.0: 9.10). -CHKJ2469.src.m.ejb20=CHKJ2469W: This method is provided by the container (EJB 2.0: 6.5). -CHKJ2469.slc.m.ejb20=CHKJ2469W: This method is provided by the container (EJB 2.0: 6.5). -CHKJ2469.crc.m.ejb20=CHKJ2469W: This method is provided by the container (EJB 2.0: 9.9). -CHKJ2469.clc.m.ejb20=CHKJ2469W: This method is provided by the container (EJB 2.0: 9.10). -CHKJ2469.brc.m.ejb20=CHKJ2469W: This method is provided by the container (EJB 2.0: 9.9). -CHKJ2469.blc.m.ejb20=CHKJ2469W: This method is provided by the container (EJB 2.0: 9.10). - -# findByPrimaryKey -CHKJ2475.crh.i.ejb20=CHKJ2475W: {0} must be findByPrimaryKey({1}) (EJB 2.0: 9.5.2, 10.6.10). -CHKJ2475.clh.i.ejb20=CHKJ2475W: {0} must be findByPrimaryKey({1}) (EJB 2.0: 9.6.2, 10.6.12). -CHKJ2475.crhd.i.ejb20=CHKJ2475W: {0} must be findByPrimaryKey(Object) (EJB 2.0: 10.8.3). -CHKJ2475.clhd.i.ejb20=CHKJ2475W: {0} must be findByPrimaryKey(Object) (EJB 2.0: 10.8.3). -CHKJ2475.brh.i.ejb20=CHKJ2475W: {0} must be findByPrimaryKey({1}) (EJB 2.0: 9.5.2, 12.2.9). -CHKJ2475.blh.i.ejb20=CHKJ2475W: {0} must be findByPrimaryKey({1}) (EJB 2.0: 9.6.2, 12.2.11). -CHKJ2475.crh.m.ejb20=CHKJ2475W: This method must be findByPrimaryKey({0}) (EJB 2.0: 9.5.2, 10.6.10). -CHKJ2475.clh.m.ejb20=CHKJ2475W: This method must be findByPrimaryKey({0}) (EJB 2.0: 9.6.2, 10.6.12). -CHKJ2475.crhd.m.ejb20=CHKJ2475W: This method must be findByPrimaryKey(Object) (EJB 2.0: 10.8.3). -CHKJ2475.clhd.m.ejb20=CHKJ2475W: This method must be findByPrimaryKey(Object) (EJB 2.0: 10.8.3). -CHKJ2475.brh.m.ejb20=CHKJ2475W: This method must be findByPrimaryKey({0}) (EJB 2.0: 9.5.2, 12.2.9). -CHKJ2475.blh.m.ejb20=CHKJ2475W: This method must be findByPrimaryKey({0}) (EJB 2.0: 9.6.2, 12.2.11). - -CHKJ2479.crh.i.ejb20=CHKJ2479E: {0} must return {1} (EJB 2.0: 9.5.2, 10.6.10). -CHKJ2479.clh.i.ejb20=CHKJ2479E: {0} must return {1} (EJB 2.0: 9.6.2, 10.6.12). -CHKJ2479.brh.i.ejb20=CHKJ2479E: {0} must return {1} (EJB 2.0: 9.5.2, 12.2.9). -CHKJ2479.blh.i.ejb20=CHKJ2479E: {0} must return {1} (EJB 2.0: 9.6.2, 12.2.11). -CHKJ2479.crh.m.ejb20=CHKJ2479E: This method must return {0} (EJB 2.0: 9.5.2, 10.6.10). -CHKJ2479.clh.m.ejb20=CHKJ2479E: This method must return {0} (EJB 2.0: 9.6.2, 10.6.12). -CHKJ2479.brh.m.ejb20=CHKJ2479E: This method must return {0} (EJB 2.0: 9.5.2, 12.2.9). -CHKJ2479.blh.m.ejb20=CHKJ2479E: This method must return {0} (EJB 2.0: 9.6.2, 12.2.11). - - - -################################################## -# field checks -################################################## -CHKJ2452.sb.i.ejb20=CHKJ2452W: Transient field {0} should not be the {1} type (EJB 2.0: 7.4.1). -CHKJ2452.sb.m.ejb20=CHKJ2452W: A transient field should not be the {0} type (EJB 2.0: 7.4.1). - -CHKJ2453.sb.i.ejb20=CHKJ2453W: Transient fields ({0}) are discouraged (EJB 2.0: 7.4.1). -CHKJ2453.sb.m.ejb20=CHKJ2453W: Transient fields are discouraged (EJB 2.0: 7.4.1). - -# CMR and CMP fields must NOT be defined on the bean class. -CHKJ2454.cb.i.ejb20=CHKJ2454W: {0} must not be defined (EJB 2.0: 10.3.1). -CHKJ2454.cb.m.ejb20=CHKJ2454W: {0} must not be defined (EJB 2.0: 10.3.1). - -CHKJ2480.cb.i.ejb20=CHKJ2480I: {0} must begin with a lowercase letter (EJB 2.0: 10.3.1). -CHKJ2480.cb.m.ejb20=CHKJ2480I: {0} must begin with a lowercase letter (EJB 2.0: 10.3.1). - -CHKJ2481.cb.i.ejb20=CHKJ2481W: {0} must be declared as a <cmp-field> (EJB 2.0: 10.3.1, 10.3.13). -CHKJ2481.cb.m.ejb20=CHKJ2481W: {0} must be declared as a <cmp-field> (EJB 2.0: 10.3.1, 10.3.13). - -CHKJ2482.cb.i.ejb20=CHKJ2482W: {0} must be declared as a <cmr-field> (EJB 2.0: 10.3.1, 10.3.13). -CHKJ2482.cb.m.ejb20=CHKJ2482W: {0} must be declared as a <cmr-field> (EJB 2.0: 10.3.1, 10.3.13). - -CHKJ2483.cb.i.ejb20=CHKJ2483W: {0} should not be exposed (EJB 2.0: 10.3.1). -CHKJ2483.cb.m.ejb20=CHKJ2483W: {0} should not be exposed (EJB 2.0: 10.3.1). - -CHKJ2484.cb.i.ejb20=CHKJ2484W: {0} must be either a primitive or a serializable type (EJB 2.0: 10.3.1). -CHKJ2484.cb.m.ejb20=CHKJ2484W: {0} must be either a primitive or a serializable type (EJB 2.0: 10.3.1). - -CHKJ2489.cb.i.ejb20=CHKJ2489W: Field {0} must be the {1} type (EJB 2.0: 10.8.1). -CHKJ2489.cb.m.ejb20=CHKJ2489W: This field must be the {0} type (EJB 2.0: 10.8.1). - -CHKJ2205.kc.i.ejb20=CHKJ2205W: Field {0} must be public (EJB 2.0: 10.8.2). -CHKJ2205.kc.m.ejb20=CHKJ2205W: This field must be public (EJB 2.0: 10.8.2). - -CHKJ2206.kc.i.ejb20=CHKJ2206W: Field {0} must be a <cmp-field> (EJB 2.0: 10.8.2). -CHKJ2206.kc.m.ejb20=CHKJ2206W: This field must be a <cmp-field> (EJB 2.0: 10.8.2). - - -############################################################ -## DD -############################################################ -CHKJ2880.s.ejb20=CHKJ2880W: This bean must provide a <local-home> (EJB 2.0: 7.10.1). -CHKJ2881.s.ejb20=CHKJ2881W: This bean must provide a <home> (EJB 2.0: 7.10.1). -CHKJ2882.s.ejb20=CHKJ2882W: This bean must provide a <local> (EJB 2.0: 7.10.1). -CHKJ2883.s.ejb20=CHKJ2883W: This bean must provide a <remote> (EJB 2.0: 7.10.1). -CHKJ2884.s.ejb20=CHKJ2884W: This bean must provide either a <local-home> or a <home> (EJB 2.0: 7.10.1). -CHKJ2885.s.ejb20=CHKJ2885W: This bean must provide either a <local> or a <remote> (EJB 2.0: 7.10.1). -CHKJ2880.c.ejb20=CHKJ2880W: This bean must provide a <local-home> (EJB 2.0: 10.6.1). -CHKJ2881.c.ejb20=CHKJ2881W: This bean must provide a <home> (EJB 2.0: 10.6.1). -CHKJ2882.c.ejb20=CHKJ2882W: This bean must provide a <local> (EJB 2.0: 10.6.1). -CHKJ2883.c.ejb20=CHKJ2883W: This bean must provide a <remote> (EJB 2.0: 10.6.1). -CHKJ2884.c.ejb20=CHKJ2884W: This bean must provide either a <local-home> or a <home> (EJB 2.0: 10.6.1). -CHKJ2885.c.ejb20=CHKJ2885W: This bean must provide either a <local> or a <remote> (EJB 2.0: 10.6.1). -CHKJ2880.b.ejb20=CHKJ2880W: This bean must provide a <local-home> (EJB 2.0: 12.2.1). -CHKJ2881.b.ejb20=CHKJ2881W: This bean must provide a <home> (EJB 2.0: 12.2.1). -CHKJ2882.b.ejb20=CHKJ2882W: This bean must provide a <local> (EJB 2.0: 12.2.1). -CHKJ2883.b.ejb20=CHKJ2883W: This bean must provide a <remote> (EJB 2.0: 12.2.1). -CHKJ2884.b.ejb20=CHKJ2884W: This bean must provide either a <local-home> or a <home> (EJB 2.0: 12.2.1). -CHKJ2885.b.ejb20=CHKJ2885W: This bean must provide either a <local> or a <remote> (EJB 2.0: 12.2.1). - -CHKJ2813.ejb20=CHKJ2813I: <ejb-name> {0} must be a valid Java identifier (EJB 2.0: 10.3.13, 11.2.6.1). -CHKJ2819.ejb20=CHKJ2819I: <abstract-schema-name> {0} must be a valid Java identifier (EJB 2.0: 10.3.13, 10.6.14, 11.2.6.1). -CHKJ2854.ejb20=CHKJ2854E: <abstract-schema-name> {0} must be unique within the ejb-jar.xml file (EJB 2.0: 10.3.13, 10.6.14, 11.2.2). -CHKJ2858.ejb20=CHKJ2858W: <abstract-schema-name> must exist (EJB 2.0: 22.2, 22.5). -CHKJ2859.ejb20=CHKJ2859W: Reserved identifier {0} cannot be used as an <ejb-name> (EJB 2.0: 10.6.14, 11.2.6.1). -CHKJ2860.ejb20=CHKJ2860W: Reserved identifier {0} cannot be used as an <abstract-schema-name> (EJB 2.0: 10.6.14, 11.2.6.1). - -CHKJ2861.ejb20=CHKJ2861I: <cmp-field> {0} must be a valid Java identifier and begin with a lowercase letter (EJB 2.0: 10.3.1, 11.2.6.1). -CHKJ2857.ejb20=CHKJ2857I: <cmr-field> {0} must be a valid Java identifier and begin with a lowercase letter (EJB 2.0: 10.3.1, 11.2.6.1). - -CHKJ2862.ejb20=CHKJ2862I: <cmp-field> {0} must have a set method (EJB 2.0: 10.3.1, 10.6.2). -CHKJ2863.ejb20=CHKJ2863I: <cmp-field> {0} must have a get method (EJB 2.0: 10.3.1, 10.6.2). -CHKJ2864.ejb20=CHKJ2864I: <cmr-field> {0} must have a set method (EJB 2.0: 10.3.1, 10.6.2). -CHKJ2865.ejb20=CHKJ2865I: <cmr-field> {0} must have a get method (EJB 2.0: 10.3.1, 10.6.2). -CHKJ2855.ejb20=CHKJ2855I: <cmp-field> {0} must be a Java primitive or a Java serializable type (EJB 2.0: 10.3.1). -CHKJ2856.ejb20=CHKJ2856I: <cmr-field> {0} must be the {1} type or a collection thereof (EJB 2.0: 10.3.1). - -CHKJ2815.ejb20=CHKJ2815W: Dependent value class {0} cannot be a <cmr-field> (EJB 2.0: 10.3.3). - -CHKJ2816.ejb20=CHKJ2816I: <ejb-relation-name> must be unique in ejb-jar.xml (EJB 2.0: 10.3.2, 10.3.13, 22.5). -CHKJ2817.ejb20=CHKJ2817I: <ejb-relationship-role-name> must be unique within an <ejb-relation> (EJB 2.0: 10.3.2, 10.3.13, 22.5). -CHKJ2818.ejb20=CHKJ2818I: The value of the <multiplicity> element must be either "One" or "Many" (EJB 2.0: 10.3.2, 10.3.13, 22.5). -CHKJ2821.ejb20=CHKJ2821I: <relationship-role-source> in role {0} must refer to an existing CMP bean (EJB 2.0: 10.3.2, 22.5). -CHKJ2848.ejb20=CHKJ2848I: <cascade-delete> must be used with a <multiplicity> of "One" (EJB 2.0: 10.3.4.2, 22.5). -CHKJ2866.ejb20=CHKJ2866I: <cmr-field> {0} must be defined on {1} (EJB 2.0: 10.3.2, 22.5). -CHKJ2867.ejb20=CHKJ2867I: This bean can have only unidirectional relationships to other beans (EJB 2.0: 10.3.2). -CHKJ2868.ejb20=CHKJ2868I: The value of the <cmr-field-type> element must be either "java.util.Collection" or "java.util.Set" (EJB 2.0: 10.3.13, 22.5). -CHKJ2869.ejb20=CHKJ2869I: At least one <ejb-relationship-role> must define a <cmr-field> (EJB 2.0: 10.3.2, 10.3.13, 22.5). -CHKJ2870.ejb20=CHKJ2870I: <ejb-name> {0} must exist (EJB 2.0: 10.3.13). -CHKJ2871.ejb20=CHKJ2871I: <ejb-name> {0} must refer to a CMP bean (EJB 2.0: 10.3.2, 10.3.13). - -CHKJ2872.ejb20=CHKJ2872E: The value of the <cmp-version> element must be either "1.x" or "2.x" (EJB 2.0: 22.5). -CHKJ2873.ejb20=CHKJ2873W: Migrate this bean's datasource binding to a CMP Connection Factory binding. -CHKJ2874.ejb20=CHKJ2874W: Migrate this EJB module's default datasource binding to a default CMP Connection Factory binding. - -CHKJ2886.ejb21=CHKJ2885E: Duplicate activation config: "{0}" exist in message driven bean: "{1}". -CHKJ2887.ejb21=The activation config with name: "{0}" has invalid value: "{1}" for message driven bean: "{2}". -CHKJ2890.ejb21=The message destination type: "{0}" and destination type activation config property value: "{1}" do not match for bean: "{2}". - -########################################################################### -# -# 2TC: Do not translate anything in the following section. These strings -# are reserved for future use. -# -########################################################################### -# -# Ignore these messages for now; the EJB QL validator may take care of this. -# If not, add this validation into the EJBJarVRule class. -# -# -# Identification variables -# -# IWAD4927.ejb20=IWAD4927W: Identification variable {0} must be declared in the FROM clause (EJB 2.0: 11.2.6.2). -# IWAD4928.ejb20=IWAD4928W: Reserved identifier {0} cannot be used as an identification variable (EJB 2.0: 11.2.6.2). -# IWAD4929.ejb20=IWAD4929W: <abstract-schema-name> {0} cannot be used as an identification variable (EJB 2.0: 11.2.6.2). -# IWAD4930.ejb20=IWAD4930W: <ejb-name> {0} cannot be used as an identification variable (EJB 2.0: 11.2.6.2). - -# -# query statement -# -# IWAD4918.ejb20=IWAD4918W: This query must contain a SELECT clause (EJB 2.0: 11.1). -# IWAD4919.ejb20=IWAD4919W: This query must contain a FROM clause (EJB 2.0: 11.1). -# IWAD4920.ejb20=IWAD4920W: This query has a syntax error (EJB 2.0: 11.2). -# - - -# IWAD4808.ejb20=IWAD4808W: This bean must use container-managed transaction demarcation (EJB 2.0: 17.3.1, 17.3.3). -# IWAD4809.ejb20=IWAD4809W: Specify a transaction attribute for this method (EJB 2.0: 17.4.1). -# IWAD4810.ejb20=IWAD4810W: A transaction attribute must not exist for this method (EJB 2.0: 17.4.1). - -# IWAD4811.ejb20=IWAD4811W: At least one <method> must exist in a <container-transaction> (EJB 2.0: 17.4.1). -# IWAD4900.ejb20=IWAD4900W: This <container-transaction> must reference only one bean (EJB 2.0: 17.4.1). -# IWAD4901.ejb20=IWAD4901W: {0} must exist (EJB 2.0: 17.4.1) -# IWAD4815.ejb20=IWAD4815W: No methods on {0} match this <method> (EJB 2.0: 17.4.1). -# IWAD4817.ejb20=IWAD4817W: <trans-attribute> is unknown (EJB 2.0: 17.4.1). -# IWAD4818.ejb20=IWAD4818W: Only one Style 1 <container-transaction> may exist for {0} (EJB 2.0: 17.4.1). -# IWAD4819.ejb20=IWAD4819W: Only one Style 2 <container-transaction> may exist for {0} (EJB 2.0: 17.4.1). -# IWAD4820.ejb20=IWAD4820W: At least one <method-param> must exist in a <method-params>. - -# IWAD4821.ejb20=IWAD4821W: <env-entry-value> must be a {0} (EJB 2.0: 20.2.1.2, 22.5). -# IWAD4822.ejb20=IWAD4822W: <env-entry-name> must exist (EJB 2.0: 20.2.1.2, 22.5). -# IWAD4823.ejb20=IWAD4823W: <env-entry-type> must exist (EJB 2.0: 20.2.1.2, 22.5). -# IWAD4824.ejb20=IWAD4824W: <env-entry-name> must be unique within {0} (EJB 2.0: 20.2.1.2). -# IWAD4825.ejb20=IWAD4825W: <env-entry-type> must be a legal type (EJB 2.0: 20.2.1.2, 22.5). -# IWAD4826.ejb20=IWAD4826W: <env-entry-value> must be a String or a character (EJB 2.0: 20.2.1.2). - -# IWAD4828.ejb20=IWAD4828W: Conventionally this reference is located in the "ejb" subcontext (EJB 2.0: 20.3.1.1, 22.5). -# IWAD4829.ejb20=IWAD4829W: This <env-entry> should be in an <ejb-ref> (EJB 2.0: 20.3.1.2). -# IWAD4830.ejb20=IWAD4830W: This <env-entry> should be in an <ejb-local-ref> (EJB 2.0: 20.3.1.2). -# IWAD4831.ejb20=IWAD4831W: <ejb-ref-type> must be {0} (EJB 2.0: 20.3.1.2, 20.3.2). -# IWAD4832.ejb20=IWAD4832W: <ejb-ref> must exist (EJB 2.0: 20.3.1.2, 20.3.2). -# IWAD4833.ejb20=IWAD4833W: <ejb-local-ref> must exist (EJB 2.0: 20.3.1.2, 20.3.2). -# IWAD4834.ejb20=IWAD4834W: <home> must exist (EJB 2.0: 20.3.1.2, 20.3.2). -# IWAD4835.ejb20=IWAD4835W: <local-home> must exist (EJB 2.0: 20.3.1.2, 20.3.2). -# IWAD4836.ejb20=IWAD4836W: <remote> must exist (EJB 2.0: 20.3.1.2, 20.3.2). -# IWAD4837.ejb20=IWAD4837W: <local-remote> must exist (EJB 2.0: 20.3.1.2, 20.3.2). -# IWAD4838.ejb20=IWAD4838W: <ejb-ref> must be unique within {0} (EJB 2.0: 20.3.1.2). -# IWAD4839.ejb20=IWAD4839W: <ejb-local-ref> must be unique within {0} (EJB 2.0: 20.3.1.2). -# IWAD4840.ejb20=IWAD4840W: <home> {0} is not used by bean {1} (EJB 2.0: 20.3.1.2, 20.3.2). -# IWAD4841.ejb20=IWAD4841W: <remote> {0} is not used by bean {1} (EJB 2.0: 20.3.1.2, 20.3.2). -# IWAD4842.ejb20=IWAD4842W: <ejb-link> must exist (EJB 2.0: 20.3.1.2). - -# IWAD4843.ejb20=IWAD4843W: This <env-entry> must be a <resource-ref> (EJB 2.0: 20.4.1.2). -# IWAD4844.ejb20=IWAD4844W: <res-ref-name> should not include the "java:com/env/" string (EJB 2.0: 20.4.1.2). -# IWAD4845.ejb20=IWAD4845W: <res-auth> must be "Application" or "Container" (EJB 2.0: 20.4.1.2). -# IWAD4846.ejb20=IWAD4846W: <res-sharing-scope> must be "Shareable" or "Unshareable" (EJB 2.0: 20.4.1.2). -# IWAD4847.ejb20=IWAD4847W: <resource-ref> must be unique in bean {0} (EJB 2.0: 20.4.1.2). - -# IWAD4848.ejb20=IWAD4848W: Conventionally this is located in the "java:comp/env/jdbc" subcontext (EJB 2.0: 20.4.1.3, 20.5.1.1). -# IWAD4849.ejb20=IWAD4849W: Conventionally this is located in the "java:comp/env/jms" subcontext (EJB 2.0: 20.4.1.3, 20.5.1.1). -# IWAD4850.ejb20=IWAD4850W: Conventionally this is located in the "java:comp/env/mail" subcontext (EJB 2.0: 20.4.1.3, 20.5.1.1). -# IWAD4851.ejb20=IWAD4851W: Conventionally this is located in the "java:comp/env/url" subcontext (EJB 2.0: 20.4.1.3, 20.5.1.1). - -# IWAD4852.ejb20=IWAD4852W: This <env-entry> must be a <resource-env-ref> (EJB 2.0: 20.5.1.2). -# IWAD4853.ejb20=IWAD4853W: <resource-env-ref-name> should not include the "java:comp/env" string (EJB 2.0: 20.5.1.2). -# IWAD4854.ejb20=IWAD4854W: A JMS Destination value must be either javax.jms.Queue or javax.jms.Topic (EJB 2.0: 20.5.1.2). -# IWAD4855.ejb20=IWAD4855W: <resource-env-ref-name> must be unique in bean {0} (EJB 2.0: 20.5.1.2). - -# IWAD4856.ejb20=IWAD4856W: A <role-name> must exist (EJB 2.0: 21.2.5.3). -# IWAD4857.ejb20=IWAD4857W: <role-name> {0} must be unique within bean {1} (EJB 2.0: 21.2.5.3). -# IWAD4858.ejb20=IWAD4858W: A <role-name> must exist (EJB 2.0: 21.3.1). -# IWAD4859.ejb20=IWAD4859W: <role-name> {0} must be unique within bean {1} (EJB 2.0: 21.3.1). -# IWAD4860.ejb20=IWAD4860W: Security roles must exist (EJB 2.0: 21.3.1). - -# IWAD4931.ejb20=IWAD4931W: At least one <method> must exist in a <method-permission> (EJB 2.0: 21.3.2). -# IWAD4932.ejb20=IWAD4932W: {0} must exist (EJB 2.0: 21.3.2) (EJB 2.0: 17.4.1). -# IWAD4933.ejb20=IWAD4933W: No methods on {0} match this <method> (EJB 2.0: 21.3.2). -# IWAD4934.ejb20=IWAD4934W: At least one <method-param> must exist in a <method-params>. - -# IWAD4866.ejb20=IWAD4866W: A <role-link> must exist (EJB 2.0: 21.3.3). -# IWAD4867.ejb20=IWAD4867W: This <role-link> must not exist (EJB 2.0: 21.3.3). -# IWAD4868.ejb20=IWAD4868W: {0} must exist (EJB 2.0: 21.3.3). - -# IWAD4869.ejb20=IWAD4869W: <security-identity> must be either "use-caller-identity" or "run-as" (EJB 2.0: 21.3.4). -# IWAD4870.ejb20=IWAD4870W: <security-identity> must be "run-as" (EJB 2.0: 21.3.4). -# IWAD4871.ejb20=IWAD4871W: Security role {0} must exist (EJB 2.0: 21.3.4.1). - -# IWAD4875.ejb20=IWAD4875W: <session-type> must be either "Stateful" or "Stateless" (EJB 2.0: 22.2, 22.5). -# IWAD4876.ejb20=IWAD4876W: <transaction-type> must be either "Bean" or "Container" (EJB 2.0: 22.2, 22.5). -# IWAD4877.ejb20=IWAD4877W: <persistence-type> must be either "Bean" or "Container" (EJB 2.0: 22.2, 22.5). -# IWAD4879.ejb20=IWAD4879W: At least one <cmp-field> must exist (EJB 2.0: 22.2, 22.5). - -# IWAD4880.ejb20=IWAD4880W: <acknowledge-mode> must be either "Auto-acknowledge" or "Dups-ok-acknowledge" (EJB 2.0: 22.5). -# IWAD4881.ejb20=IWAD4881W: <cascade-delete> must not exist (EJB 2.0: 22.5). -# IWAD4882.ejb20=IWAD4882W: <cmp-version> must be either "1.x" or "2.x" (EJB 2.0: 22.5). -# IWAD4883.ejb20=IWAD4883W: <cmr-field-name> must exist on {0} (EJB 2.0: 22.5). -# IWAD4884.ejb20=IWAD4884W: <cmr-field-type> must be the same type as {0} (EJB 2.0: 22.5). -# IWAD4885.ejb20=IWAD4885W: <cmr-field-type> must be either java.util.Collection or java.util.Set (EJB 2.0: 22.5). - -# IWAD4886.ejb20=IWAD4886W: <cmr-field-name> must begin with a lowercase letter (EJB 2.0: 22.5). -# IWAD4887.ejb20=IWAD4887W: <destination-type> must be either javax.jms.Queue or javax.jms.Topic (EJB 2.0: 22.5). -# IWAD4889.ejb20=IWAD4889W: {0} must exist (EJB 2.0: 22.5). -# IWAD4890.ejb20=IWAD4890W: <ejb-ref-name> must be unique in bean {0} (EJB 2.0: 22.5). -# IWAD4891.ejb20=IWAD4891W: <ejb-ref-type> must be "Entity" or "Session" (EJB 2.0: 22.5). - -# IWAD4862.ejb20=IWAD4862W: <result-type-mapping> must be "Remote" (EJB 2.0: 10.5.7). -############################################################################### -# -# 2TC: end of messages which should not be translated -# -############################################################################### - -# -# end of messages for the EJB 2.0 specification -# - -# -# end of validation messages -# - -# -# End EJB Validation strings -# - diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/erefvalidation.properties b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/erefvalidation.properties deleted file mode 100644 index cfeb2aa71..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/erefvalidation.properties +++ /dev/null @@ -1,78 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2004 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: -# IBM Corporation - initial API and implementation -############################################################################### -#This properties file hold all the externalised strings for eTools J2EE Validation project -# Validation project -# -# Messages should be according to the format at: -# http://hany.austin.ibm.com/messages/index.html -# -# Briefly: -# MESSAGE_ID=<ComponentPrefix><MessageNumber><TypeCode>: <MessageText> -# -# The prefix for this component is: -# CHKJ (IBM WebSphere Validation) -# -# Note the ": " that appears between the type code and the message text. -# -# :Begin: WebSphere Quality Validation Information :Begin: -#COMPONENTPREFIX CHKJ -#COMPONENTNAMEFOR CHKJ IBM WebSphere Validation -#CMVCPATHNAME ncf/src/java/com/ibm/websphere/validation/erefvalidation.properties -# :End: WebSphere Quality Validation Information :End: -# -# 14-October-2001: -# - -# -------------------------------- -ERROR_EAR_MISSING_EREFNAME=CHKJ3009E: In module {1}, ''ejb-ref-name'' element in ejb-ref: {0} is invalid. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -ERROR_EAR_INVALID_EREFTYPE=CHKJ3010E: In module {1}, ''ejb-ref-type'' element in ejb-ref: {0} is invalid. -#EXPLANATION None. -#USERACTION None. - -ERROR_EAR_MISSING_EREFTYPE=CHKJ3014E: In module {1}, ''ejb-ref-type'' element in ejb-ref: {0} is missing. - - -# -------------------------------- -ERROR_EAR_MISSING_EREFHOME=CHKJ3011E: In module {1}, Home interface is missing from ejb-ref: {0} element. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -ERROR_EAR_MISSING_EREFREMOTE=CHKJ3012E: In module {1}, Remote interface is missing from ejb-ref: {0} element. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -ERROR_EAR_MISSING_EJB_ROLE=CHKJ2827W: ''security-role-ref'' element {0} defines the ''role-link'' element but no ''security-role'' elements in the application descriptor. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -ERROR_EAR_DUPLICATE_RESREF=CHKJ3013E: Duplicate ''resource-ref'' element named {0}. -#EXPLANATION None. -#USERACTION None. - -# new string added for version 5 WSAD -UNRESOLVED_EJB_REF_WARN_=IWAE0034W EJB link element {0} is unresolvable in module {1} and EAR {2}. - -ERROR_EAR_DUPLICATE_SERVICEREF=CHKJ3015E: Duplicate ''service-ref'' element named {0}. -ERROR_EAR_DUPLICATE_SECURITYROLEREF=CHKJ3016E: Duplicate ''security role-ref'' element named {0}. -ERROR_EAR_DUPLICATE_EJBREF=CHKJ3017E: Duplicate ''ejb-ref'' element named {0}. -ERROR_EAR_DUPLICATE_RESENVREF=CHKJ3018E: Duplicate ''resource environment-ref'' element named {0}. -ERROR_EAR_DUPLICATE_MESSSAGEDESTINATIONREF=CHKJ3019E: Duplicate ''message destination-ref'' element named {0}. -ERROR_EAR_MISSING_MESSSAGEDESTINATION=Message destination link ''{0}'' for message destination ref ''{1}'' is unresolvable in module ''{2}'' and EAR ''{3}''. -ERROR_UNRESOLVED_MDB_MISSING_MESSAGE_DESTINATION=Message destination link ''{0}'' of MDB ''{1}'' is unresolvable in module ''{2}'' and EAR ''{3}''. -ERROR_EAR_MISSING_EMPTY_MESSSAGEDESTINATION=Message destination link is empty for message destination ref ''{0}'' in module ''{1}'' and EAR ''{2}''. -ERROR_MODULE_DD_FILE_NOT_FOUND=The deployment descriptor of the module ''{0}'' cannot be loaded. diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/core/internal/validation/xmlerrorcustomization/J2EEErrorMessageCustomizer.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/core/internal/validation/xmlerrorcustomization/J2EEErrorMessageCustomizer.java deleted file mode 100644 index a1aeae1b2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/core/internal/validation/xmlerrorcustomization/J2EEErrorMessageCustomizer.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.core.internal.validation.xmlerrorcustomization; - -import java.util.Iterator; - -import org.eclipse.wst.xml.core.internal.validation.errorcustomization.ElementInformation; -import org.eclipse.wst.xml.core.internal.validation.errorcustomization.IErrorMessageCustomizer; - -/** - * A J2EE message customizer for the XML validator. This error customizer will - * customize errors on application.xml. - */ -public class J2EEErrorMessageCustomizer implements IErrorMessageCustomizer { - - /* (non-Javadoc) - * @see org.eclipse.wst.xml.core.internal.validation.errorcustomization.IErrorMessageCustomizer#customizeMessage(org.eclipse.wst.xml.core.internal.validation.errorcustomization.ElementInformation, java.lang.String, java.lang.Object[]) - */ - public String customizeMessage(ElementInformation elementInfo, String errorKey, Object[] arguments) { - if ("cvc-complex-type.2.4.a".equals(errorKey) || "cvc-complex-type.2.4.b".equals(errorKey)) { //$NON-NLS-1$ //$NON-NLS-2$ - if ("application".equals(elementInfo.getLocalname())) { //$NON-NLS-1$ - boolean applicationHasModule = false; - for (Iterator i = elementInfo.getChildren().iterator(); i.hasNext();) { - ElementInformation child = (ElementInformation) i.next(); - if ("module".equals(child.getLocalname())) { //$NON-NLS-1$ - applicationHasModule = true; - break; - } - } - if (!applicationHasModule) { - return J2EEXMLCustomValidationMessages.J2EE_APPLICATION_ONE_OR_MORE_MODULES; - } - } - if ("ejb-jar".equals(elementInfo.getLocalname())) { //$NON-NLS-1$ - boolean ejbHasBeans = false; - for (Iterator i = elementInfo.getChildren().iterator(); i.hasNext();) { - ElementInformation child = (ElementInformation) i.next(); - if ("enterprise-beans".equals(child.getLocalname())) { //$NON-NLS-1$ - ejbHasBeans = true; - break; - } - } - if (!ejbHasBeans) { - return J2EEXMLCustomValidationMessages.EJB_ONE_OR_MORE_BEANS; - } - } - } - return null; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/core/internal/validation/xmlerrorcustomization/J2EEXMLCustomValidationMessages.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/core/internal/validation/xmlerrorcustomization/J2EEXMLCustomValidationMessages.java deleted file mode 100644 index db6ce4ba1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/core/internal/validation/xmlerrorcustomization/J2EEXMLCustomValidationMessages.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM - Initial API and implementation - * - */ -package org.eclipse.jst.j2ee.core.internal.validation.xmlerrorcustomization; - -import org.eclipse.osgi.util.NLS; - -/** - * Strings used by XML Validation - */ -public class J2EEXMLCustomValidationMessages extends NLS { - private static final String BUNDLE_NAME = "org.eclipse.jst.j2ee.core.internal.validation.xmlerrorcustomization.j2eexmlcustomvalidation";//$NON-NLS-1$ - - public static String J2EE_APPLICATION_ONE_OR_MORE_MODULES; - public static String EJB_ONE_OR_MORE_BEANS; - - static { - // load message values from bundle file - NLS.initializeMessages(BUNDLE_NAME, J2EEXMLCustomValidationMessages.class); - } - - private J2EEXMLCustomValidationMessages() { - // cannot create new instance - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/core/internal/validation/xmlerrorcustomization/j2eexmlcustomvalidation.properties b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/core/internal/validation/xmlerrorcustomization/j2eexmlcustomvalidation.properties deleted file mode 100644 index 9e790426b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/core/internal/validation/xmlerrorcustomization/j2eexmlcustomvalidation.properties +++ /dev/null @@ -1,14 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2005 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: -# IBM Corporation - initial API and implementation -############################################################################### -!-- Constants for strings - -J2EE_APPLICATION_ONE_OR_MORE_MODULES = A J2EE Enterprise Application must contain one or more modules. -EJB_ONE_OR_MORE_BEANS=An EJB module must contain one or more enterprise beans.
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ABMPHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ABMPHomeVRule.java deleted file mode 100644 index 3862baa60..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ABMPHomeVRule.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; -import java.util.List; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -public abstract class ABMPHomeVRule extends AEntityHomeVRule { - - public final void validateMatchingReturnTypeMatches(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method homeMethod, Method beanMethod, List[] methodsExtendedLists) { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, homeMethod, methodsExtendedLists, this); - if((methodType & FIND) != FIND) { - super.validateMatchingReturnTypeMatches(vc, bean, clazz, homeMethod, beanMethod, methodsExtendedLists); - } - else { - JavaHelpers homeRetType = homeMethod.getReturnType(); - JavaHelpers beanRetType = beanMethod.getReturnType(); - if (!ValidationRuleUtility.isAssignableFrom(homeRetType, beanRetType)) { - // emit the error only if it's a multi-finder. Single-finders are supposed to have different return types on the home & bean class. - boolean homeRetTypeIsRemote = ValidationRuleUtility.isAssignableFrom(homeRetType, bean.getRemoteInterface()); - boolean homeRetTypeIsLocal = ValidationRuleUtility.isAssignableFrom(homeRetType, bean.getLocalInterface()); - boolean beanRetTypeIsKey = ValidationRuleUtility.isAssignableFrom(beanRetType, ((Entity)bean).getPrimaryKey()); - if(!((homeRetTypeIsRemote || homeRetTypeIsLocal) && beanRetTypeIsKey)) { - String retTypeName = null; - if(beanRetTypeIsKey) { - if((isRemote() & IEJBType.REMOTE) == IEJBType.REMOTE) { - retTypeName = (bean.getRemoteInterface() == null) ? IEJBValidatorConstants.NULL_REMOTE : bean.getRemoteInterface().getJavaName(); - } - else { - retTypeName = (bean.getLocalInterface() == null) ? IEJBValidatorConstants.NULL_LOCAL : bean.getLocalInterface().getJavaName(); - } - } - else { - retTypeName = (beanRetType == null) ? "?" : beanRetType.getJavaName(); //$NON-NLS-1$ - } - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2479, IEJBValidationContext.ERROR, bean, clazz, homeMethod, new String[] { retTypeName}, this); - vc.addMessage(message); - } - } - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ABeanClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ABeanClassVRule.java deleted file mode 100644 index c09dbaa9f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ABeanClassVRule.java +++ /dev/null @@ -1,506 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.Iterator; -import java.util.List; -import java.util.Set; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public abstract class ABeanClassVRule extends ATypeVRule implements IEJBType { - protected final static long[] BASE_TYPES = new long[]{ITypeConstants.JAVA_LANG_OBJECT}; - protected final static int MESSAGE_REMOTE_EXCEPTION_SEVERITY = IEJBValidationContext.WARNING; // Deprecated use of RemoteException. - - public long[] getBaseTypes() { - return BASE_TYPES; - } - - public Object getTarget(Object parent, Object clazz) { - if(parent == null) { - return null; - } - - return ((EnterpriseBean)parent).getEjbClass(); - } - - public long getDefaultMethodType() { - return HELPER; - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(!followAbstractRules(clazz)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2014, IEJBValidationContext.WARNING, bean, clazz, this); - vc.addMessage(message); - } - - if(!followPublicRules(clazz)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2022, IEJBValidationContext.WARNING, bean, clazz, this); - vc.addMessage(message); - } - - if(!followFinalRules(clazz)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2015, IEJBValidationContext.WARNING, bean, clazz, this); - vc.addMessage(message); - } - - validateAppendixB(vc, bean, clazz); - } - - public final static List getRemoteHomeMethodsExtended(List[] methodsExtendedList) { - return methodsExtendedList[0]; - } - - public final static List getLocalHomeMethodsExtended(List[] methodsExtendedList) { - return methodsExtendedList[1]; - } - - public final static List getRemoteComponentMethodsExtended(List[] methodsExtendedList) { - return methodsExtendedList[2]; - } - - public final static List getLocalComponentMethodsExtended(List[] methodsExtendedList) { - return methodsExtendedList[3]; - } - - public final static List getBeanClassMethodsExtended(List[] methodsExtendedList) { - return methodsExtendedList[4]; - } - - public final List[] getMethodsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // A bean class needs the following classes' extended methods: - // 1. remote home - // 2. local home - // 3. remote component - // 4. local component - // 5. bean class (when searching for a matching ejbPostCreate method). - // If a particular bean doesn't use a remote view or local view, - // then the corresponding entry in the array will be null. - List[] result = new List[5]; - JavaClass remoteHome = bean.getHomeInterface(); - if(remoteHome != null) { - result[0] = remoteHome.getMethodsExtended(); - } - else { - result[0] = null; - } - - JavaClass localHome = bean.getLocalHomeInterface(); - if(localHome != null) { - result[1] = localHome.getMethodsExtended(); - } - else { - result[1] = null; - } - - JavaClass remoteComponent = bean.getRemoteInterface(); - if(remoteComponent != null) { - result[2] = remoteComponent.getMethodsExtended(); - } - else { - result[2] = null; - } - - JavaClass localComponent = bean.getLocalInterface(); - if(localComponent != null) { - result[3] = localComponent.getMethodsExtended(); - } - else { - result[3] = null; - } - - JavaClass beanClass = bean.getEjbClass(); - if(beanClass != null) { - result[4] = beanClass.getMethodsExtended(); - } - else { - result[4] = null; - } - - return result; - } - - public final List[] getFieldsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // Never check that a bean class' field is defined on another class - // of the bean. - return null; - } - - protected abstract boolean shouldBeFinal(JavaClass clazz); - protected abstract boolean shouldBePublic(JavaClass clazz); - protected abstract boolean shouldBeAbstract(JavaClass clazz); - protected abstract boolean shouldValidateTransientField(); - protected abstract JavaHelpers getEjbCreateReturnType(EnterpriseBean bean, Method method) throws InvalidInputException; - protected abstract String getEjbCreateReturnTypeName(EnterpriseBean bean, Method method) throws InvalidInputException; - public abstract String getMatchingHomeMethodName(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList); - - public String getMatchingEjbHomeMethodName(IEJBValidationContext vc, Method method) { - // Section number stating this name convention? - String methodName = method.getName(); - // Strip the "ejbHome" off, strip off the next character, and replace that character with a lowercase version of that character - StringBuffer buffer = new StringBuffer(Character.toLowerCase(methodName.charAt(0))); - buffer.append(method.getName().substring(8)); - return buffer.toString(); - } - - public String getMatchingEjbCreateMethodName(IEJBValidationContext vc, Method method) { - StringBuffer buffer = new StringBuffer(IMethodAndFieldConstants.PREFIX_C); - // Strip the "ejbC" off of "create" and replace with "c" - buffer.append(method.getName().substring(4)); - return buffer.toString(); - } - - public String getMatchingEjbPostCreateMethodName(IEJBValidationContext vc, Method method) { - StringBuffer buffer = new StringBuffer(IMethodAndFieldConstants.PREFIX_C); - // Strip the "ejbPostC" off of "create" and replace with "c" - buffer.append(method.getName().substring(8)); - return buffer.toString(); - } - - - - public String getMatchingEjbFindMethodName(IEJBValidationContext vc, Method method) { - StringBuffer buffer = new StringBuffer(IMethodAndFieldConstants.PREFIX_F); - // Strip the "ejbF" off of "ejbFind" and replace with "f" - buffer.append(method.getName().substring(4)); - return buffer.toString(); - } - - public String getMatchingBusinessMethodName(IEJBValidationContext vc, Method method) { - return method.getName(); - } - - /* - * The given method is not supposed to have a matching method. - */ - public String getNoMatchingMethodName(IEJBValidationContext vc, Method method) { - return null; // not supposed to have a matching method - } - - public final boolean followFinalRules(JavaClass clazz) { - if(shouldBeFinal(clazz)) { - return clazz.isFinal(); - } - return !clazz.isFinal(); - } - - public final boolean followPublicRules(JavaClass clazz) { - if(shouldBePublic(clazz)) { - return clazz.isPublic(); - } - return !clazz.isPublic(); - } - - public final boolean followAbstractRules(JavaClass clazz) { - if(shouldBeAbstract(clazz)) { - return clazz.isAbstract(); - } - return !clazz.isAbstract(); - } - - - public void validateEjbCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2421, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - if(method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2422, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - if(method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2423, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - JavaHelpers retType = getEjbCreateReturnType(bean, method); - if((retType == null) || (!ValidationRuleUtility.isAssignableFrom(method.getReturnType(), retType))) { - String retTypeName = (retType == null) ? getEjbCreateReturnTypeName(bean, method) : retType.getJavaName(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2424, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{retTypeName}, this); - vc.addMessage(message); - } - - validateRMI_IIOPTypeRules(vc, bean, clazz, method, methodsExtendedLists, true); - - if(validateEjbCreateMethodExceptions()) { - if(!followRemoteExceptionRules(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2503_ejbCreate, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - } - } - - public boolean validateEjbCreateMethodExceptions() { - return true; - } - - public void validateEjbPostCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2426, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - if(method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2427, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - if(method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2428, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - if(!method.isVoid()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2505_ejbPostCreate, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - if(!followRemoteExceptionRules(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2503_ejbPostCreate, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - } - - public final void validateEjbHomeMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2431, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - if(method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2439, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - validateRMI_IIOPTypeRules(vc, bean, clazz, method, methodsExtendedLists, true); - - if(!followRemoteExceptionRules(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2503_ejbHome, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // "ejbHome" is 7 characters - // method will follow the convention, "ejbHome" + Char.toUpper(0) + substring(1), so reverse that convention here - StringBuffer buffer = new StringBuffer(); - buffer.append(Character.toLowerCase(method.getName().charAt(7))); // put the character back into lower-case - buffer.append(method.getName().substring(8)); // substring starts at the character following "ejbHome" and the first character -- substring is 0 indexed - String methodToMatchName = buffer.toString(); - - Method matchingRemoteHomeMethod = ValidationRuleUtility.getMethod(method, methodToMatchName, getRemoteHomeMethodsExtended(methodsExtendedLists)); - if(matchingRemoteHomeMethod != null) { - return; - } - - Method matchingLocalHomeMethod = ValidationRuleUtility.getMethod(method, methodToMatchName, getLocalHomeMethodsExtended(methodsExtendedLists)); - if(matchingLocalHomeMethod != null) { - return; - } - - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2430, IEJBValidationContext.INFO, bean, clazz, method, new String[]{methodToMatchName}, this); - vc.addMessage(message); - } - - public final void validateBusinessMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - // IWAD4048 = Business methods must not start with "ejb". Read section 7.10.4 of the EJB 2.0 specification. - // IWAD4201 = This method name must not start with "ejb". Read section 10.6.8 of the EJB 2.0 specification. - // IWAD4317 = The method name must not start with "ejb". Read section 12.2.7 of the EJB 2.0 specification. - if(method.getName().startsWith(IMethodAndFieldConstants.PREFIX_EJB)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2411, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4049 = This method must be public. Read section 7.10.4 of the EJB 2.0 specification. - // IWAD4202 = This method must be public. Read section 10.6.8 of the EJB 2.0 specification. - // IWAD4318 = The method must be public. Read section 12.2.7 of the EJB 2.0 specification. - if(!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2441, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4050 = This method must not be final. Read section 7.10.4 of the EJB 2.0 specification. - // IWAD4203 = This method must not be final. Read section 10.6.8 of the EJB 2.0 specification. - // IWAD4319 = The method must not be final. Read section 12.2.7 of the EJB 2.0 specification. - if(method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2442, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4051 = This method must not be static. Read section 7.10.4 of the EJB 2.0 specification. - // IWAD4204 = This method must not be static. Read section 10.6.8 of the EJB 2.0 specification. - // IWAD4320 = The method must not be static. Read section 12.2.7 of the EJB 2.0 specification. - if(method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2443, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4052 = {0} must be a legal RMI-IIOP type. Read section 7.10.4 of the EJB 2.0 specification. - // IWAD4205 = {0} must be a legal RMI-IIOP type. Read section 10.6.8 of the EJB 2.0 specification. - // IWAD4321 = {0} must be a legal type for RMI-IIOP. Read section 12.2.7 of the EJB 2.0 specification. - validateRMI_IIOPTypeRules(vc, bean, clazz, method, methodsExtendedLists, true); - - // IWAD4053 = This method cannot throw java.rmi.RemoteException. Read section 7.10.4, 18.3.8, 18.6 of the EJB 2.0 specification. - // IWAD4206 = This method must not throw java.rmi.RemoteException. Read section 10.6.8, 18.3.8, 18.6 of the EJB 2.0 specification. - // IWAD4322 = This method must not throw java.rmi.RemoteException. Read section 12.2.7, 18.3.8, 18.6 of the EJB 2.0 specification. - if(!followRemoteExceptionRules(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2503_bus, getMessageRemoteExceptionSeverity(), bean, clazz, method, this); - vc.addMessage(message); - } - - validateMatchingComponentMethod(vc, bean, clazz, method, methodsExtendedLists); - } - - public void validateEjbRemoveMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, InvalidInputException, ValidationException { - // IWAD4402 = This method must be public. Read section 15.7.5 of the EJB 2.0 specification. - if(!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2492, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4403 = This method must not be final. Read section 15.7.5 of the EJB 2.0 specification. - if(method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2493, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4404 = This method must not be static. Read section 15.7.5 of the EJB 2.0 specification. - if(method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2494, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4405 = This method must return void. Read section 15.7.5 of the EJB 2.0 specification. - if(!method.isVoid()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2505_ejbRemove, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - } - - /* - * @see IClassVRule#validate(IEJBValidationContext, JavaClass, Field) - */ - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, List[] fieldExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - // IWAD4024 = A transient field should not be the {0} type. Read section 7.4.1 of the EJB 2.0 specification. - // IWAD4025 = Transient fields are discouraged. Read section 7.4.1 of the EJB 2.0 specification. - // IWAD4115 = {0} must not be defined in this class. Read section 10.3.1 of the EJB 2.0 specification. - // IWAD4259 = <cmp-field> field must be the {0} type. Read section 11.2.1 of the EJB 2.0 specification. - // IWAD4260 = <cmr-field> field must be the {0} type. Read section 11.2.1 of the EJB 2.0 specification. - if(shouldValidateTransientField()) { - validateTransientField(vc, bean, clazz, field); - } - } - - public void validateTransientField(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws ValidationCancelledException, InvalidInputException, ValidationException { - // By default do nothing - } - - public long getFieldType(EnterpriseBean bean, JavaClass clazz, Field field) { - if(field == null) { - return EXCLUDED_FIELD; - } - else if(field.getName().equals(IMethodAndFieldConstants.FIELDNAME_SERIALVERSIONUID)) { - return SERIALVERSIONUID; - } - else { - return OTHER_FIELD; - } - } - - public void validateMatchingMethodExceptions(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, JavaClass matchingClazz, Method matchingMethod) { - // Every exception thrown on the bean class' method must be thrown on the component/home method - /* Don't check for this here - let the home & component do it. - Set exceptions = ValidationRuleUtility.getNotSubsetExceptions(bean, method, matchingMethod); - Iterator eiterator = exceptions.iterator(); - while(eiterator.hasNext()) { - } - */ - - // Every exception thrown by the component/home method should be thrown or there may be compile errors - Set exceptions = ValidationRuleUtility.getNotSubsetSubtypeExceptions(bean, matchingMethod, method); - Iterator eiterator = exceptions.iterator(); - while(eiterator.hasNext()) { - JavaClass exception = (JavaClass)eiterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2456, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{exception.getJavaName(), matchingClazz.getJavaName()}, this); - vc.addMessage(message); - } - } - - public final void validateMatchingHomeMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - Method remoteMethod = ValidationRuleUtility.getMethod(method, getMatchingHomeMethodName(vc, bean, clazz, method, methodsExtendedLists), getRemoteHomeMethodsExtended(methodsExtendedLists)); - if(remoteMethod != null) { - validateMatchingMethodExceptions(vc, bean, clazz, method, bean.getHomeInterface(), remoteMethod); - } - - Method localMethod = ValidationRuleUtility.getMethod(method, getMatchingHomeMethodName(vc, bean, clazz, method, methodsExtendedLists), getLocalHomeMethodsExtended(methodsExtendedLists)); - if(localMethod != null) { - validateMatchingMethodExceptions(vc, bean, clazz, method, bean.getLocalHomeInterface(), localMethod); - } - } - - public final void validateMatchingComponentMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - Method remoteMethod = ValidationRuleUtility.getMethod(method, method.getName(), getRemoteComponentMethodsExtended(methodsExtendedLists)); - if(remoteMethod != null) { - validateMatchingMethodExceptions(vc, bean, clazz, method, bean.getRemoteInterface(), remoteMethod); - } - - Method localMethod = ValidationRuleUtility.getMethod(method, method.getName(), getLocalComponentMethodsExtended(methodsExtendedLists)); - if(localMethod != null) { - validateMatchingMethodExceptions(vc, bean, clazz, method, bean.getLocalInterface(), localMethod); - } - } - - protected void validateAppendixB(IEJBValidationContext vc, EnterpriseBean bean, JavaClass thisEjbObject) { - // The Java inheritance structure must match the EJB inheritance structure. - // e.g. if EJB B is a child of EJB A, then class B must be a child of class A. - // B could be a grandchild (or great-grandchild or ...) of A. - if(bean == null) { - return; - } - EnterpriseBean supertype = getSuperType(bean); - JavaClass parentEjbObject = null; - if (supertype != null) { - parentEjbObject = supertype.getEjbClass(); - - // EJBObject a Xchild of parent EJBObject (X = child, grandchild, great-grandchild, etc.) - try { - ValidationRuleUtility.isValidType(thisEjbObject); - ValidationRuleUtility.isValidType(parentEjbObject); - if (!ValidationRuleUtility.isAssignableFrom(thisEjbObject, parentEjbObject)) { - String[] msgParm = new String[] { thisEjbObject.getQualifiedName(), parentEjbObject.getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2103, IEJBValidationContext.ERROR, bean, thisEjbObject, msgParm, this); - vc.addMessage(message); - } - } - catch (InvalidInputException e) { - String[] msgParm = { e.getJavaClass().getQualifiedName(), bean.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2849, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - } - } - - public final boolean followRemoteExceptionRules(EnterpriseBean bean, Method method) throws InvalidInputException, ValidationCancelledException { - // must not throw RemoteException - return ValidationRuleUtility.doesNotThrowRemoteException(bean, method); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ACMPHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ACMPHomeVRule.java deleted file mode 100644 index 573438dc4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ACMPHomeVRule.java +++ /dev/null @@ -1,76 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; -import java.util.List; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - */ -public abstract class ACMPHomeVRule extends AEntityHomeVRule { - - public final void validateFindMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) throws ValidationCancelledException, InvalidInputException, ValidationException { - super.validateFindMethod(vc, bean, clazz, method); - - // Check that this method is associated with a query element in ejb-jar.xml - // findByPrimaryKey does not need a query element (10.5.6) - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedList, this); - if((methodType & IMethodAndFieldConstants.FINDBYPRIMARYKEY) == IMethodAndFieldConstants.FINDBYPRIMARYKEY) { - return; - } - - ContainerManagedEntity cmp = (ContainerManagedEntity)bean; - if(!ValidationRuleUtility.isAssociatedWithQuery(cmp, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2495, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - } - - public boolean findMatchingMethod(long methodType) { - if((methodType & FIND) == IMethodAndFieldConstants.FIND) { - return false; - } - return super.findMatchingMethod(methodType); - } - - - /** - * @see org.eclipse.wst.validation.internal.provisional.core.core.ejb.ejb20.rules.impl.AHomeVRule#returnsComponentInterfaceOrCollection(IEJBValidationContext, EnterpriseBean, JavaClass, Method) - */ - protected boolean returnsComponentInterfaceOrCollection(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, InvalidInputException { - if(returnsComponentInterface(vc, bean, clazz, method)) { - return true; - } - - JavaHelpers returnParm = method.getReturnType(); - JavaHelpers javaUtilCollection = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_UTIL_COLLECTION, bean); - if(ValidationRuleUtility.isAssignableFrom(returnParm, javaUtilCollection)) { - return true; - } - - return false; - } - - public final void validateMatchingReturnTypeMatches(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method homeMethod, Method beanMethod, List[] methodsExtendedList) { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, homeMethod, methodsExtendedList, this); - if((methodType & FIND) != FIND) { - super.validateMatchingReturnTypeMatches(vc, bean, clazz, homeMethod, beanMethod, methodsExtendedList); - } - // do not validate the return type of find methods because there should not be an implementation on the bean class - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AComponentVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AComponentVRule.java deleted file mode 100644 index ba2aecead..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AComponentVRule.java +++ /dev/null @@ -1,164 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.Iterator; -import java.util.List; -import java.util.Set; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public abstract class AComponentVRule extends AInterfaceTypeVRule { - public Object getTarget(Object parent, Object clazz) { - if(parent == null) { - return null; - } - - if((isRemote() & REMOTE) == REMOTE) { - return ((EnterpriseBean)parent).getRemoteInterface(); - } - return ((EnterpriseBean)parent).getLocalInterface(); - } - - public long getDefaultMethodType() { - return BUSINESS; - } - - public long[] getBaseTypes() { - return getSupertypes(); - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(!followRMI_IIOPInheritanceRules(bean, clazz)) { - // IWAD4057 = {0} must follow RMI-IIOP rules for remote interfaces. Read section 7.10.5 of the EJB 2.0 specification. - // IWAD4210 = {0} must follow RMI-IIOP rules for remote interfaces. Read section 10.6.9 of the EJB 2.0 specification. - // IWAD4326 = {0} must follow RMI-IIOP rules for remote interfaces. Read section 12.2.8 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2468, IEJBValidationContext.INFO, bean, clazz, this); - vc.addMessage(message); - } - - validateAppendixB(vc, bean, clazz); - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - super.validate(vc, bean, clazz, method, methodsExtendedLists); // check application exceptions - - if(isEJBInterfaceMethod(bean, method)) { - // IWAD4021 = {0} is provided by the container. Read section 6.5 of the EJB 2.0 specification. - // IWAD4110 = {0} is provided by the container. Read section 9.9 of the EJB 2.0 specification. - // IWAD4112 = {0} is provided by the container. Read section 9.10 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2469, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - - Method match = ValidationRuleUtility.getMethod(method, method.getName(), getBeanClassMethodsExtended(methodsExtendedLists)); - if(match == null) { - // IWAD4058 = {0} must exist on {1}. Read section 7.10.5 of the EJB 2.0 specificiation. - // IWAD4070 = {0} must exist on {1}. Read section 7.10.7 of the EJB 2.0 specification. - // IWAD4327 = {0} must exist on {1}. Read section 12.2.8 of the EJB 2.0 specification. - // IWAD4354 = {0} must exist on {1}. Read section 12.2.10 of the EJB 2.0 specification. - // IWAD4211 = {0} must exist on {1}. Read section 10.6.9 of the EJB 2.0 specification. - // IWAD4227 = {0} must exist on {1}. Read section 10.6.11 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2023, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{method.getMethodElementSignature(), bean.getEjbClass().getJavaName()}, this); - vc.addMessage(message); - } - else { - if(!ValidationRuleUtility.isAssignableFrom(method.getReturnType(), match.getReturnType())) { - // IWAD4212 = This method must return the same type as {0}. Read section 10.6.9 of the EJB 2.0 specification. - // IWAD4228 = This method must return the same type as {0}. Read section 10.6.11 of the EJB 2.0 specification. - // IWAD4328 = This method must return the same type as {0} on {1}. Read section 12.2.8 of the EJB 2.0 specification. - // IWAD4355 = This method must return {0}. Read section 12.2.10 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2470, IEJBValidationContext.ERROR, bean, clazz, method, new String[]{match.getReturnType().getJavaName()}, this); - vc.addMessage(message); - } - - Set exceptions = ValidationRuleUtility.getNotSubsetExceptions(bean, match, method); - Iterator eiterator = exceptions.iterator(); - while(eiterator.hasNext()) { - JavaClass exception = (JavaClass)eiterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2471, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{exception.getJavaName(), match.getMethodElementSignature()}, this); - vc.addMessage(message); - } - } - - if(!followRemoteExceptionRules(bean, method)) { - // IWAD4056 = This method must throw java.rmi.RemoteException. Read section 7.10.5 of the EJB 2.0 specification. - // IWAD4069 = This method must not throw java.rmi.RemoteException. Read section 7.10.7, 18.3.8, 18.6 of the EJB 2.0 specification. - // IWAD4325 = This method must throw java.rmi.RemoteException. Read section 12.2.8 of the EJB 2.0 specification. - // IWAD4353 = This method must not throw java.rmi.RemoteException. Read section 12.2.10, 18.3.8, 18.6 of the EJB 2.0 specification. - // IWAD4209 = This method must throw java.rmi.RemoteException. Read section 10.6.9 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2503_bus, getMessageRemoteExceptionSeverity(), bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4055 = {0} must be a legal type for RMI-IIOP. Read section 7.10.5 of the EJB 2.0 specification. - // IWAD4208 = {0} must be a legal type for RMI-IIOP. Read section 10.6.9 of the EJB 2.0 specification. - // IWAD4324 = {0} must be a legal type for RMI-IIOP. Read section 12.2.8 of the EJB 2.0 specification. - validateRMI_IIOPTypeRules(vc, bean, clazz, method, methodsExtendedLists, true); - - JavaHelpers oe = getOverExposedLocalType(bean, clazz, method); - if(oe != null) { - // IWAD4059 = This method must not expose the {0} type. Read section 7.10.5 of the EJB 2.0 specification. - // IWAD4107 = This method must not expose the {0} type. Read section 9.7.2 of the EJB 2.0 specification. - // IWAD4330 = This method must not expose the {0} type. Read section 12.2.8 of the EJB 2.0 specification. - // IWAD4128 = This method must not expose the {0} type. Read section 10.3.1, 10.3.10.1 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2472, IEJBValidationContext.INFO, bean, clazz, method, new String[]{oe.getQualifiedName()}, this); - vc.addMessage(message); - } - } - - protected void validateAppendixB(IEJBValidationContext vc, EnterpriseBean bean, JavaClass thisComponent) { - // The Java inheritance structure must match the EJB inheritance structure. - // e.g. if EJB B is a child of EJB A, then class B must be a child of class A. - // B could be a grandchild (or great-grandchild or ...) of A. - if(bean == null) { - return; - } - EnterpriseBean supertype = getSuperType(bean); - JavaClass parentComponent = null; - if (supertype != null) { - parentComponent = getComponentInterface(supertype); - - if(parentComponent == null) { - // child uses either local, or remote, but not both interfaces - return; - } - - // Component a Xchild of parent Component - try { - ValidationRuleUtility.isValidType(thisComponent); - ValidationRuleUtility.isValidType(parentComponent); - if (!ValidationRuleUtility.isAssignableFrom(thisComponent, parentComponent)) { - String[] msgParm = new String[] { thisComponent.getQualifiedName(), parentComponent.getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2105, IEJBValidationContext.ERROR, bean, thisComponent, msgParm, this); - vc.addMessage(message); - } - } - catch (InvalidInputException e) { - String[] msgParm = { e.getJavaClass().getQualifiedName(), bean.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2849, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - } - -// validateAppendixB(vc, supertype, parentComponent); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AEntityBeanClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AEntityBeanClassVRule.java deleted file mode 100644 index 1f1219447..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AEntityBeanClassVRule.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.text.MessageFormat; -import java.util.List; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - */ -public abstract class AEntityBeanClassVRule extends ABeanClassVRule { - private static final String missingMethodTemplate = "{0}({1})"; //$NON-NLS-1$ - - public void validateEjbCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) throws ValidationCancelledException, ValidationCancelledException, InvalidInputException, ValidationException { - super.validateEjbCreateMethod(vc, bean, clazz, method, methodsExtendedList); - - validateMatchingEjbPostCreateMethod(vc, bean, clazz, method, methodsExtendedList); - } - - public final void validateMatchingEjbPostCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - String matchingMethodName = IMethodAndFieldConstants.METHODNAME_EJBPOSTCREATE + method.getName().substring(9); // "ejbCreate" is 9 characters long, so strip off characters 0..8 inclusive - Method ejbPostCreateMethod = ValidationRuleUtility.getMethod(method, matchingMethodName, getBeanClassMethodsExtended(methodsExtendedLists)); - if(ejbPostCreateMethod == null) { - String missingMethod = MessageFormat.format(missingMethodTemplate, new String[]{matchingMethodName, ValidationRuleUtility.getParmsAsString(method)}); - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2050_ejbPostCreate, IEJBValidationContext.ERROR, bean, clazz, method, new String[]{missingMethod}, this); - vc.addMessage(message); - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AEntityHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AEntityHomeVRule.java deleted file mode 100644 index 254ca2065..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AEntityHomeVRule.java +++ /dev/null @@ -1,98 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - - -public abstract class AEntityHomeVRule extends AHomeVRule { - /** - * If the type of the method isn't listed in the KNOWN_METHODS, what type of method is it - * considered to be? - */ - public long getDefaultMethodType() { - return HOME; - } - - public final void validateFindByPrimaryKeyMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, ValidationException { - JavaClass key = ((Entity)bean).getPrimaryKey(); - JavaParameter[] parms = method.listParametersWithoutReturn(); - if((parms.length != 1) || (!ValidationRuleUtility.isAssignableFrom(key, parms[0].getJavaType()))) { - String keyName = (key == null) ? IEJBValidatorConstants.NULL_PRIMARY_KEY : key.getJavaName(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2475, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{keyName}, this); - vc.addMessage(message); - } - } - - public void validateFindMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(!ValidationRuleUtility.followsFinderExceptionRules(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2477, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - - if(!ValidationRuleUtility.followsObjectNotFoundExceptionRules(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2478, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_FINDBYPRIMARYKEY)) { - validateFindByPrimaryKeyMethod(vc, bean, clazz, method); - if(!returnsComponentInterface(vc, bean, clazz, method)) { - JavaClass componentInterface = getComponentInterface(bean); - String className = null; - if(componentInterface != null) { - className = componentInterface.getJavaName(); - } - else { - if((isRemote() & IEJBType.REMOTE) == IEJBType.REMOTE) { - className = IEJBValidatorConstants.NULL_REMOTE; - } - else { - className = IEJBValidatorConstants.NULL_LOCAL; - } - } - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2479, IEJBValidationContext.ERROR, bean, clazz, method, new String[]{className}, this); - vc.addMessage(message); - } - } - else { - if(!returnsComponentInterfaceOrCollection(vc, bean, clazz, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2403, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{getComponentInterface(bean).getName()}, this); - vc.addMessage(message); - } - } - } - - public void validateHomeMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, ValidationException { - // IWAD4350 = The return type must match the return type of {0}. Read section 12.2.9 of the EJB 2.0 specification. - // The above check is done in the "validate(vc, bean, clazz, method) method. - if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_CREATE)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2462, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - else if(method.getName().startsWith(IMethodAndFieldConstants.PREFIX_FIND)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2463, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - else if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_REMOVE)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2464, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AHomeVRule.java deleted file mode 100644 index 09dfc454d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AHomeVRule.java +++ /dev/null @@ -1,284 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.Iterator; -import java.util.List; -import java.util.Set; -import java.util.logging.Level; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - -/** - * @version 1.0 - * @author - */ -public abstract class AHomeVRule extends AInterfaceTypeVRule { - public Object getTarget(Object parent, Object clazz) { - if(parent == null) { - return null; - } - - if((isRemote() & REMOTE) == REMOTE) { - return ((EnterpriseBean)parent).getHomeInterface(); - } - return ((EnterpriseBean)parent).getLocalHomeInterface(); - } - - public void validateFindMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, InvalidInputException, ValidationException { - // By default, do nothing. - // Let the entity rules override this method, and the session don't do anything - // because validateMethodMustNotExist does what the sessions need. - } - - public boolean followsCreateExceptionRules(EnterpriseBean bean, Method method) throws InvalidInputException, ValidationCancelledException { - return ValidationRuleUtility.throwsCreateException(bean, method); - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(!ValidationRuleUtility.isLegalRMI_IIOPInheritance(clazz)) { - // IWAD4334 = {0} must follow RMI-IIOP rules for remote interfaces. Read section 12.2.9 of the EJB 2.0 specification. - // IWAD4217 = {0} must follow RMI-IIOP rules for remote interfaces. Read section 10.6.10 of the EJB 2.0 specification. - // IWAD4062 = {0} must follow RMI-IIOP rules for remote interfaces. Read section 7.10.6 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2461, IEJBValidationContext.INFO, bean, clazz, this); - vc.addMessage(message); - } - - validateAppendixB(vc, bean, clazz); - } - - public final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - super.validate(vc, bean, clazz, method, methodsExtendedLists); // check application exceptions - - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this); - String nameOfMethodToFind = method.getName(); - boolean validateReturnTypeMatches = false; - if((methodType & CREATE) == CREATE) { - validateCreateMethod(vc, bean, clazz, method); - - StringBuffer buffer = new StringBuffer(IMethodAndFieldConstants.PREFIX_EJBC); - // Strip the "c" off of "create" and replace with "ejbC" - buffer.append(method.getName().substring(1)); - nameOfMethodToFind = buffer.toString(); - } - else if((methodType & FIND) == FIND) { - validateFindMethod(vc, bean, clazz, method); - StringBuffer buffer = new StringBuffer(IMethodAndFieldConstants.PREFIX_EJBF); - // Strip the "f" off of "find" and replace with "ejbF" - buffer.append(method.getName().substring(1)); - nameOfMethodToFind = buffer.toString(); - - validateReturnTypeMatches = true; - } - else if((methodType & HOME) == HOME) { - // remove is a special method. See 9.5.3 for an example - - validateHomeMethod(vc, bean, clazz, method); - - // Section number stating this name convention? - String methodName = method.getName(); - StringBuffer buffer = new StringBuffer(IMethodAndFieldConstants.PREFIX_EJBHOME); - buffer.append(Character.toUpperCase(methodName.charAt(0))); - buffer.append(method.getName().substring(1)); - nameOfMethodToFind = buffer.toString(); - - validateReturnTypeMatches = true; - } - else { - // Method shouldn't be here. ATypeVRule will catch. - return; - } - - if(!followRemoteExceptionRules(bean, method)) { - IMethodType mType = MethodUtility.getUtility().getMethodType(bean, clazz, method, methodsExtendedLists, this); - if(mType == null) { - // should never happen... - Logger logger = vc.getMsgLogger(); - if(logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("AHomeVRule - validate method which must not exist"); //$NON-NLS-1$ - entry.setText("Method type is null: " + clazz.getQualifiedName() + "::" + method.getName() ); //$NON-NLS-1$ //$NON-NLS-2$ - logger.write(Level.FINEST, entry); - } - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, mType.getMessageId_messageRemoteException(), getMessageRemoteExceptionSeverity(), bean, clazz, method, this); - vc.addMessage(message); - } - } - - validateRMI_IIOPTypeRules(vc, bean, clazz, method, methodsExtendedLists, ((methodType & FIND) != FIND)); // do not check that the return type of a find method is serializable. If it's Collection or Set it won't be serializable, and if it doesn't return Collection, Set, or the component interface then the return type will be flagged. - - JavaHelpers local = getOverExposedLocalType(bean, clazz, method); - if(local != null) { - // IWAD4023 = {0} cannot be an argument or result type. Read section 6.7.2 of the EJB 2.0 specification. - // IWAD4225 = This method must not expose the {0} type. Read section 10.6.10 of the EJB 2.0 specification. - // IWAD4351 = This method must not expose the {0} type. Read section 12.2.9 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2466, IEJBValidationContext.INFO, bean, clazz, method, new String[]{local.getQualifiedName()}, this); - vc.addMessage(message); - } - - if(findMatchingMethod(methodType)) { - validateMatchingBeanMethod(vc, bean, clazz, method, nameOfMethodToFind, validateReturnTypeMatches, methodsExtendedLists); - } - } - - public boolean findMatchingMethod(long methodType) { - return true; - } - - public final void validateMatchingBeanMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, String nameOfMethodToFind, boolean validateReturnTypeMatches, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - Method match = ValidationRuleUtility.getMethod(method, nameOfMethodToFind, getBeanClassMethodsExtended(methodsExtendedLists)); - if(match == null) { - IMethodType mType = MethodUtility.getUtility().getMethodType(bean, clazz, method, methodsExtendedLists, this); - if(mType == null) { - // oops - Logger logger = vc.getMsgLogger(); - if(logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("AHomeVRule - validate method"); //$NON-NLS-1$ - entry.setText("Method type is null: " + bean.getName() + "::" + clazz.getJavaName() + "::" + method.getMethodElementSignature()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - logger.write(Level.FINEST, entry); - } - } - else { - JavaClass beanClass = bean.getEjbClass(); - String beanClassName = (beanClass == null) ? IEJBValidatorConstants.NULL_BEAN_CLASS : beanClass.getJavaName(); - IMessage message = MessageUtility.getUtility().getMessage(vc, mType.getMessageId_messageMissingMatching(), IEJBValidationContext.WARNING, bean, clazz, method, new String[]{nameOfMethodToFind, beanClassName}, this); - vc.addMessage(message); - } - } - else { - if(validateReturnTypeMatches) { - validateMatchingReturnTypeMatches(vc, bean, clazz, method, match, methodsExtendedLists); - } - - Set exceptions = ValidationRuleUtility.getNotSubsetExceptions(bean, match, method); - Iterator eiterator = exceptions.iterator(); - while(eiterator.hasNext()) { - JavaClass exception = (JavaClass)eiterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2465, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{exception.getJavaName(), match.getMethodElementSignature()}, this); - vc.addMessage(message); - } - } - } - - public void validateMatchingReturnTypeMatches(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method homeMethod, Method beanMethod, List[] methodsExtendedMethod) { - if(!ValidationRuleUtility.isAssignableFrom(homeMethod.getReturnType(), beanMethod.getReturnType())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2402, IEJBValidationContext.ERROR, bean, clazz, homeMethod, new String[]{beanMethod.getReturnType().getJavaName()}, this); - vc.addMessage(message); - } - } - - public void validateCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(!followsCreateExceptionRules(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2467, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - - if(!returnsComponentInterface(vc, bean, clazz, method)) { - JavaClass componentInterface = getComponentInterface(bean); - String className = null; - if(componentInterface != null) { - className = componentInterface.getJavaName(); - } - else { - if((isRemote() & IEJBType.REMOTE) == IEJBType.REMOTE) { - className = IEJBValidatorConstants.NULL_REMOTE; - } - else { - className = IEJBValidatorConstants.NULL_LOCAL; - } - } - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2402, IEJBValidationContext.ERROR, bean, clazz, method, new String[]{className}, this); - vc.addMessage(message); - } - } - - public void validateHomeMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, ValidationException { - // IWAD4350 = The return type must match the return type of {0}. Read section 12.2.9 of the EJB 2.0 specification. - // The above check is done in the "validate(vc, bean, clazz, method) method. - } - - protected boolean returnsComponentInterface(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException { - JavaClass componentInterface = getComponentInterface(bean); - return ValidationRuleUtility.isAssignableFrom(method.getReturnType(), componentInterface); - } - - protected boolean returnsComponentInterfaceOrCollection(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, InvalidInputException { - if(returnsComponentInterface(vc, bean, clazz, method)) { - return true; - } - - JavaHelpers returnParm = method.getReturnType(); - JavaHelpers javaUtilEnumeration = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_UTIL_ENUMERATION, bean); - if(ValidationRuleUtility.isAssignableFrom(returnParm, javaUtilEnumeration)) { - return true; - } - - JavaHelpers javaUtilCollection = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_UTIL_COLLECTION, bean); - if(ValidationRuleUtility.isAssignableFrom(returnParm, javaUtilCollection)) { - return true; - } - - return false; - } - - protected void validateAppendixB(IEJBValidationContext vc, EnterpriseBean bean, JavaClass thisHome) { - // The Java inheritance structure must match the EJB inheritance structure. - // e.g. if EJB B is a child of EJB A, then class B must be a child of class A. - // B could be a grandchild (or great-grandchild or ...) of A. - - if(bean == null) { - // bean has no supertype - return; - } - EnterpriseBean supertype = getSuperType(bean); - JavaClass parentHome = null; - if (supertype != null) { - // check this CMP's supertype - parentHome = getHomeInterface(supertype); - - if(parentHome == null) { - // child uses either local, or remote, but not both interfaces - return; - } - - // Home a Xchild of parent Home - // In our EJB component inheritance structure, while it is legal for - // a home to inherit from another home, (section B.2), it is not legal - // for WSA component inheritance structure. - try { - ValidationRuleUtility.isValidType(thisHome); - ValidationRuleUtility.isValidType(parentHome); - if (ValidationRuleUtility.isAssignableFrom(thisHome, parentHome)) { - String[] msgParm = new String[] { thisHome.getQualifiedName(), parentHome.getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2104, IEJBValidationContext.ERROR, bean, thisHome, msgParm, this); - vc.addMessage(message); - } - } - catch (InvalidInputException e) { - String[] msgParm = { e.getJavaClass().getQualifiedName(), bean.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2849, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - } - -// validateAppendixB(vc, supertype, parentHome); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AInterfaceTypeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AInterfaceTypeVRule.java deleted file mode 100644 index 3526bd066..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AInterfaceTypeVRule.java +++ /dev/null @@ -1,150 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.Iterator; -import java.util.List; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/* - * This class is a hack around the Java lack of support for multiple inheritance. - * All if statements which object-oriented programming would normally replace - * are contained in this class. - */ -public abstract class AInterfaceTypeVRule extends ATypeVRule implements IEJBInterfaceType { - public final static List getBeanClassMethodsExtended(List[] methodsExtendedList) { - return methodsExtendedList[0]; - } - - public final List[] getMethodsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - // A home or component class needs the following classes' extended methods: - // 1. bean class - JavaClass beanClass = bean.getEjbClass(); - if(beanClass == null) { - throw new InvalidInputException(); - } - List[] result = new List[1]; - result[0] = beanClass.getMethodsExtended(); - return result; - } - - public final List[] getFieldsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // Never check that a home or component's field is defined on another class - // of the bean. - return null; - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, List[] fieldsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - //Default - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - validateApplicationExceptionRules(vc, bean, clazz, method); - } - - public final boolean isEJBInterfaceMethod(EnterpriseBean bean, Method method) throws InvalidInputException { - long[] superTypes = getSupertypes(); - for(int i=0; i<superTypes.length; i++) { - if(ClassUtility.getUtility().isClassType(bean, method.getJavaClass(), superTypes[i])) { - return true; - } - } - return false; - } - - public final JavaHelpers getOverExposedLocalType(EnterpriseBean bean, JavaClass clazz, Method method) { - if((isRemote() & IEJBType.REMOTE) == IEJBType.REMOTE) { - // need to check that the method doesn't expose any of the local types of the bean - JavaParameter[] parms = method.listParametersWithoutReturn(); - if(parms != null) { - for(int i=0; i<parms.length; i++) { - JavaParameter parm = parms[i]; - if(ValidationRuleUtility.isLocalType(bean, parm.getJavaType())) { - return parm.getJavaType(); - } - } - } - - // Now check the return type - JavaHelpers parm = method.getReturnType(); - if(ValidationRuleUtility.isLocalType(bean, parm)) { - return parm; - } - - return null; - } - return null; - } - - public long getFieldType(EnterpriseBean bean, JavaClass clazz, Field field) { - if(field == null) { - return EXCLUDED_FIELD; - } - else if(field.getName().equals(IMethodAndFieldConstants.FIELDNAME_SERIALVERSIONUID)) { - return SERIALVERSIONUID; - } - else { - return OTHER_FIELD; - } - } - - public void validateApplicationExceptionRules(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException { - List exceptions = method.getJavaExceptions(); - if(exceptions.size() == 0) { - return; - } - - // IWAD4419 = {0} must be a subclass of java.lang.Exception. Read section 18.1.1, 18.2.1 of the EJB 2.0 specification. - Iterator iterator = exceptions.iterator(); - try { - JavaHelpers javaLangException = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_LANG_EXCEPTION, bean); - JavaHelpers javaLangRuntimeException = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_LANG_RUNTIMEEXCEPTION, bean); - - while(iterator.hasNext()) { - JavaClass exception = (JavaClass)iterator.next(); - - if(!ValidationRuleUtility.isApplicationException(exception, bean)) { - continue; - } - - if(!ValidationRuleUtility.isAssignableFrom(exception, javaLangException)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2404, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{exception.getName()}, this); - vc.addMessage(message); - - // no point checking the rest - continue; - } - - // IWAD4420 = {0} must not be a subclass of java.lang.RuntimeException. Read section 18.1.1, 18.2.1 of the EJB 2.0 specification. - if(ValidationRuleUtility.isAssignableFrom(exception, javaLangRuntimeException)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2416, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{exception.getName()}, this); - vc.addMessage(message); - } - } - return; - } - catch(InvalidInputException exc) { - // vc.addMessage("Cannot validate exceptions because the {0} type cannot be reflected. Check the classpath."); - // Don't add any message other than the "cannot validate" message. - return; - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AKeyClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AKeyClassVRule.java deleted file mode 100644 index 958407488..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AKeyClassVRule.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.List; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public abstract class AKeyClassVRule extends ATypeVRule { - protected final static long[] BASE_TYPES = new long[]{ITypeConstants.JAVA_LANG_OBJECT}; - - public long[] getBaseTypes() { - return BASE_TYPES; - } - - public final List[] getMethodsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // Never check that a key class' method is defined on another class - // of the bean. - return null; - } - - public final List[] getFieldsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // Never check that a key class' field is defined on another class - // of the bean. - return null; - } - - /* - * @see IClassVRule#validate(IEJBValidationContext, EnterpriseBean, JavaClass) - */ - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - // CHKJ2108 = {0} must be a legal Value Type in RMI-IIOP. Read section 9.8 of the EJB 2.0 specification. - // CHKJ2241 = {0} must be a legal Value Type in RMI-IIOP. Read section 10.6.13 of the EJB 2.0 specification. - // CHKJ2376 = {0} must be a legal Value Type in RMI-IIOP. Read section 12.2.12 of the EJB 2.0 specification. - if(!ValidationRuleUtility.isLegalRMI_IIOPType(bean, clazz)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2019, IEJBValidationContext.INFO, bean, clazz, this); - vc.addMessage(message); - } - } - - public long getFieldType(EnterpriseBean bean, JavaClass clazz, Field field) { - if(field == null) { - return EXCLUDED_FIELD; - } - else if(field.getName().equals(IMethodAndFieldConstants.FIELDNAME_SERIALVERSIONUID)) { - return SERIALVERSIONUID; - } - else { - return OTHER_FIELD; - } - } - - public long getDefaultMethodType() { - return NO_METHODS; - } - - public final boolean followRemoteExceptionRules(EnterpriseBean bean, Method method) throws InvalidInputException, ValidationCancelledException { - // Doesn't matter if the key class throws RemoteException or not - return true; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ASessionBeanClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ASessionBeanClassVRule.java deleted file mode 100644 index e1b947510..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ASessionBeanClassVRule.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - */ -public abstract class ASessionBeanClassVRule extends ABeanClassVRule { - public final void validateTransientField(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(field.isTransient()) { - // IWAD4025 = Transient fields are discouraged. Read section 7.4.1 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2453, IEJBValidationContext.INFO, bean, clazz, field, this); - vc.addMessage(message); - - JavaHelpers javaxEjbSessionContext = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONCONTEXT, bean); - JavaHelpers javaxTransactionUsertransaction = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_TRANSACTION_USERTRANSACTION, bean); - if(ValidationRuleUtility.isAssignableFrom(ValidationRuleUtility.getType(field), javaxEjbSessionContext) || - ValidationRuleUtility.isAssignableFrom(ValidationRuleUtility.getType(field), javaxTransactionUsertransaction) || - ValidationRuleUtility.isLocalType(bean, ValidationRuleUtility.getType(field)) || - ValidationRuleUtility.isJNDINamingContext(field)) - { - // IWAD4024 = A transient field should not be the {0} type. Read section 7.4.1 of the EJB 2.0 specification. - message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2452, IEJBValidationContext.WARNING, bean, clazz, field, this); - vc.addMessage(message); - } - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ASessionHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ASessionHomeVRule.java deleted file mode 100644 index 4959ef332..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ASessionHomeVRule.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -/** - */ -public abstract class ASessionHomeVRule extends AHomeVRule { - /** - * If the type of the method isn't listed in the KNOWN_METHODS, what type of method is it - * considered to be? - */ - public long getDefaultMethodType() { - // If it's not a create method, then it shouldn't be there. - return EXCLUDED_METHOD; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AStatelessHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AStatelessHomeVRule.java deleted file mode 100644 index 3bf8b84cc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AStatelessHomeVRule.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public abstract class AStatelessHomeVRule extends ASessionHomeVRule { - public void validateCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, InvalidInputException, ValidationException { - // The create method must be a create() method. - if((method.listParametersWithoutReturn().length != 0) || (!IMethodAndFieldConstants.METHODNAME_CREATE.equals(method.getName()))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2476, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - else { - super.validateCreateMethod(vc, bean, clazz, method); - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ATypeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ATypeVRule.java deleted file mode 100644 index 58ce95ac5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ATypeVRule.java +++ /dev/null @@ -1,643 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.List; -import java.util.logging.Level; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xmi.XMIResource; -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.Method; -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public abstract class ATypeVRule extends AValidationRule implements IClassVRule, IEJBType { - private static final int NO_FIELDS = 0; - - private long _methodList = NO_METHODS; - private long _fieldList = NO_FIELDS; - - public final void validate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationException { - vc.subtask(IEJBValidatorConstants.STATUS_VALIDATING, new String[]{((JavaClass) target).getJavaName()}); - - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EJB20Validator - validate"); //$NON-NLS-1$ - entry.setText(getClass().getName() + "::validate(" + targetParent + ", " + target); //$NON-NLS-1$ //$NON-NLS-2$ - logger.write(Level.FINEST, entry); - } - - try { - vc.terminateIfCancelled(); - - EnterpriseBean bean = (EnterpriseBean) targetParent; - JavaClass clazz = (JavaClass) target; - - try { - //clean up old reflection error on the clazz that is getting validated - vc.removeMessages(clazz); - // Check that all of the types in the bean reflected correctly, - // and that the types' parents reflected correctly too. - ValidationRuleUtility.isValidTypeHierarchy(bean, clazz); - } catch (InvalidInputException exc) { - reflectionError(vc, bean, clazz); - return; - } - - if (ValidationRuleUtility.isUnnamedPackage(clazz.getJavaPackage())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2041, IEJBValidationContext.INFO, bean, clazz, this); - vc.addMessage(message); - } - - try { - validate(vc, bean, clazz); - vc.terminateIfCancelled(); - - List[] methodsExtendedList = getMethodsExtended(vc, bean, clazz); - validate(vc, bean, clazz, clazz.listMethodExtended(), methodsExtendedList); - vc.terminateIfCancelled(); - - List[] fieldsExtendedList = getFieldsExtended(vc, bean, clazz); - validate(vc, bean, clazz, clazz.listFieldExtended(), fieldsExtendedList); - vc.terminateIfCancelled(); - - validateSupertypes(vc, bean, clazz); - vc.terminateIfCancelled(); - - validateMethodsWhichMustExist(vc, bean, clazz); - vc.terminateIfCancelled(); - } catch (InvalidInputException exc) { - reflectionError(vc, bean, clazz); - return; - } - } catch (ValidationCancelledException exc) { - // remove any existing messages since they may be faulty - } - } - - protected final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field[] fields, List[] fieldsExtendedLists) throws ValidationException { - try { - vc.terminateIfCancelled(); - - Field field = null; - for (int i = 0; i < fields.length; i++) { - vc.terminateIfCancelled(); - field = fields[i]; - if (field == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINE)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EJB20Validator - validate fields"); //$NON-NLS-1$ - entry.setText("A field is null on " + clazz.getQualifiedName()); //$NON-NLS-1$ - logger.write(Level.FINE, entry); - } - continue; - } - try { - Logger logger = vc.getMsgLogger(); - if (logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EJB20Validator - validate fields"); //$NON-NLS-1$ - entry.setText("Validating field " + field.getName() + "on clazz " + clazz + " and isValid returns " + isValid(bean, clazz, field)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - logger.write(Level.FINEST, entry); - } - - if (isValid(bean, clazz, field)) { - register(vc, bean, clazz, field, fieldsExtendedLists); - validate(vc, bean, clazz, field, fieldsExtendedLists); - } - } catch (InvalidInputException e) { - reflectionWarning(vc, bean, clazz, field, e); - } - } - vc.terminateIfCancelled(); - } catch (ValidationCancelledException exc) { - // remove any existing messages since they may be faulty - } - - } - - protected final boolean isValid(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws InvalidInputException { - if (isOwnedByBase(bean, method)) { - return false; - } - - return ((getMethodType(bean, clazz, method, methodsExtendedLists) & EXCLUDED_METHOD) != EXCLUDED_METHOD); - } - - protected final boolean isOwnedByBase(EnterpriseBean bean, Field field) throws InvalidInputException { - if (field == null) { - return false; - } - - long[] baseTypes = getBaseTypes(); - if (baseTypes == null) { - // no parents - return false; - } - - for (int i = 0; i < baseTypes.length; i++) { - if (ClassUtility.getUtility().isClassType(bean, field.getJavaClass(), baseTypes[i])) { - return true; - } - } - return false; - } - - protected final boolean isOwnedByBase(EnterpriseBean bean, Method method) throws InvalidInputException { - if (method == null) { - return false; - } - - long[] baseTypes = getBaseTypes(); - if (baseTypes == null) { - // no parents - return false; - } - - for (int i = 0; i < baseTypes.length; i++) { - if (ClassUtility.getUtility().isClassType(bean, method.getJavaClass(), baseTypes[i])) { - return true; - } - } - return false; - } - - protected final boolean isValid(EnterpriseBean bean, JavaClass clazz, Field field) throws InvalidInputException { - if (isOwnedByBase(bean, field)) { - return false; - } - - return ((getFieldType(bean, clazz, field) & EXCLUDED_FIELD) != EXCLUDED_FIELD); - } - - protected final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method[] methods, List[] methodsExtendedLists) throws ValidationException { - try { - vc.terminateIfCancelled(); - - Method method = null; - for (int i = 0; i < methods.length; i++) { - vc.terminateIfCancelled(); - method = methods[i]; - if (method == null) { - // No point adding a validation message, because the user can't do anything. - // Log this condition. - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINE)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EJB20Validator - validate methods"); //$NON-NLS-1$ - entry.setText("On " + clazz.getQualifiedName() + ", there is a null method."); //$NON-NLS-1$ //$NON-NLS-2$ - logger.write(Level.FINE, entry); - } - continue; - } - try { - Logger logger = vc.getMsgLogger(); - if (logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EJB20Validator - validate methods"); //$NON-NLS-1$ - entry.setText("Validating method " + method.getMethodElementSignature() + " on clazz " + clazz + " and isValid returns " + isValid(bean, clazz, method, methodsExtendedLists)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - logger.write(Level.FINEST, entry); - } - - if (isValid(bean, clazz, method, methodsExtendedLists)) { - register(vc, bean, clazz, method, methodsExtendedLists); - if (isMethodAllowedToExist(bean, clazz, method, methodsExtendedLists)) { - validate(vc, bean, clazz, method, methodsExtendedLists); - } else { - validateMethodWhichMustNotExist(vc, bean, clazz, method, methodsExtendedLists); - } - } else { - if (!isOwnedByBase(bean, method)) { - if ((MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this) & EXCLUDED_METHOD) == EXCLUDED_METHOD) { - // unidentified method excluded - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2502, IEJBValidationContext.INFO, bean, clazz, method, new String[]{method.getName()}, this); - vc.addMessage(message); - } - } - } - } catch (InvalidInputException e) { - reflectionWarning(vc, bean, clazz, method, e); - } - - } - vc.terminateIfCancelled(); - } catch (ValidationCancelledException exc) { - // remove any existing messages since they may be faulty - } - - } - - public final void register(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, List[] fieldsExtendedList) throws InvalidInputException, ValidationCancelledException, ValidationException { - _fieldList = (_fieldList | getFieldType(bean, clazz, field)); - } - - private boolean isDefaultConstructor(long methodType) { - return ((methodType & IMethodAndFieldConstants.CONSTRUCTOR_NOPARM) == IMethodAndFieldConstants.CONSTRUCTOR_NOPARM); - } - - private boolean doesPublicDefaultConstructorExist() { - if ((_methodList & IMethodAndFieldConstants.CONSTRUCTOR_NOPARM) == IMethodAndFieldConstants.CONSTRUCTOR_NOPARM) { - return true; - } - - return false; - } - - private boolean isDefaultConstructorInsertedByCompiler() { - // If the default constructor is not in the list, and if there are no constructors, - // the Java compiler will insert a default constructor. - if ((_methodList & IMethodAndFieldConstants.CONSTRUCTOR) == IMethodAndFieldConstants.CONSTRUCTOR) { - // There is a constructor, so return false. - return false; - } - - return true; - } - - protected final boolean isMethodAllowedToExist(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - long[] methods = getMethodsWhichMustNotExist(); - if (methods != null) { - for (int i = 0; i < methods.length; i++) { - long methodType = methods[i]; - long existingMethodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this); - if ((existingMethodType & methodType) == methodType) { - return false; - } - } - } - return true; - } - - /* - * @see IValidationRule#reset() - */ - public void validateMethodsWhichMustExist(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException, ValidationCancelledException, ValidationException { - long[] methods = getMethodsWhichMustExist(); - if (methods != null) { - for (int i = 0; i < methods.length; i++) { - long methodType = methods[i]; - boolean emitWarning = false; - if (isDefaultConstructor(methodType)) { - if (!doesPublicDefaultConstructorExist() && !isDefaultConstructorInsertedByCompiler()) { - emitWarning = true; - } - } else { - emitWarning = !exists(methodType); - } - - if (emitWarning) { - // IWAD4041 = This class must define a public constructor which takes no - // parameters. Read section 7.10.1 of the EJB 2.0 specification. - // IWAD4142 = {0} must exist. Read section 10.5.2 of the EJB 2.0 specification. - // IWAD4173 = {0} must exist. Read section 10.6.2 of the EJB 2.0 specification. - // IWAD4271 = {0} must exist. Read section 12.1.4.1 of the EJB 2.0 - // specification. - // IWAD4290 = {0} must exist. Read section 12.2.2 of the EJB 2.0 specification. - // IWAD4388 = {0} must exist. Read section 15.7.2 of the EJB 2.0 specification. - IMethodType mType = MethodUtility.getUtility().getMethodType(methodType); - if (mType == null) { - // ummmm....oops. This case should never happen. - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EJB20Validator - validate methods which must exist"); //$NON-NLS-1$ - entry.setText("Method type is null: " + methodType); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - continue; - } - - IMessage message = MessageUtility.getUtility().getMessage(vc, mType.getMessageId_messageMissing(), IEJBValidationContext.WARNING, bean, clazz, new String[]{mType.getMethodName(bean, clazz, null)}, this); - vc.addMessage(message); - } - } - } - } - - public final void validateMethodWhichMustNotExist(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws InvalidInputException, ValidationCancelledException, ValidationException { - IMethodType mType = MethodUtility.getUtility().getMethodType(bean, clazz, method, methodsExtendedLists, this); - if (mType == null) { - // what happened? - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EJB20Validator - validate method which must not exist"); //$NON-NLS-1$ - entry.setText("Method type is null: " + MethodUtility.getUtility().getMethodType(bean, clazz, method, methodsExtendedLists, this)); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - return; - } - - - IMessage message = MessageUtility.getUtility().getMessage(vc, mType.getMessageId_messageExists(), IEJBValidationContext.INFO, bean, clazz, method, new String[]{mType.getMethodName(bean, clazz, method)}, this); - vc.addMessage(message); - } - - public abstract long getFieldType(EnterpriseBean bean, JavaClass clazz, Field field); - - public abstract long[] getBaseTypes(); - - public abstract int getMessageRemoteExceptionSeverity(); // is a missing (or present) - // RemoteException a warning or an - // error? See ILocalType and - // IRemoteType. - - public final long getMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) { - if (method == null) { - return EXCLUDED_METHOD; - } - long id = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedList, this); - if ((id & CLINIT) == CLINIT) { - return EXCLUDED_METHOD; - } - return id; - } - - public final void register(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) throws InvalidInputException, ValidationCancelledException, ValidationException { - _methodList = (_methodList | MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedList, this)); - } - - public final void validateSupertypes(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException, ValidationCancelledException, ValidationException { - validateShouldBeSuperTypes(vc, bean, clazz); - validateShouldNotBeSuperTypes(vc, bean, clazz); - } - - /** - * @param vc - * @param bean - * @param clazz - * @throws InvalidInputException - */ - protected void validateShouldNotBeSuperTypes(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - long[] types; - // Test for types which can be supertypes, though it's either not recommended or should be - // coded with caution - types = getShouldNotBeSupertypes(); - if (types != null) { - for (int i = 0; i < types.length; i++) { - JavaHelpers superType = ClassUtility.getUtility().getSupertype(bean, types[i]); - if (superType == null) { - // no supertype - continue; - } - - if (ValidationRuleUtility.isAssignableFrom(clazz, superType)) { - // IWAD4179 = Because this class implements {0}, "this" must not be passed as a - // method argument or result. Read section 10.6.2 of the EJB 2.0 specification. - // IWAD4292 = Because {0} implements {1}, "this" must not be passed as a method - // argument or result. Read section 12.2.2 of the EJB 2.0 specification. - // IWAD4043 = Because {0} implements {1}, "this" must not be passed as a method - // argument or result. Read section 7.10.2 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2040, IEJBValidationContext.INFO, bean, clazz, this); - vc.addMessage(message); - } - } - } - } - - /** - * @param vc - * @param bean - * @param clazz - * @throws InvalidInputException - */ - protected void validateShouldBeSuperTypes(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - long[] types = getSupertypes(); - if (types != null) { - for (int i = 0; i < types.length; i++) { - JavaHelpers superType = ClassUtility.getUtility().getSupertype(bean, types[i]); - if (superType == null) { - // no supertype - continue; - } - - if (!ValidationRuleUtility.isAssignableFrom(clazz, superType)) { - // IWAD4026 = This class must implement javax.ejb.SessionBean. Read section - // 7.5.1, 7.10.2 of the EJB 2.0 specification. - // IWAD4379 = This class must implement javax.ejb.MessageDrivenBean. Read - // section 15.4.1, 15.7.2 of the EJB 2.0 specification. - // IWAD4380 = This class must implement javax.jms.MessageListener. Read section - // 15.4.1, 15.7.2 of the EJB 2.0 specification. - // IWAD4170 = This class must implement java.ejb.EntityBean. Read section 10.6.2 - // of the EJB 2.0 specification. - // IWAD4286 = This class must implement java.ejb.EntityBean. Read section 12.2.2 - // of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2017, IEJBValidationContext.ERROR, bean, clazz, new String[]{superType.getJavaName()}, this); - vc.addMessage(message); - } - } - } - } - - public void reset() { - super.reset(); - _methodList = NO_METHODS; - _fieldList = NO_FIELDS; - } - - protected final void reflectionError(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2907, IEJBValidationContext.ERROR, bean, clazz, new String[]{clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - - protected final void reflectionWarning(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, InvalidInputException exc) { - vc.removeMessages(field); - vc.removeMessages(clazz, field.getName()); - IMessage message = getReflectionWarning(vc, exc, bean, clazz, field); - vc.addMessage(message); - } - - protected final void reflectionWarning(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, InvalidInputException exc) { - vc.removeMessages(method); - vc.removeMessages(clazz, method.getSignature()); - IMessage message = getReflectionWarning(vc, exc, bean, clazz, method); - vc.addMessage(message); - } - - protected final IMessage getReflectionWarning(IEJBValidationContext vc, InvalidInputException exc, EnterpriseBean bean, JavaClass clazz, EObject fieldOrMethod) { - if (exc == null) { - return null; - } - - JavaClass badClazz = exc.getJavaClass(); - String typeName = (badClazz == null) ? "?" : badClazz.getQualifiedName(); //$NON-NLS-1$ - IMessage message = null; - - if (fieldOrMethod instanceof Field) { - String name = ((Field) fieldOrMethod).getName(); - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2433, IEJBValidationContext.WARNING, bean, clazz, (Field) fieldOrMethod, new String[]{name, typeName}, this); - } else if (fieldOrMethod instanceof Method) { - String name = ((Method) fieldOrMethod).getMethodElementSignature(); - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2433, IEJBValidationContext.WARNING, bean, clazz, (Method) fieldOrMethod, new String[]{name, typeName}, this); - } else { - String name = ((XMIResource) fieldOrMethod.eResource()).getID(fieldOrMethod); - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2433, IEJBValidationContext.WARNING, bean, clazz, new String[]{name, typeName}, this); - } - if (badClazz == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("getMessageId(IEJBValidationContext, InvalidInputException, boolean)"); //$NON-NLS-1$ - entry.setText("InvalidInputException thrown on unknown class"); //$NON-NLS-1$ - entry.setTargetException(exc); - logger.write(Level.FINEST, entry); - } - } - - return message; - } - - - public final JavaClass getComponentInterface(EnterpriseBean bean) { - if ((isRemote() & IEJBType.REMOTE) == IEJBType.REMOTE) { - return bean.getRemoteInterface(); - } - return bean.getLocalInterface(); - } - - public final boolean exists(long methodType) { - return ((_methodList & methodType) == methodType); - } - - public final JavaClass getHomeInterface(EnterpriseBean bean) { - if ((isRemote() & IEJBType.REMOTE) == IEJBType.REMOTE) { - return bean.getHomeInterface(); - } - return bean.getLocalHomeInterface(); - } - - public boolean followRemoteExceptionRules(EnterpriseBean bean, Method method) throws InvalidInputException, ValidationCancelledException { - if ((isRemote() & IEJBType.REMOTE) == IEJBType.REMOTE) { - // must throw RemoteException or one of its parents (IOException or Exception) - return ValidationRuleUtility.throwsRemoteExceptionOrParent(bean, method); - } else if ((isRemote() & IEJBType.LOCAL) == IEJBType.LOCAL) { - // must not throw RemoteException - return ValidationRuleUtility.doesNotThrowRemoteException(bean, method); - } - - return true; - } - - public final void validateRMI_IIOPTypeRules(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList, boolean checkReturnType) throws InvalidInputException { - if ((isRemote() & IEJBType.REMOTE) == IEJBType.REMOTE) { - JavaParameter[] parms = method.listParametersWithoutReturn(); - - for (int i = 0; i < parms.length; i++) { - JavaParameter parm = parms[i]; - if (!ValidationRuleUtility.isLegalRMI_IIOPType(bean, parm.getJavaType())) { - IMethodType mt = MethodUtility.getUtility().getMethodType(bean, clazz, method, methodsExtendedList, this); - if (mt == null) { - // log - } else { - IMessage message = MessageUtility.getUtility().getMessage(vc, mt.getMessageId_messageRMI_IIOPParm(), IEJBValidationContext.INFO, bean, clazz, method, new String[]{parm.getJavaType().getJavaName()}, this); // Can't - // use - // the - // name - // of - // the - // field, - // because - // when - // it's - // the - // return - // type - // of - // the - // method, - // it's - // confusing - // to - // see - // "result" - // as - // the - // name - // of - // the - // field. - vc.addMessage(message); - } - } - } - - if (checkReturnType) { - if (!ValidationRuleUtility.isLegalRMI_IIOPType(bean, method.getReturnType())) { - IMethodType mt = MethodUtility.getUtility().getMethodType(bean, clazz, method, methodsExtendedList, this); - if (mt == null) { - // log - } else { - IMessage message = MessageUtility.getUtility().getMessage(vc, mt.getMessageId_messageRMI_IIOPParm(), IEJBValidationContext.INFO, bean, clazz, method, new String[]{method.getReturnType().getJavaName()}, this); // Can't - // use - // the - // name - // of - // the - // field, - // because - // when - // it's - // the - // return - // type - // of - // the - // method, - // it's - // confusing - // to - // see - // "result" - // as - // the - // name - // of - // the - // field. - vc.addMessage(message); - } - } - } - } else { - // don't need to check - return; - } - } - - public final boolean followRMI_IIOPInheritanceRules(EnterpriseBean bean, JavaClass clazz) { - if ((isRemote() & IEJBType.REMOTE) == IEJBType.REMOTE) { - return ValidationRuleUtility.isLegalRMI_IIOPInheritance(clazz); - } - return true; - } - - public void validateSerialVersionUID(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) { - /* - * For now, do nothing. In future, check if the field is public & static? - */ - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateBean.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateBean.java deleted file mode 100644 index 7a3a3adac..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateBean.java +++ /dev/null @@ -1,673 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Set; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * Performs validation common to session and entity beans. - */ -public abstract class AValidateBean extends AValidateEJB { - protected HashSet componentParents = null; // The JavaClass instances which are parents of this JavaClass instance, if this JavaClass instance is part of a component inheritance hierarchy. - - public AValidateBean() { - componentParents = new HashSet(); - } - - public void reset() { - super.reset(); - componentParents.clear(); - } - - protected void buildComponentParents(EnterpriseBean bean) { - if (bean == null) { - return; - } - EnterpriseBean supertype = getSuperType(bean); - if (supertype == null) { - return; - } - - // check this CMP's supertype - JavaClass thisEjbObject = bean.getEjbClass(); - JavaClass parentEjbObject = supertype.getEjbClass(); - - // EJBObject a Xchild of parent EJBObject (X = child, grandchild, great-grandchild, etc.) - if (ValidationRuleUtility.isAssignableFrom(thisEjbObject, parentEjbObject)) { - componentParents.add(parentEjbObject); - } - buildComponentParents(supertype); - } - - public final Object getTarget(Object parent, Object clazz) { - if(parent == null) { - return null; - } - - return ((EnterpriseBean)parent).getEjbClass(); - } - - public final static List getRemoteHomeMethodsExtended(List[] methodsExtendedList) { - return methodsExtendedList[0]; - } - - public final static List getRemoteComponentMethodsExtended(List[] methodsExtendedList) { - return methodsExtendedList[1]; - } - - public final static List getBeanClassMethodsExtended(List[] methodsExtendedList) { - return methodsExtendedList[2]; - } - - public final List[] getMethodsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // A bean class needs the following classes' extended methods: - // 1. home - // 2. remote - // 3. bean class (when searching for a matching ejbPostCreate method). - // If a particular bean doesn't use a remote view or local view, - // then the corresponding entry in the array will be null. - List[] result = new List[3]; - JavaClass remoteHome = bean.getHomeInterface(); - if(remoteHome != null) { - result[0] = remoteHome.getMethodsExtended(); - } - else { - result[0] = null; - } - - JavaClass remoteComponent = bean.getRemoteInterface(); - if(remoteComponent != null) { - result[1] = remoteComponent.getMethodsExtended(); - } - else { - result[1] = null; - } - - JavaClass beanClass = bean.getEjbClass(); - if(beanClass != null) { - result[2] = beanClass.getMethodsExtended(); - } - else { - result[2] = null; - } - - return result; - } - - public final List[] getFieldsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // Never check that a bean class' field is defined on another class - // of the bean. - return null; - } - - - - /** - * For the check that the ejbCreate method has a matching create method on the home, - * this method, given the bean method, returns the corresponding home method. - * - * 6.10.6 Session bean's home interface - * The following are the requirements for the session bean's home interface: - * - Each create method must be named "create", and it must match one of - * the ejbCreate methods defined in the session bean class. The matching - * ejbCreate method must have the same number and types of arguments. - * (Note that the return type is different.) - * - All the exceptions defined in the throws clause of an ejbCreate method - * of the session bean class must be defined in the throws clause of the - * matching create method of the home interface. - *... - * - * 9.2.8 Entity bean's home interface - * The following are the requirements for the entity bean's home interface: - * - Each create method must be named "create", and it must match one of the - * ejbCreate methods defined in the enterprise Bean class. The matching - * ejbCreate method must have the same number and types of its arguments. - * (Note that the return type is different.) - * - All the exceptions defined in the throws clause of the matching ejbCreate - * and ejbPostCreate methods of the enterprise Bean class must be included in - * the throws clause of the matching create method of the home interface - * (i.e the set of exceptions defined for the create method must be a superset - * of the union of exceptions defined for the ejbCreate and ejbPostCreate methods) - */ - public final Method getMatchingHomeCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws InvalidInputException { - vc.terminateIfCancelled(); - - if (method == null) { - return null; - } - - if (bean == null) { - return null; - } - - JavaClass homeIntf = bean.getHomeInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, homeIntf); - - // check only the current class, not the parents in this case. - // This method is used in the component inheritance hierarchy tests. - return ValidationRuleUtility.getMethod(method, IMethodAndFieldConstants.METHODNAME_CREATE, homeIntf.getMethods()); - } - - /** - * For the check that the ejbCreate method has a matching create method on the home, - * this method, given the bean method, returns the corresponding home method. - * - * 6.10.6 Session bean's home interface - * The following are the requirements for the session bean's home interface: - * - Each create method must be named "create", and it must match one of - * the ejbCreate methods defined in the session bean class. The matching - * ejbCreate method must have the same number and types of arguments. - * (Note that the return type is different.) - * - All the exceptions defined in the throws clause of an ejbCreate method - * of the session bean class must be defined in the throws clause of the - * matching create method of the home interface. - *... - * - * 9.2.8 Entity bean's home interface - * The following are the requirements for the entity bean's home interface: - * - Each create method must be named "create", and it must match one of the - * ejbCreate methods defined in the enterprise Bean class. The matching - * ejbCreate method must have the same number and types of its arguments. - * (Note that the return type is different.) - * - All the exceptions defined in the throws clause of the matching ejbCreate - * and ejbPostCreate methods of the enterprise Bean class must be included in - * the throws clause of the matching create method of the home interface - * (i.e the set of exceptions defined for the create method must be a superset - * of the union of exceptions defined for the ejbCreate and ejbPostCreate methods) - */ - public Method getMatchingHomeCreateMethodExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc. terminateIfCancelled(); - if (method == null) { - return null; - } - - if (bean == null) { - return null; - } - - JavaClass homeIntf = bean.getHomeInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, homeIntf); - - return ValidationRuleUtility.getMethodExtended(homeIntf, method, IMethodAndFieldConstants.METHODNAME_CREATE); - } - - /** - * Return the name of the parent which the bean must implement. - * For entity beans, it's javax.ejb.EntityBean. - * For session beans, it's javax.ejb.SessionBean. - */ - protected abstract String getParentName(); - - /** - * Returns true if the method passed in is a business method. - * - * Although the EJB 1.1 spec implies that all non-framework methods are business methods, - * developers may create methods on the bean which are meant for internal use only. This - * method (isBusinessMethod) separates the "internal helper" methods from the business - * methods by checking if a corresponding method exists on the remote interface. If it - * does, consider this a business method. - */ - public boolean isBusinessMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - if (method == null) { - return false; - } - String name = method.getName(); - - if (isFrameworkMethod(name)) { - return false; - } - - if (method.isConstructor()) { - return false; - } - - // Check if there's a matching method on the remote interface. - if (bean == null) { - return false; - } - - JavaClass remoteInterface = bean.getRemoteInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, remoteInterface); - Method remoteInterfaceMethod = ValidationRuleUtility.getMethodExtended(remoteInterface, name, method.listParametersWithoutReturn()); - if ((remoteInterfaceMethod == null) || (ValidationRuleUtility.isEJBObjectMethod(bean, remoteInterfaceMethod))) { - // no matching method - // filter out methods from javax.ejb.EJBObject - return false; - } - - return true; - } - - /** - * Return true if the method passed in is inherited from a parent in a - * component inheritance hierarchy. - */ - protected boolean isComponentInherited(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method meth) throws InvalidInputException { - if (componentParents == null) { - // Not part of a component inheritance hierarchy - return false; - } - - return (componentParents.contains(meth.getContainingJavaClass())); - } - - public boolean isFrameworkMethod(String name) { - if (name == null) { - return false; - } - else if (name.equals(IMethodAndFieldConstants.METHODNAME_EJBACTIVATE)) { - return true; - } - else if (name.equals(IMethodAndFieldConstants.METHODNAME_EJBPASSIVATE)) { - return true; - } - else if (name.equals(IMethodAndFieldConstants.METHODNAME_EJBREMOVE)) { - return true; - } - else if (name.startsWith(IMethodAndFieldConstants.PREFIX_EJBFIND)) { - return true; - } - else if (name.equals(IMethodAndFieldConstants.METHODNAME_EJBCREATE)) { - return true; - } - else if (name.equals(IMethodAndFieldConstants.METHODNAME_EJBPOSTCREATE)) { - return true; - } - else if (name.equals(IMethodAndFieldConstants.METHODNAME_FINALIZE)) { - return true; - } - return false; - - } - - /** - * Return true if the field can, and should, be validated. - * Filter out faulty fields (i.e., null), and fields which - * belong to the base type, whatever that is. (e.g. java.lang.Object) - */ - protected boolean isValid(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, List[] fieldsExtendedList) throws InvalidInputException { - if (super.isValid(vc, bean, clazz, field, fieldsExtendedList)) { - // exclude root object methods - if (ValidationRuleUtility.isJavaLangObjectField(bean, field)) { - return false; - } - return true; - } - return false; - } - - /** - * Return true if the method can, and should, be validated. - * Filter out faulty methods (i.e., null), and methods which - * belong to the base type, whatever that is. (e.g. java.lang.Object) - */ - protected final boolean isValid(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) throws InvalidInputException { - if (super.isValid(vc, bean, clazz, method, methodsExtendedList)) { - // exclude root object methods - if (ValidationRuleUtility.isJavaLangObjectMethod(bean, method)) { - return false; - } - else if (method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBCREATE)) { - return isValidEjbCreateMethod(vc, bean, clazz, method, methodsExtendedList); - } - else if (method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBPOSTCREATE)) { - return isValidEjbCreateMethod(vc, bean, clazz, method, methodsExtendedList); - } - else { - return true; - } - } - return false; - } - - /** - * Return true if the ejbCreate method passed in is not inherited - * from a parent in a component inheritance hierarchy, or is inherited, - * but is also defined on this bean's home interface. - * - * This method is used to exclude ejbCreate methods which are inherited - * from a parent in a component inheritance hierarchy, and are not - * exposed anywhere on this bean class instance itself. (i.e., inherited, - * but never used.) Since we generate the code for these methods, we - * should not flag them as warnings. - */ - protected final boolean isValidEjbCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method meth, List[] methodsExtendedLists) throws InvalidInputException { - boolean isValid = true; - boolean isComp = isComponentInherited(vc, bean, clazz, meth); - if (isComp) { - Method homeMeth = getMatchingHomeCreateMethod(vc, bean, clazz, meth, methodsExtendedLists); - if (homeMeth == null) { - isValid = false; - } - } - - return isValid; - } - - /** - * 18.1.2 Programming restrictions - *... - * - An enterprise Bean must not use read/write static fields. Using read-only static fields is - * allowed. Therefore, it is recommended that all static fields in the enterprise bean class be - * declared as final. - *... - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws InvalidInputException { - //super.primValidate(ejbMethod); - - vc.terminateIfCancelled(); - - validateStaticField(vc, bean, clazz, field); - } - - /** - * 6.10.4 Business methods - * The session bean class may define zero or more business methods whose signatures must follow these rules: - * - The method names can be arbitrary, but they must not start with "ejb" to avoid conflicts with the callback methods used by the EJB architecture. - * - * 9.2.6 Business methods - * - The entity bean class may define zero or more business methods whose signatures - * must follow these rules: - * - The method names can be arbitrary, but they must not start with 'ejb' to - * avoid conflicts with the callback methods used by the EJB architecture. - */ - public void validateBusinessMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // The method names can be arbitrary, but they must not start with "ejb" to avoid conflicts with the callback methods used by the EJB architecture. - if (method.getName().startsWith(IMethodAndFieldConstants.PREFIX_EJB)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2411, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // Section 6.10.5 (session), 9.2.7 (entity), declare that all exceptions declared - // on the ejbCreate, ejbPostCreate methods must be defined in the throws clause of - // the matching create of the remote interface. - - JavaClass remote = bean.getRemoteInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, remote); - - Method remoteMethod = ValidationRuleUtility.getMethodExtended(remote, method, method.getName()); - if (remoteMethod == null) { - // Then this method shouldn't have been called; unless the method exists on the remote, this bean method isn't a business method. - return; - } - - Set exceptions = ValidationRuleUtility.getNotSubsetExceptions(bean, method, remoteMethod); - if (exceptions.size() > 0) { - Iterator iterator = exceptions.iterator(); - while (iterator.hasNext()) { - JavaClass exc = (JavaClass) iterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2432, IEJBValidationContext.ERROR, bean, clazz, method, new String[] { remote.getQualifiedName(), exc.getQualifiedName()}, this); - vc.addMessage(message); - } - } - - validateMatchingMethodExceptions(vc, bean, clazz, method, bean.getRemoteInterface(), remoteMethod); - } - - /** - * 6.10.2 Session bean class - * The following are the requirements for session bean class: - * - The class must implement, directly or indirectly, the javax.ejb.SessionBean - * interface. - * - The class must be defined as public, must not be final, and must not - * be abstract. - * - The class may, but is not required to, implement the session bean's - * remote interface [4] . - * - If the class is a stateful session bean, it may optionally implement - * the javax.ejb.SessionSynchronization interface. - * - The session bean class may have superclasses and/or superinterfaces. If the - * session bean has superclasses, then the business methods, the ejbCreate methods, - * the methods of the SessionBean interface, and the methods of the optional - * SessionSynchronization interface may be defined in the session bean class, - * or in any of its superclasses. - * - *... - * 9.2.2 Enterprise bean class - * - The following are the requirements for an entity bean class: - * - The class must implement, directly or indirectly, the javax.ejb.EntityBean interface. - * - The class must be defined as public and must not be abstract. - * - The class must not be defined as final. - *... - * - The class may, but is not required to, implement the entity bean's remote interface [9]. - * If the class implements the entity bean's remote interface, the class must provide no-op - * implementations of the methods defined in the javax.ejb.EJBObject interface. The container - * will never invoke these methods on the bean instances at runtime. - * - A no-op implementation of these methods is required to avoid - * defining the entity bean class as abstract. - * - The entity bean class must implement the business methods, and the - * ejbCreate, ejbPostCreate, and ejbFind<METHOD> methods as described - * later in this section. - * - The entity bean class may have superclasses and/or superinterfaces. - * If the entity bean has superclasses, the business methods, the - * ejbCreate and ejbPostCreate methods, the finder methods, and the - * methods of the EntityBean interface may be implemented in the - * enterprise bean class or in any of its superclasses. - * - The entity bean class is allowed to implement other methods (for - * example helper methods invoked internally by the business methods) - * in addition to the methods required by the EJB specification. - *... - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - vc.terminateIfCancelled(); - - buildComponentParents(bean); - - // The class must implement, directly or indirectly, the javax.ejb.EntityBean (for entity beans), - // or the javax.ejb.SessionBean (for session beans), interface. - if (!ValidationRuleUtility.isAssignableFrom(clazz, ValidationRuleUtility.getType(getParentName(), bean))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2013, IEJBValidationContext.ERROR, bean, clazz, new String[] {clazz.getQualifiedName(), getParentName()}, this); - vc.addMessage(message); - } - - // For both entity and session beans, the class must be public. - if (!clazz.isPublic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2022, IEJBValidationContext.ERROR, bean, clazz, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - - // For both entity and session beans, the class must not be abstract. - if (clazz.isAbstract()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2014, IEJBValidationContext.ERROR, bean, clazz, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - - // For both entity and session beans, the class must not be final. - if (clazz.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2015, IEJBValidationContext.ERROR, bean, clazz, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - - if (ValidationRuleUtility.isUnnamedPackage(clazz.getJavaPackage())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2041, IEJBValidationContext.INFO, bean, clazz, this); - vc.addMessage(message); - } - - validateAppendixB(vc, bean, clazz); - } - - /** - * 9.2.3 ejbCreate methods - * - The entity bean class may define zero or more ejbCreate(...) methods whose signatures - * must follow these rules: - * - The method name must be ejbCreate. - * - The method must be declared as public. - * - The method must not be declared as final or static. - * - The return type must be the entity bean's primary key type. - * - The method argument and return value types must be legal types for RMI-IIOP. - * - The throws clause may define arbitrary application specific exceptions, - * including the javax.ejb.CreateException. - * - Compatibility Note: EJB 1.0 allowed the ejbCreate method to throw the - * java.rmi.RemoteException to indicate a non-application exception. This - * practice is deprecated in EJB 1.1 -- an EJB 1.1 compliant enterprise bean - * should throw the javax.ejb.EJBException or another java.lang.RuntimeException - * to indicate non-application exceptions to the Container (see Section 12.2.2). - * - The entity object created by the ejbCreate method must have a unique primary key. - * This means that the primary key must be different from the primary keys of all - * the existing entity objects within the same home. The ejbCreate method should - * throw the DuplicateKeyException on an attempt to create an entity object with - * a duplicate primary key. However, it is legal to reuse the primary key of a - * previously removed entity object. - * - * 9.2.8 Entity bean's home interface - * The following are the requirements for the entity bean's home interface: - * - Each create method must be named "create", and it must match one of the - * ejbCreate methods defined in the enterprise Bean class. The matching - * ejbCreate method must have the same number and types of its arguments. - * (Note that the return type is different.) - * - All the exceptions defined in the throws clause of the matching ejbCreate - * and ejbPostCreate methods of the enterprise Bean class must be included in - * the throws clause of the matching create method of the home interface - * (i.e the set of exceptions defined for the create method must be a superset - * of the union of exceptions defined for the ejbCreate and ejbPostCreate methods) - *... - * - * 9.4.2 ejbCreate, ejbPostCreate - *... - * - The ejbCreate(...) methods must be defined to return the primary key class type. - * The implementation of the ejbCreate(...) methods should be coded to return a null. - * The returned value is ignored by the Container. - *... - */ - public void validateEjbCreateMethod_homeDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - // The method which calls this method must have already tested that the method name is ejbCreate. - if (method == null) { - return; - } - - Method createMethod = getMatchingHomeCreateMethodExtended(vc, bean, clazz, method); - if (createMethod == null) { - // Can't check the exceptions of a method which doesn't exist. - return; - } - - // Whether this is from a component inheritance or not, if the method exists on the - // home, check that the method follows the spec. - - // Section 6.10.6 (session), 9.2.8 (entity), declare that all exceptions declared - // on the ejbCreate, ejbPostCreate methods must be defined in the throws clause of - // the matching create of the home interface. - Set exceptions = ValidationRuleUtility.getNotSubsetExceptions(bean, method, createMethod); - if (exceptions.size() > 0) { - Iterator iterator = exceptions.iterator(); - while (iterator.hasNext()) { - JavaClass exc = (JavaClass) iterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2420, IEJBValidationContext.ERROR, bean, clazz, method, new String[] { exc.getQualifiedName(), bean.getHomeInterface().getQualifiedName()}, this); - vc.addMessage(message); - } - } - - } - - public void validateHelperMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) { - //Default - } - - public void validateNoRemoteException(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, String messagePrefix) throws InvalidInputException { - // EJB 2.0 added "throws InvalidInputException" above - if (method == null) { - return; - } - - if(!ValidationRuleUtility.doesNotThrowRemoteException(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, messagePrefix, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - } - - /** - * 18.1.2 Programming restrictions - *... - * - An enterprise Bean must not use read/write static fields. Using read-only static fields is - * allowed. Therefore, it is recommended that all static fields in the enterprise bean class be - * declared as final. - *... - */ - protected void validateStaticField(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws InvalidInputException { - if (field == null) { - return; - } - - // An enterprise Bean must not use read/write static fields. Using read-only static fields is - // allowed. Therefore, it is recommended that all static fields in the enterprise bean class be - // declared as final. - if (field.isStatic() && !field.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2200, IEJBValidationContext.WARNING, bean, clazz, field, this); - vc.addMessage(message); - } - } - - public void validateMatchingMethodExceptions(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, JavaClass matchingClazz, Method matchingMethod) { - // Every exception thrown on the bean class' method must be thrown on the component/home method - /* Don't check for this here - let the home & component do it. - Set exceptions = ValidationRuleUtility.getNotSubsetExceptions(bean, method, matchingMethod); - Iterator eiterator = exceptions.iterator(); - while(eiterator.hasNext()) { - } - */ - - // Every exception thrown by the component/home method should be thrown or there may be compile errors - Set exceptions = ValidationRuleUtility.getNotSubsetSubtypeExceptions(bean, matchingMethod, method); - Iterator eiterator = exceptions.iterator(); - while(eiterator.hasNext()) { - JavaClass exception = (JavaClass)eiterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2456, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{exception.getJavaName(), matchingClazz.getJavaName()}, this); - vc.addMessage(message); - } - } - - protected void validateAppendixB(IEJBValidationContext vc, EnterpriseBean bean, JavaClass thisEjbObject) { - // The Java inheritance structure must match the EJB inheritance structure. - // e.g. if EJB B is a child of EJB A, then class B must be a child of class A. - // B could be a grandchild (or great-grandchild or ...) of A. - if(bean == null) { - return; - } - EnterpriseBean supertype = getSuperType(bean); - JavaClass parentEjbObject = null; - if (supertype != null) { - parentEjbObject = supertype.getEjbClass(); - - // EJBObject a Xchild of parent EJBObject (X = child, grandchild, great-grandchild, etc.) - try { - ValidationRuleUtility.isValidType(thisEjbObject); - ValidationRuleUtility.isValidType(parentEjbObject); - if (!ValidationRuleUtility.isAssignableFrom(thisEjbObject, parentEjbObject)) { - String[] msgParm = new String[] { thisEjbObject.getQualifiedName(), parentEjbObject.getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2103, IEJBValidationContext.ERROR, bean, thisEjbObject, msgParm, this); - vc.addMessage(message); - } - } - catch (InvalidInputException e) { - String[] msgParm = { e.getJavaClass().getQualifiedName(), bean.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2849, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - } - -// validateAppendixB(vc, supertype, parentEjbObject); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateEJB.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateEJB.java deleted file mode 100644 index b0eec60e1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateEJB.java +++ /dev/null @@ -1,371 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.logging.Level; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.Method; -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - -/** - * Insert the type's description here. - * Creation date: (1/5/01 11:51:09 AM) - * @author: Administrator - */ -public abstract class AValidateEJB extends AValidationRule { - private List roleMethodNames; - - public void reset() { - super.reset(); - if(roleMethodNames != null) { - roleMethodNames.clear(); - roleMethodNames = null; // in this case, clearing the list isn't enough, because it is legal to have zero role names. Must be null or we'll keep trying to reload the role names just because there are zero role names. - } - } - - /** - * Insert the method's description here. - * Creation date: (9/5/2001 12:36:39 PM) - * @return java.util.List - */ - protected List getRoleMethodNames(IEJBValidationContext vc, EnterpriseBean bean) { - try { - if (roleMethodNames == null && bean != null) { - roleMethodNames = getRoleMethodNamesExtended(bean); - } - return roleMethodNames; - } - catch (Throwable exc) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINER)) { - logger.write(Level.FINER, exc); - } - return Collections.EMPTY_LIST; - } - } - - protected boolean isEjbRelationshipRoleMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) { - if (method == null) - return false; - List aRoleMethodNames = getRoleMethodNames(vc, bean); - if(aRoleMethodNames != null && !aRoleMethodNames.isEmpty()) - return aRoleMethodNames.contains(method.getName()); - return false; - } - - /** - * Return true if the field can, and should, be validated. - * Filter out faulty fields (i.e., null), and fields which - * belong to the base type, whatever that is. (e.g. java.lang.Object) - */ - protected boolean isValid(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, List[] fieldsExtendedLists) throws InvalidInputException { - // The following call checks if the type reflected properly - ValidationRuleUtility.isValidType(ValidationRuleUtility.getType(field)); - - if (field.getName().equals(IMethodAndFieldConstants.FIELDNAME_SERIALVERSIONUID)) { - return false; - } - - return true; - } - - /** - * Return true if the method can, and should, be validated. - * Filter out faulty methods (i.e., null), and methods which - * belong to the base type, whatever that is. (e.g. java.lang.Object) - */ - protected boolean isValid(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) throws InvalidInputException { - if (method == null) { - throw new InvalidInputException(); - } - return true; - } - - /** - * This method actually does the validation. Since many of the classes do - * not validate fields now, implement this method as a no-op so that the - * classes compile. - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws InvalidInputException { - //Default - } - - /** - * This method actually does the validation. - */ - public abstract void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException; - - /** - * This method does the actual checking (if ejbMethod exists). - */ - protected abstract void primValidateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException; - - protected abstract List[] getMethodsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz); - protected abstract List[] getFieldsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz); - - protected final void reflectionError(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - vc.removeMessages(clazz); - - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2907, IEJBValidationContext.ERROR, bean, clazz, new String[]{clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - - protected final void reflectionWarning(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, InvalidInputException e) { - // One of two cases where we care if the type is on this class or not (i.e., not leaving it up to MessageUtility) - String[] msgParm = null; - String javaClassName = (e.getJavaClass() == null) ? "?" : e.getJavaClass().getQualifiedName(); //$NON-NLS-1$ - if(ValidationRuleUtility.onClass(clazz, field)) { - msgParm = new String[] {String.valueOf(field.getName()), String.valueOf(javaClassName)}; - } - else { - msgParm = new String[] {javaClassName}; // MessageUtility will substitute in the name of the field - } - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2433, IEJBValidationContext.WARNING, bean, clazz, field, msgParm, this); - vc.addMessage(message); - } - - protected final void reflectionWarning(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, InvalidInputException e) { - // One of two cases where we care if the type is on this class or not (i.e., not leaving it up to MessageUtility) - String[] msgParm = null; - String javaClassName = (e.getJavaClass() == null) ? "?" : e.getJavaClass().getQualifiedName(); //$NON-NLS-1$ - if(ValidationRuleUtility.onClass(clazz, method)) { - msgParm = new String[] {method.getMethodElementSignature(), javaClassName}; - } - else { - msgParm = new String[] {javaClassName}; // MessageUtility will substitute in the name of the field - } - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2433, IEJBValidationContext.WARNING, bean, clazz, method, msgParm, this); - vc.addMessage(message); - } - - public final void validate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationException { - vc.terminateIfCancelled(); - - EnterpriseBean bean = (EnterpriseBean)targetParent; - JavaClass clazz = (JavaClass)target; - - try { - // check if all of the types in the bean reflected properly - ValidationRuleUtility.isValidTypeHierarchy(bean, clazz); - - vc.subtask(IEJBValidatorConstants.STATUS_VALIDATING, new String[]{clazz.getQualifiedName()}); - validateClass(vc, bean, clazz); - validateMethods(vc, bean, clazz); - validateFields(vc, bean, clazz); - } - catch(InvalidInputException e) { - reflectionError(vc, bean, clazz); - return; - } - catch(ValidationCancelledException e) { - throw e; - } - } - - /** - * This method should be called to avoid validating a Field more - * than once. This is not used for checking the existence of a field. - */ - public final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, List[] fieldsExtendedList) throws InvalidInputException { - if (isValid(vc, bean, clazz, field, fieldsExtendedList)) { - primValidate(vc, bean, clazz, field); - } - } - - /** - * This method should be called to avoid validating a Method more - * than once. This is not used for checking the existence of a method. - */ - public final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod, List[] methodsExtendedList) throws InvalidInputException { - if (isValid(vc, bean, clazz, ejbMethod, methodsExtendedList)) { - primValidate(vc, bean, clazz, ejbMethod); - } - } - /** - * Checks to see if @ejbMethod is one of the required methods. - */ - protected final void validateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod, List[] methodsExtendedList) throws InvalidInputException { - if (isValid(vc, bean, clazz, ejbMethod, methodsExtendedList)) { - primValidateExistence(vc, bean, clazz, ejbMethod); - } - } - - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - //Default - } - - public final void validateFields(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - vc.terminateIfCancelled(); - - // Whenever looping over an entire list, always use an - // iterator instead of a for loop, for performance reasons. - // If the list is an instance of a linked list, for example, - // the get(i) call can take a long time. - List fields = clazz.getFieldsExtended(); - Iterator iterator = fields.iterator(); - Field field = null; - List[] fieldsExtendedList = getFieldsExtended(vc, bean, clazz); - while (iterator.hasNext()) { - vc.terminateIfCancelled(); - field = (Field) iterator.next(); - if (field == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("AValidateEJB.validateFields()"); //$NON-NLS-1$ - entry.setText("A field is null on " + clazz); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - continue; - } - try { - validate(vc, bean, clazz, field, fieldsExtendedList); - } - catch (InvalidInputException e) { - reflectionWarning(vc, bean, clazz, field, e); - } - } - vc.terminateIfCancelled(); - } - - /** - * Verifies that a given method is RMI legal. - * This means that their argument and return values must be of valid types - * for RMI/IIOP, and their throws clause must include the java.rmi.RemoteException. - */ - public final void validateLegalRMIMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - validateLegalRMIMethodWithoutExceptions(vc, bean, clazz, method); - validateLegalRMIMethodExceptions(vc, bean, clazz, method); - } - - /** - * Verifies that a given method is RMI legal. - * This means that their argument and return values must be of valid types - * for RMI/IIOP, and their throws clause must include the java.rmi.RemoteException. - */ - public final void validateLegalRMIMethodArguments(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - if (method == null) { - return; - } - - JavaParameter[] args = method.listParametersWithoutReturn(); - for (int i = 0; i < args.length; i++) { - vc.terminateIfCancelled(); - - if (!ValidationRuleUtility.isLegalRMI_IIOPType(bean, args[i].getJavaType())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2413, IEJBValidationContext.INFO, bean, clazz, method, new String[]{args[i].getQualifiedName()}, this); - vc.addMessage(message); - } - } - } - - /** - * Verifies that a given method is RMI legal. - * This means that their argument and return values must be of valid types - * for RMI/IIOP, and their throws clause must include the java.rmi.RemoteException. - */ - public final void validateLegalRMIMethodExceptions(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - if (method == null) { - return; - } - - if (!ValidationRuleUtility.throwsRemoteExceptionOrParent(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2414, IEJBValidationContext.ERROR, bean, clazz, method, new String[]{ITypeConstants.CLASSNAME_JAVA_RMI_REMOTEEXCEPTION}, this); - vc.addMessage(message); - } - } - - /** - * Verifies that a given method is RMI legal, but doesn't check the exceptions. - * This means that the method's argument and return values must be of valid types - * for RMI/IIOP. - */ - public final void validateLegalRMIMethodReturnType(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - if (method == null) { - return; - } - - if (!ValidationRuleUtility.isLegalRMI_IIOPType(bean, method.getReturnType())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2412, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - } - - /** - * Verifies that a given method is RMI legal, but doesn't check the exceptions. - * This means that the method's argument and return values must be of valid types - * for RMI/IIOP. - */ - public final void validateLegalRMIMethodWithoutExceptions(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - validateLegalRMIMethodArguments(vc, bean, clazz, method); - validateLegalRMIMethodReturnType(vc, bean, clazz, method); - } - - /** - * Final check to see if required methods were detected. - */ - protected abstract void validateMethodExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException; - - public final void validateMethods(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - vc.terminateIfCancelled(); - - // Whenever looping over an entire list, always use an - // iterator instead of a for loop, for performance reasons. - // If the list is an instance of a linked list, for example, - // the get(i) call can take a long time. - Method[] ejbMethods = clazz.listMethodExtended(); - Method method = null; - List[] methodsExtendedList = getMethodsExtended(vc, bean, clazz); - for(int i=0; i<ejbMethods.length; i++) { - vc.terminateIfCancelled(); - method = ejbMethods[i]; - if (method == null) { - // No point adding a validation message, because the user can't do anything. - // Log this condition. - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("AValidateEJB.validateMethods()"); //$NON-NLS-1$ - entry.setText("On " + clazz + ", there is a null method."); //$NON-NLS-1$ //$NON-NLS-2$ - logger.write(Level.FINEST, entry); - } - continue; - } - try { - validateExistence(vc, bean, clazz, method, methodsExtendedList); - validate(vc, bean, clazz, method, methodsExtendedList); - } - catch (InvalidInputException e) { - reflectionWarning(vc, bean, clazz, method, e); - } - } - validateMethodExists(vc, bean, clazz); - vc.terminateIfCancelled(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateEntityBean.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateEntityBean.java deleted file mode 100644 index b6e4325a6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateEntityBean.java +++ /dev/null @@ -1,582 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.Iterator; -import java.util.Set; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * This class checks entity bean classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * - * All 9.2.X sections describe BMP requirements. - * If a CMP requirement is different than these, then the differences are - * documented in 9.4.X sections. - */ -public abstract class AValidateEntityBean extends AValidateBean { - protected final static String JAVAX_EJB_ENTITYBEAN = "javax.ejb.EntityBean"; //$NON-NLS-1$ - protected final static String SETENTITYCONTEXT = "setEntityContext"; //$NON-NLS-1$ - protected final static String UNSETENTITYCONTEXT = "unsetEntityContext"; //$NON-NLS-1$ - protected final static String EJBLOAD = "ejbLoad"; //$NON-NLS-1$ - protected final static String EJBSTORE = "ejbStore"; //$NON-NLS-1$ - protected final static String JAVAX_EJB_ENTITYCONTEXT = "javax.ejb.EntityContext"; //$NON-NLS-1$ - private boolean hasValidConstructor = false; - private boolean hasAConstructor = false; - private boolean hasSetEntityContext = false; - private boolean hasUnsetEntityContext = false; - private boolean hasEjbActivate = false; - private boolean hasEjbPassivate = false; - private boolean hasEjbRemove = false; - private boolean hasEjbLoad = false; - private boolean hasEjbStore = false; - - /** - * Given a bean's ejbFind method, return the matching find method from - * the home, if it exists. If not, return null. - */ - public Method getMatchingHomeFindMethodExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - if (method == null) { - return null; - } - - if (bean == null) { - return null; - } - - return ValidationRuleUtility.getMethodExtended(bean.getHomeInterface(), method, IMethodAndFieldConstants.PREFIX_FIND); - } - /** - * getParentName method comment. - */ - protected String getParentName() { - return JAVAX_EJB_ENTITYBEAN; - } - - public boolean isFrameworkMethod(String name) { - if (name == null) { - return false; - } - - if (super.isFrameworkMethod(name)) { - return true; - } - // check for entity-specific methods - else if (name.equals(IMethodAndFieldConstants.METHODNAME_EJBLOAD)) { - return true; - } - else if (name.equals(IMethodAndFieldConstants.METHODNAME_EJBSTORE)) { - return true; - } - else if (name.equals(IMethodAndFieldConstants.METHODNAME_SETENTITYCONTEXT)) { - return true; - } - else if (name.equals(IMethodAndFieldConstants.METHODNAME_UNSETENTITYCONTEXT)) { - return true; - } - - return false; - } - - /** - * Checks that the methods in the entity bean class follow the EJB 1.1. specification, - * and that there are no missing required methods. - * Section: 9.2.2 - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - //super.primValidate(ejbMethod); - - vc.terminateIfCancelled(); - - String name = ejbMethod.getName(); - if (name.equals(IMethodAndFieldConstants.METHODNAME_EJBCREATE)) - validateEjbCreateMethod(vc, bean, clazz, ejbMethod); - else if (name.equals(IMethodAndFieldConstants.METHODNAME_EJBPOSTCREATE)) - validateEjbPostCreateMethod(vc, bean, clazz, ejbMethod); - else if (name.equals(IMethodAndFieldConstants.METHODNAME_FINALIZE)) - validateFinalize(vc, bean, clazz, ejbMethod); - else if (name.startsWith(IMethodAndFieldConstants.PREFIX_EJBFIND)) - validateEjbFindMethod(vc, bean, clazz, ejbMethod); - else if (isBusinessMethod(vc, bean, clazz, ejbMethod)) - validateBusinessMethod(vc, bean, clazz, ejbMethod); - else - validateHelperMethod(vc, bean, clazz, ejbMethod); - - vc.terminateIfCancelled(); - } - - /** - * Checks to see if @ejbMethod is one of the required methods. - */ - protected void primValidateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - //super.validateExistence(ejbMethod); - - vc.terminateIfCancelled(); - - String name = ejbMethod.getName(); - if (!hasSetEntityContext && name.equals(IMethodAndFieldConstants.METHODNAME_SETENTITYCONTEXT)) { - JavaParameter[] params = ejbMethod.listParametersWithoutReturn(); - if (params.length == 1) { - if (ValidationRuleUtility.isAssignableFrom(params[0].getJavaType(), ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_EJB_ENTITYCONTEXT, bean))) { - hasSetEntityContext = true; - } - } - } - else if (!hasUnsetEntityContext && name.equals(IMethodAndFieldConstants.METHODNAME_UNSETENTITYCONTEXT)) { - if (ejbMethod.listParametersWithoutReturn().length == 0) { - hasUnsetEntityContext = true; - } - } - else if (!hasEjbActivate && name.equals(IMethodAndFieldConstants.METHODNAME_EJBACTIVATE)) { - if (ejbMethod.listParametersWithoutReturn().length == 0) { - hasEjbActivate = true; - } - } - else if (!hasEjbPassivate && name.equals(IMethodAndFieldConstants.METHODNAME_EJBPASSIVATE)) { - if (ejbMethod.listParametersWithoutReturn().length == 0) { - hasEjbPassivate = true; - } - } - else if (!hasEjbRemove && name.equals(IMethodAndFieldConstants.METHODNAME_EJBREMOVE)) { - if (ejbMethod.listParametersWithoutReturn().length == 0) { - hasEjbRemove = true; - } - } - else if (!hasEjbLoad && name.equals(IMethodAndFieldConstants.METHODNAME_EJBLOAD)) { - if (ejbMethod.listParametersWithoutReturn().length == 0) { - hasEjbLoad = true; - } - } - else if (!hasEjbStore && name.equals(IMethodAndFieldConstants.METHODNAME_EJBSTORE)) { - if (ejbMethod.listParametersWithoutReturn().length == 0) { - hasEjbStore = true; - } - } - else if (!hasValidConstructor && ejbMethod.isConstructor()) { - hasAConstructor = true; - if (ValidationRuleUtility.isPublic(ejbMethod) && (ejbMethod.listParametersWithoutReturn().length == 0)) { - hasValidConstructor = true; - } - } - - vc.terminateIfCancelled(); - - } - - /** - * EJB 1.1 specification - * Section: 9.2.6 - */ - public void validateBusinessMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - super.validateBusinessMethod(vc, bean, clazz, method); // make sure that name does not start with 'ejb' - - // The method must be declared as public. - if (!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2408_bus, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The method must not be declared as final or static. - if (method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2410_bus, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - if (method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2409_bus, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The method argument and return value types must be legal types for RMI-IIOP. - validateLegalRMIMethodWithoutExceptions(vc, bean, clazz, method); - - // The throws clause may define arbitrary application specific exceptions. - // Compatibility Note: EJB 1.0 allowed the business methods to throw the - // java.rmi.RemoteException to indicate a non-application exception. This - // practice is deprecated in EJB 1.1 -- an EJB 1.1 compliant enterprise bean - // should throw the javax.ejb.EJBException or another java.lang.RuntimeException - // to indicate non-application exceptions to the Container (see Section 12.2.2). - validateBusinessMethodNoRemoteException(vc, bean, clazz, method); - } - - protected void validateBusinessMethodNoRemoteException(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // EJB 2.0 added "throws InvalidInputException" above - validateNoRemoteException(vc, bean, clazz, method, IMessagePrefixEjb11Constants.CHKJ2400_bus); - } - - /** - * EJB 1.1 specification - * Section: 9.2.2 - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - // All of the above checks are performed by ValidateBean. - super.validateClass(vc, bean, clazz); - - // Plus, check that at least one field exists on the bean. - verifyFieldExists(vc, bean, clazz); - } - - /** - * EJB 1.1 specification - * Section: 9.2.3, 9.2.8 and 9.4.2 - */ - public void validateEjbCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - // The method which calls this method has already tested that the method name is ejbCreate. - if (method == null) - return; - - // The method must be declared as public. - if (!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2408_ejbCreate, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The method must not be declared as final or static. - if (method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2410_ejbCreate, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - if (method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2409_ejbCreate, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The method argument and return value types must be legal types for RMI-IIOP. - // But if the bean uses java.lang.Object for a key, don't check if it's serializable. - if(ValidationRuleUtility.usesUnknownPrimaryKey(bean)) { - validateLegalRMIMethodArguments(vc, bean, clazz, method); - } - else { - validateLegalRMIMethodWithoutExceptions(vc, bean, clazz, method); - } - - // The return type must be the entity bean's primary key type; unless this is - // a CMP, and an unkonwn primary key class is used. Read section 9.4.7.3. - validateEjbCreateMethod_keyDep(vc, bean, clazz, method); - - // The throws clause may define arbitrary application specific exceptions, - // including the javax.ejb.CreateException. - // Compatibility Note: EJB 1.0 allowed the ejbPostCreate method to throw - // the java.rmi.RemoteException to indicate a non-application exception. - // This practice is deprecated in EJB 1.1 -- an EJB 1.1 compliant enterprise - // bean should throw the javax.ejb.EJBException or another - // java.lang.RuntimeException to indicate non-application exceptions to the - // Container (see Section 12.2.2). - validateNoRemoteException(vc, bean, clazz, method, IMessagePrefixEjb11Constants.CHKJ2400_ejbCreate); - - // Verify that there is a matching ejbPostCreate method for this ejbCreate method. - Method ejbPostCreateMethod = ValidationRuleUtility.getMethodExtended(clazz, IMethodAndFieldConstants.METHODNAME_EJBPOSTCREATE, method.listParametersWithoutReturn()); - if (ejbPostCreateMethod == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2002, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // Check for a matching create method on the home, and that the exceptions on - // this method are a subset of the exceptions of the matching method on the home. - validateEjbCreateMethod_homeDep(vc, bean, clazz, method); - } - - /** - * EJB 1.1 specification - * Section: 9.2.3, 9.2.8 and 9.4.2 - */ - public void validateEjbCreateMethod_keyDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - // The method which calls this method has already tested that the method name is ejbCreate. - if (method == null) - return; - - // Unknown primary key class (section 9.4.7.3) is also validated by this - // check, because the primary key must be of type java.lang.Object, and - // the ejbCreate must return java.lang.Object. - JavaHelpers primaryKey = null; - if(ValidationRuleUtility.usesUnknownPrimaryKey(bean)) { - primaryKey = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT, bean); - } - else { - primaryKey = ((Entity) bean).getPrimaryKey(); - } - - // The return type must be the entity bean's primary key type. - vc.terminateIfCancelled(); - JavaHelpers parmType = method.getReturnType(); - - if (!ValidationRuleUtility.isAssignableFrom(parmType, primaryKey)) { - // if the parameter type is java.lang.Object, could be section 9.4.7.3 - String keyName = (primaryKey == null) ? IEJBValidatorConstants.NULL_PRIMARY_KEY : primaryKey.getJavaName(); - String[] msgParm = {keyName}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2406, IEJBValidationContext.WARNING, bean, clazz, method, msgParm, this); - vc.addMessage(message); - } - } - - /** - * EJB 1.1 specification - * Section: 9.2.5, 9.4.6 and 9.4.7.3 - */ - public void validateEjbFindMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // This method is a no-op so that the dependency classes don't have to implement it. - // (This method will never be called in a dependency class.) - } - - /** - * EJB 1.1 specification - * Section: 9.2.5, 9.4.6 and 9.4.7.3 - */ - public void validateEjbFindMethod_homeDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // All the exceptions defined in the throws clause of the matching ejbCreate - // and ejbPostCreate methods of the enterprise Bean class must be included in - // the throws clause of the matching create method of the home interface - // (i.e the set of exceptions defined for the create method must be a superset - // of the union of exceptions defined for the ejbCreate and ejbPostCreate methods) - JavaClass home = bean.getHomeInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, home); - - String methodName = IMethodAndFieldConstants.PREFIX_F + method.getName().substring(4); // e.g. if the home method is named findX, then the bean method will be named ejbFindX - Method homeMethod = ValidationRuleUtility.getMethodExtended(home, method, methodName); - if (homeMethod == null) { - // Then this method shouldn't have been called; unless the method exists on the remote, this bean method isn't a business method. - return; - } - Set exceptions = ValidationRuleUtility.getNotSubsetExceptions(bean, method, homeMethod); - if (exceptions.size() > 0) { - Iterator iterator = exceptions.iterator(); - while (iterator.hasNext()) { - JavaClass exc = (JavaClass) iterator.next(); - String[] msgParm = { exc.getQualifiedName(), home.getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2420, IEJBValidationContext.ERROR, bean, clazz, method, msgParm, this); - vc.addMessage(message); - } - } - } - - /** - * Checks that the ejbPostCreate method follows the EJB 1.1. specification. - * Section: 9.2.4 - */ - public void validateEjbPostCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - // The method which calls this method has already tested that the method name is ejbPostCreate. - if (method == null) - return; - - // The method must be declared as public. - if (!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2408_ejbPostCreate, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The method must not be declared as final or static. - if (method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2410_ejbPostCreate, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - if (method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2409_ejbPostCreate, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - vc.terminateIfCancelled(); - - // The return type must be void. - JavaHelpers parmType = method.getReturnType(); - String returnTypeName = ((parmType == null) ? "" : parmType.getQualifiedName()); //$NON-NLS-1$ - if (!returnTypeName.equals(ITypeConstants.VOID)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2418, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The throws clause may define arbitrary application specific exceptions, - // including the javax.ejb.CreateException. - // Compatibility Note: EJB 1.0 allowed the ejbPostCreate method to throw - // the java.rmi.RemoteException to indicate a non-application exception. - // This practice is deprecated in EJB 1.1 -- an EJB 1.1 compliant enterprise - // bean should throw the javax.ejb.EJBException or another - // java.lang.RuntimeException to indicate non-application exceptions to the - // Container (see Section 12.2.2). - validateNoRemoteException(vc, bean, clazz, method, IMessagePrefixEjb11Constants.CHKJ2400_ejbPostCreate); - - // Verify that the ejbPostCreate method has a matching ejbCreate method. - Method ejbCreateMethod = ValidationRuleUtility.getMethodExtended(clazz, IMethodAndFieldConstants.METHODNAME_EJBCREATE, method.listParametersWithoutReturn()); - if (ejbCreateMethod == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2028, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - validateEjbPostCreateMethod_homeDep(vc, bean, clazz, method); - } - - /** - * Checks that the ejbPostCreate method follows the EJB 1.1. specification. - * Section: 9.2.4 - */ - public void validateEjbPostCreateMethod_homeDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - // The method which calls this method has already tested that the method name is ejbPostCreate. - if (method == null) { - return; - } - - JavaClass homeIntf = bean.getHomeInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, homeIntf); - - Method createMethod = getMatchingHomeCreateMethodExtended(vc, bean, clazz, method); - if (createMethod == null) { - // If the ejbCreate method is inherited from a component parent, it is likely - // that the corresponding create method does not exist on the home. - // Since our tools generate the component inheritance code, suppress this warning. - - // ejbCreate methods which are inherited via component inheritance, but do not - // have a method on their immediate home, are filtered out via the isValid(Method) method. - - // The validateEjbCreateMethod checks for a matching create method, but just in - // case the ejbCreate method is missing, check for it here too. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2029, IEJBValidationContext.WARNING, bean, clazz, method, new String[] { homeIntf.getName()}, this); - vc.addMessage(message); - - // Can't check the exceptions of a method which doesn't exist. - return; - } - - // Whether this is from a component inheritance or not, if the method exists on the - // home, check that the method follows the spec. - - // Section 6.10.6 (session), 9.2.8 (entity), declare that all exceptions declared - // on the ejbCreate, ejbPostCreate methods must be defined in the throws clause of - // the matching create of the home interface. - Set exceptions = ValidationRuleUtility.getNotSubsetExceptions(bean, method, createMethod); - if (exceptions.size() > 0) { - Iterator iterator = exceptions.iterator(); - while (iterator.hasNext()) { - JavaClass exc = (JavaClass) iterator.next(); - String[] msgParm = { exc.getQualifiedName(), homeIntf.getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2420, IEJBValidationContext.ERROR, bean, clazz, method, msgParm, this); - vc.addMessage(message); - } - } - } - - /** - * EJB 1.1 specification - * Section: 9.2.2 - */ - protected void validateFinalize(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) { - if (method == null) { - return; - } - - // If it's "finalize()", the ejb bean shouldn't have the method. - if (method.listParametersWithoutReturn().length == 0) { - // This is a warning, not an error, because EJB 1.0 allowed the finalize() method to be called. EJB 1.1 (section 6.10.2) specifically prohibits it. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2007, IEJBValidationContext.WARNING, bean, clazz, method, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - } - - /** - * EJB 1.1 specification - * Section: 9.2.2 - */ - protected void validateMethodExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - final String[] modelObjectName = new String[] { clazz.getQualifiedName()}; - if (!hasValidConstructor && hasAConstructor) { - // If a public constructor with no arguments does not exist explicitly, - // Java will insert one as long as there are no constructors defined in the - // class. If there is a constructor, Java does not insert a default constructor. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2006, IEJBValidationContext.ERROR, bean, clazz, modelObjectName, this); - vc.addMessage(message); - } - - if (!hasSetEntityContext) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2033, IEJBValidationContext.WARNING, bean, clazz, this); - vc.addMessage(message); - } - - if (!hasUnsetEntityContext) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2034, IEJBValidationContext.WARNING, bean, clazz, this); - vc.addMessage(message); - } - - if (!hasEjbActivate) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2035, IEJBValidationContext.WARNING, bean, clazz, this); - vc.addMessage(message); - } - - if (!hasEjbPassivate) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2036, IEJBValidationContext.WARNING, bean, clazz, this); - vc.addMessage(message); - } - - if (!hasEjbRemove) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2037, IEJBValidationContext.WARNING, bean, clazz, this); - vc.addMessage(message); - } - - if (!hasEjbLoad) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2038, IEJBValidationContext.WARNING, bean, clazz, this); - vc.addMessage(message); - } - - if (!hasEjbStore) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2039, IEJBValidationContext.WARNING, bean, clazz, this); - vc.addMessage(message); - } - } - - /** - * Check that at least one field exists on the bean class. - */ - public abstract void verifyFieldExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException; - - /* - * @see IValidationRule#preValidate(IEJBValidationContext, Object, Object) - */ - public void preValidate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - super.preValidate(vc, targetParent, target); - hasValidConstructor = false; - hasAConstructor = false; - hasSetEntityContext = false; - hasUnsetEntityContext = false; - hasEjbActivate = false; - hasEjbPassivate = false; - hasEjbRemove = false; - hasEjbLoad = false; - hasEjbStore = false; - - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateEntityHome.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateEntityHome.java deleted file mode 100644 index e5173bfea..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateEntityHome.java +++ /dev/null @@ -1,516 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashSet; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * This class checks entity home classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 9.2.8 - */ -public abstract class AValidateEntityHome extends AValidateHome { - private HashSet findByPKMethods = null; - - public AValidateEntityHome() { - findByPKMethods = new HashSet(); - } - - public void reset() { - super.reset(); - findByPKMethods.clear(); - } - - protected void incrementFindByPrimaryKeyCount(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) { - if (method == null) { - return; - } - - // Need to track number of findByPrimaryKey methods for the - // validateMethodExists() checks. Do not check only the current - // class, or a findByPrimaryKey which is inherited from a parent interface - // will not be detected. - if (method.getName().equals(IMethodAndFieldConstants.METHODNAME_FINDBYPRIMARYKEY)) { - findByPKMethods.add(method); - } - } - - /** - * This method returns true if the given method returns the remote interface, - * and false otherwise. - */ - public boolean isSingleObjectFinder(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - if (method == null) { - return false; - } - - // The findByPrimaryKey method is always a single-object finder. - JavaClass remoteIntf = bean.getRemoteInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, remoteIntf); - - if (!ValidationRuleUtility.isAssignableFrom(method.getReturnType(), remoteIntf)) { - return false; - } - - // The method is a single-object finder. - return true; - } - - /** - * This method checks that the entity home's methods comply with the EJB 1.1 specification. - * Section: 9.2.8 - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method hiMethod) throws InvalidInputException { - // Can't invoke an abstract method - // super.primValidate(hiMethod); - - vc.terminateIfCancelled(); - - String name = hiMethod.getName(); - - // Each method defined in the home interface must be one of the following: - // - A create method. - // - A finder method. - if (name.equals(IMethodAndFieldConstants.METHODNAME_CREATE)) - validateCreateMethod(vc, bean, clazz, hiMethod); - else if (name.startsWith(IMethodAndFieldConstants.PREFIX_FIND)) - validateFindMethod(vc, bean, clazz, hiMethod); - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2005, IEJBValidationContext.ERROR, bean, clazz, hiMethod, this); - vc.addMessage(message); - } - } - - /** - * Checks to see if @ejbMethod is one of the required methods. - */ - protected void primValidateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - //super.validateExistence(ejbMethod); - - if (IMethodAndFieldConstants.METHODNAME_FINDBYPRIMARYKEY.equals(ejbMethod.getName())) - incrementFindByPrimaryKeyCount(vc, bean, clazz, ejbMethod); - } - - /** - * EJB 1.1 specification - * Section: 9.2.8 - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - super.validateClass(vc, bean, clazz); - // The superclass checks that the home extends javax.ejb.EJBHome, - // and that the interface inheritance complies with RMI-IIOP rules. - } - - /** - * Checks that the create method on the entity home follows the EJB 1.1. specification. - * Section: 9.2.8 - */ - public void validateCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - if (method == null) { - return; - } - - // Each create method must be named "create", and it must match one of the - // ejbCreate methods defined in the enterprise Bean class. The matching - // ejbCreate method must have the same number and types of its arguments. - // (Note that the return type is different.) - // - // All the exceptions defined in the throws clause of the matching ejbCreate - // and ejbPostCreate methods of the enterprise Bean class must be included in - // the throws clause of the matching create method of the home interface - // (i.e the set of exceptions defined for the create method must be a superset - // of the union of exceptions defined for the ejbCreate and ejbPostCreate methods) - validateCreateMethod_beanDep(vc, bean, clazz, method); - - vc.terminateIfCancelled(); - - // The return type for a create method must be the entity bean's remote interface type. - validateCreateMethod_remoteDep(vc, bean, clazz, method); - - // The throws clause of a create method must include the javax.ejb.CreateException. - if (!ValidationRuleUtility.throwsCreateException(bean, method)) { - String[] msgParm = { ITypeConstants.CLASSNAME_JAVAX_EJB_CREATEEXCEPTION }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2414, IEJBValidationContext.ERROR, bean, clazz, method, msgParm, this); - vc.addMessage(message); - } - - // The methods defined in this interface must follow the rules for RMI-IIOP. - // This means that their argument and return types must be of valid types for - // RMI-IIOP, and that their throws clause must include the java.rmi.RemoteException. - validateLegalRMIMethod(vc, bean, clazz, method); - - } - - /** - * Checks that the create method on the entity home follows the EJB 1.1. specification. - * Section: 9.2.8 - */ - public void validateCreateMethod_beanDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - if (method == null) { - return; - } - - // Each create method must be named "create", and it must match one of the - // ejbCreate methods defined in the enterprise Bean class. The matching - // ejbCreate method must have the same number and types of its arguments. - // (Note that the return type is different.) - super.validateCreateMethod_beanDep(vc, bean, clazz, method); - - // - // All the exceptions defined in the throws clause of the matching ejbCreate - // and ejbPostCreate methods of the enterprise Bean class must be included in - // the throws clause of the matching create method of the home interface - // (i.e the set of exceptions defined for the create method must be a superset - // of the union of exceptions defined for the ejbCreate and ejbPostCreate methods) - validateMatchingBeanPostCreateMethod(vc, bean, clazz, method); - } - - /** - * In addition to regular find rules, findByPrimaryKey needs to follow some other rules. - * EJB 1.1 specification - * Section: 9.2.8 - */ - public void validateFindByPrimaryKeyMethod_keyDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - if (method == null) { - return; - } - - boolean hasValidFBPKMethod = false; - Entity entityBean = (Entity) bean; // bean is checked for null in AValidateEJB.validate() method, so don't need to check for it here. - JavaClass keyClass = entityBean.getPrimaryKey(); - - ValidationRuleUtility.isValidTypeHierarchy(bean, keyClass); - - vc.terminateIfCancelled(); - - // The method must declare the primary key class as the method argument. - // This check also validates case 9.4.7.3 (CMP unknown primary key class, - // which must be declared as java.lang.Object.) - JavaParameter[] parms = method.listParametersWithoutReturn(); - if (parms.length == 1) { - JavaHelpers type = parms[0].getJavaType(); - if (ValidationRuleUtility.isAssignableFrom(type, keyClass)) { - // check that it's a single-object finder - if (isSingleObjectFinder(vc, bean, clazz, method)) { - hasValidFBPKMethod = true; - } - } - else { - // check if it's java.lang.Object. If it is, this could be a case of 9.4.7.3. - if (ValidationRuleUtility.isSameType(type, ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT, entityBean))) { - hasValidFBPKMethod = true; - } - } - } - - if (!hasValidFBPKMethod) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2405, IEJBValidationContext.WARNING, bean, clazz, method, new String[] { keyClass.getQualifiedName()}, this); - vc.addMessage(message); - } - } - - /** - * In addition to regular find rules, findByPrimaryKey needs to follow some other rules. - * EJB 1.1 specification - * Section: 9.2.8 - */ - public void validateFindByPrimaryKeyMethod_remoteDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - if (!isSingleObjectFinder(vc, bean, clazz, method)) { - String remoteIntfName = bean.getRemoteInterface().getName(); // Can assume that remote interface isn't null, or isSingleObjectFinder would have thrown an InvalidInputException. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2403, IEJBValidationContext.WARNING, bean, clazz, method, new String[] { remoteIntfName }, this); - vc.addMessage(message); - } - } - - /** - * Checks that the finder method on the entity home class follows the EJB 1.1 specification. - * Section: 9.2.8 - */ - public void validateFindMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - if (method == null) { - return; - } - - // The return type for a find<METHOD> method must be the entity bean's remote - // interface type (for a single-object finder), or a collection thereof (for a - // multi-object finder). - // - // Whether or not the parameter is a type or an array of types, the following - // call will return the base type. i.e., if it's an array of "MyClass", - // the returnTypeName will be set to "MyClass", not an array type. - validateFindMethod_remoteDep(vc, bean, clazz, method); - - // The throws clause of a finder method must include the javax.ejb.FinderException. - if (!ValidationRuleUtility.throwsFinderException(bean, method)) { - String[] msgParm = { ITypeConstants.CLASSNAME_JAVAX_EJB_FINDEREXCEPTION }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2414, IEJBValidationContext.ERROR, bean, clazz, method, msgParm, this); - vc.addMessage(message); - } - - // The home interface must always include the findByPrimaryKey method, which is - // always a single-object finder. The method must declare the primary key class - // as the method argument. - boolean validateRMIParameters = true; // should the parameters be validated to see if they follow RMI-IIOP rules? - boolean validateRMIRetType = true; // should the return type be validated to see if it follows RMI-IIOP rules? - if (method.getName().equals(IMethodAndFieldConstants.METHODNAME_FINDBYPRIMARYKEY)) { - // - The home interface must always include the findByPrimaryKey method, which is - // always a single-object finder. The method must declare the primary key class - // as the method argument. - // - // The findByPrimaryKey method is always a single-object finder. - // The call to validateFindByPrimaryKeyMethod_remoteDep is done in - // validateFindMethod_remoteDep(method); - //validateFindByPrimaryKeyMethod_remoteDep(method); - - // The method must declare the primary key class as the method argument. - validateFindByPrimaryKeyMethod_keyDep(vc, bean, clazz, method); - - if(ValidationRuleUtility.usesUnknownPrimaryKey(bean)) { - validateRMIParameters = false; - } - } - - // The methods defined in this interface must follow the rules for RMI-IIOP. - // This means that their argument and return types must be of valid types for - // RMI-IIOP, and that their throws clause must include the java.rmi.RemoteException. - // However, the return type of "Enumeration" or "Collection" is exempted from this - // check, because the spec states, in 9.1.8.2, that Enumeration or Collection must be returned - // for multi-object finders. - JavaHelpers retType = method.getReturnType(); - validateRMIRetType = !((ValidationRuleUtility.isAssignableFrom(retType, ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_UTIL_ENUMERATION, bean))) || - (ValidationRuleUtility.isAssignableFrom(retType, ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_UTIL_COLLECTION, bean)))); - - if(validateRMIParameters) { - validateLegalRMIMethodArguments(vc, bean, clazz, method); - } - - if(validateRMIRetType) { - validateLegalRMIMethodReturnType(vc, bean, clazz, method); - } - - validateLegalRMIMethodExceptions(vc, bean, clazz, method); - } - - /** - * Checks that the finder method on the entity home class follows the EJB 1.1 specification. - * Section: 9.2.8 - */ - public void validateFindMethod_remoteDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - if (method == null) { - return; - } - - // The return type for a find<METHOD> method must be the entity bean's remote - // interface type (for a single-object finder), or a collection thereof (for a - // multi-object finder). - // - // Whether or not the parameter is a type or an array of types, the following - // call will return the base type. i.e., if it's an array of "MyClass", - // the returnTypeName will be set to "MyClass", not an array type. - JavaClass remoteIntf = bean.getRemoteInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, remoteIntf); - - // Perform this check for all finders but the findByPrimaryKey method. - // The findByPrimaryKey method must return the remote interface, because the method is - // a single-object finder method; but other finders may return a Collection or Enumeration. - if (!method.getName().equals(IMethodAndFieldConstants.METHODNAME_FINDBYPRIMARYKEY)) { - JavaHelpers returnType = method.getReturnType(); - - if (! (ValidationRuleUtility.isAssignableFromCollection(returnType, bean) || - ValidationRuleUtility.isAssignableFromEnumeration(returnType, bean) || - ValidationRuleUtility.isAssignableFrom(returnType, remoteIntf))) { - String[] msgParm = { remoteIntf.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2403, IEJBValidationContext.WARNING, bean, clazz, method, msgParm, this); - vc.addMessage(message); - } - } - - // The home interface must always include the findByPrimaryKey method, which is - // always a single-object finder. The method must declare the primary key class - // as the method argument. - if (method.getName().equals(IMethodAndFieldConstants.METHODNAME_FINDBYPRIMARYKEY)) { - validateFindByPrimaryKeyMethod_remoteDep(vc, bean, clazz, method); - } - } - - public void validateMatchingBeanCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - super.validateMatchingBeanCreateMethod(vc, bean, clazz, method); - JavaClass beanClass = bean.getEjbClass(); - Method ejbCreateMethod = ValidationRuleUtility.getMethodExtended(beanClass, method, IMethodAndFieldConstants.METHODNAME_EJBCREATE); - if (ejbCreateMethod == null) { - // already reported in super - return; - } - } - - /** - * Checks that the finder method on the entity home class follows the EJB 1.1 specification. - * Section: 9.2.8 - */ - public void validateMatchingBeanFindMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method homeMethod) throws InvalidInputException { - vc.terminateIfCancelled(); - - if (homeMethod == null) { - return; - } - - // Each finder method must be named "find<METHOD>" (e.g. findLargeAccounts), and it - // must match one of the ejbFind<METHOD> methods defined in the entity bean class - // (e.g. ejbFindLargeAccounts). The matching ejbFind<METHOD> method must have the - // same number and types of arguments. (Note that the return type may be different.) - String findMethodName = IMethodAndFieldConstants.PREFIX_EJBF + (homeMethod.getName()).substring(1); // e.g. if the home method is named findX, then the bean method will be named ejbFindX - - JavaClass beanClass = bean.getEjbClass(); - ValidationRuleUtility.isValidTypeHierarchy(bean, beanClass); - - Method beanMethod = ValidationRuleUtility.getMethodExtended(beanClass, homeMethod, findMethodName); - if (beanMethod == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2030, IEJBValidationContext.ERROR, bean, clazz, homeMethod, new String[] { beanClass.getName()}, this); - vc.addMessage(message); - return; - } - - // Check if return types match - vc.terminateIfCancelled(); - JavaHelpers homeRetType = homeMethod.getReturnType(); - JavaHelpers beanRetType = beanMethod.getReturnType(); - if (!ValidationRuleUtility.isAssignableFrom(homeRetType, beanRetType)) { - // emit the error only if it's a multi-finder. Single-finders are supposed to have different return types on the home & bean class. - boolean homeRetTypeIsRemote = ValidationRuleUtility.isAssignableFrom(homeRetType, bean.getRemoteInterface()); - boolean beanRetTypeIsKey = ValidationRuleUtility.isAssignableFrom(beanRetType, ((Entity)bean).getPrimaryKey()); - if(!(homeRetTypeIsRemote && beanRetTypeIsKey)) { - JavaHelpers retType = (beanRetTypeIsKey) ? bean.getRemoteInterface() : beanRetType; // if the bean class returns a key, the home must return the remote; if the bean class returns a Coll/Enum, the home must return the same - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2415, IEJBValidationContext.ERROR, bean, clazz, homeMethod, new String[] { retType.getJavaName(), beanClass.getName()}, this); - vc.addMessage(message); - } - } - - // All the exceptions defined in the throws clause of an ejbFind method of the - // entity bean class must be included in the throws clause of the matching find - // method of the home interface. - /* - // Don't check for the exceptions here - let the bean class do it. When the home - // changes, a "dependent" validation of the bean's checks should be done automatically. - // If it is checked in this method as well, there are duplicate messages on the task list. - HashSet exceptions = getNotSubsetExceptions(homeMethod, beanMethod); - if(exceptions.size() > 0) { - Iterator iterator = exceptions.iterator(); - while(iterator.hasNext()) { - JavaClass exc = (JavaClass)iterator.next(); - String[] msgParm = {exc.getQualifiedName()}; - addValidationMessage(IEJBValidationContext.ERROR, IMessagePrefixEjb11Constants.EJB_METHOD_THROW_NOTHI_EXCEP, msgParm, beanMethod, EJB_BEAN_GROUP); - } - } - */ - } - - /** - * Checks that the create method on the entity home has a matching ejbCreate and ejbPostCreate on the bean. - * EJB 1.1 specification - * Section: 9.2.8 - */ - public void validateMatchingBeanPostCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method homeMethod) throws InvalidInputException { - vc.terminateIfCancelled(); - - if (homeMethod == null) { - return; - } - - // Each create method must be named "create", and it must match one of the - // ejbCreate methods defined in the enterprise Bean class. The matching - // ejbCreate method must have the same number and types of its arguments. - // (Note that the return type is different.) - JavaClass beanClass = bean.getEjbClass(); - ValidationRuleUtility.isValidTypeHierarchy(bean, beanClass); - - Method beanMethod = ValidationRuleUtility.getMethodExtended(beanClass, homeMethod, IMethodAndFieldConstants.METHODNAME_EJBPOSTCREATE); - if (beanMethod == null) { - // Let the bean class report this message. Otherwise, when the bean class reports it, this message looks like a duplicate. - /* - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2031, IEJBValidationContext.WARNING, bean, clazz, homeMethod, new String[] { beanClass.getName()}, this); - vc.addMessage(message); - */ - return; - } - - // All the exceptions defined in the throws clause of the matching ejbCreate - // and ejbPostCreate methods of the enterprise Bean class must be included in - // the throws clause of the matching create method of the home interface - // (i.e the set of exceptions defined for the create method must be a superset - // of the union of exceptions defined for the ejbCreate and ejbPostCreate methods) - /* - // Don't check for the exceptions here - let the bean class do it. When the home - // changes, a "dependent" validation of the bean's checks should be done automatically. - // If it is checked in this method as well, there are duplicate messages on the task list. - HashSet exceptions = getNotSubsetExceptions(homeMethod, beanMethod); - if(exceptions.size() > 0) { - Iterator iterator = exceptions.iterator(); - while(iterator.hasNext()) { - JavaClass exc = (JavaClass)iterator.next(); - String[] msgParm = {exc.getQualifiedName()}; - addValidationMessage(IEJBValidationContext.ERROR, IMessagePrefixEjb11Constants.EJB_METHOD_THROW_NOTHI_EXCEP, msgParm, beanMethod, EJB_BEAN_GROUP); - } - } - */ - } - - /** - * EJB 1.1 specification - * Section: 9.2.8 - */ - protected void validateMethodExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - // - The home interface must always include the findByPrimaryKey method, which is - // always a single-object finder. The method must declare the primary key class - // as the method argument. - if (findByPKMethods.size() == 0) { - // must have one findByPrimaryKey method - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2011, IEJBValidationContext.ERROR, bean, clazz, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - /* - // Not sure if this check is useful or not, because it is legal for a child home to declare a findByPrimaryKey, - // and also for a parent home to declare a findByPrimaryKey. - else if ( findByPKMethods.size() > 1 ) { - // if the home interface has multiple findByPrimaryKey methods (implied by 9.2.8) - Iterator iterator = findByPKMethods.iterator(); - while(iterator.hasNext()) { - addValidationMessage(IEJBValidationContext.WARNING, IMessagePrefixEjb11Constants.EJB_HAS_MULTIPLE_PK_METHODS, (Method)iterator.next()); - } - } - */ - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateHome.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateHome.java deleted file mode 100644 index df303bd4d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateHome.java +++ /dev/null @@ -1,248 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.List; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * This class checks home classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 6.8, 6.10.6 and 9.2.8 - */ -public abstract class AValidateHome extends AValidateEJB { - public final Object getTarget(Object parent, Object clazz) { - if(parent == null) { - return null; - } - - return ((EnterpriseBean)parent).getHomeInterface(); - } - - public final List[] getMethodsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // A home or component class needs the following classes' extended methods: - // 1. bean class - List[] result = new List[1]; - JavaClass beanClass = bean.getEjbClass(); - if(beanClass == null) { - result[0] = null; - } - else { - result[0] = beanClass.getMethodsExtended(); - } - return result; - } - - public final List[] getFieldsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // Never check that a home or component's field is defined on another class - // of the bean. - return null; - } - - /** - * For the check that the ejbCreate method has a matching create method on the home, - * this method, given the bean method, returns the corresponding home method. - * EJB 1.1 specification - * Section: 6.10.6 and 9.2.8 - */ - public Method getMatchingBeanEjbCreateMethodExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - if (method == null) { - return null; - } - - if (bean == null) { - return null; - } - - return ValidationRuleUtility.getMethodExtended(bean.getEjbClass(), method, IMethodAndFieldConstants.METHODNAME_EJBCREATE); - } - - /** - * Return true if the method can, and should, be validated. - * Filter out faulty methods (i.e., null), and methods which - * belong to the base type, whatever that is. (e.g. java.lang.Object) - */ - protected boolean isValid(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) throws InvalidInputException { - if (super.isValid(vc, bean, clazz, method, methodsExtendedList)) { - // Exclude root remote interface methods - if (ValidationRuleUtility.isEJBHomeMethod(bean, method)) { - return false; - } - else if (ValidationRuleUtility.isClinitMethod(bean, method)) { - return false; - } - else { - return true; - } - } - return false; - } - - /** - * EJB 1.1 specification - * Section: 6.10.6 and 9.2.8 - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - vc.terminateIfCancelled(); - - // home interface must be an interface - if (!clazz.isInterface()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2012, IEJBValidationContext.ERROR, bean, clazz, this); - vc.addMessage(message); - } - - // home interface must inherit javax.ejb.EJBHome.class - if (!ValidationRuleUtility.isAssignableFrom(clazz, ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_EJB_EJBHOME, bean))) { - String[] msgParm = { ITypeConstants.CLASSNAME_JAVAX_EJB_EJBHOME }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2017, IEJBValidationContext.ERROR, bean, clazz, msgParm, this); - vc.addMessage(message); - } - - if (ValidationRuleUtility.isUnnamedPackage(clazz.getJavaPackage())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2041, IEJBValidationContext.INFO, bean, clazz, this); - vc.addMessage(message); - } - - validateAppendixB(vc, bean, clazz); - } - - /** - * EJB 1.1 specification - * Section: 6.8 and 6.10.6 - */ - protected void validateCreateMethod_beanDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - if (method == null) { - return; - } - - // Each create method must be named "create", and it must match one of - // the ejbCreate methods defined in the session bean class. The matching - // ejbCreate method must have the same number and types of arguments. - // (Note that the return type is different.) - // All the exceptions defined in the throws clause of an ejbCreate method - // of the session bean class must be defined in the throws clause of the - // matching create method of the home interface. - // The throws clause must include javax.ejb.CreateException. - validateMatchingBeanCreateMethod(vc, bean, clazz, method); - } - - /** - * EJB 1.1 specification - * Section: 6.8, 6.10.6 and 9.2.8 - */ - protected void validateCreateMethod_remoteDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - if (method == null) { - return; - } - - JavaClass remoteIntf = bean.getRemoteInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, remoteIntf); - - // The return type for a create method must be the remote interface type. - if (!ValidationRuleUtility.isAssignableFrom(method.getReturnType(), remoteIntf)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2402, IEJBValidationContext.WARNING, bean, clazz, method, new String[] { remoteIntf.getName()}, this); - vc.addMessage(message); - } - } - - /** - * EJB 1.1 specification - * Section: 6.10.6 and 9.2.8 - */ - public void validateMatchingBeanCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - if (method == null) { - return; - } - - // Each create method must be named "create", and it must match one of the - // ejbCreate methods defined in the enterprise Bean class. The matching - // ejbCreate method must have the same number and types of its arguments. - // (Note that the return type is different.) - JavaClass beanClass = bean.getEjbClass(); - ValidationRuleUtility.isValidTypeHierarchy(bean, beanClass); - - Method ejbCreateMethod = ValidationRuleUtility.getMethodExtended(beanClass, method, IMethodAndFieldConstants.METHODNAME_EJBCREATE); - if (ejbCreateMethod == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2026, IEJBValidationContext.ERROR, bean, clazz, method, new String[] { beanClass.getName()}, this); - vc.addMessage(message); - return; - } - - // Section 6.10.6 (session), 9.2.8 (entity), declare that all exceptions declared - // on the ejbCreate, ejbPostCreate methods must be defined in the throws clause of - // the matching create of the home interface. - /* - // Don't check for the exceptions here - let the bean class do it. When the home - // changes, a "dependent" validation of the bean's checks should be done automatically. - // If it is checked in this method as well, there are duplicate messages on the task list. - HashSet exceptions = getNotSubsetExceptions(method, ejbCreateMethod); - if(exceptions.size() > 0) { - Iterator iterator = exceptions.iterator(); - while(iterator.hasNext()) { - JavaClass exc = (JavaClass)iterator.next(); - String[] msgParm = {exc.getQualifiedName()}; - addValidationMessage(IEJBValidationContext.ERROR, IMessagePrefixEjb11Constants.EJB_METHOD_THROW_NOTHI_EXCEP, msgParm, ejbCreateMethod, EJB_HOME_GROUP); // since we're adding the message to the bean class, we need to mark it like the bean class would; i.e., a home-dependent message - } - } - */ - } - - protected void validateAppendixB(IEJBValidationContext vc, EnterpriseBean bean, JavaClass thisHome) { - // The Java inheritance structure must match the EJB inheritance structure. - // e.g. if EJB B is a child of EJB A, then class B must be a child of class A. - // B could be a grandchild (or great-grandchild or ...) of A. - - if(bean == null) { - // bean has no supertype - return; - } - EnterpriseBean supertype = getSuperType(bean); - JavaClass parentHome = null; - if (supertype != null) { - // check this CMP's supertype - parentHome = supertype.getHomeInterface(); - - // Home a Xchild of parent Home - // In our EJB component inheritance structure, while it is legal for - // a home to inherit from another home, (section B.2), it is not legal - // for WSA component inheritance structure. - try { - ValidationRuleUtility.isValidType(thisHome); - ValidationRuleUtility.isValidType(parentHome); - if (ValidationRuleUtility.isAssignableFrom(thisHome, parentHome)) { - String[] msgParm = new String[] { thisHome.getQualifiedName(), parentHome.getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2104, IEJBValidationContext.ERROR, bean, thisHome, msgParm, this); - vc.addMessage(message); - } - } - catch (InvalidInputException e) { - String[] msgParm = { e.getJavaClass().getQualifiedName(), bean.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2849, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateKeyClass.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateKeyClass.java deleted file mode 100644 index c2bbb70b8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateKeyClass.java +++ /dev/null @@ -1,132 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.List; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * This class checks entity key classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section 9.2.9 -*/ -public abstract class AValidateKeyClass extends AValidateEJB { - public Object getTarget(Object parent, Object clazz) { - if (parent == null) { - return null; - } - - return ((Entity) parent).getPrimaryKey(); - } - - public final List[] getMethodsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // Never check that a key class' method is defined on another class - // of the bean. - return null; - } - - public final List[] getFieldsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // Never check that a key class' field is defined on another class - // of the bean. - return null; - } - - /** - * Return true if the method can, and should, be validated. - * Filter out faulty methods (i.e., null), and methods which - * belong to the base type, whatever that is. (e.g. java.lang.Object) - */ - protected boolean isValid(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) throws InvalidInputException { - if (super.isValid(vc, bean, clazz, method, methodsExtendedList)) { - // exclude root object methods - if (!ValidationRuleUtility.isJavaLangObjectMethod(bean, method)) { - return true; - } - } - return false; - } - - /** - * EJB 1.1 specification - * Section: 9.2.9 - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - vc.terminateIfCancelled(); - - validateLegalRMIType(vc, bean, clazz); - - if (ValidationRuleUtility.isUnnamedPackage(clazz.getJavaPackage())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2041, IEJBValidationContext.INFO, bean, clazz, this); - vc.addMessage(message); - } - } - - /** - * Verifies that a given class is a legal Value Type in RMI-IIOP. - * - * Java Remote MethodInvocation - * Specification - * - * Revision 1.7, Java 2 SDK, Standard Edition, v1.3.0, December 1999 - * - * Section: 2.6 - */ - public final void validateLegalRMIType(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - vc.terminateIfCancelled(); - - ValidationRuleUtility.isValidType(clazz); - - if (!ValidationRuleUtility.isLegalRMI_IIOPType(bean, clazz)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2019, IEJBValidationContext.INFO, bean, clazz, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - } - - /** - * EJB 1.1 specification - * Section: 9.2.9 - */ - public void validateMethodExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - // The class must provide suitable implementation of the hashCode() and - // equals(Object other) methods to simplify the management of the primary keys - // by client code. - Method hashCodeMethod = ValidationRuleUtility.getMethodExtended(clazz, IMethodAndFieldConstants.METHODNAME_HASHCODE, new JavaHelpers[0]); - if ((hashCodeMethod == null) || ValidationRuleUtility.isJavaLangObjectMethod(bean, hashCodeMethod)) { - // EJB 1.0 did not require this method, so this is a warning instead of an error. - String[] msgParm = { clazz.getQualifiedName(), IMethodAndFieldConstants.METHODSIGNATURE_HASHCODE}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2001, IEJBValidationContext.WARNING, bean, clazz, msgParm, this); - vc.addMessage(message); - } - - Method equalsMethod = ValidationRuleUtility.getMethodExtended(clazz, IMethodAndFieldConstants.METHODNAME_EQUALS, new JavaHelpers[]{ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT, bean)}); - if ((equalsMethod == null) || (ValidationRuleUtility.isJavaLangObjectMethod(bean, equalsMethod))) { - // EJB 1.0 did not require this method, so this is a warning instead of an error. - String[] msgParm = { clazz.getQualifiedName(), IMethodAndFieldConstants.METHODSIGNATURE_EQUALS }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2001, IEJBValidationContext.WARNING, bean, clazz, msgParm, this); - vc.addMessage(message); - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateRemote.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateRemote.java deleted file mode 100644 index d1f3bd3ee..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidateRemote.java +++ /dev/null @@ -1,259 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.List; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * This class checks remote interface classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * The checks for a session remote interface and an entity remote interface are the same - * in EJB 1.1. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 6.10.5 and 9.2.7 - */ -public abstract class AValidateRemote extends AValidateEJB { - public final Object getTarget(Object parent, Object clazz) { - if(parent == null) { - return null; - } - - return ((EnterpriseBean)parent).getRemoteInterface(); - } - - public final List[] getMethodsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // A home or component class needs the following classes' extended methods: - // 1. bean class - List[] result = new List[1]; - JavaClass beanClass = bean.getEjbClass(); - if(beanClass == null) { - result[0] = null; - } - else { - result[0] = beanClass.getMethodsExtended(); - } - return result; - } - - public final List[] getFieldsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // Never check that a home or component's field is defined on another class - // of the bean. - return null; - } - - /** - * Return true if the method can, and should, be validated. - * Filter out faulty methods (i.e., null), and methods which - * belong to the base type, whatever that is. (e.g. java.lang.Object) - */ - protected boolean isValid(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) throws InvalidInputException { - if (super.isValid(vc, bean, clazz, method, methodsExtendedList)) { - // Exclude root remote interface methods - if (ValidationRuleUtility.isEJBObjectMethod(bean, method)) { - return false; - } - else if (isEjbRelationshipRoleMethod(vc, bean, clazz, method)) { - return false; - } - else if (ValidationRuleUtility.isClinitMethod(bean, method)) { - return false; - } - else { - return true; - } - } - return false; - } - - /** - * Check the remote interface's methods against the EJB 1.1 spec. - * Section: 6.10.5 and 9.2.7 - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method riMethod) throws InvalidInputException { - // Can't invoke an abstract method - // super.validateExistence(riMethod); - - vc.terminateIfCancelled(); - - // The methods defined in this interface must follow the rules for RMI/IIOP. - validateLegalRMIMethod(vc, bean, clazz, riMethod); - - // For each method defined in the remote interface, there must be a matching - // method in the session bean's class. - validateMethod_beanDep(vc, bean, clazz, riMethod); - - } - - /** - * Checks to see if @ejbMethod is one of the required methods. - */ - protected void primValidateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - //super.validateExistence(ejbMethod); - - //There are no required methods. - } - - /** - * Check that the remote interface class definition follows the EJB 1.1 spec. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 6.10.5 and 9.2.7 - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - vc.terminateIfCancelled(); - - // It must be an interface, not a class. - if (!clazz.isInterface()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2012, IEJBValidationContext.ERROR, bean, clazz, this); - vc.addMessage(message); - } - - // The interface must extend the javax.ejb.EJBObject interface. - JavaHelpers javaxEjbObject = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_EJB_EJBOBJECT, bean); - if (!ValidationRuleUtility.isAssignableFrom(clazz, javaxEjbObject)) { - String[] msgParm = { ITypeConstants.CLASSNAME_JAVAX_EJB_EJBOBJECT }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2017, IEJBValidationContext.ERROR, bean, clazz, msgParm, this); - vc.addMessage(message); - } - - if (ValidationRuleUtility.isUnnamedPackage(clazz.getJavaPackage())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2041, IEJBValidationContext.INFO, bean, clazz, this); - vc.addMessage(message); - } - - validateAppendixB(vc, bean, clazz); - } - - /** - * EJB 1.1 specification - * Section: 6.10.5 and 9.2.7 - */ - public void validateMatchingBeanMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method remoteMethod) throws InvalidInputException { - vc.terminateIfCancelled(); - if (remoteMethod == null) { - return; - } - - JavaClass beanClass = bean.getEjbClass(); - ValidationRuleUtility.isValidTypeHierarchy(bean, beanClass); - - Method beanMethod = ValidationRuleUtility.getMethodExtended(beanClass, remoteMethod, remoteMethod.getName()); - if (beanMethod == null) { - String[] msgParm = { beanClass.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2023, IEJBValidationContext.ERROR, bean, clazz, remoteMethod, msgParm, this); - vc.addMessage(message); - return; - } - - ValidationRuleUtility.isValidType(ValidationRuleUtility.getType(remoteMethod.getReturnType())); - - try { - ValidationRuleUtility.isValidType(ValidationRuleUtility.getType(beanMethod.getReturnType())); - } - catch (InvalidInputException e) { - // Let the validation of the bean class report the reflection warning. - // Don't do any validation based on that method. - return; - } - - // Check if return types match - vc.terminateIfCancelled(); - if (!ValidationRuleUtility.isAssignableFrom(remoteMethod.getReturnType(), beanMethod.getReturnType())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2415, IEJBValidationContext.ERROR, bean, clazz, remoteMethod, new String[] { beanMethod.getReturnType().getJavaName(), beanClass.getName()}, this); - vc.addMessage(message); - } - - - // Section 6.10.5 (session), 9.2.7 (entity), declare that all exceptions declared - // on the ejbCreate, ejbPostCreate methods must be defined in the throws clause of - // the matching create of the remote interface. - /* - // Don't check for the exceptions here - let the bean class do it. When the remote - // changes, a "dependent" validation of the bean's checks should be done automatically. - // If it is checked in this method as well, there are duplicate messages on the task list. - HashSet exceptions = getNotSubsetExceptions(remoteMethod, beanMethod); - if(exceptions.size() > 0) { - Iterator iterator = exceptions.iterator(); - while(iterator.hasNext()) { - JavaClass exc = (JavaClass)iterator.next(); - String[] msgParm = {exc.getQualifiedName()}; - addValidationMessage(IEJBValidationContext.ERROR, IMessagePrefixEjb11Constants.EJB_METHOD_THROW_NOTRI_EXCEP, msgParm, beanMethod, EJB_BEAN_GROUP); - } - } - */ - } - - /** - * Check the remote interface's methods against the EJB 1.1 spec. - * Section: 6.10.5 and 9.2.7 - */ - public void validateMethod_beanDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method riMethod) throws InvalidInputException { - vc.terminateIfCancelled(); - // For each method defined in the remote interface, there must be a matching - // method in the session bean's class. - validateMatchingBeanMethod(vc, bean, clazz, riMethod); - } - - /** - * Final check to see if required methods were detected. - */ - protected void validateMethodExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - //There are no required methods. - } - - protected void validateAppendixB(IEJBValidationContext vc, EnterpriseBean bean, JavaClass thisRemote) { - // The Java inheritance structure must match the EJB inheritance structure. - // e.g. if EJB B is a child of EJB A, then class B must be a child of class A. - // B could be a grandchild (or great-grandchild or ...) of A. - if(bean == null) { - return; - } - EnterpriseBean supertype = getSuperType(bean); - JavaClass parentRemote = null; - if (supertype != null) { - parentRemote = supertype.getRemoteInterface(); - - // Remote a Xchild of parent Remote - try { - ValidationRuleUtility.isValidType(thisRemote); - ValidationRuleUtility.isValidType(parentRemote); - if (!ValidationRuleUtility.isAssignableFrom(thisRemote, parentRemote)) { - String[] msgParm = new String[] { thisRemote.getQualifiedName(), parentRemote.getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2105, IEJBValidationContext.ERROR, bean, thisRemote, msgParm, this); - vc.addMessage(message); - } - } - catch (InvalidInputException e) { - String[] msgParm = { e.getJavaClass().getQualifiedName(), bean.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2849, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidationRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidationRule.java deleted file mode 100644 index 08d5d7b38..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AValidationRule.java +++ /dev/null @@ -1,123 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.internal.EjbModuleExtensionHelper; -import org.eclipse.jst.j2ee.internal.IEJBModelExtenderManager; -import org.eclipse.wst.validation.internal.core.ValidationException; - - -/** - * @version 1.0 - * @author - */ -public abstract class AValidationRule implements IValidationRule { - - private Set _dependents = null; - - protected EjbModuleExtensionHelper modHelper = null; - - /* - * @see IValidationRule#addDependent(IValidationRule) - */ - public void addDependent(IValidationRule rule) { - if (rule == null) { return; } - - if (_dependents == null) { - _dependents = new HashSet(); - } - - _dependents.add(rule); - } - - /* - * @see IValidationRule#getDependents() - */ - public Set getDependents() { - return _dependents; - } - - protected EjbModuleExtensionHelper getEjbExtensionHelper(Object context) { - return IEJBModelExtenderManager.INSTANCE.getEJBModuleExtension(context); - } - - /** - * @param EnterpriseBean - * @return EnterpriseBean return the super type of an EnterpriseBean by - * loading the extnension plugin if extension plugin fails to load - * return null - */ - public final EnterpriseBean getSuperType(EnterpriseBean enterpriseBean) { - EnterpriseBean superType = null; - EjbModuleExtensionHelper aModHelper = getEjbExtensionHelper(enterpriseBean); - if (aModHelper != null) superType = aModHelper.getSuperType(enterpriseBean); - return superType; - } - - /** - * @param EnterpriseBean - * @return String - super type file name return the super type file of an - * EnterpriseBean by loading the extnension plugin if extension - * plugin fails to load return null - */ - public final String getEJBInheritanceFileName() { - String superTypeFileName = null; - // TODO MDE Revisit this after the drop - EjbModuleExtensionHelper aModHelper = getEjbExtensionHelper(null); - if (aModHelper != null) superTypeFileName = aModHelper.getEJBInheritanceFileName(); - return superTypeFileName; - } - - /** - * @param EnterpriseBean - * @return List - extended role names return the extended role method name - * of an EnterpriseBean by loading the extnension plugin if - * extension plugin fails to load return null - */ - public final List getRoleMethodNamesExtended(EnterpriseBean enterpriseBean) { - List roleNameExtended = null; - EjbModuleExtensionHelper aModHelper = getEjbExtensionHelper(enterpriseBean); - if (aModHelper != null && enterpriseBean.isContainerManagedEntity()) - roleNameExtended = aModHelper.getRoleMethodNamesExtended((ContainerManagedEntity) enterpriseBean); - return roleNameExtended; - } - - /* - * @see IValidationRule#preValidate(IEJBValidationContext, Object, Object) - */ - public void preValidate(IEJBValidationContext vc, Object targetParent, Object target) - throws ValidationCancelledException, ValidationException { - // By default, allocate nothing. - } - - /* - * @see IValidationRule#postValidate(IEJBValidationContext, Object, Object) - */ - public void postValidate(IEJBValidationContext vc, Object targetParent, Object target) - throws ValidationCancelledException, ValidationException { - // By default, assume that nothing was allocated in preValidate. - } - - /* - * @see IValidationRule#reset() - */ - public void reset() { - // By default, assume that nothing needs to be reset - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AbstractEJBValidationRuleFactory.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AbstractEJBValidationRuleFactory.java deleted file mode 100644 index 47f92a055..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AbstractEJBValidationRuleFactory.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Abstract class for EJB Validation rules - */ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Iterator; -import java.util.Set; -import java.util.logging.Level; - -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.ejb.EJBJar; - -/** - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public abstract class AbstractEJBValidationRuleFactory { - - /** - * - */ - public AbstractEJBValidationRuleFactory() { - //Default - } - - protected HashMap _ruleList = null; - - public void release(IValidationRule rule) { - if(rule == null) { - return; - } - - // Since we don't put a lock on the rule when it's checked out via getRule(Object), - // there's nothing to do other than reset the rule to prepare it for reuse. - rule.reset(); - } - - protected Iterator addDependentRuleToRuleList() { - Iterator iterator = _ruleList.values().iterator(); - while(iterator.hasNext()) { - IValidationRule rule = (IValidationRule)iterator.next(); - Object[] ids = rule.getDependsOn(); - if(ids == null) { - continue; - } - - for(int i=0; i<ids.length; i++) { - IValidationRule dRule = (IValidationRule)_ruleList.get(ids[i]); - if(dRule != null) { - dRule.addDependent(rule); - } - } - } - return iterator; - } - - protected void logAllDependentRules() { - Iterator iterator; - Logger logger = getMsgLogger(); - if (logger.isLoggingLevel(Level.FINEST)) { - iterator = _ruleList.values().iterator(); - Iterator depIterator = null; - while(iterator.hasNext()) { - IValidationRule rule = (IValidationRule)iterator.next(); - Set dependents = rule.getDependents(); - StringBuffer buffer = new StringBuffer(); - buffer.append("list of dependents for rule:"); //$NON-NLS-1$ - buffer.append(rule.getClass().getName()); - buffer.append("\n"); //$NON-NLS-1$ - if(dependents != null) { - depIterator = dependents.iterator(); - while(depIterator.hasNext()) { - IValidationRule dRule = (IValidationRule)depIterator.next(); - buffer.append("\t"); //$NON-NLS-1$ - buffer.append(dRule.getClass().getName()); - buffer.append("\n"); //$NON-NLS-1$ - } - } - buffer.append("\n"); //$NON-NLS-1$ - logger.write(Level.FINEST, buffer.toString()); - } - } - } - - /** - * @return - */ - protected abstract Logger getMsgLogger(); - - protected EJBJar getEJBJar(IEJBValidationContext vc) { - return (EJBJar)vc.loadModel(EJBValidatorModelEnum.EJB_MODEL); - } - - /** - * This method will return the identified IValidationRule. - * If the ruleid is not registered, or if there is a problem - * instantiating the IValidationRule, then null will be returned. - */ - public IValidationRule getRule(IEJBValidationContext vc, Object ruleId) { - // To avoid loading a rule until it is needed, intialize - // the list with a rule id as the key, and a String class name - // as a value. When a rule is loaded, if the value is a String, - // then the IValidationRule has not been instantiated. Create an - // instance and store that in place of the String. If the value - // is already an IValidationRule instance, return it. - - Object rule = _ruleList.get(ruleId); - if(rule == null) { - // No such ruleId registered. - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINE)) { - logger.write(Level.FINE, "Cannot load rule from ruleId: " + ruleId); //$NON-NLS-1$ - } - return null; - } - - return (IValidationRule)rule; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AbstractEJBValidator.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AbstractEJBValidator.java deleted file mode 100644 index 3b6f105ad..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/AbstractEJBValidator.java +++ /dev/null @@ -1,320 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Nov 24, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.model.internal.validation; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; -import java.util.Vector; -import java.util.logging.Level; - -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; -import org.eclipse.wst.validation.internal.provisional.core.IValidationContext; -/** - * @author vijayb - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public abstract class AbstractEJBValidator extends J2EEValidator { - protected Map _validated = null; - /** - * - */ - public AbstractEJBValidator() { - super(); - _validated = new HashMap(); - } - - protected void logMissingRule(IEJBValidationContext vc, Object ruleId) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, ruleId + " = null"); //$NON-NLS-1$ - } - addInternalErrorMessage(vc); - } - protected void addInternalErrorMessage(IEJBValidationContext vc) { - addInternalErrorMessage(vc, null); - } - - protected void addInternalErrorMessage(IEJBValidationContext vc, Throwable exc) { - IMessage mssg = vc.getMessage(); - mssg.setId(internalErrorMessage()); - vc.addMessage(mssg); - if(exc != null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, exc); - } - } - } - - protected Map removeOldMessages(IEJBValidationContext vc,Map targets) throws ValidationException { - if(vc.getURIs() == null) { - // Full validation - vc.removeAllMessages(); // Remove messages from the EJBJar. - vc.loadModel(removeOldMessagesString(), new Object[]{vc.getReporter(), null}); // Remove messages from any EJB client JAR files or Java Utility JAR files. - return null; - } - preRemoveOldMessages(vc,targets); // Get the list of targets to be validated, and remove messages from all of them. - - // Remove the messages from all of the changed files and their dependents. - vc.loadModel(removeOldMessagesString(), new Object[]{vc.getReporter(), targets}); - return targets; - } - /** - * @param vc - * @param delta - * @param targets - */ - protected void preRemoveOldMessages(IEJBValidationContext vc,Map targets) throws ValidationException { - //Default - } - /** - * @return - */ - protected String removeOldMessagesString() { - return null; - } - /** - * @return - */ - private String internalErrorMessage() { - return null; - } - /* - * (non-Javadoc) - * - * @see org.eclipse.wst.validation.internal.core.core.IValidator#validate(org.eclipse.wst.validation.internal.core.core.IHelper, - * org.eclipse.wst.validation.internal.core.core.IReporter, - * org.eclipse.wst.validation.internal.core.core.IFileDelta[]) - */ - public void validate(IValidationContext helper, IReporter reporter) throws ValidationException { - //Default - super.validate(helper, reporter); - } - - public void run(IValidationRule rule, Object targetParent, Object target) throws ValidationException { - if(isValidated(rule.getId(), targetParent, target)) { - // Whether or not this is a full or incremental run, don't revalidate this target - // if it has already been validated. (e.g. if a class is used by more than one bean, - // and say one bean is stateless and one is stateful, and everything else about the - // beans are identical, don't validate that class again.) - return; - } - - try { - rule.preValidate(getValidationContext(), targetParent, target); - rule.validate(getValidationContext(), targetParent, target); - rule.postValidate(getValidationContext(), targetParent, target); - } - catch(ValidationCancelledException exc) { - // Clean up the messages which are on the task list? Or is it nicer to leave them behind? - } - catch(ValidationException e) { - throw e; - } - catch(Throwable exc) { - addInternalErrorMessage(getValidationContext(), exc); - } - finally { - setValidated(rule.getId(), targetParent, target); - releaseRules(rule); - } - } - - /** - * @param rule - */ - protected abstract void releaseRules(IValidationRule rule); - - private IEJBValidationContext _vc = null; - - protected IEJBValidationContext getValidationContext() { - return _vc; - } - protected void setValidationContext(IEJBValidationContext vc) { - _vc = vc; - } - - /** - * This class is public only for the EJBHelper. - */ - public class TargetObject { - private Object _parent = null; - private Object _target = null; - - public TargetObject() { - //Default - } - - public Object getTargetParent() { - return _parent; - } - - public Object getTarget() { - return _target; - } - - public void setTargetParent(Object tp) { - _parent = tp; - } - - public void setTarget(Object t) { - _target = t; - } - - public int hashCode() { - int parent = (getTargetParent() == null) ? 0 : getTargetParent().hashCode(); - int target = (getTarget() == null) ? 0 : getTarget().hashCode(); - return parent + target; - } - - public boolean equals(Object o) { - if(o == null) { - return false; - } - - if(this == o) { - return true; - } - - if(!(o instanceof TargetObject)) { - return false; - } - - Object thisParent = this.getTargetParent(); - Object oParent = ((TargetObject)o).getTargetParent(); - Object thisTarget = this.getTarget(); - Object oTarget = ((TargetObject)o).getTarget(); - - if((thisParent == null) && (oParent == null)) { - // check target - } - else if((thisParent != null) && (oParent != null)) { - if(thisParent.equals(oParent)) { - // check target - } - else { - return false; - } - } - else { - return false; - } - - if((thisTarget == null) && (oTarget == null)) { - return true; - } - else if((thisTarget != null) && (oTarget != null)) { - return (thisTarget.equals(oTarget)); - } - else { - return false; - } - } - } - - - public void setValidated(Object key, Object targetParent, Object target) { - Set done = null; - if(_validated.containsKey(key)) { - done = (Set)_validated.get(key); - } - else { - done = new HashSet(); - } - - done.add(getTargetObjectPool().getTargetObject(targetParent, target)); - _validated.put(key, done); - } - - - protected class TargetObjectPool { - private int _growSize = 0; - private Vector _pool = null; - - public TargetObjectPool(int initialSize) { - _growSize = initialSize; - _pool = new Vector(initialSize, _growSize); - grow(); - } - - private void grow() { - for(int i=0; i<_growSize; i++) { - _pool.add(new TargetObject()); - } - } - - public TargetObject getTargetObject(Object targetParent, Object target) { - if(_pool.size() <= 0) { - grow(); - } - TargetObject obj = (TargetObject)_pool.remove(0); - obj.setTargetParent(targetParent); - obj.setTarget(target); - return obj; - } - - public void release(TargetObject obj) { - obj.setTargetParent(null); - obj.setTarget(null); - _pool.add(obj); - } - } - - protected abstract TargetObjectPool getTargetObjectPool(); - - public boolean isValidated(Object key, Object targetParent, Object target) { - if(!_validated.containsKey(key)) { - return false; - } - - - Set done = (Set)_validated.get(key); - TargetObject temp = getTargetObjectPool().getTargetObject(targetParent, target); - try { - if(done.contains(temp)) { - return true; - } - - return false; - } - finally { - getTargetObjectPool().release(temp); - } - } - public void cleanup(IReporter reporter) { - Iterator iterator = _validated.keySet().iterator(); - while(iterator.hasNext()) { - Set done = (Set)_validated.get(iterator.next()); - Iterator toIterator = done.iterator(); - while(toIterator.hasNext()) { - TargetObject to = (TargetObject)toIterator.next(); - getTargetObjectPool().release(to); - } - done.clear(); - } - _validated.clear(); - setValidationContext(null); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ApplicationClientMessageConstants.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ApplicationClientMessageConstants.java deleted file mode 100644 index 7e73b75a0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ApplicationClientMessageConstants.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - - - - -/** - * Insert the type's description here. - * Creation date: (4/9/2001 11:49:47 AM) - * @author: Administrator - */ -public interface ApplicationClientMessageConstants extends org.eclipse.jst.j2ee.model.internal.validation.J2EEMessageConstants { - public static final String APPCLIENT_MODEL_NAME = "APPLICATIONCLIENT_VALIDATION"; //$NON-NLS-1$ - public static final String INVALID_DD = "INVALID_DD"; //$NON-NLS-1$ - public static final String ERROR_EJB_REFS = "ERROR_EJB_REFS"; //$NON-NLS-1$ - public static final String APPLICATIONCLIENT_VALIDATOR_ID = "APPLICATIONCLIENT_VALIDATOR"; //$NON-NLS-1$ - public static final String ERROR_APPCLIENT_INVALID_APPCLIENT_FILE = "ERROR_APPLICATIONCLIENT_INVALID_APPCLIENT_FILE"; //$NON-NLS-1$ - public static final String MESSAGE_APPCLIENT_MISSING_URI = "MESSAGE_APPCLIENT_MISSING_URI"; //$NON-NLS-1$ - public static final String ERROR_APPCLIENT_VALIDATION_FAILED = "ERROR_APPCLIENT_VALIDATION_FAILED"; //$NON-NLS-1$ - public static final String APPCLIENT_DD_PARSE_LINECOL = "APPCLIENT_DD_PARSE_LINECOL"; //$NON-NLS-1$ - public static final String APPCLIENT_DD_PARSE_LINE = "APPCLIENT_DD_PARSE_LINE"; //$NON-NLS-1$ - public static final String APPCLIENT_DD_CANNOT_OPEN_DD = "APPCLIENT_DD_CANNOT_OPEN_DD"; //$NON-NLS-1$ - public static final String APPCLIENT_DD_PARSE_NOINFO = "APPCLIENT_DD_PARSE_NOINFO"; //$NON-NLS-1$ - public static final String APPCLIENT_DUP_RES_ENV_REF_ERROR_ = "APPCLIENT_DUP_RES_ENV_REF_ERROR_"; //$NON-NLS-1$ - public static final String APPCLIENT_DUP_EJB_REF_ERROR_ = "APPCLIENT_DUP_EJB_REF_ERROR_"; //$NON-NLS-1$ - public static final String APPCLIENT_MAIN_CLASS_ERROR_ = "APPCLIENT_MAIN_CLASS_ERROR_"; //$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ApplicationClientValidator.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ApplicationClientValidator.java deleted file mode 100644 index d6a4f44e9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ApplicationClientValidator.java +++ /dev/null @@ -1,157 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.emf.common.command.Command; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ApplicationClientFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ValidateXmlCommand; -import org.eclipse.wst.validation.internal.core.Message; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; -import org.eclipse.wst.validation.internal.provisional.core.IValidationContext; - - - -/** - * Validates the applicatin-client.xml - */ -public class ApplicationClientValidator extends J2EEValidator implements ApplicationClientMessageConstants { - protected ApplicationClientFile appClientFile; - protected ApplicationClient appClientDD; - - /** - * ApplicationClientValidator constructor comment. - */ - public ApplicationClientValidator() { - super(); - }// ApplicationClientValidator - - /** - * <p>Answer the id of the resource bundle which is - * used by the receiver.</p> - */ - public String getBaseName() { - return APLICATIONCLIENT_CATEGORY; - }// getBaseName - - /** - * XML Validator now handles validation of Deployment Descriptor - * - * @throws ValidationException - */ - public void validate() throws ValidationException { - validateMainClassInManifest(); - }// validate - - protected void validateMainClassInManifest() { - - if (appClientFile != null && appClientFile.getManifest() != null) { - String mainClass = appClientFile.getManifest().getMainClass(); - if (mainClass == null || mainClass.length() == 0) { - Object target = getManifestTarget(); - addError(getBaseName(), APPCLIENT_MAIN_CLASS_ERROR_, new String[0], target); - } - } - } - - protected Object getManifestTarget() { - return null; - } - /** - * Does the validation. - * - * @throws ValidationException - */ - public void validate(IValidationContext inHelper, IReporter inReporter) - throws ValidationException { - - validateInJob(inHelper, inReporter); - }// validate - /** - * Creates the validate xml command. - * - * @return Command - */ - public Command createValidateXMLCommand() { - Command cmd = new ValidateXmlCommand(appClientFile); - return cmd; - }// createValidateXMLCommand - - /** - * Gets the appClientFile. - * - * @return ApplicationClientFile - */ - public ApplicationClientFile getAppClientFile() { - return appClientFile; - }// getAppClientFile - - /** - * Sets the appClientFile. - * - * @param ApplicatonClientFile appClientFile - The appClientFile to set - */ - public void setAppClientFile(ApplicationClientFile appClientFile) { - this.appClientFile = appClientFile; - }// setAppClientFile - - /** - * Gets the appClientDD. - * - * @return ApplicationClient - */ - public ApplicationClient getAppClientDD() { - return appClientDD; - }// getAppClientDD - - /** - * Sets the appClientDD. - * - * @param ApplicationClient appClientDD - The appClientDD to set - */ - public void setAppClientDD(ApplicationClient appClientDD) { - this.appClientDD = appClientDD; - }// setAppClientDD - - public ISchedulingRule getSchedulingRule(IValidationContext helper) { - return null; - } - - public IStatus validateInJob(IValidationContext inHelper, IReporter inReporter) - throws ValidationException { - - try { - super.validateInJob(inHelper, inReporter); - _reporter.removeAllMessages(this, null); - - setAppClientFile( (ApplicationClientFile) inHelper.loadModel(APPCLIENT_MODEL_NAME) ); - if ( appClientFile != null ) { - setAppClientDD( appClientFile.getDeploymentDescriptor() ); - validate(); - } else { - IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_APPCLIENT_INVALID_APPCLIENT_FILE); - throw new ValidationException(errorMsg); - }// if - } catch (ValidationException ex) { - throw ex; - } catch (Exception e) { - IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_APPCLIENT_VALIDATION_FAILED); - throw new ValidationException(errorMsg, e); - }// try - return status; - } -}// ApplicationClientValidator diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPBeanClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPBeanClassVRule.java deleted file mode 100644 index 58607c92d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPBeanClassVRule.java +++ /dev/null @@ -1,303 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public final class BMPBeanClassVRule extends AEntityBeanClassVRule implements IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_BMP_BEANCLASS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_BMP_HOME, IValidationRuleList.EJB20_BMP_LOCALHOME, IValidationRuleList.EJB20_BMP_REMOTE, IValidationRuleList.EJB20_BMP_LOCAL, IValidationRuleList.EJB20_BMP_KEYCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".bb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_ENTITYBEAN}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = new long[]{LOCAL_COMPONENT_INTERFACE, REMOTE_COMPONENT_INTERFACE}; - - private final boolean SHOULD_BE_ABSTRACT = false; - private final boolean SHOULD_BE_FINAL = false; - private final boolean SHOULD_BE_PUBLIC = true; - private final boolean SHOULD_VALIDATE_TRANSIENT_FIELD = false; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{CONSTRUCTOR_NOPARM, EJBFINDBYPRIMARYKEY, SETENTITYCONTEXT, UNSETENTITYCONTEXT_NOPARM, EJBACTIVATE_NOPARM, EJBPASSIVATE_NOPARM, EJBREMOVE_NOPARM, EJBLOAD_NOPARM, EJBSTORE_NOPARM}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{FINALIZE_NOPARM}; - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CONSTRUCTOR_NOPARM, CONSTRUCTOR, EJBCREATE, EJBPOSTCREATE, EJBHOME, FINALIZE_NOPARM, EJBFINDBYPRIMARYKEY, EJBFIND, SETENTITYCONTEXT, UNSETENTITYCONTEXT_NOPARM, EJBACTIVATE_NOPARM, EJBPASSIVATE_NOPARM, EJBREMOVE_NOPARM, EJBLOAD_NOPARM, EJBSTORE_NOPARM, FINALIZE_NOPARM, BUSINESS}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2014, new String[]{CHKJ2014+EXT}); - MESSAGE_IDS.put(CHKJ2015, new String[]{CHKJ2015+EXT}); - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2022, new String[]{CHKJ2022+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_constr, new String[]{CHKJ2050_constr+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbCreate, new String[]{CHKJ2050_ejbCreate+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbFindByPrimaryKey, new String[]{CHKJ2050_ejbFindByPrimaryKey+EXT}); - MESSAGE_IDS.put(CHKJ2050_setEntityContext, new String[]{CHKJ2050_setEntityContext+EXT}); - MESSAGE_IDS.put(CHKJ2050_unsetEntityContext, new String[]{CHKJ2050_unsetEntityContext+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbActivate, new String[]{CHKJ2050_ejbActivate+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbPassivate, new String[]{CHKJ2050_ejbPassivate+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbRemove, new String[]{CHKJ2050_ejbRemove+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbLoad, new String[]{CHKJ2050_ejbLoad+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbStore, new String[]{CHKJ2050_ejbStore+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbSelect, new String[]{CHKJ2050_ejbSelect+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbFind, new String[]{CHKJ2050_ejbFind+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbPostCreate, new String[]{CHKJ2050_ejbPostCreate+EXT}); - - MESSAGE_IDS.put(CHKJ2103, new String[]{CHKJ2103+SPEC}); - - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2407, new String[]{CHKJ2407+BEXT, CHKJ2407+MEXT}); - - MESSAGE_IDS.put(CHKJ2411, new String[]{CHKJ2411+BEXT, CHKJ2411+MEXT}); - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2421, new String[]{CHKJ2421+BEXT, CHKJ2421+MEXT}); - MESSAGE_IDS.put(CHKJ2422, new String[]{CHKJ2422+BEXT, CHKJ2422+MEXT}); - MESSAGE_IDS.put(CHKJ2423, new String[]{CHKJ2423+BEXT, CHKJ2423+MEXT}); - MESSAGE_IDS.put(CHKJ2424, new String[]{CHKJ2424+BEXT, CHKJ2424+MEXT}); - MESSAGE_IDS.put(CHKJ2426, new String[]{CHKJ2426+BEXT, CHKJ2426+MEXT}); - MESSAGE_IDS.put(CHKJ2427, new String[]{CHKJ2427+BEXT, CHKJ2427+MEXT}); - MESSAGE_IDS.put(CHKJ2428, new String[]{CHKJ2428+BEXT, CHKJ2428+MEXT}); - - MESSAGE_IDS.put(CHKJ2430, new String[]{CHKJ2430+BEXT, CHKJ2430+MEXT}); - MESSAGE_IDS.put(CHKJ2431, new String[]{CHKJ2431+BEXT, CHKJ2431+MEXT}); - MESSAGE_IDS.put(CHKJ2439, new String[]{CHKJ2439+BEXT, CHKJ2439+MEXT}); - - MESSAGE_IDS.put(CHKJ2441, new String[]{CHKJ2441+BEXT, CHKJ2441+MEXT}); - MESSAGE_IDS.put(CHKJ2442, new String[]{CHKJ2442+BEXT, CHKJ2442+MEXT}); - MESSAGE_IDS.put(CHKJ2443, new String[]{CHKJ2443+BEXT, CHKJ2443+MEXT}); - - MESSAGE_IDS.put(CHKJ2456, new String[]{CHKJ2456+ON_BASE, CHKJ2456+ON_THIS}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2457, new String[]{CHKJ2457+BEXT, CHKJ2457+MEXT}); - MESSAGE_IDS.put(CHKJ2458, new String[]{CHKJ2458+BEXT, CHKJ2458+MEXT}); - MESSAGE_IDS.put(CHKJ2459, new String[]{CHKJ2459+BEXT, CHKJ2459+MEXT}); - - MESSAGE_IDS.put(CHKJ2478, new String[]{CHKJ2478+BEXT, CHKJ2478+MEXT}); - - MESSAGE_IDS.put(CHKJ2492, new String[]{CHKJ2492+BEXT, CHKJ2492+MEXT}); - MESSAGE_IDS.put(CHKJ2493, new String[]{CHKJ2493+BEXT, CHKJ2493+MEXT}); - MESSAGE_IDS.put(CHKJ2494, new String[]{CHKJ2494+BEXT, CHKJ2494+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_ejbCreate, new String[]{CHKJ2500_ejbCreate+BEXT, CHKJ2500_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2500_ejbFind, new String[]{CHKJ2500_ejbCreate+BEXT, CHKJ2500_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2500_business, new String[]{CHKJ2500_ejbCreate+BEXT, CHKJ2500_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2502_finalize, new String[]{CHKJ2502_finalize+BEXT, CHKJ2502_finalize+MEXT}); - - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2503_ejbCreate, new String[]{CHKJ2503_ejbCreate+BEXT, CHKJ2503_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2503_ejbPostCreate, new String[]{CHKJ2503_ejbPostCreate+BEXT, CHKJ2503_ejbPostCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2503_ejbHome, new String[]{CHKJ2503_ejbHome+BEXT, CHKJ2503_ejbHome+MEXT}); - MESSAGE_IDS.put(CHKJ2503_ejbFind, new String[]{CHKJ2503_ejbFind+BEXT, CHKJ2503_ejbFind+MEXT}); - - MESSAGE_IDS.put(CHKJ2505_ejbRemove, new String[]{CHKJ2505_ejbRemove+BEXT, CHKJ2505_ejbRemove+MEXT}); - MESSAGE_IDS.put(CHKJ2505_ejbPostCreate, new String[]{CHKJ2505_ejbPostCreate+BEXT, CHKJ2505_ejbPostCreate+MEXT}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - public final boolean shouldValidateTransientField() { - return SHOULD_VALIDATE_TRANSIENT_FIELD; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - public final boolean shouldBeAbstract(JavaClass clazz) { - return SHOULD_BE_ABSTRACT; - } - - public final boolean shouldBeFinal(JavaClass clazz) { - return SHOULD_BE_FINAL; - } - - public final boolean shouldBePublic(JavaClass clazz) { - return SHOULD_BE_PUBLIC; - } - public final int isRemote() { - return NEITHER; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - - /* - * @see ABeanClassVRule#followEjbCreateReturnTypeRules(Method) - */ - public final JavaHelpers getEjbCreateReturnType(EnterpriseBean bean, Method method) { - return ((Entity)bean).getPrimaryKey(); - } - - public final String getEjbCreateReturnTypeName(EnterpriseBean bean, Method method) { - JavaHelpers retType = getEjbCreateReturnType(bean, method); - if(retType == null) { - return IEJBValidatorConstants.NULL_PRIMARY_KEY; - } - return retType.getJavaName(); - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this); - - if((methodType & EJBCREATE) == EJBCREATE) { - validateEjbCreateMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else if((methodType & EJBPOSTCREATE) == EJBPOSTCREATE) { - validateEjbPostCreateMethod(vc, bean, clazz, method); - } - else if((methodType & EJBFIND) == EJBFIND) { - validateEjbFindMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else if((methodType & EJBHOME) == EJBHOME) { - validateEjbHomeMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else if((methodType & EJBREMOVE_NOPARM) == EJBREMOVE_NOPARM) { - validateEjbRemoveMethod(vc, bean, clazz, method); - } - else if((methodType & BUSINESS) == BUSINESS) { - validateBusinessMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else { - // Method isn't supposed to be here. Let the validateMethodsWhichMustNotExist - // take care of it. - } - } - - public final String getMatchingHomeMethodName(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this); - - if((methodType & EJBCREATE) == EJBCREATE) { - return getMatchingEjbCreateMethodName(vc, method); - } - else if((methodType & EJBPOSTCREATE) == EJBPOSTCREATE) { - return getMatchingEjbPostCreateMethodName(vc, method); - } - else if((methodType & EJBFIND) == EJBFIND) { - return getMatchingEjbFindMethodName(vc, method); - } - else if((methodType & EJBHOME) == EJBHOME) { - return getMatchingEjbHomeMethodName(vc, method); - } - else if((methodType & EJBREMOVE_NOPARM) == EJBREMOVE_NOPARM) { - return getNoMatchingMethodName(vc, method); - } - else if((methodType & BUSINESS) == BUSINESS) { - return getMatchingBusinessMethodName(vc, method); - } - else { - // Method isn't supposed to be here. - return getNoMatchingMethodName(vc, method); - } - } - - public final void validateEjbFindMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - // # ejbFind methods - // IWAD4502 = This method must not exist on this class. Read section 10.5.5 of the EJB 2.0 specification. - // IWAD4507 = The container provides the ejbFind method implementation. Read section 10.6.2 of the EJB 2.0 specification. - // covered by the "must not exist" code? - - // IWAD4305 = This method must be public. Read section 12.2.5 of the EJB 2.0 specification. - if(!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2457, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - - // IWAD4306 = This method must not be final. Read section 12.2.5 of the EJB 2.0 specification. - if(method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2458, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4307 = This method must not be static. Read section 12.2.5 of the EJB 2.0 specification. - if(method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2459, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4308 = {0} must be a legal type for RMI-IIOP. Read section 12.2.5 of the EJB 2.0 specification. - validateRMI_IIOPTypeRules(vc, bean, clazz, method, methodsExtendedLists, false); // do not check if the return type is serializable - - // IWAD4309 = This method must return {0} or a collection thereof. Read section 12.2.5 of the EJB 2.0 specification. - // IWAD4312 = This method must return {0}. Read section 12.2.5 of the EJB 2.0 specification. - JavaHelpers retType = ValidationRuleUtility.getType(method.getReturnType()); - JavaHelpers key = ((Entity)bean).getPrimaryKey(); - if(!(ValidationRuleUtility.isAssignableFromEnumeration(retType, bean) || - ValidationRuleUtility.isAssignableFromCollection(retType, bean) || - ValidationRuleUtility.isAssignableFrom(retType, key) - )) { - String keyName = (key == null) ? IEJBValidatorConstants.NULL_PRIMARY_KEY : key.getJavaName(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2407, IEJBValidationContext.WARNING, bean, clazz, method, new String[]{keyName}, this); - vc.addMessage(message); - } - - if(!ValidationRuleUtility.followsObjectNotFoundExceptionRules(bean, method)) { - // IWAD4285 = This method must not throw javax.ejb.ObjectNotFoundException. Read section 12.1.8.4 of the EJB 2.0 specification. - // IWAD4168 = This method must not throw ObjectNotFoundException. Read section 10.5.8.4 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2478, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4310 = This method must not throw java.rmi.RemoteException. Read section 12.2.5, 18.3.8, 18.6 of the EJB 2.0 specification. - if(!followRemoteExceptionRules(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2503_ejbFind, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPKeyClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPKeyClassVRule.java deleted file mode 100644 index b091a8f04..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPKeyClassVRule.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.wst.validation.internal.core.ValidationException; - - -/** - * @version 1.0 - * @author - */ -public final class BMPKeyClassVRule extends AKeyClassVRule implements IEJBType, IRemoteType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_BMP_KEYCLASS; - private static final Object[] DEPENDS_ON = null; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".kb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - - private final long[] SUPERTYPES = null; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{HASHCODE_NOPARM, EQUALS}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = null; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, HASHCODE_NOPARM, EQUALS, CONSTRUCTOR, CONSTRUCTOR_NOPARM}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2050_constr, new String[]{CHKJ2050_constr+EXT}); - MESSAGE_IDS.put(CHKJ2050_hashCode, new String[]{CHKJ2050_hashCode+EXT}); - MESSAGE_IDS.put(CHKJ2050_equals, new String[]{CHKJ2050_equals+EXT}); - - MESSAGE_IDS.put(CHKJ2019, new String[]{CHKJ2019+EXT}); - - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - // Key methods are not checked for RemoteException, but to be consistent with the other VRules... - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - - public Object getTarget(Object parent, Object clazz) { - if(parent == null) { - return null; - } - - return ((Entity)parent).getPrimaryKey(); - } - - /* - * @see IClassVRule#validate(IEJBValidationContext, EnterpriseBean, JavaClass, Method) - */ - public final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass parent, Method method, List[] methodExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - // Do not perform any validation on the methods of this class (other than the - // validation performed in AKeyClassVRule's check for the existence of hashCode() - // and equals(Object) - } - - /* - * @see IClassVRule#validate(IEJBValidationContext, EnterpriseBean, JavaClass, Field) - */ - public final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, List[] fieldExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - // Do not perform any validation on the fields of the BMP key class - long fieldType = MethodUtility.getUtility().getFieldTypeId(bean, clazz, field, this); - if((fieldType & IMethodAndFieldConstants.SERIALVERSIONUID) == IMethodAndFieldConstants.SERIALVERSIONUID) { - validateSerialVersionUID(vc, bean, clazz, field); - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPLocalComponentVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPLocalComponentVRule.java deleted file mode 100644 index 65af05ef2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPLocalComponentVRule.java +++ /dev/null @@ -1,114 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class BMPLocalComponentVRule extends AComponentVRule implements IEJBType, ILocalType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_BMP_LOCAL; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_BMP_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".blc"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private static final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBLOCALOBJECT}; - private static final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private static final long[] METHODS_WHICH_MUST_EXIST = null; - private static final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2468, new String[]{CHKJ2468+BEXT, CHKJ2468+MEXT}); - MESSAGE_IDS.put(CHKJ2469, new String[]{CHKJ2469+BEXT, CHKJ2469+MEXT}); - - MESSAGE_IDS.put(CHKJ2470, new String[]{CHKJ2470+BEXT, CHKJ2470+MEXT}); - MESSAGE_IDS.put(CHKJ2471, new String[]{CHKJ2471+BEXT, CHKJ2471+MEXT}); - MESSAGE_IDS.put(CHKJ2472, new String[]{CHKJ2472+BEXT, CHKJ2472+MEXT}); - - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - /* - * @see IValidationRule#getDependsOn() - */ - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - /* - * @see IValidationRule#getId() - */ - public final Object getId() { - return ID; - } - - /* - * @see IValidationRule#getMessageIds() - */ - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPLocalHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPLocalHomeVRule.java deleted file mode 100644 index c524194b9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPLocalHomeVRule.java +++ /dev/null @@ -1,125 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class BMPLocalHomeVRule extends ABMPHomeVRule implements ILocalType, IEJBType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_BMP_LOCALHOME; - private static final Object[] DEPENDS_ON = new Object[] { IValidationRuleList.EJB20_BMP_BEANCLASS, IValidationRuleList.EJB20_BMP_KEYCLASS }; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".blh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[] { JAVAX_EJB_EJBLOCALHOME }; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[] { FINDBYPRIMARYKEY, FIND }; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = null; - - private final long[] KNOWN_METHOD_TYPES = new long[] {CLINIT, CREATE, FINDBYPRIMARYKEY, FIND, HOME }; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[] {CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_findByPrimaryKey, new String[] {CHKJ2050_findByPrimaryKey+EXT}); - MESSAGE_IDS.put(CHKJ2050_find, new String[]{CHKJ2050_find+EXT}); - - MESSAGE_IDS.put(CHKJ2104, new String[]{CHKJ2104+SPEC}); - MESSAGE_IDS.put(CHKJ2402, new String[] { CHKJ2402+BEXT, CHKJ2402+MEXT }); - MESSAGE_IDS.put(CHKJ2403, new String[] { CHKJ2403+BEXT, CHKJ2403+MEXT }); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2461, new String[]{CHKJ2461+BEXT, CHKJ2461+MEXT}); - MESSAGE_IDS.put(CHKJ2462, new String[] { CHKJ2462+BEXT, CHKJ2462+MEXT }); - MESSAGE_IDS.put(CHKJ2463, new String[] { CHKJ2463+BEXT, CHKJ2463+MEXT }); - MESSAGE_IDS.put(CHKJ2464, new String[] { CHKJ2464+BEXT, CHKJ2464+MEXT }); - MESSAGE_IDS.put(CHKJ2465, new String[] { CHKJ2465+BEXT, CHKJ2465+MEXT }); - MESSAGE_IDS.put(CHKJ2466, new String[]{CHKJ2466+BEXT, CHKJ2466+MEXT}); - MESSAGE_IDS.put(CHKJ2467, new String[] { CHKJ2467+BEXT, CHKJ2467+MEXT }); - - MESSAGE_IDS.put(CHKJ2475, new String[]{CHKJ2475+BEXT, CHKJ2475+MEXT}); - MESSAGE_IDS.put(CHKJ2477, new String[] { CHKJ2477+BEXT, CHKJ2477+MEXT }); - MESSAGE_IDS.put(CHKJ2478, new String[]{CHKJ2478+BEXT, CHKJ2478+MEXT}); - MESSAGE_IDS.put(CHKJ2479, new String[] { CHKJ2479+BEXT, CHKJ2479+MEXT }); - - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_find, new String[]{CHKJ2500_find+BEXT, CHKJ2500_find+MEXT}); - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2503_create, new String[] { CHKJ2503_create+BEXT, CHKJ2503_create+MEXT }); - MESSAGE_IDS.put(CHKJ2503_find, new String[] { CHKJ2503_find+BEXT, CHKJ2503_find+MEXT }); - MESSAGE_IDS.put(CHKJ2503_home, new String[] { CHKJ2503_home+BEXT, CHKJ2503_home+MEXT }); - MESSAGE_IDS.put(CHKJ2504_create, new String[] { CHKJ2504_create+BEXT, CHKJ2504_create+MEXT }); - MESSAGE_IDS.put(CHKJ2504_find, new String[] { CHKJ2504_find+BEXT, CHKJ2504_find+MEXT }); - MESSAGE_IDS.put(CHKJ2504_home, new String[] { CHKJ2504_home+BEXT, CHKJ2504_home+MEXT }); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPRemoteComponentVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPRemoteComponentVRule.java deleted file mode 100644 index 696716769..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPRemoteComponentVRule.java +++ /dev/null @@ -1,114 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class BMPRemoteComponentVRule extends AComponentVRule implements IRemoteType, IComponentType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_BMP_REMOTE; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_BMP_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".brc"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBOBJECT}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = null; - private static final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105+SPEC}); - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2468, new String[]{CHKJ2468+BEXT, CHKJ2468+MEXT}); - MESSAGE_IDS.put(CHKJ2469, new String[]{CHKJ2469+BEXT, CHKJ2469+MEXT}); - - MESSAGE_IDS.put(CHKJ2470, new String[]{CHKJ2470+BEXT, CHKJ2470+MEXT}); - MESSAGE_IDS.put(CHKJ2471, new String[]{CHKJ2471+BEXT, CHKJ2471+MEXT}); - MESSAGE_IDS.put(CHKJ2472, new String[]{CHKJ2472+BEXT, CHKJ2472+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_business, new String[]{CHKJ2500_business+BEXT, CHKJ2500_business+MEXT}); - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPRemoteHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPRemoteHomeVRule.java deleted file mode 100644 index 1e3398752..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/BMPRemoteHomeVRule.java +++ /dev/null @@ -1,129 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class BMPRemoteHomeVRule extends ABMPHomeVRule implements IRemoteType, IHomeType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_BMP_HOME; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_BMP_BEANCLASS, IValidationRuleList.EJB20_BMP_KEYCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".brh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBHOME}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{FINDBYPRIMARYKEY, FIND}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = null; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CREATE, FINDBYPRIMARYKEY, FIND, HOME}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_findByPrimaryKey, new String[]{CHKJ2050_findByPrimaryKey+EXT}); - MESSAGE_IDS.put(CHKJ2050_find, new String[]{CHKJ2050_find+EXT}); - - MESSAGE_IDS.put(CHKJ2104, new String[]{CHKJ2104+SPEC}); - MESSAGE_IDS.put(CHKJ2402, new String[]{CHKJ2402+BEXT, CHKJ2402+MEXT}); - MESSAGE_IDS.put(CHKJ2403, new String[]{CHKJ2403+BEXT, CHKJ2403+MEXT}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2461, new String[]{CHKJ2461+BEXT, CHKJ2461+MEXT}); - MESSAGE_IDS.put(CHKJ2462, new String[]{CHKJ2462+BEXT, CHKJ2462+MEXT}); - MESSAGE_IDS.put(CHKJ2463, new String[]{CHKJ2463+BEXT, CHKJ2463+MEXT}); - MESSAGE_IDS.put(CHKJ2464, new String[]{CHKJ2464+BEXT, CHKJ2464+MEXT}); - MESSAGE_IDS.put(CHKJ2465, new String[]{CHKJ2465+BEXT, CHKJ2465+MEXT}); - MESSAGE_IDS.put(CHKJ2466, new String[]{CHKJ2466+BEXT, CHKJ2466+MEXT}); - MESSAGE_IDS.put(CHKJ2467, new String[]{CHKJ2467+BEXT, CHKJ2467+MEXT}); - - MESSAGE_IDS.put(CHKJ2475, new String[]{CHKJ2475+BEXT, CHKJ2475+MEXT}); - MESSAGE_IDS.put(CHKJ2477, new String[]{CHKJ2477+BEXT, CHKJ2477+MEXT}); - MESSAGE_IDS.put(CHKJ2478, new String[]{CHKJ2478+BEXT, CHKJ2478+MEXT}); - MESSAGE_IDS.put(CHKJ2479, new String[]{CHKJ2479+BEXT, CHKJ2479+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_find, new String[]{CHKJ2500_find+BEXT, CHKJ2500_find+MEXT}); - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2503_create, new String[]{CHKJ2503_create+BEXT, CHKJ2503_create+MEXT}); - MESSAGE_IDS.put(CHKJ2503_find, new String[]{CHKJ2503_find+BEXT, CHKJ2503_find+MEXT}); - MESSAGE_IDS.put(CHKJ2503_home, new String[]{CHKJ2503_home+BEXT, CHKJ2503_home+MEXT}); - MESSAGE_IDS.put(CHKJ2504_create, new String[]{CHKJ2504_create+BEXT, CHKJ2504_create+MEXT}); - MESSAGE_IDS.put(CHKJ2504_find, new String[]{CHKJ2504_find+BEXT, CHKJ2504_find+MEXT}); - MESSAGE_IDS.put(CHKJ2504_home, new String[]{CHKJ2504_home+BEXT, CHKJ2504_home+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPBeanClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPBeanClassVRule.java deleted file mode 100644 index 0bc8c646e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPBeanClassVRule.java +++ /dev/null @@ -1,484 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.internal.impl.LocalModelledPersistentAttributeFilter; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public final class CMPBeanClassVRule extends AEntityBeanClassVRule implements IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_CMP_BEANCLASS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_CMP_HOME, IValidationRuleList.EJB20_CMP_LOCALHOME, IValidationRuleList.EJB20_CMP_REMOTE, IValidationRuleList.EJB20_CMP_LOCAL, IValidationRuleList.EJB20_CMP_KEYCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".cb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_ENTITYBEAN}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = new long[]{LOCAL_COMPONENT_INTERFACE, REMOTE_COMPONENT_INTERFACE}; - - private final boolean SHOULD_BE_ABSTRACT = true; - private final boolean SHOULD_BE_FINAL = false; - private final boolean SHOULD_BE_PUBLIC = true; - private final boolean SHOULD_VALIDATE_TRANSIENT_FIELD = false; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{CONSTRUCTOR_NOPARM, SETENTITYCONTEXT, UNSETENTITYCONTEXT_NOPARM, EJBACTIVATE_NOPARM, EJBPASSIVATE_NOPARM, EJBREMOVE_NOPARM, EJBLOAD_NOPARM, EJBSTORE_NOPARM}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{EJBFIND, FINALIZE_NOPARM}; - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CONSTRUCTOR_NOPARM, CONSTRUCTOR, EJBCREATE, EJBPOSTCREATE, EJBHOME, FINALIZE_NOPARM, EJBFIND, ACCESSOR, EJBFINDBYPRIMARYKEY, SETENTITYCONTEXT, UNSETENTITYCONTEXT_NOPARM, EJBACTIVATE_NOPARM, EJBPASSIVATE_NOPARM, EJBREMOVE_NOPARM, EJBLOAD_NOPARM, EJBSTORE_NOPARM, EJBSELECT, FINALIZE_NOPARM, BUSINESS}; - - static { - MESSAGE_IDS = new HashMap(); - - // Add these checks in the code later - MESSAGE_IDS.put(CHKJ2481, new String[]{CHKJ2481+BEXT, CHKJ2481+MEXT}); - MESSAGE_IDS.put(CHKJ2482, new String[]{CHKJ2482+BEXT, CHKJ2482+MEXT}); - MESSAGE_IDS.put(CHKJ2483, new String[]{CHKJ2483+BEXT, CHKJ2483+MEXT}); - MESSAGE_IDS.put(CHKJ2484, new String[]{CHKJ2484+BEXT, CHKJ2484+MEXT}); - MESSAGE_IDS.put(CHKJ2489, new String[]{CHKJ2489+BEXT, CHKJ2489+MEXT}); - MESSAGE_IDS.put(CHKJ2205, new String[]{CHKJ2205+BEXT, CHKJ2205+MEXT}); - MESSAGE_IDS.put(CHKJ2206, new String[]{CHKJ2206+BEXT, CHKJ2206+MEXT}); - // end add later - - MESSAGE_IDS.put(CHKJ2014, new String[]{CHKJ2014+EXT}); - MESSAGE_IDS.put(CHKJ2015, new String[]{CHKJ2015+EXT}); - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2022, new String[]{CHKJ2022+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_acc, new String[]{CHKJ2050_acc+EXT}); - MESSAGE_IDS.put(CHKJ2050_constr, new String[]{CHKJ2050_constr+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbCreate, new String[]{CHKJ2050_ejbCreate+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbFindByPrimaryKey, new String[]{CHKJ2050_ejbFindByPrimaryKey+EXT}); - MESSAGE_IDS.put(CHKJ2050_setEntityContext, new String[]{CHKJ2050_setEntityContext+EXT}); - MESSAGE_IDS.put(CHKJ2050_unsetEntityContext, new String[]{CHKJ2050_unsetEntityContext+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbActivate, new String[]{CHKJ2050_ejbActivate+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbPassivate, new String[]{CHKJ2050_ejbPassivate+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbRemove, new String[]{CHKJ2050_ejbRemove+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbLoad, new String[]{CHKJ2050_ejbLoad+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbStore, new String[]{CHKJ2050_ejbStore+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbSelect, new String[]{CHKJ2050_ejbSelect+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbFind, new String[]{CHKJ2050_ejbFind+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbPostCreate, new String[]{CHKJ2050_ejbPostCreate+EXT}); - - MESSAGE_IDS.put(CHKJ2103, new String[]{CHKJ2103+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2411, new String[]{CHKJ2411+BEXT, CHKJ2411+MEXT}); - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2421, new String[]{CHKJ2421+BEXT, CHKJ2421+MEXT}); - MESSAGE_IDS.put(CHKJ2422, new String[]{CHKJ2422+BEXT, CHKJ2422+MEXT}); - MESSAGE_IDS.put(CHKJ2423, new String[]{CHKJ2423+BEXT, CHKJ2423+MEXT}); - MESSAGE_IDS.put(CHKJ2424, new String[]{CHKJ2424+BEXT, CHKJ2424+MEXT}); - MESSAGE_IDS.put(CHKJ2426, new String[]{CHKJ2426+BEXT, CHKJ2426+MEXT}); - MESSAGE_IDS.put(CHKJ2427, new String[]{CHKJ2427+BEXT, CHKJ2427+MEXT}); - MESSAGE_IDS.put(CHKJ2428, new String[]{CHKJ2428+BEXT, CHKJ2428+MEXT}); - MESSAGE_IDS.put(CHKJ2430, new String[]{CHKJ2430+BEXT, CHKJ2430+MEXT}); - MESSAGE_IDS.put(CHKJ2431, new String[]{CHKJ2431+BEXT, CHKJ2431+MEXT}); - MESSAGE_IDS.put(CHKJ2439, new String[]{CHKJ2439+BEXT, CHKJ2439+MEXT}); - - MESSAGE_IDS.put(CHKJ2441, new String[]{CHKJ2441+BEXT, CHKJ2441+MEXT}); - MESSAGE_IDS.put(CHKJ2442, new String[]{CHKJ2442+BEXT, CHKJ2442+MEXT}); - MESSAGE_IDS.put(CHKJ2443, new String[]{CHKJ2443+BEXT, CHKJ2443+MEXT}); - MESSAGE_IDS.put(CHKJ2449, new String[]{CHKJ2449+BEXT, CHKJ2449+MEXT}); - - MESSAGE_IDS.put(CHKJ2450, new String[]{CHKJ2450+BEXT, CHKJ2450+MEXT}); - MESSAGE_IDS.put(CHKJ2454, new String[]{CHKJ2454+BEXT, CHKJ2454+MEXT}); - MESSAGE_IDS.put(CHKJ2456, new String[]{CHKJ2456+ON_BASE, CHKJ2456+ON_THIS}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2478, new String[]{CHKJ2478+BEXT, CHKJ2478+MEXT}); - - MESSAGE_IDS.put(CHKJ2480, new String[]{CHKJ2480+BEXT, CHKJ2480+MEXT}); - MESSAGE_IDS.put(CHKJ2485, new String[]{CHKJ2485+BEXT, CHKJ2485+MEXT}); - MESSAGE_IDS.put(CHKJ2486, new String[]{CHKJ2486+BEXT, CHKJ2486+MEXT}); - MESSAGE_IDS.put(CHKJ2487, new String[]{CHKJ2487+BEXT, CHKJ2487+MEXT}); - MESSAGE_IDS.put(CHKJ2488, new String[]{CHKJ2488+BEXT, CHKJ2488+MEXT}); - - MESSAGE_IDS.put(CHKJ2492, new String[]{CHKJ2492+BEXT, CHKJ2492+MEXT}); - MESSAGE_IDS.put(CHKJ2493, new String[]{CHKJ2493+BEXT, CHKJ2493+MEXT}); - MESSAGE_IDS.put(CHKJ2494, new String[]{CHKJ2494+BEXT, CHKJ2494+MEXT}); - MESSAGE_IDS.put(CHKJ2496, new String[]{CHKJ2496+BEXT, CHKJ2496+MEXT}); - MESSAGE_IDS.put(CHKJ2497, new String[]{CHKJ2497+BEXT, CHKJ2497+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_ejbCreate, new String[]{CHKJ2500_ejbCreate+BEXT, CHKJ2500_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2500_ejbFind, new String[]{CHKJ2500_ejbCreate+BEXT, CHKJ2500_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2500_business, new String[]{CHKJ2500_ejbCreate+BEXT, CHKJ2500_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2500_ejbHome, new String[]{CHKJ2500_ejbHome+BEXT, CHKJ2500_ejbHome+MEXT}); - MESSAGE_IDS.put(CHKJ2502_finalize, new String[]{CHKJ2502_finalize+BEXT, CHKJ2502_finalize+MEXT}); - MESSAGE_IDS.put(CHKJ2502_ejbFind, new String[]{CHKJ2502_ejbFind+BEXT, CHKJ2502_ejbFind+MEXT}); - - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2503_ejbCreate, new String[]{CHKJ2503_ejbCreate+BEXT, CHKJ2503_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2503_ejbPostCreate, new String[]{CHKJ2503_ejbPostCreate+BEXT, CHKJ2503_ejbPostCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2503_ejbHome, new String[]{CHKJ2503_ejbHome+BEXT, CHKJ2503_ejbHome+MEXT}); - - MESSAGE_IDS.put(CHKJ2505_ejbPostCreate, new String[]{CHKJ2505_ejbPostCreate+BEXT, CHKJ2505_ejbPostCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2505_ejbRemove, new String[]{CHKJ2505_ejbRemove+BEXT, CHKJ2505_ejbRemove+MEXT}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final boolean shouldValidateTransientField() { - return SHOULD_VALIDATE_TRANSIENT_FIELD; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final boolean shouldBeAbstract(JavaClass clazz) { - return SHOULD_BE_ABSTRACT; - } - - public final boolean shouldBeFinal(JavaClass clazz) { - return SHOULD_BE_FINAL; - } - - public final boolean shouldBePublic(JavaClass clazz) { - return SHOULD_BE_PUBLIC; - } - - public final int isRemote() { - return NEITHER; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final JavaHelpers getEjbCreateReturnType(EnterpriseBean bean, Method method) { - ContainerManagedEntity cmp = (ContainerManagedEntity)bean; - if(ValidationRuleUtility.usesUnknownPrimaryKey(cmp)) { - try { - return ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT, cmp); - } - catch(InvalidInputException e) { - // problems.... - // let this fall through to the default (getPrimaryKey()) - } - } - return ((Entity)bean).getPrimaryKey(); - } - - public final String getEjbCreateReturnTypeName(EnterpriseBean bean, Method method) { - JavaHelpers retType = getEjbCreateReturnType(bean, method); - if(retType == null) { - return IEJBValidatorConstants.NULL_PRIMARY_KEY; - } - return retType.getJavaName(); - } - - public final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - super.validate(vc, bean, clazz); - - ContainerManagedEntity cmp = (ContainerManagedEntity)bean; - - // 10.3.1, container-managed persistent fields and container-managed relationship - // fields must *not* be defined in the entity bean class. - List cmrFields = cmp.getCMRFields(); - Iterator iterator = cmrFields.iterator(); - while(iterator.hasNext()) { - CMRField cmrField = (CMRField)iterator.next(); - if((cmrField != null) && (!cmrField.isDerived())) { - validateCmrField(vc, cmp, clazz, cmrField); - } - } - - List cmpFields = cmp.getFilteredFeatures(LocalModelledPersistentAttributeFilter.singleton()); - if(cmpFields != null && !cmpFields.isEmpty()) { - iterator = cmpFields.iterator(); - while(iterator.hasNext()) { - CMPAttribute cmpField = (CMPAttribute)iterator.next(); - if((cmpField != null) && (!cmpField.isDerived())) { - validateCmpField(vc, cmp, clazz, cmpField); - } - } - } - } - - public void validateEjbCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) throws ValidationCancelledException, InvalidInputException, ValidationException { - super.validateEjbCreateMethod(vc, bean, clazz, method, methodsExtendedList); - - if(!ValidationRuleUtility.throwsCreateException(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2497, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - } - - public final void validateEjbSelectMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass parent, Method method) throws ValidationCancelledException, InvalidInputException, ValidationException { - // # ejbSelect<METHOD> checks - // IWAD4154 = {0} must exist. Read section 10.5.2 of the EJB 2.0 specification. - // IWAD4502 = This method must not exist on this class. Read section 10.5.5 of the EJB 2.0 specification. - // IWAD4197 = An ejbSelect method must exist. Read section 10.6.7 of the EJB 2.0 specification. - - JavaHelpers returnType = method.getReturnType(); - JavaHelpers javaUtilCollection = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_UTIL_COLLECTION, bean); - if(!ValidationRuleUtility.isAssignableFrom(returnType, bean.getLocalInterface()) && - !ValidationRuleUtility.isAssignableFrom(returnType, javaUtilCollection) ) { - // IWAD4160 = Type {0} cannot be returned by a select method. Read section 10.5.7 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2486, IEJBValidationContext.INFO, bean, parent, method, this); - vc.addMessage(message); - } - - if(!ValidationRuleUtility.isPublic(method)) { - // IWAD4198 = This method must be public. Read section 10.6.7 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2487, IEJBValidationContext.INFO, bean, parent, method, this); - vc.addMessage(message); - } - - if(!method.isAbstract()) { - // IWAD4199 = This method must be abstract. Read section 10.6.7 of the EJB 2.0 specification. - // IWAD4158 = {0} must be abstract. Read section 10.5.7 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2485, IEJBValidationContext.INFO, bean, parent, method, this); - vc.addMessage(message); - } - - if(!ValidationRuleUtility.throwsFinderException(bean, method)) { - // IWAD4200 = This method must throw javax.ejb.FinderException. Read section 10.6.7 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2488, IEJBValidationContext.INFO, bean, parent, method, this); - vc.addMessage(message); - } - - if(!ValidationRuleUtility.followsObjectNotFoundExceptionRules(bean, method)) { - // IWAD4285 = This method must not throw javax.ejb.ObjectNotFoundException. Read section 12.1.8.4 of the EJB 2.0 specification. - // IWAD4168 = This method must not throw ObjectNotFoundException. Read section 10.5.8.4 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2478, IEJBValidationContext.INFO, bean, parent, method, this); - vc.addMessage(message); - } - - // Check method is associated with a query element in ejb-jar.xml. - ContainerManagedEntity cmp = (ContainerManagedEntity)bean; - if(!ValidationRuleUtility.isAssociatedWithQuery(cmp, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2496, IEJBValidationContext.INFO, bean, parent, method, this); - vc.addMessage(message); - } - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - - public void validateCmpField(IEJBValidationContext vc, ContainerManagedEntity cmp, JavaClass clazz, CMPAttribute attrib) throws ValidationCancelledException, InvalidInputException, ValidationException { - String fieldName = attrib.getName(); - if((fieldName == null) || (fieldName.equals(""))) { //$NON-NLS-1$ - // let the EJBJarVRule report this - return; - } - - if(!Character.isLowerCase(fieldName.charAt(0))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2480, IEJBValidationContext.INFO, cmp, clazz, attrib.getField(), this); - vc.addMessage(message); - } - - // Section 10.8.3 - if(!ValidationRuleUtility.isUnknownPrimaryKey(attrib)) { - JavaClass ejbClass = cmp.getEjbClass(); - Method getMethod = ValidationRuleUtility.getMethodExtended(ejbClass, attrib.getGetterName(), new JavaHelpers[0], attrib.getType()); - if(getMethod == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2050_acc, IEJBValidationContext.ERROR, cmp, clazz, new String[]{attrib.getGetterName()}, this); - vc.addMessage(message); - } - else { - validateCMPAccessorMethod(vc, cmp, clazz, getMethod, attrib); - } - - JavaHelpers[] setMethodParms = new JavaHelpers[]{attrib.getType()}; - Method setMethod = ValidationRuleUtility.getMethodExtended(ejbClass, attrib.getSetterName(), setMethodParms); - if(setMethod == null) { - String setterName = attrib.getSetterName() + "(" + ValidationRuleUtility.getParmsAsString(setMethodParms) + ")"; //$NON-NLS-1$ //$NON-NLS-2$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2050_acc, IEJBValidationContext.ERROR, cmp, clazz, new String[]{setterName}, this); - vc.addMessage(message); - } - else { - validateCMPAccessorMethod(vc, cmp, clazz, setMethod, attrib); - } - } - - Field field = attrib.getField(); - if ((field != null) && (clazz.getFieldExtended(attrib.getName()) != null)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2454, IEJBValidationContext.WARNING, cmp, clazz, field, new String[]{attrib.getName()}, this); - vc.addMessage(message); - } - - } - - public void validateCmrField(IEJBValidationContext vc, ContainerManagedEntity cmp, JavaClass clazz, CMRField cmrField) throws ValidationCancelledException, InvalidInputException, ValidationException { - String fieldName = cmrField.getName(); - if((fieldName == null) || (fieldName.equals(""))) { //$NON-NLS-1$ - // let the EJBJarVRule report this - return; - } - - if(!Character.isLowerCase(fieldName.charAt(0))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2480, IEJBValidationContext.INFO, cmp, clazz, cmrField.getField(), this); - vc.addMessage(message); - } - - JavaClass ejbClass = cmp.getEjbClass(); - JavaHelpers localType = ValidationRuleUtility.getCMRFieldType(vc, cmp, clazz, cmrField); - if(localType == null) { - // user made a mistake in ejb-jar.xml by trying to create a relation - // to a CMP which doesn't have a local interface. - // Don't report an error here; let the DD validation report the error. - return; - } - Method getMethod = ValidationRuleUtility.getMethodExtended(ejbClass, cmrField.getGetterName(), new JavaHelpers[0], localType); - if(getMethod == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2050_acc, IEJBValidationContext.ERROR, cmp, clazz, new String[]{cmrField.getGetterName()}, this); - vc.addMessage(message); - } - else { - validateCMRAccessorMethod(vc, cmp, clazz, getMethod, cmrField); - } - - JavaHelpers[] setMethodParms = new JavaHelpers[]{localType}; - Method setMethod = ValidationRuleUtility.getMethodExtended(ejbClass, cmrField.getSetterName(), setMethodParms); - if(setMethod == null) { - String setterName = cmrField.getSetterName() + "(" + ValidationRuleUtility.getParmsAsString(setMethodParms) + ")"; //$NON-NLS-1$ //$NON-NLS-2$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2050_acc, IEJBValidationContext.ERROR, cmp, clazz, new String[]{setterName}, this); - vc.addMessage(message); - } - else { - validateCMRAccessorMethod(vc, cmp, clazz, setMethod, cmrField); - } - - Field field = cmrField.getField(); - if ((field != null) && (clazz.getFieldExtended(cmrField.getName()) != null)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2454, IEJBValidationContext.WARNING, cmp, clazz, field, new String[]{cmrField.getName()}, this); - vc.addMessage(message); - } - } - - protected void validateCMRAccessorMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, CMRField field) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2449, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - if(!method.isAbstract()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2450, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - } - - protected void validateCMPAccessorMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, CMPAttribute field) throws ValidationCancelledException, InvalidInputException, ValidationException { - if(!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2449, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - if(!method.isAbstract()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2450, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this); - - if((methodType & EJBCREATE) == EJBCREATE) { - validateEjbCreateMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else if((methodType & EJBPOSTCREATE) == EJBPOSTCREATE) { - validateEjbPostCreateMethod(vc, bean, clazz, method); - } - else if((methodType & EJBHOME) == EJBHOME) { - validateEjbHomeMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else if((methodType & EJBREMOVE_NOPARM) == EJBREMOVE_NOPARM) { - validateEjbRemoveMethod(vc, bean, clazz, method); - } - else if((methodType & ACCESSOR) == ACCESSOR) { - // This has already been validated in the validate(vc, bean, clazz) method - } - else if((methodType & BUSINESS) == BUSINESS) { - validateBusinessMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else { - // Method isn't supposed to be here. Let the validateMethodsWhichMustNotExist - // take care of it. - } - } - - public String getMatchingHomeMethodName(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedList) { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedList, this); - - if((methodType & EJBCREATE) == EJBCREATE) { - return getMatchingEjbCreateMethodName(vc, method); - } - else if((methodType & EJBPOSTCREATE) == EJBPOSTCREATE) { - return getMatchingEjbPostCreateMethodName(vc, method); - } - else if((methodType & EJBHOME) == EJBHOME) { - return getMatchingEjbHomeMethodName(vc, method); - } - else if((methodType & EJBREMOVE_NOPARM) == EJBREMOVE_NOPARM) { - return getNoMatchingMethodName(vc, method); - } - else if((methodType & ACCESSOR) == ACCESSOR) { - // This has already been validated in the validate(vc, bean, clazz) method - return getNoMatchingMethodName(vc, method); - } - else if((methodType & BUSINESS) == BUSINESS) { - return getMatchingBusinessMethodName(vc, method); - } - else { - // Method isn't supposed to be here. - return getNoMatchingMethodName(vc, method); - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPKeyClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPKeyClassVRule.java deleted file mode 100644 index dceab8b06..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPKeyClassVRule.java +++ /dev/null @@ -1,211 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public final class CMPKeyClassVRule extends AKeyClassVRule implements IEJBType, IRemoteType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_CMP_KEYCLASS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_CMP_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".kc"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = null; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{HASHCODE_NOPARM, EQUALS, CONSTRUCTOR_NOPARM}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = null; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, HASHCODE_NOPARM, EQUALS, CONSTRUCTOR_NOPARM, CONSTRUCTOR}; - - private Set _keyFields = null; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2050_constr, new String[]{CHKJ2050_constr+EXT}); - MESSAGE_IDS.put(CHKJ2050_hashCode, new String[]{CHKJ2050_hashCode+EXT}); - MESSAGE_IDS.put(CHKJ2050_equals, new String[]{CHKJ2050_equals+EXT}); - MESSAGE_IDS.put(CHKJ2022, new String[]{CHKJ2022+EXT}); - - MESSAGE_IDS.put(CHKJ2019, new String[]{CHKJ2019+EXT}); - - MESSAGE_IDS.put(CHKJ2205, new String[]{CHKJ2205+BEXT, CHKJ2205+MEXT}); - MESSAGE_IDS.put(CHKJ2206, new String[]{CHKJ2206+BEXT, CHKJ2206+MEXT}); - - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2829, new String[]{CHKJ2829+SPEC}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - // Key methods are not checked for RemoteException, but to be consistent with the other VRules... - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public Object getTarget(Object parent, Object clazz) { - if(parent == null) { - return null; - } - - ContainerManagedEntity cmp = (ContainerManagedEntity)parent; - if(ValidationRuleUtility.isPrimitivePrimaryKey(cmp)) { - return null; // do not validate a primitive primary key - } - - return cmp.getPrimaryKey(); - } - - - /* - * @see IClassVRule#validate(IEJBValidationContext, EnterpriseBean, JavaClass, Method) - */ - public final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - // Nothing to do. - } - - public final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - super.validate(vc, bean, clazz); - - // IWAD4251 = This class must be public. Read section 10.8.2 of the EJB 2.0 specification. - if(!clazz.isPublic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2022, IEJBValidationContext.INFO, bean, clazz, this); - vc.addMessage(message); - } - - ContainerManagedEntity cmp = (ContainerManagedEntity)bean; - if(!ValidationRuleUtility.usesUnknownPrimaryKey(cmp)) { - // primary key must map to at least one field on the bean - // But if it's an unknown key, there's no point checking java.lang.Object - List primKeyFields = cmp.getKeyAttributes(); - if ((primKeyFields == null) || (primKeyFields.size() == 0)) { - JavaClass primaryKey = cmp.getPrimaryKey(); // don't need to check ValidationRuleUtility.isValidType(primaryKey), because it's already been called in the validateDeploymentDescriptor method - String beanName = (cmp.getName() == null) ? "null" : cmp.getName(); //$NON-NLS-1$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2829, IEJBValidationContext.ERROR, cmp, primaryKey, new String[] { primaryKey.getName(), beanName }, this); - vc.addMessage(message); - } - } - } - - private Set getKeyFields(ContainerManagedEntity cmp) { - if(_keyFields == null) { - // Know that the traversal of the fields and methods is done sequentially. - // i.e., that a class is validated according to one bean at at time. - // Thus, we can cache the key field information to speed up subsequent calls. - List fields = cmp.getKeyAttributes(); - Iterator iterator = fields.iterator(); - _keyFields = new HashSet(); - while(iterator.hasNext()) { - CMPAttribute attrib = (CMPAttribute)iterator.next(); - _keyFields.add(attrib.getName()); - } - } - return _keyFields; - } - - /* - * @see IClassVRule#validate(IEJBValidationContext, EnterpriseBean, JavaClass, Field) - */ - public final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, List[] fieldExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - long fieldType = MethodUtility.getUtility().getFieldTypeId(bean, clazz, field, this); - if((fieldType & IMethodAndFieldConstants.SERIALVERSIONUID) == IMethodAndFieldConstants.SERIALVERSIONUID) { - validateSerialVersionUID(vc, bean, clazz, field); - } - else { - // IWAD4253 = This field must be public. Read section 10.8.1 of the EJB 2.0 specification. - if(!ValidationRuleUtility.isPublic(field)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2205, IEJBValidationContext.WARNING, bean, clazz, field, this); - vc.addMessage(message); - } - - Set keyFields = getKeyFields((ContainerManagedEntity)bean); - if(!keyFields.contains(field.getName())) { - // IWAD4254 = This field is not a <cmp-field>. Read section 10.8.1 of the EJB 2.0 specification. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2206, IEJBValidationContext.WARNING, bean, clazz, field, this); - vc.addMessage(message); - } - } - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - - /* - * @see IValidationRule#reset() - */ - public void reset() { - super.reset(); - if(_keyFields != null) { - _keyFields.clear(); - _keyFields = null; // in this case, clearing the Set isn't enough. - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPLocalComponentVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPLocalComponentVRule.java deleted file mode 100644 index 7dcace187..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPLocalComponentVRule.java +++ /dev/null @@ -1,113 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class CMPLocalComponentVRule extends AComponentVRule implements IComponentType, ILocalType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_CMP_LOCAL; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_CMP_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".clc"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBLOCALOBJECT}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = null; - private static final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{EJBSELECT}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, EJBSELECT}; // Must know EJBSELECT to check that it's not exposed on this interface - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2468, new String[]{CHKJ2468+BEXT, CHKJ2468+MEXT}); - MESSAGE_IDS.put(CHKJ2469, new String[]{CHKJ2469+BEXT, CHKJ2469+MEXT}); - - MESSAGE_IDS.put(CHKJ2470, new String[]{CHKJ2470+BEXT, CHKJ2470+MEXT}); - MESSAGE_IDS.put(CHKJ2471, new String[]{CHKJ2471+BEXT, CHKJ2471+MEXT}); - MESSAGE_IDS.put(CHKJ2472, new String[]{CHKJ2472+BEXT, CHKJ2472+MEXT}); - MESSAGE_IDS.put(CHKJ2474, new String[]{CHKJ2474+BEXT, CHKJ2474+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2502_ejbSelect, new String[]{CHKJ2502_ejbSelect+BEXT, CHKJ2502_ejbSelect+MEXT}); - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPLocalHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPLocalHomeVRule.java deleted file mode 100644 index 79aee23ac..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPLocalHomeVRule.java +++ /dev/null @@ -1,131 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class CMPLocalHomeVRule extends ACMPHomeVRule implements ILocalType, IHomeType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_CMP_LOCALHOME; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_CMP_BEANCLASS, IValidationRuleList.EJB20_CMP_KEYCLASS, IValidationRuleList.EJB20_EJBEXT}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".clh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBLOCALHOME}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{FINDBYPRIMARYKEY, FIND}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{EJBSELECT}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CREATE, FINDBYPRIMARYKEY, FIND, HOME, EJBSELECT}; // Must know EJBSELECT to check that it's not exposed on this interface - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_findByPrimaryKey, new String[]{CHKJ2050_findByPrimaryKey+EXT}); - MESSAGE_IDS.put(CHKJ2050_find, new String[]{CHKJ2050_find+EXT}); - - MESSAGE_IDS.put(CHKJ2104, new String[]{CHKJ2104+SPEC}); - MESSAGE_IDS.put(CHKJ2402, new String[]{CHKJ2402+BEXT, CHKJ2402+MEXT}); - MESSAGE_IDS.put(CHKJ2403, new String[]{CHKJ2403+BEXT, CHKJ2403+MEXT}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2461, new String[]{CHKJ2461+BEXT, CHKJ2461+MEXT}); - MESSAGE_IDS.put(CHKJ2462, new String[]{CHKJ2462+BEXT, CHKJ2462+MEXT}); - MESSAGE_IDS.put(CHKJ2463, new String[]{CHKJ2463+BEXT, CHKJ2463+MEXT}); - MESSAGE_IDS.put(CHKJ2464, new String[]{CHKJ2464+BEXT, CHKJ2464+MEXT}); - MESSAGE_IDS.put(CHKJ2465, new String[]{CHKJ2465+BEXT, CHKJ2465+MEXT}); - MESSAGE_IDS.put(CHKJ2466, new String[]{CHKJ2466+BEXT, CHKJ2466+MEXT}); - MESSAGE_IDS.put(CHKJ2467, new String[]{CHKJ2467+BEXT, CHKJ2467+MEXT}); - - MESSAGE_IDS.put(CHKJ2475, new String[]{CHKJ2475+BEXT, CHKJ2475+MEXT}); - MESSAGE_IDS.put(CHKJ2477, new String[]{CHKJ2477+BEXT, CHKJ2477+MEXT}); - MESSAGE_IDS.put(CHKJ2478, new String[]{CHKJ2478+BEXT, CHKJ2478+MEXT}); - MESSAGE_IDS.put(CHKJ2479, new String[]{CHKJ2479+BEXT, CHKJ2479+MEXT}); - - MESSAGE_IDS.put(CHKJ2495, new String[]{CHKJ2495+BEXT, CHKJ2495+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_find, new String[]{CHKJ2500_find+BEXT, CHKJ2500_find+MEXT}); - MESSAGE_IDS.put(CHKJ2502_ejbSelect, new String[]{CHKJ2502_ejbSelect+BEXT, CHKJ2502_ejbSelect+MEXT}); - MESSAGE_IDS.put(CHKJ2503_create, new String[]{CHKJ2503_create+BEXT, CHKJ2503_create+MEXT}); - MESSAGE_IDS.put(CHKJ2503_find, new String[]{CHKJ2503_find+BEXT, CHKJ2503_find+MEXT}); - MESSAGE_IDS.put(CHKJ2503_home, new String[]{CHKJ2503_home+BEXT, CHKJ2503_home+MEXT}); - MESSAGE_IDS.put(CHKJ2504_create, new String[]{CHKJ2504_create+BEXT, CHKJ2504_create+MEXT}); - MESSAGE_IDS.put(CHKJ2504_find, new String[]{CHKJ2504_find+BEXT, CHKJ2504_find+MEXT}); - MESSAGE_IDS.put(CHKJ2504_home, new String[]{CHKJ2504_home+BEXT, CHKJ2504_home+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPRemoteComponentVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPRemoteComponentVRule.java deleted file mode 100644 index 87155b480..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPRemoteComponentVRule.java +++ /dev/null @@ -1,165 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public final class CMPRemoteComponentVRule extends AComponentVRule implements IRemoteType, IComponentType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_CMP_REMOTE; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_CMP_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".crc"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBOBJECT}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = null; - private static final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{EJBSELECT}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, EJBSELECT}; // Must know EJBSELECT to check that it's not exposed on this interface - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105+SPEC}); - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2468, new String[]{CHKJ2468+BEXT, CHKJ2468+MEXT}); - MESSAGE_IDS.put(CHKJ2469, new String[]{CHKJ2469+BEXT, CHKJ2469+MEXT}); - - MESSAGE_IDS.put(CHKJ2470, new String[]{CHKJ2470+BEXT, CHKJ2470+MEXT}); - MESSAGE_IDS.put(CHKJ2471, new String[]{CHKJ2471+BEXT, CHKJ2471+MEXT}); - MESSAGE_IDS.put(CHKJ2472, new String[]{CHKJ2472+BEXT, CHKJ2472+MEXT}); - MESSAGE_IDS.put(CHKJ2473, new String[]{CHKJ2473+BEXT, CHKJ2473+MEXT}); - MESSAGE_IDS.put(CHKJ2474, new String[]{CHKJ2474+BEXT, CHKJ2474+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_business, new String[]{CHKJ2500_business+BEXT, CHKJ2500_business+MEXT}); - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2502_ejbSelect, new String[]{CHKJ2502_ejbSelect+BEXT, CHKJ2502_ejbSelect+MEXT}); - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - super.validate(vc, bean, clazz); - - ContainerManagedEntity cmp = (ContainerManagedEntity)bean; - - // 10.3.1, container-managed persistent fields and container-managed relationship - // fields must *not* be defined in the entity bean class. - List cmrFields = cmp.getCMRFields(); - Iterator iterator = cmrFields.iterator(); - while(iterator.hasNext()) { - CMRField cmrField = (CMRField)iterator.next(); - if((cmrField != null) && (!cmrField.isDerived())) { - - JavaHelpers localType = ValidationRuleUtility.getCMRFieldType(vc, cmp, clazz, cmrField); - if(localType == null) { - // user made a mistake in ejb-jar.xml by trying to create a relation - // to a CMP which doesn't have a local interface. - // Don't report an error here; let the DD validation report the error. - continue; - } - - // Cannot expose get/set methods of CMR fields on the remote home or interface - Method remoteGetMethod = ValidationRuleUtility.getMethodExtended(clazz, cmrField.getGetterName(), new JavaHelpers[0], localType); - if(remoteGetMethod != null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2473, IEJBValidationContext.WARNING, cmp, clazz, remoteGetMethod, new String[]{cmrField.getGetterName()}, this); - vc.addMessage(message); - } - - JavaHelpers[] setMethodParms = new JavaHelpers[]{localType}; - Method remoteSetMethod = ValidationRuleUtility.getMethodExtended(clazz, cmrField.getSetterName(), setMethodParms); - if(remoteSetMethod != null) { - String setterName = cmrField.getSetterName() + "(" + ValidationRuleUtility.getParmsAsString(setMethodParms) + ")"; //$NON-NLS-1$ //$NON-NLS-2$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2473, IEJBValidationContext.WARNING, cmp, clazz, remoteSetMethod, new String[]{setterName}, this); - vc.addMessage(message); - } - } - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPRemoteHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPRemoteHomeVRule.java deleted file mode 100644 index f40ec25d1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/CMPRemoteHomeVRule.java +++ /dev/null @@ -1,131 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class CMPRemoteHomeVRule extends ACMPHomeVRule implements IRemoteType, IHomeType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_CMP_HOME; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_CMP_BEANCLASS, IValidationRuleList.EJB20_CMP_KEYCLASS, IValidationRuleList.EJB20_EJBEXT}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".crh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBHOME}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{FINDBYPRIMARYKEY, FIND}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{EJBSELECT}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CREATE, FINDBYPRIMARYKEY, FIND, HOME, EJBSELECT}; // Must know EJBSELECT to check that it's not exposed on this interface - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_findByPrimaryKey, new String[]{CHKJ2050_findByPrimaryKey+EXT}); - MESSAGE_IDS.put(CHKJ2050_find, new String[]{CHKJ2050_find+EXT}); - - MESSAGE_IDS.put(CHKJ2104, new String[]{CHKJ2104+SPEC}); - MESSAGE_IDS.put(CHKJ2402, new String[]{CHKJ2402+BEXT, CHKJ2402+MEXT}); - MESSAGE_IDS.put(CHKJ2403, new String[]{CHKJ2403+BEXT, CHKJ2403+MEXT}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2461, new String[]{CHKJ2461+BEXT, CHKJ2461+MEXT}); - MESSAGE_IDS.put(CHKJ2462, new String[]{CHKJ2462+BEXT, CHKJ2462+MEXT}); - MESSAGE_IDS.put(CHKJ2463, new String[]{CHKJ2463+BEXT, CHKJ2463+MEXT}); - MESSAGE_IDS.put(CHKJ2464, new String[]{CHKJ2464+BEXT, CHKJ2464+MEXT}); - MESSAGE_IDS.put(CHKJ2465, new String[]{CHKJ2465+BEXT, CHKJ2465+MEXT}); - MESSAGE_IDS.put(CHKJ2466, new String[]{CHKJ2466+BEXT, CHKJ2466+MEXT}); - MESSAGE_IDS.put(CHKJ2467, new String[]{CHKJ2467+BEXT, CHKJ2467+MEXT}); - - MESSAGE_IDS.put(CHKJ2475, new String[]{CHKJ2475+BEXT, CHKJ2475+MEXT}); - MESSAGE_IDS.put(CHKJ2477, new String[]{CHKJ2477+BEXT, CHKJ2477+MEXT}); - MESSAGE_IDS.put(CHKJ2478, new String[]{CHKJ2478+BEXT, CHKJ2478+MEXT}); - MESSAGE_IDS.put(CHKJ2479, new String[]{CHKJ2479+BEXT, CHKJ2479+MEXT}); - - MESSAGE_IDS.put(CHKJ2495, new String[]{CHKJ2495+BEXT, CHKJ2495+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_find, new String[]{CHKJ2500_find+BEXT, CHKJ2500_find+MEXT}); - MESSAGE_IDS.put(CHKJ2502_ejbSelect, new String[]{CHKJ2502_ejbSelect+BEXT, CHKJ2502_ejbSelect+MEXT}); - MESSAGE_IDS.put(CHKJ2503_create, new String[]{CHKJ2503_create+BEXT, CHKJ2503_create+MEXT}); - MESSAGE_IDS.put(CHKJ2503_find, new String[]{CHKJ2503_find+BEXT, CHKJ2503_find+MEXT}); - MESSAGE_IDS.put(CHKJ2503_home, new String[]{CHKJ2503_home+BEXT, CHKJ2503_home+MEXT}); - MESSAGE_IDS.put(CHKJ2504_create, new String[]{CHKJ2504_create+BEXT, CHKJ2504_create+MEXT}); - MESSAGE_IDS.put(CHKJ2504_find, new String[]{CHKJ2504_find+BEXT, CHKJ2504_find+MEXT}); - MESSAGE_IDS.put(CHKJ2504_home, new String[]{CHKJ2504_home+BEXT, CHKJ2504_home+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ClassUtility.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ClassUtility.java deleted file mode 100644 index 976d51c25..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ClassUtility.java +++ /dev/null @@ -1,304 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.Arrays; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - -public final class ClassUtility { - public static long supertype_counter = 0x1; // used by IMethodAndFieldConstants.java - private long[] _classTypeIndex; - private AClassType[] _classNames; - - private abstract class AClassType { - public abstract String getName(EnterpriseBean bean) throws InvalidInputException; - public abstract long getId(); - - public JavaHelpers getClass(EnterpriseBean bean) throws InvalidInputException { - return ValidationRuleUtility.getType(getName(bean), bean); - } - - /** - * Is this class type equal to the clazz parameter. - */ - public boolean equals(EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - if(clazz == null) { - return false; - } - - JavaHelpers thisClass = getClass(bean); - if(thisClass == null) { - return false; - } - - return clazz.equals(thisClass); - } - } - - private static ClassUtility _inst = null; - - private ClassUtility() { - buildTypeList(); - } - - public static ClassUtility getUtility() { - if(_inst == null) { - _inst = new ClassUtility(); - } - return _inst; - } - - /** - * Return true if the clazz is the same as the class, identified by the "type" - * parameter, in the bean. - */ - public boolean isClassType(EnterpriseBean bean, JavaClass clazz, long type) throws InvalidInputException { - AClassType ct = getClassType(type); - if(ct == null) { - // Unknown type - return false; - } - - return ct.equals(bean, clazz); - } - - public String getClassName(EnterpriseBean bean, long type) throws InvalidInputException { - AClassType ct = getClassType(type); - if(ct == null) { - return null; - } - - return ct.getName(bean); - } - - public AClassType getClassType(long type) { - int index = Arrays.binarySearch(_classTypeIndex, type); - if(index > _classNames.length) { - return null; - } - - if(index < 0) { - return null; - } - - if(_classNames[index].getId() != type) { - return null; - } - - return _classNames[index]; - } - - public JavaHelpers getSupertype(EnterpriseBean bean, long type) throws InvalidInputException { - AClassType ct = getClassType(type); - if(ct == null) { - // No supertype - return null; - } - - return ct.getClass(bean); - } - - private void buildTypeList() { - int typeCount = 12; // This is the number of identifiable classes in ITypeConstants - _classTypeIndex = new long[typeCount]; - _classNames = new AClassType[typeCount]; - int count = 0; - - // The index of the type in the long[] is equal to the - // index of the IMethodType in the IMethodType[]. By using - // this technique instead of a HashMap, we don't need to - // create an Integer every time we need to locate the - // IMethodType. - _classTypeIndex[count] = ITypeConstants.LOCAL_COMPONENT_INTERFACE; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - JavaHelpers clazz = getClass(bean); - if(clazz == null) { - return null; - } - return clazz.getQualifiedName(); - } - - public long getId() { - return ITypeConstants.LOCAL_COMPONENT_INTERFACE; - } - - public JavaHelpers getClass(EnterpriseBean bean) { - if(bean == null) { - return null; - } - - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_LocalInterface())) { - JavaClass result = bean.getLocalInterface(); - try { - ValidationRuleUtility.isValidTypeHierarchy(bean, result); - } - catch(InvalidInputException e) { - return null; - } - return result; - } - - return null; - } - }; - - _classTypeIndex[count] = ITypeConstants.REMOTE_COMPONENT_INTERFACE; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - JavaHelpers clazz = getClass(bean); - if(clazz == null) { - return null; - } - return clazz.getQualifiedName(); - } - - public long getId() { - return ITypeConstants.REMOTE_COMPONENT_INTERFACE; - } - - public JavaHelpers getClass(EnterpriseBean bean) { - if(bean == null) { - return null; - } - - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_RemoteInterface())) { - JavaClass result = bean.getRemoteInterface(); - try { - ValidationRuleUtility.isValidTypeHierarchy(bean, result); - } - catch(InvalidInputException e) { - return null; - } - return result; - } - - return null; - } - }; - - _classTypeIndex[count] = ITypeConstants.JAVAX_EJB_ENTITYBEAN; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - return ITypeConstants.CLASSNAME_JAVAX_EJB_ENTITYBEAN; - } - - public long getId() { - return ITypeConstants.JAVAX_EJB_ENTITYBEAN; - } - }; - - _classTypeIndex[count] = ITypeConstants.JAVAX_EJB_EJBLOCALHOME; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - return ITypeConstants.CLASSNAME_JAVAX_EJB_EJBLOCALHOME; - } - - public long getId() { - return ITypeConstants.JAVAX_EJB_EJBLOCALHOME; - } - }; - - _classTypeIndex[count] = ITypeConstants.JAVAX_EJB_EJBLOCALOBJECT; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - return ITypeConstants.CLASSNAME_JAVAX_EJB_EJBLOCALOBJECT; - } - - public long getId() { - return ITypeConstants.JAVAX_EJB_EJBLOCALOBJECT; - } - }; - - _classTypeIndex[count] = ITypeConstants.JAVAX_EJB_EJBHOME; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - return ITypeConstants.CLASSNAME_JAVAX_EJB_EJBHOME; - } - - public long getId() { - return ITypeConstants.JAVAX_EJB_EJBHOME; - } - }; - - _classTypeIndex[count] = ITypeConstants.JAVAX_EJB_EJBOBJECT; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - return ITypeConstants.CLASSNAME_JAVAX_EJB_EJBOBJECT; - } - - public long getId() { - return ITypeConstants.JAVAX_EJB_EJBOBJECT; - } - }; - - _classTypeIndex[count] = ITypeConstants.JAVA_LANG_OBJECT; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - return ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT; - } - - public long getId() { - return ITypeConstants.JAVA_LANG_OBJECT; - } - }; - - _classTypeIndex[count] = ITypeConstants.JAVAX_EJB_MESSAGEDRIVENBEAN; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - return ITypeConstants.CLASSNAME_JAVAX_EJB_MESSAGEDRIVENBEAN; - } - - public long getId() { - return ITypeConstants.JAVAX_EJB_MESSAGEDRIVENBEAN; - } - }; - - _classTypeIndex[count] = ITypeConstants.JAVAX_JMS_MESSAGELISTENER; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - return ITypeConstants.CLASSNAME_JAVAX_JMS_MESSAGELISTENER; - } - - public long getId() { - return ITypeConstants.JAVAX_JMS_MESSAGELISTENER; - } - }; - - _classTypeIndex[count] = ITypeConstants.JAVAX_EJB_SESSIONBEAN; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - return ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONBEAN; - } - - public long getId() { - return ITypeConstants.JAVAX_EJB_SESSIONBEAN; - } - }; - - _classTypeIndex[count] = ITypeConstants.JAVAX_EJB_SESSIONSYNCHRONIZATION; - _classNames[count++] = new AClassType() { - public String getName(EnterpriseBean bean) { - return ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONSYNCHRONIZATION; - } - - public long getId() { - return ITypeConstants.JAVAX_EJB_SESSIONSYNCHRONIZATION; - } - }; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ConnectorMessageConstants.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ConnectorMessageConstants.java deleted file mode 100644 index 890d48215..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ConnectorMessageConstants.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Jan 22, 2004 - * - * To change the template for this generated file go to - * Window - Preferences - Java - Code Generation - Code and Comments - */ -package org.eclipse.jst.j2ee.model.internal.validation; - - -/** - * To change the template for this generated type comment go to - * Window - Preferences - Java - Code Generation - Code and Comments - */ -public interface ConnectorMessageConstants extends J2EEMessageConstants { - public static final String DOCTYPE_1_3 = "1.0"; //$NON-NLS-1$ - public static final String DOCTYPE_1_4 = "1.5"; //$NON-NLS-1$ - public static final String CONNECTOR_MODEL_NAME = "CONNECTOR_VALIDATION"; //$NON-NLS-1$ - public static final String CONNECTOR_INVALID_DOC_TYPE_ERROR_ = "CONNECTOR_INVALID_DOC_TYPE_ERROR_"; //$NON-NLS-1$ - public static final String ERROR_INVALID_CONNECTOR_FILE = "ERROR_INVALID_CONNECTOR_FILE"; //$NON-NLS-1$ - public static final String ERROR_CONNECTOR_VALIDATION_FAILED = "ERROR_CONNECTOR_VALIDATION_FAILED"; //$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ConnectorValidator.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ConnectorValidator.java deleted file mode 100644 index 9f424079d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ConnectorValidator.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Jan 22, 2004 - * - * To change the template for this generated file go to - * Window - Preferences - Java - Code Generation - Code and Comments - */ -package org.eclipse.jst.j2ee.model.internal.validation; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.jst.j2ee.commonarchivecore.internal.RARFile; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.jca.Connector; -import org.eclipse.wst.validation.internal.core.Message; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; -import org.eclipse.wst.validation.internal.provisional.core.IValidationContext; - - -/** - * To change the template for this generated type comment go to - * Window - Preferences - Java - Code Generation - Code and Comments - */ -public class ConnectorValidator extends J2EEValidator implements ConnectorMessageConstants { - protected RARFile rarFile; - protected Connector connectorDD; - /** - * - */ - public ConnectorValidator() { - super(); - } - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.model.validation.J2EEValidator#getBaseName() - */ - public String getBaseName() { - return "rarvalidation"; //$NON-NLS-1$ - } - /** - * @return Returns the connectorDD. - */ - protected Connector getConnectorDD() { - return connectorDD; - } - - /** - * @param connectorDD The connectorDD to set. - */ - protected void setConnectorDD(Connector connectorDD) { - this.connectorDD = connectorDD; - } - - /** - * @return Returns the rarFile. - */ - protected RARFile getRarFile() { - return rarFile; - } - - /** - * @param rarFile The rarFile to set. - */ - protected void setRarFile(RARFile rarFile) { - this.rarFile = rarFile; - } - - /** - * Does the validation. - * - * @throws ValidationException - */ - public void validate(IValidationContext inHelper, IReporter inReporter) throws ValidationException { - validateInJob(inHelper, inReporter); - } - - protected void validateJ2EE14DocType() { - - if ( getConnectorDD().getVersionID() < J2EEVersionConstants.JCA_1_5_ID) { - String[] params = new String[3]; - params[0] = DOCTYPE_1_4; - //params[1] = helper.getProject().getName(); - params[2] = DOCTYPE_1_3; - addError(getBaseName(), CONNECTOR_INVALID_DOC_TYPE_ERROR_, params); - } else if (getConnectorDD().getVersionID() != J2EEVersionConstants.JCA_1_0_ID) { - String[] params = new String[3]; - params[0] = DOCTYPE_1_3; - //params[1] = helper.getProject().getName(); - params[2] = DOCTYPE_1_4; - addError(getBaseName(), CONNECTOR_INVALID_DOC_TYPE_ERROR_, params); - }// if - }// validateDocTypeVsNature - - public ISchedulingRule getSchedulingRule(IValidationContext helper) { - return null; - } - - public IStatus validateInJob(IValidationContext helper, IReporter reporter) throws ValidationException{ - - super.validateInJob(helper, reporter); - - // First remove all previous msg. for this project - _reporter.removeAllMessages(this, null); // Note the WarHelper will return web.xml with a null object as well - - try { - setRarFile((RARFile) helper.loadModel(CONNECTOR_MODEL_NAME)); - if (rarFile != null) { - setConnectorDD( rarFile.getDeploymentDescriptor() ); - //validateJ2EE14DocType(); - } else { - IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_INVALID_CONNECTOR_FILE); - throw new ValidationException(errorMsg); - } - - } catch (ValidationException ex) { - throw ex; - } catch (Exception e) { - IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_CONNECTOR_VALIDATION_FAILED); - throw new ValidationException(errorMsg, e); - } - return status; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/DuplicatesTable.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/DuplicatesTable.java deleted file mode 100644 index cb1c63878..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/DuplicatesTable.java +++ /dev/null @@ -1,156 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; - -/** - * In some places in the code, it is necessary to find out if there - * are duplicates in a list, and if there are, to register a validation - * message against the duplicates. This class is used to make finding - * the duplicates easier. - */ -public class DuplicatesTable extends java.util.HashMap { - /** - * - */ - private static final long serialVersionUID = -3189901849555229718L; - protected static final Boolean UNIQUE = Boolean.FALSE; - protected static final Boolean DUPLICATE = Boolean.TRUE; - protected Map _duplicates = null; - - /** - * Add an object to this table; if the object is a duplicate, it will be - * marked to a duplicate instead of being added twice to the table. - */ - public void add(Object o) { - // Build up hashtable to check for duplicate elements. - Object key = get(o); - if (key == null) { - put(o, UNIQUE); - } - else { - saveDuplicate(o); - put(o, DUPLICATE); - } - } - - protected void saveDuplicate(Object o) { - // The given object has been marked a duplicate. - // Given that the HashMap can store only one object with the key, - // duplicates are overwritten. This method stores the duplicates - // elsewhere in a List. - if (_duplicates == null) { - _duplicates = new HashMap(); - } - - List dupList = (List) _duplicates.get(o); - if (dupList == null) { - dupList = new ArrayList(); - } - - dupList.add(o); - _duplicates.put(o, dupList); - } - - /** - * If there are duplicates in this table, return true; else, return false. - */ - public boolean containsDuplicates() { - return containsValue(DUPLICATE); - } - - /** - * If there are unique elements in this table, return true; else, return false. - */ - public boolean containsUniques() { - return containsValue(UNIQUE); - } - - /** - * If there are duplicates in this table, return a set of the duplicates. - * Otherwise, return an empty set. - */ - public List getDuplicates() { - if (!containsDuplicates()) { - return Collections.EMPTY_LIST; - } - - // Else, get the duplicate elements from the list - return getElements(DUPLICATE); - } - - /** - * If there are duplicates in this table, return a list of the duplicates. - * Otherwise, return an empty list. - */ - private List getElements(Boolean type) { - if (type == null) { - return Collections.EMPTY_LIST; - } - - // Else, get the duplicate elements from the list - Set keys = keySet(); - if (keys == null) { - return Collections.EMPTY_LIST; - } - - List elements = new ArrayList(); - Iterator iterator = keys.iterator(); - while (iterator.hasNext()) { - Object key = iterator.next(); - Object value = get(key); - if (value == type) { - elements.add(key); - } - } - - if (type == DUPLICATE) { - // Also add the elements from the "duplicates" list. - if (_duplicates != null) { - iterator = _duplicates.values().iterator(); - while (iterator.hasNext()) { - List dupList = (List) iterator.next(); - elements.addAll(dupList); - } - } - } - - return elements; - } - - /** - * If there are unique elements in this table, return a set of the unique elements. - * Otherwise, return an empty set. - */ - public List getUniques() { - if (!containsUniques()) { - return Collections.EMPTY_LIST; - } - - // Else, get the unique elements from the list - return getElements(UNIQUE); - } - - public void clear() { - super.clear(); - if(_duplicates != null) { - _duplicates.clear(); - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EARValidationMessageResourceHandler.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EARValidationMessageResourceHandler.java deleted file mode 100644 index 4c914f36a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EARValidationMessageResourceHandler.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import org.eclipse.osgi.util.NLS; - -public class EARValidationMessageResourceHandler extends NLS { - - private static final String BUNDLE_NAME = "earvalidation";//$NON-NLS-1$ - - private EARValidationMessageResourceHandler() { - // Do not instantiate - } - - - public static String ERROR_EAR_VALIDATION_FAILED; - public static String ERROR_EAR_INVALID_EAR_FILE; - public static String ERROR_EAR_DUPLICATE_ROLES; - public static String MESSAGE_EAR_NO_MODULE_URI; - public static String MESSAGE_EAR_MISSING_URI; - public static String EAR_DD_PARSE_LINECOL; - public static String EAR_DD_PARSE_LINE; - public static String EAR_DD_PARSE_NOINFO; - public static String EAR_DD_CANNOT_OPEN_DD; - public static String URI_CONTAINS_SPACES_ERROR_; - public static String MESSAGE_EAR_DUPLICATE_URI_ERROR_; - public static String MESSAGE_EAR_DUPICATE_ROOTCONTEXT_ERROR_; - public static String MESSAGE_EMPTY_ALT_DD_ERROR_; - public static String DUPLICATE_UTILJAR_FOR_PROJECT_NAME_ERROR_; - public static String DUPLICATE_MODULE_FOR_PROJECT_NAME_ERROR_; - public static String MESSAGE_UTIL_URI_NAME_COLLISION_ERROR_; - public static String MESSAGE_UTIL_PROJECT_NAME_COLLISION_ERROR_; - public static String ERROR_READING_MANIFEST_ERROR_; - public static String MANIFEST_LINE_END_ERROR_; - public static String MANIFEST_LINE_EXCEEDS_LENGTH_ERROR_; - public static String INVALID_URI_FOR_MODULE_ERROR_; - public static String EAR_INVALID_DOC_TYPE_ERROR_; - public static String MODULE_DD_PARSE_LINECOL_ERROR_; - public static String MODULE_DD_PARSE_LINE_ERROR_; - public static String MODULE_DD_PARSE_NOINFO_ERROR_; - public static String EJB_BEAN_EJB_LINK_INTEFACE_MISMATCH_ERROR_; - public static String WARNING_METAFOLDER_MISSING; - public static String WARNING_FILE_MISSING; - public static String MESSAGE_INVALID_ALT_DD_WARN_; - public static String INVALID_MANIFEST_CLASSPATH_ONE_WARN_; - public static String INVALID_MANIFEST_CLASSPATH_TWO_WARN_; - public static String INVALID_MANIFEST_CLASSPATH_DEPENDENCY_WARN_; - public static String PROJECT_IS_CLOSED_WARN_; - public static String PROJECT_DOES_NOT_EXIST_WARN_; - public static String MISSING_WEBNATURE_FORMODULE_WARN_; - public static String DEPRECATED_ABSPATHS_WARN_; - public static String INVALID_CONTEXTROOT_WEBMODULE_WARN_; - public static String MISSING_CLIENTNATURE_FORMODULE_WARN_; - public static String MISSING_EJBNATURE_FORMODULE_WARN_; - public static String MISSING_PROJECT_FORMODULE_WARN_; - public static String INVALID_CASE_FOR_MANIFEST_ERROR_; - public static String URI_ALREADY_EXISTS_IN_EAR_WARN_; - public static String MISSING_MODULE_EXTENSION_ERROR_; - public static String PROJECT_SERVER_TARGET_DOES_NOT_MATCH_EAR; - public static String NO_SERVER_TARGET_MODULE_IN_EAR_WITH_SERVER_TARGET; - public static String NO_SERVER_TARGET_ON_EAR_WITH_MODULE_SERVER_TARGETS; - public static String INVALID_EAR_SERVER_TARGET_FOR_14_SPEC_LEVEL; - public static String INVALID_MODULE_SERVER_TARGET_FOR_14_SPEC_LEVEL; - public static String MESSAGE_INCOMPATIBLE_SPEC_WARNING_; - public static String MESSAGE_INCOMPATIBLE_13_SPEC_WARNING_; - public static String MESSAGE_INCOMPATIBLE_14_SPEC_WARNING_; - public static String EAR_VALIDATION_INTERNAL_ERROR_UI_; - - - static { - NLS.initializeMessages(BUNDLE_NAME, EARValidationMessageResourceHandler.class); - } - - /** - * String message; - ... - // no args - message = EARValidationMessageResourceHandler.key_one; - ... - // bind one arg - message = NLS.bind(EARValidationMessageResourceHandler.key_two, "example usage"); //$NON-NLS-1$ - - */ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBExt20VRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBExt20VRule.java deleted file mode 100644 index 5c2ea98da..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBExt20VRule.java +++ /dev/null @@ -1,248 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.logging.Level; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.MessageDriven; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - -/** - * Validate the WebSphere-specific implementation of non-spec features, such - * as component inheritance. - */ -public class EJBExt20VRule extends AValidationRule implements IMessagePrefixEjb20Constants { - private static final Map MESSAGE_IDS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATELESS_SESSION_BEANCLASS, IValidationRuleList.EJB20_STATELESS_SESSION_REMOTE, IValidationRuleList.EJB20_STATELESS_SESSION_HOME, IValidationRuleList.EJB20_STATELESS_SESSION_LOCAL, IValidationRuleList.EJB20_STATELESS_SESSION_LOCALHOME, IValidationRuleList.EJB20_STATEFUL_SESSION_BEANCLASS, IValidationRuleList.EJB20_STATEFUL_SESSION_REMOTE, IValidationRuleList.EJB20_STATEFUL_SESSION_HOME, IValidationRuleList.EJB20_STATEFUL_SESSION_LOCAL, IValidationRuleList.EJB20_STATEFUL_SESSION_LOCALHOME, IValidationRuleList.EJB20_CMP_BEANCLASS, IValidationRuleList.EJB20_CMP_REMOTE, IValidationRuleList.EJB20_CMP_HOME, IValidationRuleList.EJB20_CMP_LOCAL, IValidationRuleList.EJB20_CMP_LOCALHOME, IValidationRuleList.EJB20_CMP_KEYCLASS, IValidationRuleList.EJB20_BMP_BEANCLASS, IValidationRuleList.EJB20_BMP_REMOTE, IValidationRuleList.EJB20_BMP_HOME, IValidationRuleList.EJB20_BMP_LOCAL, IValidationRuleList.EJB20_BMP_LOCALHOME, IValidationRuleList.EJB20_BMP_KEYCLASS, IValidationRuleList.EJB20_MESSAGE_BEANCLASS, IValidationRuleList.EJB20_EJBJAR}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2106, new String[]{CHKJ2106+SPEC}); - MESSAGE_IDS.put(CHKJ2849, new String[]{CHKJ2849+SPEC}); - MESSAGE_IDS.put(CHKJ2852, new String[]{CHKJ2852}); - } - - public Object[] getDependsOn() { - return DEPENDS_ON; - } - - public Object getId() { - return IValidationRuleList.EJB20_EJBEXT; - } - - public Map getMessageIds() { - return MESSAGE_IDS; - } - - public Object getTarget(Object parent, Object clazz) { - return null; - } - - /** - * If the bean components (home interface, remote interface, bean class, and primary - * key) can all be found and reflected, return true. Let the DDValidator - * report the error message against the bean if one of these types doesn't reflect. - */ - public boolean areBeanComponentsReflected(EnterpriseBean bean) { - // Don't need to check if the bean is null, because this method will - // not be called if it is. - try { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getEjbClass()); - } - catch (InvalidInputException exc) { - return false; - } - - if(bean instanceof MessageDriven) { - // don't need to check the rest - return true; - } - - try { - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_HomeInterface())) { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getHomeInterface()); - } - } - catch (InvalidInputException exc) { - return false; - } - - try { - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_RemoteInterface())) { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getRemoteInterface()); - } - } - catch (InvalidInputException exc) { - return false; - } - - try { - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_LocalHomeInterface())) { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getLocalHomeInterface()); - } - } - catch (InvalidInputException exc) { - return false; - } - - try { - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_LocalInterface())) { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getLocalInterface()); - } - } - catch (InvalidInputException exc) { - return false; - } - - if (bean.isEntity()) { - JavaClass primaryKey = ((Entity) bean).getPrimaryKey(); - try { - if(((Entity)bean).eIsSet(EjbPackage.eINSTANCE.getEntity_PrimaryKey())) { - ValidationRuleUtility.isValidTypeHierarchy(bean, primaryKey); - } - } - catch (InvalidInputException exc) { - return false; - } - } - - return true; - } - - public void validate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - Logger logger = vc.getMsgLogger(); - if(logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EJB20Validator - validate"); //$NON-NLS-1$ - entry.setText(getClass().getName() + "::validate(" + targetParent + ", " + target); //$NON-NLS-1$ //$NON-NLS-2$ - logger.write(Level.FINEST, entry); - } - - EJBJar ejbJar = null; - if(targetParent == null) { - ejbJar = (EJBJar)target; - validate(vc, ejbJar); - } - else { - // running as a dependent - ejbJar = (EJBJar)vc.loadModel(EJBValidatorModelEnum.EJB_MODEL); - EnterpriseBean bean = (EnterpriseBean)targetParent; - validate(vc, ejbJar, bean); - } - } - - /* - * @see IValidationRule#validate(IEJBValidationContext, Object, Object) - */ - public void validate(IEJBValidationContext vc, EJBJar ejbJar) throws ValidationCancelledException, ValidationException { - List enterpriseBeans = ejbJar.getEnterpriseBeans(); - Iterator iterator = enterpriseBeans.iterator(); - EnterpriseBean bean = null; - while(iterator.hasNext()) { - bean = (EnterpriseBean)iterator.next(); - if(bean == null) { - // If bean isn't valid, don't perform any of the other - // validation checks on it. Let DDValidator output the error message. - continue; - } - validate(vc, ejbJar, bean); - } - } - - public void validate(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) throws ValidationCancelledException, ValidationException { - try { - // Check if the class exists, etc. - if(!areBeanComponentsReflected(bean)) { - // Something didn't reflect properly, so don't continue with the - // rest of the checks. Some metadata will be nonsense. - return; - } - - // Component inheritance is now checked in each VRule instead of here. - // This was necessary for incremental validation; if one class changed - // in the bean, and the bean was a member of component inheritance, then - // messages were added multiple times onto the classes which had not changed. - // In order to avoid multiple messages, only the component inheritance of - // the class which changed should be revalidated when the class changes. - validateAppendixB(vc, ejbJar, bean); // validate the key class since that message is registered against ejb-jar.xml - } - catch(ValidationCancelledException e) { - throw e; - } - /* unreachable catch block - catch(ValidationException exc) { - // If there's a problem, proceed with the next bean. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorConstants.CHKJ2852, IEJBValidationContext.WARNING, bean, new String[]{ArchiveConstants.EJBJAR_EXTENSIONS_SHORT_NAME, beanName}, this); - vc.addMessage(message); - if(logger.isLoggingLevel(Level.FINER)) { - logger.write(Level.FINER, exc); - } - } - */ - catch(Throwable exc) { - // If there's a problem, proceed with the next bean. - String superTypeName = getEJBInheritanceFileName(); - if(superTypeName == null) - superTypeName = "unknown super type"; //$NON-NLS-1$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2852, IEJBValidationContext.WARNING, bean, new String[]{superTypeName, bean.getName()}, this); - vc.addMessage(message); - Logger logger = vc.getMsgLogger(); - if(logger != null && logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, exc); - } - } - } - - protected void validateAppendixB(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - // The Java inheritance structure must match the EJB inheritance structure. - // e.g. if EJB B is a child of EJB A, then class B must be a child of class A. - // B could be a grandchild (or great-grandchild or ...) of A. - if(bean == null) { - return; - } - if(!bean.isEntity()) { - return; - } - JavaClass thisKey = ((Entity)bean).getPrimaryKey(); - EnterpriseBean supertype = getSuperType(bean); - JavaClass parentKey = null; - if (supertype != null) { - // check this CMP's supertype - // Key a Xchild of parent Key - // In WSA EJB component inheritance, the root EJB must define the key. - // The key is the same for all child EJBs. - if (supertype instanceof Entity) { - parentKey = ((Entity) supertype).getPrimaryKey(); - - if ((thisKey == null) || (parentKey == null) || !thisKey.equals(parentKey)) { - String[] msgParm = new String[] { bean.getName(), parentKey.getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2106, IEJBValidationContext.ERROR, bean, msgParm, this); - vc.addMessage(message); - } - } - } - -// validateAppendixB(vc, supertype, parentKey); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBJar11VRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBJar11VRule.java deleted file mode 100644 index a5f564dee..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBJar11VRule.java +++ /dev/null @@ -1,588 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.logging.Level; - -import org.eclipse.jem.java.Method; -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodPermission; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - -/** - * This class checks ejb-jar.xml for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * 15.2.5.3 Declaration of security roles referenced from the bean's code - * The Bean Provider is responsible for declaring in the security-role-ref elements of the deploy-ment - * descriptor all the security role names used in the enterprise bean code. Declaring the security roles - * references in the code allows the Application Assembler or Deployer to link the names of the security - * roles used in the code to the security roles defined for an assembled application through the secu-rity- - * role elements. - * The Bean Provider must declare each security role referenced in the code using the secu-rity- - * role-ref element as follows: - * Declare the name of the security role using the role-name element. The name must be the - * security role name that is used as a parameter to the isCallerInRole(String role-Name) - * method. - * Optional: Provide a description of the security role in the description element. - * A security role reference, including the name defined by the role-name element, is scoped to the ses-sion - * or entity bean element whose declaration contains the security-role-ref element. - * The following example illustrates how an enterprise bean's references to security roles are declared in - * the deployment descriptor. - * ... - * <enterprise-beans> - * ... - * <entity> - * <ejb-name>AardvarkPayroll</ejb-name> - * <ejb-class>com.aardvark.payroll.PayrollBean</ejb-class> - * ... - * <security-role-ref> - * <description> - * This security role should be assigned to the - * employees of the payroll department who are - * allowed to update employees' salaries. - * </description> - * <role-name>payroll</role-name> - * </security-role-ref> - * ... - * </entity> - * ... - * </enterprise-beans> - * ... - * - * The deployment descriptor above indicates that the enterprise bean AardvarkPayroll makes the - * security check using isCallerInRole("payroll") in its business method. - * - * - * 15.3.3 Linking security role references to security roles - * If the Application Assembler defines the security-role elements in the deployment descriptor, he - * or she is also responsible for linking all the security role references declared in the secu-rity- - * role-ref elements to the security roles defined in the security-role elements. - * The Application Assembler links each security role reference to a security role using the role-link - * element. The value of the role-link element must be the name of one of the security roles defined in - * a security-role element. - * A role-link element must be used even if the value of role-name is the same as the value of the - * role-link reference. - * The following deployment descriptor example shows how to link the security role reference named - * payroll to the security role named payroll-department. - * ... - * <enterprise-beans> - * ... - * <entity> - * <ejb-name>AardvarkPayroll</ejb-name> - * <ejb-class>com.aardvark.payroll.PayrollBean</ejb-class> - * ... - * <security-role-ref> - * <description> - * This role should be assigned to the - * employees of the payroll department. - * Members of this role have access to - * anyone's payroll record. - * - * The role has been linked to the - * payroll-department role. - * </description> - * <role-name>payroll</role-name> - * <role-link>payroll-department</role-link> - * </security-role-ref> - * ... - * </entity> - * ... - * </enterprise-beans> - * ... - */ -public class EJBJar11VRule extends AValidationRule implements IMessagePrefixEjb11Constants { - private DuplicatesTable _ejbName = null; - private static final Object ID = IValidationRuleList.EJB11_EJBJAR; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_SESSION_BEANCLASS, IValidationRuleList.EJB11_SESSION_REMOTE, IValidationRuleList.EJB11_SESSION_HOME, IValidationRuleList.EJB11_CMP_BEANCLASS, IValidationRuleList.EJB11_CMP_REMOTE, IValidationRuleList.EJB11_CMP_HOME, IValidationRuleList.EJB11_CMP_KEYCLASS, IValidationRuleList.EJB11_BMP_BEANCLASS, IValidationRuleList.EJB11_BMP_REMOTE, IValidationRuleList.EJB11_BMP_HOME, IValidationRuleList.EJB11_BMP_KEYCLASS, IValidationRuleList.EJB11_EJBEXT}; - - private static final Map MESSAGE_IDS; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2814, new String[]{CHKJ2814 + SPEC}); - - MESSAGE_IDS.put(CHKJ2825, new String[]{CHKJ2825 + SPEC}); - MESSAGE_IDS.put(CHKJ2826, new String[]{CHKJ2826 + SPEC}); - - MESSAGE_IDS.put(CHKJ2842, new String[]{CHKJ2842 + SPEC}); - MESSAGE_IDS.put(CHKJ2843, new String[]{CHKJ2843 + SPEC}); - MESSAGE_IDS.put(CHKJ2844, new String[]{CHKJ2844 + SPEC}); - MESSAGE_IDS.put(CHKJ2845, new String[]{CHKJ2845 + SPEC}); - MESSAGE_IDS.put(CHKJ2846, new String[]{CHKJ2846 + SPEC}); - MESSAGE_IDS.put(CHKJ2847, new String[]{CHKJ2847 + SPEC}); - - MESSAGE_IDS.put(CHKJ2850, new String[]{CHKJ2850 + SPEC}); - MESSAGE_IDS.put(CHKJ2852, new String[]{CHKJ2852}); - - MESSAGE_IDS.put(CHKJ2875, new String[]{CHKJ2875 + SPEC}); - - MESSAGE_IDS.put(CHKJ2895, new String[]{CHKJ2895 + SPEC}); - } - - public EJBJar11VRule() { - _ejbName = new DuplicatesTable(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public Object getTarget(Object parent, Object target) { - return null; - } - - /** - * 15.3.1 Security roles - * The Application Assembler can define one or more security roles in - * the deployment descriptor. The Application Assembler then assigns - * groups of methods of the enterprise beans' home and remote interfaces - * to the security roles to define the security view of the application. - * Because the Application Assembler does not, in general, know the - * security environment of the operational environment, the security - * roles are meant to be logical roles (or actors), each representing - * a type of user that should have the same access rights to the - * application. The Deployer then assigns user groups and/or user - * accounts defined in the operational environment to the security roles - * defined by the Application Assembler. - * Defining the security roles in the deployment descriptor is optional [17] - * for the Application Assembler. Their omission in the deployment - * descriptor means that the Application Assembler chose not to pass any - * security deployment related instructions to the Deployer in the - * deployment descriptor. The Application Assembler is responsible for - * the following: - * - Define each security role using a security-role element. - * - Use the role-name element to define the name of the security role. - * - Optionally, use the description element to provide a description of - * a security role. - * The security roles defined by the security-role elements are scoped to - * the ejb-jar file level, and apply to all the enterprise beans in the - * ejb-jar file. - * [17] If the Application Assembler does not define security roles in the - * deployment descriptor, the Deployer will have to define security - * roles at deployment time. - *... - */ - protected void validateAssemblyDescriptorElement(IEJBValidationContext vc, EJBJar ejbJar) { - vc.terminateIfCancelled(); - - // Validate the security roles, if they're defined in the assembly-descriptor. - if (ejbJar == null) { - // nothing to validate - return; - } - - /** - * Need to build up a list of duplicate role names, but the validation message - * needs to be registered against the duplicate SecurityRole instance. - * (Without the instance, we cannot get line numbers.) - * - * This class wrappers the SecurityRol instance so that the wrapper's - * implemention of equals compares the names, but the validation message will - * still be able to get the ref from the duplicate name. - */ - class RoleWrapper { - private SecurityRole _role = null; - - public RoleWrapper(SecurityRole role) { - _role = role; - } - - public boolean equals(Object o) { - if (o instanceof RoleWrapper) { - RoleWrapper other = (RoleWrapper) o; - return _role.getRoleName().equals(other.getRole().getRoleName()); - } - return false; - } - - public SecurityRole getRole() { - return _role; - } - } - - AssemblyDescriptor assemblyDescriptor = ejbJar.getAssemblyDescriptor(); - if (assemblyDescriptor == null) { - // nothing to validate - return; - } - - List roles = assemblyDescriptor.getSecurityRoles(); - if (roles != null) { - DuplicatesTable roleNames = new DuplicatesTable(); - SecurityRole role = null; - Iterator roleIt = roles.iterator(); - while (roleIt.hasNext()) { - vc.terminateIfCancelled(); - // Check that the role-name element has been set - role = (SecurityRole) roleIt.next(); - if (role == null) { - // role-name not set - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2825, IEJBValidationContext.WARNING, ejbJar, this); - vc.addMessage(message); - } - else if ((!role.eIsSet(CommonPackage.eINSTANCE.getSecurityRole_RoleName())) || (role.getRoleName().equals(""))) { //$NON-NLS-1$ - // role-name not set - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2825, IEJBValidationContext.WARNING, role, this); - vc.addMessage(message); - } - else { - // Build up hashtable to check for duplicate role-names. - roleNames.add(new RoleWrapper(role)); - } - } - - // Check that there are no duplicate role-names. (15.3.1) - if (roleNames.containsDuplicates()) { - List duplicates = roleNames.getDuplicates(); - Iterator iterator = duplicates.iterator(); - while (iterator.hasNext()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2826, IEJBValidationContext.WARNING, ((RoleWrapper) iterator.next()).getRole(), this); - vc.addMessage(message); - } - } - roleNames.clear(); - } - - List methTrans = assemblyDescriptor.getMethodTransactions(); - MethodTransaction mt = null; - Iterator iterator = methTrans.iterator(); - while (iterator.hasNext()) { - vc.terminateIfCancelled(); - - try { - mt = (MethodTransaction) iterator.next(); - } - catch (Throwable exc) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINER)) { - logger.write(Level.FINER, exc); - } - mt = null; - } - - if (mt == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("DDValidator.validateAssemblyDescriptorElement"); //$NON-NLS-1$ - entry.setText("mt is null"); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - continue; - } - - boolean hasValidMethod = validateMethodElements(vc, ejbJar, mt.getMethodElements()); - if (!hasValidMethod) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2847, IEJBValidationContext.WARNING, mt, this); - vc.addMessage(message); - } - } - - List methodPermissions = assemblyDescriptor.getMethodPermissions(); - iterator = methodPermissions.iterator(); - while (iterator.hasNext()) { - MethodPermission mp = (MethodPermission) iterator.next(); - - boolean hasValidMethod = validateMethodElements(vc, ejbJar, mp.getMethodElements()); - if (!hasValidMethod) { - // 15.3.2, p. 229, a <method-permission> must have at least one method listed (and that method must be found) - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2846, IEJBValidationContext.WARNING, mp, this); - vc.addMessage(message); - } - - // at least one security-role must be defined - List mproles = mp.getRoles(); - if ((mproles == null) || (mproles.size() == 0)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2845, IEJBValidationContext.WARNING, mp, this); - vc.addMessage(message); - } - } - } - - /** - * This validateDeploymentDescriptor is called if the EJBJar could load, which means - * that the syntax of the JAR is (mostly) correct. - * - * EJB spec 1.1, section C.4, "Added the requirement for the Bean Provider to specify whether the - * enterprise bean uses a bean-managed or container-managed transaction." - */ - public void validate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationException { - EJBJar ejbJar = (EJBJar) target; - List enterpriseBeans = ejbJar.getEnterpriseBeans(); - Iterator iterator = enterpriseBeans.iterator(); - EnterpriseBean bean = null; - String beanName = null; - while (iterator.hasNext()) { - try { - bean = (EnterpriseBean) iterator.next(); - register(vc, ejbJar, bean); - - Object id = IValidationRuleList.EJB11_ENTERPRISEBEAN; - IValidationRule vRule = EJBValidationRuleFactory.getFactory().getRule(vc, id); - if (vRule == null) { - // This has already been logged by the AbstractEJBValidationRuleFactory, so just - // need to add "Cannot validate" to the task list. - continue; - } - try { - vRule.preValidate(vc, ejbJar, bean); - vRule.validate(vc, ejbJar, bean); - vRule.postValidate(vc, ejbJar, bean); - } - catch (ValidationCancelledException exc) { - // Clean up the messages which are on the task list? Or is it nicer to leave them behind? - } - catch(ValidationException e) { - throw e; - } - catch (Throwable exc) { - addInternalErrorMessage(vc, exc); - } - finally { - EJBValidationRuleFactory.getFactory().release(vRule); - } - } - catch(ValidationCancelledException e) { - throw e; - } - catch (ValidationException e) { - throw e; - } - catch (Throwable exc) { - // If there's a problem, proceed with the next bean. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2852, IEJBValidationContext.WARNING, bean, new String[] { J2EEConstants.EJBJAR_DD_SHORT_NAME, beanName }, this); - vc.addMessage(message); - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, exc); - } - } - } - - // Since the assembly descriptor is not specific to a bean, validate it once, after all bean processing is complete. - validateAssemblyDescriptorElement(vc, ejbJar); - validateUniqueEjbNames(vc, ejbJar); - validateClientJAR(vc, ejbJar); - } - - public void reset() { - super.reset(); - _ejbName.clear(); - } - - protected void register(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - // To check if every bean name is unique, need to build a list - _ejbName.add(new EjbNameWrapper(bean)); - } - - private void addInternalErrorMessage(IEJBValidationContext vc, Throwable exc) { - IMessage mssg = vc.getMessage(); - mssg.setId(IEJBValidatorMessageConstants.CHKJ2900); - vc.addMessage(mssg); - - if(exc != null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, exc); - } - } - } - - public void validateUniqueEjbNames(IEJBValidationContext vc, EJBJar ejbJar) { - List names = _ejbName.getDuplicates(); - if(names.size() == 0) { - return; - } - - Iterator iterator = names.iterator(); - while(iterator.hasNext()) { - EjbNameWrapper wrapper = (EjbNameWrapper)iterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2895, IEJBValidationContext.WARNING, wrapper.getBean(), new String[]{wrapper.getBean().getName()}, this); - vc.addMessage(message); - } - } - - protected void validateClientJAR(IEJBValidationContext vc, EJBJar ejbJar) { - String clientJARName = ejbJar.getEjbClientJar(); - if(clientJARName == null) { - // No client JAR specified; everything's okay. - return; - } - - Boolean exists = (Boolean)vc.loadModel(EJBValidatorModelEnum.EJB_CLIENTJAR, new Object[]{clientJARName}); - if(exists == null) { - // Helper doesn't support load model. WAS? - // Can't perform this check, so just return. - return; - } - - if(!exists.booleanValue()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2875, IEJBValidationContext.ERROR, ejbJar, new String[]{clientJARName}, this); - vc.addMessage(message); - } - } - - /** - * Both section 11.4.1 and 15.3.2 need the <method> element. Also refer - * to 16.5 for syntax. - * - * Return true if at least one of the methods referenced by this list of - * MethodElement can be found. - */ - protected boolean validateMethodElements(IEJBValidationContext vc, EJBJar ejbJar, List elements) { - if ((elements == null) || (elements.size() == 0)) { - return false; - } - - boolean hasValidMethod = false; - Iterator iterator = elements.iterator(); - while (iterator.hasNext()) { - vc.terminateIfCancelled(); - MethodElement element = (MethodElement) iterator.next(); - - EnterpriseBean bean = element.getEnterpriseBean(); - if (bean == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2814, IEJBValidationContext.WARNING, element, this); - vc.addMessage(message); - continue; - } - - if (element.getName() != null) { - // Do not attempt to access the methods on the home or remote interface if there' - // been a problem locating or reflecting those types - boolean reflected = true; - try { - ValidationRuleUtility.isValidType(bean.getHomeInterface()); - } - catch (InvalidInputException e) { - reflected = false; - String className = (e.getJavaClass() == null) ? IEJBValidatorConstants.NULL_HOME : e.getJavaClass().getQualifiedName(); - String[] msgParm = { className }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2850, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - try { - ValidationRuleUtility.isValidType(bean.getRemoteInterface()); - } - catch (InvalidInputException e) { - reflected = false; - String className = (e.getJavaClass() == null) ? IEJBValidatorConstants.NULL_REMOTE : e.getJavaClass().getQualifiedName(); - String[] msgParm = { className }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2850, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - - if(reflected) { - // The "element.getMethods()" has a null pointer exception when it attempts to retrieve the methods from the home/remote interface, - // if either of the interfaces don't exist. - String name = element.getName(); - - Method[] methods = element.getMethods(); // get all methods which will be retrieved for the given method-permission - boolean hasMethods = ((methods != null) && (methods.length > 0)); - - if (!hasMethods) { - // warning - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2843, IEJBValidationContext.WARNING, element, new String[] { bean.getName()}, this); - vc.addMessage(message); - } - else { - hasValidMethod = true; // a <method-permission> must have at least one method (15.3.2, p.229) - if (name.equals("*")) { //$NON-NLS-1$ - List params = element.getMethodParams(); - if ((params != null) && (params.size() > 0)) { - // warning - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2842, IEJBValidationContext.WARNING, element, this); - vc.addMessage(message); - } - } - } - } - } - else { - // error - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2844, IEJBValidationContext.WARNING, element, this); - vc.addMessage(message); - } - } - - return hasValidMethod; - } - - /** - * Need to build up a list of duplicate EJB names, but the validation message - * needs to be registered against the duplicate EnterpriseBean instance. - * (Without the instance, we cannot get line numbers.) - * - * This class wrappers the EnterpriseBean instance so that the wrapper's - * implemention of equals compares the names, but the validation message will - * still be able to get the ref from the duplicate name. - */ - class EjbNameWrapper { - private EnterpriseBean _bean = null; - - public EjbNameWrapper(EnterpriseBean bean) { - _bean = bean; - } - - public boolean equals(Object o) { - if (o instanceof EjbNameWrapper) { - EjbNameWrapper other = (EjbNameWrapper)o; - if((_bean.getName() == null) && (other.getBean().getName() == null)) { - return true; - } - else if(_bean.getName() == null) { - return false; - } - else if(other.getBean().getName() == null) { - return false; - } - return _bean.getName().equals(other.getBean().getName()); - } - return false; - } - - public int hashCode() { - if((getBean() != null) && (getBean().getName() != null)) { - return getBean().getName().hashCode(); - } - return super.hashCode(); - } - - public EnterpriseBean getBean() { - return _bean; - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBJar20VRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBJar20VRule.java deleted file mode 100644 index 7b1b1fdda..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBJar20VRule.java +++ /dev/null @@ -1,877 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.logging.Level; - -import org.eclipse.jem.java.Method; -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodPermission; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; -import org.eclipse.jst.j2ee.ejb.MultiplicityKind; -import org.eclipse.jst.j2ee.ejb.Relationships; -import org.eclipse.jst.j2ee.ejb.RoleSource; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - -/** - * @version 1.0 - * @author - */ -public class EJBJar20VRule extends AValidationRule implements IMessagePrefixEjb20Constants { - private static final Map MESSAGE_IDS; - private DuplicatesTable _ejbName = null; - private DuplicatesTable _asName = null; - private DuplicatesTable _relationshipName = null; - private DuplicatesTable _relationshipRoleName = null; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATELESS_SESSION_BEANCLASS, IValidationRuleList.EJB20_STATELESS_SESSION_REMOTE, IValidationRuleList.EJB20_STATELESS_SESSION_HOME, IValidationRuleList.EJB20_STATELESS_SESSION_LOCAL, IValidationRuleList.EJB20_STATELESS_SESSION_LOCALHOME, IValidationRuleList.EJB20_STATEFUL_SESSION_BEANCLASS, IValidationRuleList.EJB20_STATEFUL_SESSION_REMOTE, IValidationRuleList.EJB20_STATEFUL_SESSION_HOME, IValidationRuleList.EJB20_STATEFUL_SESSION_LOCAL, IValidationRuleList.EJB20_STATEFUL_SESSION_LOCALHOME, IValidationRuleList.EJB20_CMP_BEANCLASS, IValidationRuleList.EJB20_CMP_REMOTE, IValidationRuleList.EJB20_CMP_HOME, IValidationRuleList.EJB20_CMP_LOCAL, IValidationRuleList.EJB20_CMP_LOCALHOME, IValidationRuleList.EJB20_CMP_KEYCLASS, IValidationRuleList.EJB20_BMP_BEANCLASS, IValidationRuleList.EJB20_BMP_REMOTE, IValidationRuleList.EJB20_BMP_HOME, IValidationRuleList.EJB20_BMP_LOCAL, IValidationRuleList.EJB20_BMP_LOCALHOME, IValidationRuleList.EJB20_BMP_KEYCLASS, IValidationRuleList.EJB20_MESSAGE_BEANCLASS, IValidationRuleList.EJB20_EJBEXT}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2800_NAMED, new String[]{CHKJ2800_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2800_UNNAMED, new String[]{CHKJ2800_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2802_NAMED, new String[]{CHKJ2802_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2802_UNNAMED, new String[]{CHKJ2802_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2803_NAMED, new String[]{CHKJ2803_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2803_UNNAMED, new String[]{CHKJ2803_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2804_NAMED, new String[]{CHKJ2804_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2804_UNNAMED, new String[]{CHKJ2804_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2805_NAMED, new String[]{CHKJ2805_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2805_UNNAMED, new String[]{CHKJ2805_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2806, new String[]{CHKJ2806+SPEC}); - MESSAGE_IDS.put(CHKJ2807, new String[]{CHKJ2807+SPEC}); - MESSAGE_IDS.put(CHKJ2808, new String[]{CHKJ2808+SPEC}); - MESSAGE_IDS.put(CHKJ2809, new String[]{CHKJ2809+SPEC}); - MESSAGE_IDS.put(CHKJ2810_NAMED, new String[]{CHKJ2810_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2810_UNNAMED, new String[]{CHKJ2810_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2811_NAMED, new String[]{CHKJ2811_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2814, new String[]{CHKJ2814+SPEC}); - MESSAGE_IDS.put(CHKJ2816, new String[]{CHKJ2816+SPEC}); - MESSAGE_IDS.put(CHKJ2817, new String[]{CHKJ2817+SPEC}); - MESSAGE_IDS.put(CHKJ2818, new String[]{CHKJ2818+SPEC}); - MESSAGE_IDS.put(CHKJ2820, new String[]{CHKJ2820+SPEC}); - MESSAGE_IDS.put(CHKJ2821, new String[]{CHKJ2821+SPEC}); - MESSAGE_IDS.put(CHKJ2822, new String[]{CHKJ2822+SPEC}); - MESSAGE_IDS.put(CHKJ2823, new String[]{CHKJ2823+SPEC}); - MESSAGE_IDS.put(CHKJ2824, new String[]{CHKJ2824+SPEC}); - MESSAGE_IDS.put(CHKJ2825, new String[]{CHKJ2825+SPEC}); - MESSAGE_IDS.put(CHKJ2826, new String[]{CHKJ2826+SPEC}); - MESSAGE_IDS.put(CHKJ2827, new String[]{CHKJ2827+SPEC}); - MESSAGE_IDS.put(CHKJ2828, new String[]{CHKJ2828+SPEC}); - MESSAGE_IDS.put(CHKJ2829, new String[]{CHKJ2829+SPEC}); - MESSAGE_IDS.put(CHKJ2830, new String[]{CHKJ2830+SPEC}); - MESSAGE_IDS.put(CHKJ2831, new String[]{CHKJ2831+SPEC}); - MESSAGE_IDS.put(CHKJ2832, new String[]{CHKJ2832+SPEC}); - MESSAGE_IDS.put(CHKJ2833, new String[]{CHKJ2833+SPEC}); - MESSAGE_IDS.put(CHKJ2834, new String[]{CHKJ2834+SPEC}); - MESSAGE_IDS.put(CHKJ2835, new String[]{CHKJ2835+SPEC}); - MESSAGE_IDS.put(CHKJ2836, new String[]{CHKJ2836+SPEC}); - MESSAGE_IDS.put(CHKJ2837, new String[]{CHKJ2837+SPEC}); - MESSAGE_IDS.put(CHKJ2838, new String[]{CHKJ2838+SPEC}); - MESSAGE_IDS.put(CHKJ2839, new String[]{CHKJ2839+SPEC}); - MESSAGE_IDS.put(CHKJ2841, new String[]{CHKJ2841+SPEC}); - MESSAGE_IDS.put(CHKJ2842, new String[]{CHKJ2842+SPEC}); - MESSAGE_IDS.put(CHKJ2843, new String[]{CHKJ2843+SPEC}); - MESSAGE_IDS.put(CHKJ2844, new String[]{CHKJ2844+SPEC}); - MESSAGE_IDS.put(CHKJ2845, new String[]{CHKJ2845+SPEC}); - MESSAGE_IDS.put(CHKJ2846, new String[]{CHKJ2846+SPEC}); - MESSAGE_IDS.put(CHKJ2847, new String[]{CHKJ2847+SPEC}); - MESSAGE_IDS.put(CHKJ2848, new String[]{CHKJ2848+SPEC}); - MESSAGE_IDS.put(CHKJ2850, new String[]{CHKJ2850+SPEC}); - MESSAGE_IDS.put(CHKJ2854, new String[]{CHKJ2854+SPEC}); - MESSAGE_IDS.put(CHKJ2855, new String[]{CHKJ2855+SPEC}); - MESSAGE_IDS.put(CHKJ2856, new String[]{CHKJ2856+SPEC}); - MESSAGE_IDS.put(CHKJ2857, new String[]{CHKJ2857+SPEC}); - MESSAGE_IDS.put(CHKJ2858, new String[]{CHKJ2858+SPEC}); - MESSAGE_IDS.put(CHKJ2859, new String[]{CHKJ2859+SPEC}); - MESSAGE_IDS.put(CHKJ2860, new String[]{CHKJ2860+SPEC}); - MESSAGE_IDS.put(CHKJ2866, new String[]{CHKJ2866+SPEC}); - MESSAGE_IDS.put(CHKJ2867, new String[]{CHKJ2867+SPEC}); - MESSAGE_IDS.put(CHKJ2868, new String[]{CHKJ2868+SPEC}); - MESSAGE_IDS.put(CHKJ2869, new String[]{CHKJ2869+SPEC}); - MESSAGE_IDS.put(CHKJ2871, new String[]{CHKJ2871+SPEC}); - MESSAGE_IDS.put(CHKJ2872, new String[]{CHKJ2872+SPEC}); - MESSAGE_IDS.put(CHKJ2873, new String[]{CHKJ2873+SPEC}); - MESSAGE_IDS.put(CHKJ2874, new String[]{CHKJ2874+SPEC}); - MESSAGE_IDS.put(CHKJ2875, new String[]{CHKJ2875 + SPEC}); - MESSAGE_IDS.put(CHKJ2895, new String[]{CHKJ2895+SPEC}); - MESSAGE_IDS.put(CHKJ2852, new String[]{CHKJ2852}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public EJBJar20VRule() { - _ejbName = new DuplicatesTable(); - _asName = new DuplicatesTable(); - _relationshipName = new DuplicatesTable(); - _relationshipRoleName = new DuplicatesTable(); - } - - public Object[] getDependsOn() { - // EJBJar doesn't depend on anything else - return DEPENDS_ON; - } - - public Object getId() { - return IValidationRuleList.EJB20_EJBJAR; - } - - public Map getMessageIds() { - return MESSAGE_IDS; - } - - public Object getTarget(Object parent, Object clazz) { - // Since this rule doesn't depend on another rule, this - // method (which is called on a dependent rule) will never - // be called. - return null; - } - - /* - * @see IValidationRule#reset() - */ - public void reset() { - super.reset(); - _ejbName.clear(); - _asName.clear(); - _relationshipName.clear(); - _relationshipRoleName.clear(); - } - - protected void addInternalErrorMessage(IEJBValidationContext vc, Throwable exc) { - IMessage mssg = vc.getMessage(); - mssg.setId(IEJBValidatorMessageConstants.CHKJ2900); - vc.addMessage(mssg); - - if(exc != null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, exc); - } - } - } - - protected void logMissingRule(IEJBValidationContext vc, Object ruleId) { - log(vc, ruleId + " = null"); //$NON-NLS-1$ - addInternalErrorMessage(vc, null); - } - - protected void log(IEJBValidationContext vc, String message) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, message); - } - } - - /* - * @see IValidationRule#validate(IEJBValidationContext, Object, Object) - */ - public void validate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - Logger logger = vc.getMsgLogger(); - if(logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EJBJar20VRule - validate"); //$NON-NLS-1$ - entry.setText(getClass().getName() + "::validate(" + targetParent + ", " + target); //$NON-NLS-1$ //$NON-NLS-2$ - logger.write(Level.FINEST, entry); - } - - EJBJar ejbJar = (EJBJar) target; - List beans = ejbJar.getEnterpriseBeans(); - Iterator iterator = beans.iterator(); - EnterpriseBean bean = null; - while (iterator.hasNext()) { - try { - bean = (EnterpriseBean) iterator.next(); - - register(vc, ejbJar, bean); - - Object id = null; - switch(bean.getVersionID()) { - case J2EEVersionConstants.EJB_1_0_ID: - case J2EEVersionConstants.EJB_1_1_ID: - id = IValidationRuleList.EJB11_ENTERPRISEBEAN; - break; - case J2EEVersionConstants.EJB_2_0_ID: - case J2EEVersionConstants.EJB_2_1_ID: - id = IValidationRuleList.EJB20_ENTERPRISEBEAN; - break; - default: - // What version is it then? - if(bean instanceof ContainerManagedEntity) { - validateCMPVersionElement(vc, ejbJar, (ContainerManagedEntity)bean); - } - else { - // log - log(vc, "!bean.isVersion1_X() && !bean.isVersion2_X()"); //$NON-NLS-1$ - } - continue; - } - - IValidationRule vRule = EJBValidationRuleFactory.getFactory().getRule(vc, id); - if(vRule == null) { - logMissingRule(vc, id); - continue; - } - try { - vRule.preValidate(vc, ejbJar, bean); - vRule.validate(vc, ejbJar, bean); - vRule.postValidate(vc, ejbJar, bean); - } - catch(ValidationCancelledException exc) { - // Clean up the messages which are on the task list? Or is it nicer to leave them behind? - throw exc; - } - catch(ValidationException e) { - throw e; - } - catch(Throwable exc) { - addInternalErrorMessage(vc, exc); - } - finally { - EJBValidationRuleFactory.getFactory().release(vRule); - } - - } - catch(ValidationCancelledException e) { - throw e; - } - catch(ValidationException exc) { - // something goes wrong, just proceed with the next bean - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2852, IEJBValidationContext.WARNING, bean, new String[]{J2EEConstants.EJBJAR_DD_SHORT_NAME, bean.getName()}, this); - vc.addMessage(message); - if (logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, exc); - } - } - catch (Throwable exc) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2852, IEJBValidationContext.WARNING, bean, new String[]{J2EEConstants.EJBJAR_DD_SHORT_NAME, bean.getName()}, this); - vc.addMessage(message); - if (logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, exc); - } - } - } - - // Since the assembly descriptor is not specific to a bean, validate it once, after all bean processing is complete. - validateAssemblyDescriptorElement(vc, ejbJar); - //TODO The Datasource validation will be done by the extensions - validateUniqueEjbNames(vc, ejbJar); - validateUniqueAbstractSchemaNames(vc, ejbJar); - validateRelationships(vc, ejbJar); - validateClientJAR(vc, ejbJar); - } - - protected void register(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - // To check if every bean name is unique, need to build a list - _ejbName.add(new EjbNameWrapper(bean)); - - if((bean instanceof ContainerManagedEntity) && bean.getVersionID() >= J2EEVersionConstants.EJB_2_0_ID) { - // To check if every bean name is unique, need to build a list - _asName.add(new ASNameWrapper((ContainerManagedEntity)bean)); - } - } - - protected void validateCMPVersionElement(IEJBValidationContext vc, EJBJar ejbJar, ContainerManagedEntity cmp) { - if(cmp.eIsSet(EjbPackage.eINSTANCE.getContainerManagedEntity_Version())) { - String version = cmp.getVersion(); - if(! (ContainerManagedEntity.VERSION_1_X.equals(version) || ContainerManagedEntity.VERSION_2_X.equals(version))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2872, IEJBValidationContext.ERROR, cmp, this); - vc.addMessage(message); - } - } - } - - - - protected void validateAssemblyDescriptorElement(IEJBValidationContext vc, EJBJar ejbJar) { - vc.terminateIfCancelled(); - - // Validate the security roles, if they're defined in the assembly-descriptor. - if (ejbJar == null) { - // nothing to validate - return; - } - - /** - * Need to build up a list of duplicate role names, but the validation message - * needs to be registered against the duplicate SecurityRole instance. - * (Without the instance, we cannot get line numbers.) - * - * This class wrappers the SecurityRol instance so that the wrapper's - * implemention of equals compares the names, but the validation message will - * still be able to get the ref from the duplicate name. - */ - class RoleWrapper { - private SecurityRole _role = null; - - public RoleWrapper(SecurityRole role) { - _role = role; - } - - public boolean equals(Object o) { - if (o instanceof RoleWrapper) { - RoleWrapper other = (RoleWrapper) o; - return _role.getRoleName().equals(other.getRole().getRoleName()); - } - return false; - } - - public SecurityRole getRole() { - return _role; - } - } - - AssemblyDescriptor assemblyDescriptor = ejbJar.getAssemblyDescriptor(); - if (assemblyDescriptor == null) { - // nothing to validate - return; - } - - List roles = assemblyDescriptor.getSecurityRoles(); - if (roles != null) { - DuplicatesTable roleNames = new DuplicatesTable(); - SecurityRole role = null; - Iterator roleIt = roles.iterator(); - while (roleIt.hasNext()) { - vc.terminateIfCancelled(); - // Check that the role-name element has been set - role = (SecurityRole) roleIt.next(); - if ((role == null) || (!role.eIsSet(CommonPackage.eINSTANCE.getSecurityRole_RoleName())) || (role.getRoleName().equals(""))) { //$NON-NLS-1$ - // role-name not set - if(role == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2825, IEJBValidationContext.WARNING, role, this); - vc.addMessage(message); - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2825, IEJBValidationContext.WARNING, assemblyDescriptor, this); - vc.addMessage(message); - } - } - else { - // Build up hashtable to check for duplicate role-names. - roleNames.add(new RoleWrapper(role)); - } - } - - // Check that there are no duplicate role-names. (15.3.1) - if (roleNames.containsDuplicates()) { - List duplicates = roleNames.getDuplicates(); - Iterator iterator = duplicates.iterator(); - while (iterator.hasNext()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2826, IEJBValidationContext.WARNING, ((RoleWrapper) iterator.next()).getRole(), this); - vc.addMessage(message); - } - } - roleNames.clear(); - } - - List methTrans = assemblyDescriptor.getMethodTransactions(); - MethodTransaction mt = null; - Iterator iterator = methTrans.iterator(); - while (iterator.hasNext()) { - vc.terminateIfCancelled(); - - try { - mt = (MethodTransaction) iterator.next(); - } - catch (Throwable exc) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINER)) { - logger.write(Level.FINER, exc); - } - mt = null; - } - - if (mt == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EJBJar20VRule.validateAssemblyDescriptorElement"); //$NON-NLS-1$ - entry.setText("mt is null"); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - continue; - } - - boolean hasValidMethod = validateMethodElements(vc, ejbJar, mt.getMethodElements()); - if (!hasValidMethod) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2847, IEJBValidationContext.WARNING, mt, this); - vc.addMessage(message); - } - } - - List methodPermissions = assemblyDescriptor.getMethodPermissions(); - iterator = methodPermissions.iterator(); - while (iterator.hasNext()) { - MethodPermission mp = (MethodPermission) iterator.next(); - - boolean hasValidMethod = validateMethodElements(vc, ejbJar, mp.getMethodElements()); - if (!hasValidMethod) { - // 15.3.2, p. 229, a <method-permission> must have at least one method listed (and that method must be found) - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2846, IEJBValidationContext.WARNING, mp, this); - vc.addMessage(message); - } - - // at least one security-role must be defined - List mproles = mp.getRoles(); - if (((mproles == null) || (mproles.size() == 0)) && (!mp.isSetUnchecked())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2845, IEJBValidationContext.WARNING, mp, this); - vc.addMessage(message); - } - } - } - - protected void validateUniqueAbstractSchemaNames(IEJBValidationContext vc, EJBJar ejbJar) { - List names = _asName.getDuplicates(); - if(names.size() == 0) { - return; - } - - Iterator iterator = names.iterator(); - while(iterator.hasNext()) { - ASNameWrapper wrapper = (ASNameWrapper)iterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2854, IEJBValidationContext.ERROR, wrapper.getBean(), new String[]{wrapper.getBean().getAbstractSchemaName()}, this); - vc.addMessage(message); - } - } - - protected void validateUniqueEjbNames(IEJBValidationContext vc, EJBJar ejbJar) { - List names = _ejbName.getDuplicates(); - if(names.size() == 0) { - return; - } - - Iterator iterator = names.iterator(); - while(iterator.hasNext()) { - EjbNameWrapper wrapper = (EjbNameWrapper)iterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2895, IEJBValidationContext.WARNING, wrapper.getBean(), new String[]{wrapper.getBean().getName()}, this); - vc.addMessage(message); - } - } - - protected void validateRelationships(IEJBValidationContext vc, EJBJar ejbJar) { - Relationships relationships = ejbJar.getRelationshipList(); - if(relationships == null) { - return; - } - - List ejbRelationList = relationships.getEjbRelations(); - Iterator iterator = ejbRelationList.iterator(); - while(iterator.hasNext()) { - EJBRelation relation = (EJBRelation)iterator.next(); - - _relationshipName.add(new EJBRelationNameWrapper(relation)); - - boolean atLeastOneCmrFieldExists = false; - List roles = relation.getRelationshipRoles(); - Iterator roleIterator = roles.iterator(); - while(roleIterator.hasNext()) { - EJBRelationshipRole role = (EJBRelationshipRole)roleIterator.next(); - - _relationshipRoleName.add(new EJBRelationshipRoleNameWrapper(role)); - - boolean validMultiplicity = role.isSetMultiplicity(); - if(!validMultiplicity) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2818, IEJBValidationContext.INFO, role, this); - vc.addMessage(message); - } - - // 10.3.4.2 - // The cascade-delete element can only be specified for an ejb-relationship-role - // element contained in an ejb-relation element if the *other* ejb-relationship-role - // element in the same ejb-relation element specifies a multiplicity of One. - EJBRelationshipRole oppositeRole = role.getOpposite(); - if(role.isSetCascadeDelete()) { - boolean isOtherMultiplicityOne = ((oppositeRole.isSetMultiplicity()) && (oppositeRole.getMultiplicity().getValue() == MultiplicityKind.ONE)); - if(!isOtherMultiplicityOne) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2848, IEJBValidationContext.INFO, role, this); - vc.addMessage(message); - } - } - - CMRField cmrField = role.getCmrField(); - if(cmrField != null) { - atLeastOneCmrFieldExists = true; - if(cmrField.eIsSet(EjbPackage.eINSTANCE.getCMRField_CollectionType())) { - String cmrFieldType = cmrField.getCollectionTypeName(); - if((!ITypeConstants.CLASSNAME_JAVA_UTIL_COLLECTION.equals(cmrFieldType)) && - (!ITypeConstants.CLASSNAME_JAVA_UTIL_SET.equals(cmrFieldType))) { - // CHKJ2868: The value of the <cmr-field-type> element must be either "java.util.Collection" or "java.util.Set" (EJB 2.0: 10.3.13, 22.5). - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2868, IEJBValidationContext.INFO, role, this); - vc.addMessage(message); - } - } - } - - RoleSource sourceRoleSource = role.getSource(); - if(sourceRoleSource == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2821, IEJBValidationContext.INFO, role, new String[]{role.getName()}, this); - vc.addMessage(message); - continue; - } - - Entity sourceEntity = sourceRoleSource.getEntityBean(); - if(sourceEntity == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2821, IEJBValidationContext.INFO, role, new String[]{role.getName()}, this); - vc.addMessage(message); - } - else if(sourceEntity.isContainerManagedEntity()) { - // CHKJ2866: <cmr-field> {0} must be defined on {1} (EJB 2.0: 22.5). - if(cmrField != null) { - ContainerManagedEntity cmp = (ContainerManagedEntity)sourceEntity; - List cmrFields = cmp.getCMRFields(); - boolean found_cmrField = false; - if((cmrFields != null) && (cmrFields.size() > 0)) { - found_cmrField = cmrFields.contains(cmrField); - } - - if(!found_cmrField) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2866, IEJBValidationContext.INFO, role, new String[]{cmrField.getName(), sourceEntity.getName()}, this); - vc.addMessage(message); - } - } - } - else { - // CHKJ2871: <ejb-name> {0} must refer to a CMP bean (EJB 2.0: 10.3.2, 10.3.13). - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2871, IEJBValidationContext.INFO, role, new String[]{sourceEntity.getName()}, this); - vc.addMessage(message); - } - - RoleSource oppositeRoleSource = oppositeRole.getSource(); - if(oppositeRoleSource == null) { - // Do not emit an error message - when we iterate to the role where - // this is the source, this error will be detected. - continue; - } - - Entity targetEntity = oppositeRoleSource.getEntityBean(); - if(targetEntity == null) { - // Do not emit an error message - when we iterate to the role where - // this is the source, this error will be detected. - } - else if(targetEntity.getLocalInterface() == null) { - // Does the target of this role have a local interface? - // CHKJ2867: This bean can have only unidirectional relationships to other beans (EJB 2.0: 10.3.2). - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2867, IEJBValidationContext.INFO, oppositeRole, this); - vc.addMessage(message); - } - } - - // Verify unique role names within the <ejb-relation> - validateUniqueRelationshipRoleNames(vc, ejbJar); - _relationshipRoleName.clear(); - - if(!atLeastOneCmrFieldExists) { - // CHKJ2869I: At least one <ejb-relationship-role> must define a <cmr-field> (EJB 2.0: 10.3.2, 10.3.13, 22.5). - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2869, IEJBValidationContext.INFO, relation, this); - vc.addMessage(message); - } - } - - validateUniqueRelationNames(vc, ejbJar); - } - - protected void validateUniqueRelationNames(IEJBValidationContext vc, EJBJar ejbJar) { - List names = _relationshipName.getDuplicates(); - if(names.size() == 0) { - return; - } - - Iterator iterator = names.iterator(); - while(iterator.hasNext()) { - EJBRelationNameWrapper wrapper = (EJBRelationNameWrapper)iterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2816, IEJBValidationContext.INFO, wrapper.getRelation(), new String[]{wrapper.getRelation().getName()}, this); - vc.addMessage(message); - } - } - - protected void validateUniqueRelationshipRoleNames(IEJBValidationContext vc, EJBJar ejbJar) { - List names = _relationshipRoleName.getDuplicates(); - if(names.size() == 0) { - return; - } - - Iterator iterator = names.iterator(); - while(iterator.hasNext()) { - EJBRelationshipRoleNameWrapper wrapper = (EJBRelationshipRoleNameWrapper)iterator.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2817, IEJBValidationContext.INFO, wrapper.getRelationshipRole(), new String[]{wrapper.getRelationshipRole().getName()}, this); - vc.addMessage(message); - } - } - - /** - * Both section 11.4.1 and 15.3.2 need the <method> element. Also refer - * to 16.5 for syntax. - * - * Return true if at least one of the methods referenced by this list of - * MethodElement can be found. - */ - protected boolean validateMethodElements(IEJBValidationContext vc, EJBJar ejbJar, List elements) { - if ((elements == null) || (elements.size() == 0)) { - return false; - } - - boolean hasValidMethod = false; - Iterator iterator = elements.iterator(); - while (iterator.hasNext()) { - vc.terminateIfCancelled(); - MethodElement element = (MethodElement) iterator.next(); - - EnterpriseBean bean = element.getEnterpriseBean(); - if (bean == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2814, IEJBValidationContext.WARNING, element, this); - vc.addMessage(message); - continue; - } - - if (element.getName() != null) { - String name = element.getName(); - - Method[] methods = element.getMethods(); // get all methods which will be retrieved for the given method-permission - boolean hasMethods = ((methods != null) && (methods.length > 0)); - - if (!hasMethods) { - // warning - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2843, IEJBValidationContext.WARNING, element, new String[] { bean.getName()}, this); - vc.addMessage(message); - } - else { - hasValidMethod = true; // a <method-permission> must have at least one method (15.3.2, p.229) - if (name.equals("*")) { //$NON-NLS-1$ - List params = element.getMethodParams(); - if ((params != null) && (params.size() > 0)) { - // warning - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2842, IEJBValidationContext.WARNING, element, this); - vc.addMessage(message); - } - } - } - } - else { - // error - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2844, IEJBValidationContext.WARNING, element, this); - vc.addMessage(message); - } - } - - return hasValidMethod; - } - - protected void validateClientJAR(IEJBValidationContext vc, EJBJar ejbJar) { - String clientJARName = ejbJar.getEjbClientJar(); - if(clientJARName == null) { - // No client JAR specified; everything's okay. - return; - } - - Boolean exists = (Boolean)vc.loadModel(EJBValidatorModelEnum.EJB_CLIENTJAR, new Object[]{clientJARName}); - if(exists == null) { - // Helper doesn't support load model. WAS? - // Can't perform this check, so just return. - return; - } - - if(!exists.booleanValue()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2875, IEJBValidationContext.ERROR, ejbJar, new String[]{clientJARName}, this); - vc.addMessage(message); - } - } - - class ASNameWrapper { - private ContainerManagedEntity _bean = null; - - public ASNameWrapper(ContainerManagedEntity bean) { - _bean = bean; - } - - public boolean equals(Object o) { - if (o instanceof ASNameWrapper) { - ASNameWrapper other = (ASNameWrapper)o; - if((_bean.getAbstractSchemaName() == null) && (other.getBean().getAbstractSchemaName() == null)) { - return true; - } - else if(_bean.getAbstractSchemaName() == null) { - return false; - } - else if(other.getBean().getAbstractSchemaName() == null) { - return false; - } - return _bean.getAbstractSchemaName().equals(other.getBean().getAbstractSchemaName()); - } - return false; - } - - public int hashCode() { - if((getBean() != null) && (getBean().getAbstractSchemaName() != null)) { - return getBean().getAbstractSchemaName().hashCode(); - } - return super.hashCode(); - } - - public ContainerManagedEntity getBean() { - return _bean; - } - } - - /** - * Need to build up a list of duplicate EJB names, but the validation message - * needs to be registered against the duplicate EnterpriseBean instance. - * (Without the instance, we cannot get line numbers.) - * - * This class wrappers the EnterpriseBean instance so that the wrapper's - * implemention of equals compares the names, but the validation message will - * still be able to get the ref from the duplicate name. - */ - class EjbNameWrapper { - private EnterpriseBean _bean = null; - - public EjbNameWrapper(EnterpriseBean bean) { - _bean = bean; - } - - public boolean equals(Object o) { - if (o instanceof EjbNameWrapper) { - EjbNameWrapper other = (EjbNameWrapper)o; - if((_bean.getName() == null) && (other.getBean().getName() == null)) { - return true; - } - else if(_bean.getName() == null) { - return false; - } - else if(other.getBean().getName() == null) { - return false; - } - return _bean.getName().equals(other.getBean().getName()); - } - return false; - } - - public int hashCode() { - if((getBean() != null) && (getBean().getName() != null)) { - return getBean().getName().hashCode(); - } - return super.hashCode(); - } - - public EnterpriseBean getBean() { - return _bean; - } - } - - /** - * Need to build up a list of duplicate relation names, but the validation message - * needs to be registered against the duplicate EnterpriseBean instance. - * (Without the instance, we cannot get line numbers.) - * - * This class wrappers the EnterpriseBean instance so that the wrapper's - * implemention of equals compares the names, but the validation message will - * still be able to get the ref from the duplicate name. - */ - class EJBRelationNameWrapper { - private EJBRelation _relation = null; - - public EJBRelationNameWrapper(EJBRelation rel) { - _relation = rel; - } - - public boolean equals(Object o) { - if (o instanceof EJBRelationNameWrapper) { - EJBRelationNameWrapper other = (EJBRelationNameWrapper)o; - if((_relation.getName() == null) && (other.getRelation().getName() == null)) { - return true; - } - else if(_relation.getName() == null) { - return false; - } - else if(other.getRelation().getName() == null) { - return false; - } - return _relation.getName().equals(other.getRelation().getName()); - } - return false; - } - - public int hashCode() { - if((getRelation() != null) && (getRelation().getName() != null)) { - return getRelation().getName().hashCode(); - } - return super.hashCode(); - } - - public EJBRelation getRelation() { - return _relation; - } - } - - /** - * Need to build up a list of duplicate relation names, but the validation message - * needs to be registered against the duplicate EnterpriseBean instance. - * (Without the instance, we cannot get line numbers.) - * - * This class wrappers the EnterpriseBean instance so that the wrapper's - * implemention of equals compares the names, but the validation message will - * still be able to get the ref from the duplicate name. - */ - class EJBRelationshipRoleNameWrapper { - private EJBRelationshipRole _relationshipRole = null; - - public EJBRelationshipRoleNameWrapper(EJBRelationshipRole role) { - _relationshipRole = role; - } - - public boolean equals(Object o) { - if (o instanceof EJBRelationshipRoleNameWrapper) { - EJBRelationshipRoleNameWrapper other = (EJBRelationshipRoleNameWrapper)o; - if((_relationshipRole.getRoleName() == null) && (other.getRelationshipRole().getRoleName() == null)) { - return true; - } - else if(_relationshipRole.getRoleName() == null) { - return false; - } - else if(other.getRelationshipRole().getRoleName() == null) { - return false; - } - return _relationshipRole.getRoleName().equals(other.getRelationshipRole().getRoleName()); - } - return false; - } - - public int hashCode() { - if((getRelationshipRole() != null) && (getRelationshipRole().getRoleName() != null)) { - return getRelationshipRole().getRoleName().hashCode(); - } - return super.hashCode(); - } - - public EJBRelationshipRole getRelationshipRole() { - return _relationshipRole; - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidationContext.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidationContext.java deleted file mode 100644 index 4f8ccdf10..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidationContext.java +++ /dev/null @@ -1,199 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.wst.validation.internal.core.Message; -import org.eclipse.wst.validation.internal.core.MessageFilter; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; -import org.eclipse.wst.validation.internal.provisional.core.IValidationContext; -import org.eclipse.wst.validation.internal.provisional.core.IValidator; - -/** - * @version 1.0 - * @author - */ -public class EJBValidationContext implements IEJBValidationContext { - private IValidator _validator = null; - private IValidationContext _helper = null; - private IReporter _reporter = null; - private LogEntry logEntry = null; -// private IMessage _message = null; - - public EJBValidationContext(IValidator v, IValidationContext h, IReporter r) { - setValidator(v); - setHelper(h); - setReporter(r); - } - - public IValidator getValidator() { - return _validator; - } - - public void setValidator(IValidator v) { - _validator = v; - } - - public IValidationContext getHelper() { - return _helper; - } - - public void setHelper(IValidationContext h) { - _helper = h; - } - - public IReporter getReporter() { - return _reporter; - } - - public void setReporter(IReporter r) { - _reporter = r; - } - - /* - * Returns an empty Message which can be reused. - */ - public IMessage getMessage() { - IMessage message = new Message(); - message.setBundleName(IEJBValidatorConstants.BUNDLE_NAME); - return message; - /* - if(_message == null) { - _message = new Message(); - } - - reset(_message); - _message.setBundleName(IEJBValidatorConstants.BUNDLE_NAME); - - return _message; - */ - } - - /** - * If, for performance reasons, an IMessage is reused instead of creating - * a new one each time, this method resets the internal fields to the default. - * - * This method should really be on the IMessage implementation itself, but - * this'll do for now. - */ - protected void reset(IMessage message) { - message.setId(null); - message.setParams(null); - message.setSeverity(MessageFilter.ANY_SEVERITY); - message.setTargetObject(null); - message.setBundleName(null); - message.setGroupName(null); - message.setLineNo(IMessage.LINENO_UNSET); - message.setOffset(IMessage.OFFSET_UNSET); - message.setLength(IMessage.OFFSET_UNSET); - } - - - - public Logger getMsgLogger() { - return Logger.getLogger(IEJBValidatorConstants.J2EE_CORE_PLUGIN); - } - - public LogEntry getLogEntry() { - if(logEntry == null) - logEntry = new LogEntry(IEJBValidatorConstants.BUNDLE_NAME); - return logEntry; - } - - public Object loadModel(String symbolicName) { - return getHelper().loadModel(symbolicName); - } - - public Object loadModel(String symbolicName, Object[] parms) { - return getHelper().loadModel(symbolicName, parms); - } - - public void removeAllMessages() { - getReporter().removeAllMessages(getValidator()); - } - - public void removeMessages(Object target) { - getReporter().removeAllMessages(getValidator(), target); - } - - public void removeMessages(Object target, String groupIdentifier) { - getReporter().removeMessageSubset(getValidator(), target, groupIdentifier); - } - - public void addMessage(IMessage message) { - if(message == null) { - return; - } - getReporter().addMessage(getValidator(), message); - } - - public void addMessage(int severity, String messageId) { - IMessage message = new Message(IEJBValidatorConstants.BUNDLE_NAME,severity,messageId); - getReporter().addMessage(getValidator(), message); - } - - public void addMessage(int severity, String messageId, String[] parms) { - IMessage message = new Message(IEJBValidatorConstants.BUNDLE_NAME,severity,messageId,parms); - getReporter().addMessage(getValidator(), message); - } - - public void addMessage(int severity, String messageId, Object target) { - IMessage message = new Message(IEJBValidatorConstants.BUNDLE_NAME,severity,messageId,null,target); - getReporter().addMessage(getValidator(), message); - } - - public void addMessage(int severity, String messageId, String[] parms, Object target) { - IMessage message = new Message(IEJBValidatorConstants.BUNDLE_NAME,severity,messageId,parms,target); - getReporter().addMessage(getValidator(), message); - } - - public void addMessage(int severity, String messageId, Object target, String groupName) { - /** - * 11/28/05 Commenting the following line to get rid of Warning message - * Quite possibly the getRoporter().addMessage needs to be used. - * - */ - - //IMessage message = new Message(IEJBValidatorConstants.BUNDLE_NAME,severity,messageId,null,target,groupName); - } - - public void addMessage(int severity, String messageId, String[] parms, Object target, String groupName) { - IMessage message = new Message(IEJBValidatorConstants.BUNDLE_NAME,severity,messageId,parms,target,groupName); - getReporter().addMessage(getValidator(), message); - } - - public void terminateIfCancelled() throws ValidationCancelledException { - if(getReporter().isCancelled()) { - throw new ValidationCancelledException(); - } - } - - public void subtask(String messageId) { - subtask(messageId, null); - } - - public void subtask(String messageId, String[] parms) { - if((messageId == null) || (messageId.equals(""))) { //$NON-NLS-1$ - return; - } - IMessage message = getMessage(); - message.setId(messageId); - message.setParams(parms); - getReporter().displaySubtask(getValidator(), message); - } - - public String[] getURIs() { - return null; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidationRuleFactory.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidationRuleFactory.java deleted file mode 100644 index 610ab0322..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidationRuleFactory.java +++ /dev/null @@ -1,373 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.logging.Level; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; - -/** - * Core EJB Validation rules - */ -public class EJBValidationRuleFactory extends AbstractEJBValidationRuleFactory { - private static EJBValidationRuleFactory _inst = null; - private Logger logger = null; - - public EJBValidationRuleFactory() { - createRuleList(); - } - - public static EJBValidationRuleFactory getFactory() { - if(_inst == null) { - _inst = new EJBValidationRuleFactory(); - } - return _inst; - } - protected Logger getMsgLogger(){ - if(logger == null) - logger = Logger.getLogger(IEJBValidatorConstants.J2EE_CORE_PLUGIN); - return logger; - } - private void createRuleList() { - _ruleList = new HashMap(); - - _ruleList.put(IValidationRuleList.EJB11_EJBJAR, new org.eclipse.jst.j2ee.model.internal.validation.EJBJar11VRule()); - _ruleList.put(IValidationRuleList.EJB20_EJBJAR, new org.eclipse.jst.j2ee.model.internal.validation.EJBJar20VRule()); - - _ruleList.put(IValidationRuleList.EJB11_ENTERPRISEBEAN, new org.eclipse.jst.j2ee.model.internal.validation.EnterpriseBean11VRule()); - _ruleList.put(IValidationRuleList.EJB20_ENTERPRISEBEAN, new org.eclipse.jst.j2ee.model.internal.validation.EnterpriseBean20VRule()); - - _ruleList.put(IValidationRuleList.EJB11_SESSION_BEANCLASS, new org.eclipse.jst.j2ee.model.internal.validation.ValidateSessionBean()); - _ruleList.put(IValidationRuleList.EJB11_SESSION_REMOTE, new org.eclipse.jst.j2ee.model.internal.validation.ValidateSessionRemote()); - _ruleList.put(IValidationRuleList.EJB11_SESSION_HOME, new org.eclipse.jst.j2ee.model.internal.validation.ValidateSessionHome()); - - _ruleList.put(IValidationRuleList.EJB20_STATELESS_SESSION_BEANCLASS, new org.eclipse.jst.j2ee.model.internal.validation.StatelessSessionBeanClassVRule()); - _ruleList.put(IValidationRuleList.EJB20_STATELESS_SESSION_REMOTE, new org.eclipse.jst.j2ee.model.internal.validation.StatelessSessionRemoteComponentVRule()); - _ruleList.put(IValidationRuleList.EJB20_STATELESS_SESSION_HOME, new org.eclipse.jst.j2ee.model.internal.validation.StatelessSessionRemoteHomeVRule()); - _ruleList.put(IValidationRuleList.EJB20_STATELESS_SESSION_LOCAL, new org.eclipse.jst.j2ee.model.internal.validation.StatelessSessionLocalComponentVRule()); - _ruleList.put(IValidationRuleList.EJB20_STATELESS_SESSION_LOCALHOME, new org.eclipse.jst.j2ee.model.internal.validation.StatelessSessionLocalHomeVRule()); - - _ruleList.put(IValidationRuleList.EJB20_STATEFUL_SESSION_BEANCLASS, new org.eclipse.jst.j2ee.model.internal.validation.StatefulSessionBeanClassVRule()); - _ruleList.put(IValidationRuleList.EJB20_STATEFUL_SESSION_REMOTE, new org.eclipse.jst.j2ee.model.internal.validation.StatefulSessionRemoteComponentVRule()); - _ruleList.put(IValidationRuleList.EJB20_STATEFUL_SESSION_HOME, new org.eclipse.jst.j2ee.model.internal.validation.StatefulSessionRemoteHomeVRule()); - _ruleList.put(IValidationRuleList.EJB20_STATEFUL_SESSION_LOCAL, new org.eclipse.jst.j2ee.model.internal.validation.StatefulSessionLocalComponentVRule()); - _ruleList.put(IValidationRuleList.EJB20_STATEFUL_SESSION_LOCALHOME, new org.eclipse.jst.j2ee.model.internal.validation.StatefulSessionLocalHomeVRule()); - - _ruleList.put(IValidationRuleList.EJB11_CMP_BEANCLASS, new org.eclipse.jst.j2ee.model.internal.validation.ValidateCMPBean()); - _ruleList.put(IValidationRuleList.EJB11_CMP_REMOTE, new org.eclipse.jst.j2ee.model.internal.validation.ValidateCMPRemote()); - _ruleList.put(IValidationRuleList.EJB11_CMP_KEYCLASS, new org.eclipse.jst.j2ee.model.internal.validation.ValidateCMPKey()); - - _ruleList.put(IValidationRuleList.EJB20_CMP_BEANCLASS, new org.eclipse.jst.j2ee.model.internal.validation.CMPBeanClassVRule()); - _ruleList.put(IValidationRuleList.EJB20_CMP_REMOTE, new org.eclipse.jst.j2ee.model.internal.validation.CMPRemoteComponentVRule()); - _ruleList.put(IValidationRuleList.EJB20_CMP_HOME, new org.eclipse.jst.j2ee.model.internal.validation.CMPRemoteHomeVRule()); - _ruleList.put(IValidationRuleList.EJB20_CMP_LOCAL, new org.eclipse.jst.j2ee.model.internal.validation.CMPLocalComponentVRule()); - _ruleList.put(IValidationRuleList.EJB20_CMP_LOCALHOME, new org.eclipse.jst.j2ee.model.internal.validation.CMPLocalHomeVRule()); - _ruleList.put(IValidationRuleList.EJB20_CMP_KEYCLASS, new org.eclipse.jst.j2ee.model.internal.validation.CMPKeyClassVRule()); - - _ruleList.put(IValidationRuleList.EJB11_BMP_BEANCLASS, new org.eclipse.jst.j2ee.model.internal.validation.ValidateBMPBean()); - _ruleList.put(IValidationRuleList.EJB11_BMP_REMOTE, new org.eclipse.jst.j2ee.model.internal.validation.ValidateBMPRemote()); - _ruleList.put(IValidationRuleList.EJB11_BMP_HOME, new org.eclipse.jst.j2ee.model.internal.validation.ValidateBMPHome()); - _ruleList.put(IValidationRuleList.EJB11_BMP_KEYCLASS, new org.eclipse.jst.j2ee.model.internal.validation.ValidateBMPKey()); - - _ruleList.put(IValidationRuleList.EJB20_BMP_BEANCLASS, new org.eclipse.jst.j2ee.model.internal.validation.BMPBeanClassVRule()); - _ruleList.put(IValidationRuleList.EJB20_BMP_REMOTE, new org.eclipse.jst.j2ee.model.internal.validation.BMPRemoteComponentVRule()); - _ruleList.put(IValidationRuleList.EJB20_BMP_HOME, new org.eclipse.jst.j2ee.model.internal.validation.BMPRemoteHomeVRule()); - _ruleList.put(IValidationRuleList.EJB20_BMP_LOCAL, new org.eclipse.jst.j2ee.model.internal.validation.BMPLocalComponentVRule()); - _ruleList.put(IValidationRuleList.EJB20_BMP_LOCALHOME, new org.eclipse.jst.j2ee.model.internal.validation.BMPLocalHomeVRule()); - _ruleList.put(IValidationRuleList.EJB20_BMP_KEYCLASS, new org.eclipse.jst.j2ee.model.internal.validation.BMPKeyClassVRule()); - - _ruleList.put(IValidationRuleList.EJB20_MESSAGE_BEANCLASS, new org.eclipse.jst.j2ee.model.internal.validation.MessageDrivenBeanClassVRule()); - - addDependentRuleToRuleList(); - logAllDependentRules(); - } - - /** - * If the IFileDelta represents a static load model (i.e., the file name is always the same), - * then return the Integer which loads that model. Otherwise return null. - */ - public Object getRuleId(IEJBValidationContext vc, String fileName) { - if(fileName == null) { - Logger aLogger = vc.getMsgLogger(); - if (aLogger != null && aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule from fileName: " + fileName); //$NON-NLS-1$ - } - return null; - } - - EJBJar ejbJar = getEJBJar(vc); - - if(fileName.endsWith(J2EEConstants.EJBJAR_DD_SHORT_NAME)) { - if(ejbJar.getVersionID() == J2EEVersionConstants.EJB_1_1_ID) { - return IValidationRuleList.EJB11_EJBJAR; - } - return IValidationRuleList.EJB20_EJBJAR; - } - return null; // must be a JavaClass - } - - /** - * If the IFileDelta represents a dynamic load model (i.e., the file name can be changed by the - * user), then return the Integer which loads that model. Return null if no such model exists. - */ - public final Object getRuleId(IEJBValidationContext vc, JavaClass clazz, EnterpriseBean bean) { - // Return the rule id which will validate the JavaClass as the - // type which it is used as by the EnterpriseBean. - if((clazz == null) || (bean == null)) { - Logger aLogger = vc.getMsgLogger(); - if (aLogger != null && aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule because either bean (" + bean + ") or class (" + clazz + ") is null"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - } - return null; - } - - boolean isStatelessSession = (bean.isSession() && ValidationRuleUtility.isStateless(bean)); - boolean isStatefulSession = (bean.isSession() && ValidationRuleUtility.isStateful(bean)); - - if(bean.getVersionID() >= J2EEVersionConstants.EJB_2_0_ID) { - if(clazz.equals(bean.getEjbClass())) { - if(isStatelessSession) { - return IValidationRuleList.EJB20_STATELESS_SESSION_BEANCLASS; - } - else if(isStatefulSession) { - return IValidationRuleList.EJB20_STATEFUL_SESSION_BEANCLASS; - } - else if(bean.isContainerManagedEntity()) { - return IValidationRuleList.EJB20_CMP_BEANCLASS; - } - else if(bean.isBeanManagedEntity()) { - return IValidationRuleList.EJB20_BMP_BEANCLASS; - } - else if(bean.isMessageDriven()) { - return IValidationRuleList.EJB20_MESSAGE_BEANCLASS; - } - else { - Logger aLogger = vc.getMsgLogger(); - if (aLogger != null && aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion2_X() && clazz.equals(bean.getEjbClass()"); //$NON-NLS-1$ - } - - return null; - } - } - else if(clazz.equals(bean.getRemoteInterface())) { - if(isStatelessSession) { - return IValidationRuleList.EJB20_STATELESS_SESSION_REMOTE; - } - else if(isStatefulSession) { - return IValidationRuleList.EJB20_STATEFUL_SESSION_REMOTE; - } - else if(bean.isContainerManagedEntity()) { - return IValidationRuleList.EJB20_CMP_REMOTE; - } - else if(bean.isBeanManagedEntity()) { - return IValidationRuleList.EJB20_BMP_REMOTE; - } - else { - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion2_X() && clazz.equals(bean.getRemoteInterface()"); //$NON-NLS-1$ - } - return null; - } - } - else if(clazz.equals(bean.getHomeInterface())) { - if(isStatelessSession) { - return IValidationRuleList.EJB20_STATELESS_SESSION_HOME; - } - else if(isStatefulSession) { - return IValidationRuleList.EJB20_STATEFUL_SESSION_HOME; - } - else if(bean.isContainerManagedEntity()) { - return IValidationRuleList.EJB20_CMP_HOME; - } - else if(bean.isBeanManagedEntity()) { - return IValidationRuleList.EJB20_BMP_HOME; - } - else { - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion2_X() && clazz.equals(bean.getHomeInterface()"); //$NON-NLS-1$ - } - return null; - } - } - else if(clazz.equals(bean.getLocalHomeInterface())) { - if(isStatelessSession) { - return IValidationRuleList.EJB20_STATELESS_SESSION_LOCALHOME; - } - else if(isStatefulSession) { - return IValidationRuleList.EJB20_STATEFUL_SESSION_LOCALHOME; - } - else if(bean.isContainerManagedEntity()) { - return IValidationRuleList.EJB20_CMP_LOCALHOME; - } - else if(bean.isBeanManagedEntity()) { - return IValidationRuleList.EJB20_BMP_LOCALHOME; - } - else { - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion2_X() && clazz.equals(bean.getLocalHomeInterface()"); //$NON-NLS-1$ - } - return null; - } - } - else if(clazz.equals(bean.getLocalInterface())) { - if(isStatelessSession) { - return IValidationRuleList.EJB20_STATELESS_SESSION_LOCAL; - } - else if(isStatefulSession) { - return IValidationRuleList.EJB20_STATEFUL_SESSION_LOCAL; - } - else if(bean.isContainerManagedEntity()) { - return IValidationRuleList.EJB20_CMP_LOCAL; - } - else if(bean.isBeanManagedEntity()) { - return IValidationRuleList.EJB20_BMP_LOCAL; - } - else { - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion2_X() && clazz.equals(bean.getLocalInterface()"); //$NON-NLS-1$ - } - return null; - } - } - else if(bean instanceof Entity) { - if(clazz.equals(((Entity)bean).getPrimaryKey())) { - if(bean.isContainerManagedEntity()) { - ContainerManagedEntity cmp = (ContainerManagedEntity)bean; - // If it's a primitive primary key, it's exempt from these checks. - if(ValidationRuleUtility.isPrimitivePrimaryKey(cmp)) { - return null; - } - else if(ValidationRuleUtility.usesUnknownPrimaryKey(cmp)) { - return null; - } - return IValidationRuleList.EJB20_CMP_KEYCLASS; - } - else if(bean.isBeanManagedEntity()) { - return IValidationRuleList.EJB20_BMP_KEYCLASS; - } - else { - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion2_X() && clazz.equals(((Entity)bean).getPrimaryKey()"); //$NON-NLS-1$ - } - return null; - } - } - } - - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion2_X()"); //$NON-NLS-1$ - } - return null; - } - else if(bean.getVersionID() <= J2EEVersionConstants.EJB_1_1_ID) { - if(clazz.equals(bean.getEjbClass())) { - if(bean.isSession()) { - return IValidationRuleList.EJB11_SESSION_BEANCLASS; - } - else if(bean.isContainerManagedEntity()) { - return IValidationRuleList.EJB11_CMP_BEANCLASS; - } - else if(bean.isBeanManagedEntity()) { - return IValidationRuleList.EJB11_BMP_BEANCLASS; - } - else { - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion1_X() && clazz.equals(bean.getEjbClass()"); //$NON-NLS-1$ - } - return null; - } - } - else if(clazz.equals(bean.getRemoteInterface())) { - if(bean.isSession()) { - return IValidationRuleList.EJB11_SESSION_REMOTE; - } - else if(bean.isContainerManagedEntity()) { - return IValidationRuleList.EJB11_CMP_REMOTE; - } - else if(bean.isBeanManagedEntity()) { - return IValidationRuleList.EJB11_BMP_REMOTE; - } - else { - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion1_X() && clazz.equals(bean.getRemoteInterface()"); //$NON-NLS-1$ - } - return null; - } - } - else if(clazz.equals(bean.getHomeInterface())) { - if(bean.isSession()) { - return IValidationRuleList.EJB11_SESSION_HOME; - } - else if(bean.isContainerManagedEntity()) { - return IValidationRuleList.EJB11_CMP_HOME; - } - else if(bean.isBeanManagedEntity()) { - return IValidationRuleList.EJB11_BMP_HOME; - } - else { - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion1_X() && clazz.equals(bean.getHomeInterface()"); //$NON-NLS-1$ - } - return null; - } - } - else if(bean instanceof Entity) { - if(clazz.equals(((Entity)bean).getPrimaryKey())) { - if(bean.isContainerManagedEntity()) { - ContainerManagedEntity cmp = (ContainerManagedEntity)bean; - // If it's a primitive primary key, it's exempt from these checks. - if(ValidationRuleUtility.isPrimitivePrimaryKey(cmp)) { - return null; - } - else if(ValidationRuleUtility.usesUnknownPrimaryKey(cmp)) { - return null; - } - return IValidationRuleList.EJB11_CMP_KEYCLASS; - } - else if(bean.isBeanManagedEntity()) { - return IValidationRuleList.EJB11_BMP_KEYCLASS; - } - else { - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: bean.isVersion1_X() && clazz.equals(((Entity)bean).getPrimaryKey()"); //$NON-NLS-1$ - } - return null; - } - } - } - } - - Logger aLogger = vc.getMsgLogger(); - if (aLogger.isLoggingLevel(Level.FINE)) { - aLogger.write(Level.FINE, "Cannot load rule: !bean.isVersion1_X() && !bean.isVersion2_X()"); //$NON-NLS-1$ - } - return null; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidator.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidator.java deleted file mode 100644 index 058e987f5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidator.java +++ /dev/null @@ -1,520 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.logging.Level; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; -import org.eclipse.wst.validation.internal.provisional.core.IValidationContext; - -/** - * @version 1.0 - * @author - */ -public class EJBValidator extends AbstractEJBValidator { - private static EJBValidator _inst = null; - private static TargetObjectPool _targetObjectPoolSingleton = null; - private LogEntry logEntry = null; - - - public EJBValidator() { - _inst = this; - } - - public static EJBValidator getValidator() { - return _inst; - } - - private LogEntry getLogEntry(){ - if(logEntry == null) - logEntry = new LogEntry(IEJBValidatorConstants.BUNDLE_NAME); - return logEntry; - } - - public String getBaseName() { - return "ejbvalidator"; //$NON-NLS-1$ - } - - public void commonValidate(IValidationContext helper, IReporter reporter) throws ValidationException { - long start = System.currentTimeMillis(); - Logger logger = Logger.getLogger(IEJBValidatorConstants.J2EE_CORE_PLUGIN); - if (logger != null && logger.isLoggingLevel(Level.FINER)) { - long end = System.currentTimeMillis(); - LogEntry entry = getLogEntry(); - entry.setSourceID("EJBValidator::validate"); //$NON-NLS-1$ - entry.setText("validate took " + (end - start) + " milliseconds."); //$NON-NLS-1$ //$NON-NLS-2$ - logger.write(Level.FINER, entry); - } - try { - EJBValidationContext vc = new EJBValidationContext(this, helper, reporter); - setValidationContext(vc); - if (isFullValidate(vc)) { - fullValidate(vc); - } else { - incrementalValidate(vc); - } - if (logger != null && logger.isLoggingLevel(Level.FINER)) { - long end = System.currentTimeMillis(); - LogEntry entry = getLogEntry(); - entry.setSourceID("EJBValidator::validate"); //$NON-NLS-1$ - entry.setText("validate took " + (end - start) + " milliseconds."); //$NON-NLS-1$ //$NON-NLS-2$ - logger.write(Level.FINER, entry); - } - } finally { - if (ValidationRuleUtility.helperMap != null) { - ValidationRuleUtility.helperMap.clear(); - ValidationRuleUtility.helperMap = null; - } - } - } - - - public void validate(IValidationContext helper, IReporter reporter) throws ValidationException { - commonValidate(helper, reporter); - } - /* - * @see IValidator#validate(IValidationContext, IReporter, IFileDelta[]) - */ - public IStatus validateInJob(IValidationContext helper, IReporter reporter) throws ValidationException { - commonValidate(helper, reporter); - return status; - } - - public boolean isFullValidate(IEJBValidationContext vc) { - String[] fileURIs = vc.getURIs(); - if(fileURIs == null) { - return true; - } - if(fileURIs.length == 0) { - return true; - } - - for(int i=0; i<fileURIs.length; i++) { - String uri = fileURIs[i]; - if(uri.endsWith(J2EEConstants.EJBJAR_DD_SHORT_NAME)) { - return true; - } - } - - return false; - } - - public void runDependents(IEJBValidationContext vc, IValidationRule rule, Object targetParent, Object target) throws ValidationException { - // If a class is being run only because it depends on a rule which has changed, - // i.e., it's a dependent, then we don't want to run its dependents because the - // class itself hasn't changed. - Set dependents = rule.getDependents(); - if(dependents == null) { - return; - } - - Iterator iterator = dependents.iterator(); - while(iterator.hasNext()) { - try { - IValidationRule dRule = (IValidationRule)iterator.next(); - Object dRuleTarget = dRule.getTarget(targetParent, target); - if(dRuleTarget != null) { - run(dRule, targetParent, dRuleTarget); // false=not full validation - } - } - catch(ValidationCancelledException e) { - throw e; - } - catch(ValidationException e) { - throw e; - } - catch(Throwable exc) { - addInternalErrorMessage(getValidationContext(), exc); - } - finally { - EJBValidationRuleFactory.getFactory().release(rule); - } - } - } - - protected String internalErrorMessage() { - return IEJBValidatorMessageConstants.CHKJ2900; - } - - - - protected void logMissingRule(IEJBValidationContext vc, Object ruleId) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, ruleId + " = null"); //$NON-NLS-1$ - } - addInternalErrorMessage(vc); - } - - protected void preRemoveOldMessages(IEJBValidationContext vc, Map targets) throws ValidationException { - List validatedClasses = new ArrayList(); - - try { - String[] uris = vc.getURIs(); - for(int i=0; i<uris.length; i++) { - String uriInst = uris[i]; - if((uriInst == null) || (uriInst.length() == 0)) { - continue; - } - - Object id = EJBValidationRuleFactory.getFactory().getRuleId(vc, uriInst); - if(id == null) { - Object[] clazzAndBean = (Object[])vc.loadModel(uriInst, null); // Don't need a second parameter, but can't cast a RefObject to an Object[], so use the second load method. - if(clazzAndBean == null) { - // Log, add "Cannot validate" to task list, and return. - logMissingRule(vc, id); - continue; - } - - // In the clazzAndBean object array, the first entry is the JavaClass, - // and the rest of the entries are the EnterpriseBean instances which - // use the JavaClass. - JavaClass clazz = (JavaClass)clazzAndBean[0]; - List beans = (List)clazzAndBean[1]; - - // The validatedClass set keeps track of JavaClasses - // that have changed, and this set is used to determine - // whose children need to be found and validated. - // Validation is performed after all of the changed files - // are validated so that all of the children of all of - // the changed files can be searched for at once. Searching - // once on a group produces performance savings because - // the type hierarchy method takes a non-trivial amount - // of time when there's a large group of deltas. - validatedClasses.add(clazz); - - if((beans == null) || (beans.size() == 0)) { - // The JavaClass itself is not part of an enterprise bean, but one of its children may be. - } - else { - Iterator iterator = beans.iterator(); - while(iterator.hasNext()) { - EnterpriseBean bean = (EnterpriseBean)iterator.next(); - id = EJBValidationRuleFactory.getFactory().getRuleId(vc, clazz, bean); - - IValidationRule clazzRule = EJBValidationRuleFactory.getFactory().getRule(vc, id); - if(clazzRule == null) { - // This has already been logged by the AbstractEJBValidationRuleFactory (if it's - // an error - this is expected if the key is a primitive primary key). - continue; - } - - setValidated(clazzRule.getId(), bean, clazz); - } - } - - } - else { - EJBJar ejbJar = (EJBJar)vc.loadModel(EJBValidatorModelEnum.EJB_MODEL); - if(ejbJar == null) { - // Log, add "Cannot validate" to task list, and return. - continue; - } - - IValidationRule ejbExtRule = EJBValidationRuleFactory.getFactory().getRule(vc, id); - if(ejbExtRule == null) { - // This has already been logged by the AbstractEJBValidationRuleFactory, so just - // need to add "Cannot validate" to the task list. - continue; - } - - setValidated(ejbExtRule.getId(), null, ejbJar); - } - } // end for - - // Always validate ejb-jar.xml, because a change to one of the files it references - // may mean that it needs to be revalidated. - EJBJar ejbJar = (EJBJar)vc.loadModel(EJBValidatorModelEnum.EJB_MODEL); - if(ejbJar != null) { - Object id = EJBValidationRuleFactory.getFactory().getRuleId(vc, J2EEConstants.EJBJAR_DD_SHORT_NAME); - if(id == null) { - // Log, add "Cannot validate" to task list, and return. - logMissingRule(vc, id); - } - else { - IValidationRule ejbJarRule = EJBValidationRuleFactory.getFactory().getRule(vc, id); - if(ejbJarRule == null) { - logMissingRule(vc, id); - } - setValidated(ejbJarRule.getId(), null, ejbJar); - } - } - - if(validatedClasses.size() > 0) { - // Check the children of the changed classes. - // This check must be done before the dependents, because - // the dependents of the children classes must be checked - // as well. - - // Class never validated before, so check its children - for (int vC = 0; vC<validatedClasses.size(); vC++) { - List beans = (List)vc.loadModel(EJBValidatorModelEnum.EJB, new Object[]{validatedClasses.get(vC)}); - if((beans == null) || (beans.size() == 0)) { - // The class is not a member of an enterprise bean. - continue; - } - Set rootValidatedClass = new HashSet(); - rootValidatedClass.add(validatedClasses.get(vC)); - JavaClass[] children = (JavaClass[])vc.loadModel(EJBValidatorModelEnum.CHILDREN, new Object[]{vc.getReporter(), rootValidatedClass}); - if((children != null) && (children.length > 0)) { - Iterator bciterator = null; - Object id = null; - for(int c=0; c<children.length; c++) { - JavaClass child = children[c]; - beans = (List)vc.loadModel(EJBValidatorModelEnum.EJB, new Object[]{child}); - // The child is not a member of an enterprise bean. - if((beans == null) || (beans.size() == 0)) - continue; - bciterator = beans.iterator(); - while(bciterator.hasNext()) { - EnterpriseBean bean = (EnterpriseBean)bciterator.next(); - id = EJBValidationRuleFactory.getFactory().getRuleId(vc, child, bean); - IValidationRule clazzRule = EJBValidationRuleFactory.getFactory().getRule(vc, id); - // This has already been logged by the AbstractEJBValidationRuleFactory, so just need to add "Cannot validate" to the task list. - if(clazzRule == null) - continue; - setValidated(clazzRule.getId(), bean, child); - } - } - } - } - validatedClasses.clear(); // Don't need this cache any more; free the memory. - } - - // Now, validate the dependents. - targets.putAll(_validated); - Iterator iterator = targets.keySet().iterator(); - while(iterator.hasNext()) { - Object id = iterator.next(); - IValidationRule rule = EJBValidationRuleFactory.getFactory().getRule(vc, id); - if(rule == null) { - continue; - } - - Set contexts = (Set)targets.get(id); - if(contexts == null) { - continue; - } - - Iterator cIterator = contexts.iterator(); - while(cIterator.hasNext()) { - TargetObject to = (TargetObject)cIterator.next(); - Object targetParent = to.getTargetParent(); - Object target = to.getTarget(); - Set dependents = rule.getDependents(); - if(dependents == null) { - continue; - } - - Iterator dIterator = dependents.iterator(); - while(dIterator.hasNext()) { - try { - IValidationRule dRule = (IValidationRule)dIterator.next(); - Object dRuleTarget = dRule.getTarget(targetParent, target); - if(dRuleTarget != null) { - setValidated(dRule.getId(), targetParent, dRuleTarget); - } - } - catch(ValidationCancelledException e) { - throw e; - } - catch(Throwable exc) { - addInternalErrorMessage(getValidationContext(), exc); - } - finally { - EJBValidationRuleFactory.getFactory().release(rule); - } - } - } - } - } - finally { - // No matter what, clear the temporary caches. - targets.clear(); - validatedClasses.clear(); - - // Now put the "validated" results in "done", because they weren't - // really validated; it was just a tracking mechanism. - targets.putAll(_validated); - _validated.clear(); // Clear the "validated" cache because the targets weren't really validated; they were just tracked. - } - } - - protected String removeOldMessagesString() { - return EJBValidatorModelEnum.REMOVE_OLD_MESSAGES; - } - - public void fullValidate(IEJBValidationContext vc) throws ValidationException { - removeOldMessages(vc,null); // null == no IFileDelta, null = don't track targets - - - EJBJar ejbJar = (EJBJar)vc.loadModel(EJBValidatorModelEnum.EJB_MODEL); - if(ejbJar == null) { - // Log, add "Cannot validate" to task list, and return. - // EJBProjectResources will already have logged the problem. - - IMessage mssg = vc.getMessage(); - mssg.setId(IEJBValidatorMessageConstants.CHKJ2905); - vc.addMessage(mssg); - return; - } - - Object id = EJBValidationRuleFactory.getFactory().getRuleId(vc, J2EEConstants.EJBJAR_DD_SHORT_NAME); - if(id == null) { - // Log, add "Cannot validate" to task list, and return. - logMissingRule(vc, J2EEConstants.EJBJAR_DD_SHORT_NAME); - return; - } - IValidationRule ejbJarRule = EJBValidationRuleFactory.getFactory().getRule(vc, id); - if(ejbJarRule == null) { - logMissingRule(vc, id); - return; - } - run(ejbJarRule, null, ejbJar); // true= full validation - - List beans = ejbJar.getEnterpriseBeans(); - Iterator iterator = beans.iterator(); - id = null; - - while(iterator.hasNext()) { - EnterpriseBean bean = (EnterpriseBean)iterator.next(); - JavaClass[] classes = getJavaClass(bean); - for(int i=0; i<classes.length; i++) { - JavaClass clazz = classes[i]; - id = EJBValidationRuleFactory.getFactory().getRuleId(vc, clazz, bean); - - IValidationRule clazzRule = EJBValidationRuleFactory.getFactory().getRule(vc, id); - if(clazzRule == null) { - // This has already been logged by the AbstractEJBValidationRuleFactory (if it's - // an error - this is expected if the key is a primitive primary key). - continue; - } - - run(clazzRule, bean, clazz); // true = full validation - } - } - } - - protected JavaClass[] getJavaClass(EnterpriseBean bean) { - int count = 0; - JavaClass[] classes = new JavaClass[6]; - - JavaClass ejbClass = bean.getEjbClass(); - if((ejbClass != null) && (ejbClass.isExistingType())) { - classes[count++] = ejbClass; - } - - JavaClass remoteClass = bean.getRemoteInterface(); - if((remoteClass != null) && (remoteClass.isExistingType())) { - classes[count++] = remoteClass; - } - - JavaClass localClass = bean.getLocalInterface(); - if((localClass != null) && (localClass.isExistingType())) { - classes[count++] = localClass; - } - - JavaClass homeClass = bean.getHomeInterface(); - if((homeClass != null) && (homeClass.isExistingType())) { - classes[count++] = homeClass; - } - - JavaClass localHomeClass = bean.getLocalHomeInterface(); - if((localHomeClass != null) && (localHomeClass.isExistingType())) { - classes[count++] = localHomeClass; - } - - if(bean instanceof Entity) { - JavaClass key = ((Entity)bean).getPrimaryKey(); - if((key != null) && (key.isExistingType())) { - classes[count++] = key; - } - } - - if(count == 6) { - return classes; - } - - JavaClass[] result = new JavaClass[count]; - System.arraycopy(classes, 0, result, 0, count); - return result; - } - - public void incrementalValidate(IEJBValidationContext vc) throws ValidationException { - Map targets = new HashMap(); - try { - removeOldMessages(vc,targets); - - Iterator iterator = targets.keySet().iterator(); - while(iterator.hasNext()) { - Object id = iterator.next(); - IValidationRule rule = EJBValidationRuleFactory.getFactory().getRule(vc, id); - if(rule == null) { - continue; - } - - Set contexts = (Set)targets.get(id); - if(contexts == null) { - continue; - } - - Iterator cIterator = contexts.iterator(); - while(cIterator.hasNext()) { - TargetObject to = (TargetObject)cIterator.next(); - run(rule, to.getTargetParent(), to.getTarget()); - } - } - } - finally { - targets.clear(); - targets = null; - } - } - - protected TargetObjectPool getTargetObjectPool() { - if(_targetObjectPoolSingleton == null) { - _targetObjectPoolSingleton = new TargetObjectPool(100); - } - return _targetObjectPoolSingleton; - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.model.validation.AbstractEJBValidator#releaseRules(org.eclipse.jst.j2ee.internal.model.validation.ejb.IValidationRule) - */ - protected void releaseRules(IValidationRule rule) { - EJBValidationRuleFactory.getFactory().release(rule); - - } - - public ISchedulingRule getSchedulingRule(IValidationContext helper) { - // TODO Auto-generated method stub - return null; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidatorModelEnum.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidatorModelEnum.java deleted file mode 100644 index 68824609b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidatorModelEnum.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -/** - * This interface contains the symbolic names of the models which the - * EJBValidator needs, and the IValidationContext that is used in the EJBValidator's - * validate method must support these symbolic names. - */ -public interface EJBValidatorModelEnum { - public final static String EJB_MODEL = "EJB_MODEL"; // return an EJBJar object //$NON-NLS-1$ - public final static String EJB_FILE = "EJB_FILE"; // return a ModuleFile object (either EJBJarFile or EARFile) //$NON-NLS-1$ - public final static String EJB = "EJB"; // Given a JavaClass instance, return a java.util.List of EnterpriseBean instances that use that JavaClass as part of the bean. //$NON-NLS-1$ - public final static String CHILDREN = "children"; // Given a JavaClass instance, return a JavaClass[] of the JavaClasses that inherit or extend the instance. //$NON-NLS-1$ - //The EJB_BINDING symbols is WAS specific and need to be moved to WAS Ext layer - public final static String EJB_BINDING = "EJB_BINDING"; // return the EJBJarBinding for the EJBJar //$NON-NLS-1$ - public final static String EJB_CLIENTJAR = "EJB_CLIENTJAR"; // If the EJB uses a client JAR, given the name of the JAR, this method returns a Boolean.TRUE if the client JAR can be found and loaded successfully. If it can't be found and loaded, return Boolean.FALSE. //$NON-NLS-1$ - public final static String REMOVE_OLD_MESSAGES = "REMOVE_OLD_MESSAGES"; // Remove all Messages registered against the given Objects in the array. //$NON-NLS-1$ -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ERefValidationMessageResourceHandler.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ERefValidationMessageResourceHandler.java deleted file mode 100644 index b94e081b6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ERefValidationMessageResourceHandler.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import org.eclipse.osgi.util.NLS; - -public class ERefValidationMessageResourceHandler extends NLS { - - private static final String BUNDLE_NAME = "erefvalidation";//$NON-NLS-1$ - - private ERefValidationMessageResourceHandler() { - // Do not instantiate - } - - public static String ERROR_EAR_MISSING_EREFNAME; - public static String ERROR_EAR_INVALID_EREFTYPE; - public static String ERROR_EAR_MISSING_EREFTYPE; - public static String ERROR_EAR_MISSING_EREFHOME; - public static String ERROR_EAR_MISSING_EREFREMOTE; - public static String ERROR_EAR_MISSING_EJB_ROLE; - public static String ERROR_EAR_DUPLICATE_RESREF; - public static String UNRESOLVED_EJB_REF_WARN_; - public static String ERROR_EAR_DUPLICATE_SERVICEREF; - public static String ERROR_EAR_DUPLICATE_SECURITYROLEREF; - public static String ERROR_EAR_DUPLICATE_EJBREF; - public static String ERROR_EAR_DUPLICATE_RESENVREF; - public static String ERROR_EAR_DUPLICATE_MESSSAGEDESTINATIONREF; - public static String ERROR_EAR_MISSING_MESSSAGEDESTINATION; - public static String ERROR_UNRESOLVED_MDB_MISSING_MESSAGE_DESTINATION; - public static String ERROR_EAR_MISSING_EMPTY_MESSSAGEDESTINATION; - - - - static { - NLS.initializeMessages(BUNDLE_NAME, ERefValidationMessageResourceHandler.class); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EarValidator.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EarValidator.java deleted file mode 100644 index b3feee877..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EarValidator.java +++ /dev/null @@ -1,959 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - - -import java.io.FileNotFoundException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.emf.common.command.Command; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.application.WebModule; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.client.internal.impl.ApplicationClientImpl; -import org.eclipse.jst.j2ee.common.EJBLocalRef; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.MessageDestination; -import org.eclipse.jst.j2ee.common.MessageDestinationRef; -import org.eclipse.jst.j2ee.common.ResourceEnvRef; -import org.eclipse.jst.j2ee.common.ResourceRef; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.common.internal.impl.EjbRefImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.ValidateXmlCommand; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NoModuleFileException; -import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.MessageDriven; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef; -import org.eclipse.osgi.util.NLS; -import org.eclipse.wst.common.frameworks.internal.plugin.WTPCommonPlugin; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.operations.LocalizedMessage; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; -import org.eclipse.wst.validation.internal.provisional.core.IValidationContext; - - -/** - * Insert the type's description here. - * Creation date: (12/6/2000 11:08:55 AM) - * @author: Administrator - */ -public class EarValidator extends J2EEValidator { - public static final String RES_REF_GROUP_NAME = "RES_REF_GROUP_NAME"; //$NON-NLS-1$ - public static final String RES_ENV_REF_GROUP_NAME = "RES_ENV_REF_GROUP_NAME"; //$NON-NLS-1$ - public static final String SERVICE_REF_GROUP_NAME = "SERVICE_REF_GROUP_NAME"; //$NON-NLS-1$ - public static final String EJB_REF_GROUP_NAME = "EJB_REF_GROUP_NAME"; //$NON-NLS-1$ - public static final String SEC_ROLE_REF_GROUP_NAME = "SEC_ROLE_REF_GROUP_NAME"; //$NON-NLS-1$ - public static final String MESSAGE_REF_GROUP_NAME = "MESSAGE_REF_GROUP_NAME"; //$NON-NLS-1$ - public static final String MESSAGE_DESTINATION_REF_GROUP_NAME = "MESSAGE_DESTINATION_REF_GROUP_NAME"; //$NON-NLS-1$ - public static final String MESSAGE_DESTINATION_MDB_REF_GROUP_NAME = "MESSAGE_DESTINATION_MDB_REF_GROUP_NAME"; //$NON-NLS-1$ - - protected EARFile earFile; - protected Application appDD; - - /** - * RelationshipMapValidator constructor comment. - */ - public EarValidator() { - super(); - }// EarValidator - - /** - * Creates the validateXML command. - * - * @return Command - */ - public Command createValidateXMLCommand() { - Command cmd = new ValidateXmlCommand(earFile); - return cmd; - }// createValidateXMLCommand - - /** - * <p>Answer the id of the resource bundle which is - * used by the receiver.</p> - * - * @return String - */ - public String getBaseName() { - return EAR_CATEGORY; - }// getBaseName - - /** - * XML Validation now handles validation of Deployment Descriptor - * - * @throws ValidationException - */ - public void validate() throws ValidationException { - validateModules(appDD.getModules()); - validateSecurity(); - validateRefs(); - validateWebContexts(); - validateSpecLevel(); - validateMessageDestinations(); - }// validate - - /** - * Does the validation - */ - public void validate(IValidationContext inHelper, IReporter inReporter) throws ValidationException { - validateInJob( inHelper, inReporter ); - } - - public IStatus validateInJob( IValidationContext inHelper, IReporter inReporter ) throws ValidationException { - - inReporter.removeAllMessages(this); - super.validateInJob(inHelper, inReporter ); - try { - earFile = (EARFile) _helper.loadModel(J2EEConstants.EAR_MODEL_NAME); - if (earFile != null) { - appDD = earFile.getDeploymentDescriptor(); - if (appDD != null && appDD.eResource() != null && appDD.eResource().isLoaded()) - validate(); - else { - String msg = NLS.bind(EARValidationMessageResourceHandler.EAR_DD_CANNOT_OPEN_DD, new String[] { getResourceName()}); - IMessage errorMsg = new LocalizedMessage(IMessage.HIGH_SEVERITY, msg); - status = WTPCommonPlugin.createErrorStatus(errorMsg.getText()); - throw new ValidationException(errorMsg); - } - } else { - String msg = NLS.bind(EARValidationMessageResourceHandler.ERROR_EAR_INVALID_EAR_FILE, new String[] { getResourceName()}); - IMessage errorMsg = new LocalizedMessage(IMessage.HIGH_SEVERITY, msg); - throw new ValidationException(errorMsg); - } // if - } catch (ValidationException ex) { - throw ex; - } catch (Exception e) { - String[] param = new String[1]; - if (earFile != null) - param[0] = earFile.getName(); - Logger.getLogger().logError(e); - String msg = NLS.bind(EARValidationMessageResourceHandler.EAR_VALIDATION_INTERNAL_ERROR_UI_, param ); - IMessage errorMsg = new LocalizedMessage(IMessage.HIGH_SEVERITY, msg ); - throw new ValidationException(errorMsg, e); - } // try - return status; - } // validate - - - /** - * Gets the resource name - * - * @return String - */ - protected String getResourceName() { - return earFile.getURI(); - }// getResourceName - - /** - * validate for duplicates in EAR Roles - * - * @param EList earRoleList - List of ear roles. - */ - public void validateEarRoles(EList earRoleList) { - Set s = new HashSet(earRoleList.size()); - for (int i = 0; i < earRoleList.size(); i++) { - SecurityRole securityRole = (SecurityRole) earRoleList.get(i); - if (!(s.add(securityRole.getRoleName()))) { - String roleName = securityRole.getRoleName(); - String[] params = new String[1]; - params[0] = roleName; - String msg = NLS.bind(EARValidationMessageResourceHandler.ERROR_EAR_DUPLICATE_ROLES, params); - addLocalizedWarning( msg, appDD ); - }// if - }// for - }// validateEarRoles - - /** - * validateRefs(WebApp) - validate EJB references - * - * @param EjbRef eref - An ejb ref. - * @param Sting uri - The uri of the module. - */ - public void validateEJBRefMandatoryElements(List ejbRefs, String uri) { - for(int i = 0; i < ejbRefs.size(); i++) { - EjbRef eref = (EjbRef) ejbRefs.get(i); - String refName = eref.getName(); - String[] params = new String[2]; - params[0] = refName; - params[1] = uri; - - if ((eref.getName().trim() == null) || (eref.getName().trim().length() == 0)) { - addWarning(EREF_CATEGORY, ERROR_EAR_MISSING_EREFNAME, params); - }// if - if (eref.isSetType()) - {if(eref.getType() == null ) - addWarning(EREF_CATEGORY, ERROR_EAR_INVALID_EREFTYPE, params);} - else - addWarning(EREF_CATEGORY, ERROR_EAR_MISSING_EREFTYPE, params); - // if - if ((eref.getHome() == null) || (eref.getHome().trim().length() == 0)) { - addWarning(EREF_CATEGORY, ERROR_EAR_MISSING_EREFHOME, params); - }// if - if ((eref.getRemote() == null) || (eref.getRemote().trim().length() == 0)) { - addWarning(EREF_CATEGORY, ERROR_EAR_MISSING_EREFREMOTE, params); - } - } - } - - /** - * Compare the ejb interfaces to check if they are similar. - * - * @param EjbRef eref - The ejb reference. - * @param EnterpriseBean ejb - The enterprise bean - */ - public boolean isSimilarEJBInterface(EjbRef eref, EnterpriseBean ejb) { - - if( eref.isLocal() ) { - if( ejb.getLocalHomeInterfaceName() == null || - ejb.getLocalInterfaceName() == null || - ((EJBLocalRef)eref).getLocalHome() == null || - ((EJBLocalRef)eref).getLocal() == null ) { - return false; - }// if - - boolean isHomeLocalOk = ejb.getLocalHomeInterfaceName().equals(((EJBLocalRef)eref).getLocalHome()); - boolean isRemoteLocalOk = ejb.getLocalInterfaceName().equals(((EJBLocalRef)eref).getLocal()); - return isHomeLocalOk && isRemoteLocalOk; - }// if - - if( ejb.getHomeInterfaceName() == null || - ejb.getRemoteInterfaceName() == null || - eref.getHome() == null || - eref.getRemote() == null ) { - return false; - }// if - - boolean isHomeOk = ejb.getHomeInterfaceName().equals( eref.getHome() ); - boolean isRemoteOk = ejb.getRemoteInterfaceName().equals( eref.getRemote() ); - - return isHomeOk && isRemoteOk; - }// isSimilarEJBInterface - - /** - * validate for duplicates in EAR Roles - * - * @param List ejbRefs - List of ejb refs. - * @param String uri - The uri of the module. - */ - public void validateEJBRefs(List ejbRefs, String uri) { - for (int i = 0; i < ejbRefs.size(); i++) { - EjbRef eref = (EjbRef) ejbRefs.get(i); - if( eref != null && eref.getLink() != null && eref.getLink().length() > 0) { - EnterpriseBean ejb = earFile.getEnterpiseBeanFromRef( eref, uri ); - if( ejb == null ) { - String[] params = new String[3]; - params[0] = eref.getName(); - params[1] = uri; - params[2] = earFile.getName(); - String msg = NLS.bind(ERefValidationMessageResourceHandler.UNRESOLVED_EJB_REF_WARN_, params); - addLocalizedWarning(msg, null); - } else { - if( !isSimilarEJBInterface( eref, ejb ) ) { - String[] params = new String[3]; - params[0] = ejb.getName(); - params[1] = eref.getName(); - params[2] = uri; - String msg = NLS.bind(EARValidationMessageResourceHandler.EJB_BEAN_EJB_LINK_INTEFACE_MISMATCH_ERROR_, params); - addLocalizedError( msg, appDD); - } - } - } - } - } - - /** - * validate the existance of the EJB Roles in the EAR Roles and duplicates ib EJB Roles - * - * @param EList earRoleList - List of ear roles. - * @param EList ejbRoles - List of ejb roles. - */ - public void validateEJBRolesWithEARRoles(EList earRoleList, EList ejbRoles) { - for (int i = 0; i < ejbRoles.size(); i++) { - if (!(earRoleList.contains(ejbRoles.get(i)))) { - String[] params = new String[1]; - params[0] = ((SecurityRole) (ejbRoles.get(i))).getRoleName(); - addWarning(EREF_CATEGORY, ERROR_EAR_MISSING_EJB_ROLE, params); - }// if - }// for - }// validateEJBRolesWithEARRoles - - /** - * For each module, make sure its archive exists - *(a very expensive, but more meaningful test would be to also make sure they can be loaded) - * - * @param EList modulesList - List of modules - */ - public void validateModules(EList modulesList) { -// String errorString = ""; //$NON-NLS-1$ - IMessage msg = new LocalizedMessage(IMessage.NORMAL_SEVERITY, "Validating Modules"); - _reporter.displaySubtask( this, msg ); - - - HashSet duplicateURI = new HashSet(); - - for (int i = 0; i < modulesList.size(); i++) { - Module m = (Module) modulesList.get(i); - String filename = m.getUri(); - if ((filename == null) || (filename.length() == 0)) { - addLocalizedError(EARValidationMessageResourceHandler.MESSAGE_EAR_NO_MODULE_URI, null); - } else { - //check if the URI has any spaces - if( filename.indexOf( " " ) != -1) { //$NON-NLS-1$ - String[] params = new String[1]; - params[0] = filename; - String msg1 = NLS.bind(EARValidationMessageResourceHandler.URI_CONTAINS_SPACES_ERROR_, params); - addLocalizedError(msg1, appDD); - }// if - }// if - String altDD = m.getAltDD(); - if (altDD != null) - altDD = altDD.trim(); - validateAltDD(m, altDD); - String key = altDD == null ? filename + altDD : filename; - if (!duplicateURI.add(key)) { - String[] params = new String[2]; - params[0] = m.getUri(); - params[1] = earFile.getName(); - String tmp = NLS.bind(EARValidationMessageResourceHandler.MESSAGE_EAR_DUPLICATE_URI_ERROR_, params); - addLocalizedError(tmp, appDD); - }// if - - }// for - - }// validateModules - - /** - * Validate the alt dd - * - * @param Module m - A module. - * @param String altDD - An altDD - */ - protected void validateAltDD(Module m, String altDD) { - //isDuplicate will test if it is a file or a loaded resource - if ("".equals(altDD)) { //$NON-NLS-1$ - String[] params = new String[2]; - params[0] = m.getUri(); - params[1] = earFile.getName(); - String tmp = NLS.bind(EARValidationMessageResourceHandler.MESSAGE_EMPTY_ALT_DD_ERROR_, params); - addLocalizedError(tmp, appDD); - } else if (altDD != null && !earFile.isDuplicate(altDD)) { - String[] params = new String[3]; - params[0] = m.getUri(); - params[1] = altDD; - params[2] = earFile.getName(); - String tmp = NLS.bind(EARValidationMessageResourceHandler.MESSAGE_INVALID_ALT_DD_WARN_, params); - addLocalizedWarning(tmp, appDD); - }// if - }// validateAltDD - - /** - * validate EJB and resource references - */ - public void validateRefs() { - - IMessage msg = new LocalizedMessage(IMessage.NORMAL_SEVERITY, "Validating Refs"); - _reporter.displaySubtask( this, msg ); - - - List moduleList = earFile.getModuleRefs(); - for (int i = 0; i < moduleList.size(); i++) { - - ModuleRef ref = (ModuleRef) moduleList.get(i); - try { - if(ref.isWeb()) { - validateWebAppRefs(ref); } - else if( ref.isEJB() ) { - validateEJBModuleRefs(ref); - } else if(ref.isClient()) - validateAppClientRefs(ref); - } catch (ArchiveWrappedException ex) { - Exception nested = ex.getNestedException(); - if (!(nested instanceof NoModuleFileException)) { - //Logger.getLogger().logError(ex); - String[] params = new String[1]; - params[0] = ref.getUri(); - addError(EREF_CATEGORY, ERROR_MODULE_DD_FILE_NOT_FOUND, params); - } - //otherwise ignore it; there are other validations for this - } - - } - } - - /** - * @param ref - */ - private void validateAppClientRefs(ModuleRef ref) throws ArchiveWrappedException { - ApplicationClient appClient = (ApplicationClientImpl)ref.getDeploymentDescriptor(); - List ejbRefs = new ArrayList(); - ejbRefs.addAll(appClient.getEjbReferences()); - validateEJBRefMandatoryElements(ejbRefs, ref.getUri()); - validateEJBRefs(ejbRefs, ref.getUri()); - if (appClient != null && appClient.getVersionID() <= J2EEVersionConstants.J2EE_1_3_ID) { - Set allRefs = new HashSet(); - List resourceRefs = appClient.getResourceRefs(); - List resourceEnvRefs = appClient.getResourceEnvRefs(); - List serviceRefs = appClient.getServiceRefs(); - - validateDuplicateEJBRefs(allRefs,ejbRefs); - validateDuplicateResourceRefs(allRefs,resourceRefs); - validateDuplicateResourceEnvRefs(allRefs,resourceEnvRefs); - validateDuplicateServiceRefs(allRefs,serviceRefs); - } - - } - - /** - * @param ref - * @throws ArchiveWrappedException - */ - private void validateWebAppRefs(ModuleRef ref) throws ArchiveWrappedException { - WebApp webApp = (WebApp)ref.getDeploymentDescriptor(); - List ejbRefs = new ArrayList(); - ejbRefs.addAll(webApp.getEjbRefs()); - ejbRefs.addAll(webApp.getEjbLocalRefs()); - validateEJBRefMandatoryElements(ejbRefs, ref.getUri()); - validateEJBRefs(ejbRefs, ref.getUri()); - if (webApp != null && webApp.getVersionID() <= J2EEVersionConstants.WEB_2_3_ID) { - Set allRefs = new HashSet(); - List resourceRefs = webApp.getResourceRefs(); - List resourceEnvRefs = webApp.getResourceEnvRefs(); - List serviceRefs = webApp.getServiceRefs(); - - validateDuplicateEJBRefs(allRefs,ejbRefs); - validateDuplicateResourceRefs(allRefs,resourceRefs); - validateDuplicateResourceEnvRefs(allRefs,resourceEnvRefs); - validateDuplicateServiceRefs(allRefs,serviceRefs); - } - } - /** - * @param ref - * @throws ArchiveWrappedException - */ - private void validateEJBModuleRefs(ModuleRef ref) throws ArchiveWrappedException { - EJBJar ejbJar = (EJBJar)ref.getDeploymentDescriptor(); - if( ejbJar != null ) { - List ejbCollection = ejbJar.getEnterpriseBeans(); - if( ejbCollection != null || !ejbCollection.isEmpty() ) { - Resource res = ejbJar.eResource(); - cleanUpAllRefSubTaskMessages(res); - Iterator iterator = ejbCollection.iterator(); - while( iterator.hasNext() ) { - EnterpriseBean ejbBean = (EnterpriseBean)iterator.next(); - if( ejbBean != null ) { - List ejbRefs = new ArrayList(); - ejbRefs.addAll(ejbBean.getEjbRefs()); - ejbRefs.addAll(ejbBean.getEjbLocalRefs()); - validateEJBRefMandatoryElements(ejbRefs, ref.getUri()); - validateEJBRefs(ejbRefs, ref.getUri()); - if(ejbJar.getVersionID() <= J2EEVersionConstants.EJB_2_0_ID) { - Set allRefs = new HashSet(); - List resourceRefs = ejbBean.getResourceRefs(); - List resourceEnvRefs = ejbBean.getResourceEnvRefs(); - List secRoleRefs = ejbBean.getSecurityRoleRefs(); - List serviceRefs = ejbBean.getServiceRefs(); - List messageDestRefs = ejbBean.getMessageDestinationRefs(); - - validateDuplicateEJBRefs(allRefs,ejbRefs); - validateDuplicateResourceRefs(allRefs,resourceRefs); - validateDuplicateResourceEnvRefs(allRefs,resourceEnvRefs); - validateDuplicateSecurityRoleRefs(allRefs,secRoleRefs); - validateDuplicateServiceRefs(allRefs,serviceRefs); - validateDuplicateMessageDestRefs(allRefs,messageDestRefs); - } - } - } - } - } - - } - - /** - * @param allRefs - * @param serviceRefs - */ - private void validateDuplicateServiceRefs(Set allRefs, List serviceRefs) { - if (!serviceRefs.isEmpty()) { - ServiceRef firstRef = (ServiceRef)(serviceRefs.get(0)); - if(!(firstRef.eContainer() instanceof EnterpriseBean)) - cleanUpSubTaskMessages(firstRef); - for (int refNo = 0; refNo < serviceRefs.size(); refNo++) { - ServiceRef ref = (ServiceRef) (serviceRefs.get(refNo)); - String refName = ref.getServiceRefName(); - String[] parms = new String[1]; - parms[0] = refName; - if (!(allRefs.add(refName))) - addError(EREF_CATEGORY, ERROR_EAR_DUPLICATE_SERVICEREF, parms,ref,SERVICE_REF_GROUP_NAME); - } - } - } - - /** - * @param allRefs - * @param secRoleRefs - */ - private void validateDuplicateSecurityRoleRefs(Set allRefs, List secRoleRefs) { - if (!secRoleRefs.isEmpty()) { - SecurityRoleRef firstRef = (SecurityRoleRef)(secRoleRefs.get(0)); - if(!(firstRef.eContainer() instanceof EnterpriseBean)) - cleanUpSubTaskMessages(firstRef); - for (int refNo = 0; refNo < secRoleRefs.size(); refNo++) { - SecurityRoleRef ref = (SecurityRoleRef) (secRoleRefs.get(refNo)); - String refName = ref.getName(); - String[] parms = new String[1]; - parms[0] = refName; - if (!(allRefs.add(refName))) - addError(EREF_CATEGORY, ERROR_EAR_DUPLICATE_SECURITYROLEREF, parms,ref,SEC_ROLE_REF_GROUP_NAME); - } - } - } - - /** - * @param allRefs - * @param resourceEnvRefs - */ - private void validateDuplicateResourceEnvRefs(Set allRefs, List resourceEnvRefs) { - if (!resourceEnvRefs.isEmpty()) { - ResourceEnvRef firstRef = (ResourceEnvRef)(resourceEnvRefs.get(0)); - if(!(firstRef.eContainer() instanceof EnterpriseBean)) - cleanUpSubTaskMessages(firstRef); - for (int refNo = 0; refNo < resourceEnvRefs.size(); refNo++) { - ResourceEnvRef ref = (ResourceEnvRef) (resourceEnvRefs.get(refNo)); - String refName = ref.getName(); - String[] parms = new String[1]; - parms[0] = refName; - if (!(allRefs.add(refName))) - addError(EREF_CATEGORY, ERROR_EAR_DUPLICATE_RESENVREF, parms,ref,RES_ENV_REF_GROUP_NAME); - } - } - } - - /** - * @param allRefs - * @param resourceRefs - */ - private void validateDuplicateResourceRefs(Set allRefs, List resourceRefs) { - if (!resourceRefs.isEmpty()) { - ResourceRef firstRef = (ResourceRef)(resourceRefs.get(0)); - if(!(firstRef.eContainer() instanceof EnterpriseBean)) - cleanUpSubTaskMessages(firstRef); - for (int refNo = 0; refNo < resourceRefs.size(); refNo++) { - ResourceRef ref = (ResourceRef) (resourceRefs.get(refNo)); - String refName = ref.getName(); - String[] parms = new String[1]; - parms[0] = refName; - if (!(allRefs.add(refName))) - addError(EREF_CATEGORY, ERROR_EAR_DUPLICATE_RESREF, parms,ref,RES_REF_GROUP_NAME); - } - } - } - /** - * @param allRefs - * @param ejbRefs - */ - protected void validateDuplicateEJBRefs(Set allRefs, List ejbRefs) { - if (!ejbRefs.isEmpty()) { - EjbRef firstRef = (EjbRef)(ejbRefs.get(0)); - if(!(firstRef.eContainer() instanceof EnterpriseBean)) - cleanUpSubTaskMessages(firstRef); - for (int refNo = 0; refNo < ejbRefs.size(); refNo++) { - EjbRef ref = (EjbRefImpl) (ejbRefs.get(refNo)); - String refName = ref.getName(); - String[] parms = new String[1]; - parms[0] = refName; - if (!(allRefs.add(refName))) - addError(EREF_CATEGORY, ERROR_EAR_DUPLICATE_EJBREF, parms, ref, EJB_REF_GROUP_NAME); - } - } - } - - /** - * @param allRefs - * @param ejbRefs - */ - protected void validateDuplicateMessageDestRefs(Set allRefs, List messageDestRefs) { - if (!messageDestRefs.isEmpty()) { - MessageDestinationRef firstRef = (MessageDestinationRef)(messageDestRefs.get(0)); - if(!(firstRef.eContainer() instanceof EnterpriseBean)) - cleanUpSubTaskMessages(firstRef); - for (int refNo = 0; refNo < messageDestRefs.size(); refNo++) { - MessageDestinationRef ref = (MessageDestinationRef) (messageDestRefs.get(refNo)); - String refName = ref.getName(); - String[] parms = new String[1]; - parms[0] = refName; - if (!(allRefs.add(refName))) - addError(EREF_CATEGORY, ERROR_EAR_DUPLICATE_MESSSAGEDESTINATIONREF, parms,ref, MESSAGE_REF_GROUP_NAME); - } - } - } - - /** - * @param firstRef - */ - protected void cleanUpSubTaskMessages(EObject ref) { - //No Op - subclass overrides - } - - protected void cleanUpAllRefSubTaskMessages(Resource res) { - //No Op - subclass overrides - } - - /** - * Ejb refs to the running list of ejb refs. - * - * @param List currentRefs - List of current ejb refs to be added. - * @param List ejbRefs - collection of running ejbrefs - */ - public void addEJBRefs( List currentRefs, List ejbRefs ) { - if( currentRefs == null || ejbRefs == null ) - return; - - ejbRefs.addAll( currentRefs ); - }// addEJBRefs - - /** - * validate security constraints, roles, and security role refs. - */ - public void validateSecurity() { - EList earRoleList = appDD.getSecurityRoles(); - if (!earRoleList.isEmpty()) - validateEarRoles(earRoleList); - EList moduleList = appDD.getModules(); - if (!moduleList.isEmpty()) { - - for (int i = 0; i < moduleList.size(); i++) { - Module m = (Module) moduleList.get(i); - if (m.isEjbModule()) { - EList ejbRoles = m.getApplication().getSecurityRoles(); - if (!ejbRoles.isEmpty()) - validateEJBRolesWithEARRoles(earRoleList, ejbRoles); - }// if - if (m.isWebModule()) { - EList webRoles = m.getApplication().getSecurityRoles(); - if (!webRoles.isEmpty()) - validateWEBRolesWithEARRoles(earRoleList, webRoles); - }// if - }// for - }// if - }// validateSecurity - - /** - * Validates an ear for duplicate web contexts. - */ - public void validateWebContexts() { - - EList moduleList = appDD.getModules(); - Map visitedWebContext = new HashMap(); - - if( !moduleList.isEmpty() ) { - Iterator iterator = moduleList.iterator(); - while( iterator.hasNext() ) { - Module module = (Module)iterator.next(); - if( module.isWebModule() ) { - - WebModule webModule = (WebModule)module; - - if( webModule != null ) { - if( visitedWebContext.containsKey( webModule.getContextRoot() ) ) { - WebModule tempWebModule = (WebModule)visitedWebContext.get( webModule.getContextRoot() ); - String[] params = new String[3]; - params[0] = webModule.getContextRoot(); - params[1] = webModule.getUri(); - params[2] = tempWebModule.getUri(); - String tmp = NLS.bind(EARValidationMessageResourceHandler.MESSAGE_EAR_DUPICATE_ROOTCONTEXT_ERROR_, params); - - addLocalizedError(tmp, appDD); - } else { - visitedWebContext.put( webModule.getContextRoot(), webModule ); - }// if - - }// if - - }// if - }// while - }// if - }// validateWebContexts - - - /** - * Checks if the modules are a spec level too high for the EAR file. - */ - private void validateSpecLevel() { - int earVersion = getVersionID(earFile); - List modules = earFile.getModuleFiles(); - - if( !modules.isEmpty() ) { - Iterator iterator = modules.iterator(); - ModuleFile moduleFile = null; - while (iterator.hasNext()) { - moduleFile = (ModuleFile)iterator.next(); - if (moduleFile != null && getVersionID(moduleFile) > earVersion) { - String[] params = new String[] {moduleFile.getURI(), earFile.getName()}; - String tmp = NLS.bind(EARValidationMessageResourceHandler.MESSAGE_INCOMPATIBLE_SPEC_WARNING_, params); - addLocalizedWarning(tmp, appDD); - } - } - } - } - - /** - * @param moduleFile - * @return - */ - private int getVersionID(ModuleFile moduleFile) { - XMLResource res = null; - try { - res = (XMLResource) moduleFile.getDeploymentDescriptorResource(); - } catch (ResourceLoadException e) { - //Ignore - } catch (FileNotFoundException e) { - //Ignore - } - if (res != null) - return res.getJ2EEVersionID(); - return -1; - } - - - private void validateMessageDestinations() { - validateMessageDestinationRefs(); - validateMDBMessageDestinations(); - } - private void validateMDBMessageDestinations() { - List moduleList = earFile.getModuleRefs(); - - for (int i = 0; i < moduleList.size(); i++) { - ModuleRef ref = (ModuleRef) moduleList.get(i); - try { - if( ref.isEJB() ) { - EJBJar ejbJar = (EJBJar)ref.getDeploymentDescriptor(); - if( ejbJar != null ) { - removeAllMessages(ejbJar,MESSAGE_DESTINATION_MDB_REF_GROUP_NAME); - List ejbCollection = ejbJar.getEnterpriseBeans(); - if( ejbCollection != null || !ejbCollection.isEmpty() ) { - Iterator iterator = ejbCollection.iterator(); - while( iterator.hasNext() ) { - EnterpriseBean ejbBean = (EnterpriseBean)iterator.next(); - if( ejbBean != null ) { - if (ejbBean.isMessageDriven()) { - MessageDriven messageDrivenBean = (MessageDriven)ejbBean; - if (messageDrivenBean.getVersionID() < J2EEVersionConstants.EJB_2_1_ID) continue; - String link = messageDrivenBean.getLink(); - if (link != null && !isExistMessageDestinationLink(link, ref)) { - String[] params = new String[4]; - params[0] = link; - params[1] = messageDrivenBean.getName(); - params[2] = ref.getUri(); - params[3] = earFile.getName(); - addError(EREF_CATEGORY, ERROR_UNRESOLVED_MDB_MISSING_MESSAGE_DESTINATION, params,messageDrivenBean, MESSAGE_DESTINATION_MDB_REF_GROUP_NAME); - } - - } - } - } - } - } - } - } catch (ArchiveWrappedException ex) { - Exception nested = ex.getNestedException(); - if (!(nested instanceof NoModuleFileException)) { - String[] params = new String[1]; - params[0] = ref.getUri(); - addError(EREF_CATEGORY, ERROR_MODULE_DD_FILE_NOT_FOUND, params); - } - } - - } - } - - - private void validateMessageDestinationRefs() { - List moduleList = earFile.getModuleRefs(); - for (int i = 0; i < moduleList.size(); i++) { - ModuleRef ref = (ModuleRef) moduleList.get(i); - validateMessageDestinationRefs(ref); - } - } - /** - * - */ - private void validateMessageDestinationRefs(ModuleRef moduleRef) { - List destinationsRefs = getMessageDestinationRefs(moduleRef); - clearUpSubTaskMessageDestinationMessages(destinationsRefs); - for (int refNo = 0; refNo < destinationsRefs.size(); refNo++) { - MessageDestinationRef ref = (MessageDestinationRef) (destinationsRefs.get(refNo)); - String link = ref.getLink() ; - if (link == null) continue; // dont validate if the link is null - if ( link.length()== 0) { // empty link is an error - String[] params = new String[3]; - params[0] = ref.getName(); - params[1] = moduleRef.getUri(); - params[2] = earFile.getName(); - - addError(EREF_CATEGORY, ERROR_EAR_MISSING_EMPTY_MESSSAGEDESTINATION, params,ref, MESSAGE_DESTINATION_REF_GROUP_NAME); - } else if (!isExistMessageDestinationLink(link, moduleRef)) { - String[] params = new String[4]; - params[0] = link; - params[1] = ref.getName(); - params[2] = moduleRef.getUri(); - params[3] = earFile.getName(); - - addError(EREF_CATEGORY, ERROR_EAR_MISSING_MESSSAGEDESTINATION, params,ref, MESSAGE_DESTINATION_REF_GROUP_NAME); - } - } - } - - - private void clearUpSubTaskMessageDestinationMessages(List destinationsRefs) { - for (int refNo = 0; refNo < destinationsRefs.size(); refNo++) { - MessageDestinationRef ref = (MessageDestinationRef) (destinationsRefs.get(refNo)); - removeAllMessages(ref,MESSAGE_DESTINATION_REF_GROUP_NAME); - } - } - - protected void removeAllMessages(EObject eObject, String groupName) { - - } - - /** - * @param ref - * @return - */ - private boolean isExistMessageDestinationLink(String link, ModuleRef moduleRef) { - if (link == null) return false; - int index = link.indexOf('#'); - String destinationName; - if (index == -1) { - destinationName = link; - } else { - String moduleName = link.substring(0,index); - destinationName = link.substring(index+1); - moduleRef = getModuleRefByName(moduleName); - if (moduleRef == null) return false; - - } - List destinations = getMessageDestinations(moduleRef); - for (int i = 0; i < destinations.size(); i++) { - MessageDestination messageDestination = (MessageDestination) (destinations.get(i)); - if (destinationName.equals(messageDestination.getName())) return true; - } - return false; - } - - private ModuleRef getModuleRefByName(String moduleName) { - List moduleList = earFile.getModuleRefs(); - for (int i = 0; i < moduleList.size(); i++) { - ModuleRef ref = (ModuleRef) moduleList.get(i); - Module module = ref.getModule(); - if (moduleName.equals(module.getUri())) { - return ref; - } - } - return null; - } - - private List getMessageDestinationRefs(ModuleRef ref) { - List destinationRefs = new ArrayList(); - - try { - if(ref.isWeb()) { - WebApp webApp = (WebApp)ref.getDeploymentDescriptor(); - destinationRefs.addAll(webApp.getMessageDestinationRefs()); - } else if( ref.isEJB() ) { - EJBJar ejbJar = (EJBJar)ref.getDeploymentDescriptor(); - destinationRefs.addAll(getEJBMessageDestinationRefs(ejbJar)); - } else if(ref.isClient()) { - ApplicationClient appClient = (ApplicationClientImpl)ref.getDeploymentDescriptor(); - destinationRefs.addAll(appClient.getMessageDestinationRefs()); - } - } catch (ArchiveWrappedException ex) { - Exception nested = ex.getNestedException(); - if (!(nested instanceof NoModuleFileException)) { - String[] params = new String[1]; - params[0] = ref.getUri(); - addError(EREF_CATEGORY, ERROR_MODULE_DD_FILE_NOT_FOUND, params); - } - } - - - return destinationRefs; - } - - private List getEJBMessageDestinationRefs(EJBJar ejbJar) { - List ejbMessageDestinationRefs = new ArrayList(); - if( ejbJar != null ) { - List ejbCollection = ejbJar.getEnterpriseBeans(); - if( ejbCollection != null || !ejbCollection.isEmpty() ) { - Iterator iterator = ejbCollection.iterator(); - while( iterator.hasNext() ) { - EnterpriseBean ejbBean = (EnterpriseBean)iterator.next(); - if( ejbBean != null ) { - ejbMessageDestinationRefs.addAll(ejbBean.getMessageDestinationRefs()); - } - } - } - } - return ejbMessageDestinationRefs; - } - - private List getMessageDestinations(ModuleRef ref) { - List destinations = new ArrayList(); - try { - if(ref.isWeb()) { - WebApp webApp = (WebApp)ref.getDeploymentDescriptor(); - destinations.addAll(webApp.getMessageDestinations()); - } else if( ref.isEJB() ) { - EJBJar ejbJar = (EJBJar)ref.getDeploymentDescriptor(); - if (ejbJar != null && ejbJar.getAssemblyDescriptor() != null) - destinations.addAll(ejbJar.getAssemblyDescriptor().getMessageDestinations()); - } else if(ref.isClient()) { - ApplicationClient appClient = (ApplicationClientImpl)ref.getDeploymentDescriptor(); - destinations.addAll(appClient.getMessageDestinations()); - } - } catch (ArchiveWrappedException ex) { - Exception nested = ex.getNestedException(); - if (!(nested instanceof NoModuleFileException)) - Logger.getLogger().logError(ex); - } - return destinations; - } - - public ISchedulingRule getSchedulingRule(IValidationContext helper) { - _helper = helper; - return null; - } - -}// EarValidator diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EnterpriseBean11VRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EnterpriseBean11VRule.java deleted file mode 100644 index 62e8d02c6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EnterpriseBean11VRule.java +++ /dev/null @@ -1,1067 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.logging.Level; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.EjbRefType; -import org.eclipse.jst.j2ee.common.EnvEntry; -import org.eclipse.jst.j2ee.common.EnvEntryType; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.Session; -import org.eclipse.jst.j2ee.ejb.SessionType; -import org.eclipse.jst.j2ee.ejb.TransactionType; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - -/** - * This class checks ejb-jar.xml for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * 15.2.5.3 Declaration of security roles referenced from the bean's code - * The Bean Provider is responsible for declaring in the security-role-ref elements of the deploy-ment - * descriptor all the security role names used in the enterprise bean code. Declaring the security roles - * references in the code allows the Application Assembler or Deployer to link the names of the security - * roles used in the code to the security roles defined for an assembled application through the secu-rity- - * role elements. - * The Bean Provider must declare each security role referenced in the code using the secu-rity- - * role-ref element as follows: - * Declare the name of the security role using the role-name element. The name must be the - * security role name that is used as a parameter to the isCallerInRole(String role-Name) - * method. - * Optional: Provide a description of the security role in the description element. - * A security role reference, including the name defined by the role-name element, is scoped to the ses-sion - * or entity bean element whose declaration contains the security-role-ref element. - * The following example illustrates how an enterprise bean's references to security roles are declared in - * the deployment descriptor. - * ... - * <enterprise-beans> - * ... - * <entity> - * <ejb-name>AardvarkPayroll</ejb-name> - * <ejb-class>com.aardvark.payroll.PayrollBean</ejb-class> - * ... - * <security-role-ref> - * <description> - * This security role should be assigned to the - * employees of the payroll department who are - * allowed to update employees' salaries. - * </description> - * <role-name>payroll</role-name> - * </security-role-ref> - * ... - * </entity> - * ... - * </enterprise-beans> - * ... - * - * The deployment descriptor above indicates that the enterprise bean AardvarkPayroll makes the - * security check using isCallerInRole("payroll") in its business method. - * - * - * 15.3.3 Linking security role references to security roles - * If the Application Assembler defines the security-role elements in the deployment descriptor, he - * or she is also responsible for linking all the security role references declared in the secu-rity- - * role-ref elements to the security roles defined in the security-role elements. - * The Application Assembler links each security role reference to a security role using the role-link - * element. The value of the role-link element must be the name of one of the security roles defined in - * a security-role element. - * A role-link element must be used even if the value of role-name is the same as the value of the - * role-link reference. - * The following deployment descriptor example shows how to link the security role reference named - * payroll to the security role named payroll-department. - * ... - * <enterprise-beans> - * ... - * <entity> - * <ejb-name>AardvarkPayroll</ejb-name> - * <ejb-class>com.aardvark.payroll.PayrollBean</ejb-class> - * ... - * <security-role-ref> - * <description> - * This role should be assigned to the - * employees of the payroll department. - * Members of this role have access to - * anyone's payroll record. - * - * The role has been linked to the - * payroll-department role. - * </description> - * <role-name>payroll</role-name> - * <role-link>payroll-department</role-link> - * </security-role-ref> - * ... - * </entity> - * ... - * </enterprise-beans> - * ... - */ -public class EnterpriseBean11VRule extends AValidationRule implements IMessagePrefixEjb11Constants { - private static final Object ID = IValidationRuleList.EJB11_ENTERPRISEBEAN; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_SESSION_BEANCLASS, IValidationRuleList.EJB11_SESSION_HOME, IValidationRuleList.EJB11_SESSION_REMOTE, IValidationRuleList.EJB11_BMP_BEANCLASS, IValidationRuleList.EJB11_BMP_HOME, IValidationRuleList.EJB11_BMP_KEYCLASS, IValidationRuleList.EJB11_BMP_REMOTE, IValidationRuleList.EJB11_CMP_BEANCLASS, IValidationRuleList.EJB11_CMP_HOME, IValidationRuleList.EJB11_CMP_KEYCLASS, IValidationRuleList.EJB11_CMP_REMOTE}; - private static final Map MESSAGE_IDS; - - private List _securityRoles = null; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2801, new String[]{CHKJ2801 + SPEC}); - MESSAGE_IDS.put(CHKJ2802_NAMED, new String[]{CHKJ2802_NAMED + SPEC}); - MESSAGE_IDS.put(CHKJ2802_UNNAMED, new String[]{CHKJ2802_UNNAMED + SPEC}); - MESSAGE_IDS.put(CHKJ2803_NAMED, new String[]{CHKJ2803_NAMED + SPEC}); - MESSAGE_IDS.put(CHKJ2803_UNNAMED, new String[]{CHKJ2803_UNNAMED + SPEC}); - MESSAGE_IDS.put(CHKJ2804_NAMED, new String[]{CHKJ2804_NAMED + SPEC}); - MESSAGE_IDS.put(CHKJ2804_UNNAMED, new String[]{CHKJ2804_UNNAMED + SPEC}); - MESSAGE_IDS.put(CHKJ2806, new String[]{CHKJ2806 + SPEC}); - MESSAGE_IDS.put(CHKJ2807, new String[]{CHKJ2807 + SPEC}); - MESSAGE_IDS.put(CHKJ2808, new String[]{CHKJ2808 + SPEC}); - MESSAGE_IDS.put(CHKJ2809, new String[]{CHKJ2809 + SPEC}); - - MESSAGE_IDS.put(CHKJ2810_NAMED, new String[]{CHKJ2810_NAMED + SPEC}); - MESSAGE_IDS.put(CHKJ2810_UNNAMED, new String[]{CHKJ2810_UNNAMED + SPEC}); - MESSAGE_IDS.put(CHKJ2811_NAMED, new String[]{CHKJ2811_NAMED + SPEC}); - MESSAGE_IDS.put(CHKJ2811_UNNAMED, new String[]{CHKJ2811_UNNAMED + SPEC}); - MESSAGE_IDS.put(CHKJ2812, new String[]{CHKJ2812 + SPEC}); - - MESSAGE_IDS.put(CHKJ2820, new String[]{CHKJ2820 + SPEC}); - MESSAGE_IDS.put(CHKJ2822, new String[]{CHKJ2822 + SPEC}); - MESSAGE_IDS.put(CHKJ2823, new String[]{CHKJ2823 + SPEC}); - MESSAGE_IDS.put(CHKJ2824, new String[]{CHKJ2824 + SPEC}); - MESSAGE_IDS.put(CHKJ2827, new String[]{CHKJ2827 + SPEC}); - MESSAGE_IDS.put(CHKJ2828, new String[]{CHKJ2828 + SPEC}); - - MESSAGE_IDS.put(CHKJ2830, new String[]{CHKJ2830 + SPEC}); - MESSAGE_IDS.put(CHKJ2831, new String[]{CHKJ2831 + SPEC}); - MESSAGE_IDS.put(CHKJ2832, new String[]{CHKJ2832 + SPEC}); - MESSAGE_IDS.put(CHKJ2833, new String[]{CHKJ2833 + SPEC}); - MESSAGE_IDS.put(CHKJ2834, new String[]{CHKJ2834 + SPEC}); - MESSAGE_IDS.put(CHKJ2835, new String[]{CHKJ2835 + SPEC}); - MESSAGE_IDS.put(CHKJ2836, new String[]{CHKJ2836 + SPEC}); - MESSAGE_IDS.put(CHKJ2837, new String[]{CHKJ2837 + SPEC}); - MESSAGE_IDS.put(CHKJ2838, new String[]{CHKJ2838 + SPEC}); - MESSAGE_IDS.put(CHKJ2839, new String[]{CHKJ2839 + SPEC}); - - MESSAGE_IDS.put(CHKJ2840, new String[]{CHKJ2840 + SPEC}); - MESSAGE_IDS.put(CHKJ2841, new String[]{CHKJ2841 + SPEC}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - MESSAGE_IDS.put(CHKJ2852, new String[]{CHKJ2852}); - - MESSAGE_IDS.put(CHKJ2908, new String[]{CHKJ2908 + SPEC}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public Object getTarget(Object parent, Object clazz) { - // If called as a dependent, parent will be this EnterpriseBean. - return parent; - } - - /** - * 6.5.3 The optional SessionSynchronization interface - *... - * Only a stateful Session bean with container-managed transaction demarcation may - * implement the SessionSynchronization interface. - *... - * There is no need for a Session bean with bean-managed transaction to rely on the - * synchronization call backs because the bean is in control of the commit the bean - * knows when the transaction is about to be committed and it knows the outcome of the - * transaction commit. - *... - */ - public boolean isValidSessionTypeElement(Session session) { - // check syntax - if (!session.isSetSessionType()) { - return false; - } - - if (session.getSessionType().getValue() == SessionType.STATEFUL) { - return true; - } - - if (session.getSessionType().getValue() == SessionType.STATELESS) { - return true; - } - - return false; - } - - public boolean isValidTransactionTypeElement(Session sessionBean) { - if (!sessionBean.isSetTransactionType()) { - return false; - } - - if (sessionBean.getTransactionType().getValue() == TransactionType.BEAN) { - return true; - } - - if (sessionBean.getTransactionType().getValue() == TransactionType.CONTAINER) { - return true; - } - - return false; - } - - - /** - * If the bean components (home interface, remote interface, bean class, and primary - * key) can all be found and reflected, return true. Else, add a validation error - * against the bean, and return false. - */ - public boolean validateBeanComponents(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - boolean isValid = true; - // Don't need to check if the bean is null, because this method will - // not be called if it is. - try { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getEjbClass()); - } - catch (InvalidInputException exc) { - if (bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_EjbClass())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2802_NAMED, IEJBValidationContext.ERROR, bean, new String[] { bean.getEjbClass().getQualifiedName()}, this); - vc.addMessage(message); - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2802_UNNAMED, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - isValid = false; - } - - try { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getHomeInterface()); - } - catch (InvalidInputException exc) { - if (bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_HomeInterface())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2803_NAMED, IEJBValidationContext.ERROR, bean, new String[] { bean.getHomeInterfaceName()}, this); - vc.addMessage(message); - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2803_UNNAMED, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - isValid = false; - } - - try { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getRemoteInterface()); - } - catch (InvalidInputException exc) { - if (bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_RemoteInterface())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2804_NAMED, IEJBValidationContext.ERROR, bean, new String[] { bean.getRemoteInterfaceName()}, this); - vc.addMessage(message); - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2804_UNNAMED, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - isValid = false; - } - - if (bean.isEntity()) { - JavaClass primaryKey = ((Entity) bean).getPrimaryKey(); - try { - ValidationRuleUtility.isValidTypeHierarchy(bean, primaryKey); - } - catch (InvalidInputException exc) { - if (((Entity) bean).eIsSet(EjbPackage.eINSTANCE.getEntity_PrimaryKey())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2810_NAMED, IEJBValidationContext.ERROR, bean, new String[] { ((Entity) bean).getPrimaryKeyName()}, this); - vc.addMessage(message); - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2810_UNNAMED, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - isValid = false; - } - } - return isValid; - } - - public void validateCMPFieldElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean instanceof ContainerManagedEntity) { - // check syntax of tag is okay - ContainerManagedEntity cmp = (ContainerManagedEntity) bean; - List fields = cmp.getPersistentAttributes(); - if ((fields == null) || (fields.size() == 0)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2812, IEJBValidationContext.ERROR, bean, new String[] { bean.getEjbClassName()}, this); - vc.addMessage(message); - return; - } - - boolean mapsToMultipleFields = !ValidationRuleUtility.isPrimitivePrimaryKey((ContainerManagedEntity) bean); - Iterator iterator = fields.iterator(); - Field field = null; - List fieldNames = new ArrayList(fields.size()); - while (iterator.hasNext()) { - CMPAttribute attrib = (CMPAttribute) iterator.next(); - if (attrib == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("DDValidator.validateCMPFieldElement(EnterpriseBean)"); //$NON-NLS-1$ - entry.setText("CMPAttribute is null."); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - continue; - } - - field = attrib.getField(); - if (field == null) { - if (attrib.getName() != null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2811_NAMED, IEJBValidationContext.ERROR, bean, new String[] { attrib.getName(), bean.getEjbClassName()}, this); - vc.addMessage(message); - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2811_UNNAMED, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - continue; - } - else if (field.getName().equals(IMethodAndFieldConstants.FIELDNAME_SERIALVERSIONUID)) { - // not a customer-entered field - continue; - } - - fieldNames.add(field.getName()); - - try { - // If the field is not a valid type - ValidationRuleUtility.isValidType(ValidationRuleUtility.getType(field)); - } - catch (InvalidInputException exc) { - // field not identified - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2830, IEJBValidationContext.WARNING, bean, new String[] { field.getName()}, this); - vc.addMessage(message); - } - } - - // 9.4.7.2 - if (mapsToMultipleFields && !ValidationRuleUtility.usesUnknownPrimaryKey(cmp)) { - List primKeyFields = cmp.getPrimaryKey().getFieldsExtended(); - - // (9.4.7.1 is validated in validatePrimKeyClassElement(bean) - // check if the primary key class' fields exist in the container-managed fields - iterator = primKeyFields.iterator(); - - while (iterator.hasNext()) { - Field keyField = (Field) iterator.next(); - if ((keyField.getName() != null) && (keyField.getName().equals(IMethodAndFieldConstants.FIELDNAME_SERIALVERSIONUID))) { - // not a customer-entered field - continue; - } - - if (!fieldNames.contains(keyField.getName())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2831, IEJBValidationContext.WARNING, bean, new String[] { keyField.getName()}, this); - vc.addMessage(message); - } - } - } - - } - } - - /** - * This validateDeploymentDescriptor is called if the EJBJar could load, which means - * that the syntax of the JAR is (mostly) correct. - * - * EJB spec 1.1, section C.4, "Added the requirement for the Bean Provider to specify whether the - * enterprise bean uses a bean-managed or container-managed transaction." - */ - public void validate(IEJBValidationContext vc, Object targetParent, Object target) { - EJBJar ejbJar = null; - if(targetParent instanceof EnterpriseBean) { - // running as a dependent - ejbJar = (EJBJar)vc.loadModel(EJBValidatorModelEnum.EJB_MODEL); - } - else { - ejbJar = (EJBJar)targetParent; - } - EnterpriseBean bean = (EnterpriseBean)target; - - validate(vc, ejbJar, bean); - } - - public void validate(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean == null) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2908, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - - // If bean isn't valid, don't perform any of the other - // validation checks on it. - return; - } - - try { - // Check if the class exists, etc. - boolean reflected = validateBeanComponents(vc, ejbJar, bean); // assume everything will reflect properly - - validateEnterpriseTypeElement(vc, ejbJar, bean); - validateEJBNameElement(vc, ejbJar, bean); - validateReentrantElement(vc, ejbJar, bean); - validateSessionTypeElement(vc, ejbJar, bean); - validateTransactionTypeElement(vc, ejbJar, bean); - validatePersistenceTypeElement(vc, ejbJar, bean); - validateEnvironmentEntries(vc, ejbJar, bean); - - if (!reflected) { - // Something didn't reflect properly, so don't continue with the - // rest of the checks. Some metadata will be nonsense. - return; - } - - if (bean.isContainerManagedEntity()) { - ContainerManagedEntity cmp = (ContainerManagedEntity) bean; - if (cmp.getPrimKeyField() != null && !cmp.getPrimKeyField().eIsProxy()) { - // Don't validate the fields if it's neither a primitive primary key nor a compound primary key. - // If the user was attempting a primitive primary key, but did a typo in ejb-jar.xml, - // the user will see a lot of strange messages logged against the fields in the primitive primary key. - validateCMPFieldElement(vc, ejbJar, bean); - } - } - - validatePrimKeyClassElement(vc, ejbJar, bean); - validateEJBRef(vc, ejbJar, bean); - validateSecurityRoleRefElement(vc, ejbJar, bean); - } - catch(ValidationCancelledException e) { - throw e; - } - /* unreachable catch block - catch(ValidationException exc) { - // If there's a problem, proceed with the next bean. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorConstants.CHKJ2852, IEJBValidationContext.WARNING, bean, new String[] { bean.getName() }, this); - vc.addMessage(message); - MsgLogger logger = vc.getMsgLogger(); - if (logger.isLoggingLevel(Level.FINER)) { - logger.write(Level.FINER, exc); - } - } - */ - catch (Throwable exc) { - // If there's a problem, proceed with the next bean. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2852, IEJBValidationContext.WARNING, bean, new String[] { bean.getName() }, this); - vc.addMessage(message); - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, exc); - } - } - } - - public void validateEJBNameElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean == null) { - return; - } - - String name = bean.getName(); - if ((name == null) || (name.equals(""))) { //$NON-NLS-1$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2801, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - } - - /** - * Validate section 14.3 of the EJB 1.1 specification. - * - * 14.3 EJB References - * 14.3.1 Bean Provider's responsibilities - * 14.3.1.1 EJB reference programming interfaces - * 14.3.1.2 Declaration of EJB references in deployment descriptor - * 14.3.2 Application Assembler's responsibilities - * 14.3.3 Deployer's responsibility - * 14.3.4 Container Provider's responsibility - */ - public void validateEJBRef(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean == null) { - return; - } - - List ejbRefs = bean.getEjbRefs(); - if ((ejbRefs == null) || (ejbRefs.size() == 0)) { - return; - } - - Iterator iterator = ejbRefs.iterator(); - EjbRef ref = null; - while (iterator.hasNext()) { - ref = (EjbRef) iterator.next(); - if (ref == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("DDValidator.validateEJBRef(EnterpriseBean)"); //$NON-NLS-1$ - entry.setText("EjbRef is null in " + bean.getName()); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - continue; - } - // 14.3.1.1 - // Info mssg. "EJB spec recommends that all references to other enterprise beans be organized in the ejb subcontext of the bean's environment" - EnterpriseBean namedEjb = null; - if (ref.eIsSet(CommonPackage.eINSTANCE.getEjbRef_Link())) { - // Load the EJB identified by the reference, if it exists. - namedEjb = ejbJar.getEnterpiseBeanFromRef(ref); - if (namedEjb != null) { - // if it's null, let the EAR validator report it - Integer ejbType = new Integer(ref.getType().getValue()); - boolean wrongType = false; // is the EJB, identified by ejb-link, of the type specified in the ejb-ref-type element? - String type = (namedEjb instanceof Session) ? "Session" : "Entity"; //$NON-NLS-1$ //$NON-NLS-2$ - if (ejbType == null) { - // Neither session nor entity? - wrongType = true; - } - else if (ejbType.intValue() == EjbRefType.SESSION) { - if (!(namedEjb instanceof Session)) { - wrongType = true; - } - } - else if (ejbType.intValue() == EjbRefType.ENTITY) { - if (!(namedEjb instanceof Entity)) { - wrongType = true; - } - } - else { - wrongType = true; - } - if (wrongType) { - String[] parms = { namedEjb.getName(), type }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2835, IEJBValidationContext.INFO, bean, parms, this); - vc.addMessage(message); - } - } - } - - // 14.3.1.2, 14.3.2, 14.3.4 - // Check that ejb-ref-name, ejb-ref-type, home, and remote have been defined, and exist - validateHomeRef(vc, ejbJar, ref, namedEjb); - validateRemoteRef(vc, ejbJar, ref, namedEjb); - - // 14.3.1.1 - // Info mssg. "EJB spec recommends that all references to other enterprise beans be organized in the ejb subcontext of the bean's environment" - if (ref.getName() != null) { - // If ejb name isn't set, that error would have been caught by one of the validateRef methods - // Don't duplicate that effort here. - String ejbName = ref.getName(); - if (!ejbName.startsWith("ejb/")) { //$NON-NLS-1$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2838, IEJBValidationContext.INFO, bean, this); - vc.addMessage(message); - } - } - } - } - - public void validateEnterpriseTypeElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - // Attempt in vain to validate the enterprise type element here, because - // if it's not specified, there's a syntax error, and the - // validateDeploymentDescriptor(IReporter, IValidationContext) would have been - // called instead. - /* - if(! (bean.isSession() || bean.isEntity() )) { - // no tag specified - String beanName = (bean.getName() == null) ? "" : bean.getName(); - addValidationMessage(IEJBValidationContext.ERROR, IMessagePrefixEjb11Constants.EJB_DD_INVALID_ENTERPRISETYPE, new String[]{beanName}, bean); - } - */ - } - - /** - * Validate section 14.3 of the EJB 1.1 specification. - * - * 14.2.1.2 Declaration of environment entries - */ - public void validateEnvironmentEntries(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean == null) { - return; - } - - List envEntries = bean.getEnvironmentProperties(); - if ((envEntries == null) || (envEntries.size() == 0)) { - return; - } - - EnvEntry envEntry = null; - Iterator iterator = envEntries.iterator(); - DuplicatesTable envNames = new DuplicatesTable(); - while (iterator.hasNext()) { - envEntry = (EnvEntry) iterator.next(); - if (envEntry == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("DDValidator.validateEnvironmentEntries(EnterpriseBean)"); //$NON-NLS-1$ - entry.setText("EjbEntry is null in " + bean.getName()); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - continue; - } - - if (envEntry.getName() != null) { - envNames.add(envEntry.getName()); - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2839, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - - if (envEntry.isSetType()) { - // 14.2.1.2; type must be one of these types: String, Integer, Boolean, Double, Byte, Short, Long, and Float. - int type = envEntry.getType().getValue(); - if (!((type == EnvEntryType.BOOLEAN) || (type == EnvEntryType.BYTE) || (type == EnvEntryType.DOUBLE) || (type == EnvEntryType.FLOAT) || (type == EnvEntryType.INTEGER) || (type == EnvEntryType.LONG) || (type == EnvEntryType.SHORT) || (type == EnvEntryType.STRING))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2840, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2840, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - } - - if (envNames.containsDuplicates()) { - Iterator dups = envNames.getDuplicates().iterator(); - while (dups.hasNext()) { - String name = (String) dups.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2841, IEJBValidationContext.WARNING, bean, new String[] { name }, this); - vc.addMessage(message); - } - } - } - - /** - * If the metadata from the EjbRef is not valid, add a validation message. - * - * @parm EjbRef The <ejb-ref> element this method validates. - * @parm EnterpriseBean If the <ejb-ref> uses an <ejb-link>, this is the enterprise bean identified by that link. If the link doesn't exist, or if the user has identified a bean which doesn't exist, this parameter will be null. - */ - protected void validateHomeRef(IEJBValidationContext vc, EJBJar ejbJar, EjbRef ref, EnterpriseBean namedEjb) { - boolean validType = true; - EnterpriseBean bean = (EnterpriseBean)ref.eContainer(); - if (ref.eIsSet(CommonPackage.eINSTANCE.getEjbRef_Home())) { - try { - String homeName = ref.getHome(); - JavaHelpers type = ValidationRuleUtility.getType(homeName, bean); - // Check that the home specified in the <home> element of the <ejb-ref> element - // exists. - ValidationRuleUtility.isValidType(type); - - if (namedEjb != null) { - // Check that the home specified in the <home> element - // is assignable to the home used by the named EJB in the - // <ejb-link> element. - JavaClass intfType = namedEjb.getHomeInterface(); - ValidationRuleUtility.isValidType(intfType); - - // Make sure that the identified home/remote interface in the ejb-ref - // is of the same type as the one used by the bean. - if (!ValidationRuleUtility.isAssignableFrom(type.getWrapper(), intfType)) { - String[] parms = { namedEjb.getName(), intfType.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2836, IEJBValidationContext.INFO, bean, parms, this); - vc.addMessage(message); - } - } - } - catch (InvalidInputException exc) { - validType = false; - } - } - else { - validType = false; - } - - if (!validType) { - String[] parms = { ref.getHome()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2832, IEJBValidationContext.INFO, bean, parms, this); - vc.addMessage(message); - } - } - - public void validatePersistenceTypeElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - // Attempt in vain to validate the persistence type element here, because - // if it's not specified, there's a syntax error, and the - // validateDeploymentDescriptor(IReporter, IValidationContext) would have been - // called instead. - if (bean.isEntity()) { - // check syntax - Entity entityBean = (Entity) bean; - if (!(entityBean.isContainerManagedEntity() || entityBean.isBeanManagedEntity())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2809, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - } - } - /** - * If the primary key class reflected properly, return true. Else, return false. - */ - public void validatePrimKeyClassElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean.isEntity()) { - // check syntax - if (bean instanceof ContainerManagedEntity) { - ContainerManagedEntity cmp = (ContainerManagedEntity) bean; - JavaClass clas = cmp.getPrimaryKey(); - if (clas != null && !clas.eIsProxy() && !isValidPrimKeyField(cmp,clas)) { - // 9.4.7.1 - // user has specified both a prim-key-class and a primkey-field - // can't use the CMPAttribute's field's name, because the primitive primary key returned is null - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2828, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - } - } - } - - /** - * If the primary key is specified in the xml, answer whether it is the same as the derived primaryKeyAttribute - */ - public static boolean isValidPrimKeyField(ContainerManagedEntity cmp, JavaClass clas) { - return cmp.getPrimaryKeyName().equals(clas.getJavaName()); - } - - public void validateReentrantElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean.isEntity()) { - // check syntax - Entity entity = (Entity) bean; - if (!entity.isSetReentrant()) { - // Can only test if the reentrant attribute is set, because the model defaults it - // to some boolean value if it isn't set. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2806, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - } - } - - /** - * If the metadata from the EjbRef is not valid, add a validation message. - * - * @parm EjbRef The ref whose home this method checks. - * @parm EnterpriseBean If the EjbRef uses an <ejb-link> element, this is the enterprise bean identified by that element. It may be null, if the user has made a mistake. - */ - protected void validateRemoteRef(IEJBValidationContext vc, EJBJar ejbJar, EjbRef ref, EnterpriseBean namedEjb) { - boolean validType = true; - EnterpriseBean bean = (EnterpriseBean)ref.eContainer(); - if (ref.eIsSet(CommonPackage.eINSTANCE.getEjbRef_Remote())) { - try { - String remoteName = ref.getRemote(); - JavaHelpers type = ValidationRuleUtility.getType(remoteName, bean); - // Check that the home specified in the <home> element of the <ejb-ref> element - // exists. - ValidationRuleUtility.isValidType(type); - - if (namedEjb != null) { - // Check that the home specified in the <home> element - // is assignable to the home used by the named EJB in the - // <ejb-link> element. - JavaClass intfType = namedEjb.getRemoteInterface(); - ValidationRuleUtility.isValidType(intfType); - - // Make sure that the identified home/remote interface in the ejb-ref - // is of the same type as the one used by the bean. - if (!ValidationRuleUtility.isAssignableFrom(type.getWrapper(), intfType)) { - String[] parms = { namedEjb.getName(), intfType.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2837, IEJBValidationContext.INFO, bean, parms, this); - vc.addMessage(message); - } - } - } - catch (InvalidInputException exc) { - validType = false; - } - } - else { - validType = false; - } - - if (!validType) { - String[] parms = { ref.getRemote()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2833, IEJBValidationContext.INFO, bean, parms, this); - vc.addMessage(message); - } - } - - /** - * 15.2.5.3 Declaration of security roles referenced from the bean's code - * The Bean Provider is responsible for declaring in the security-role-ref - * elements of the deployment descriptor all the security role names used - * in the enterprise bean code. Declaring the security roles references in - * the code allows the Application Assembler or Deployer to link the names - * of the security roles used in the code to the security roles defined for - * an assembled application through the security-role elements. - * The Bean Provider must declare each security role referenced in the code - * using the security-role-ref element as follows: - * Declare the name of the security role using the role-name element. - * The name must be the security role name that is used as a parameter to - * the isCallerInRole(String role-Name) method. - * Optional: Provide a description of the security role in the - * description element. A security role reference, including the name defined - * by the role-name element, is scoped to the session or entity bean element - * whose declaration contains the security-role-ref element. The following - * example illustrates how an enterprise bean's references to security roles - * are declared in the deployment descriptor. - * ... - * <enterprise-beans> - * ... - * <entity> - * <ejb-name>AardvarkPayroll</ejb-name> - * <ejb-class>com.aardvark.payroll.PayrollBean</ejb-class> - * ... - * <security-role-ref> - * <description> - * This security role should be assigned to the - * employees of the payroll department who are - * allowed to update employees' salaries. - * </description> - * <role-name>payroll</role-name> - * </security-role-ref> - * ... - * </entity> - * ... - * </enterprise-beans> - * ... - * - * The deployment descriptor above indicates that the enterprise bean - * AardvarkPayroll makes the security check using isCallerInRole("payroll") - * in its business method. - * - * - * 15.3.3 Linking security role references to security roles - * If the Application Assembler defines the security-role elements in the - * deployment descriptor, he or she is also responsible for linking all the - * security role references declared in the security-role-ref elements to the - * security roles defined in the security-role elements. The Application - * Assembler links each security role reference to a security role using the - * role-link element. The value of the role-link element must be the name of - * one of the security roles defined in a security-role element. - * A role-link element must be used even if the value of role-name is the - * same as the value of the role-link reference. - * The following deployment descriptor example shows how to link the security - * role reference named payroll to the security role named payroll-department. - * ... - * <enterprise-beans> - * ... - * <entity> - * <ejb-name>AardvarkPayroll</ejb-name> - * <ejb-class>com.aardvark.payroll.PayrollBean</ejb-class> - * ... - * <security-role-ref> - * <description> - * This role should be assigned to the - * employees of the payroll department. - * Members of this role have access to - * anyone's payroll record. - * - * The role has been linked to the - * payroll-department role. - * </description> - * <role-name>payroll</role-name> - * <role-link>payroll-department</role-link> - * </security-role-ref> - * ... - * </entity> - * ... - * </enterprise-beans> - * ... - * - */ - public void validateSecurityRoleRefElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean == null) { - return; - } - - /** - * Need to build up a list of duplicate role names, but the validation message - * needs to be registered against the duplicate SecurityRoleRef instance. - * (Without the instance, we cannot get line numbers.) - * - * This class wrappers the SecurityRolRef instance so that the wrapper's - * implemention of equals compares the names, but the validation message will - * still be able to get the ref from the duplicate name. - */ - class RoleRefWrapper { - private SecurityRoleRef _ref = null; - - public RoleRefWrapper(SecurityRoleRef ref) { - _ref = ref; - } - - public boolean equals(Object o) { - if (o instanceof RoleRefWrapper) { - RoleRefWrapper other = (RoleRefWrapper) o; - return _ref.getName().equals(other.getRoleRef().getName()); - } - return false; - } - - public SecurityRoleRef getRoleRef() { - return _ref; - } - } - - boolean areSRolesDefined = ((_securityRoles != null) && (_securityRoles.size() > 0)); - - List securityRoleRefs = bean.getSecurityRoleRefs(); - if ((securityRoleRefs != null) && (securityRoleRefs.size() != 0)) { - // Check that each security role ref refers to a security role, - // if security roles are defined in the assembly descriptor, - // and that each referenced security role exists. - DuplicatesTable roleRefNames = new DuplicatesTable(); - for (int i = 0; i < securityRoleRefs.size(); i++) { - SecurityRoleRef ref = (SecurityRoleRef) securityRoleRefs.get(i); - - // Check that the role name is set (15.2.5.3) - String roleName = ref.getName(); - if ((roleName == null) || (roleName.equals(""))) { //$NON-NLS-1$ - roleName = ""; //$NON-NLS-1$ - String beanName = (bean.getName() == null) ? "" : bean.getName(); //$NON-NLS-1$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2822, IEJBValidationContext.WARNING, ref, new String[] { beanName }, this); - vc.addMessage(message); - } - else { - // Build up the list of names, to check for duplicates - roleRefNames.add(new RoleRefWrapper(ref)); - } - - // Check that the role link is set (15.3.3) - String roleLink = ref.getLink(); - boolean isLinkDefined = ((ref.eIsSet(CommonPackage.eINSTANCE.getSecurityRoleRef_Link())) && (roleLink != null) && (!roleLink.equals(""))); //$NON-NLS-1$ - - if ((areSRolesDefined) && (!isLinkDefined)) { - // must have role link defined (15.3.3) - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2823, IEJBValidationContext.WARNING, ref, this); - vc.addMessage(message); - } - else if ((!areSRolesDefined) && (isLinkDefined)) { - // must not have role link defined (15.2.5.3) - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2827, IEJBValidationContext.WARNING, ref, this); - vc.addMessage(message); - } - else if (areSRolesDefined && isLinkDefined) { - // check that the role listed in the link exists. (15.3.3) - Iterator iterator = _securityRoles.iterator(); - boolean roleExists = false; - while(iterator.hasNext()) { - SecurityRole role = (SecurityRole)iterator.next(); - if(role.getRoleName().equals(roleLink)) { - roleExists = true; - break; - } - } - if (!roleExists) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2824, IEJBValidationContext.WARNING, ref, new String[] { roleName }, this); - vc.addMessage(message); - } - } - } - - // Check for duplicates - // Check that there are no duplicate role-names. (15.3.1) - if (roleRefNames.containsDuplicates()) { - List duplicates = roleRefNames.getDuplicates(); - Iterator iterator = duplicates.iterator(); - while (iterator.hasNext()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2820, IEJBValidationContext.WARNING, ((RoleRefWrapper) iterator.next()).getRoleRef(), this); - vc.addMessage(message); - } - } - roleRefNames.clear(); - } - } - - /** - * 6.5.3 The optional SessionSynchronization interface - *... - * Only a stateful Session bean with container-managed transaction demarcation may - * implement the SessionSynchronization interface. - *... - * There is no need for a Session bean with bean-managed transaction to rely on the - * synchronization call backs because the bean is in control of the commit the bean - * knows when the transaction is about to be committed and it knows the outcome of the - * transaction commit. - *... - */ - public void validateSessionTypeElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean.isSession()) { - Session session = (Session) bean; - - // check syntax - boolean isValidSess = isValidSessionTypeElement(session); - if (!isValidSess) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2807, IEJBValidationContext.ERROR, session, this); - vc.addMessage(message); - } - } - } - - public void validateTransactionTypeElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean.isSession()) { - // check syntax - Session sessionBean = (Session) bean; - if (!isValidTransactionTypeElement(sessionBean)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2808, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - } - } - - /* - * @see IValidationRule#reset() - */ - public void reset() { - super.reset(); - _securityRoles = null; - } - - /* - * @see IValidationRule#preValidate(IEJBValidationContext, Object, Object) - */ - public void preValidate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - super.preValidate(vc, targetParent, target); - - EJBJar ejbJar = (EJBJar)vc.loadModel(EJBValidatorModelEnum.EJB_MODEL); - if(ejbJar == null) { - return; - } - - if(ejbJar.getAssemblyDescriptor() == null) { - return; - } - _securityRoles = ejbJar.getAssemblyDescriptor().getSecurityRoles(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EnterpriseBean20VRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EnterpriseBean20VRule.java deleted file mode 100644 index 58262df3e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EnterpriseBean20VRule.java +++ /dev/null @@ -1,1258 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.logging.Level; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.EjbRefType; -import org.eclipse.jst.j2ee.common.EnvEntry; -import org.eclipse.jst.j2ee.common.EnvEntryType; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.ejb.ActivationConfig; -import org.eclipse.jst.j2ee.ejb.ActivationConfigProperty; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.MessageDriven; -import org.eclipse.jst.j2ee.ejb.Session; -import org.eclipse.jst.j2ee.ejb.internal.util.MDBActivationConfigModelUtil; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public class EnterpriseBean20VRule extends AValidationRule implements IMessagePrefixEjb20Constants { - private List _securityRoles = null; - private static final Map MESSAGE_IDS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_BMP_BEANCLASS, IValidationRuleList.EJB20_BMP_HOME, IValidationRuleList.EJB20_BMP_KEYCLASS, IValidationRuleList.EJB20_BMP_LOCAL, IValidationRuleList.EJB20_BMP_LOCALHOME, IValidationRuleList.EJB20_BMP_REMOTE, IValidationRuleList.EJB20_CMP_BEANCLASS, IValidationRuleList.EJB20_CMP_HOME, IValidationRuleList.EJB20_CMP_KEYCLASS, IValidationRuleList.EJB20_CMP_LOCAL, IValidationRuleList.EJB20_CMP_LOCALHOME, IValidationRuleList.EJB20_CMP_REMOTE, IValidationRuleList.EJB20_STATEFUL_SESSION_BEANCLASS, IValidationRuleList.EJB20_STATEFUL_SESSION_HOME, IValidationRuleList.EJB20_STATEFUL_SESSION_LOCAL, IValidationRuleList.EJB20_STATEFUL_SESSION_LOCALHOME, IValidationRuleList.EJB20_STATEFUL_SESSION_REMOTE, IValidationRuleList.EJB20_STATELESS_SESSION_BEANCLASS, IValidationRuleList.EJB20_STATELESS_SESSION_HOME, IValidationRuleList.EJB20_STATELESS_SESSION_LOCAL, IValidationRuleList.EJB20_STATELESS_SESSION_LOCALHOME, IValidationRuleList.EJB20_STATELESS_SESSION_REMOTE}; - private static String JMS_MESSAGING_TYPE = "javax.jms.MessageListener"; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2800_NAMED, new String[]{CHKJ2800_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2800_UNNAMED, new String[]{CHKJ2800_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2801, new String[]{CHKJ2801+SPEC}); - MESSAGE_IDS.put(CHKJ2802_NAMED, new String[]{CHKJ2802_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2802_UNNAMED, new String[]{CHKJ2802_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2803_NAMED, new String[]{CHKJ2803_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2803_UNNAMED, new String[]{CHKJ2803_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2804_NAMED, new String[]{CHKJ2804_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2804_UNNAMED, new String[]{CHKJ2804_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2805_NAMED, new String[]{CHKJ2805_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2805_UNNAMED, new String[]{CHKJ2805_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2806, new String[]{CHKJ2806+SPEC}); - MESSAGE_IDS.put(CHKJ2807, new String[]{CHKJ2807+SPEC}); - MESSAGE_IDS.put(CHKJ2808, new String[]{CHKJ2808+SPEC}); - MESSAGE_IDS.put(CHKJ2809, new String[]{CHKJ2809+SPEC}); - MESSAGE_IDS.put(CHKJ2810_NAMED, new String[]{CHKJ2810_NAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2810_UNNAMED, new String[]{CHKJ2810_UNNAMED+SPEC}); - MESSAGE_IDS.put(CHKJ2813, new String[]{CHKJ2813+SPEC}); - MESSAGE_IDS.put(CHKJ2820, new String[]{CHKJ2820+SPEC}); - MESSAGE_IDS.put(CHKJ2822, new String[]{CHKJ2822+SPEC}); - MESSAGE_IDS.put(CHKJ2823, new String[]{CHKJ2823+SPEC}); - MESSAGE_IDS.put(CHKJ2824, new String[]{CHKJ2824+SPEC}); - MESSAGE_IDS.put(CHKJ2825, new String[]{CHKJ2825+SPEC}); - MESSAGE_IDS.put(CHKJ2826, new String[]{CHKJ2826+SPEC}); - MESSAGE_IDS.put(CHKJ2827, new String[]{CHKJ2827+SPEC}); - MESSAGE_IDS.put(CHKJ2828, new String[]{CHKJ2828+SPEC}); - MESSAGE_IDS.put(CHKJ2830, new String[]{CHKJ2830+SPEC}); - MESSAGE_IDS.put(CHKJ2831, new String[]{CHKJ2831+SPEC}); - MESSAGE_IDS.put(CHKJ2832, new String[]{CHKJ2832+SPEC}); - MESSAGE_IDS.put(CHKJ2833, new String[]{CHKJ2833+SPEC}); - MESSAGE_IDS.put(CHKJ2834, new String[]{CHKJ2834+SPEC}); - MESSAGE_IDS.put(CHKJ2835, new String[]{CHKJ2835+SPEC}); - MESSAGE_IDS.put(CHKJ2836, new String[]{CHKJ2836+SPEC}); - MESSAGE_IDS.put(CHKJ2837, new String[]{CHKJ2837+SPEC}); - MESSAGE_IDS.put(CHKJ2838, new String[]{CHKJ2838+SPEC}); - MESSAGE_IDS.put(CHKJ2839, new String[]{CHKJ2839+SPEC}); - MESSAGE_IDS.put(CHKJ2840, new String[]{CHKJ2840+SPEC}); - MESSAGE_IDS.put(CHKJ2841, new String[]{CHKJ2841+SPEC}); - MESSAGE_IDS.put(CHKJ2845, new String[]{CHKJ2845+SPEC}); - MESSAGE_IDS.put(CHKJ2846, new String[]{CHKJ2846+SPEC}); - MESSAGE_IDS.put(CHKJ2847, new String[]{CHKJ2847+SPEC}); - MESSAGE_IDS.put(CHKJ2852, new String[]{CHKJ2852}); - MESSAGE_IDS.put(CHKJ2854, new String[]{CHKJ2854+SPEC}); - MESSAGE_IDS.put(CHKJ2855, new String[]{CHKJ2855+SPEC}); - MESSAGE_IDS.put(CHKJ2856, new String[]{CHKJ2856+SPEC}); - MESSAGE_IDS.put(CHKJ2857, new String[]{CHKJ2857+SPEC}); - MESSAGE_IDS.put(CHKJ2858, new String[]{CHKJ2858+SPEC}); - MESSAGE_IDS.put(CHKJ2859, new String[]{CHKJ2859+SPEC}); - MESSAGE_IDS.put(CHKJ2860, new String[]{CHKJ2860+SPEC}); - MESSAGE_IDS.put(CHKJ2880, new String[]{"CHKJ2880.s"+SPEC, "CHKJ2880.b"+SPEC, "CHKJ2880.c"+SPEC}); // special case; need diff spec number for each type of bean //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MESSAGE_IDS.put(CHKJ2881, new String[]{"CHKJ2881.s"+SPEC, "CHKJ2881.b"+SPEC, "CHKJ2881.c"+SPEC}); // special case; need diff spec number for each type of bean //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MESSAGE_IDS.put(CHKJ2882, new String[]{"CHKJ2882.s"+SPEC, "CHKJ2882.b"+SPEC, "CHKJ2882.c"+SPEC}); // special case; need diff spec number for each type of bean //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MESSAGE_IDS.put(CHKJ2883, new String[]{"CHKJ2883.s"+SPEC, "CHKJ2883.b"+SPEC, "CHKJ2883.c"+SPEC}); // special case; need diff spec number for each type of bean //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MESSAGE_IDS.put(CHKJ2884, new String[]{"CHKJ2884.s"+SPEC, "CHKJ2884.b"+SPEC, "CHKJ2884.c"+SPEC}); // special case; need diff spec number for each type of bean //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MESSAGE_IDS.put(CHKJ2885, new String[]{"CHKJ2885.s"+SPEC, "CHKJ2885.b"+SPEC, "CHKJ2885.c"+SPEC}); // special case; need diff spec number for each type of bean //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public Object[] getDependsOn() { - // EJBJar doesn't depend on anything else - return DEPENDS_ON; - } - - public Object getId() { - return IValidationRuleList.EJB20_ENTERPRISEBEAN; - } - - public Map getMessageIds() { - return MESSAGE_IDS; - } - - public Object getTarget(Object parent, Object clazz) { - return parent; // The parent will be an EnterpriseBean. - } - - /* - * @see IValidationRule#validate(IEJBValidationContext, Object, Object) - */ - public void validate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - Logger logger = vc.getMsgLogger(); - if(logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("EnterpriseBean20VRule - validate"); //$NON-NLS-1$ - entry.setText(getClass().getName() + "::validate(" + targetParent + ", " + target); //$NON-NLS-1$ //$NON-NLS-2$ - logger.write(Level.FINEST, entry); - } - - EJBJar ejbJar = null; - if(targetParent instanceof EnterpriseBean) { - // running as a dependent - ejbJar = (EJBJar)vc.loadModel(EJBValidatorModelEnum.EJB_MODEL); - } - else { - ejbJar = (EJBJar)targetParent; - } - EnterpriseBean bean = (EnterpriseBean)target; - - validate(vc, ejbJar, bean); - } - - - public void validate(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) throws ValidationCancelledException, ValidationException { - Logger logger = vc.getMsgLogger(); - try { - // Check if the bean parts are reflected. Some rules can be validated - // whether or not the bean is reflected. - boolean reflected = validateBeanComponentsReflected(vc, ejbJar, bean); - - // These rules can be validated whether or not the bean is reflected. - validateEJBNameElement(vc, ejbJar, bean); - validateReentrantElement(vc, ejbJar, bean); - validateSessionTypeElement(vc, ejbJar, bean); - validateTransactionTypeElement(vc, ejbJar, bean); - validatePersistenceTypeElement(vc, ejbJar, bean); - validateEnvironmentEntries(vc, ejbJar, bean); - - // The rest of the rules cannot be validated because the bean isn't reflected. - if (!reflected) { - return; - } - - validateLocalPairs(vc, ejbJar, bean); - validateRemotePairs(vc, ejbJar, bean); - validateLocalOrRemote(vc, ejbJar, bean); - - if (bean.isContainerManagedEntity()) { - ContainerManagedEntity cmp = (ContainerManagedEntity) bean; - if((cmp.getPrimKeyField() != null) && !cmp.getPrimKeyField().eIsProxy()) { - // Don't validate the fields if it's neither a primitive primary key nor a compound primary key. - // If the user was attempting a primitive primary key, but did a typo in ejb-jar.xml, - // the user will see a lot of strange messages logged against the fields in the primitive primary key. - validateCMPFieldElement(vc, ejbJar, cmp); - } - validateAbstractSchemaNameElement(vc, ejbJar, cmp); - validateJavaIdentifier(vc, ejbJar, cmp); - } - if(bean.isMessageDriven() && bean.getVersionID() == J2EEVersionConstants.EJB_2_1_ID) { - validateActivationConfiguration(vc, (MessageDriven)bean); - } - validatePrimKeyClassElement(vc, ejbJar, bean); - validateEJBRef(vc, ejbJar, bean); - } - catch(ValidationCancelledException e) { - throw e; - } - catch (Throwable exc) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2852, IEJBValidationContext.WARNING, bean, new String[]{J2EEConstants.EJBJAR_DD_SHORT_NAME, bean.getName()}, this); - vc.addMessage(message); - if (logger != null && logger.isLoggingLevel(Level.SEVERE)) { - logger.write(Level.SEVERE, exc); - } - } - } - - /** - * If the bean components (home interface, remote interface, bean class, and primary - * key) can all be found and reflected, return true. Let the DDValidator - * report the error message against the bean if one of these types doesn't reflect. - */ - public boolean validateBeanComponentsReflected(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - // Don't need to check if the bean is null, because this method will - // not be called if it is. - boolean isValid = true; - try { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getEjbClass()); - } - catch (InvalidInputException exc) { - IMessage message = null; - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_EjbClass())) { - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2802_NAMED, IEJBValidationContext.ERROR, bean, new String[]{bean.getEjbClassName()}, this); - } - else { - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2802_UNNAMED, IEJBValidationContext.ERROR, bean, this); - } - vc.addMessage(message); - isValid = false; - } - - if(bean instanceof MessageDriven) { - // don't need to check the rest - return isValid; - } - - try { - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_HomeInterface())) { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getHomeInterface()); - } - } - catch (InvalidInputException exc) { - IMessage message = null; - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_HomeInterface())) { - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2803_NAMED, IEJBValidationContext.ERROR, bean, new String[]{bean.getHomeInterfaceName()}, this); - } - else { - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2803_UNNAMED, IEJBValidationContext.ERROR, bean, this); - } - vc.addMessage(message); - isValid = false; - } - - try { - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_RemoteInterface())) { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getRemoteInterface()); - } - } - catch (InvalidInputException exc) { - IMessage message = null; - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_RemoteInterface())) { - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2804_NAMED, IEJBValidationContext.ERROR, bean, new String[]{bean.getRemoteInterfaceName()}, this); - } - else { - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2804_UNNAMED, IEJBValidationContext.ERROR, bean, this); - } - vc.addMessage(message); - isValid = false; - } - - try { - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_LocalHomeInterface())) { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getLocalHomeInterface()); - } - } - catch (InvalidInputException exc) { - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_LocalHomeInterface())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2805_NAMED, IEJBValidationContext.ERROR, bean, new String[]{bean.getLocalHomeInterfaceName()}, this); - vc.addMessage(message); - isValid = false; - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2805_UNNAMED, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - isValid = false; - } - } - - try { - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_LocalInterface())) { - ValidationRuleUtility.isValidTypeHierarchy(bean, bean.getLocalInterface()); - } - } - catch (InvalidInputException exc) { - IMessage message = null; - if(bean.eIsSet(EjbPackage.eINSTANCE.getEnterpriseBean_LocalInterface())) { - message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2800_NAMED, IEJBValidationContext.ERROR, bean, new String[]{bean.getLocalInterfaceName()}, this); - } - else { - message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2800_UNNAMED, IEJBValidationContext.ERROR, bean, this); - } - vc.addMessage(message); - isValid = false; - } - - if (bean.isEntity()) { - JavaClass primaryKey = ((Entity) bean).getPrimaryKey(); - try { - ValidationRuleUtility.isValidTypeHierarchy(bean, primaryKey); - } - catch (InvalidInputException exc) { - IMessage message = null; - if(((Entity)bean).eIsSet(EjbPackage.eINSTANCE.getEntity_PrimaryKey())) { - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2810_NAMED, IEJBValidationContext.ERROR, bean, new String[]{((Entity)bean).getPrimaryKeyName()}, this); - } - else { - message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2810_UNNAMED, IEJBValidationContext.ERROR, bean, this); - } - vc.addMessage(message); - isValid = false; - } - } - - return isValid; - } - - public void validateCMPFieldElement(IEJBValidationContext vc, EJBJar ejbJar, ContainerManagedEntity cmp) { - // check syntax of tag is okay - List fields = cmp.getPersistentAttributes(); - if ((fields == null) || (fields.size() == 0)) { - // unlike EJB 1.1 CMPs, this is legal. - return; - } - - boolean mapsToMultipleFields = !ValidationRuleUtility.isPrimitivePrimaryKey(cmp); - Iterator iterator = fields.iterator(); -// Field field = null; - List fieldNames = new ArrayList(fields.size()); - while (iterator.hasNext()) { - CMPAttribute attrib = (CMPAttribute) iterator.next(); - if (attrib == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("DDValidator.validateCMPFieldElement(EnterpriseBean)"); //$NON-NLS-1$ - entry.setText("CMPAttribute is null."); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - continue; - } - - fieldNames.add(attrib.getName()); - - JavaHelpers fieldType = attrib.getType(); - try { - // If the field is not a valid type - ValidationRuleUtility.isValidType(fieldType); - } - catch (InvalidInputException exc) { - // field not identified - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2830, IEJBValidationContext.WARNING, cmp, new String[] { attrib.getName()}, this); - vc.addMessage(message); - continue; // if you can't reflect it, then you can't validate it - } - - try { - if(!fieldType.isPrimitive() && - !ValidationRuleUtility.isSerializable(fieldType, cmp)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2855, IEJBValidationContext.INFO, cmp, new String[] { attrib.getName()}, this); - vc.addMessage(message); - } - } - catch(InvalidInputException e) { - String[] msgParm = (e.getJavaClass() == null) ? new String[]{} : new String[]{e.getJavaClass().getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2907, IEJBValidationContext.WARNING, cmp, msgParm, this); - vc.addMessage(message); - } - } - - // 9.4.7.2 - if (mapsToMultipleFields && !ValidationRuleUtility.usesUnknownPrimaryKey(cmp)) { - List primKeyFields = cmp.getPrimaryKey().getFieldsExtended(); - - // (9.4.7.1 is validated in validatePrimKeyClassElement(bean) - // check if the primary key class' fields exist in the container-managed fields - iterator = primKeyFields.iterator(); - - while (iterator.hasNext()) { - Field keyField = (Field) iterator.next(); - if ((keyField.getName() != null) && (keyField.getName().equals(IMethodAndFieldConstants.FIELDNAME_SERIALVERSIONUID))) { - // not a customer-entered field - continue; - } - - if (!fieldNames.contains(keyField.getName())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2831, IEJBValidationContext.WARNING, cmp, new String[] { keyField.getName()}, this); - vc.addMessage(message); - } - } - } - } - - public void validateCMRFieldElement(IEJBValidationContext vc, EJBJar ejbJar, ContainerManagedEntity cmp) { - if (cmp == null) - return; - switch(cmp.getVersionID()) { - case J2EEVersionConstants.EJB_1_0_ID: - case J2EEVersionConstants.EJB_1_1_ID: - break; - case J2EEVersionConstants.EJB_2_0_ID: - case J2EEVersionConstants.EJB_2_1_ID: default: - List fields = cmp.getCMRFields(); - Iterator iterator = fields.iterator(); - while(iterator.hasNext()) { - CMRField field = (CMRField)iterator.next(); - String fieldName = field.getName(); - if((fieldName == null) || (fieldName.equals(""))) { //$NON-NLS-1$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2857, IEJBValidationContext.INFO, cmp, new String[] { field.getName()}, this); - vc.addMessage(message); - continue; // don't look for the get methods - } - if(!ValidationRuleUtility.isValidJavaIdentifier(fieldName)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2857, IEJBValidationContext.INFO, cmp, new String[] { field.getName()}, this); - vc.addMessage(message); - } - - try { - JavaHelpers fieldType = field.getType(); - if(!ValidationRuleUtility.isAssignableFrom(fieldType, cmp.getLocalInterface()) && - !ValidationRuleUtility.isAssignableFromCollection(fieldType, cmp) && - !ValidationRuleUtility.isAssignableFromSet(fieldType, cmp)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2856, IEJBValidationContext.INFO, cmp, new String[] { field.getName()}, this); - vc.addMessage(message); - } - } - catch(InvalidInputException e) { - String[] msgParm = (e.getJavaClass() == null) ? new String[]{} : new String[]{e.getJavaClass().getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2907, IEJBValidationContext.WARNING, cmp, msgParm, this); - vc.addMessage(message); - } - } - break; - } - } - - public void validateEJBNameElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean == null) { - return; - } - - String name = bean.getName(); - if ((name == null) || (name.equals(""))) { //$NON-NLS-1$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2801, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - - if(bean.isContainerManagedEntity() && bean.getVersionID() >= J2EEVersionConstants.EJB_2_0_ID) { - if(!ValidationRuleUtility.isValidJavaIdentifier(name)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2813, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - - // p. 466 - // "The name for an entity bean with cmp-version 2.x must conform - // to the lexical rules for an NMTOKEN. The name for an entity bean with - // cmp-version 2.x must not be a reserved literal in EJB QL. - if(ValidationRuleUtility.isReservedWord(name)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2859, IEJBValidationContext.INFO, bean, this); - vc.addMessage(message); - } - } - } - - public void validateAbstractSchemaNameElement(IEJBValidationContext vc, EJBJar ejbJar, ContainerManagedEntity cmp) { - if (cmp == null) - return; - switch(cmp.getVersionID()) { - case J2EEVersionConstants.EJB_1_0_ID: - case J2EEVersionConstants.EJB_1_1_ID: - break; - case J2EEVersionConstants.EJB_2_0_ID: - case J2EEVersionConstants.EJB_2_1_ID: default: - - String name = cmp.getAbstractSchemaName(); - if(!ValidationRuleUtility.isValidJavaIdentifier(name)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2858, IEJBValidationContext.WARNING, cmp, this); - vc.addMessage(message); - } - - // Check that the name is not a reserved word - if(ValidationRuleUtility.isReservedWord(name)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2860, IEJBValidationContext.INFO, cmp, this); - vc.addMessage(message); - } - break; - } - } - - public void validateJavaIdentifier(IEJBValidationContext vc, EJBJar ejbJar, ContainerManagedEntity cmp) { - /* - * Don't duplicate the EJB QL validator's function. - List queries = cmp.getQueries(); - Iterator iterator = queries.iterator(); - Query query = (Query)iterator.next(); - */ - } - - - /** - * Validate section 14.3 of the EJB 1.1 specification. - * - * 14.3 EJB References - * 14.3.1 Bean Provider's responsibilities - * 14.3.1.1 EJB reference programming interfaces - * 14.3.1.2 Declaration of EJB references in deployment descriptor - * 14.3.2 Application Assembler's responsibilities - * 14.3.3 Deployer's responsibility - * 14.3.4 Container Provider's responsibility - */ - public void validateEJBRef(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean == null) { - return; - } - - List ejbRefs = bean.getEjbRefs(); - if ((ejbRefs == null) || (ejbRefs.size() == 0)) { - return; - } - - Iterator iterator = ejbRefs.iterator(); - EjbRef ref = null; - while (iterator.hasNext()) { - ref = (EjbRef) iterator.next(); - if (ref == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("DDValidator.validateEJBRef(EnterpriseBean)"); //$NON-NLS-1$ - entry.setText("EjbRef is null in " + bean.getName()); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - continue; - } - // 14.3.1.1 - // Info mssg. "EJB spec recommends that all references to other enterprise beans be organized in the ejb subcontext of the bean's environment" - EnterpriseBean namedEjb = null; - if (ref.eIsSet(CommonPackage.eINSTANCE.getEjbRef_Link())) { - // Load the EJB identified by the reference, if it exists. - namedEjb = ejbJar.getEnterpiseBeanFromRef(ref); - if (namedEjb != null) { - // if the named EJB is null it could be in another EJBJar - Integer ejbType = new Integer(ref.getType().getValue()); - boolean wrongType = false; // is the EJB, identified by ejb-link, of the type specified in the ejb-ref-type element? - String type = (namedEjb instanceof Session) ? "Session" : "Entity"; //$NON-NLS-1$ //$NON-NLS-2$ - if (ejbType == null) { - // Neither session nor entity? - wrongType = true; - } - else if (ejbType.intValue() == EjbRefType.SESSION) { - if (!(namedEjb instanceof Session)) { - wrongType = true; - } - } - else if (ejbType.intValue() == EjbRefType.ENTITY) { - if (!(namedEjb instanceof Entity)) { - wrongType = true; - } - } - else { - wrongType = true; - } - if (wrongType) { - String[] parms = { namedEjb.getName(), type }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2835, IEJBValidationContext.INFO, bean, parms, this); - vc.addMessage(message); - } - } - } - - // 14.3.1.2, 14.3.2, 14.3.4 - // Check that ejb-ref-name, ejb-ref-type, home, and remote have been defined, and exist - validateHomeRef(vc, ejbJar, ref, namedEjb); - validateRemoteRef(vc, ejbJar, ref, namedEjb); - - // 14.3.1.1 - // Info mssg. "EJB spec recommends that all references to other enterprise beans be organized in the ejb subcontext of the bean's environment" - if (ref.eIsSet(CommonPackage.eINSTANCE.getEjbRef_Name())) { - // If ejb name isn't set, that error would have been caught by one of the validateRef methods - // Don't duplicate that effort here. - String ejbName = ref.getName(); - if (!ejbName.startsWith("ejb/")) { //$NON-NLS-1$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2838, IEJBValidationContext.INFO, bean, this); - vc.addMessage(message); - } - } - } - } - - /** - * Validate section 14.3 of the EJB 1.1 specification. - * - * 14.2.1.2 Declaration of environment entries - */ - public void validateEnvironmentEntries(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean == null) { - return; - } - - List envEntries = bean.getEnvironmentProperties(); - if ((envEntries == null) || (envEntries.size() == 0)) { - return; - } - - EnvEntry envEntry = null; - Iterator iterator = envEntries.iterator(); - DuplicatesTable envNames = new DuplicatesTable(); - while (iterator.hasNext()) { - envEntry = (EnvEntry) iterator.next(); - if (envEntry == null) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = vc.getLogEntry(); - entry.setSourceID("DDValidator.validateEnvironmentEntries(EnterpriseBean)"); //$NON-NLS-1$ - entry.setText("EjbEntry is null in " + bean.getName()); //$NON-NLS-1$ - logger.write(Level.FINEST, entry); - } - continue; - } - - if (envEntry.getName() != null) { - envNames.add(envEntry.getName()); - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2839, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - - if (envEntry.isSetType()) { - // 14.2.1.2; type must be one of these types: String, Integer, Boolean, Double, Byte, Short, Long, and Float. - int type = envEntry.getType().getValue(); - if (!((type == EnvEntryType.BOOLEAN) || (type == EnvEntryType.BYTE) || (type == EnvEntryType.DOUBLE) || (type == EnvEntryType.FLOAT) || (type == EnvEntryType.INTEGER) || (type == EnvEntryType.LONG) || (type == EnvEntryType.SHORT) || (type == EnvEntryType.STRING) || (type == EnvEntryType.CHARACTER))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2840, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - } - else { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2840, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - } - - if (envNames.containsDuplicates()) { - Iterator dups = envNames.getDuplicates().iterator(); - while (dups.hasNext()) { - String name = (String) dups.next(); - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2841, IEJBValidationContext.WARNING, bean, new String[] { name }, this); - vc.addMessage(message); - } - } - } - - /** - * If the metadata from the EjbRef is not valid, add a validation message. - * - * @parm EjbRef The <ejb-ref> element this method validates. - * @parm EnterpriseBean If the <ejb-ref> uses an <ejb-link>, this is the enterprise bean identified by that link. If the link doesn't exist, or if the user has identified a bean which doesn't exist, this parameter will be null. - */ - protected void validateHomeRef(IEJBValidationContext vc, EJBJar ejbJar, EjbRef ref, EnterpriseBean namedEjb) { - boolean validType = true; - EnterpriseBean bean = (EnterpriseBean)ref.eContainer(); - if (ref.eIsSet(CommonPackage.eINSTANCE.getEjbRef_Home())) { - try { - String homeName = ref.getHome(); - JavaHelpers type = ValidationRuleUtility.getType(homeName, bean); - // Check that the home specified in the <home> element of the <ejb-ref> element - // exists. - ValidationRuleUtility.isValidType(type); - - if (namedEjb != null) { - // Check that the home specified in the <home> element - // is assignable to the home used by the named EJB in the - // <ejb-link> element. - JavaClass intfType = namedEjb.getHomeInterface(); - ValidationRuleUtility.isValidType(intfType); - - // Make sure that the identified home/remote interface in the ejb-ref - // is of the same type as the one used by the bean. - if (!ValidationRuleUtility.isAssignableFrom(type, intfType)) { - String[] parms = { namedEjb.getName(), intfType.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2836, IEJBValidationContext.INFO, bean, parms, this); - vc.addMessage(message); - } - } - } - catch (InvalidInputException exc) { - validType = false; - } - } - else { - validType = false; - } - - if (!validType) { - String[] parms = { ref.getHome()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2832, IEJBValidationContext.INFO, bean, parms, this); - vc.addMessage(message); - } - } - - /** - * If the bean provides a local view, both parts of the view must exist. - * If this method is being called, then all parts of the bean are reflected. - */ - protected void validateLocalPairs(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if(bean instanceof MessageDriven) { - // Message driven beans don't use local or remote views - return; - } - - JavaClass local = bean.getLocalInterface(); - JavaClass localHome = bean.getLocalHomeInterface(); - if((local != null ) && (localHome == null)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2880, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - else if((local == null) && (localHome != null)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2882, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - // otherwise either both are set or both are unset, and that's fine. - } - - /** - * If the bean provides a remote view, both parts of the view must exist. - * If this method is being called, then all parts of the bean are reflected. - */ - protected void validateRemotePairs(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if(bean instanceof MessageDriven) { - // Message driven beans don't use local or remote views - return; - } - - JavaClass remote = bean.getRemoteInterface(); - JavaClass home = bean.getHomeInterface(); - if((remote != null) && (home == null)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2881, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - else if((remote == null) && (home != null)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2883, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - // otherwise either both are set or both are unset, and that's fine. - } - - /** - * The bean must provide either a local view, or a remote view, or both. - */ - protected void validateLocalOrRemote(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if(bean instanceof MessageDriven) { - // Message driven beans don't use local or remote views - return; - } - - JavaClass local = bean.getLocalInterface(); - JavaClass localHome = bean.getLocalHomeInterface(); - JavaClass remote = bean.getRemoteInterface(); - JavaClass remoteHome = bean.getHomeInterface(); - - if((localHome == null) && (remoteHome == null)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2884, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - - if((local == null) && (remote == null)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2885, IEJBValidationContext.WARNING, bean, this); - vc.addMessage(message); - } - } - - public void validatePersistenceTypeElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - // Attempt in vain to validate the persistence type element here, because - // if it's not specified, there's a syntax error, and the - // validateDeploymentDescriptor(IReporter, IValidationContext) would have been - // called instead. - if (bean.isEntity()) { - // check syntax - Entity entityBean = (Entity) bean; - if (!(entityBean.isContainerManagedEntity() || entityBean.isBeanManagedEntity())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2809, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - } - } - - /** - * If the primary key class reflected properly, return true. Else, return false. - */ - public void validatePrimKeyClassElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean.isEntity()) { - // check syntax - if (bean instanceof ContainerManagedEntity) { - ContainerManagedEntity cmp = (ContainerManagedEntity) bean; - CMPAttribute attr = cmp.getPrimKeyField(); - if((attr != null) && !attr.eIsProxy() && !isValidPrimKeyField(cmp,attr)) { - // 9.4.7.1 - // user has specified both a prim-key-class and a primkey-field - // can't use the CMPAttribute's field's name, because the primitive primary key returned is null - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2828, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - } - } - } - - /** - * If the prim key is specified in the xml, answer whether it is the same as the derived primaryKeyAttribute - */ - public boolean isValidPrimKeyField(ContainerManagedEntity cmp, CMPAttribute attr) { - return cmp.getPrimaryKeyName().equals(attr.getType().getJavaName()); - } - - public void validateReentrantElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean.isEntity()) { - // check syntax - Entity entity = (Entity) bean; - if (!entity.eIsSet(EjbPackage.eINSTANCE.getEntity_Reentrant())) { - // Can only test if the reentrant attribute is set, because the model defaults it - // to some boolean value if it isn't set. - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2806, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - } - } - - /** - * If the metadata from the EjbRef is not valid, add a validation message. - * - * @parm EjbRef The ref whose home this method checks. - * @parm EnterpriseBean If the EjbRef uses an <ejb-link> element, this is the enterprise bean identified by that element. It may be null, if the user has made a mistake. - */ - protected void validateRemoteRef(IEJBValidationContext vc, EJBJar ejbJar, EjbRef ref, EnterpriseBean namedEjb) { - boolean validType = true; - EnterpriseBean bean = (EnterpriseBean)ref.eContainer(); - if (ref.eIsSet(CommonPackage.eINSTANCE.getEjbRef_Remote())) { - try { - String remoteName = ref.getRemote(); - JavaHelpers type = ValidationRuleUtility.getType(remoteName, bean); - // Check that the home specified in the <home> element of the <ejb-ref> element - // exists. - ValidationRuleUtility.isValidType(type); - - if (namedEjb != null) { - // Check that the home specified in the <home> element - // is assignable to the home used by the named EJB in the - // <ejb-link> element. - JavaClass intfType = namedEjb.getRemoteInterface(); - ValidationRuleUtility.isValidType(intfType); - - // Make sure that the identified home/remote interface in the ejb-ref - // is of the same type as the one used by the bean. - if (!ValidationRuleUtility.isAssignableFrom(type, intfType)) { - String[] parms = { namedEjb.getName(), intfType.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2837, IEJBValidationContext.INFO, bean, parms, this); - vc.addMessage(message); - } - } - } - catch (InvalidInputException exc) { - validType = false; - } - } - else { - validType = false; - } - - if (!validType) { - String[] parms = { ref.getRemote()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2833, IEJBValidationContext.INFO, bean, parms, this); - vc.addMessage(message); - } - } - - /** - * 15.2.5.3 Declaration of security roles referenced from the bean's code - * The Bean Provider is responsible for declaring in the security-role-ref - * elements of the deployment descriptor all the security role names used - * in the enterprise bean code. Declaring the security roles references in - * the code allows the Application Assembler or Deployer to link the names - * of the security roles used in the code to the security roles defined for - * an assembled application through the security-role elements. - * The Bean Provider must declare each security role referenced in the code - * using the security-role-ref element as follows: - * Declare the name of the security role using the role-name element. - * The name must be the security role name that is used as a parameter to - * the isCallerInRole(String role-Name) method. - * Optional: Provide a description of the security role in the - * description element. A security role reference, including the name defined - * by the role-name element, is scoped to the session or entity bean element - * whose declaration contains the security-role-ref element. The following - * example illustrates how an enterprise bean's references to security roles - * are declared in the deployment descriptor. - * ... - * <enterprise-beans> - * ... - * <entity> - * <ejb-name>AardvarkPayroll</ejb-name> - * <ejb-class>com.aardvark.payroll.PayrollBean</ejb-class> - * ... - * <security-role-ref> - * <description> - * This security role should be assigned to the - * employees of the payroll department who are - * allowed to update employees' salaries. - * </description> - * <role-name>payroll</role-name> - * </security-role-ref> - * ... - * </entity> - * ... - * </enterprise-beans> - * ... - * - * The deployment descriptor above indicates that the enterprise bean - * AardvarkPayroll makes the security check using isCallerInRole("payroll") - * in its business method. - * - * - * 15.3.3 Linking security role references to security roles - * If the Application Assembler defines the security-role elements in the - * deployment descriptor, he or she is also responsible for linking all the - * security role references declared in the security-role-ref elements to the - * security roles defined in the security-role elements. The Application - * Assembler links each security role reference to a security role using the - * role-link element. The value of the role-link element must be the name of - * one of the security roles defined in a security-role element. - * A role-link element must be used even if the value of role-name is the - * same as the value of the role-link reference. - * The following deployment descriptor example shows how to link the security - * role reference named payroll to the security role named payroll-department. - * ... - * <enterprise-beans> - * ... - * <entity> - * <ejb-name>AardvarkPayroll</ejb-name> - * <ejb-class>com.aardvark.payroll.PayrollBean</ejb-class> - * ... - * <security-role-ref> - * <description> - * This role should be assigned to the - * employees of the payroll department. - * Members of this role have access to - * anyone's payroll record. - * - * The role has been linked to the - * payroll-department role. - * </description> - * <role-name>payroll</role-name> - * <role-link>payroll-department</role-link> - * </security-role-ref> - * ... - * </entity> - * ... - * </enterprise-beans> - * ... - * - */ - public void validateSecurityRoleRefElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean == null) { - return; - } - - /** - * Need to build up a list of duplicate role names, but the validation message - * needs to be registered against the duplicate SecurityRoleRef instance. - * (Without the instance, we cannot get line numbers.) - * - * This class wrappers the SecurityRoleRef instance so that the wrapper's - * implemention of equals compares the names, but the validation message will - * still be able to get the ref from the duplicate name. - */ - class RoleRefWrapper { - private SecurityRoleRef _ref = null; - - public RoleRefWrapper(SecurityRoleRef ref) { - _ref = ref; - } - - public boolean equals(Object o) { - if (o instanceof RoleRefWrapper) { - RoleRefWrapper other = (RoleRefWrapper) o; - return _ref.getName().equals(other.getRoleRef().getName()); - } - return false; - } - - public SecurityRoleRef getRoleRef() { - return _ref; - } - } - - boolean areSRolesDefined = ((_securityRoles != null) && (_securityRoles.size() > 0)); - - List securityRoleRefs = bean.getSecurityRoleRefs(); - if ((securityRoleRefs != null) && (securityRoleRefs.size() != 0)) { - // Check that each security role ref refers to a security role, - // if security roles are defined in the assembly descriptor, - // and that each referenced security role exists. - DuplicatesTable roleRefNames = new DuplicatesTable(); - for (int i = 0; i < securityRoleRefs.size(); i++) { - SecurityRoleRef ref = (SecurityRoleRef) securityRoleRefs.get(i); - - // Check that the role name is set (15.2.5.3) - String roleName = ref.getName(); - if ((roleName == null) || (roleName.equals(""))) { //$NON-NLS-1$ - roleName = ""; //$NON-NLS-1$ - String beanName = (bean.getName() == null) ? "" : bean.getName(); //$NON-NLS-1$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2822, IEJBValidationContext.WARNING, ref, new String[] { beanName }, this); - vc.addMessage(message); - } - else { - // Build up the list of names, to check for duplicates - roleRefNames.add(new RoleRefWrapper(ref)); - } - - // Check that the role link is set (15.3.3) - String roleLink = ref.getLink(); - boolean isLinkDefined = ((ref.eIsSet(CommonPackage.eINSTANCE.getSecurityRoleRef_Link())) && (roleLink != null) && (!roleLink.equals(""))); //$NON-NLS-1$ - - if ((areSRolesDefined) && (!isLinkDefined)) { - // must have role link defined (15.3.3) - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2823, IEJBValidationContext.WARNING, ref, this); - vc.addMessage(message); - } - else if ((!areSRolesDefined) && (isLinkDefined)) { - // must not have role link defined (15.2.5.3) - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2827, IEJBValidationContext.WARNING, ref, this); - vc.addMessage(message); - } - else if (areSRolesDefined && isLinkDefined) { - // check that the role listed in the link exists. (15.3.3) - Iterator iterator = _securityRoles.iterator(); - boolean roleExists = false; - while(iterator.hasNext()) { - SecurityRole role = (SecurityRole)iterator.next(); - if(role.getRoleName().equals(roleLink)) { - roleExists = true; - break; - } - } - if (!roleExists) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2824, IEJBValidationContext.WARNING, ref, new String[] { roleName }, this); - vc.addMessage(message); - } - } - } - - // Check for duplicates - // Check that there are no duplicate role-names. (15.3.1) - if (roleRefNames.containsDuplicates()) { - List duplicates = roleRefNames.getDuplicates(); - Iterator iterator = duplicates.iterator(); - while (iterator.hasNext()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2820, IEJBValidationContext.WARNING, ((RoleRefWrapper) iterator.next()).getRoleRef(), this); - vc.addMessage(message); - } - } - roleRefNames.clear(); - } - } - - /** - * 6.5.3 The optional SessionSynchronization interface - *... - * Only a stateful Session bean with container-managed transaction demarcation may - * implement the SessionSynchronization interface. - *... - * There is no need for a Session bean with bean-managed transaction to rely on the - * synchronization call backs because the bean is in control of the commit the bean - * knows when the transaction is about to be committed and it knows the outcome of the - * transaction commit. - *... - */ - public void validateSessionTypeElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean.isSession()) { - Session session = (Session) bean; - - // check syntax - boolean isValidSess = ValidationRuleUtility.isValidSessionTypeElement(session); - if (!isValidSess) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2807, IEJBValidationContext.ERROR, session, this); - vc.addMessage(message); - } - - } - } - public void validateTransactionTypeElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { - if (bean.isSession()) { - // check syntax - Session sessionBean = (Session) bean; - if (!ValidationRuleUtility.isValidTransactionTypeElement(sessionBean)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2808, IEJBValidationContext.ERROR, bean, this); - vc.addMessage(message); - } - } - } - - /* - * @see IValidationRule#reset() - */ - public void reset() { - super.reset(); - _securityRoles = null; - } - - /* - * @see IValidationRule#preValidate(IEJBValidationContext, Object, Object) - */ - public void preValidate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - super.preValidate(vc, targetParent, target); - - EJBJar ejbJar = (EJBJar)vc.loadModel(EJBValidatorModelEnum.EJB_MODEL); - if(ejbJar == null) { - return; - } - - if(ejbJar.getAssemblyDescriptor() == null) { - return; - } - _securityRoles = ejbJar.getAssemblyDescriptor().getSecurityRoles(); - } - - /** - * Need to build up a list of duplicate EJB names, but the validation message - * needs to be registered against the duplicate EnterpriseBean instance. - * (Without the instance, we cannot get line numbers.) - * - * This class wrappers the EnterpriseBean instance so that the wrapper's - * implemention of equals compares the names, but the validation message will - * still be able to get the ref from the duplicate name. - */ - class EjbNameWrapper { - private EnterpriseBean _bean = null; - - public EjbNameWrapper(EnterpriseBean bean) { - _bean = bean; - } - - public boolean equals(Object o) { - if (o instanceof EnterpriseBean) { - EnterpriseBean other = (EnterpriseBean) o; - return _bean.getName().equals(other.getName()); - } - return false; - } - - public EnterpriseBean getBean() { - return _bean; - } - } - - class ASNameWrapper { - private ContainerManagedEntity _bean = null; - - public ASNameWrapper(ContainerManagedEntity bean) { - _bean = bean; - } - - public boolean equals(Object o) { - if (o instanceof ContainerManagedEntity) { - ContainerManagedEntity other = (ContainerManagedEntity) o; - return _bean.getAbstractSchemaName().equals(other.getAbstractSchemaName()); - } - return false; - } - - public EnterpriseBean getBean() { - return _bean; - } - } - /** - * @param driven - */ - private void validateActivationConfiguration(IEJBValidationContext vc, MessageDriven bean) { - ActivationConfig config = bean.getActivationConfig(); - if(config != null) { - List configProperties = config.getConfigProperties(); - if(configProperties != null && !configProperties.isEmpty()) { - HashSet namePropertySet = new HashSet(); - for(int i = 0; i < configProperties.size(); i++) { - ActivationConfigProperty property = (ActivationConfigProperty)configProperties.get(i); - boolean doesNotExists = namePropertySet.add(property.getName()); - if(!doesNotExists) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2886, IMessage.HIGH_SEVERITY, bean, bean.getEjbJar(),new String[] {property.getName(),bean.getName()},this); - vc.addMessage(message); - } - if(isJMSMDB(bean)) { - validationAckModeActivationConfig(vc, bean, property); - validateDestinationTypeActivationConfig(vc, bean, property); - validateDurabilityActivationConfig(vc, bean, configProperties, property); - } - } - } - } - } - - private boolean isJMSMDB(MessageDriven bean) { - return bean.getMessagingType() == null || bean.getMessagingType().getQualifiedName().equals(JMS_MESSAGING_TYPE); - } - - private void validationAckModeActivationConfig(IEJBValidationContext vc, MessageDriven bean, ActivationConfigProperty property) { - if(property.getName().equals(MDBActivationConfigModelUtil.ackModeKey) && !Arrays.asList(MDBActivationConfigModelUtil.ackModeValues).contains(property.getValue())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2887, IMessage.HIGH_SEVERITY, bean, bean.getEjbJar(),new String[] {property.getName(),property.getValue(),bean.getName()},this); - vc.addMessage(message); - } - } - - /** - * @param vc - * @param bean - * @param property - */ - private void validateDestinationTypeActivationConfig(IEJBValidationContext vc, MessageDriven bean, ActivationConfigProperty property) { - if(property.getName().equals(MDBActivationConfigModelUtil.destinationTypeKey) && !Arrays.asList(MDBActivationConfigModelUtil.destinationTypeValues).contains(property.getValue())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2887, IMessage.HIGH_SEVERITY, bean, bean.getEjbJar(),new String[] {property.getName(),property.getValue(),bean.getName()},this); - vc.addMessage(message); - } - JavaClass messageDestination = bean.getMessageDestination(); - if(messageDestination != null && messageDestination.getQualifiedName() != null && (property.getName().equals(MDBActivationConfigModelUtil.destinationTypeKey) && !(messageDestination.getQualifiedName().equals(property.getValue())))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2890, IMessage.HIGH_SEVERITY, bean, bean.getEjbJar(),new String[] {messageDestination.getQualifiedName(),property.getValue(),bean.getName()},this); - vc.addMessage(message); - } - } - /** - * @param vc - * @param bean - * @param configProperties - * @param property - */ - private void validateDurabilityActivationConfig(IEJBValidationContext vc, MessageDriven bean, List configProperties, ActivationConfigProperty property) { - if(property.getName().equals(MDBActivationConfigModelUtil.durabilityKey) && !Arrays.asList(MDBActivationConfigModelUtil.durabilityValue).contains(property.getValue())) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2887, IMessage.HIGH_SEVERITY, bean, bean.getEjbJar(),new String[] {property.getName(),property.getValue(),bean.getName()},this); - vc.addMessage(message); - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IClassVRule.java deleted file mode 100644 index c1814237d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IClassVRule.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.List; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; - - -/** - * @version 1.0 - * @author - */ -public interface IClassVRule extends IValidationRule { - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException; - - // Because calling JavaClass::getMethodsExtended() is an expensive call, need to call it once - // per class instead of multiple times per class. However, each class in the bean needs different - // lists: - // 1. Key class needs no lists. - // 2. Home interface (remote & local) needs the bean class' getMethodsExtended list. - // 3. Component interface (remote & local) needs the bean class' getMethodsExtended list. - // 4. Bean class needs the remote home, local home, remote component, and local component's getMethodsExtended list. - // Given that the lists are different depending on the class implementation, add a List[] as a final parameter, and each - // implementation can figure out what the List[] needs to be populated with, if anything. (i.e., the - // key class will probably pass in a null instead of an empty List.) - // - // Similar reasoning for the List[] of getFieldsExtended(). - public List[] getMethodsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException; - public List[] getFieldsExtended(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException; - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtended) throws ValidationCancelledException, InvalidInputException, ValidationException; - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, List[] fieldsExtended) throws ValidationCancelledException, InvalidInputException, ValidationException; - - public void register(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtended) throws ValidationCancelledException, InvalidInputException, ValidationException; - public void register(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field, List[] fieldsExtended) throws ValidationCancelledException, InvalidInputException, ValidationException; -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IComponentType.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IComponentType.java deleted file mode 100644 index aed0fb8d8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IComponentType.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - -/** - * @version 1.0 - * @author - */ -public interface IComponentType extends IEJBInterfaceType { - public JavaClass getHomeInterface(EnterpriseBean bean); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBInterfaceType.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBInterfaceType.java deleted file mode 100644 index ee43c0f77..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBInterfaceType.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.List; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - -/** - * @version 1.0 - * @author - */ -public interface IEJBInterfaceType extends IEJBType { - public boolean isEJBInterfaceMethod(EnterpriseBean bean, Method method) throws InvalidInputException, ValidationCancelledException; - public JavaHelpers getOverExposedLocalType(EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException, ValidationCancelledException; - public void validateApplicationExceptionRules(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException, ValidationCancelledException; - public void validateRMI_IIOPTypeRules(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists, boolean checkReturnType) throws InvalidInputException, ValidationCancelledException; - public boolean followRemoteExceptionRules(EnterpriseBean bean, Method method) throws InvalidInputException, ValidationCancelledException; - public boolean followRMI_IIOPInheritanceRules(EnterpriseBean bean, JavaClass clazz) throws InvalidInputException, ValidationCancelledException; -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBType.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBType.java deleted file mode 100644 index e7dd49300..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBType.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - - -/** - * @version 1.0 - * @author - */ -public interface IEJBType extends ITypeConstants, IMethodAndFieldConstants { - public static int REMOTE = 0x1; - public static int LOCAL = 0x2; - public static int NEITHER = 0x4; - - public long[] getSupertypes(); - public long[] getShouldNotBeSupertypes(); - - /** - * If the name of the method does not match one of the method names which this - * rule validates, what type should the method be considered? (e.g. home or business). - */ - public long getDefaultMethodType(); - public long[] getKnownMethodTypes(); - - public long[] getMethodsWhichMustExist(); - public long[] getMethodsWhichMustNotExist(); - - public int isRemote(); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBValidationContext.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBValidationContext.java deleted file mode 100644 index a56d66f59..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBValidationContext.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; -import org.eclipse.wst.validation.internal.provisional.core.IValidationContext; -import org.eclipse.wst.validation.internal.provisional.core.IValidator; - -public interface IEJBValidationContext extends IValidationContext { - public static final int ERROR = IMessage.HIGH_SEVERITY; - public static final int WARNING = IMessage.NORMAL_SEVERITY; - public static final int INFO = IMessage.LOW_SEVERITY; - - - public IValidator getValidator(); - public IValidationContext getHelper(); - public IReporter getReporter(); - - public IMessage getMessage(); // returns an empty IMessage which can be reused - public Logger getMsgLogger(); - - public void terminateIfCancelled() throws ValidationCancelledException; - - public LogEntry getLogEntry(); - - public Object loadModel(String symbolicName); - public Object loadModel(String symbolicName, Object[] parms); - - public void removeAllMessages(); - public void removeMessages(Object target); - public void removeMessages(Object target, String groupIdentifier); - - public void addMessage(IMessage message); - public void addMessage(int severity, String messageId); - public void addMessage(int severity, String messageId, String[] parms); - public void addMessage(int severity, String messageId, Object target); - public void addMessage(int severity, String messageId, String[] parms, Object target); - public void addMessage(int severity, String messageId, Object target, String groupName); - public void addMessage(int severity, String messageId, String[] parms, Object target, String groupName); - - public void subtask(String messageId); - public void subtask(String messageId, String[] parms); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBValidatorConstants.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBValidatorConstants.java deleted file mode 100644 index 90f88fd76..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBValidatorConstants.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -public interface IEJBValidatorConstants { - // Name of .properties file - public static final String BUNDLE_NAME = "ejbvalidator"; //$NON-NLS-1$ - - // Name of logger - public static final String LOGNAME = "EJBValidatorLog"; //$NON-NLS-1$ - - // Status constants which do not require a message prefix (e.g. ABCD0000E) - public static final String STATUS_VALIDATING = "STATUS_VALIDATING"; //$NON-NLS-1$ - - public static final String NULL_PRIMARY_KEY = "<primary-key>"; // when a key class name needs to be displayed, but that class is null, display this instead //$NON-NLS-1$ - public static final String NULL_BEAN_CLASS = "<ejb-class>"; // when a bean class name needs to be displayed, but that class is null, display this instead //$NON-NLS-1$ - public static final String NULL_LOCAL_HOME = "<local-home>"; // when a local-home class name needs to be displayed, but that class is null, display this instead //$NON-NLS-1$ - public static final String NULL_LOCAL = "<local>"; // when a local class name needs to be displayed, but that class is null, display this instead //$NON-NLS-1$ - public static final String NULL_HOME = "<home>"; // when a home class name needs to be displayed, but that class is null, display this instead //$NON-NLS-1$ - public static final String NULL_REMOTE = "<remote>"; // when a remote class name needs to be displayed, but that class is null, display this instead //$NON-NLS-1$ - - // We use a string here because this interface is shipped with WAS, but - // J2EECorePlugin is not. Therefore having the J2EECorePlugin.PLUGIN_ID - // dependency works fine in the tooling env, but will result in NoClassDefFound in WAS - public static final String J2EE_CORE_PLUGIN = "org.eclipse.jst.j2ee.internal.core"; // $NON-NLS-1$ //$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBValidatorMessageConstants.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBValidatorMessageConstants.java deleted file mode 100644 index 2cdedbab8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IEJBValidatorMessageConstants.java +++ /dev/null @@ -1,114 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -/** - * This interface holds the message constants that are common across - * specifications. (e.g. internal error messages, checks that are the same.) - */ -public interface IEJBValidatorMessageConstants { - // Constants used in message ids - static final String ON_BASE = ".i"; // String to be registered against a base type, not the JavaClass being validated. (Inherited method.) //$NON-NLS-1$ - static final String ON_THIS = ".m"; // String to be registered against the JavaClass being validated. (Method impl on JavaClass itself.) //$NON-NLS-1$ - - // Internal errors and such - static final String CHKJ2041 = "CHKJ2041"; // unnamed package (Java Language Specification) //$NON-NLS-1$ - static final String CHKJ2433 = "CHKJ2433"; // cannot reflect //$NON-NLS-1$ - static final String CHKJ2456 = "CHKJ2456"; // Should throw X or there may be compile errors in the deploy code. //$NON-NLS-1$ - static final String CHKJ2852 = "CHKJ2852"; // Throwable caught while validating ejb-jar.xml //$NON-NLS-1$ - static final String CHKJ2900 = "CHKJ2900"; // Internal error while running EJB validator //$NON-NLS-1$ - static final String CHKJ2905 = "CHKJ2905"; // EJB Validator could not run because ejb-jar.xml could not be loaded. //$NON-NLS-1$ - static final String CHKJ2907 = "CHKJ2907"; // Type X, or one of its supertypes, cannot be reflected. Check the classpath. //$NON-NLS-1$ - - // Specification rules - static final String CHKJ2003E = "CHKJ2003E"; // implement javax.ejb.SessionSynchronization (can be error or info depending on context) //$NON-NLS-1$ - static final String CHKJ2003I = "CHKJ2003I"; // implement javax.ejb.SessionSynchronization (can be error or info depending on context) //$NON-NLS-1$ - - static final String CHKJ2014 = "CHKJ2014"; // class must be, or must not be, abstract //$NON-NLS-1$ - static final String CHKJ2015 = "CHKJ2015"; // class must be, or must not be, final //$NON-NLS-1$ - static final String CHKJ2017 = "CHKJ2017"; // class/interface must extend/implement X //$NON-NLS-1$ - static final String CHKJ2019 = "CHKJ2019"; // key class must be serializable/a legal value type in RMI-IIOP //$NON-NLS-1$ - - static final String CHKJ2022 = "CHKJ2022"; // class must be public //$NON-NLS-1$ - static final String CHKJ2023 = "CHKJ2023"; // a matching method (for this component method) must exist on the bean class //$NON-NLS-1$ - - static final String CHKJ2040 = "CHKJ2040"; // "this" must not be passed as a method argument or result //$NON-NLS-1$ - - static final String CHKJ2103 = "CHKJ2103"; // In component inheritance, the bean class must inherit X. //$NON-NLS-1$ - static final String CHKJ2104 = "CHKJ2104"; // In component inheritance, the home class must not inherit X. //$NON-NLS-1$ - static final String CHKJ2105 = "CHKJ2105"; // In component inheritance, the component interface must extend X. //$NON-NLS-1$ - static final String CHKJ2106 = "CHKJ2106"; // In component inheritance, the bean must use X as its primary key. //$NON-NLS-1$ - - static final String CHKJ2205 = "CHKJ2205"; // primary key field X must be public //$NON-NLS-1$ - static final String CHKJ2206 = "CHKJ2206"; // primary key field X must be a <cmp-field> (and in EJB 1.1, also a field of the bean class) //$NON-NLS-1$ - - static final String CHKJ2402 = "CHKJ2402"; // The create method must return the remote interface type //$NON-NLS-1$ - static final String CHKJ2403 = "CHKJ2403"; // The finder method must return X or a collection thereof. //$NON-NLS-1$ - static final String CHKJ2407 = "CHKJ2407"; // The ejbFind method must return X or a collection thereof. //$NON-NLS-1$ - - static final String CHKJ2411 = "CHKJ2411"; // The name of the method must not start with "ejb". //$NON-NLS-1$ - - static final String CHKJ2801 = "CHKJ2801"; // missing <ejb-name> //$NON-NLS-1$ - static final String CHKJ2802_NAMED = "CHKJ2802.named";// <ejb-class> cannot be reflected //$NON-NLS-1$ - static final String CHKJ2802_UNNAMED = "CHKJ2802.unnamed";// unknown <ejb-class> //$NON-NLS-1$ - static final String CHKJ2803_NAMED = "CHKJ2803.named";// <home> cannot be reflected //$NON-NLS-1$ - static final String CHKJ2803_UNNAMED = "CHKJ2803.unnamed";// unknown <home> //$NON-NLS-1$ - static final String CHKJ2804_NAMED = "CHKJ2804.named";// <remote> cannot be reflected //$NON-NLS-1$ - static final String CHKJ2804_UNNAMED = "CHKJ2804.unnamed";// unknown <remote> //$NON-NLS-1$ - static final String CHKJ2806 = "CHKJ2806";// <reentrant> must be either "True" or "False" //$NON-NLS-1$ - static final String CHKJ2807 = "CHKJ2807"; // <session-type> must be either "Stateful" or "Stateless" //$NON-NLS-1$ - static final String CHKJ2808 = "CHKJ2808"; // <transaction-type> must be either "Bean" or "Container" //$NON-NLS-1$ - static final String CHKJ2809 = "CHKJ2809"; // <persistence-type> must be either "Bean" or "Container" //$NON-NLS-1$ - - static final String CHKJ2810_NAMED = "CHKJ2810.named";// <prim-key-class> cannot be reflected //$NON-NLS-1$ - static final String CHKJ2810_UNNAMED = "CHKJ2810.unnamed";// unknown <prim-key-class> //$NON-NLS-1$ - static final String CHKJ2811_NAMED = "CHKJ2811.named";// <field-name> must exist on the bean class //$NON-NLS-1$ - static final String CHKJ2811_UNNAMED = "CHKJ2811.unnamed";// <field-name> must exist //$NON-NLS-1$ - static final String CHKJ2812 = "CHKJ2812"; // Bean class must specify at least one of its fields as a <cmp-field> //$NON-NLS-1$ - static final String CHKJ2814 = "CHKJ2814"; // <method>'s <ejb-name> should specify a known enterprise bean //$NON-NLS-1$ - - static final String CHKJ2820 = "CHKJ2820"; // <security-role-ref> must be unique. //$NON-NLS-1$ - static final String CHKJ2822 = "CHKJ2822"; // <security-role-ref> must define a <role-name> //$NON-NLS-1$ - static final String CHKJ2823 = "CHKJ2823"; // <security-role-ref> should define a <role-link> //$NON-NLS-1$ - static final String CHKJ2824 = "CHKJ2824"; // <security-role-ref> must identify a known <security-role> //$NON-NLS-1$ - static final String CHKJ2825 = "CHKJ2825"; // <security-role> should define the <role-name> element. //$NON-NLS-1$ - static final String CHKJ2826 = "CHKJ2826"; // <security-role> name should be unique. //$NON-NLS-1$ - static final String CHKJ2827 = "CHKJ2827"; // Cannot use a <role-link> without <security-role> elements. //$NON-NLS-1$ - static final String CHKJ2828 = "CHKJ2828"; // Cannot use a <primkey-field> element without a primitive primary key. //$NON-NLS-1$ - static final String CHKJ2829 = "CHKJ2829"; // Every field in the primary key must exist on the bean class. //$NON-NLS-1$ - - static final String CHKJ2830 = "CHKJ2830"; // The type of the field cannot be reflected. //$NON-NLS-1$ - static final String CHKJ2831 = "CHKJ2831"; // X must be declared as a <cmp-field> element. //$NON-NLS-1$ - static final String CHKJ2832 = "CHKJ2832"; // <ejb-ref>'s home cannot be found in the EJB module. //$NON-NLS-1$ - static final String CHKJ2833 = "CHKJ2833"; // <ejb-ref>'s remote cannot be found in the EJB module. //$NON-NLS-1$ - static final String CHKJ2834 = "CHKJ2834"; // <ejb-ref>'s bean cannot be found in the EJB module. //$NON-NLS-1$ - static final String CHKJ2835 = "CHKJ2835"; // Bean X is a Y type. Update the <ejb-ref-type> element. //$NON-NLS-1$ - static final String CHKJ2836 = "CHKJ2836"; // Bean X uses home Y. Update the <ejb-ref> element. //$NON-NLS-1$ - static final String CHKJ2837 = "CHKJ2837"; // Bean X uses remote Y. Update the <ejb-ref> element. //$NON-NLS-1$ - static final String CHKJ2838 = "CHKJ2838"; // It is recommended that all references to enterprise beans be organized in the "ejb" subcontext. //$NON-NLS-1$ - static final String CHKJ2839 = "CHKJ2839"; // <env-entry-name> of the <env-entry> element must exist. //$NON-NLS-1$ - - static final String CHKJ2840 = "CHKJ2840"; // <env-entry-type> of the <env-entry> element must exist. //$NON-NLS-1$ - static final String CHKJ2841 = "CHKJ2841"; // The X name, in the <env-entry> element, must be unique in the bean. //$NON-NLS-1$ - static final String CHKJ2842 = "CHKJ2842"; // <method-params> is ignored when <method-name> is "*" //$NON-NLS-1$ - static final String CHKJ2843 = "CHKJ2843"; // <method> X must exist on bean Y. //$NON-NLS-1$ - static final String CHKJ2844 = "CHKJ2844"; // At least one <method> should exist in a <method-permission>. //$NON-NLS-1$ - static final String CHKJ2845 = "CHKJ2845"; // At least one <role-name> should exist in a <method-permission>. //$NON-NLS-1$ - static final String CHKJ2846 = "CHKJ2846"; // No methods can be found for this <method-permission> //$NON-NLS-1$ - static final String CHKJ2847 = "CHKJ2847"; // No methods can be found for this <container-transaction> //$NON-NLS-1$ - static final String CHKJ2849 = "CHKJ2849"; // Cannot validate component inheritance of X because Y cannot be reflected. //$NON-NLS-1$ - - static final String CHKJ2875 = "CHKJ2875"; // EJB Client JAR must exist and be in the same EAR as this EJB JAR. //$NON-NLS-1$ - - static final String CHKJ2850 = "CHKJ2850"; // Cannot validate <method> because X, or one of its supertypes, cannot be reflected. //$NON-NLS-1$ - - static final String CHKJ2895 = "CHKJ2895"; // duplicate <ejb-name> //$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IFieldType.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IFieldType.java deleted file mode 100644 index c96f7013f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IFieldType.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - -public abstract interface IFieldType { - public static final String NO_MESSAGE_PREFIX = ""; // For the two getMessageId_X methods, if the method never requires that particular message, return this message prefix instead //$NON-NLS-1$ - - public long getId(); - - public boolean isFieldType(EnterpriseBean bean, JavaClass clazz, Field field); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IHomeType.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IHomeType.java deleted file mode 100644 index 4c6594295..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IHomeType.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - -/** - * @version 1.0 - * @author - */ -public interface IHomeType extends IEJBInterfaceType { - public JavaClass getComponentInterface(EnterpriseBean bean); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ILocalType.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ILocalType.java deleted file mode 100644 index afa0a0723..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ILocalType.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -/** - * @version 1.0 - * @author - */ -public interface ILocalType { - public int IS_REMOTE = IEJBType.LOCAL; - public int MESSAGE_REMOTE_EXCEPTION_SEVERITY = IEJBValidationContext.WARNING; // If a method throws a RemoteException when it shouldn't, that's a deprecated use, hence a warning. -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMessagePrefixEjb11Constants.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMessagePrefixEjb11Constants.java deleted file mode 100644 index 0d823f8f2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMessagePrefixEjb11Constants.java +++ /dev/null @@ -1,91 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - - -/** - * This interface holds the message constants that are specific - * to the EJB 1.1 specification. - */ -public interface IMessagePrefixEjb11Constants extends IEJBValidatorMessageConstants { - /*package*/ static final String SPEC = ".ejb11"; // EJB specification being validated //$NON-NLS-1$ - - - /*package*/ static final String CHKJ2001 = "CHKJ2001"; // The key class must implement the X method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2002 = "CHKJ2002"; // This class should implement a matching ejbPostCreate method for this method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2004 = "CHKJ2004"; // The bean class should not implement the ejbFind method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2005 = "CHKJ2005"; // The method must be either a create method or a find method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2006 = "CHKJ2006"; // The bean class must have a public constructor that takes no arguments. //$NON-NLS-1$ - /*package*/ static final String CHKJ2007 = "CHKJ2007"; // The bean class should not declare the finalize() method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2008 = "CHKJ2008"; // The bean class must contain at least one ejbCreate method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2009 = "CHKJ2009"; // The bean class must contain at least one ejbFindByPrimaryKey method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2010 = "CHKJ2010"; // The home interface must contain at least one create method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2011 = "CHKJ2011"; // The home interface must contain at least one findByPrimaryKey method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2012 = "CHKJ2012"; // This type must be an interface. //$NON-NLS-1$ - /*package*/ static final String CHKJ2013 = "CHKJ2013"; // The bean class must implement X. //$NON-NLS-1$ - /*package*/ static final String CHKJ2020 = "CHKJ2020"; // The key class must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2021 = "CHKJ2021"; // The key class must define a public default constructor. //$NON-NLS-1$ - /*package*/ static final String CHKJ2024 = "CHKJ2024"; // X must not exist. Only create() may exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2025 = "CHKJ2025"; // X must not exist. Only ejbCreate() may exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2026 = "CHKJ2026"; // The bean class must implement a matching ejbCreate method for this method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2028 = "CHKJ2028"; // This method will not be called unless a matching ejbCreate method is defined. //$NON-NLS-1$ - /*package*/ static final String CHKJ2029 = "CHKJ2029"; // This method will not be called unless a matching create method is defined on the home. //$NON-NLS-1$ - /*package*/ static final String CHKJ2030 = "CHKJ2030"; // This method must have a matching ejbFind method in the bean class. //$NON-NLS-1$ - /*package*/ static final String CHKJ2032 = "CHKJ2032"; // Bean class X must declare at least one container managed field. //$NON-NLS-1$ - /*package*/ static final String CHKJ2033 = "CHKJ2033"; // The setEntityContext method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2034 = "CHKJ2034"; // The unsetEntityContext method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2035 = "CHKJ2035"; // The ejbActivate method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2036 = "CHKJ2036"; // The ejbPassivate method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2037 = "CHKJ2037"; // The ejbRemove method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2038 = "CHKJ2038"; // The ejbLoad method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2039 = "CHKJ2039"; // The ejbStore method must exist. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2100 = "CHKJ2100"; // Both ends of the role must use the same number of attributes. //$NON-NLS-1$ - /*package*/ static final String CHKJ2101 = "CHKJ2101"; // Both ends of the role must use the same type. //$NON-NLS-1$ - /*package*/ static final String CHKJ2102 = "CHKJ2102"; // Either a finder descriptor, or a matching custom finder method, must be defined. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2200 = "CHKJ2200"; // The static field must be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2201 = "CHKJ2201"; // The field must not be transient. //$NON-NLS-1$ - /*package*/ static final String CHKJ2202 = "CHKJ2202"; // The field type is invalid for a <cmp-field>. //$NON-NLS-1$ - /*package*/ static final String CHKJ2203 = "CHKJ2203"; // The field must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2207 = "CHKJ2207"; // Field X on bean Y must be the same type as the <primkey-field>. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2400_bus = "CHKJ2400.bus"; // Deprecated use of RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2400_ejbCreate = "CHKJ2400.ejbCreate"; // Deprecated use of RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2400_ejbFind = "CHKJ2400.ejbFind"; // Deprecated use of RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2400_ejbPostCreate = "CHKJ2400.ejbPostCreate"; // Deprecated use of RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2401 = "CHKJ2401"; // This method must return void. //$NON-NLS-1$ - /*package*/ static final String CHKJ2405 = "CHKJ2405"; // findByPrimaryKey must have the <prim-key-class> as its argument. //$NON-NLS-1$ - /*package*/ static final String CHKJ2406 = "CHKJ2406"; // This method should return the primary key type. //$NON-NLS-1$ - /*package*/ static final String CHKJ2408_bus = "CHKJ2408.bus"; // This method must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2408_ejbCreate = "CHKJ2408.ejbCreate"; // This method must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2408_ejbFind = "CHKJ2408.ejbFind"; // This method must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2408_ejbPostCreate = "CHKJ2408.ejbPostCreate"; // This method must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2409_bus = "CHKJ2409.bus"; // This method must not be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2409_ejbCreate = "CHKJ2409.ejbCreate"; //This method must not be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2409_ejbFind = "CHKJ2409.ejbFind"; // This method must not be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2409_ejbPostCreate = "CHKJ2409.ejbPostCreate"; // This method must not be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2410_bus = "CHKJ2410.bus"; // This method must not be static. //$NON-NLS-1$ - /*package*/ static final String CHKJ2410_ejbCreate = "CHKJ2410.ejbCreate"; // This method must not be static. //$NON-NLS-1$ - /*package*/ static final String CHKJ2410_ejbFind = "CHKJ2410.ejbFind"; // This method must not be static. //$NON-NLS-1$ - /*package*/ static final String CHKJ2410_ejbPostCreate = "CHKJ2410.ejbPostCreate"; // This method must not be static. //$NON-NLS-1$ - /*package*/ static final String CHKJ2412 = "CHKJ2412"; // The return type of this method must be serializable at runtime. //$NON-NLS-1$ - /*package*/ static final String CHKJ2413 = "CHKJ2413"; // The argument must be serializable at runtime. //$NON-NLS-1$ - /*package*/ static final String CHKJ2414 = "CHKJ2414"; // This method must throw exception X. //$NON-NLS-1$ - /*package*/ static final String CHKJ2415 = "CHKJ2415"; // The return type must match the return type of the matching method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2418 = "CHKJ2418"; // This method must return void. //$NON-NLS-1$ - /*package*/ static final String CHKJ2419 = "CHKJ2419"; // This method must be a create method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2420 = "CHKJ2420"; // X must be thrown by the corresponding method on the home interface. //$NON-NLS-1$ - /*package*/ static final String CHKJ2432 = "CHKJ2432"; // X must be thrown by the corresponding method on the remote interface. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2908 = "CHKJ2908"; // An enterprise bean cannot be reflected. Run the XML validator. //$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMessagePrefixEjb20Constants.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMessagePrefixEjb20Constants.java deleted file mode 100644 index 8c11d3566..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMessagePrefixEjb20Constants.java +++ /dev/null @@ -1,206 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - - -/** - * This interface holds the message constants that are specific to the - * EJB 2.0 specification (e.g. MDB-only messages). - */ -public interface IMessagePrefixEjb20Constants extends IEJBValidatorMessageConstants { - /*package*/ static final String SPEC = ".ejb20"; // EJB specification being validated //$NON-NLS-1$ - /*package*/ static final String ON_BASE_SPEC = ON_BASE + SPEC; - /*package*/ static final String ON_THIS_SPEC = ON_THIS + SPEC; - /*package*/ static final String CHKJ = null; // Placeholder for a message id when the id hasn't been created in the .properties file - - /*package*/ static final String CHKJ2018 = "CHKJ2018"; // This dependent value class must be serializable. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2043 = "CHKJ2043"; // This dependent value class must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2044 = "CHKJ2044"; // This dependent value class must not be abstract. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2050_acc = "CHKJ2050.acc"; // An accessor method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_constr = "CHKJ2050.constr"; // A public default constructor must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_create = "CHKJ2050.create"; // A create method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbActivate = "CHKJ2050.ejbActivate"; // The ejbActivate method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbCreate = "CHKJ2050.ejbCreate"; // An ejbCreate method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbFind = "CHKJ2050.ejbFind"; // An ejbFind method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbFindByPrimaryKey = "CHKJ2050.ejbFindByPrimaryKey"; // An ejbFindByPrimaryKey method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbHome = "CHKJ2050.ejbHome"; // An ejbHome method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbLoad = "CHKJ2050.ejbLoad"; // An ejbLoad method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbPassivate = "CHKJ2050.ejbPassivate"; // An ejbPassivate method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbPostCreate = "CHKJ2050.ejbPostCreate"; // An ejbPostCreate method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbRemove = "CHKJ2050.ejbRemove"; // An ejbRemove method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbSelect = "CHKJ2050.ejbSelect"; // An ejbSelect method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_ejbStore = "CHKJ2050.ejbStore"; // An ejbStore method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_equals = "CHKJ2050.equals"; // An equals method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_find = "CHKJ2050.find"; // An find method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_findByPrimaryKey = "CHKJ2050.findByPrimaryKey"; // An findByPrimaryKey method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_hashCode = "CHKJ2050.hashCode"; // An hashCode method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_home = "CHKJ2050.home"; // An home method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_onMessage = "CHKJ2050.onMessage"; // An onMessage method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_setEntityContext = "CHKJ2050.setEntityContext"; // An setEntityContext method must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2050_unsetEntityContext = "CHKJ2050.unsetEntityContext"; // An unsetEntityContext method must exist. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2404 = "CHKJ2404"; // Application exception X must extend java.lang.Exception. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2416 = "CHKJ2416"; // Application exception X must not extend java.lang.RuntimeException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2421 = "CHKJ2421"; // ejbCreate must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2422 = "CHKJ2422"; // ejbCreate must not be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2423 = "CHKJ2423"; // ejbCreate must not be static. //$NON-NLS-1$ - /*package*/ static final String CHKJ2424 = "CHKJ2424"; // ejbCreate must return void. //$NON-NLS-1$ - /*package*/ static final String CHKJ2426 = "CHKJ2426"; // ejbPostCreate must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2427 = "CHKJ2427"; // ejbPostCreate must not be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2428 = "CHKJ2428"; // ejbPostCreate must not be static. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2430 = "CHKJ2430"; // X must exist for this ejbHome method to be called. //$NON-NLS-1$ - /*package*/ static final String CHKJ2431 = "CHKJ2431"; // ejbHome must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2439 = "CHKJ2439"; // ejbHome must not be static. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2441 = "CHKJ2441"; // business method must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2442 = "CHKJ2442"; // business method must not be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2443 = "CHKJ2443"; // business method must not be static. //$NON-NLS-1$ - /*package*/ static final String CHKJ2445 = "CHKJ2445"; // onMessage must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2446 = "CHKJ2446"; // onMessage must not be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2447 = "CHKJ2447"; // onMessage must not be static. //$NON-NLS-1$ - /*package*/ static final String CHKJ2449 = "CHKJ2449"; // accessor method must be public. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2450 = "CHKJ2450"; // accessor method must be abstract //$NON-NLS-1$ - /*package*/ static final String CHKJ2452 = "CHKJ2452"; // A transient field should not be the {0} type. //$NON-NLS-1$ - /*package*/ static final String CHKJ2453 = "CHKJ2453"; // Transient fields are discouraged. //$NON-NLS-1$ - /*package*/ static final String CHKJ2454 = "CHKJ2454"; // CMR and CMP fields must not be defined on the bean class. //$NON-NLS-1$ - /*package*/ static final String CHKJ2457 = "CHKJ2457"; // ejbFind must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2458 = "CHKJ2458"; // ejbFind must not be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2459 = "CHKJ2459"; // ejbFind must not be static. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2461 = "CHKJ2461"; // This interface must follow RMI-IIOP rules for interfaces. //$NON-NLS-1$ - /*package*/ static final String CHKJ2462 = "CHKJ2462"; // The method name must not start with "create". //$NON-NLS-1$ - /*package*/ static final String CHKJ2463 = "CHKJ2463"; // The method name must not start with "find". //$NON-NLS-1$ - /*package*/ static final String CHKJ2464 = "CHKJ2464"; // The method name must not start with "remove" //$NON-NLS-1$ - /*package*/ static final String CHKJ2465 = "CHKJ2465"; // home method X must throw Y for Z. //$NON-NLS-1$ - /*package*/ static final String CHKJ2466 = "CHKJ2466"; // remote home method X must not expose the Y type. //$NON-NLS-1$ - /*package*/ static final String CHKJ2467 = "CHKJ2467"; // This method must throw CreateException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2468 = "CHKJ2468"; // This interface must follow RMI-IIOP rules for remote interfaces. //$NON-NLS-1$ - /*package*/ static final String CHKJ2469 = "CHKJ2469"; // This method (EJBObject or EJBLocalObject) is provided by the container. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2470 = "CHKJ2470"; // This component matching method must return X. //$NON-NLS-1$ - /*package*/ static final String CHKJ2471 = "CHKJ2471"; // This component matching method must throw X. //$NON-NLS-1$ - /*package*/ static final String CHKJ2472 = "CHKJ2472"; // This method must not pass X as an argument or result type. //$NON-NLS-1$ - /*package*/ static final String CHKJ2473 = "CHKJ2473"; // This (CMR) method must not be exposed. //$NON-NLS-1$ - /*package*/ static final String CHKJ2474 = "CHKJ2474"; // This method must not expose X. //$NON-NLS-1$ - /*package*/ static final String CHKJ2475 = "CHKJ2475"; // findByPrimaryKey's argument must be the primary key. //$NON-NLS-1$ - /*package*/ static final String CHKJ2476 = "CHKJ2476"; // This method must be the create/ejbCreate method. //$NON-NLS-1$ - /*package*/ static final String CHKJ2477 = "CHKJ2477"; // This method must throw FinderException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2478 = "CHKJ2478"; // This method must not throw ObjectNotFoundException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2479 = "CHKJ2479"; // findByPrimaryKey must return X. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2480 = "CHKJ2480"; // CMP/CMR field name must begin with a lowercase letter. //$NON-NLS-1$ - /*package*/ static final String CHKJ2481 = "CHKJ2481"; // field X must be a <cmp-field> //$NON-NLS-1$ - /*package*/ static final String CHKJ2482 = "CHKJ2482"; // field X must be a <cmr-field> //$NON-NLS-1$ - /*package*/ static final String CHKJ2483 = "CHKJ2483"; // CMP/CMR field should not be exposed //$NON-NLS-1$ - /*package*/ static final String CHKJ2484 = "CHKJ2484"; // CMP/CMR field must be either a primitive or a serializable type. //$NON-NLS-1$ - /*package*/ static final String CHKJ2485 = "CHKJ2485"; // ejbSelect method must be abstract. //$NON-NLS-1$ - /*package*/ static final String CHKJ2486 = "CHKJ2486"; // ejbSelect must return X or a collection thereof. //$NON-NLS-1$ - /*package*/ static final String CHKJ2487 = "CHKJ2487"; // ejbSelect must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2488 = "CHKJ2488"; // ejbSelect must throw FinderException //$NON-NLS-1$ - /*package*/ static final String CHKJ2489 = "CHKJ2489"; // Field must be the primary key type. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2490 = "CHKJ2490"; // This method must not be exposed. //$NON-NLS-1$ - /*package*/ static final String CHKJ2492 = "CHKJ2492"; // ejbRemove must be public. //$NON-NLS-1$ - /*package*/ static final String CHKJ2493 = "CHKJ2493"; // ejbRemove must not be final. //$NON-NLS-1$ - /*package*/ static final String CHKJ2494 = "CHKJ2494"; // ejbRemove must not be static. //$NON-NLS-1$ - /*package*/ static final String CHKJ2495 = "CHKJ2495"; // This find method must be associated with a query element in ejb-jar.xml. //$NON-NLS-1$ - /*package*/ static final String CHKJ2496 = "CHKJ2496"; // This ejbSelect method must be associated with a query element in ejb-jar.xml. //$NON-NLS-1$ - /*package*/ static final String CHKJ2497 = "CHKJ2497"; // ejbCreate must throw CreateException. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2500_ejbCreate = "CHKJ2500.ejbCreate"; // X must be serializable at runtime. //$NON-NLS-1$ - /*package*/ static final String CHKJ2500_ejbHome = "CHKJ2500.ejbHome"; // X must be serializable at runtime. //$NON-NLS-1$ - /*package*/ static final String CHKJ2500_ejbFind = "CHKJ2500.ejbFind"; // X must be serializable at runtime. //$NON-NLS-1$ - /*package*/ static final String CHKJ2500_business = "CHKJ2500.bus"; // X must be serializable at runtime. //$NON-NLS-1$ - /*package*/ static final String CHKJ2500_home = "CHKJ2500.home"; // X must be serializable at runtime. //$NON-NLS-1$ - /*package*/ static final String CHKJ2500_create = "CHKJ2500.create"; // X must be serializable at runtime. //$NON-NLS-1$ - /*package*/ static final String CHKJ2500_find = "CHKJ2500.find"; // X must be serializable at runtime. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2501_ejbCreate = "CHKJ2501.ejbCreate"; // ejbCreate must not throw application exceptions. //$NON-NLS-1$ - /*package*/ static final String CHKJ2501_ejbRemove = "CHKJ2501.ejbRemove"; // ejbRemove must not throw application exceptions. //$NON-NLS-1$ - /*package*/ static final String CHKJ2501_onMessage = "CHKJ2501.onMessage"; // ejbRemove must not throw application exceptions. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2502_ejbFind = "CHKJ2502.ejbFind"; // ejbFind must not exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2502_ejbSelect = "CHKJ2502.ejbSelect"; // ejbSelect must not exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2502_finalize = "CHKJ2502.finalize"; // finalize must not exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2502 = "CHKJ2502"; // This method must not exist. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2503_bus = "CHKJ2503.bus"; // The business method must throw/not throw RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2503_create = "CHKJ2503.create"; // This method must throw/not throw RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2503_ejbCreate = "CHKJ2503.ejbCreate"; // This method must throw/not throw RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2503_ejbFind = "CHKJ2503.ejbFind"; // This method must throw/not throw RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2503_ejbHome = "CHKJ2503.ejbHome"; // This method must throw/not throw RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2503_ejbPostCreate = "CHKJ2503.ejbPostCreate"; // This method must throw/not throw RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2503_find = "CHKJ2503.find"; // This method must throw/not throw RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2503_home = "CHKJ2503.home"; // This method must throw/not throw RemoteException. //$NON-NLS-1$ - /*package*/ static final String CHKJ2503_onMessage = "CHKJ2503.onMessage"; // This method must throw/not throw RemoteException. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2504_business = "CHKJ2504.business"; // The matching method must exist on the bean class. //$NON-NLS-1$ - /*package*/ static final String CHKJ2504_create = "CHKJ2504.create"; // The matching method must exist on the bean class. //$NON-NLS-1$ - /*package*/ static final String CHKJ2504_find = "CHKJ2504.find"; // The matching method must exist on the bean class. //$NON-NLS-1$ - /*package*/ static final String CHKJ2504_home = "CHKJ2504.home"; // The matching method must exist on the bean class. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2505_ejbPostCreate = "CHKJ2505.ejbPostCreate"; // This method must return void. //$NON-NLS-1$ - /*package*/ static final String CHKJ2505_onMessage = "CHKJ2505.onMessage"; // This method must return void. //$NON-NLS-1$ - /*package*/ static final String CHKJ2505_ejbRemove = "CHKJ2505.ejbRemove"; // This method must return void. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2800_NAMED = "CHKJ2800.named"; // <local> cannot be reflected. //$NON-NLS-1$ - /*package*/ static final String CHKJ2800_UNNAMED = "CHKJ2800.unnamed"; // <local> must exist. //$NON-NLS-1$ - /*package*/ static final String CHKJ2805_NAMED = "CHKJ2805.named"; // <local-home> cannot be reflected //$NON-NLS-1$ - /*package*/ static final String CHKJ2805_UNNAMED = "CHKJ2805.unnamed"; // <local-home> must exist. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2813 = "CHKJ2813"; // <ejb-name> X must be a valid Java identifier. //$NON-NLS-1$ - /*package*/ static final String CHKJ2816 = "CHKJ2816"; // <ejb-relation-name> must be unique in ejb-jar.xml. //$NON-NLS-1$ - /*package*/ static final String CHKJ2817 = "CHKJ2817"; // <ejb-relationship-role-name> must be unique within an <ejb-relation> //$NON-NLS-1$ - /*package*/ static final String CHKJ2818 = "CHKJ2818"; // The value of the <multiplicity> element must be either "One" or "Many" //$NON-NLS-1$ - /*package*/ static final String CHKJ2819 = "CHKJ2819"; // <abstract-schema-name> {0} must be a valid Java identifier //$NON-NLS-1$ - - /*package*/ static final String CHKJ2821 = "CHKJ2821"; // <relationship-role-source> {0} must exist in the module //$NON-NLS-1$ - - /*package*/ static final String CHKJ2848 = "CHKJ2848"; // <cascade-delete> must be used with a <multiplicity> of "One" //$NON-NLS-1$ - - /*package*/ static final String CHKJ2854 = "CHKJ2854"; // <abstract-schema-name> {0} must be unique within the ejb-jar.xml file //$NON-NLS-1$ - /*package*/ static final String CHKJ2855 = "CHKJ2855"; // <cmp-field> {0} must be a Java primitive or a Java serializable type //$NON-NLS-1$ - /*package*/ static final String CHKJ2856 = "CHKJ2856"; // <cmr-field> {0} must be the {1} type or a collection thereof //$NON-NLS-1$ - /*package*/ static final String CHKJ2857 = "CHKJ2857"; // <cmr-field> {0} must be a valid Java identifier and begin with a lowercase letter //$NON-NLS-1$ - /*package*/ static final String CHKJ2858 = "CHKJ2858"; // <abstract-schema-name> must exist //$NON-NLS-1$ - /*package*/ static final String CHKJ2859 = "CHKJ2859"; // Reserved identifier {0} cannot be used as an <ejb-name> //$NON-NLS-1$ - - /*package*/ static final String CHKJ2860 = "CHKJ2860"; // Reserved identifier {0} cannot be used as an <abstract-schema-name> //$NON-NLS-1$ - /*package*/ static final String CHKJ2866 = "CHKJ2866"; // <cmr-field> {0} must be defined on {1} //$NON-NLS-1$ - /*package*/ static final String CHKJ2867 = "CHKJ2867"; // This bean can have only unidirectional relationships to other beans //$NON-NLS-1$ - /*package*/ static final String CHKJ2868 = "CHKJ2868"; // The value of the <cmr-field-type> element must be either "java.util.Collection" or "java.util.Set" //$NON-NLS-1$ - /*package*/ static final String CHKJ2869 = "CHKJ2869"; // At least one <ejb-relationship-role> must define a <cmr-field> //$NON-NLS-1$ - - /*package*/ static final String CHKJ2870 = "CHKJ2870"; // <ejb-name> {0} must exist //$NON-NLS-1$ - /*package*/ static final String CHKJ2871 = "CHKJ2871"; // <ejb-name> {0} must refer to a CMP bean //$NON-NLS-1$ - /*package*/ static final String CHKJ2872 = "CHKJ2872"; // The value of the <cmp-version> element must be either "1.x" or "2.x" //$NON-NLS-1$ - /*package*/ static final String CHKJ2873 = "CHKJ2873"; // Migrate this bean's datasource binding to a CMP Connection Factory binding. //$NON-NLS-1$ - /*package*/ static final String CHKJ2874 = "CHKJ2874"; // Migrate this EJB module's default datasource binding to a default CMP Connection Factory binding. //$NON-NLS-1$ - - /*package*/ static final String CHKJ2880 = "CHKJ2880"; // This bean must provide a <local-home> //$NON-NLS-1$ - /*package*/ static final String CHKJ2881 = "CHKJ2881"; // This bean must provide a <home> //$NON-NLS-1$ - /*package*/ static final String CHKJ2882 = "CHKJ2882"; // This bean must provide a <local> //$NON-NLS-1$ - /*package*/ static final String CHKJ2883 = "CHKJ2883"; // This bean must provide a <remote> //$NON-NLS-1$ - /*package*/ static final String CHKJ2884 = "CHKJ2884"; // This bean must provide either a <local-home> or a <home> //$NON-NLS-1$ - /*package*/ static final String CHKJ2885 = "CHKJ2885"; // This bean must provide either a <local> or a <remote> //$NON-NLS-1$ - - /*package*/ static final String CHKJ2886 = "CHKJ2886.ejb21"; // Duplicate activation config: "{0}" exist in message drvien bean: "{1}" //$NON-NLS-1$ - /*package*/ static final String CHKJ2887 = "CHKJ2887.ejb21"; // The activation config with name : "{0}" has invalid value : "1" for message drvien bean: "{2}" //$NON-NLS-1$ - /*package*/ static final String CHKJ2888 = "CHKJ2888.ejb21"; // The activation config: "{0}" can only exist for a destination type: "{1}" //$NON-NLS-1$ - /*package*/ static final String CHKJ2889 = "CHKJ2889.ejb21"; // The message destination is not set for bean: "{0}" //$NON-NLS-1$ - /*package*/ static final String CHKJ2890 = "CHKJ2890.ejb21"; // The message destination type "{0}" and destination type activation config property value "{1}" do not match for bean: "{2}" //$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMethodAndFieldConstants.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMethodAndFieldConstants.java deleted file mode 100644 index 4476f1fdd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMethodAndFieldConstants.java +++ /dev/null @@ -1,99 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -public interface IMethodAndFieldConstants { - public static final long NO_METHODS = 0x0; - public static final long EXCLUDED_METHOD = ValidationRuleUtility.method_and_field_counter; // 0x1 (1) - public static final long EXCLUDED_FIELD = (ValidationRuleUtility.method_and_field_counter <<= 1); // 0x2 (2) - public static final long OTHER_FIELD = (ValidationRuleUtility.method_and_field_counter <<= 1); // 0x4 (4) - - public static final long ACCESSOR = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x8 (8) - public static final long BUSINESS = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x10 (16) - - public static final long CLINIT = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x20 (32) - public static final long CONSTRUCTOR = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x40 (64) - public static final long CONSTRUCTOR_NOPARM = CONSTRUCTOR | (ValidationRuleUtility.method_and_field_counter <<= 1); // 0x40|0x80 (192) - public static final long CREATE = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x100 (256) - public static final long CREATE_NOPARM = CREATE | (ValidationRuleUtility.method_and_field_counter <<= 1); //0x100|0x200 (768) - - public static final long EJBACTIVATE_NOPARM = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x400 (1024) - public static final long EJBCREATE = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x800 (2048) - public static final long EJBCREATE_NOPARM = EJBCREATE | (ValidationRuleUtility.method_and_field_counter <<= 1);//0x800|0x1000 (6144) - public static final long EJBFIND = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x2000 (8192) - public static final long EJBFINDBYPRIMARYKEY = EJBFIND | (ValidationRuleUtility.method_and_field_counter <<= 1); //0x2000|0x4000 (24576) - public static final long EJBHOME = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x8000 (32768) - public static final long EJBLOAD_NOPARM = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x10000 (65536) - public static final long EJBPASSIVATE_NOPARM = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x20000 (131,072) - public static final long EJBPOSTCREATE = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x40000 (262,144) - public static final long EJBREMOVE_NOPARM = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x80000 (524,288) - public static final long EJBSELECT = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x100000 (1,048,576) - public static final long EJBSTORE_NOPARM = (ValidationRuleUtility.method_and_field_counter <<= 1);//0x200000 (2,097,152) - public static final long EQUALS = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x400000 (4,194,304) - - public static final long FIND = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x800000 (8,388,608) - public static final long FINDBYPRIMARYKEY = FIND | (ValidationRuleUtility.method_and_field_counter <<= 1); //0x1000000 (25,165,824) - public static final long FINALIZE_NOPARM = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x2000000 (33,554,432) - - public static final long HASHCODE_NOPARM = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x4000000 (67,108,864) - public static final long HELPER = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x8000000 (134,217,728) - public static final long HOME = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x10000000 (268,435,456) - - public static final long ONMESSAGE = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x20000000 (536,870,912) - - public static final long SERIALVERSIONUID = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x40000000 (1,073,741,824) - public static final long SETSESSIONCONTEXT = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x80000000 (2,147,483,648) - public static final long SETENTITYCONTEXT = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x100000000 (4,294,967,296) - - public static final long UNSETENTITYCONTEXT_NOPARM = (ValidationRuleUtility.method_and_field_counter <<= 1); //0x200000000 (8,589,934,592) - - - // prefixes of some method names - /*package*/ static final String PREFIX_C = "c"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_EJB = "ejb"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_EJBC = "ejbC"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_EJBF = "ejbF"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_EJBFIND = "ejbFind"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_EJBHOME = "ejbHome"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_EJBSELECT = "ejbSelect"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_F = "f"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_FIND = "find"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_GET = "get"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_SELECT = "select"; //$NON-NLS-1$ - /*package*/ static final String PREFIX_SET = "set"; //$NON-NLS-1$ - - // method names - /*package*/ static final String METHODNAME_CREATE = "create"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_EJBACTIVATE = "ejbActivate"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_EJBCREATE = "ejbCreate"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_EJBFINDBYPRIMARYKEY = "ejbFindByPrimaryKey"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_EJBLOAD = "ejbLoad"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_EJBPASSIVATE = "ejbPassivate"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_EJBPOSTCREATE = "ejbPostCreate"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_EJBREMOVE = "ejbRemove"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_EJBSTORE = "ejbStore"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_EQUALS = "equals"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_FINALIZE = "finalize"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_FINDBYPRIMARYKEY = "findByPrimaryKey"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_HASHCODE = "hashCode"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_ONMESSAGE = "onMessage"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_REMOVE = "remove"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_SETSESSIONCONTEXT = "setSessionContext"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_SETENTITYCONTEXT = "setEntityContext"; //$NON-NLS-1$ - /*package*/ static final String METHODNAME_UNSETENTITYCONTEXT = "unsetEntityContext"; //$NON-NLS-1$ - - // field names - /*package*/ static final String FIELDNAME_SERIALVERSIONUID = "serialVersionUID"; //$NON-NLS-1$ - - // For substitution into strings - /*package*/ static final String METHODSIGNATURE_EQUALS = "equals(java.lang.Object)"; //$NON-NLS-1$ - /*package*/ static final String METHODSIGNATURE_HASHCODE = "hashCode()"; //$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMethodType.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMethodType.java deleted file mode 100644 index fd031affe..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IMethodType.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.List; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - -public abstract interface IMethodType { - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method); - - public long getId(); - - /** - * Return true if this method type is a default type for an enterprise bean's class. - * For example, if the method on the home is neither a create nor a find method, then - * it is assumed to be the default type, a home method. - */ - public boolean isDefaultType(); - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists); - - public String getMessageId_messageMissing(); // required method is missing - public String getMessageId_messageExists(); // method should not exist - public String getMessageId_messageRemoteException(); // method throws (or doesn't throw) RemoteException - public String getMessageId_messageMissingMatching(); // method is missing its matching method on the bean class - public String getMessageId_messageRMI_IIOPParm(); // parameter or return type is not a legal RMI-IIOP type -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IRemoteType.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IRemoteType.java deleted file mode 100644 index 5db5385ef..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IRemoteType.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -/** - * @version 1.0 - * @author - */ -public interface IRemoteType { - public int IS_REMOTE = IEJBType.REMOTE; - public int MESSAGE_REMOTE_EXCEPTION_SEVERITY = IEJBValidationContext.ERROR; // If a method does not throw an exception when it should, RMIC blows up, hence this situation is an error. -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ITypeConstants.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ITypeConstants.java deleted file mode 100644 index 608ef1fc0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ITypeConstants.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -public interface ITypeConstants { - public static long NO_SUPERTYPE = 0x0; - - public static long LOCAL_COMPONENT_INTERFACE = ClassUtility.supertype_counter; // 0x1 (1) - public static long REMOTE_COMPONENT_INTERFACE = (ClassUtility.supertype_counter <<= 1); // 0x2 (2) - - public static long JAVAX_EJB_ENTITYBEAN = (ClassUtility.supertype_counter <<= 1); // 0x4 (4) - public static long JAVAX_EJB_EJBLOCALHOME = (ClassUtility.supertype_counter <<= 1); //0x8 (8) - public static long JAVAX_EJB_EJBLOCALOBJECT = (ClassUtility.supertype_counter <<= 1);//0x10 (16) - public static long JAVAX_EJB_EJBHOME = (ClassUtility.supertype_counter <<= 1); //0x20 (32) - public static long JAVAX_EJB_EJBOBJECT = (ClassUtility.supertype_counter <<= 1); //0x40 (64) - - public static long JAVA_LANG_OBJECT = (ClassUtility.supertype_counter <<= 1);//0x80 (128) - - public static long JAVAX_EJB_MESSAGEDRIVENBEAN = (ClassUtility.supertype_counter <<= 1); //0x100 (256) - public static long JAVAX_JMS_MESSAGELISTENER = (ClassUtility.supertype_counter <<= 1); //0x200 (512) - - public static long JAVAX_EJB_SESSIONBEAN = (ClassUtility.supertype_counter <<= 1); //0x400 (1024) - public static long JAVAX_EJB_SESSIONSYNCHRONIZATION = (ClassUtility.supertype_counter <<= 1); // 0x800 (2048) - - // primitive types - /*package*/ static final String VOID = "void"; //$NON-NLS-1$ - - // class and interface types - /*package*/ static final String CLASSNAME_JAVA_IO_IOEXCEPTION = "java.io.IOException"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVA_IO_SERIALIZABLE = "java.io.Serializable"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVA_LANG_OBJECT = "java.lang.Object"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVA_LANG_EXCEPTION = "java.lang.Exception"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVA_LANG_RUNTIMEEXCEPTION = "java.lang.RuntimeException"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVA_RMI_REMOTE = "java.rmi.Remote"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVA_RMI_REMOTEEXCEPTION = "java.rmi.RemoteException"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVA_UTIL_COLLECTION = "java.util.Collection"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVA_UTIL_ENUMERATION = "java.util.Enumeration"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVA_UTIL_SET = "java.util.Set"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_CREATEEXCEPTION = "javax.ejb.CreateException"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_ENTITYBEAN = "javax.ejb.EntityBean"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_EJBEXCEPTION = "javax.ejb.EJBException"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_EJBHOME = "javax.ejb.EJBHome"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_EJBLOCALHOME = "javax.ejb.EJBLocalHome"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_EJBOBJECT = "javax.ejb.EJBObject"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_EJBLOCALOBJECT = "javax.ejb.EJBLocalObject"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_ENTITYCONTEXT = "javax.ejb.EntityContext"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_FINDEREXCEPTION = "javax.ejb.FinderException"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_MESSAGEDRIVENBEAN = "javax.ejb.MessageDrivenBean"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_OBJECTNOTFOUNDEXCEPTION = "javax.ejb.ObjectNotFoundException"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_SESSIONBEAN = "javax.ejb.SessionBean"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_SESSIONCONTEXT = "javax.ejb.SessionContext"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_EJB_SESSIONSYNCHRONIZATION = "javax.ejb.SessionSynchronization"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_JMS_MESSAGE = "javax.jms.Message"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_JMS_MESSAGELISTENER = "javax.jms.MessageListener"; //$NON-NLS-1$ - /*package*/ static final String CLASSNAME_JAVAX_TRANSACTION_USERTRANSACTION = "javax.transaction.UserTransaction"; //$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IValidationRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IValidationRule.java deleted file mode 100644 index e54a185df..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IValidationRule.java +++ /dev/null @@ -1,80 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.Map; -import java.util.Set; - -import org.eclipse.wst.validation.internal.core.ValidationException; - - -public interface IValidationRule { - /** - * Returns the id of this rule. Given this id, this rule can be loaded from - * the AbstractEJBValidationRuleFactory. - */ - public Object getId(); - - /** - * Returns the ids of the rules which this rule depends on. (That is, - * if one of these rules runs, then this rule needs to be run.) - */ - public Object[] getDependsOn(); - - /** - * Add a validation rule which needs to be notified when this rule is run. - */ - public void addDependent(IValidationRule rule); - - /** - * Return a collection of the IValidationRules which depend on this rule. - */ - public Set getDependents(); - - /** - * Given the target's parent and the changed target, return the target which - * this rule should validate. For example, if a bean class changes, then the - * target parent would be the EnterpriseBean, and this rule could return - * the home interface, or the component interface, or the key class, etc. - */ - public Object getTarget(Object targetParent, Object target); - - /** - * If any information needs to be calculated before the validate method is called, - * then that information should be calculated here. This cached information should - * be cleaned up in the postValidate method. - */ - public void preValidate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException; - - /** - * Validate the target object. Report all messages, load models, etc. - * through the IValidtionContext parameter. - */ - public void validate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException; - - /** - * This method cleans up any resources calculated or cached in the preValidate method. - * This method is called after the validate method has completed. - */ - public void postValidate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException; - - /** - * To enable this rule for reuse, reset any stored values (which were calculated - * during validation) to the default value. - */ - public void reset(); - - /** - * Return a mapping of CHKJ message id to the message id in the resource bundle. - */ - public Map getMessageIds(); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IValidationRuleList.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IValidationRuleList.java deleted file mode 100644 index 29c390be6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/IValidationRuleList.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -public interface IValidationRuleList { - public static final Object EJB11_EJBJAR = new Integer(1); // EJB 1.1 projects - public static final Object EJB11_EJBEXT = new Integer(2); // EJB 1.1 projects - public static final Object EJB20_EJBJAR = new Integer(3); // EJB 2.0 projects - public static final Object EJB20_EJBEXT = new Integer(4); // EJB 2.0 projects - - public static final Object EJB11_ENTERPRISEBEAN = new Integer(5); // EJB 1.1 or EJB 2.0 projects - public static final Object EJB20_ENTERPRISEBEAN = new Integer(6); // EJB 2.0 projects - - public static final Object EJB11_SESSION_BEANCLASS = new Integer(7); // EJB 1.1 or EJB 2.0 projects - public static final Object EJB11_SESSION_REMOTE = new Integer(8); // EJB 1.1 or EJB 2.0 projects - public static final Object EJB11_SESSION_HOME = new Integer(9); // EJB 1.1 or EJB 2.0 projects - - public static final Object EJB11_CMP_BEANCLASS = new Integer(10); // EJB 1.1 or EJB 2.0 projects - public static final Object EJB11_CMP_REMOTE = new Integer(11); // EJB 1.1 or EJB 2.0 projects - public static final Object EJB11_CMP_HOME = new Integer(12); // EJB 1.1 or EJB 2.0 projects - public static final Object EJB11_CMP_KEYCLASS = new Integer(13); // EJB 1.1 or EJB 2.0 projects - - public static final Object EJB11_BMP_BEANCLASS = new Integer(14); // EJB 1.1 or EJB 2.0 projects - public static final Object EJB11_BMP_REMOTE = new Integer(15); // EJB 1.1 or EJB 2.0 projects - public static final Object EJB11_BMP_HOME = new Integer(16); // EJB 1.1 or EJB 2.0 projects - public static final Object EJB11_BMP_KEYCLASS = new Integer(17); // EJB 1.1 or EJB 2.0 projects - - public static final Object EJB20_STATELESS_SESSION_BEANCLASS = new Integer(18); // EJB 2.0 projects - public static final Object EJB20_STATELESS_SESSION_REMOTE = new Integer(19); // EJB 2.0 projects - public static final Object EJB20_STATELESS_SESSION_HOME = new Integer(20); // EJB 2.0 projects - public static final Object EJB20_STATELESS_SESSION_LOCAL = new Integer(21); // EJB 2.0 projects - public static final Object EJB20_STATELESS_SESSION_LOCALHOME = new Integer(22); // EJB 2.0 projects - - public static final Object EJB20_STATEFUL_SESSION_BEANCLASS = new Integer(23); // EJB 2.0 projects - public static final Object EJB20_STATEFUL_SESSION_REMOTE = new Integer(24); // EJB 2.0 projects - public static final Object EJB20_STATEFUL_SESSION_HOME = new Integer(25); // EJB 2.0 projects - public static final Object EJB20_STATEFUL_SESSION_LOCAL = new Integer(26); // EJB 2.0 projects - public static final Object EJB20_STATEFUL_SESSION_LOCALHOME = new Integer(27); // EJB 2.0 projects - - public static final Object EJB20_CMP_BEANCLASS = new Integer(28); // EJB 2.0 projects - public static final Object EJB20_CMP_REMOTE = new Integer(29); // EJB 2.0 projects - public static final Object EJB20_CMP_HOME = new Integer(30); // EJB 2.0 projects - public static final Object EJB20_CMP_LOCAL = new Integer(31); // EJB 2.0 projects - public static final Object EJB20_CMP_LOCALHOME = new Integer(32); // EJB 2.0 projects - public static final Object EJB20_CMP_KEYCLASS = new Integer(33); // EJB 2.0 projects - - public static final Object EJB20_BMP_BEANCLASS = new Integer(34); // EJB 2.0 projects - public static final Object EJB20_BMP_REMOTE = new Integer(35); // EJB 2.0 projects - public static final Object EJB20_BMP_HOME = new Integer(36); // EJB 2.0 projects - public static final Object EJB20_BMP_LOCAL = new Integer(37); // EJB 2.0 projects - public static final Object EJB20_BMP_LOCALHOME = new Integer(38); // EJB 2.0 projects - public static final Object EJB20_BMP_KEYCLASS = new Integer(39); // EJB 2.0 projects - - public static final Object EJB20_MESSAGE_BEANCLASS = new Integer(40); // EJB 2.0 projects -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/InvalidInputException.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/InvalidInputException.java deleted file mode 100644 index 51c673a23..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/InvalidInputException.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import org.eclipse.jem.java.JavaClass; - -/** - * This exception is thrown when either a type cannot be reflected - * or when expected input (e.g. the remote interface) is null. - */ -public class InvalidInputException extends Exception { - /** - * - */ - private static final long serialVersionUID = 7811046448684869845L; - private JavaClass _class = null; - - /** - * This constructor should be used only when there is no information - * available to identify what is invalid. - */ - public InvalidInputException() { - this(null); - } - - /** - * This constructor is used when the given type cannot be reflected. - */ - public InvalidInputException(JavaClass clazz) { - _class = clazz; - } - - public JavaClass getJavaClass() { - return _class; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/J2EEMessageConstants.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/J2EEMessageConstants.java deleted file mode 100644 index 6715687c4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/J2EEMessageConstants.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -/** - * Message key constants for J2EE validators. - */ -public interface J2EEMessageConstants { - public static final String EREF_CATEGORY = "erefvalidation"; //$NON-NLS-1$ - public static final String WAR_CATEGORY = "warvalidation"; //$NON-NLS-1$ - public static final String EAR_CATEGORY = "earvalidation"; //$NON-NLS-1$ - public static final String EJBJAR_CATEGORY = "ejbjarvalidation"; //$NON-NLS-1$ - public static final String APLICATIONCLIENT_CATEGORY = "applicationclientvalidation"; //$NON-NLS-1$ - public static final String VALIDATOR_NAME = "validator.name"; //$NON-NLS-1$ - public static final String ERROR_EAR_MISSING_EREFNAME = "ERROR_EAR_MISSING_EREFNAME"; //$NON-NLS-1$ - public static final String ERROR_EAR_MISSING_EREFTYPE = "ERROR_EAR_MISSING_EREFTYPE"; //$NON-NLS-1$ - public static final String ERROR_EAR_INVALID_EREFTYPE = "ERROR_EAR_INVALID_EREFTYPE"; //$NON-NLS-1$ - public static final String ERROR_EAR_MISSING_EREFHOME = "ERROR_EAR_MISSING_EREFHOME"; //$NON-NLS-1$ - public static final String ERROR_EAR_MISSING_EREFREMOTE = "ERROR_EAR_MISSING_EREFREMOTE"; //$NON-NLS-1$ - public static final String ERROR_EAR_MISSING_EJB_ROLE = "ERROR_EAR_MISSING_EJB_ROLE"; //$NON-NLS-1$ - public static final String ERROR_EAR_DUPLICATE_RESREF = "ERROR_EAR_DUPLICATE_RESREF"; //$NON-NLS-1$ - public static final String ERROR_EAR_DUPLICATE_SERVICEREF = "ERROR_EAR_DUPLICATE_SERVICEREF"; //$NON-NLS-1$ - public static final String ERROR_EAR_DUPLICATE_SECURITYROLEREF = "ERROR_EAR_DUPLICATE_SECURITYROLEREF"; //$NON-NLS-1$ - public static final String ERROR_EAR_DUPLICATE_EJBREF = "ERROR_EAR_DUPLICATE_EJBREF"; //$NON-NLS-1$ - public static final String ERROR_EAR_DUPLICATE_RESENVREF = "ERROR_EAR_DUPLICATE_RESENVREF"; //$NON-NLS-1$ - public static final String ERROR_EAR_DUPLICATE_MESSSAGEDESTINATIONREF = "ERROR_EAR_DUPLICATE_MESSSAGEDESTINATIONREF"; //$NON-NLS-1$ - public static final String ERROR_EAR_MISSING_MESSSAGEDESTINATION = "ERROR_EAR_MISSING_MESSSAGEDESTINATION"; //$NON-NLS-1$ - public static final String ERROR_EAR_MISSING_EMPTY_MESSSAGEDESTINATION = "ERROR_EAR_MISSING_EMPTY_MESSSAGEDESTINATION"; //$NON-NLS-1$ - public static final String ERROR_UNRESOLVED_MDB_MISSING_MESSAGE_DESTINATION = "ERROR_UNRESOLVED_MDB_MISSING_MESSAGE_DESTINATION";//$NON-NLS-1$ - public static final String ERROR_MODULE_DD_FILE_NOT_FOUND = "ERROR_MODULE_DD_FILE_NOT_FOUND";//$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/J2EEValidationResourceHandler.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/J2EEValidationResourceHandler.java deleted file mode 100644 index c35b84637..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/J2EEValidationResourceHandler.java +++ /dev/null @@ -1,499 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.text.MessageFormat; -import java.util.Locale; -import java.util.MissingResourceException; - -public class J2EEValidationResourceHandler { - private static java.util.Hashtable handlers = new java.util.Hashtable(); - protected ClassLoader resourceClassLoader; - protected java.util.Locale locale = null; - protected String bundleName = null; - protected java.util.ResourceBundle bundle = null; -/** - * ResourceHandler constructor. This constructor uses the default locale. - * - */ -public J2EEValidationResourceHandler() { - super(); -} -/** - * ResourceHandler constructor. - * - * @param The Locale object containing the locale to be used to locate the resource bundle. - */ -public J2EEValidationResourceHandler(Locale locale) { - super(); - setLocale(locale); -} -/** - * Getter for the resource bundle property. This property is lazily initialized using the - * locale property; so that property must be set before calling this method. - * - * @return The ResourceBundle object containing the messages to be handled by this instance. - */ -public java.util.ResourceBundle getBundle() { - if (this.bundle == null) { - try { - if (getResourceClassLoader() == null) - this.bundle = java.util.ResourceBundle.getBundle(getBundleName(),getLocale()); - else - this.bundle = java.util.ResourceBundle.getBundle(getBundleName(),getLocale(), getResourceClassLoader()); - } catch (MissingResourceException e) { - System.out.println("Exception retrieving bundle: " + getBundleName() +//$NON-NLS-1$ - " using locale: " + getLocale().toString());//$NON-NLS-1$ - e.printStackTrace(); - } // endtry - } // endif - return this.bundle; -} - -/** - * Insert the method's description here. - * Creation date: (1/5/01 2:26:24 PM) - * @return java.lang.String - */ -public java.lang.String getBundleName() { - return bundleName; -} -/** - * Get the message with the specified key. - * - * @param fileName The name of the property file that contains the message. - * @param key The key for the message to be retrieved. - */ - -public static String getExternalizedMessage(String fileName, String key, Class aClass) { - - return getHandler(fileName, aClass).getMessage(key); - -} -/** - * Get the message template with the specified key, and format the message using - * the specified Object array. - * - * @param fileName The name of the property file that contains the message. - * @param key The key for the message to be retrieved. - * @param arg The Object array containing the substitution values for the message. - * @return The message string. - */ -public static String getExternalizedMessage(String fileName, String key, Class aClass, Object arg[]) { - - return getHandler(fileName, aClass).getMessage(key, arg); -} -/** - * Get the message template with the specified key, and format the message using - * the specified Object array. - * - * @param fileName The name of the property file that contains the message. - * @param key The key for the message to be retrieved. - * @param arg The Object array containing the substitution values for the message. - * @return The message string. - */ -public static String getExternalizedMessage(String fileName, String key, Class aClass, Object arg[], Locale locale) { - - return getHandler(fileName, aClass, locale).getMessage(key, arg); -} -/** - * Get the message template with the specified key, and format the message using - * the specified String argument. - * - * @param fileName The name of the property file that contains the message. - * @param key The key for the message to be retrieved. - * @param arg1 The argument containing the substitution values for the message variable 1. - * @return The message string. - */ -public static String getExternalizedMessage(String fileName, String key, Class aClass, String arg1) { - - return getHandler(fileName, aClass).getMessage(key, arg1); - -} -/** - * Get the message template with the specified key, and format the message using - * the specified String arguments. - * - * @param fileName The name of the property file that contains the message. - * @param key The key for the message to be retrieved. - * @param arg1 The argument containing the substitution values for the message variable 1. - * @param arg2 The argument containing the substitution values for the message variable 2. - * @return The message string. - */ - -public static String getExternalizedMessage(String fileName, String key, Class aClass, String arg1, String arg2) { - - return getHandler(fileName, aClass).getMessage(key, arg1, arg2); - -} -/** - * Get the message template with the specified key, and format the message using - * the specified String arguments. - * - * @param fileName The name of the property file that contains the message. - * @param key The key for the message to be retrieved. - * @param arg1 The argument containing the substitution values for the message variable 1. - * @param arg2 The argument containing the substitution values for the message variable 2. - * @param arg3 The argument containing the substitution values for the message variable 3. - * @return The message string. - */ - -public static String getExternalizedMessage(String fileName, String key, Class aClass, String arg1, String arg2, String arg3) { - - return getHandler(fileName, aClass).getMessage(key, arg1, arg2, arg3); - -} -/** - * Get the message template with the specified key, and format the message using - * the specified String arguments. - * - * @param fileName The name of the property file that contains the message. - * @param key The key for the message to be retrieved. - * @param arg1 The argument containing the substitution values for the message variable 1. - * @param arg2 The argument containing the substitution values for the message variable 2. - * @param arg3 The argument containing the substitution values for the message variable 3. - * @param arg4 The argument containing the substitution values for the message variable 4. - * @return The message string. - */ - -public static String getExternalizedMessage(String fileName, String key, Class aClass, String arg1, String arg2, String arg3, String arg4) { - - return getHandler(fileName, aClass).getMessage(key, arg1, arg2, arg3, arg4); - -} -/** - * Get the message template with the specified key, and format the message using - * the specified String arguments. - * - * @param fileName The name of the property file that contains the message. - * @param key The key for the message to be retrieved. - * @param arg1 The argument containing the substitution values for the message variable 1. - * @param arg2 The argument containing the substitution values for the message variable 2. - * @param arg3 The argument containing the substitution values for the message variable 3. - * @param arg4 The argument containing the substitution values for the message variable 4. - * @param arg4 The argument containing the substitution values for the message variable 4. - * @param arg5 The argument containing the substitution values for the message variable 5. - * @return The message string. - */ - -public static String getExternalizedMessage(String fileName, String key, Class aClass, - String arg1, - String arg2, - String arg3, - String arg4, - String arg5) { - - return getHandler(fileName, aClass).getMessage(key, - arg1, - arg2, - arg3, - arg4, - arg5); - -} -/** - * Get the message with the specified key. - * - * @param fileName The name of the property file that contains the message. - * @param key The key for the message to be retrieved. - */ - -public static String getExternalizedMessage(String fileName, String key, Class aClass, Locale locale) { - - return getHandler(fileName, aClass, locale).getMessage(key); - -} -/** - * Get the static instance of this class that corresponds to the passed property file. - * - * @return The resource handler object which can be used to obtain messages. - */ -public static J2EEValidationResourceHandler getHandler(String fileName, Class aClass) { - return getHandler(fileName,aClass,Locale.getDefault()); -} -/** - * Get the static instance of this class that corresponds to the passed property file. - * - * @return The resource handler object which can be used to obtain messages. - */ -public static J2EEValidationResourceHandler getHandler(String fileName, Class aClass, Locale locale) { - String handlerKey = getHandlerKey(fileName, locale); - if (handlers.get(handlerKey) == null) { - J2EEValidationResourceHandler temp = new J2EEValidationResourceHandler(locale); - temp.setResourceClassLoader(aClass.getClassLoader()); - temp.setBundleName(fileName); - handlers.put(handlerKey,temp); - } - - return (J2EEValidationResourceHandler)(handlers.get(handlerKey)); -} - private static String getHandlerKey(String _baseName, Locale locale) { - StringBuffer localeName = new StringBuffer("_").append(locale.toString());//$NON-NLS-1$ - if (locale.toString().equals(""))//$NON-NLS-1$ - localeName.setLength(0); - return _baseName + localeName.toString(); - } -/** - * Insert the method's description here. - * Creation date: (1/26/2001 1:04:50 PM) - * @return java.lang.ClassLoader - */ -public java.lang.ClassLoader getResourceClassLoader() { - return resourceClassLoader; -} -/** - * Insert the method's description here. - * Creation date: (1/26/2001 1:04:50 PM) - * @param newResourceClassLoader java.lang.ClassLoader - */ -public void setResourceClassLoader(java.lang.ClassLoader newResourceClassLoader) { - resourceClassLoader = newResourceClassLoader; -} - -/** - * Setter for the locale property. - * - * @param The locale. - */ -public void setLocale(Locale locale) { - this.locale = locale; -} - -/** - * Insert the method's description here. - * Creation date: (1/5/01 2:26:24 PM) - * @param newBundleName java.lang.String - */ -public void setBundleName(java.lang.String newBundleName) { - bundleName = newBundleName; -} - - -/** - * Getter for the locale property. - * - * @return The locale. - */ -public Locale getLocale() { - if (locale == null) - locale = Locale.getDefault(); - return locale; -} - -/** - * Get the message with the specified key. - * - * @param key The key for the message to be retrieved. - */ - -public String getMessage(String key) { - String temp = null; - try { - temp = getBundle().getString(key); - } - catch (MissingResourceException ex) { - System.out.println("Resource Exception: " + ex);//$NON-NLS-1$ - temp = "<<Key: " + key + " not found in resource: " + getBundleName() + ">>";//$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$ - } - return temp; -} - -/** - * Get the message template with the specified key, and format the message using - * the specified Object array. - * - * @param key The key for the message to be retrieved. - * @param arg The Object array containing the substitution values for the message. - * @return The message string. - */ -public String getMessage(String key, Object arg[]) { - String temp = null; - try { - temp = MessageFormat.format(getBundle().getString(key), arg); - } - catch (MissingResourceException ex) { - System.out.println("Resource Exception: " + ex);//$NON-NLS-1$ - temp = "<<Key: " + key + " not found in resource: " + getBundleName() + ">>";//$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$ - } - return temp; -} - -/** - * Get the message template with the specified key, and format the message using - * the specified String argument. - * - * @param key The key for the message to be retrieved. - * @param arg1 The argument containing the substitution values for the message variable 1. - * @return The message string. - */ -public String getMessage(String key, String arg1) { - - String temp = null; - try { - if (arg1 != null) { - Object msgobj[] = new Object[1]; - msgobj[0] = arg1; - temp = getMessage(key, msgobj); - } - else { - temp = getMessage(key); - } - } - catch (MissingResourceException ex) { - System.out.println("Resource Exception: " + ex);//$NON-NLS-1$ - temp = "<<Key: " + key + " not found in resource: " + getBundleName() + ">>";//$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$ - } - return temp; -} - -/** - * Get the message template with the specified key, and format the message using - * the specified String arguments. - * - * @param key The key for the message to be retrieved. - * @param arg1 The argument containing the substitution values for the message variable 1. - * @param arg2 The argument containing the substitution values for the message variable 2. - * @return The message string. - */ - -public String getMessage(String key, String arg1, String arg2) { - String temp = null; - try { - if ((arg1 != null) && (arg2 != null)) { - Object msgobj[] = new Object[2]; - msgobj[0] = arg1; - msgobj[1] = arg2; - temp = getMessage(key, msgobj); - } - else { - temp = getMessage(key); - } - } - catch (MissingResourceException ex) { - System.out.println("Resource Exception: " + ex);//$NON-NLS-1$ - temp = "<<Key: " + key + " not found in resource: " + getBundleName() + ">>";//$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$ - } - return temp; - -} - -/** - * Get the message template with the specified key, and format the message using - * the specified String arguments. - * - * @param key The key for the message to be retrieved. - * @param arg1 The argument containing the substitution values for the message variable 1. - * @param arg2 The argument containing the substitution values for the message variable 2. - * @param arg3 The argument containing the substitution values for the message variable 3. - * @return The message string. - */ - -public String getMessage(String key, String arg1, String arg2, String arg3) { - String temp = null; - try { - if ((arg1 != null) && (arg2 != null) && (arg3 != null)) { - Object msgobj[] = new Object[3]; - msgobj[0] = arg1; - msgobj[1] = arg2; - msgobj[2] = arg3; - temp = getMessage(key, msgobj); - } - else { - temp = getMessage(key); - } - } - catch (MissingResourceException ex) { - System.out.println("Resource Exception: " + ex);//$NON-NLS-1$ - temp = "<<Key: " + key + " not found in resource: " + getBundleName() + ">>";//$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$ - } - return temp; - -} - -/** - * Get the message template with the specified key, and format the message using - * the specified String arguments. - * - * @param key The key for the message to be retrieved. - * @param arg1 The argument containing the substitution values for the message variable 1. - * @param arg2 The argument containing the substitution values for the message variable 2. - * @param arg3 The argument containing the substitution values for the message variable 3. - * @param arg4 The argument containing the substitution values for the message variable 4. - * @return The message string. - */ - -public String getMessage(String key, String arg1, String arg2, String arg3, String arg4) { - String temp = null; - try { - if ((arg1 != null) && (arg2 != null) && (arg3 != null) && (arg4 != null)) { - Object msgobj[] = new Object[4]; - msgobj[0] = arg1; - msgobj[1] = arg2; - msgobj[2] = arg3; - msgobj[3] = arg4; - temp = getMessage(key, msgobj); - } - else { - temp = getMessage(key); - } - } - catch (MissingResourceException ex) { - System.out.println("Resource Exception: " + ex);//$NON-NLS-1$ - temp = "<<Key: " + key + " not found in resource: " + getBundleName() + ">>";//$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$ - } - return temp; -} - -/** - * Get the message template with the specified key, and format the message using - * the specified String arguments. - * - * @param key The key for the message to be retrieved. - * @param arg1 The argument containing the substitution values for the message variable 1. - * @param arg2 The argument containing the substitution values for the message variable 2. - * @param arg3 The argument containing the substitution values for the message variable 3. - * @param arg4 The argument containing the substitution values for the message variable 4. - * @param arg4 The argument containing the substitution values for the message variable 4. - * @param arg5 The argument containing the substitution values for the message variable 5. - * @return The message string. - */ - -public String getMessage(String key, - String arg1, - String arg2, - String arg3, - String arg4, - String arg5) { - - String temp = null; - try { - if ((arg1 != null) && (arg2 != null) && (arg3 != null) && - (arg4 != null) && (arg5 != null) ) { - Object msgobj[] = new Object[5]; - msgobj[0] = arg1; - msgobj[1] = arg2; - msgobj[2] = arg3; - msgobj[3] = arg4; - msgobj[4] = arg5; - temp = getMessage(key, msgobj); - } - else { - temp = getMessage(key); - } - } - catch (MissingResourceException ex) { - System.out.println("Resource Exception: " + ex);//$NON-NLS-1$ - temp = "<<Key: " + key + " not found in resource: " + getBundleName() + ">>";//$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$ - } - return temp; - -} -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/J2EEValidator.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/J2EEValidator.java deleted file mode 100644 index 287be9911..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/J2EEValidator.java +++ /dev/null @@ -1,596 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - - -import java.util.HashSet; -import java.util.List; -import java.util.Locale; -import java.util.Set; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.emf.common.util.EList; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.internal.impl.ResourceRefImpl; -import org.eclipse.jst.j2ee.common.internal.impl.SecurityRoleImpl; -import org.eclipse.wst.common.frameworks.internal.plugin.WTPCommonPlugin; -import org.eclipse.wst.validation.internal.ResourceConstants; -import org.eclipse.wst.validation.internal.ResourceHandler; -import org.eclipse.wst.validation.internal.core.Message; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.operations.LocalizedMessage; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; -import org.eclipse.wst.validation.internal.provisional.core.IValidationContext; -import org.eclipse.wst.validation.internal.provisional.core.IValidatorJob; - - -/** - * Insert the type's description here. Creation date: (3/9/2001 3:34:39 PM) - * - * @author: Administrator - */ -public abstract class J2EEValidator implements IValidatorJob, J2EEMessageConstants { - protected IReporter _reporter; - protected IValidationContext _helper; - protected IStatus status = OK_STATUS; - - - public J2EEValidator() { - initialize(); - } - - /** - * <p> - * Create am <em>error</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require no arguments. - * </p> - * - * @param msgId - * The ID of the message to be created. - */ - - public void addError(String msgId) { - addError(getBaseName(), msgId, null); - } - - /** - * <p> - * Create am <em>error</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require no arguments. - * </p> - * - * @param msgId - * The ID of the message to be created. - */ - - public void addError(String msgId, String[] msgArgs) { - addError(getBaseName(), msgId, msgArgs); - } - - /** - * <p> - * Create am <em>error</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require no arguments. - * </p> - * - * @param msgCategory - * The base name of the message bundle to use. - * @param msgId - * The ID of the message to be created. - */ - - public void addError(String msgCategory, String msgId) { - addError(msgCategory, msgId, null); - } - - /** - * <p> - * Create an <em>error</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require one or more arguments. - * </p> - * - * @param msgCategory - * The base name of the message bundle to use. - * @param msgId - * The ID of the message to be created. - * @param msgArgs - * The parameters for the message. - */ - - public void addError(String bundleName, String msgId, String[] msgArgs) { - this.addError(bundleName, msgId, msgArgs, null); - } - - /** - * <p> - * Create an <em>error</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require one or more arguments. - * </p> - * - * @param msgCategory - * The base name of the message bundle to use. - * @param msgId - * The ID of the message to be created. - * @param msgArgs - * The parameters for the message. - */ - - public void addError(String bundleName, String msgId, String[] msgArgs, Object target) { - _reporter.addMessage(this, new Message(bundleName, IMessage.HIGH_SEVERITY, msgId, msgArgs, target)); - } - - public void addError(String bundleName, String msgId, String[] msgArgs, Object target, String groupName) { - IMessage message = new Message(bundleName, IMessage.HIGH_SEVERITY, msgId, msgArgs, target); - message.setGroupName(groupName); - _reporter.addMessage(this, message); - } - - public void addError(String bundleName, String msgId, String[] msgArgs, Object target, String groupName, int lineNumber) { - IMessage message = new Message(bundleName, IMessage.HIGH_SEVERITY, msgId, msgArgs, target); - message.setLineNo(lineNumber); - message.setGroupName(groupName); - - _reporter.addMessage(this, message); - - } - - public void addLocalizedError(String msg, Object target) { - _reporter.addMessage(this, new LocalizedMessage(IMessage.HIGH_SEVERITY, msg, target)); - } - - public void addLocalizedError(String msg, Object target, int lineNumber) { - IMessage message = new LocalizedMessage(IMessage.HIGH_SEVERITY, msg, target); - message.setLineNo(lineNumber); - _reporter.addMessage(this, message); - } - - /** - * <p> - * Create an <em>informational</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require no arguments. - * </p> - * - * @param msgId - * The ID of the message to be created. - */ - - public void addInfo(String msgId) { - addInfo(getBaseName(), msgId, null); - } - - /** - * <p> - * Create an <em>informational</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require no arguments. - * </p> - * - * @param msgId - * The ID of the message to be created. - * @param msgArgs - * The parameters for the message. - */ - - public void addInfo(String msgId, String[] msgArgs) { - addInfo(getBaseName(), msgId, msgArgs); - } - - /** - * <p> - * Create an <em>informational</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require no arguments. - * </p> - * - * @param msgCategory - * The base name of the message bundle to use. - * @param msgId - * The ID of the message to be created. - */ - - public void addInfo(String msgCategory, String msgId) { - addInfo(msgCategory, msgId, null); - } - - /** - * <p> - * Create an <em>informational</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require one or more arguments. - * </p> - * - * @param msgCategory - * The base name of the message bundle to use. - * @param msgId - * The ID of the message to be created. - * @param msgArgs - * The parameters for the message. - */ - - public void addInfo(String bundleName, String msgId, String[] msgArgs) { - addInfo(bundleName, msgId, msgArgs, null); - } - - /** - * <p> - * Create an <em>informational</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require one or more arguments. - * </p> - * - * @param msgCategory - * The base name of the message bundle to use. - * @param msgId - * The ID of the message to be created. - * @param msgArgs - * The parameters for the message. - */ - - public void addInfo(String bundleName, String msgId, String[] msgArgs, Object target) { - _reporter.addMessage(this, new Message(bundleName, IMessage.LOW_SEVERITY, msgId, msgArgs, target)); - } - - public void addLocalizedInfo(String msg, Object target) { - _reporter.addMessage(this, new LocalizedMessage(IMessage.LOW_SEVERITY, msg, target)); - } - - /** - * <p> - * Create a <em>warning</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require no arguments. - * </p> - * - * @param msgId - * The ID of the message to be created. - */ - - public void addWarning(String msgId) { - addWarning(getBaseName(), msgId, null); - } - - /** - * <p> - * Create a <em>warning</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require no arguments. - * </p> - * - * @param msgId - * The ID of the message to be created. - * @param msgArgs - * The parameters for the message. - */ - - public void addWarning(String msgId, String[] msgArgs) { - addWarning(getBaseName(), msgId, msgArgs); - } - - /** - * <p> - * Create a <em>warning</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require no arguments. - * </p> - * - * @param msgCategory - * The base name of the message bundle to use. - * @param msgId - * The ID of the message to be created. - */ - - public void addWarning(String msgCategory, String msgId) { - addWarning(msgCategory, msgId, null); - } - - /** - * <p> - * Create a <em>warning</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require one or more arguments. - * </p> - * - * @param msgCategory - * The base name of the message bundle to use. - * @param msgId - * The ID of the message to be created. - * @param msgArgs - * The parameters for the message. - */ - - public void addWarning(String bundleName, String msgId, String[] msgArgs) { - addWarning(bundleName, msgId, msgArgs, null); - } - - /** - * <p> - * Create a <em>warning</em> message and route it to the cached reporter. This form of - * <code>addError</code> is for messages which require one or more arguments. - * </p> - * - * @param msgCategory - * The base name of the message bundle to use. - * @param msgId - * The ID of the message to be created. - * @param msgArgs - * The parameters for the message. - */ - - public void addWarning(String bundleName, String msgId, String[] msgArgs, Object target) { - _reporter.addMessage(this, new Message(bundleName, IMessage.NORMAL_SEVERITY, msgId, msgArgs, target)); - } - - public void addWarning(String bundleName, String msgId, String[] msgArgs, Object target, String groupName) { - IMessage message = new Message(bundleName, IMessage.NORMAL_SEVERITY, msgId, msgArgs, target); - message.setGroupName(groupName); - _reporter.addMessage(this, message); - } - - public void addLocalizedWarning(String msg, Object target) { - _reporter.addMessage(this, new LocalizedMessage(IMessage.NORMAL_SEVERITY, msg, target)); - } - public void addLocalizedWarning(String msg, Object target, String groupName) { - IMessage message = new LocalizedMessage(IMessage.NORMAL_SEVERITY, msg, target); - message.setGroupName(groupName); - _reporter.addMessage(this, message); - } - - /** - * Perform any resource cleanup once validation is complete. - */ - public void cleanup() { - _reporter = null; - } - - /** - * Perform any resource cleanup once validation is complete. If cleanup will take some time, the - * IValidator should report subtask information to the user through the IReporter parameter. The - * AReporter parameter will not be null. - * - * @deprecated Use cleanup() - */ - public void cleanup(IReporter reporter) { - _reporter = null; - } - - /** - * Returns the name of the Validator, as it should be displayed in the UI. The ValidationBuilder - * uses this string as input to the IProgressMonitor. i.e., At some point during the validation - * process, the Validation Builder will output this string: "{0} is validating {1}.", where {0} - * is the string that this method returns, and {1} is the name of the current resource. - */ - public String[] get1Param(String string1) { - String[] parms = new String[1]; - parms[0] = string1; - return parms; - } - - /** - * Returns the name of the Validator, as it should be displayed in the UI. The ValidationBuilder - * uses this string as input to the IProgressMonitor. i.e., At some point during the validation - * process, the Validation Builder will output this string: "{0} is validating {1}.", where {0} - * is the string that this method returns, and {1} is the name of the current resource. - */ - public String[] get2Param(String string1, String string2) { - String[] parms = new String[2]; - parms[0] = string1; - parms[1] = string2; - return parms; - } - - /** - * Returns the name of the Validator, as it should be displayed in the UI. The ValidationBuilder - * uses this string as input to the IProgressMonitor. i.e., At some point during the validation - * process, the Validation Builder will output this string: "{0} is validating {1}.", where {0} - * is the string that this method returns, and {1} is the name of the current resource. - */ - public String[] get3Param(String string1, String string2, String string3) { - String[] parms = new String[2]; - parms[0] = string1; - parms[1] = string2; - parms[2] = string3; - return parms; - } - - /** - * <p> - * Answer the id of the resource bundle which is used by the receiver. - * </p> - */ - - public abstract String getBaseName(); - - /** - * Returns a localized message from a resource bundle. - * - * @param msgCategory - * The baseName of the resource bundle (filename minus any locale suffix) - * @param msgId - * The key of the message to lookup from the bundle. - * @param msgArgs - * An array of arguments that will be substituted into any message arguments in the - * message's value. - * @param locale - * The locale to retrieve the message text from. - */ - public String getMessage(String msgCategory, String msgId, String[] msgArgs, Locale locale) { - return J2EEValidationResourceHandler.getExternalizedMessage(msgCategory, msgId, getClass(), msgArgs, locale); - } - - /** - * Returns a localized message from a resource bundle. - * - * @param msgCategory - * The baseName of the resource bundle (filename minus any locale suffix) - * @param msgId - * The key of the message to lookup from the bundle. - * @param locale - * The locale to retrieve the message text from. - */ - public String getMessage(String msgCategory, String msgId, Locale locale) { - return J2EEValidationResourceHandler.getExternalizedMessage(msgCategory, msgId, getClass(), locale); - } - - /** - * Returns the name of the Validator, as it should be displayed in the UI. The ValidationBuilder - * uses this string as input to the IProgressMonitor. i.e., At some point during the validation - * process, the Validation Builder will output this string: "{0} is validating {1}.", where {0} - * is the string that this method returns, and {1} is the name of the current resource. - */ - public String getName() { - return getName(Locale.getDefault()); - } - - /** - * <p> - * Returns the name of the Validator, as it should be displayed in the UI. The ValidationBuilder - * uses this string as input to the IProgressMonitor. i.e., At some point during the validation - * process, the Validation Builder will output this string: - * </p> - * - * <pre> - * "{0} is validating {1}.", - * </pre> - * - * <p> - * where - * </p> - * - * <pre> - * {0} is the string that this method returns, - * </pre> - * - * <p> - * and - * </p> - * - * <pre> - * {1} is the name of the current resource. - * </pre> - * - * @param locale - * The locale from which to retrieve the name text. - */ - - public String getName(Locale locale) { - return getMessage(getBaseName(), VALIDATOR_NAME, locale); - } - - /** - * Returns the name of the Validator, as it should be displayed in the UI. The ValidationBuilder - * uses this string as input to the IProgressMonitor. i.e., At some point during the validation - * process, the Validation Builder will output this string: "{0} is validating {1}.", where {0} - * is the string that this method returns, and {1} is the name of the current resource. - */ - public String[] getParam1(String string1) { - String[] parms = new String[1]; - parms[0] = string1; - return parms; - } - - protected void initialize() { - // Default - } - - /** - * This is the method which performs the validation on the MOF model. <br> - * <br> - * <code>helper</code> and <code>reporter</code> may not be null. <code>changedFiles</code> - * may be null, if a full build is desired. <br> - * <br> - * <code>helper</code> loads a EObject. The EObject is the root of the MOF model about to be - * validated. When this object is traversed, you can reach every element in the MOF model which - * needs to be validated. <br> - * <br> - * <code>reporter</code> is an instance of an IReporter interface, which is used for - * interaction with the user. <br> - * <br> - * <code>changedFiles</code> is an array of file names which have changed since the last - * validation. If <code>changedFiles</code> is null, or if it is an empty array, then a full - * build is performed. Otherwise, validation on just the files listed in the Vector is - * performed. - */ - - public void validate(IValidationContext inHelper, IReporter inReporter) throws ValidationException { - _helper = inHelper; - _reporter = inReporter; - if ((inHelper == null) || (inReporter == null)) { - return; - } - } - - public IStatus validateInJob(IValidationContext inHelper, IReporter inReporter) throws ValidationException { - - _helper = inHelper; - _reporter = inReporter; - status = OK_STATUS; - return status; - } - - /** - * Validate EJB references. - */ - protected void validateEJBRefManadatoryElements(EjbRef eref, String ownerName) { - String[] parms = new String[2]; - parms[0] = eref.getName(); - parms[1] = ownerName; - - if ((eref.getName() == null) || (eref.getName().trim().length() == 0)) - addWarning(EREF_CATEGORY, ERROR_EAR_MISSING_EREFNAME, parms, eref); - if (eref.isSetType()) { - if (eref.getType() == null) - addWarning(EREF_CATEGORY, ERROR_EAR_INVALID_EREFTYPE, parms); - } else - addWarning(EREF_CATEGORY, ERROR_EAR_MISSING_EREFTYPE, parms); - - String refHome = eref.getHome(); - if ((refHome == null) || (refHome.trim().length() == 0)) - addWarning(EREF_CATEGORY, ERROR_EAR_MISSING_EREFHOME, parms, eref); - - if ((eref.getRemote() == null) || (eref.getRemote().trim().length() == 0)) - addWarning(EREF_CATEGORY, ERROR_EAR_MISSING_EREFREMOTE, parms, eref); - } - - /** - * Validate for duplicates in EAR Roles. - */ - protected void validateResourceRefs(List resourceRefs) { - - int numRefs = resourceRefs.size(); - Set refSet = new HashSet(numRefs); - - for (int refNo = 0; refNo < numRefs; refNo++) { - String refName = ((ResourceRefImpl) (resourceRefs.get(refNo))).getName(); - String[] parms = new String[1]; - parms[0] = refName; - if (!(refSet.add(refName))) - addError(EREF_CATEGORY, ERROR_EAR_DUPLICATE_RESREF, parms, resourceRefs.get(refNo)); - } - } - - /** - * Validate the existance of Web Roles within the EAR Roles and duplicates in Web Roles. - */ - protected void validateWEBRolesWithEARRoles(EList earRoleList, EList warRoles) { - int numRoles = warRoles.size(); - - // TFB This implementation requires a 'small' list of warRoles. - // If 'warRoles' gets too big then another implementation - // will be necessary. - - for (int roleNo = 0; roleNo < numRoles; roleNo++) { - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createErrorStatus(msg); - } - - SecurityRoleImpl nextRole = (SecurityRoleImpl) (warRoles.get(roleNo)); - String[] parms = new String[1]; - parms[0] = nextRole.getRoleName(); - if (!(earRoleList.contains(nextRole))) - addWarning(WAR_CATEGORY, ERROR_EAR_MISSING_EJB_ROLE, parms, nextRole); - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/MessageDrivenBeanClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/MessageDrivenBeanClassVRule.java deleted file mode 100644 index 8a24f775b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/MessageDrivenBeanClassVRule.java +++ /dev/null @@ -1,291 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.MessageDriven; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public final class MessageDrivenBeanClassVRule extends ABeanClassVRule implements IEJBType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_MESSAGE_BEANCLASS; - private static final Object[] DEPENDS_ON = null; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".mb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_MESSAGEDRIVENBEAN, JAVAX_JMS_MESSAGELISTENER}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final boolean SHOULD_VALIDATE_TRANSIENT_FIELD = false; - private final boolean SHOULD_BE_ABSTRACT = false; - private final int IS_REMOTE = NEITHER; - - private final boolean SHOULD_BE_FINAL = false; - private final boolean SHOULD_BE_PUBLIC = true; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{ONMESSAGE, CONSTRUCTOR_NOPARM, EJBCREATE_NOPARM, EJBREMOVE_NOPARM}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{FINALIZE_NOPARM}; - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, ONMESSAGE, CONSTRUCTOR_NOPARM, CONSTRUCTOR, EJBCREATE_NOPARM, EJBCREATE, EJBREMOVE_NOPARM, FINALIZE_NOPARM}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2050_constr, new String[]{CHKJ2050_constr+EXT}); - MESSAGE_IDS.put(CHKJ2050_onMessage, new String[]{CHKJ2050_onMessage+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbCreate, new String[]{CHKJ2050_ejbCreate+EXT}); - MESSAGE_IDS.put(CHKJ2050_setEntityContext, new String[]{CHKJ2050_setEntityContext+EXT}); - MESSAGE_IDS.put(CHKJ2050_unsetEntityContext, new String[]{CHKJ2050_unsetEntityContext+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbActivate, new String[]{CHKJ2050_ejbActivate+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbPassivate, new String[]{CHKJ2050_ejbPassivate+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbRemove, new String[]{CHKJ2050_ejbRemove+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbLoad, new String[]{CHKJ2050_ejbLoad+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbStore, new String[]{CHKJ2050_ejbStore+EXT}); - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2014, new String[]{CHKJ2014+EXT}); - MESSAGE_IDS.put(CHKJ2022, new String[]{CHKJ2022+EXT}); - MESSAGE_IDS.put(CHKJ2015, new String[]{CHKJ2015+EXT}); - - MESSAGE_IDS.put(CHKJ2103, new String[]{CHKJ2103+SPEC}); - MESSAGE_IDS.put(CHKJ2421, new String[]{CHKJ2421+BEXT, CHKJ2421+MEXT}); - MESSAGE_IDS.put(CHKJ2422, new String[]{CHKJ2422+BEXT, CHKJ2422+MEXT}); - MESSAGE_IDS.put(CHKJ2423, new String[]{CHKJ2423+BEXT, CHKJ2423+MEXT}); - MESSAGE_IDS.put(CHKJ2424, new String[]{CHKJ2424+BEXT, CHKJ2424+MEXT}); - MESSAGE_IDS.put(CHKJ2426, new String[]{CHKJ2426+BEXT, CHKJ2426+MEXT}); - - MESSAGE_IDS.put(CHKJ2427, new String[]{CHKJ2427+BEXT, CHKJ2427+MEXT}); - MESSAGE_IDS.put(CHKJ2428, new String[]{CHKJ2428+BEXT, CHKJ2428+MEXT}); - MESSAGE_IDS.put(CHKJ2431, new String[]{CHKJ2431+BEXT, CHKJ2431+MEXT}); - MESSAGE_IDS.put(CHKJ2439, new String[]{CHKJ2439+BEXT, CHKJ2439+MEXT}); - - MESSAGE_IDS.put(CHKJ2445, new String[]{CHKJ2445+BEXT, CHKJ2445+MEXT}); - MESSAGE_IDS.put(CHKJ2446, new String[]{CHKJ2446+BEXT, CHKJ2446+MEXT}); - MESSAGE_IDS.put(CHKJ2447, new String[]{CHKJ2447+BEXT, CHKJ2447+MEXT}); - MESSAGE_IDS.put(CHKJ2501_ejbCreate, new String[]{CHKJ2501_ejbCreate+BEXT, CHKJ2501_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2501_ejbRemove, new String[]{CHKJ2501_ejbRemove+BEXT, CHKJ2501_ejbRemove+MEXT}); - MESSAGE_IDS.put(CHKJ2501_onMessage, new String[]{CHKJ2501_onMessage+BEXT, CHKJ2501_onMessage+MEXT}); - - MESSAGE_IDS.put(CHKJ2492, new String[]{CHKJ2492+BEXT, CHKJ2492+MEXT}); - MESSAGE_IDS.put(CHKJ2493, new String[]{CHKJ2493+BEXT, CHKJ2493+MEXT}); - MESSAGE_IDS.put(CHKJ2494, new String[]{CHKJ2494+BEXT, CHKJ2494+MEXT}); - - MESSAGE_IDS.put(CHKJ2502_finalize, new String[]{CHKJ2502_finalize+BEXT, CHKJ2502_finalize+MEXT}); - - MESSAGE_IDS.put(CHKJ2503_onMessage, new String[]{CHKJ2503_onMessage+BEXT, CHKJ2503_onMessage+MEXT}); - - MESSAGE_IDS.put(CHKJ2505_ejbRemove, new String[]{CHKJ2505_ejbRemove+BEXT, CHKJ2505_ejbRemove+MEXT}); - MESSAGE_IDS.put(CHKJ2505_onMessage, new String[]{CHKJ2505_onMessage+BEXT, CHKJ2505_onMessage+MEXT}); - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final boolean shouldValidateTransientField() { - return SHOULD_VALIDATE_TRANSIENT_FIELD; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final boolean followEjbCreateReturnTypeRules(EnterpriseBean bean, Method method) { - return method.isVoid(); - } - - public final boolean shouldBeAbstract(JavaClass clazz) { - return SHOULD_BE_ABSTRACT; - } - - public final boolean shouldBeFinal(JavaClass clazz) { - return SHOULD_BE_FINAL; - } - - public final boolean shouldBePublic(JavaClass clazz) { - return SHOULD_BE_PUBLIC; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final JavaHelpers getEjbCreateReturnType(EnterpriseBean bean, Method method) throws InvalidInputException { - return ValidationRuleUtility.getType(ITypeConstants.VOID, bean); - } - - public final String getEjbCreateReturnTypeName(EnterpriseBean bean, Method method) throws InvalidInputException { - return ITypeConstants.VOID; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - - public final void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this); - - if((methodType & ONMESSAGE) == ONMESSAGE) { - validateOnMessageMethod(vc, bean, clazz, method); - } - else if((methodType & EJBCREATE) == EJBCREATE) { - validateEjbCreateMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else if((methodType & EJBREMOVE_NOPARM) == EJBREMOVE_NOPARM) { - validateEjbRemoveMethod(vc, bean, clazz, method); - } - else { - // Method isn't supposed to be here. Let the validateMethodsWhichMustNotExist - // take care of it. - } - } - - public String getMatchingHomeMethodName(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - return getNoMatchingMethodName(vc, method); - } - - public void validateEjbCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - super.validateEjbCreateMethod(vc, bean, clazz, method, methodsExtendedLists); - - if(ValidationRuleUtility.throwsApplicationException(method, bean)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2501_ejbCreate, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - } - - public void validateEjbRemoveMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, InvalidInputException, ValidationException { - super.validateEjbRemoveMethod(vc, bean, clazz, method); - - if(ValidationRuleUtility.throwsApplicationException(method, bean)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2501_ejbRemove, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - } - - public boolean validateEjbCreateMethodExceptions() { - // Don't check for CreateException - return false; - } - - /** - * @param vc - * @param bean - * @param clazz - * @throws InvalidInputException - */ - protected void validateShouldBeSuperTypes(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - if((bean.getVersionID() == J2EEVersionConstants.EJB_2_0_ID) || (bean.getVersionID() == J2EEVersionConstants.EJB_2_1_ID)){ - JavaClass jclass = ((MessageDriven)bean).getMessagingType(); - if( jclass != null ){ - if (jclass.getQualifiedName().equals(ITypeConstants.CLASSNAME_JAVAX_JMS_MESSAGELISTENER)){ - super.validateShouldBeSuperTypes(vc,bean,clazz); - } - } - } - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.model.validation.ejb.ejb20rules.impl.ATypeVRule#validateMethodsWhichMustExist(org.eclipse.jst.j2ee.internal.model.validation.IValidationContext, org.eclipse.jst.j2ee.internal.ejb.EnterpriseBean, org.eclipse.jem.java.JavaClass) - */ - public void validateMethodsWhichMustExist(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException, - ValidationCancelledException, ValidationException { - if((bean.getVersionID() == J2EEVersionConstants.EJB_2_0_ID) || (bean.getVersionID() == J2EEVersionConstants.EJB_2_1_ID)){ - JavaClass jclass = ((MessageDriven)bean).getMessagingType(); - if( jclass != null ){ - if (jclass.getQualifiedName().equals(ITypeConstants.CLASSNAME_JAVAX_JMS_MESSAGELISTENER)){ - super.validateMethodsWhichMustExist(vc, bean, clazz); - } - } - } - - } - public void validateOnMessageMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws ValidationCancelledException, InvalidInputException, ValidationException { - // IWAD4396 = This method must be public. Read section 15.7.4 of the EJB 2.0 specification. - if(!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2445, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4397 = This method must not be final. Read section 15.7.4 of the EJB 2.0 specification. - if(method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2446, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4398 = This method must not be static. Read section 15.7.4 of the EJB 2.0 specification. - if(method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2447, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - // IWAD4399 = This method must return void. Read section 15.7.4 of the EJB 2.0 specification. - // IWAD4400 = This method must not throw application exceptions. Read section 15.7.4 of the EJB 2.0 specification. - if(!method.isVoid()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2505_onMessage, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - - if(ValidationRuleUtility.throwsApplicationException(method, bean)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2501_onMessage, IEJBValidationContext.INFO, bean, clazz, method, this); - vc.addMessage(message); - } - - if(!followRemoteExceptionRules(bean, method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2503_onMessage, IEJBValidationContext.WARNING, bean, clazz, method, this); - vc.addMessage(message); - } - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/MessageUtility.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/MessageUtility.java deleted file mode 100644 index 4ae32f131..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/MessageUtility.java +++ /dev/null @@ -1,358 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.Map; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xmi.XMIResource; -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodPermission; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - - -/** - * @version 1.0 - * @author - */ -public final class MessageUtility { - public static final String NO_MESSAGE_ID = ""; //$NON-NLS-1$ - - private static MessageUtility inst = null; - - private MessageUtility() { - //Default - } - - public static MessageUtility getUtility() { - if(inst == null) { - inst = new MessageUtility(); - } - return inst; - } - - public static String getGroupName(Object targetParent) { - if(targetParent == null) { - // No context to associate the message with - return null; - } - - // So far, the only target parent which is used as a group name is the EnterpriseBean - if(targetParent instanceof EnterpriseBean) { - EnterpriseBean bean = (EnterpriseBean)targetParent; - if(bean == null) { - return null; - } - - if(bean.getName() != null) { - return bean.getName(); - } - return ((XMIResource)bean.eResource()).getID(bean); - } - - return null; - } - - protected String getMessageId(Object messageNumber, EnterpriseBean bean, IValidationRule rule) { - if(messageNumber == null) { - return NO_MESSAGE_ID; - } - - Map ids = rule.getMessageIds(); - if((ids == null) || (ids.size() == 0)) { - return messageNumber.toString(); - } - - int index = -1; - - String[] result = (String[])ids.get(messageNumber); - if(result == null) { - return messageNumber.toString(); - } - else if(result.length == 1) { - if(result[0].equals("")) { //$NON-NLS-1$ - return messageNumber.toString(); - } - return result[0]; - } - else { - // By convention, this is the order of the entries in the String[] - if(bean.isSession()) { - index = 0; - } - else if(bean.isContainerManagedEntity()) { - index = 1; - } - else if(bean.isBeanManagedEntity()) { - index = 2; - } - else if(bean.isMessageDriven()) { - index = 3; - } - else { - // what the heck is it? - return messageNumber.toString(); - } - - if((result.length <= index) || (result[index].equals(""))) { //$NON-NLS-1$ - return messageNumber.toString(); - } - - return result[index]; - } - } - - /* - * Use this method when the message is not registered on a method. - */ - protected String getMessageId(Object messageNumber, IValidationRule rule) { - if(messageNumber == null) { - return NO_MESSAGE_ID; - } - - Map ids = rule.getMessageIds(); - if((ids == null) || (ids.size() == 0)) { - return messageNumber.toString(); - } - - String[] result = (String[])ids.get(messageNumber); - if((result == null) || (result.length == 0) || (result[0].equals(""))) { //$NON-NLS-1$ - return messageNumber.toString(); - } - return result[0]; - } - - /* - * Use this method when the message is registered on a method. - */ - protected String getMessageId(Object messageNumber, IValidationRule rule, boolean isMethodOnClass) { - if(messageNumber == null) { - return NO_MESSAGE_ID; - } - - Map ids = rule.getMessageIds(); - if((ids == null) || (ids.size() == 0)) { - return messageNumber.toString(); - } - - String[] messages = (String[])ids.get(messageNumber); - String result = null; - if(messages != null) { - if(isMethodOnClass && messages.length == 2) { - result = messages[1]; - } - else if (messages.length >= 1) { - result = messages[0]; - } - } - - if((result == null) || (result.equals(""))) { //$NON-NLS-1$ - return messageNumber.toString(); - } - - return result; - } - - protected IMessage getMessage(IEJBValidationContext vc, int severity, String id, String[] parms, Object target, String groupName) { - IMessage message = vc.getMessage(); - message.setSeverity(severity); - message.setId(id); - message.setParams(parms); - message.setTargetObject(target); - message.setGroupName(groupName); - return message; - } - - /** - * For use only by the DD VRules. - */ - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EJBJar target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, SecurityRole target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, SecurityRoleRef target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, MethodElement target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, MethodTransaction target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, MethodPermission target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EJBRelationshipRole target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, CommonRelationshipRole target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EJBRelation target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, AssemblyDescriptor target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, null); - } - - /** - * For use only by the DD VRules. - */ - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EJBJar target, String[] parms, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, parms, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, MethodElement target, String[] parms, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, parms, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EJBRelationshipRole target, String[] parms, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, parms, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, SecurityRoleRef target, String[] parms, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, parms, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EJBRelation target, String[] parms, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, parms, target, null); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EnterpriseBean bean, Object target, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, target, getGroupName(bean)); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EnterpriseBean bean, Object target, String[] parms, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, parms, target, getGroupName(bean)); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EnterpriseBean bean, IValidationRule rule) { - String id = getMessageId(messageNumber, bean, rule); - return getMessage(vc, severity, id, null, bean, getGroupName(bean)); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EnterpriseBean bean, String[] parms, IValidationRule rule) { - String id = getMessageId(messageNumber, bean, rule); - return getMessage(vc, severity, id, parms, bean, getGroupName(bean)); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EnterpriseBean bean, JavaClass clazz, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, null, clazz, getGroupName(bean)); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EnterpriseBean bean, JavaClass clazz, String[] additionalParms, IValidationRule rule) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, additionalParms, clazz, getGroupName(bean)); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EnterpriseBean bean, JavaClass clazz, Method method, IValidationRule rule) { - if(method == null) { - return getMessage(vc, messageNumber, severity, bean, clazz, rule); - } - - return getMessage(vc, messageNumber, severity, null, clazz, method, method.getMethodElementSignature(), ValidationRuleUtility.onClass(clazz, method), getGroupName(bean), rule); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EnterpriseBean bean, JavaClass clazz, Method method, String[] additionalParms, IValidationRule rule) { - if(method == null) { - return getMessage(vc, messageNumber, severity, bean, clazz, additionalParms, rule); - } - - return getMessage(vc, messageNumber, severity, additionalParms, clazz, method, method.getMethodElementSignature(), ValidationRuleUtility.onClass(clazz, method), getGroupName(bean), rule); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EnterpriseBean bean, JavaClass clazz, Field field, IValidationRule rule) { - if(field == null) { - return getMessage(vc, messageNumber, severity, bean, clazz, rule); - } - - return getMessage(vc, messageNumber, severity, null, clazz, field, field.getName(), ValidationRuleUtility.onClass(clazz, field), getGroupName(bean), rule); - } - - public IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, EnterpriseBean bean, JavaClass clazz, Field field, String[] additionalParms, IValidationRule rule) { - if(field == null) { - return getMessage(vc, messageNumber, severity, bean, clazz, additionalParms, rule); - } - - return getMessage(vc, messageNumber, severity, additionalParms, clazz, field, field.getName(), ValidationRuleUtility.onClass(clazz, field), getGroupName(bean), rule); - } - - protected IMessage getMessage(IEJBValidationContext vc, Object messageNumber, int severity, String[] additionalParms, JavaClass clazz, EObject fieldOrMethod, String fieldOrMethodName, boolean isMethodOnClass, String groupName, IValidationRule rule) { - if(fieldOrMethod == null) { - String id = getMessageId(messageNumber, rule); - return getMessage(vc, severity, id, additionalParms, clazz, groupName); - } - - String[] parms = null; - EObject target = null; - if(isMethodOnClass) { - // leave parms null since no parms are needed - target = fieldOrMethod; - parms = additionalParms; - } - else { - if(additionalParms == null) { - parms = new String[]{fieldOrMethodName}; - } - else { - parms = new String[additionalParms.length + 1]; - parms[0] = fieldOrMethodName; - System.arraycopy(additionalParms, 0, parms, 1, additionalParms.length); - } - target = clazz; - } - - String id = getMessageId(messageNumber, rule, isMethodOnClass); - return getMessage(vc, severity, id, parms, target, groupName); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/MethodUtility.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/MethodUtility.java deleted file mode 100644 index 85408bd36..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/MethodUtility.java +++ /dev/null @@ -1,2149 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.Arrays; -import java.util.List; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; - - -public final class MethodUtility { - private static MethodUtility _inst = null; - private long[] _methodTypeIndex; - private IMethodType[] _methodTypes; - private long[] _fieldTypeIndex; - private IFieldType[] _fieldTypes; - - private MethodUtility() { - buildTypeList(); - } - - public static MethodUtility getUtility() { - if(_inst == null) { - _inst = new MethodUtility(); - } - return _inst; - } - - protected IMethodType[] getMethodTypes() { - return _methodTypes; - } - - public IFieldType getFieldType(long type) { - int index = Arrays.binarySearch(_fieldTypeIndex, type); - if(index > _fieldTypes.length) { - return null; - } - - if(index < 0) { - return null; - } - - if(_fieldTypes[index].getId() != type) { - return null; - } - - return _fieldTypes[index]; - } - - public IMethodType getMethodType(long type) { - int index = Arrays.binarySearch(_methodTypeIndex, type); - if(index > _methodTypes.length) { - return null; - } - - if(index < 0) { - return null; - } - - if(_methodTypes[index].getId() != type) { - return null; - } - - return _methodTypes[index]; - } - - public long getMethodTypeId(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists, IEJBType rule) { - IMethodType mType = getMethodType(bean, clazz, method, methodsExtendedLists, rule); - if(mType == null) { - return rule.getDefaultMethodType(); - } - - return mType.getId(); - } - - public long getFieldTypeId(EnterpriseBean bean, JavaClass clazz, Field field, IEJBType rule) { - IFieldType mType = getFieldType(bean, clazz, field, rule); - if(mType == null) { - return IMethodAndFieldConstants.EXCLUDED_FIELD; - } - - return mType.getId(); - } - - public IFieldType getFieldType(EnterpriseBean bean, JavaClass clazz, Field field, IEJBType rule) { - IFieldType[] knownFieldTypes = _fieldTypes; - if(knownFieldTypes == null) { - return null; - } - - for(int i=0; i<knownFieldTypes.length; i++) { - IFieldType mt = knownFieldTypes[i]; - if(mt == null) { - continue; - } - - if(mt.isFieldType(bean, clazz, field)) { - return mt; - } - } - - // If it's not one of the recognized methods, which dynamically-named - // method type is it? - return null; - } - - public IMethodType getMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists, IEJBType rule) { - long[] knownMethodTypes = rule.getKnownMethodTypes(); - if(knownMethodTypes == null) { - return null; - } - - for(int i=0; i<knownMethodTypes.length; i++) { - IMethodType mt = getMethodType(knownMethodTypes[i]); - if(mt == null) { - continue; - } - - if(mt.isDefaultType()) { - continue; - } - - if(mt.isMethodType(bean, clazz, method, methodsExtendedLists)) { - return mt; - } - } - - // If it's not one of the recognized methods, which dynamically-named - // method type is it? - return getMethodType(rule.getDefaultMethodType()); - } - - private void buildTypeList() { - int typeCount = 29; // This is the number of identifiable methods in IMethodAndFieldConstants - _methodTypeIndex = new long[typeCount]; - _methodTypes = new IMethodType[typeCount]; - int count = 0; - - int fieldTypeCount = 1; // This is the number of identifiable fields in IMethodAndFieldConstants - _fieldTypeIndex = new long[fieldTypeCount]; - _fieldTypes = new IFieldType[fieldTypeCount]; - int fieldCount = 0; - - // The index of the type in the long[] is equal to the - // index of the IMethodType in the IMethodType[]. By using - // this technique instead of a HashMap, we don't need to - // create an Integer every time we need to locate the - // IMethodType. - _methodTypeIndex[count] = IMethodAndFieldConstants.ACCESSOR; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.ACCESSOR; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return ""; // this method will never be called //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_acc; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method exists -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "ACCESSOR::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "ACCESSOR::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "ACCESSOR::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "ACCESSOR::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.BUSINESS; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.BUSINESS; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - if(method == null) { - return ""; //$NON-NLS-1$ - } - return method.getName(); - } - - public String getMessageId_messageMissing() { - // Never check to see if a business method is missing -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "BUSINESS::getMessageId_messageMissing"; //$NON-NLS-1$ - } - - public String getMessageId_messageExists() { - // Never statically check to see if a business method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "BUSINESS::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_bus; - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. - return IMessagePrefixEjb20Constants.CHKJ2504_business; - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. - return IMessagePrefixEjb20Constants.CHKJ2500_business; - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - // It's a business method if it's exposed on the component interface. - // HACK ... depends on the fact that ABeanClassVRule, and its subtypes, are the only classes that will ever have a BUSINESS method. - if(ValidationRuleUtility.getMethod(method, method.getName(), ABeanClassVRule.getRemoteComponentMethodsExtended(methodsExtendedLists)) != null) { - return true; - } - - if(ValidationRuleUtility.getMethod(method, method.getName(), ABeanClassVRule.getRemoteComponentMethodsExtended(methodsExtendedLists)) != null) { - return true; - } - - // internal helper method - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.CLINIT; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.CLINIT; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "clinit"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - // Never check to see if <clinit> is missing -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CLINIT::getMessageId_messageMissing"; //$NON-NLS-1$ - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CLINIT::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CLINIT::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CLINIT::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CLINIT::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals("<clinit>")) { //$NON-NLS-1$ - return true; - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - // Be careful to keep the order of these declarations the same as they are in - // IMethodAndFieldConstants. Each method type is an ascending number, and if they - // go out of order, the binary search can't find the method type. - _methodTypeIndex[count] = IMethodAndFieldConstants.CONSTRUCTOR; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.CONSTRUCTOR; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return clazz.getName(); - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_constr; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CONSTRUCTOR::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CONSTRUCTOR::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CONSTRUCTOR::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CONSTRUCTOR::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.isConstructor()) { - return true; - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.CONSTRUCTOR_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.CONSTRUCTOR_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return clazz.getName() + "()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_constr; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CONSTRUCTOR_NOPARM::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CONSTRUCTOR_NOPARM::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CONSTRUCTOR_NOPARM::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CONSTRUCTOR_NOPARM::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.isConstructor()) { - // This class must define a public constructor which takes no parameters. Read section 7.10.1 of the EJB 2.0 specification. - if(ValidationRuleUtility.isPublic(method)) { - if(method.getParameters().size() == 0) { - return true; - } - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.CREATE; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.CREATE; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "create"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_create; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CREATE::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_create; - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. - return IMessagePrefixEjb20Constants.CHKJ2504_create; - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. - return IMessagePrefixEjb20Constants.CHKJ2500_create; - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_CREATE)) { - return true; - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.CREATE_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.CREATE_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "create()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_create; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "CREATE_NOPARM::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_create; - } - - public String getMessageId_messageMissingMatching() { - return IMessagePrefixEjb20Constants.CHKJ2504_create; - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. - return IMessagePrefixEjb20Constants.CHKJ2500_create; - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_CREATE)) { - if(method.listParametersWithoutReturn().length == 0) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBACTIVATE_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBACTIVATE_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "ejbActivate()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbActivate; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBACTIVATE_NOPARM::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBACTIVATE_NOPARM::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBACTIVATE_NOPARM::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBACTIVATE_NOPARM::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBACTIVATE)) { - if(method.listParametersWithoutReturn().length == 0) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBCREATE; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBCREATE; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "ejbCreate"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbCreate; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBCREATE::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_ejbCreate; - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBCREATE::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. - return IMessagePrefixEjb20Constants.CHKJ2500_ejbCreate; - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_EJBCREATE)) { - return true; - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBCREATE_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBCREATE_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "ejbCreate()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbCreate; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBCREATE_NOPARM::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_ejbCreate; - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBCREATE_NOPARM::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBCREATE_NOPARM::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_EJBCREATE)) { - if(method.listParametersWithoutReturn().length == 0) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBFIND; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBFIND; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - if(method == null) { - return "ejbFind"; //$NON-NLS-1$ - } - return method.getName(); - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbFind; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present - return IMessagePrefixEjb20Constants.CHKJ2502_ejbFind; - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_ejbFind; - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBFIND::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. - return IMessagePrefixEjb20Constants.CHKJ2500_ejbFind; - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.PREFIX_EJBFIND)) { - return true; - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBFINDBYPRIMARYKEY; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBFINDBYPRIMARYKEY; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - StringBuffer buffer = new StringBuffer("ejbFindByPrimaryKey("); //$NON-NLS-1$ - String pkName = ""; //$NON-NLS-1$ - if(bean instanceof Entity) { - JavaClass pk = ((Entity)bean).getPrimaryKey(); - pkName = ((pk == null) ? IEJBValidatorConstants.NULL_PRIMARY_KEY : pk.getQualifiedName()); - } - buffer.append(pkName); - buffer.append(")"); //$NON-NLS-1$ - return buffer.toString(); - } - - public boolean isDefaultType() { - return false; - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbFindByPrimaryKey; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBFINDBYPRIMARYKEY::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_ejbFind; - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBFINDBYPRIMARYKEY::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBFINDBYPRIMARYKEY::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.PREFIX_EJBFIND)) { - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBFINDBYPRIMARYKEY)) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBHOME; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBHOME; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - if(method == null) { - return "ejbHome"; //$NON-NLS-1$ - } - return method.getName(); - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbHome; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBHOME::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_ejbHome; - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBHOME::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. - return IMessagePrefixEjb20Constants.CHKJ2500_ejbHome; - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.PREFIX_EJBHOME)) { - return true; - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBLOAD_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBLOAD_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "ejbLoad()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbLoad; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBLOAD::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBLOAD::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBLOAD::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBLOAD::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBLOAD)) { - if(method.listParametersWithoutReturn().length == 0) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBPASSIVATE_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBPASSIVATE_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "ejbPassivate()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbPassivate; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBPASSIVATE::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBPASSIVATE::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBPASSIVATE::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBPASSIVATE::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBPASSIVATE)) { - if(method.listParametersWithoutReturn().length == 0) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBPOSTCREATE; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBPOSTCREATE; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "ejbPostCreate"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - // Can only dynamically check if ejbPostCreate is missing, - // based on what type of ejbCreate methods exist. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBPOSTCREATE::getMessageId_messageMissing"; //$NON-NLS-1$ - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBPOSTCREATE::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - return IMessagePrefixEjb20Constants.CHKJ2503_ejbPostCreate; - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBPOSTCREATE::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBPOSTCREATE::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_EJBPOSTCREATE)) { - return true; - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBREMOVE_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBREMOVE_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "ejbRemove()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbRemove; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBREMOVE::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBREMOVE::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBREMOVE::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBREMOVE::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBREMOVE)) { - if(method.listParametersWithoutReturn().length == 0) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBSELECT; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBSELECT; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - if(method == null) { - return "ejbSelect"; //$NON-NLS-1$ - } - return method.getName(); - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbSelect; - } - - public String getMessageId_messageExists() { - return IMessagePrefixEjb20Constants.CHKJ2502_ejbSelect; - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBSELECT::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBSELECT::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBSELECT::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.PREFIX_EJBSELECT)) { - return true; - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EJBSTORE_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EJBSTORE_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "ejbStore()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_ejbStore; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBSTORE::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBSTORE::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBSTORE::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EJBSTORE::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBSTORE)) { - if(method.listParametersWithoutReturn().length == 0) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.EQUALS; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.EQUALS; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "equals(Object)"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_equals; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EQUALS::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EQUALS::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EQUALS::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "EQUALS::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_EQUALS)) { - JavaParameter[] parm = method.listParametersWithoutReturn(); - if(parm.length == 1) { - try { - JavaHelpers object = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT, bean); - JavaHelpers parmType = parm[0].getJavaType(); - - if(object.equals(parmType)) { - return true; - } - } - catch(InvalidInputException e) { - return false; - } - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.FIND; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.FIND; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - if(method == null) { - return "find"; //$NON-NLS-1$ - } - return method.getName(); - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_find; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "FIND::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_find; - } - - public String getMessageId_messageMissingMatching() { - return IMessagePrefixEjb20Constants.CHKJ2504_find; - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. - return IMessagePrefixEjb20Constants.CHKJ2500_find; - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.PREFIX_FIND)) { - return true; - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.FINDBYPRIMARYKEY; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.FINDBYPRIMARYKEY; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "findByPrimaryKey"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_findByPrimaryKey; - } - - public String getMessageId_messageExists() { - return IMessagePrefixEjb20Constants.CHKJ2500_find; - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_find; - } - - public String getMessageId_messageMissingMatching() { - return IMessagePrefixEjb20Constants.CHKJ2504_find; - } - - public String getMessageId_messageRMI_IIOPParm() { - return IMessagePrefixEjb20Constants.CHKJ2500_find; - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().startsWith(IMethodAndFieldConstants.PREFIX_FIND)) { - if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_FINDBYPRIMARYKEY)) { - return true; - } - } - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.FINALIZE_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.FINALIZE_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "finalize()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - // Never check to see if finalize is missing -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "FINALIZE::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present - return IMessagePrefixEjb20Constants.CHKJ2502_finalize; - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "FINALIZE::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "FINALIZE::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "FINALIZE::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_FINALIZE)) { - if(method.listParametersWithoutReturn().length ==0) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.HASHCODE_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.HASHCODE_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "hashCode()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_hashCode; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "HASHCODE::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "HASHCODE::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "HASHCODE::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "HASHCODE::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_HASHCODE)) { - if(method.listParametersWithoutReturn().length == 0) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.HOME; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.HOME; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "home"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_home; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "HOME::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. - return IMessagePrefixEjb20Constants.CHKJ2503_home; - } - - public String getMessageId_messageMissingMatching() { - return IMessagePrefixEjb20Constants.CHKJ2504_home; - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. - return IMessagePrefixEjb20Constants.CHKJ2500_home; - } - - public boolean isDefaultType() { - return true; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - return true; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.ONMESSAGE; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.ONMESSAGE; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "onMessage"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_onMessage; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "ONMESSAGE::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "ONMESSAGE::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "ONMESSAGE::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "ONMESSAGE::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_ONMESSAGE)) { - JavaParameter[] parms = method.listParametersWithoutReturn(); - if(parms.length == 1) { - try { - JavaHelpers jmsMessage = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_JMS_MESSAGE, bean); - JavaHelpers parmType = parms[0].getJavaType(); - - if(jmsMessage.equals(parmType)) { - return true; - } - } - catch(InvalidInputException e) { - return false; - } - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.SETENTITYCONTEXT; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.SETENTITYCONTEXT; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "setEntityContext"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_setEntityContext; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "SETENTITYCONTEXT::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "SETENTITYCONTEXT::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "SETENTITYCONTEXT::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "SETENTITYCONTEXT::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_SETENTITYCONTEXT)) { - JavaParameter[] parm = method.listParametersWithoutReturn(); - if(parm.length == 1) { - try { - JavaHelpers entityContext = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_EJB_ENTITYCONTEXT, bean); - JavaHelpers parmType = parm[0].getJavaType(); - - if(entityContext.equals(parmType)) { - return true; - } - } - catch(InvalidInputException e) { - return false; - } - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _methodTypeIndex[count] = IMethodAndFieldConstants.UNSETENTITYCONTEXT_NOPARM; - _methodTypes[count++] = new IMethodType() { - public long getId() { - return IMethodAndFieldConstants.UNSETENTITYCONTEXT_NOPARM; - } - - public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { - return "unsetEntityContext()"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissing() { - return IMessagePrefixEjb20Constants.CHKJ2050_unsetEntityContext; - } - - public String getMessageId_messageExists() { - // Never statically check to see if this method is present -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "UNSETENTITYCONTEXT::getMessageId_messageExists"; //$NON-NLS-1$ - } - - public String getMessageId_messageRemoteException() { - // Don't need to know if this method throws a RemoteException. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "UNSETENTITYCONTEXT::getMessageId_messageRemoteException"; //$NON-NLS-1$ - } - - public String getMessageId_messageMissingMatching() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "UNSETENTITYCONTEXT::getMessageId_messageMissingMatching"; //$NON-NLS-1$ - } - - public String getMessageId_messageRMI_IIOPParm() { - // This method doesn't need a matching method. -// return NO_MESSAGE_PREFIX; - // Because it's difficult to find out which method has been called unexpectedly, - // instead of returning the same string for all NO_MESSAGE_PREFIX cases, - // instead return a message id which uniquely identifies which method was called. - return "UNSETENTITYCONTEXT::getMessageId_messageRMI_IIOPParm"; //$NON-NLS-1$ - } - - public boolean isDefaultType() { - return false; - } - - public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - if(method == null) { - return false; - } - - if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_UNSETENTITYCONTEXT)) { - if(method.listParametersWithoutReturn().length == 0) { - return true; - } - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - _fieldTypeIndex[fieldCount] = IMethodAndFieldConstants.SERIALVERSIONUID; - _fieldTypes[fieldCount++] = new IFieldType() { - public long getId() { - return IMethodAndFieldConstants.SERIALVERSIONUID; - } - - public boolean isFieldType(EnterpriseBean bean, JavaClass clazz, Field field) { - if(field == null) { - return false; - } - - if(field.getName().equals(IMethodAndFieldConstants.FIELDNAME_SERIALVERSIONUID)) { - return true; - } - - return false; - } - - public String toString() { - return String.valueOf(getId()); - } - }; - - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/RoleHelper.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/RoleHelper.java deleted file mode 100644 index aa446a876..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/RoleHelper.java +++ /dev/null @@ -1,221 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.internal.EjbModuleExtensionHelper; - - -/** - * This class is a copy of org.eclipse.jst.j2ee.internal.ejb.codegen.helpers.RoleHelper. - * org.eclipse.jst.j2ee.internal.ejb.codegen.helpers.RoleHelper cannot be used - * directly by the EJB Validator (to calculate role method names) because - * it uses classes which are not used by WebSphere. Until the long-term - * fix can be put in, this class will be used. - */ -public class RoleHelper { - static final String KEY_GETTER_NAME_PATTERN = "get{0}Key";//$NON-NLS-1$ - static final String KEY_SETTER_NAME_PATTERN = "privateSet{0}Key";//$NON-NLS-1$ - static final String LINK_GETTER_NAME_PATTERN = "get{0}Link";//$NON-NLS-1$ - static final String ADD_NAME_PREFIX = "add";//$NON-NLS-1$ - static final String GETTER_NAME_PREFIX = "get"; //$NON-NLS-1$ - static final String REMOVE_NAME_PREFIX = "remove";//$NON-NLS-1$ - static final String SECONDARY_ADD_NAME_PREFIX = "secondaryAdd";//$NON-NLS-1$ - static final String SECONDARY_REMOVE_NAME_PREFIX = "secondaryRemove";//$NON-NLS-1$ - static final String SECONDARY_SETTER_NAME_PREFIX = "secondarySet";//$NON-NLS-1$ - static final String SETTER_NAME_PREFIX = "set"; //$NON-NLS-1$ - protected EjbModuleExtensionHelper modHelper; -/** - * RoleHelper constructor comment. - */ -public RoleHelper() { - super(); -} -/** - * Collect the names of the methods that were added to the bean class - * for a particular role. - */ -public static void collectRoleMethodNames(CommonRelationshipRole aRole, List aList) { - if (aRole == null || aList == null) return; - aList.add(getLinkGetterName(aRole)); - if (aRole.isForward()) { - aList.add(getKeyGetterName(aRole)); - aList.add(getKeySetterName(aRole)); - } - if (aRole.isNavigable()) - aList.add(getGetterName(aRole)); - if (!isMany(aRole)) { - try { - if(aRole.getOppositeAsCommonRole() != null) { - if (!aRole.getOppositeAsCommonRole().isKey()) - aList.add(getSetterName(aRole)); - if (!aRole.isKey()) { - aList.add(getSecondarySetterName(aRole)); - } - } - } - catch(NullPointerException exc) { - // If a NullPointerException is caught, assume that the role isn't a key. - // Just continue. - } - } else { - aList.add(getSecondaryAddName(aRole)); - aList.add(getSecondaryRemoveName(aRole)); - if (aRole.isNavigable()) { - try { - if(aRole.getOppositeAsCommonRole() != null) { - if (!aRole.getOppositeAsCommonRole().isKey()) { - aList.add(getAddName(aRole)); - } - } - } - catch(NullPointerException exc) { - // If a NullPointerException is thrown, just assume that the opposite isn't a key. - } - if (aRole.getOppositeAsCommonRole() != null && !aRole.getOppositeAsCommonRole().isRequired()) - aList.add(getRemoveName(aRole)); - } - } -} -/** - * Return aString where the first character is uppercased. - */ -public static final String firstAsUppercase(String aString) { - if (aString != null && aString.length() >0 && !Character.isUpperCase(aString.charAt(0))) { - char[] chars = aString.toCharArray(); - chars[0] = Character.toUpperCase(chars[0]); - return String.valueOf(chars); - } - return aString; -} -protected static String format(String pattern, String[] replacements) { - return java.text.MessageFormat.format(pattern, replacements); -} -/** - * Return the add method name for @aRole. - * It will be in the format "add{aRole name}". - * For example, a role named "department" would return - * addDepartment. - */ -public static String getAddName(CommonRelationshipRole aRole) { - if (aRole == null) return null; - String arg = firstAsUppercase(aRole.getName()); - return ADD_NAME_PREFIX + arg; -} -/** - * Return the getter method name for @aRole. - * It will be in the format "get{aRole name}". - * For example, a role named "department" would return - * getDepartment. - */ -public static String getGetterName(CommonRelationshipRole aRole) { - if (aRole == null) return null; - String arg = firstAsUppercase(aRole.getName()); - return GETTER_NAME_PREFIX + arg; -} -/** - * Return the key getter method name for @aRole. - * It will be in the format "get{aRole name}Key". - * For example, a role named "department" would return - * getDepartmentKey. - */ -public static String getKeyGetterName(CommonRelationshipRole aRole) { - if (aRole == null) return null; - String arg = firstAsUppercase(aRole.getName()); - return format(KEY_GETTER_NAME_PATTERN, new String[]{arg}); -} -/** - * Return the key setter method name for @aRole. - * It will be in the format "privateSet{aRole name}Key". - * For example, a role named "department" would return - * privateSetDepartmentKey. - */ -public static String getKeySetterName(CommonRelationshipRole aRole) { - if (aRole == null) return null; - String arg = firstAsUppercase(aRole.getName()); - return format(KEY_SETTER_NAME_PATTERN, new String[]{arg}); -} -/** - * Return the link getter method name for @aRole. - * It will be in the format "get{aRole name}Link". - * For example, a role named "department" would return - * getDepartmentLink. - */ -public static String getLinkGetterName(CommonRelationshipRole aRole) { - if (aRole == null) return null; - String arg = firstAsUppercase(aRole.getName()); - return format(LINK_GETTER_NAME_PATTERN, new String[]{arg}); -} -/** - * Return the remove method name for @aRole. - * It will be in the format "remove{aRole name}". - * For example, a role named "department" would return - * removeDepartment. - */ -public static String getRemoveName(CommonRelationshipRole aRole) { - if (aRole == null) return null; - String arg = firstAsUppercase(aRole.getName()); - return REMOVE_NAME_PREFIX + arg; -} -/** - * Return the secondary add method name for @aRole. - * It will be in the format "secondaryAdd{aRole name}". - * For example, a role named "department" would return - * secondaryAddDepartment. - */ -public static String getSecondaryAddName(CommonRelationshipRole aRole) { - if (aRole == null) return null; - String arg = firstAsUppercase(aRole.getName()); - return SECONDARY_ADD_NAME_PREFIX + arg; -} -/** - * Return the secondary remove method name for @aRole. - * It will be in the format "secondaryRemove{aRole name}". - * For example, a role named "department" would return - * secondaryRemoveDepartment. - */ -public static String getSecondaryRemoveName(CommonRelationshipRole aRole) { - if (aRole == null) return null; - String arg = firstAsUppercase(aRole.getName()); - return SECONDARY_REMOVE_NAME_PREFIX + arg; -} -/** - * Return the secondary setter method name for @aRole. - * It will be in the format "secondarySet{aRole name}". - * For example, a role named "department" would return - * secondarySetDepartment. - */ -public static String getSecondarySetterName(CommonRelationshipRole aRole) { - if (aRole == null) return null; - String arg = firstAsUppercase(aRole.getName()); - return SECONDARY_SETTER_NAME_PREFIX + arg; -} -/** - * Return the setter method name for @aRole. - * It will be in the format "set{aRole name}". - * For example, a role named "department" would return - * setDepartment. - */ -public static String getSetterName(CommonRelationshipRole aRole) { - if (aRole == null) return null; - String arg = firstAsUppercase(aRole.getName()); - return SETTER_NAME_PREFIX + arg; -} -/** - * Return true if the multiplicity is many. - */ -public static boolean isMany(CommonRelationshipRole aRole) { - return aRole != null && aRole.isMany(); -} -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionBeanClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionBeanClassVRule.java deleted file mode 100644 index 128f00c44..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionBeanClassVRule.java +++ /dev/null @@ -1,250 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Session; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public final class StatefulSessionBeanClassVRule extends ASessionBeanClassVRule implements IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_STATEFUL_SESSION_BEANCLASS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATEFUL_SESSION_HOME, IValidationRuleList.EJB20_STATEFUL_SESSION_LOCALHOME, IValidationRuleList.EJB20_STATEFUL_SESSION_LOCAL, IValidationRuleList.EJB20_STATEFUL_SESSION_REMOTE}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".sb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - private static final String SMSSGID = ".sfb"; //$NON-NLS-1$ - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_SESSIONBEAN}; - - private final long[] SHOULD_NOT_BE_SUPERTYPES = new long[]{LOCAL_COMPONENT_INTERFACE, REMOTE_COMPONENT_INTERFACE}; - private final boolean SHOULD_BE_ABSTRACT = false; - private final boolean SHOULD_BE_FINAL = false; - private final boolean SHOULD_BE_PUBLIC = true; - private final boolean SHOULD_VALIDATE_TRANSIENT_FIELD = true; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{EJBCREATE, CONSTRUCTOR_NOPARM, EJBREMOVE_NOPARM, EJBPASSIVATE_NOPARM}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{FINALIZE_NOPARM}; - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CONSTRUCTOR_NOPARM, CONSTRUCTOR, EJBCREATE, EJBCREATE_NOPARM, EJBREMOVE_NOPARM, EJBACTIVATE_NOPARM, EJBPASSIVATE_NOPARM, FINALIZE_NOPARM, BUSINESS}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2003I, new String[]{CHKJ2003I+SPEC}); - MESSAGE_IDS.put(CHKJ2014, new String[]{CHKJ2014+EXT}); - MESSAGE_IDS.put(CHKJ2015, new String[]{CHKJ2015+EXT}); - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2022, new String[]{CHKJ2022+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_constr, new String[]{CHKJ2050_constr+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbCreate, new String[]{CHKJ2050_ejbCreate + SMSSGID + SPEC}); // special case (stateful message differs from stateless message) - MESSAGE_IDS.put(CHKJ2050_ejbRemove, new String[]{CHKJ2050_ejbRemove+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbPassivate, new String[]{CHKJ2050_ejbPassivate+EXT}); - - MESSAGE_IDS.put(CHKJ2103, new String[]{CHKJ2103+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2411, new String[]{CHKJ2411+BEXT, CHKJ2411+MEXT}); - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2421, new String[]{CHKJ2421+BEXT, CHKJ2421+MEXT}); - MESSAGE_IDS.put(CHKJ2422, new String[]{CHKJ2422+BEXT, CHKJ2422+MEXT}); - MESSAGE_IDS.put(CHKJ2423, new String[]{CHKJ2423+BEXT, CHKJ2423+MEXT}); - MESSAGE_IDS.put(CHKJ2424, new String[]{CHKJ2424+BEXT, CHKJ2424+MEXT}); - MESSAGE_IDS.put(CHKJ2426, new String[]{CHKJ2426+BEXT, CHKJ2426+MEXT}); - MESSAGE_IDS.put(CHKJ2427, new String[]{CHKJ2427+BEXT, CHKJ2427+MEXT}); - MESSAGE_IDS.put(CHKJ2428, new String[]{CHKJ2428+BEXT, CHKJ2428+MEXT}); - - MESSAGE_IDS.put(CHKJ2431, new String[]{CHKJ2431+BEXT, CHKJ2431+MEXT}); - MESSAGE_IDS.put(CHKJ2439, new String[]{CHKJ2439+BEXT, CHKJ2439+MEXT}); - - MESSAGE_IDS.put(CHKJ2441, new String[]{CHKJ2441+BEXT, CHKJ2441+MEXT}); - MESSAGE_IDS.put(CHKJ2442, new String[]{CHKJ2442+BEXT, CHKJ2442+MEXT}); - MESSAGE_IDS.put(CHKJ2443, new String[]{CHKJ2443+BEXT, CHKJ2443+MEXT}); - - MESSAGE_IDS.put(CHKJ2452, new String[]{CHKJ2452+BEXT, CHKJ2452+MEXT}); - MESSAGE_IDS.put(CHKJ2453, new String[]{CHKJ2453+BEXT, CHKJ2453+MEXT}); - MESSAGE_IDS.put(CHKJ2456, new String[]{CHKJ2456+ON_BASE, CHKJ2456+ON_THIS}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2493, new String[]{CHKJ2493+BEXT, CHKJ2493+MEXT}); - MESSAGE_IDS.put(CHKJ2494, new String[]{CHKJ2494+BEXT, CHKJ2494+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_ejbCreate, new String[]{CHKJ2500_ejbCreate+BEXT, CHKJ2500_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2500_business, new String[]{CHKJ2500_business+BEXT, CHKJ2500_business+MEXT}); - MESSAGE_IDS.put(CHKJ2502_finalize, new String[]{CHKJ2502_finalize+BEXT, CHKJ2502_finalize+MEXT}); - - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2503_ejbCreate, new String[]{CHKJ2503_ejbCreate+BEXT, CHKJ2503_ejbCreate+MEXT}); - - MESSAGE_IDS.put(CHKJ2505_ejbRemove, new String[]{CHKJ2505_ejbRemove+BEXT, CHKJ2505_ejbRemove+MEXT}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final boolean shouldValidateTransientField() { - return SHOULD_VALIDATE_TRANSIENT_FIELD; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final boolean shouldBeAbstract(JavaClass clazz) { - return SHOULD_BE_ABSTRACT; - } - - public final boolean shouldBeFinal(JavaClass clazz) { - return SHOULD_BE_FINAL; - } - - public final boolean shouldBePublic(JavaClass clazz) { - return SHOULD_BE_PUBLIC; - } - - public final int isRemote() { - return NEITHER; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final JavaHelpers getEjbCreateReturnType(EnterpriseBean bean, Method method) throws InvalidInputException { - return ValidationRuleUtility.getType(ITypeConstants.VOID, bean); - } - - public final String getEjbCreateReturnTypeName(EnterpriseBean bean, Method method) throws InvalidInputException { - return ITypeConstants.VOID; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this); - - if((methodType & EJBCREATE) == EJBCREATE) { - validateEjbCreateMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else if((methodType & EJBPOSTCREATE) == EJBPOSTCREATE) { - validateEjbPostCreateMethod(vc, bean, clazz, method); - } - else if((methodType & EJBREMOVE_NOPARM) == EJBREMOVE_NOPARM) { - validateEjbRemoveMethod(vc, bean, clazz, method); - } - else if((methodType & BUSINESS) == BUSINESS) { - validateBusinessMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else { - // Method isn't supposed to be here. Let the validateMethodsWhichMustNotExist - // take care of it. - } - } - - public String getMatchingHomeMethodName(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this); - - if((methodType & EJBCREATE) == EJBCREATE) { - return getMatchingEjbCreateMethodName(vc, method); - } - else if((methodType & EJBPOSTCREATE) == EJBPOSTCREATE) { - return getMatchingEjbPostCreateMethodName(vc, method); - } - else if((methodType & EJBREMOVE_NOPARM) == EJBREMOVE_NOPARM) { - return getNoMatchingMethodName(vc, method); - } - else if((methodType & BUSINESS) == BUSINESS) { - return getMatchingBusinessMethodName(vc, method); - } - else { - // Method isn't supposed to be here. - return getNoMatchingMethodName(vc, method); - } - } - - /* (non-Javadoc) - * @see org.eclipse.wst.validation.internal.core.core.ejb.ejb20.rules.IClassVRule#validate(org.eclipse.wst.validation.internal.core.core.ejb.IValidationContext, org.eclipse.jst.j2ee.internal.ejb.EnterpriseBean, org.eclipse.jem.internal.java.JavaClass) - */ - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - super.validate(vc, bean, clazz); - Session session = (Session)bean; - boolean isBeanManagedStateful = (ValidationRuleUtility.isValidTransactionTypeElement(session) && ValidationRuleUtility.isBeanManagedSession(session) && ValidationRuleUtility.isStateful(session)); - - if (isBeanManagedStateful) { - /* - * 6.5.3 The optional SessionSynchronization interface - *... - * Only a stateful Session bean with container-managed transaction demarcation may - * implement the SessionSynchronization interface. - *... - * There is no need for a Session bean with bean-managed transaction to rely on the - * synchronization call backs because the bean is in control of the commit the bean - * knows when the transaction is about to be committed and it knows the outcome of the - * transaction commit. - *... - */ - try { - JavaHelpers ss = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONSYNCHRONIZATION, bean); - if (ValidationRuleUtility.isAssignableFrom(bean.getEjbClass(), ss)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2003I, IEJBValidationContext.INFO, bean, bean.getEjbClass(), this); - vc.addMessage(message); - } - } - catch (InvalidInputException e) { - String[] msgParm = { ValidationRuleUtility.getQualifiedName(bean.getEjbClass()), ValidationRuleUtility.getQualifiedName(e.getJavaClass())}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2907, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionLocalComponentVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionLocalComponentVRule.java deleted file mode 100644 index c08a32fcf..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionLocalComponentVRule.java +++ /dev/null @@ -1,110 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class StatefulSessionLocalComponentVRule extends AComponentVRule implements ILocalType, IComponentType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_STATEFUL_SESSION_LOCAL; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATEFUL_SESSION_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".slc"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBLOCALOBJECT}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = null; - private static final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2468, new String[]{CHKJ2468+BEXT, CHKJ2468+MEXT}); - MESSAGE_IDS.put(CHKJ2469, new String[]{CHKJ2469+BEXT, CHKJ2469+MEXT}); - - MESSAGE_IDS.put(CHKJ2470, new String[]{CHKJ2470+BEXT, CHKJ2470+MEXT}); - MESSAGE_IDS.put(CHKJ2471, new String[]{CHKJ2471+BEXT, CHKJ2471+MEXT}); - MESSAGE_IDS.put(CHKJ2472, new String[]{CHKJ2472+BEXT, CHKJ2472+MEXT}); - - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionLocalHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionLocalHomeVRule.java deleted file mode 100644 index 476d0ba7c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionLocalHomeVRule.java +++ /dev/null @@ -1,114 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class StatefulSessionLocalHomeVRule extends ASessionHomeVRule implements ILocalType, IHomeType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_STATEFUL_SESSION_LOCALHOME; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATEFUL_SESSION_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".slh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - private static final String SFMSSGID = ".sflh"; //$NON-NLS-1$ - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBLOCALHOME}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{CREATE}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CREATE}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_create, new String[]{CHKJ2050_create+EXT}); - - MESSAGE_IDS.put(CHKJ2104, new String[]{CHKJ2104+SPEC}); - MESSAGE_IDS.put(CHKJ2402, new String[]{CHKJ2402+SFMSSGID+ON_BASE+SPEC, CHKJ2402+SFMSSGID+ON_THIS+SPEC}); // special case (diff string than stateless bean) - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2461, new String[]{CHKJ2461+BEXT, CHKJ2461+MEXT}); - MESSAGE_IDS.put(CHKJ2465, new String[]{CHKJ2465+BEXT, CHKJ2465+MEXT}); - MESSAGE_IDS.put(CHKJ2466, new String[]{CHKJ2466+BEXT, CHKJ2466+MEXT}); - MESSAGE_IDS.put(CHKJ2467, new String[]{CHKJ2467+BEXT, CHKJ2467+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2502, new String[]{CHKJ2502+BEXT, CHKJ2502+MEXT}); - MESSAGE_IDS.put(CHKJ2503_create, new String[]{CHKJ2503_create+BEXT, CHKJ2503_create+MEXT}); - MESSAGE_IDS.put(CHKJ2504_create, new String[]{CHKJ2504_create+BEXT, CHKJ2504_create+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionRemoteComponentVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionRemoteComponentVRule.java deleted file mode 100644 index e97d380a3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionRemoteComponentVRule.java +++ /dev/null @@ -1,113 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class StatefulSessionRemoteComponentVRule extends AComponentVRule implements IRemoteType, IComponentType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_STATEFUL_SESSION_REMOTE; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATEFUL_SESSION_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".src"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBOBJECT}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = null; - private static final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - - MESSAGE_IDS.put(CHKJ2468, new String[]{CHKJ2468+BEXT, CHKJ2468+MEXT}); - MESSAGE_IDS.put(CHKJ2469, new String[]{CHKJ2469+BEXT, CHKJ2469+MEXT}); - - MESSAGE_IDS.put(CHKJ2470, new String[]{CHKJ2470+BEXT, CHKJ2470+MEXT}); - MESSAGE_IDS.put(CHKJ2471, new String[]{CHKJ2471+BEXT, CHKJ2471+MEXT}); - MESSAGE_IDS.put(CHKJ2472, new String[]{CHKJ2472+BEXT, CHKJ2472+MEXT}); - MESSAGE_IDS.put(CHKJ2500_business, new String[]{CHKJ2500_business+BEXT, CHKJ2500_business+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionRemoteHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionRemoteHomeVRule.java deleted file mode 100644 index df034061c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatefulSessionRemoteHomeVRule.java +++ /dev/null @@ -1,113 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class StatefulSessionRemoteHomeVRule extends ASessionHomeVRule implements IRemoteType, IHomeType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_STATEFUL_SESSION_HOME; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATEFUL_SESSION_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".srh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - private static final String SFMSSGID = ".sfrh"; //$NON-NLS-1$ - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBHOME}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{CREATE}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CREATE}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_create, new String[]{CHKJ2050_create+EXT}); - - MESSAGE_IDS.put(CHKJ2104, new String[]{CHKJ2104+SPEC}); - MESSAGE_IDS.put(CHKJ2402, new String[]{CHKJ2402+SFMSSGID+ON_BASE+SPEC, CHKJ2402+SFMSSGID+ON_THIS+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2461, new String[]{CHKJ2461+BEXT, CHKJ2461+MEXT}); - MESSAGE_IDS.put(CHKJ2465, new String[]{CHKJ2465+BEXT, CHKJ2465+MEXT}); - MESSAGE_IDS.put(CHKJ2466, new String[]{CHKJ2466+BEXT, CHKJ2466+MEXT}); - MESSAGE_IDS.put(CHKJ2467, new String[]{CHKJ2467+BEXT, CHKJ2467+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2502, new String[]{CHKJ2502+BEXT, CHKJ2502+MEXT}); - MESSAGE_IDS.put(CHKJ2503_create, new String[]{CHKJ2503_create+BEXT, CHKJ2503_create+MEXT}); - MESSAGE_IDS.put(CHKJ2504_create, new String[]{CHKJ2504_create+BEXT, CHKJ2504_create+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionBeanClassVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionBeanClassVRule.java deleted file mode 100644 index 621a11199..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionBeanClassVRule.java +++ /dev/null @@ -1,258 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * @version 1.0 - * @author - */ -public final class StatelessSessionBeanClassVRule extends ASessionBeanClassVRule implements IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_STATELESS_SESSION_BEANCLASS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATELESS_SESSION_HOME, IValidationRuleList.EJB20_STATELESS_SESSION_LOCALHOME, IValidationRuleList.EJB20_STATELESS_SESSION_REMOTE, IValidationRuleList.EJB20_STATELESS_SESSION_LOCAL}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".sb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - private static final String SMSSGID = ".ssb"; //$NON-NLS-1$ - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_SESSIONBEAN}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = new long[]{LOCAL_COMPONENT_INTERFACE, REMOTE_COMPONENT_INTERFACE}; - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{EJBCREATE_NOPARM, CONSTRUCTOR_NOPARM, EJBREMOVE_NOPARM, EJBPASSIVATE_NOPARM}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{FINALIZE_NOPARM}; - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CONSTRUCTOR_NOPARM, EJBCREATE_NOPARM, CONSTRUCTOR, EJBREMOVE_NOPARM, EJBACTIVATE_NOPARM, EJBPASSIVATE_NOPARM, FINALIZE_NOPARM, BUSINESS}; - - private final boolean SHOULD_BE_ABSTRACT = false; - private final boolean SHOULD_BE_FINAL = false; - private final boolean SHOULD_BE_PUBLIC = true; - private final boolean SHOULD_VALIDATE_TRANSIENT_FIELD = true; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2003E, new String[]{CHKJ2003E+SPEC}); - MESSAGE_IDS.put(CHKJ2014, new String[]{CHKJ2014+EXT}); - MESSAGE_IDS.put(CHKJ2015, new String[]{CHKJ2015+EXT}); - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2022, new String[]{CHKJ2022+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_constr, new String[]{CHKJ2050_constr+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbCreate, new String[]{CHKJ2050_ejbCreate+SMSSGID+SPEC}); - MESSAGE_IDS.put(CHKJ2050_ejbRemove, new String[]{CHKJ2050_ejbRemove+EXT}); - MESSAGE_IDS.put(CHKJ2050_ejbPassivate, new String[]{CHKJ2050_ejbPassivate+EXT}); - - MESSAGE_IDS.put(CHKJ2103, new String[]{CHKJ2103+SPEC}); - - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2411, new String[]{CHKJ2411+BEXT, CHKJ2411+MEXT}); - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2421, new String[]{CHKJ2421+BEXT, CHKJ2421+MEXT}); - MESSAGE_IDS.put(CHKJ2422, new String[]{CHKJ2422+BEXT, CHKJ2422+MEXT}); - MESSAGE_IDS.put(CHKJ2423, new String[]{CHKJ2423+BEXT, CHKJ2423+MEXT}); - MESSAGE_IDS.put(CHKJ2424, new String[]{CHKJ2424+BEXT, CHKJ2424+MEXT}); - MESSAGE_IDS.put(CHKJ2426, new String[]{CHKJ2426+BEXT, CHKJ2426+MEXT}); - MESSAGE_IDS.put(CHKJ2427, new String[]{CHKJ2427+BEXT, CHKJ2427+MEXT}); - MESSAGE_IDS.put(CHKJ2428, new String[]{CHKJ2428+BEXT, CHKJ2428+MEXT}); - - MESSAGE_IDS.put(CHKJ2431, new String[]{CHKJ2431+BEXT, CHKJ2431+MEXT}); - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2439, new String[]{CHKJ2439+BEXT, CHKJ2439+MEXT}); - - MESSAGE_IDS.put(CHKJ2441, new String[]{CHKJ2441+BEXT, CHKJ2441+MEXT}); - MESSAGE_IDS.put(CHKJ2442, new String[]{CHKJ2442+BEXT, CHKJ2442+MEXT}); - MESSAGE_IDS.put(CHKJ2443, new String[]{CHKJ2443+BEXT, CHKJ2443+MEXT}); - - MESSAGE_IDS.put(CHKJ2452, new String[]{CHKJ2452+BEXT, CHKJ2452+MEXT}); - MESSAGE_IDS.put(CHKJ2453, new String[]{CHKJ2453+BEXT, CHKJ2453+MEXT}); - MESSAGE_IDS.put(CHKJ2456, new String[]{CHKJ2456+ON_BASE, CHKJ2456+ON_THIS}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2476, new String[]{CHKJ2476+SMSSGID + ON_BASE+SPEC, CHKJ2476+SMSSGID+ON_THIS+SPEC}); - MESSAGE_IDS.put(CHKJ2492, new String[]{CHKJ2492+BEXT, CHKJ2492+MEXT}); - MESSAGE_IDS.put(CHKJ2493, new String[]{CHKJ2493+BEXT, CHKJ2493+MEXT}); - MESSAGE_IDS.put(CHKJ2494, new String[]{CHKJ2494+BEXT, CHKJ2494+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_ejbCreate, new String[]{CHKJ2500_ejbCreate+BEXT, CHKJ2500_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2500_business, new String[]{CHKJ2500_business+BEXT, CHKJ2500_business+MEXT}); - MESSAGE_IDS.put(CHKJ2502_finalize, new String[]{CHKJ2502_finalize+BEXT, CHKJ2502_finalize+MEXT}); - - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2503_ejbCreate, new String[]{CHKJ2503_ejbCreate+BEXT, CHKJ2503_ejbCreate+MEXT}); - - MESSAGE_IDS.put(CHKJ2505_ejbRemove, new String[]{CHKJ2505_ejbRemove+BEXT, CHKJ2505_ejbRemove+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final boolean shouldValidateTransientField() { - return SHOULD_VALIDATE_TRANSIENT_FIELD; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final boolean shouldBeAbstract(JavaClass clazz) { - return SHOULD_BE_ABSTRACT; - } - - public final boolean shouldBeFinal(JavaClass clazz) { - return SHOULD_BE_FINAL; - } - - public final boolean shouldBePublic(JavaClass clazz) { - return SHOULD_BE_PUBLIC; - } - - public final int isRemote() { - return NEITHER; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final JavaHelpers getEjbCreateReturnType(EnterpriseBean bean, Method method) throws InvalidInputException { - return ValidationRuleUtility.getType(ITypeConstants.VOID, bean); - } - - public final String getEjbCreateReturnTypeName(EnterpriseBean bean, Method method) throws InvalidInputException { - return ITypeConstants.VOID; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } - - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this); - - if((methodType & EJBCREATE) == EJBCREATE) { - validateEjbCreateMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else if((methodType & EJBPOSTCREATE) == EJBPOSTCREATE) { - validateEjbPostCreateMethod(vc, bean, clazz, method); - } - else if((methodType & EJBREMOVE_NOPARM) == EJBREMOVE_NOPARM) { - validateEjbRemoveMethod(vc, bean, clazz, method); - } - else if((methodType & BUSINESS) == BUSINESS) { - validateBusinessMethod(vc, bean, clazz, method, methodsExtendedLists); - } - else { - // Method isn't supposed to be here. Let the validateMethodsWhichMustNotExist - // take care of it. - } - } - - public String getMatchingHomeMethodName(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { - long methodType = MethodUtility.getUtility().getMethodTypeId(bean, clazz, method, methodsExtendedLists, this); - - if((methodType & EJBCREATE) == EJBCREATE) { - return getMatchingEjbCreateMethodName(vc, method); - } - else if((methodType & EJBPOSTCREATE) == EJBPOSTCREATE) { - return getMatchingEjbPostCreateMethodName(vc, method); - } - else if((methodType & EJBREMOVE_NOPARM) == EJBREMOVE_NOPARM) { - return getNoMatchingMethodName(vc, method); - } - else if((methodType & BUSINESS) == BUSINESS) { - return getMatchingBusinessMethodName(vc, method); - } - else { - // Method isn't supposed to be here. - return getNoMatchingMethodName(vc, method); - } - } - - public void validateEjbCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) throws ValidationCancelledException, InvalidInputException, ValidationException { - if((method.listParametersWithoutReturn().length != 0) || (!IMethodAndFieldConstants.METHODNAME_EJBCREATE.equals(method.getName()))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2476, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - else { - super.validateEjbCreateMethod(vc, bean, clazz, method, methodsExtendedLists); - } - } - /* (non-Javadoc) - * @see org.eclipse.wst.validation.internal.core.core.ejb.ejb20.rules.IClassVRule#validate(org.eclipse.wst.validation.internal.core.core.ejb.IValidationContext, org.eclipse.jst.j2ee.internal.ejb.EnterpriseBean, org.eclipse.jem.internal.java.JavaClass) - */ - public void validate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws ValidationCancelledException, InvalidInputException, ValidationException { - // TODO Auto-generated method stub - super.validate(vc, bean, clazz); - /* - * 6.5.3 The optional SessionSynchronization interface - *... - * Only a stateful Session bean with container-managed transaction demarcation may - * implement the SessionSynchronization interface. - *... - * There is no need for a Session bean with bean-managed transaction to rely on the - * synchronization call backs because the bean is in control of the commit the bean - * knows when the transaction is about to be committed and it knows the outcome of the - * transaction commit. - *... - */ - try { - JavaHelpers ss = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONSYNCHRONIZATION, bean); - if (ValidationRuleUtility.isAssignableFrom(bean.getEjbClass(), ss)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2003E, IEJBValidationContext.ERROR, bean, bean.getEjbClass(), this); - vc.addMessage(message); - } - } - catch (InvalidInputException e) { - String[] msgParm = { ValidationRuleUtility.getQualifiedName(bean.getEjbClass()), ValidationRuleUtility.getQualifiedName(e.getJavaClass())}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2907, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionLocalComponentVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionLocalComponentVRule.java deleted file mode 100644 index c8cc3d9ab..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionLocalComponentVRule.java +++ /dev/null @@ -1,109 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class StatelessSessionLocalComponentVRule extends AComponentVRule implements ILocalType, IComponentType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_STATELESS_SESSION_LOCAL; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATELESS_SESSION_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".slc"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBLOCALOBJECT}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = null; - private static final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2468, new String[]{CHKJ2468+BEXT, CHKJ2468+MEXT}); - MESSAGE_IDS.put(CHKJ2469, new String[]{CHKJ2469+BEXT, CHKJ2469+MEXT}); - - MESSAGE_IDS.put(CHKJ2470, new String[]{CHKJ2470+BEXT, CHKJ2470+MEXT}); - MESSAGE_IDS.put(CHKJ2471, new String[]{CHKJ2471+BEXT, CHKJ2471+MEXT}); - MESSAGE_IDS.put(CHKJ2472, new String[]{CHKJ2472+BEXT, CHKJ2472+MEXT}); - - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionLocalHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionLocalHomeVRule.java deleted file mode 100644 index ebb83b446..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionLocalHomeVRule.java +++ /dev/null @@ -1,114 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class StatelessSessionLocalHomeVRule extends AStatelessHomeVRule implements ILocalType, IHomeType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_STATELESS_SESSION_LOCALHOME; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATELESS_SESSION_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".slh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - private static final String SMSSGID = ".sslh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBLOCALHOME}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{CREATE_NOPARM}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CREATE_NOPARM, CREATE, FINALIZE_NOPARM}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2050_create, new String[]{CHKJ2050_create+SMSSGID+SPEC}); - - MESSAGE_IDS.put(CHKJ2104, new String[]{CHKJ2104+SPEC}); - MESSAGE_IDS.put(CHKJ2402, new String[]{CHKJ2402+SMSSGID+ON_BASE+SPEC, CHKJ2402+SMSSGID+ON_THIS+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2461, new String[]{CHKJ2461+BEXT, CHKJ2461+MEXT}); - MESSAGE_IDS.put(CHKJ2465, new String[]{CHKJ2465+BEXT, CHKJ2465+MEXT}); - MESSAGE_IDS.put(CHKJ2466, new String[]{CHKJ2466+BEXT, CHKJ2466+MEXT}); - MESSAGE_IDS.put(CHKJ2467, new String[]{CHKJ2467+BEXT, CHKJ2467+MEXT}); - - MESSAGE_IDS.put(CHKJ2476, new String[]{CHKJ2476+BEXT, CHKJ2476+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2502, new String[]{CHKJ2502+BEXT, CHKJ2502+MEXT}); - MESSAGE_IDS.put(CHKJ2503_create, new String[]{CHKJ2503_create+BEXT, CHKJ2503_create+MEXT}); - MESSAGE_IDS.put(CHKJ2504_create, new String[]{CHKJ2504_create+BEXT, CHKJ2504_create+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionRemoteComponentVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionRemoteComponentVRule.java deleted file mode 100644 index ebfd6fde6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionRemoteComponentVRule.java +++ /dev/null @@ -1,112 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class StatelessSessionRemoteComponentVRule extends AComponentVRule implements IRemoteType, IComponentType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_STATELESS_SESSION_REMOTE; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATELESS_SESSION_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".src"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBOBJECT}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - - private final long[] METHODS_WHICH_MUST_EXIST = null; - private static final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2468, new String[]{CHKJ2468+BEXT, CHKJ2468+MEXT}); - MESSAGE_IDS.put(CHKJ2469, new String[]{CHKJ2469+BEXT, CHKJ2469+MEXT}); - - MESSAGE_IDS.put(CHKJ2470, new String[]{CHKJ2470+BEXT, CHKJ2470+MEXT}); - MESSAGE_IDS.put(CHKJ2471, new String[]{CHKJ2471+BEXT, CHKJ2471+MEXT}); - MESSAGE_IDS.put(CHKJ2472, new String[]{CHKJ2472+BEXT, CHKJ2472+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_business, new String[]{CHKJ2500_business+BEXT, CHKJ2500_business+MEXT}); - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2503_bus, new String[]{CHKJ2503_bus+BEXT, CHKJ2503_bus+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionRemoteHomeVRule.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionRemoteHomeVRule.java deleted file mode 100644 index f25b17f4e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/StatelessSessionRemoteHomeVRule.java +++ /dev/null @@ -1,116 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - - - -/** - * @version 1.0 - * @author - */ -public final class StatelessSessionRemoteHomeVRule extends AStatelessHomeVRule implements IRemoteType, IHomeType, IMessagePrefixEjb20Constants { - private static final Object ID = IValidationRuleList.EJB20_STATELESS_SESSION_HOME; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB20_STATELESS_SESSION_BEANCLASS}; - private static final Map MESSAGE_IDS; - - private static final String MSSGID = ".srh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE_SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS_SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - private static final String SMSSGID = ".ssrh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - - private final long[] SUPERTYPES = new long[]{JAVAX_EJB_EJBHOME}; - private final long[] SHOULD_NOT_BE_SUPERTYPES = null; - private final long[] METHODS_WHICH_MUST_EXIST = new long[]{CREATE_NOPARM}; - private final long[] METHODS_WHICH_MUST_NOT_EXIST = new long[]{}; - - private final long[] KNOWN_METHOD_TYPES = new long[]{CLINIT, CREATE_NOPARM, CREATE, FINALIZE_NOPARM}; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2050_create, new String[]{CHKJ2050_create+SMSSGID+SPEC}); - - MESSAGE_IDS.put(CHKJ2104, new String[]{CHKJ2104+SPEC}); - MESSAGE_IDS.put(CHKJ2402, new String[]{CHKJ2402+SMSSGID+ON_BASE+SPEC, CHKJ2402+SMSSGID+ON_THIS+SPEC}); - MESSAGE_IDS.put(CHKJ2404, new String[]{CHKJ2404+ON_BASE_SPEC, CHKJ2404+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2416, new String[]{CHKJ2416+ON_BASE_SPEC, CHKJ2416+ON_THIS_SPEC}); // special case (shared by all types) - - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - - MESSAGE_IDS.put(CHKJ2461, new String[]{CHKJ2461+BEXT, CHKJ2461+MEXT}); - MESSAGE_IDS.put(CHKJ2465, new String[]{CHKJ2465+BEXT, CHKJ2465+MEXT}); - MESSAGE_IDS.put(CHKJ2466, new String[]{CHKJ2466+BEXT, CHKJ2466+MEXT}); - MESSAGE_IDS.put(CHKJ2467, new String[]{CHKJ2467+BEXT, CHKJ2467+MEXT}); - - MESSAGE_IDS.put(CHKJ2476, new String[]{CHKJ2476+BEXT, CHKJ2476+MEXT}); - - MESSAGE_IDS.put(CHKJ2500_create, new String[]{CHKJ2500_create+BEXT, CHKJ2500_create+MEXT}); - MESSAGE_IDS.put(CHKJ2500_home, new String[]{CHKJ2500_home+BEXT, CHKJ2500_home+MEXT}); - MESSAGE_IDS.put(CHKJ2502, new String[]{CHKJ2502+BEXT, CHKJ2502+MEXT}); - MESSAGE_IDS.put(CHKJ2503_create, new String[]{CHKJ2503_create+BEXT, CHKJ2503_create+MEXT}); - MESSAGE_IDS.put(CHKJ2504_create, new String[]{CHKJ2504_create+BEXT, CHKJ2504_create+MEXT}); - - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final long[] getBaseTypes() { - return getSupertypes(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final int getMessageRemoteExceptionSeverity() { - return MESSAGE_REMOTE_EXCEPTION_SEVERITY; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public final long[] getSupertypes() { - return SUPERTYPES; - } - - public final long[] getShouldNotBeSupertypes() { - return SHOULD_NOT_BE_SUPERTYPES; - } - - public final int isRemote() { - return IS_REMOTE; - } - - public final long[] getMethodsWhichMustExist() { - return METHODS_WHICH_MUST_EXIST; - } - - public final long[] getMethodsWhichMustNotExist() { - return METHODS_WHICH_MUST_NOT_EXIST; - } - - public final long[] getKnownMethodTypes() { - return KNOWN_METHOD_TYPES; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPBean.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPBean.java deleted file mode 100644 index 85cba0dc0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPBean.java +++ /dev/null @@ -1,289 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * This class checks entity bean classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * - * All 9.2.X sections describe BMP requirements. - * If a CMP requirement is different than these, then the differences are - * documented in 9.4.X sections. - */ -public class ValidateBMPBean extends AValidateEntityBean implements IMessagePrefixEjb11Constants { - private static final String MSSGID = ".eb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private static final Object ID = IValidationRuleList.EJB11_BMP_BEANCLASS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_BMP_HOME, IValidationRuleList.EJB11_BMP_REMOTE, IValidationRuleList.EJB11_BMP_KEYCLASS}; - private static final Map MESSAGE_IDS; - - boolean hasPKMethod = false; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2002, new String[]{CHKJ2002+BEXT, CHKJ2002+MEXT}); - MESSAGE_IDS.put(CHKJ2006, new String[]{CHKJ2006+EXT}); - MESSAGE_IDS.put(CHKJ2007, new String[]{CHKJ2007+EXT}); - MESSAGE_IDS.put(CHKJ2009, new String[]{CHKJ2009+EXT}); - - MESSAGE_IDS.put(CHKJ2013, new String[]{CHKJ2013+EXT}); - MESSAGE_IDS.put(CHKJ2014, new String[]{CHKJ2014+EXT}); - MESSAGE_IDS.put(CHKJ2015, new String[]{CHKJ2015+EXT}); - - MESSAGE_IDS.put(CHKJ2022, new String[]{CHKJ2022+EXT}); - MESSAGE_IDS.put(CHKJ2028, new String[]{CHKJ2028+BEXT, CHKJ2028+MEXT}); - MESSAGE_IDS.put(CHKJ2029, new String[]{CHKJ2029+BEXT, CHKJ2029+MEXT}); - - MESSAGE_IDS.put(CHKJ2033, new String[]{CHKJ2033+EXT}); - MESSAGE_IDS.put(CHKJ2034, new String[]{CHKJ2034+EXT}); - MESSAGE_IDS.put(CHKJ2035, new String[]{CHKJ2035+EXT}); - MESSAGE_IDS.put(CHKJ2036, new String[]{CHKJ2036+EXT}); - MESSAGE_IDS.put(CHKJ2037, new String[]{CHKJ2037+EXT}); - MESSAGE_IDS.put(CHKJ2038, new String[]{CHKJ2038+EXT}); - MESSAGE_IDS.put(CHKJ2039, new String[]{CHKJ2039+EXT}); - - MESSAGE_IDS.put(CHKJ2103, new String[]{CHKJ2103 + SPEC}); - MESSAGE_IDS.put(CHKJ2200, new String[]{CHKJ2200+ON_BASE+SPEC, CHKJ2200+ON_THIS+SPEC}); // CHKJ2200 is a special case. It's shared by all bean types. - - MESSAGE_IDS.put(CHKJ2400_bus, new String[]{CHKJ2400_bus+BEXT, CHKJ2400_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2400_ejbCreate, new String[]{CHKJ2400_ejbCreate+BEXT, CHKJ2400_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2400_ejbFind, new String[]{CHKJ2400_ejbFind+BEXT, CHKJ2400_ejbFind+MEXT}); - MESSAGE_IDS.put(CHKJ2400_ejbPostCreate, new String[]{CHKJ2400_ejbPostCreate+BEXT, CHKJ2400_ejbPostCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2406, new String[]{CHKJ2406+BEXT, CHKJ2406+MEXT}); - MESSAGE_IDS.put(CHKJ2407, new String[]{CHKJ2407+BEXT, CHKJ2407+MEXT}); - MESSAGE_IDS.put(CHKJ2408_bus, new String[]{CHKJ2408_bus+BEXT, CHKJ2408_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2408_ejbCreate, new String[]{CHKJ2408_ejbCreate+BEXT, CHKJ2408_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2408_ejbFind, new String[]{CHKJ2408_ejbFind+BEXT, CHKJ2408_ejbFind+MEXT}); - MESSAGE_IDS.put(CHKJ2408_ejbPostCreate, new String[]{CHKJ2408_ejbPostCreate+BEXT, CHKJ2408_ejbPostCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2409_bus, new String[]{CHKJ2409_bus+BEXT, CHKJ2409_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2409_ejbCreate, new String[]{CHKJ2409_ejbCreate+BEXT, CHKJ2409_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2409_ejbFind, new String[]{CHKJ2409_ejbFind+BEXT, CHKJ2409_ejbFind+MEXT}); - MESSAGE_IDS.put(CHKJ2409_ejbPostCreate, new String[]{CHKJ2409_ejbPostCreate+BEXT, CHKJ2409_ejbPostCreate+MEXT}); - - MESSAGE_IDS.put(CHKJ2410_bus, new String[]{CHKJ2410_bus+BEXT, CHKJ2410_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2410_ejbCreate, new String[]{CHKJ2410_ejbCreate+BEXT, CHKJ2410_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2410_ejbFind, new String[]{CHKJ2410_ejbFind+BEXT, CHKJ2410_ejbFind+MEXT}); - MESSAGE_IDS.put(CHKJ2410_ejbPostCreate, new String[]{CHKJ2410_ejbPostCreate+BEXT, CHKJ2410_ejbPostCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2411, new String[]{CHKJ2411+BEXT, CHKJ2411+MEXT}); - MESSAGE_IDS.put(CHKJ2412, new String[]{CHKJ2412+BEXT, CHKJ2412+MEXT}); - MESSAGE_IDS.put(CHKJ2413, new String[]{CHKJ2413+BEXT, CHKJ2413+MEXT}); - MESSAGE_IDS.put(CHKJ2414, new String[]{CHKJ2414+BEXT, CHKJ2414+MEXT}); - MESSAGE_IDS.put(CHKJ2418, new String[]{CHKJ2418+BEXT, CHKJ2418+MEXT}); - - MESSAGE_IDS.put(CHKJ2420, new String[]{CHKJ2420+BEXT, CHKJ2420+MEXT}); - - MESSAGE_IDS.put(CHKJ2432, new String[]{CHKJ2432+BEXT, CHKJ2432+MEXT}); - - MESSAGE_IDS.put(CHKJ2041, new String[]{CHKJ2041}); // special case. Shared by all types. - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2456, new String[]{CHKJ2456+ON_BASE, CHKJ2456+ON_THIS}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - protected void incrementFindByPrimaryKeyCount(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) { - if (method == null) { - return; - } - hasPKMethod = true; - } - - /** - * Checks to see if @ejbMethod is one of the required methods. - */ - protected void primValidateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - super.primValidateExistence(vc, bean, clazz, ejbMethod); - - // BMPs must implement ejbFindByPrimaryKey. If it isn't implemented, validateMethodExists() will - // output an error. (hasPKMethod = true implies implemented, otherwise not implemented) - if (!hasPKMethod && IMethodAndFieldConstants.METHODNAME_EJBFINDBYPRIMARYKEY.equals(ejbMethod.getName())) { - incrementFindByPrimaryKeyCount(vc, bean, clazz, ejbMethod); - } - vc.terminateIfCancelled(); - } - - /** - * EJB 1.1 specification - * Section: 9.2.6 - */ - public void validateBusinessMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // Perform common BMP/CMP business method checks - super.validateBusinessMethod(vc, bean, clazz, method); - - // No specific BMP business method checks. - // All of the points in 9.2.6 are common to both BMPs & CMPs. - } - - /** - * EJB 1.1 specification - * Section: 9.2.2 - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - // All of the above checks are performed by the parent. - super.validateClass(vc, bean, clazz); - } - - /** - * EJB 1.1 specification - * Section: 9.2.5 - */ - public void validateEjbFindMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // A finder method name must start with the prefix "ejbFind" - // (e.g. ejbFindByPrimaryKey, ejbFindLargeAccounts, ejbFindLateShipments). - // The method which calls this method performs the above check. - - // Every entity bean must define the ejbFindByPrimaryKey method. The result type for - // this method must be the primary key type (i.e. the ejbFindByPrimaryKey method must - // be a single-object finder). - if (method == null) { - return; - } - - vc.terminateIfCancelled(); - // A finder method must be declared as public. - if (!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2408_ejbFind, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The method must not be declared as final or static. - if (method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2410_ejbFind, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - if (method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2409_ejbFind, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The method argument types must be legal types for RMI-IIOP. - validateLegalRMIMethodArguments(vc, bean, clazz, method); - - // The return type of a finder method must be the entity bean's primary key type, - // or a collection of primary keys (see Section Subsection 9.1.8). - validateEjbFindMethod_key(vc, bean, clazz, method); - - // Compatibility Note: EJB 1.0 allowed the finder methods to throw the - // java.rmi.RemoteException to indicate a non-application exception. - // This practice is deprecated in EJB 1.1 -- an EJB 1.1 compliant enterprise bean - // should throw the javax.ejb.EJBException or another java.lang.RuntimeException - // to indicate non-application exceptions to the Container (see Section 12.2.2). - validateNoRemoteException(vc, bean, clazz, method, IMessagePrefixEjb11Constants.CHKJ2400_ejbFind); - - validateEjbFindMethod_homeDep(vc, bean, clazz, method); - } - - /** - * EJB 1.1 specification - * Section: 9.2.5 - */ - public void validateEjbFindMethod_key(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - if (method == null) { - return; - } - // The return type of a finder method must be the entity bean's primary key type, - // or a collection of primary keys (see Section Subsection 9.1.8). - vc.terminateIfCancelled(); - - JavaHelpers returnType = method.getReturnType(); - - JavaClass primaryKey = ((Entity) bean).getPrimaryKey(); - ValidationRuleUtility.isValidTypeHierarchy(bean, primaryKey); - - if( !(ValidationRuleUtility.isAssignableFrom(returnType, primaryKey) || - ValidationRuleUtility.isAssignableFromCollection(returnType, bean) || - ValidationRuleUtility.isAssignableFromEnumeration(returnType, bean) - )) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2407, IEJBValidationContext.WARNING, bean, clazz, method, new String[] { primaryKey.getQualifiedName()}, this); - vc.addMessage(message); - } - } - - /** - * Checks that the ejbPostCreate method follows the EJB 1.1. specification. - * Section: 9.2.4 - */ - public void validateEjbPostCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // Perform common BMP/CMP ejbPostCreate method checks - super.validateEjbPostCreateMethod(vc, bean, clazz, method); - - // No specific BMP ejbPostCreate method checks. - // All of the points in 9.2.4 are common to both BMPs & CMPs. - } - - /** - * EJB 1.1 specification - * Section: 9.2.5 - */ - public void validateMethodExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - super.validateMethodExists(vc, bean, clazz); - - if (!hasPKMethod) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2009, IEJBValidationContext.ERROR, bean, clazz, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - } - - public void verifyFieldExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - /* - // Plus, check that at least one field exists on the bean. - List fields = getFields(); - if((fields == null) || (fields.size() == 0)) { - addValidationMessage(IEJBValidationContext.WARNING, IMessagePrefixEjb11Constants.EJB_BMP_NOFIELDS, new String[] {getModelObjectName()}, getModelObject()); - return; - } - */ - } - - /* - * @see IValidationRule#preValidate(IEJBValidationContext, Object, Object) - */ - public void preValidate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - super.preValidate(vc, targetParent, target); - hasPKMethod = false; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPHome.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPHome.java deleted file mode 100644 index 222d6439b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPHome.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - -/** - * This class checks bean managed entity home classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 9.2.8 - */ -public class ValidateBMPHome extends AValidateEntityHome implements IMessagePrefixEjb11Constants { - private static final String MSSGID = ".eh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private static final Object ID = IValidationRuleList.EJB11_BMP_HOME; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_BMP_BEANCLASS, IValidationRuleList.EJB11_BMP_KEYCLASS}; - private static final Map MESSAGE_IDS; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2005, new String[]{CHKJ2005+BEXT, CHKJ2005+MEXT}); - - MESSAGE_IDS.put(CHKJ2011, new String[]{CHKJ2011+EXT}); - MESSAGE_IDS.put(CHKJ2012, new String[]{CHKJ2012+EXT}); - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2026, new String[]{CHKJ2026+BEXT, CHKJ2026+MEXT}); - - MESSAGE_IDS.put(CHKJ2030, new String[]{CHKJ2030+BEXT, CHKJ2030+MEXT}); - - MESSAGE_IDS.put(CHKJ2104, new String[]{CHKJ2104 + SPEC}); - MESSAGE_IDS.put(CHKJ2402, new String[]{CHKJ2402+BEXT, CHKJ2402+MEXT}); - MESSAGE_IDS.put(CHKJ2403, new String[]{CHKJ2403+BEXT, CHKJ2403+MEXT}); - MESSAGE_IDS.put(CHKJ2405, new String[]{CHKJ2405+BEXT, CHKJ2405+MEXT}); - - MESSAGE_IDS.put(CHKJ2412, new String[]{CHKJ2412+BEXT, CHKJ2412+MEXT}); - MESSAGE_IDS.put(CHKJ2413, new String[]{CHKJ2413+BEXT, CHKJ2413+MEXT}); - MESSAGE_IDS.put(CHKJ2414, new String[]{CHKJ2414+BEXT, CHKJ2414+MEXT}); - MESSAGE_IDS.put(CHKJ2415, new String[]{CHKJ2415+BEXT, CHKJ2415+MEXT}); - - MESSAGE_IDS.put(CHKJ2041, new String[]{CHKJ2041}); // special case. Shared by all types. - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - /** - * EJB 1.1 specification - * Section: 9.2.8 - */ - public void validateFindMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - super.validateFindMethod(vc, bean, clazz, method); - - if (method == null) { - return; - } - - // The verifyMatchingBeanFindMethod checks for the two following requirements: - // - // Each finder method must be named "find<METHOD>" (e.g. findLargeAccounts), and it - // must match one of the ejbFind<METHOD> methods defined in the entity bean class - // (e.g. ejbFindLargeAccounts). The matching ejbFind<METHOD> method must have the - // same number and types of arguments. (Note that the return type may be different.) - // - // All the exceptions defined in the throws clause of an ejbFind method of the - // entity bean class must be included in the throws clause of the matching find - // method of the home interface. - validateFindMethod_beanDep(vc, bean, clazz, method); - - } - - /** - * EJB 1.1 specification - * Section: 9.2.8 - */ - public void validateFindMethod_beanDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - if (method == null) { - return; - } - - // The verifyMatchingBeanFindMethod checks for the two following requirements: - // - // Each finder method must be named "find<METHOD>" (e.g. findLargeAccounts), and it - // must match one of the ejbFind<METHOD> methods defined in the entity bean class - // (e.g. ejbFindLargeAccounts). The matching ejbFind<METHOD> method must have the - // same number and types of arguments. (Note that the return type may be different.) - // - // All the exceptions defined in the throws clause of an ejbFind method of the - // entity bean class must be included in the throws clause of the matching find - // method of the home interface. - validateMatchingBeanFindMethod(vc, bean, clazz, method); - - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPKey.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPKey.java deleted file mode 100644 index 10c4adf1b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPKey.java +++ /dev/null @@ -1,80 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - -/** - * Validate a BMP key. - */ -public class ValidateBMPKey extends AValidateKeyClass implements IMessagePrefixEjb11Constants { - private static final String MSSGID = ".eb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - - private static final Object ID = IValidationRuleList.EJB11_BMP_KEYCLASS; - private static final Object[] DEPENDS_ON = null; - private static final Map MESSAGE_IDS; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2001, new String[]{CHKJ2001+EXT}); - - MESSAGE_IDS.put(CHKJ2019, new String[]{CHKJ2019+EXT}); - -//Don't use that AValidateEJB method MESSAGE_IDS.put(CHKJ2412, new String[]{CHKJ2412+EXT}); -//Don't use that AValidateEJB method MESSAGE_IDS.put(CHKJ2413, new String[]{CHKJ2413+EXT}); -//Don't use that AValidateEJB method MESSAGE_IDS.put(CHKJ2414, new String[]{CHKJ2414+EXT}); - - MESSAGE_IDS.put(CHKJ2041, new String[]{CHKJ2041}); // special case. Shared by all types. - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - /** - * This method actually does the validation. - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - //super.primValidate(ejbMethod); - - //Nothing to do. - } - - /** - * Checks to see if @ejbMethod is one of the required methods. - */ - protected void primValidateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - //super.validateExistence(ejbMethod); - - // Nothing to do - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPRemote.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPRemote.java deleted file mode 100644 index 8ad649d92..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateBMPRemote.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.HashMap; -import java.util.Map; - - - -/** - * Validates the remote interface of a BMP bean. - */ -public class ValidateBMPRemote extends AValidateRemote implements IMessagePrefixEjb11Constants { - private static final String MSSGID = ".er"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private static final Object ID = IValidationRuleList.EJB11_BMP_REMOTE; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_BMP_BEANCLASS}; - private static final Map MESSAGE_IDS; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2012, new String[]{CHKJ2012+EXT}); - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105 + SPEC}); - - MESSAGE_IDS.put(CHKJ2412, new String[]{CHKJ2412+BEXT, CHKJ2412+MEXT}); - MESSAGE_IDS.put(CHKJ2413, new String[]{CHKJ2413+BEXT, CHKJ2413+MEXT}); - MESSAGE_IDS.put(CHKJ2414, new String[]{CHKJ2414+BEXT, CHKJ2414+MEXT}); - MESSAGE_IDS.put(CHKJ2415, new String[]{CHKJ2415+BEXT, CHKJ2415+MEXT}); - - MESSAGE_IDS.put(CHKJ2041, new String[]{CHKJ2041}); // special case. Shared by all types. - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateCMPBean.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateCMPBean.java deleted file mode 100644 index f5bfa8792..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateCMPBean.java +++ /dev/null @@ -1,378 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.logging.Level; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - -/** - * This class checks entity bean classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * - * - * All 9.2.X sections describe BMP requirements. - * If a CMP requirement is different than these, then the differences are - * documented in 9.4.X sections. - */ -public class ValidateCMPBean extends AValidateEntityBean implements IMessagePrefixEjb11Constants { - private List _containerManagedFields = null; - - private static final String MSSGID = ".eb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private static final Object ID = IValidationRuleList.EJB11_CMP_BEANCLASS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_CMP_HOME, IValidationRuleList.EJB11_CMP_REMOTE}; - private static final Map MESSAGE_IDS; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2002, new String[]{CHKJ2002+BEXT, CHKJ2002+MEXT}); - MESSAGE_IDS.put(CHKJ2004, new String[]{CHKJ2004+BEXT, CHKJ2004+MEXT}); - MESSAGE_IDS.put(CHKJ2006, new String[]{CHKJ2006+EXT}); - MESSAGE_IDS.put(CHKJ2007, new String[]{CHKJ2007+EXT}); - - MESSAGE_IDS.put(CHKJ2013, new String[]{CHKJ2013+EXT}); - MESSAGE_IDS.put(CHKJ2014, new String[]{CHKJ2014+EXT}); - MESSAGE_IDS.put(CHKJ2015, new String[]{CHKJ2015+EXT}); - - MESSAGE_IDS.put(CHKJ2022, new String[]{CHKJ2022+EXT}); - MESSAGE_IDS.put(CHKJ2028, new String[]{CHKJ2028+BEXT, CHKJ2028+MEXT}); - MESSAGE_IDS.put(CHKJ2029, new String[]{CHKJ2029+BEXT, CHKJ2029+MEXT}); - - MESSAGE_IDS.put(CHKJ2032, new String[]{CHKJ2032+EXT}); - MESSAGE_IDS.put(CHKJ2033, new String[]{CHKJ2033+EXT}); - MESSAGE_IDS.put(CHKJ2034, new String[]{CHKJ2034+EXT}); - MESSAGE_IDS.put(CHKJ2035, new String[]{CHKJ2035+EXT}); - MESSAGE_IDS.put(CHKJ2036, new String[]{CHKJ2036+EXT}); - MESSAGE_IDS.put(CHKJ2037, new String[]{CHKJ2037+EXT}); - MESSAGE_IDS.put(CHKJ2038, new String[]{CHKJ2038+EXT}); - MESSAGE_IDS.put(CHKJ2039, new String[]{CHKJ2039+EXT}); - - MESSAGE_IDS.put(CHKJ2103, new String[]{CHKJ2103 + SPEC}); - MESSAGE_IDS.put(CHKJ2200, new String[]{CHKJ2200+ON_BASE+SPEC, CHKJ2200+ON_THIS+SPEC}); // CHKJ2200 is a special case. It's shared by all bean types. - MESSAGE_IDS.put(CHKJ2201, new String[]{CHKJ2201+BEXT, CHKJ2201+MEXT}); - MESSAGE_IDS.put(CHKJ2202, new String[]{CHKJ2202+BEXT, CHKJ2202+MEXT}); - MESSAGE_IDS.put(CHKJ2203, new String[]{CHKJ2203+BEXT, CHKJ2203+MEXT}); - MESSAGE_IDS.put(CHKJ2207, new String[]{CHKJ2207+EXT, CHKJ2207+EXT}); // special case where the message id is the same regardless of whether or not the method is inherited - - MESSAGE_IDS.put(CHKJ2400_bus, new String[]{CHKJ2400_bus+BEXT, CHKJ2400_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2400_ejbCreate, new String[]{CHKJ2400_ejbCreate+BEXT, CHKJ2400_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2400_ejbFind, new String[]{CHKJ2400_ejbFind+BEXT, CHKJ2400_ejbFind+MEXT}); - MESSAGE_IDS.put(CHKJ2400_ejbPostCreate, new String[]{CHKJ2400_ejbPostCreate+BEXT, CHKJ2400_ejbPostCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2406, new String[]{CHKJ2406+BEXT, CHKJ2406+MEXT}); - MESSAGE_IDS.put(CHKJ2408_bus, new String[]{CHKJ2408_bus+BEXT, CHKJ2408_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2408_ejbCreate, new String[]{CHKJ2408_ejbCreate+BEXT, CHKJ2408_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2408_ejbPostCreate, new String[]{CHKJ2408_ejbPostCreate+BEXT, CHKJ2408_ejbPostCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2409_bus, new String[]{CHKJ2409_bus+BEXT, CHKJ2409_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2409_ejbCreate, new String[]{CHKJ2409_ejbCreate+BEXT, CHKJ2409_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2409_ejbFind, new String[]{CHKJ2409_ejbFind+BEXT, CHKJ2409_ejbFind+MEXT}); - MESSAGE_IDS.put(CHKJ2409_ejbPostCreate, new String[]{CHKJ2409_ejbPostCreate+BEXT, CHKJ2409_ejbPostCreate+MEXT}); - - MESSAGE_IDS.put(CHKJ2410_bus, new String[]{CHKJ2410_bus+BEXT, CHKJ2410_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2410_ejbCreate, new String[]{CHKJ2410_ejbCreate+BEXT, CHKJ2410_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2410_ejbFind, new String[]{CHKJ2410_ejbFind+BEXT, CHKJ2410_ejbFind+MEXT}); - MESSAGE_IDS.put(CHKJ2410_ejbPostCreate, new String[]{CHKJ2410_ejbPostCreate+BEXT, CHKJ2410_ejbPostCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2411, new String[]{CHKJ2411+BEXT, CHKJ2411+MEXT}); - MESSAGE_IDS.put(CHKJ2412, new String[]{CHKJ2412+BEXT, CHKJ2412+MEXT}); - MESSAGE_IDS.put(CHKJ2413, new String[]{CHKJ2413+BEXT, CHKJ2413+MEXT}); - MESSAGE_IDS.put(CHKJ2414, new String[]{CHKJ2414+BEXT, CHKJ2414+MEXT}); - MESSAGE_IDS.put(CHKJ2418, new String[]{CHKJ2418+BEXT, CHKJ2418+MEXT}); - MESSAGE_IDS.put(CHKJ2420, new String[]{CHKJ2420+BEXT, CHKJ2420+MEXT}); - MESSAGE_IDS.put(CHKJ2432, new String[]{CHKJ2432+BEXT, CHKJ2432+MEXT}); - - MESSAGE_IDS.put(CHKJ2041, new String[]{CHKJ2041}); // special case. Shared by all types. - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2456, new String[]{CHKJ2456+ON_BASE, CHKJ2456+ON_THIS}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public void reset() { - super.reset(); - _containerManagedFields = null; - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - protected List getContainerManagedFields() { - return _containerManagedFields; - } - - protected boolean hasContainerManagedField() { - return (getContainerManagedFields() != null && getContainerManagedFields().size() > 0); - } - - public boolean isContainerManagedField(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) { - if (field == null) { - return false; - } - return getContainerManagedFields() != null && getContainerManagedFields().contains(field.getName()); - } - - /** - * EJB 1.1 specification - * Section: 9.4.1 - * - * Return true if the field is the enterprise bean's home interface. - */ - protected boolean isContainerManagedHome_homeDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws InvalidInputException { - if (field == null) { - return false; - } - - if (bean == null) { - return false; - } - - JavaClass homeIntf = bean.getHomeInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, homeIntf); - - return ValidationRuleUtility.isAssignableFrom(ValidationRuleUtility.getType(field), homeIntf); - } - - /** - * EJB 1.1 specification - * Section: 9.4.1 - * - * Return true if the field is the enterprise bean's remote interface. - */ - protected boolean isContainerManagedRemote_remoteDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws InvalidInputException { - if (field == null) { - return false; - } - - if (bean == null) { - return false; - } - - JavaClass remoteIntf = bean.getRemoteInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, remoteIntf); - - return ValidationRuleUtility.isAssignableFrom(ValidationRuleUtility.getType(field), remoteIntf); - } - - private List loadContainerManagedFields(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // The validation in this class, of the fields, is performed against the - // container-managed fields, not the fields of this class directly. - if (bean == null) { - return Collections.EMPTY_LIST; - } - - List fields = null; - try { - List cmpAttributes = ((ContainerManagedEntity) bean).getPersistentAttributes(); - if (cmpAttributes != null && !cmpAttributes.isEmpty()) { - fields = new ArrayList(cmpAttributes.size()); - for (int i = 0; i < cmpAttributes.size(); i++) - fields.add(((CMPAttribute) cmpAttributes.get(i)).getName()); - } - } - catch (Throwable exc) { - Logger logger = vc.getMsgLogger(); - if (logger != null && logger.isLoggingLevel(Level.FINER)) { - logger.write(Level.FINER, exc); - } - fields = Collections.EMPTY_LIST; - } - return fields; - } - - /** - * EJB 1.1 specification - * Section: 18.1.2 - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws InvalidInputException { - super.primValidate(vc, bean, clazz, field); - - vc.terminateIfCancelled(); - - validateContainerManagedField(vc, bean, clazz, field); - } - - /** - * EJB 1.1 specification - * Section: 9.2.6 - */ - public void validateBusinessMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // Perform common BMP/CMP business method checks - if (!isEjbRelationshipRoleMethod(vc, bean, clazz, method)) - super.validateBusinessMethod(vc, bean, clazz, method); - - // No specific CMP business method checks. - // All of the points in 9.2.6 are common to both BMPs & CMPs. - } - - protected void validateBusinessMethodNoRemoteException(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - if (!isEjbRelationshipRoleMethod(vc, bean, clazz, method)) - super.validateBusinessMethodNoRemoteException(vc, bean, clazz, method); // EJB 2.0 added "throws InvalidInputException above" - } - - /** - * EJB 1.1 specification - * Section: 9.2.2 - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - // All of the above checks are performed by the parent. - super.validateClass(vc, bean, clazz); - - validatePrimitivePrimaryKey(vc, bean, clazz); // if this class uses a primitive primary key, the type of the key must be the same as the type of the field - } - - /** - * EJB 1.1 specification - * Section: 9.4.1 - */ - protected void validateContainerManagedField(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws InvalidInputException { - if (isContainerManagedField(vc, bean, clazz, field)) { - if (field == null) { - return; - } - - vc.terminateIfCancelled(); - - if (!ValidationRuleUtility.isPublic(field)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2203, IEJBValidationContext.ERROR, bean, clazz, field, this); - vc.addMessage(message); - } - - if (field.isTransient()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2201, IEJBValidationContext.ERROR, bean, clazz, field, this); - vc.addMessage(message); - } - - // Check if it's a reference to the home or remote interface. - validateContainerManagedField_dependent(vc, bean, clazz, field); - } - } - - /** - * EJB 1.1 specification - * Section: 9.4.1 - * - * Return true if the field is either the enterprise bean's remote interface, - * or the enterprise bean's home interface. - */ - protected void validateContainerManagedField_dependent(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws InvalidInputException { - if (field == null) { - return; - } - - JavaHelpers fieldType = ValidationRuleUtility.getType(field); - - if (!ValidationRuleUtility.isSerializable(fieldType, bean)) { - // If it were primitive, it would be serializable, so two checks were done in that one line of code. - // - // Check if it's the enterprise bean's remote or home interface - vc.terminateIfCancelled(); - if (!(isContainerManagedHome_homeDep(vc, bean, clazz, field)) || (isContainerManagedRemote_remoteDep(vc, bean, clazz, field))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2202, IEJBValidationContext.WARNING, bean, clazz, field, this); - vc.addMessage(message); - } - } - } - - /** - * EJB 1.1 specification - * Section: 9.4.6 - */ - public void validateEjbFindMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - if (method == null) { - throw new InvalidInputException(); - } - - // Only BMPs implement finder methods. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2004, IEJBValidationContext.WARNING, bean, clazz, method, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - - /** - * Checks that the ejbPostCreate method follows the EJB 1.1. specification. - * Section: 9.2.4 and 9.4.2 - */ - public void validateEjbPostCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // Perform common BMP/CMP ejbPostCreate method checks - super.validateEjbPostCreateMethod(vc, bean, clazz, method); - - // No specific CMP ejbPostCreateMethod checks. - // All of the points in 9.2.4 are common to both BMPs & CMPs. - } - - protected void validatePrimitivePrimaryKey(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - ContainerManagedEntity cmp = (ContainerManagedEntity) bean; // bean is checked for null in AValidateEJB.validate() method, so don't need to check for it here. - - if (ValidationRuleUtility.isPrimitivePrimaryKey(cmp)) { - // primitive primary key - - // primary key that maps to a single field in the entity bean class - // The field's type must be the primary key type. - CMPAttribute keyAttribute = cmp.getPrimKeyField(); - Field keyField = (keyAttribute == null) ? null : keyAttribute.getField(); - JavaClass primaryKey = cmp.getPrimaryKey(); - if ((keyField == null) || !ValidationRuleUtility.isAssignableFrom((JavaHelpers)keyField.getEType(), primaryKey)) { - String[] msgParm = { keyAttribute.getName(), primaryKey.getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2207, IEJBValidationContext.ERROR, bean, clazz, keyField, msgParm, this); - vc.addMessage(message); - } - } - } - - /** - * Check that at least one field exists on the bean. - */ - public void verifyFieldExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - if (!hasContainerManagedField()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2032, IEJBValidationContext.WARNING, bean, clazz, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - } - /* - * @see IValidationRule#preValidate(IEJBValidationContext, Object, Object) - */ - public void preValidate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - super.preValidate(vc, targetParent, target); - _containerManagedFields = loadContainerManagedFields(vc, (EnterpriseBean)targetParent, (JavaClass)target); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateCMPKey.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateCMPKey.java deleted file mode 100644 index 185b8a232..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateCMPKey.java +++ /dev/null @@ -1,259 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * This class checks entity bean classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * - * - * All 9.2.X sections describe BMP requirements. (And the bulk of those - * are implemented in ValidateKeyClass.) - * If a CMP requirement is different than these, then the differences are - * documented in 9.4.X sections. - */ -public class ValidateCMPKey extends AValidateKeyClass implements IMessagePrefixEjb11Constants { - private boolean hasAConstructor = false; - private boolean hasDefaultConstructor = false; - private Set _beanFieldNames = new HashSet(); - - private static final String MSSGID = ".eb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private static final Object ID = IValidationRuleList.EJB11_CMP_KEYCLASS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_CMP_BEANCLASS}; - private static final Map MESSAGE_IDS; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2001, new String[]{CHKJ2001+EXT}); - - MESSAGE_IDS.put(CHKJ2019, new String[]{CHKJ2019+EXT}); - - MESSAGE_IDS.put(CHKJ2020, new String[]{CHKJ2020+EXT}); - MESSAGE_IDS.put(CHKJ2021, new String[]{CHKJ2021+EXT}); - - MESSAGE_IDS.put(CHKJ2205, new String[]{CHKJ2205+BEXT, CHKJ2205+MEXT}); - MESSAGE_IDS.put(CHKJ2206, new String[]{CHKJ2206+BEXT, CHKJ2206+MEXT}); // special case where the id is the same regardless of whether the method is inherited or not - -//AValidateEJB method not used MESSAGE_IDS.put(CHKJ2412, new String[]{CHKJ2412+BEXT, CHKJ2412+MEXT}); -//AValidateEJB method not used MESSAGE_IDS.put(CHKJ2413, new String[]{CHKJ2413+BEXT, CHKJ2413+MEXT}); -//AValidateEJB method not used MESSAGE_IDS.put(CHKJ2414, new String[]{CHKJ2414+BEXT, CHKJ2414+MEXT}); - - MESSAGE_IDS.put(CHKJ2041, new String[]{CHKJ2041}); // special case. Shared by all types. - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2829, new String[]{CHKJ2829 + SPEC}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public void reset() { - super.reset(); - _beanFieldNames.clear(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public Object getTarget(Object parent, Object clazz) { - if(parent == null) { - return null; - } - - ContainerManagedEntity cmp = (ContainerManagedEntity)parent; - if(ValidationRuleUtility.isPrimitivePrimaryKey(cmp)) { - return null; // do not validate a primitive primary key - } - - return cmp.getPrimaryKey(); - } - - public final Object getId() { - return ID; - } - - /* - * EJB 1.1 specification - * Section: 9.4.7.1 and 9.4.7.2 - */ - protected void buildFieldNameList(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) { - // Build up the list of field names to be used in the field validation. - vc.terminateIfCancelled(); - - ContainerManagedEntity cmp = (ContainerManagedEntity) bean; - if (cmp == null) { - // Let the class validation throw the exception - return; - } - - if (!ValidationRuleUtility.isPrimitivePrimaryKey(cmp)) { - List attributes = cmp.getPersistentAttributes(); - CMPAttribute attribute = null; - Iterator iterator = attributes.iterator(); - while (iterator.hasNext()) { - attribute = (CMPAttribute) iterator.next(); - try { - // These are different fields than the ones validated by this - // valImpl class, so don't need to worry about duplicate reflection - // warnings logged against the same object. - ValidationRuleUtility.isValidType(attribute.getType()); - _beanFieldNames.add(attribute.getName()); - } - catch (InvalidInputException e) { - //TODO (Dan) Change to use the attribute directly and not the field. - reflectionWarning(vc, bean, clazz , attribute.getField(), e); - } - } - } - } - - /** - * This method actually does the validation. - * - * EJB 1.1 specification - * Section: 9.4.7.2 - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Field field) throws InvalidInputException { - // All fields in the primary key class must be declared as public. - if (!ValidationRuleUtility.isPublic(field)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2205, IEJBValidationContext.WARNING, bean, clazz, field, this); - vc.addMessage(message); - } - - // The names of the fields in the primary key class must be a subset of the names of the container-managed - // fields. (This allows the container to extract the primary key fields from an instance's container-managed - // fields, and vice versa.) - ContainerManagedEntity cmp = (ContainerManagedEntity) bean; - // Don't need to check if cmp is null, because this method is called only by validateFields(), - // and validateFields() won't call this method if the bean is null. - - if (!_beanFieldNames.contains(field.getName())) { - JavaClass ejbClass = cmp.getEjbClass(); - ValidationRuleUtility.isValidType(ejbClass); - String[] msgParm = { cmp.getName(), cmp.getEjbClass().getName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2206, IEJBValidationContext.WARNING, bean, clazz, field, msgParm, this); - vc.addMessage(message); - } - } - - /** - * This method actually does the validation. - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - // super.primValidate(ejbMethod); - - //Nothing to do. - } - - /** - * Checks to see if @ejbMethod is one of the required methods. - */ - protected void primValidateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - //super.validateExistence(ejbMethod); - - if (ejbMethod.isConstructor()) { - // These booleans are used in the validateMethodExists() checks. - hasAConstructor = true; - if (ValidationRuleUtility.isPublic(ejbMethod) && (ejbMethod.listParametersWithoutReturn().length == 0)) { - hasDefaultConstructor = true; - } - } - } - - /** - * EJB 1.1 specification - * Section: 9.4.7.2 - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - super.validateClass(vc, bean, clazz); - - vc.terminateIfCancelled(); - - // The primary key class must be public - if (!clazz.isPublic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2020, IEJBValidationContext.ERROR, bean, clazz, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - - buildFieldNameList(vc, bean, clazz); - - // Doesn't make sense to check for cmp key attributes if it's not a valid prim key field. - // primary key must map to at least one field on the bean - ContainerManagedEntity cmp = (ContainerManagedEntity)bean; - if(!ValidationRuleUtility.usesUnknownPrimaryKey(cmp)) { - // primary key must map to at least one field on the bean - // But if it's an unknown key, there's no point checking java.lang.Object - List primKeyFields = cmp.getKeyAttributes(); - if ((primKeyFields == null) || (primKeyFields.size() == 0)) { - JavaClass primaryKey = cmp.getPrimaryKey(); // don't need to check MOFHelper.isValidType(primaryKey), because it's already been called in the validateDeploymentDescriptor method - String beanName = (cmp.getName() == null) ? "null" : cmp.getName(); //$NON-NLS-1$ - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2829, IEJBValidationContext.ERROR, bean, primaryKey, new String[] { primaryKey.getName(), beanName }, this); - vc.addMessage(message); - } - } - } - - /** - * EJB 1.1 specification - * Section: 9.4.7.2 - */ - public void validateMethodExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - super.validateMethodExists(vc, bean, clazz); - - // If the class has no constructors defined, Java inserts a public constructor with no arguments. - // But if the class has at least one constructor defined, Java will not insert a constructor. - if (!hasDefaultConstructor && hasAConstructor) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2021, IEJBValidationContext.ERROR, bean, clazz, new String[] { clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - } - /* - * @see IValidationRule#preValidate(IEJBValidationContext, Object, Object) - */ - public void preValidate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - super.preValidate(vc, targetParent, target); - hasAConstructor = false; - hasDefaultConstructor = false; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateCMPRemote.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateCMPRemote.java deleted file mode 100644 index 2a5ed9c3b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateCMPRemote.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.HashMap; -import java.util.Map; - - - -/** - * Validates the remote interface of a CMP bean. - */ -public class ValidateCMPRemote extends AValidateRemote implements IMessagePrefixEjb11Constants { - private static final String MSSGID = ".er"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private static final Object ID = IValidationRuleList.EJB11_CMP_REMOTE; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_CMP_BEANCLASS}; - private static final Map MESSAGE_IDS; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2012, new String[]{CHKJ2012+EXT}); - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105 + SPEC}); - - MESSAGE_IDS.put(CHKJ2412, new String[]{CHKJ2412+BEXT, CHKJ2412+MEXT}); - MESSAGE_IDS.put(CHKJ2413, new String[]{CHKJ2413+BEXT, CHKJ2413+MEXT}); - MESSAGE_IDS.put(CHKJ2414, new String[]{CHKJ2414+BEXT, CHKJ2414+MEXT}); - MESSAGE_IDS.put(CHKJ2415, new String[]{CHKJ2415+BEXT, CHKJ2415+MEXT}); - - MESSAGE_IDS.put(CHKJ2041, new String[]{CHKJ2041}); // special case. Shared by all types. - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateSessionBean.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateSessionBean.java deleted file mode 100644 index 2a787beae..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateSessionBean.java +++ /dev/null @@ -1,495 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Session; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * This class checks Session home interface classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 6.8, 6.10.2, 6.10.3 and 6.10.4 - */ -public class ValidateSessionBean extends AValidateBean implements IMessagePrefixEjb11Constants { - private boolean hasValidConstructor = false; - private boolean hasAConstructor = false; - private boolean hasDefaultCreateMethod = false; - private Set createMethods = null; - - private static final String MSSGID = ".sb"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private static final Object ID = IValidationRuleList.EJB11_SESSION_BEANCLASS; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_SESSION_HOME, IValidationRuleList.EJB11_SESSION_REMOTE}; - private static final Map MESSAGE_IDS; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2003I, new String[]{CHKJ2003I + SPEC}); - MESSAGE_IDS.put(CHKJ2003E, new String[]{CHKJ2003E + SPEC}); - - MESSAGE_IDS.put(CHKJ2006, new String[]{CHKJ2006+EXT}); - MESSAGE_IDS.put(CHKJ2007, new String[]{CHKJ2007+EXT}); - MESSAGE_IDS.put(CHKJ2008, new String[]{CHKJ2008+EXT}); - - MESSAGE_IDS.put(CHKJ2013, new String[]{CHKJ2013+EXT}); - MESSAGE_IDS.put(CHKJ2014, new String[]{CHKJ2014+EXT}); - MESSAGE_IDS.put(CHKJ2015, new String[]{CHKJ2015+EXT}); - - MESSAGE_IDS.put(CHKJ2022, new String[]{CHKJ2022+EXT}); - MESSAGE_IDS.put(CHKJ2025, new String[]{CHKJ2025+BEXT, CHKJ2025+MEXT}); - - MESSAGE_IDS.put(CHKJ2040, new String[]{CHKJ2040+EXT}); - - MESSAGE_IDS.put(CHKJ2103, new String[]{CHKJ2103 + SPEC}); - MESSAGE_IDS.put(CHKJ2200, new String[]{CHKJ2200+ON_BASE+SPEC, CHKJ2200+ON_THIS+SPEC}); // CHKJ2200 is a special case. It's shared by all bean types. - - MESSAGE_IDS.put(CHKJ2400_bus, new String[]{CHKJ2400_bus+BEXT, CHKJ2400_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2400_ejbCreate, new String[]{CHKJ2400_ejbCreate+BEXT, CHKJ2400_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2401, new String[]{CHKJ2401+BEXT, CHKJ2401+MEXT}); - MESSAGE_IDS.put(CHKJ2408_bus, new String[]{CHKJ2408_bus+BEXT, CHKJ2408_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2408_ejbCreate, new String[]{CHKJ2408_ejbCreate+BEXT, CHKJ2408_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2409_bus, new String[]{CHKJ2409_bus+BEXT, CHKJ2409_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2409_ejbCreate, new String[]{CHKJ2409_ejbCreate+BEXT, CHKJ2409_ejbCreate+MEXT}); - - MESSAGE_IDS.put(CHKJ2410_bus, new String[]{CHKJ2410_bus+BEXT, CHKJ2410_bus+MEXT}); - MESSAGE_IDS.put(CHKJ2410_ejbCreate, new String[]{CHKJ2410_ejbCreate+BEXT, CHKJ2410_ejbCreate+MEXT}); - MESSAGE_IDS.put(CHKJ2411, new String[]{CHKJ2411+BEXT, CHKJ2411+MEXT}); - MESSAGE_IDS.put(CHKJ2412, new String[]{CHKJ2412+BEXT, CHKJ2412+MEXT}); - MESSAGE_IDS.put(CHKJ2413, new String[]{CHKJ2413+BEXT, CHKJ2413+MEXT}); - MESSAGE_IDS.put(CHKJ2414, new String[]{CHKJ2414+BEXT, CHKJ2414+MEXT}); - - MESSAGE_IDS.put(CHKJ2420, new String[]{CHKJ2420+BEXT, CHKJ2420+MEXT}); - - MESSAGE_IDS.put(CHKJ2432, new String[]{CHKJ2432+BEXT, CHKJ2432+MEXT}); - - MESSAGE_IDS.put(CHKJ2041, new String[]{CHKJ2041}); // special case. Shared by all types. - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2456, new String[]{CHKJ2456+ON_BASE, CHKJ2456+ON_THIS}); // special case (shared by all types) - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public void reset() { - super.reset(); - createMethods.clear(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public ValidateSessionBean() { - createMethods = new HashSet(); - } - - protected final String getParentName() { - return ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONBEAN; - } - - protected boolean hasCreateMethod() { - if (hasDefaultCreateMethod == true) - return true; - if (createMethods.size() > 0) - return true; - return false; - } - - protected void incrementCreateMethodCount(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) { - if (method == null) { - return; - } - - if ((method.listParametersWithoutReturn().length == 0) && (!hasDefaultCreateMethod)) { - hasDefaultCreateMethod = true; - } - else { - // add it to the list, for reporting extraneous create methods, for stateless session beans (section 6.8) - createMethods.add(method); - } - } - - public boolean isFrameworkMethod(String name) { - if (super.isFrameworkMethod(name)) { - return true; - } - - // check for session-specific methods - if (name.equals(IMethodAndFieldConstants.METHODNAME_SETSESSIONCONTEXT)) { - return true; - } - - return false; - } - - /** - * Check that the ejbCreate methods and business methods follow the EJB 1.1 spec. - * Section: 6.8, 6.10.2, 6.10.3 and 6.10.4 - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - // super.primValidate(ejbMethod); - - vc.terminateIfCancelled(); - - String name = ejbMethod.getName(); - if (name.equals(IMethodAndFieldConstants.METHODNAME_EJBCREATE)) { - validateEjbCreateMethod(vc, bean, clazz, ejbMethod); - } - else if (name.equals(IMethodAndFieldConstants.METHODNAME_FINALIZE)) { - validateFinalizeMethod(vc, bean, clazz, ejbMethod); - } - else if (ejbMethod.isConstructor()) { - validateConstructor(vc, bean, clazz, ejbMethod); - } - else if (isBusinessMethod(vc, bean, clazz, ejbMethod)) { - validateBusinessMethod(vc, bean, clazz, ejbMethod); - } - else if (!isFrameworkMethod(name)) { - validateHelperMethod(vc, bean, clazz, ejbMethod); - } - - vc.terminateIfCancelled(); - - } - - /** - * Checks to see if @ejbMethod is one of the required methods. - */ - protected void primValidateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - //super.validateExistence(ejbMethod); - - if (IMethodAndFieldConstants.METHODNAME_EJBCREATE.equals(ejbMethod.getName())) - incrementCreateMethodCount(vc, bean, clazz, ejbMethod); - else if (ejbMethod.isConstructor()) - validateConstructor(vc, bean, clazz, ejbMethod); - } - - /** - * Test that the supplied business method follows the EJB 1.1 spec rules. - * Section: 6.10.4 - */ - public void validateBusinessMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - super.validateBusinessMethod(vc, bean, clazz, method); // check method name does not start with 'ejb' - - // The method arguments and return value types must be legal types for RMI/IIOP. - validateLegalRMIMethodWithoutExceptions(vc, bean, clazz, method); - - // The rest of the checks are performed in the validateMethod method. - validateBusinessModifiersAndExceptions(vc, bean, clazz, method); - } - - /** - * Check that the session bean class definition follows the EJB 1.1 spec. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 6.10.2 - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - vc.terminateIfCancelled(); - super.validateClass(vc, bean, clazz); - // super.validateClass() performs the following checks: - // - The class must implement, directly or indirectly, the javax.ejb.SessionBean - // interface. - // - The class must be defined as public, must not be final, and must not - // be abstract. - - // If the class is a stateful session bean, it may optionally implement - // the javax.ejb.SessionSynchronization interface. - - Session session = (Session)bean; - boolean isStateless = ValidationRuleUtility.isStateless(bean); - boolean isBeanManagedStateful = (ValidationRuleUtility.isBeanManagedSession(session) && ValidationRuleUtility.isStateful(session)); - - if (isStateless) { - /* - * EJB 1.1 specification - * Section: 6.5.3 - */ - try { - if (ValidationRuleUtility.isAssignableFrom(bean.getEjbClass(), ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONSYNCHRONIZATION, bean))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2003E, IEJBValidationContext.ERROR, bean, bean.getEjbClass(), this); - vc.addMessage(message); - } - } - catch (InvalidInputException e) { - String beanClassName = (bean.getEjbClass() == null) ? IEJBValidatorConstants.NULL_BEAN_CLASS : bean.getEjbClass().getJavaName(); - String eClass = (e.getJavaClass() == null) ? ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONSYNCHRONIZATION : e.getJavaClass().getJavaName(); // Since only getType throws InvalidInputException, this cannot have been thrown because of the bean class - String[] msgParm = { beanClassName, eClass }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2433, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - } - else if (isBeanManagedStateful) { - /* - * EJB 1.1 specification - * Section: 6.5.3 - */ - try { - if (ValidationRuleUtility.isAssignableFrom(bean.getEjbClass(), ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONSYNCHRONIZATION, bean))) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2003I, IEJBValidationContext.INFO, bean, bean.getEjbClass(), this); - vc.addMessage(message); - } - } - catch (InvalidInputException e) { - String[] msgParm = { bean.getEjbClass().getQualifiedName(), e.getJavaClass().getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2907, IEJBValidationContext.WARNING, bean, msgParm, this); - vc.addMessage(message); - } - } - - // The session bean class may have superclasses and/or superinterfaces. If the - // session bean has superclasses, then the business methods, the ejbCreate methods, - // the methods of the SessionBean interface, and the methods of the optional - // SessionSynchronization interface may be defined in the session bean class, - // or in any of its superclasses. - // - this is taken care of by the EJB MOF model. When asked if a JavaClass has a method, - // the model checks the class' parents too. - - // The class may, but is not required to, implement the session bean's - // remote interface [4] . - // [4] If the session bean class does implement the remote interface, care must - // be taken to avoid passing of this as a method argument or result. This - // potential error can be avoided by choosing not to implement the remote - // interface in the session bean class. - validateClass_remoteDep(vc, bean, clazz); - } - - /** - * Check that the session bean class definition follows the EJB 1.1 spec. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 6.10.2 - */ - public void validateClass_remoteDep(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - vc.terminateIfCancelled(); - // The class may, but is not required to, implement the session bean's - // remote interface [4] . - // [4] If the session bean class does implement the remote interface, care must - // be taken to avoid passing of this as a method argument or result. This - // potential error can be avoided by choosing not to implement the remote - // interface in the session bean class. - JavaClass remote = bean.getRemoteInterface(); - ValidationRuleUtility.isValidTypeHierarchy(bean, remote); - if (ValidationRuleUtility.isAssignableFrom(clazz, remote)) { - String[] msgParm = {clazz.getQualifiedName(), remote.getQualifiedName()}; - IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2040, IEJBValidationContext.INFO, bean, clazz, msgParm, this); - vc.addMessage(message); - } - - } - - protected void validateConstructor(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) { - if (method == null) { - return; - } - - hasAConstructor = true; - if (!hasValidConstructor && ValidationRuleUtility.isPublic(method) && (method.listParametersWithoutReturn().length == 0)) { - hasValidConstructor = true; - } - } - - /** - * Test that the supplied ejbCreate method follows the EJB 1.1 spec rules. - * Section: 6.10.3 - */ - public void validateEjbCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - vc.terminateIfCancelled(); - - // The method which calls this method has already tested that the method name is ejbCreate. - if (method == null) { - return; - } - - // The return type must be void. - JavaHelpers parmType = method.getReturnType(); - String returnTypeName = ((parmType == null) ? "" : parmType.getQualifiedName()); //$NON-NLS-1$ - - if (!returnTypeName.equals(ITypeConstants.VOID)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2401, IEJBValidationContext.ERROR, bean, clazz, method, new String[] {clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - - // The method arguments must be legal types for RMI/IIOP. - validateLegalRMIMethodArguments(vc, bean, clazz, method); - - validateEjbCreateModifiersAndExceptions(vc, bean, clazz, method); - - validateEjbCreateMethod_homeDep(vc, bean, clazz, method); - } - - /** - * EJB 1.1 specification - * Section: 6.10.2 - */ - protected void validateFinalizeMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) { - if (method == null) { - return; - } - - if (method.listParametersWithoutReturn().length == 0) { - // This is a warning, not an error, because EJB 1.0 allowed the finalize() method to be called. EJB 1.1 (section 6.10.2) specifically prohibits it. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2007, IEJBValidationContext.WARNING, bean, clazz, method, new String[] {clazz.getQualifiedName()}, this); - vc.addMessage(message); - } - } - - /** - * EJB 1.1 specification - * Section: 6.8, 6.10.2 and 6.10.3 - */ - protected void validateMethodExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - final String[] modelObjectName = new String[] { clazz.getQualifiedName()}; - if (!hasValidConstructor && hasAConstructor) { - // If a public constructor with no arguments does not exist explicitly, - // Java will insert one as long as there are no constructors defined in the - // class. If there is a constructor, Java does not insert a default constructor. - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2006, IEJBValidationContext.ERROR, bean, clazz, modelObjectName, this); - vc.addMessage(message); - } - - if (!hasCreateMethod()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2008, IEJBValidationContext.ERROR, bean, clazz, modelObjectName, this); - vc.addMessage(message); - } - - // The session bean class must define a single ejbCreate method that takes - // no arguments. - if (ValidationRuleUtility.isStateless(bean) && (createMethods.size() > 0)) { - Iterator iterator = createMethods.iterator(); - while (iterator.hasNext()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2025, IEJBValidationContext.ERROR, bean, clazz, (Method) iterator.next(), modelObjectName, this); - vc.addMessage(message); - } - } - } - - /** - * Test that the supplied method follows the EJB 1.1 spec rules. - * - * ejbCreate and business methods follow some of the same rules. This method checks those rules. - * (Part of sections 6.10.3 and 6.10.4) - */ - public void validateBusinessModifiersAndExceptions(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // EJB 2.0 added "throws InvalidInputException" above - vc.terminateIfCancelled(); - if (method == null) - return; - - // The method must be declared as public. - if (!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2408_bus, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The method must not be declared as final or static. - if (method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2410_bus, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - if (method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2409_bus, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The throws clause may define arbitrary application exceptions, possibly - // including the javax.ejb.CreateException. - // Compatibility Note: EJB 1.0 allowed the business methods to throw the java.rmi.RemoteException - // to indicate a non-application exception. This practice is deprecated in EJB 1.1 -- an EJB 1.1 compliant - // enterprise bean should throw the javax.ejb.EJBException or another RuntimeException to - // indicate non-application exceptions to the Container (see Section 12.2.2). - validateNoRemoteException(vc, bean, clazz, method, IMessagePrefixEjb11Constants.CHKJ2400_bus); - } - - public void validateEjbCreateModifiersAndExceptions(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - // EJB 2.0 added "throws InvalidInputException" above - vc.terminateIfCancelled(); - if (method == null) - return; - - // The method must be declared as public. - if (!ValidationRuleUtility.isPublic(method)) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2408_ejbCreate, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The method must not be declared as final or static. - if (method.isStatic()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2410_ejbCreate, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - if (method.isFinal()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2409_ejbCreate, IEJBValidationContext.ERROR, bean, clazz, method, this); - vc.addMessage(message); - } - - // The throws clause may define arbitrary application exceptions, possibly - // including the javax.ejb.CreateException. - // Compatibility Note: EJB 1.0 allowed the business methods to throw the java.rmi.RemoteException - // to indicate a non-application exception. This practice is deprecated in EJB 1.1 -- an EJB 1.1 compliant - // enterprise bean should throw the javax.ejb.EJBException or another RuntimeException to - // indicate non-application exceptions to the Container (see Section 12.2.2). - validateNoRemoteException(vc, bean, clazz, method, IMessagePrefixEjb11Constants.CHKJ2400_ejbCreate); - } - /* - * @see IValidationRule#preValidate(IEJBValidationContext, Object, Object) - */ - public void preValidate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - super.preValidate(vc, targetParent, target); - hasValidConstructor = false; - hasAConstructor = false; - hasDefaultCreateMethod = false; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateSessionHome.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateSessionHome.java deleted file mode 100644 index 528a43805..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateSessionHome.java +++ /dev/null @@ -1,252 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; - -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - - -/** - * This class checks Session home interface classes for errors or potential errors. - * If any problems are found, an error, warning, or info marker is added to the task list. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 6.8 and 6.10.6 - * - */ -public class ValidateSessionHome extends AValidateHome implements IMessagePrefixEjb11Constants { - private boolean hasDefaultCreateMethod = false; - private Set createMethods = null; - - private static final String MSSGID = ".sh"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private static final Object ID = IValidationRuleList.EJB11_SESSION_HOME; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_SESSION_BEANCLASS, IValidationRuleList.EJB11_SESSION_REMOTE}; - private static final Map MESSAGE_IDS; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2005, new String[]{CHKJ2005+BEXT, CHKJ2005+MEXT}); - MESSAGE_IDS.put(CHKJ2010, new String[]{CHKJ2010+EXT}); - - MESSAGE_IDS.put(CHKJ2011, new String[]{CHKJ2011+EXT}); - MESSAGE_IDS.put(CHKJ2012, new String[]{CHKJ2012+EXT}); - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2024, new String[]{CHKJ2024+BEXT, CHKJ2024+MEXT}); - MESSAGE_IDS.put(CHKJ2026, new String[]{CHKJ2026+BEXT, CHKJ2026+MEXT}); - - MESSAGE_IDS.put(CHKJ2104, new String[]{CHKJ2104 + SPEC}); - - MESSAGE_IDS.put(CHKJ2402, new String[]{CHKJ2402+BEXT, CHKJ2402+MEXT}); - MESSAGE_IDS.put(CHKJ2403, new String[]{CHKJ2403+BEXT, CHKJ2403+MEXT}); - MESSAGE_IDS.put(CHKJ2405, new String[]{CHKJ2405+BEXT, CHKJ2405+MEXT}); - - MESSAGE_IDS.put(CHKJ2412, new String[]{CHKJ2412+BEXT, CHKJ2412+MEXT}); - MESSAGE_IDS.put(CHKJ2413, new String[]{CHKJ2413+BEXT, CHKJ2413+MEXT}); - MESSAGE_IDS.put(CHKJ2414, new String[]{CHKJ2414+BEXT, CHKJ2414+MEXT}); - MESSAGE_IDS.put(CHKJ2415, new String[]{CHKJ2415+BEXT, CHKJ2415+MEXT}); - MESSAGE_IDS.put(CHKJ2419, new String[]{CHKJ2419+BEXT, CHKJ2419+MEXT}); - - MESSAGE_IDS.put(CHKJ2041, new String[]{CHKJ2041}); // special case. Shared by all types. - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public void reset() { - super.reset(); - createMethods.clear(); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } - - public ValidateSessionHome() { - createMethods = new HashSet(); - } - - protected boolean hasCreateMethod() { - if (hasDefaultCreateMethod == true) - return true; - if (createMethods.size() > 0) - return true; - return false; - } - - protected void incrementCreateMethodCount(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) { - if (method == null) { - return; - } - - if ((method.listParametersWithoutReturn().length == 0) && (!hasDefaultCreateMethod)) { - hasDefaultCreateMethod = true; - } - else { - // add it to the list, for reporting extraneous create methods, for stateless session beans (section 6.8) - createMethods.add(method); - } - } - - /** - * Check the session home interface's methods follow the EJB 1.1 spec. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 6.8 and 6.10.6 - */ - public void primValidate(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method hiMethod) throws InvalidInputException { - // Can't invoke an abstract method - // super.primValidate(hiMethod); - - vc.terminateIfCancelled(); - - String name = hiMethod.getName(); - // Home interface should only declare create methods - if (name.equals(IMethodAndFieldConstants.METHODNAME_CREATE)) { - validateCreateMethod(vc, bean, clazz, hiMethod); - } - else { - // Home interface should only declare create methods - // (No methods other than create methods are listed in section 6.10.6, - // but other sections of the spec, e.g. 9.2.2, explicitly list each type - // of method which can be on a class/interface.) - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2419, IEJBValidationContext.ERROR, bean, clazz, hiMethod, this); - vc.addMessage(message); - } - - vc.terminateIfCancelled(); - } - - /** - * Checks to see if @ejbMethod is one of the required methods. - */ - protected void primValidateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { - // Can't invoke an abstract method - //super.validateExistence(ejbMethod); - - if (IMethodAndFieldConstants.METHODNAME_CREATE.equals(ejbMethod.getName())) - incrementCreateMethodCount(vc, bean, clazz, ejbMethod); - } - - /** - * Check that the session home class definition follows the EJB 1.1 spec. - * - * Enterprise JavaBeans Specification ("Specification") - * Version: 1.1 - * Status: Final Release - * Release: 12/17/99 - * URL: http://java.sun.com/products/ejb/docs.html - * Section: 6.10.6 - */ - public void validateClass(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - vc.terminateIfCancelled(); - // Both of the above checks are performed by the ValidateHome class's validateClass method. - super.validateClass(vc, bean, clazz); - } - - /** - * EJB 1.1 specification - * Section: 6.8 and 6.10.6 - */ - protected void validateCreateMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) throws InvalidInputException { - if (method == null) { - return; - } - - // The methods defined in this interface must follow the rules for RMI/IIOP. - // This means that their argument and return values must be of valid types - // for RMI/IIOP, and that their throws clause must include the java.rmi.RemoteException. - validateLegalRMIMethod(vc, bean, clazz, method); - - // Each create method must be named "create", and it must match one of - // the ejbCreate methods defined in the session bean class. The matching - // ejbCreate method must have the same number and types of arguments. - // (Note that the return type is different.) - // All the exceptions defined in the throws clause of an ejbCreate method - // of the session bean class must be defined in the throws clause of the - // matching create method of the home interface. - // The throws clause must include javax.ejb.CreateException. - validateCreateMethod_beanDep(vc, bean, clazz, method); - - // The throws clause must include javax.ejb.CreateException. - if (!ValidationRuleUtility.throwsCreateException(bean, method)) { - String[] msgParm = { ITypeConstants.CLASSNAME_JAVAX_EJB_CREATEEXCEPTION }; - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2414, IEJBValidationContext.ERROR, bean, clazz, method, msgParm, this); - vc.addMessage(message); - } - - // Perform the checks which depend on another class in the enterprise bean. - validateCreateMethod_remoteDep(vc, bean, clazz, method); - } - - /** - * EJB 1.1 specification - * Section: 6.8 and 6.10.6 - */ - protected void validateMethodExists(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { - final String[] modelObjectName = new String[] { clazz.getQualifiedName()}; - - // A session bean's home must define one or more create methods. - if (!hasCreateMethod()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2010, IEJBValidationContext.ERROR, bean, clazz, modelObjectName, this); - vc.addMessage(message); - } - - // The home interface of a stateless session bean must have one create - // method that takes no arguments and returns the session bean's remote - // interface. There can be no other create methods in the home interface. - if (ValidationRuleUtility.isStateless(bean) && (createMethods.size() > 0)) { - Iterator iterator = createMethods.iterator(); - while (iterator.hasNext()) { - IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2024, IEJBValidationContext.ERROR, bean, clazz, (Method) iterator.next(), modelObjectName, this); - vc.addMessage(message); - } - } - } - /* - * @see IValidationRule#preValidate(IEJBValidationContext, Object, Object) - */ - public void preValidate(IEJBValidationContext vc, Object targetParent, Object target) throws ValidationCancelledException, ValidationException { - super.preValidate(vc, targetParent, target); - hasDefaultCreateMethod = false; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateSessionRemote.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateSessionRemote.java deleted file mode 100644 index 68220649d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidateSessionRemote.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -import java.util.HashMap; -import java.util.Map; - - - - -/** - * Validates the remote interface of a Session bean. - */ -public class ValidateSessionRemote extends AValidateRemote implements IMessagePrefixEjb11Constants { - private static final String MSSGID = ".sr"; // In messages, to identify which message version belongs to the BMP bean class, this id is used. //$NON-NLS-1$ - private static final String EXT = MSSGID + SPEC; // Extension to be used on non-method, non-field messages - private static final String BEXT = MSSGID + ON_BASE + SPEC; // Extension to be used on a method/field message when the method/field is inherited from a base type - private static final String MEXT = MSSGID + ON_THIS + SPEC; // Extension to be used on a method/field message when the method/field is implemented on the current type - - private static final Object ID = IValidationRuleList.EJB11_SESSION_REMOTE; - private static final Object[] DEPENDS_ON = new Object[]{IValidationRuleList.EJB11_SESSION_BEANCLASS}; - private static final Map MESSAGE_IDS; - - static { - MESSAGE_IDS = new HashMap(); - - MESSAGE_IDS.put(CHKJ2012, new String[]{CHKJ2012+EXT}); - MESSAGE_IDS.put(CHKJ2017, new String[]{CHKJ2017+EXT}); - - MESSAGE_IDS.put(CHKJ2023, new String[]{CHKJ2023+BEXT, CHKJ2023+MEXT}); - - MESSAGE_IDS.put(CHKJ2105, new String[]{CHKJ2105 + SPEC}); - - MESSAGE_IDS.put(CHKJ2412, new String[]{CHKJ2412+BEXT, CHKJ2412+MEXT}); - MESSAGE_IDS.put(CHKJ2413, new String[]{CHKJ2413+BEXT, CHKJ2413+MEXT}); - MESSAGE_IDS.put(CHKJ2414, new String[]{CHKJ2414+BEXT, CHKJ2414+MEXT}); - MESSAGE_IDS.put(CHKJ2415, new String[]{CHKJ2415+BEXT, CHKJ2415+MEXT}); - - MESSAGE_IDS.put(CHKJ2041, new String[]{CHKJ2041}); // special case. Shared by all types. - MESSAGE_IDS.put(CHKJ2433, new String[]{CHKJ2433}); - MESSAGE_IDS.put(CHKJ2907, new String[]{CHKJ2907}); - } - - public final Map getMessageIds() { - return MESSAGE_IDS; - } - - public final Object[] getDependsOn() { - return DEPENDS_ON; - } - - public final Object getId() { - return ID; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidationCancelledException.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidationCancelledException.java deleted file mode 100644 index 1b9d6146c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidationCancelledException.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - -/** - * This exception should be thrown if the user cancels validation. - */ -public class ValidationCancelledException extends RuntimeException { - /** - * - */ - private static final long serialVersionUID = 7065655347030103289L; - - public ValidationCancelledException() { - super(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidationRuleUtility.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidationRuleUtility.java deleted file mode 100644 index f10612d7a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ValidationRuleUtility.java +++ /dev/null @@ -1,1615 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.text.MessageFormat; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Set; -import java.util.logging.Level; - -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.jem.java.ArrayType; -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaPackage; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jem.java.JavaVisibilityKind; -import org.eclipse.jem.java.Method; -import org.eclipse.jem.util.logger.LogEntry; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.core.internal.plugin.J2EECorePlugin; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.Query; -import org.eclipse.jst.j2ee.ejb.QueryMethod; -import org.eclipse.jst.j2ee.ejb.Session; -import org.eclipse.jst.j2ee.ejb.SessionType; -import org.eclipse.jst.j2ee.ejb.TransactionType; -import org.eclipse.jst.j2ee.ejb.internal.impl.LocalModelledPersistentAttributeFilter; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; - -/** - * @version 1.0 - * @author - */ -public final class ValidationRuleUtility { - public static long method_and_field_counter = 0x1; // used by IMethodAndFieldConstants.java - private static final String[] _reservedWords = new String[]{"SELECT", "FROM", "WHERE", "DISTINCT", "OBJECT", "NULL", "TRUE", "FALSE", "NOT", "AND", "OR", "BETWEEN", "LIKE", "IN", "AS", "UNKNOWN", "EMPTY", "MEMBER", "OF", "IS"}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$ //$NON-NLS-10$ //$NON-NLS-11$ //$NON-NLS-12$ //$NON-NLS-13$ //$NON-NLS-14$ //$NON-NLS-15$ //$NON-NLS-16$ //$NON-NLS-17$ //$NON-NLS-18$ //$NON-NLS-19$ //$NON-NLS-20$ - private static final String COMMA = ", "; //$NON-NLS-1$ - - private static LogEntry logEntry = null; - private static Logger logger = null; - - public static HashMap helperMap = null; - public static HashMap projectHelperMap = new HashMap(); - private static HashSet commonClassNames = null; - - public static JavaClass getCMRFieldType(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, CMRField field) { - CommonRelationshipRole role = field.getRole(); - if(!role.isMany()) { - ContainerManagedEntity cmp = role.getTypeEntity(); - if(cmp == null) { - return null; - } - - JavaClass local = cmp.getLocalInterface(); - // If the user has made a mistake in ejb-jar.xml, and they are trying to make - // a relationship to a cmp which does not have a local interface, an InvalidInputException - // will be thrown. Let the DD validation catch that error; just return - // when this happens. - try { - ValidationRuleUtility.isValidTypeHierarchy(cmp, local); - } - catch(InvalidInputException e) { - return null; - } - return local; - } - // <cmr-field-type> is either a java.util.Collection or a java.util.Set (p. 464) - return field.getCollectionType(); - } - - - - - public static final boolean followsFinderExceptionRules(EnterpriseBean bean, Method method) throws InvalidInputException { - return ValidationRuleUtility.throwsFinderException(bean, method); - } - - public static final boolean followsObjectNotFoundExceptionRules(EnterpriseBean bean, Method method) throws InvalidInputException { - JavaHelpers javaUtilEnumeration = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_UTIL_ENUMERATION, bean); - if(ValidationRuleUtility.isAssignableFrom(method.getReturnType(), javaUtilEnumeration)) { - // Only single object finder and select methods may throw this exception - return !ValidationRuleUtility.throwsObjectNotFoundException(bean, method); - } - - JavaHelpers javaUtilCollection = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_UTIL_COLLECTION, bean); - if(ValidationRuleUtility.isAssignableFrom(method.getReturnType(), javaUtilCollection)) { - // Only single object finder and select methods may throw this exception - return !ValidationRuleUtility.throwsObjectNotFoundException(bean, method); - } - - // It's a single finder/select method, so it can throw the exception, though it is not required to. - return true; - } - - /** - * If it exists, return the Method from the method list which has the given - * name and parameter types (in the same order as the array elements). - * - * This method is a duplicate of getMethodExtended(String, String[]). - * For performance reasons, the code was duplicated instead of converting the - * JavaParameter[] into a String[]. - */ - private static Method getMethod(String name, JavaParameter[] parameterTypes, List methodList) { - if(methodList == null) { - return null; - } - - Method method = null; - JavaParameter[] params = null; - boolean found = false; - - Iterator iterator = methodList.iterator(); - while(iterator.hasNext()) { - method = (Method)iterator.next(); - - if (method.getName().equals(name)) { - params = method.listParametersWithoutReturn(); - - if (params.length == parameterTypes.length) { - found = true; //Maybe; we need more info - - for (int j = 0; j < params.length; j++) { - //if any one of the parameters doesn't match then flip back to false - JavaHelpers parm = ((JavaHelpers)params[j].getEType()); - JavaHelpers type = ((JavaHelpers)parameterTypes[j].getEType()); - if(!isSameType(parm, type)) { - found = false; - break; - } - } - - if (found) { - return method; - } - } - } - } - return null; - } - - private static Method getMethod(String name, JavaHelpers[] parameterTypes, List methodList) { - if(methodList == null) { - return null; - } - - Method method = null; - JavaParameter[] params = null; - boolean found = false; - - Iterator iterator = methodList.iterator(); - while(iterator.hasNext()) { - method = (Method)iterator.next(); - - if (method.getName().equals(name)) { - params = method.listParametersWithoutReturn(); - - if (params.length == parameterTypes.length) { - found = true; //Maybe; we need more info - - for (int j = 0; j < params.length; j++) { - //if any one of the parameters doesn't match then flip back to false - JavaHelpers parm = ((JavaHelpers)params[j].getEType()); - JavaHelpers type = parameterTypes[j]; - if(!isSameType(parm, type)) { - found = false; - break; - } - } - - if (found) { - return method; - } - } - } - } - return null; - } - - /** - * From JavaClass clazz, return a method, named methodNameToFind, - * which has exactly the same arguments as methodToMatch. - * - * If no method exists with that name and argument list, return null. - * - * This method does not check the exceptions or return type. - */ - public static Method getMethod(Method methodToMatch, String methodNameToFind, List methodsExtendedList) { - if(methodsExtendedList == null) { - // It is not invalid to call this method with a null List. A null List - // means that a type whose methods need to be searched doesn't exist, - // such as searching a local view, but the bean has only a remote view. - return null; - } - return getMethod(methodNameToFind, methodToMatch.listParametersWithoutReturn(), methodsExtendedList); - } - - /** - * From JavaClass clazz, return a method, named methodNameToFind, - * which has exactly the same arguments as methodToMatch. - * - * If no method exists with that name and argument list, return null. - * - * This method does not check the exceptions or return type. - */ - public static Method getMethodExtended(JavaClass clazz, Method methodToMatch, String methodNameToFind) throws InvalidInputException { - if ((clazz == null) || (methodToMatch == null) || (methodNameToFind == null)) { - return null; - } - - return getMethodExtended(clazz, methodNameToFind, methodToMatch.listParametersWithoutReturn()); - } - - /** - * Get the method of this name and these parameters. It will look up the supertype hierarchy. - * - * This method is a duplicate of getMethodExtended(String, String[]). - * For performance reasons, the code was duplicated instead of converting the - * JavaParameter[] into a String[]. - */ - public static Method getMethodExtended(JavaClass clazz, String methodName, JavaParameter[] parameterTypes) { - if (clazz.isInterface()) { - // Check the current class first. If the method has been overriden, - // don't want to return the parent's method instead of the child's. - return getMethodInterfaceExtended(clazz, methodName, parameterTypes); - } - // Check the current class first. If the method has been overriden, - // don't want to return the parent's method instead of the child's. - Method method = null; - List methods = null; - do { - methods = clazz.getMethods(); - method = getMethod(methodName, parameterTypes, methods); - if (method != null) { - return method; - } - - // else, search the parent - clazz = clazz.getSupertype(); - } - while ((method == null) && (clazz != null)); - - return null; - } - - /** - * Get the method of this name and these parameters. It will look up the supertype hierarchy. - * - * This method is a duplicate of getMethodExtended(String, JavaParameter[]). - * For performance reasons, the code was duplicated instead of converting the - * JavaHelpers[] into a JavaParameter[]. - */ - public static Method getMethodExtended(JavaClass clazz, String methodName, JavaHelpers[] parameterTypes) { - return getMethodExtended(clazz, methodName, parameterTypes, null); - } - - /** - * Get the method of this name and these parameters. It will look up the supertype hierarchy. - * - * This method is a duplicate of getMethodExtended(String, JavaParameter[]). - * For performance reasons, the code was duplicated instead of converting the - * JavaHelpers[] into a JavaParameter[]. - * - * If retType is null it means that the return type of the method doesn't need to be checked. - * Otherwise, check that the return type matches too. - */ - public static Method getMethodExtended(JavaClass clazz, String methodName, JavaHelpers[] parameterTypes, JavaHelpers retType) { - if (clazz.isInterface()) { - // Check the current class first. If the method has been overriden, - // don't want to return the parent's method instead of the child's. - return getMethodInterfaceExtended(clazz, methodName, parameterTypes); - } - // Check the current class first. If the method has been overriden, - // don't want to return the parent's method instead of the child's. - Method method = null; - List methods = null; - do { - methods = clazz.getMethods(); - method = getMethod(methodName, parameterTypes, methods); - if (method != null) { - if(retType != null) { - JavaHelpers methRetType = method.getReturnType(); - if(isAssignableFrom(methRetType, retType)) { - return method; - } - } - else { - return method; - } - } - - // else, search the parent - clazz = clazz.getSupertype(); - } - while ((method == null) && (clazz != null)); - - return null; - } - - /** - * Get the method of this name and these parameters. It will look up the supertype hierarchy. - * - * This method is a duplicate of getMethodInterfaceExtended(String, String[], JavaClass). - * For performance reasons, the code was duplicated instead of converting the - * JavaParameter[] into a String[]. - */ - public static Method getMethodInterfaceExtended(JavaClass clazz, String methodName, JavaParameter[] parameterTypes) { - if (clazz == null) { - return null; - } - - // Check the current class first. If the method has been overriden, - // don't want to return the parent's method instead of the child's. - Method method = getMethod(methodName, parameterTypes, clazz.getMethods()); - if (method != null) { - return method; - } - // check parents - List classesToCheck = clazz.getImplementsInterfaces(); - Iterator clazzIterator = classesToCheck.iterator(); - while (clazzIterator.hasNext()) { - clazz = (JavaClass) clazzIterator.next(); - method = getMethodInterfaceExtended(clazz, methodName, parameterTypes); - if (method != null) { - return method; - } - } - - return null; - } - - public static Method getMethodInterfaceExtended(JavaClass clazz, String methodName, JavaHelpers[] parameterTypes) { - if (clazz == null) { - return null; - } - - // Check the current class first. If the method has been overriden, - // don't want to return the parent's method instead of the child's. - Method method = getMethod(methodName, parameterTypes, clazz.getMethods()); - if (method != null) { - return method; - } - // check parents - List classesToCheck = clazz.getImplementsInterfaces(); - Iterator clazzIterator = classesToCheck.iterator(); - while (clazzIterator.hasNext()) { - clazz = (JavaClass) clazzIterator.next(); - method = getMethodInterfaceExtended(clazz, methodName, parameterTypes); - if (method != null) { - return method; - } - } - - return null; - } - - /** - * Return an array of the exceptions thrown by method but not methodToMatch. - * If there are no such exceptions, return null. (Check the list of exceptions - * in the method for each exception, or a parent of the exception.) - */ - public static final Set getNotSubsetExceptions(EnterpriseBean bean, Method method, Method methodToMatch) { - if((methodToMatch == null) || (method == null)) { - return Collections.EMPTY_SET; - } - - // All the exceptions defined in the throws clause of a method of the - // entity bean class must be included in the throws clause of the matching - // method of the home interface. - // - // Section 12.2.2 - // [15] A checked exception is one that is not a subclass of java.lang.RuntimeException - // "Note that the javax.ejb.EJBException is a subclass of the java.lang.RuntimeException, - // and therefore it does not have to be listed in the throws clauses of the business - // methods." - HashSet exceptions = new HashSet(); - List methToMatchExceptions = methodToMatch.getJavaExceptions(); - List foundMethExceptions = method.getJavaExceptions(); - for( int i = 0; i < foundMethExceptions.size(); i++ ) { - JavaClass exc = (JavaClass)foundMethExceptions.get(i); - if ( !isRuntimeException(exc, bean) && !isRemoteException(exc, bean) && !isExceptionInList(exc, methToMatchExceptions) ) { - exceptions.add(exc); - } - } - - return exceptions; - } - - /** - * Return an array of the exceptions thrown by method but not methodToMatch. - * If there are no such exceptions, return null. (Check the list of exceptions - * in the method for each exception, or a child of the exception.) - */ - public static final Set getNotSubsetSubtypeExceptions(EnterpriseBean bean, Method method, Method methodToMatch) { - if((methodToMatch == null) || (method == null)) { - return Collections.EMPTY_SET; - } - - // All the exceptions defined in the throws clause of a method of the - // entity bean class must be included in the throws clause of the matching - // method of the home interface. - // - // Section 12.2.2 - // [15] A checked exception is one that is not a subclass of java.lang.RuntimeException - // "Note that the javax.ejb.EJBException is a subclass of the java.lang.RuntimeException, - // and therefore it does not have to be listed in the throws clauses of the business - // methods." - HashSet exceptions = new HashSet(); - List methToMatchExceptions = methodToMatch.getJavaExceptions(); - List foundMethExceptions = method.getJavaExceptions(); - for( int i = 0; i < foundMethExceptions.size(); i++ ) { - JavaClass exc = (JavaClass)foundMethExceptions.get(i); - if ( !isRuntimeException(exc, bean) && !isRemoteException(exc, bean) && !isSubtypeExceptionInList(exc, methToMatchExceptions) ) { - exceptions.add(exc); - } - } - - return exceptions; - } - - /** - * Exclude root home interface methods - */ - public static boolean isEJBHomeMethod(EnterpriseBean bean, Method method) { - return isSameType(bean, method.getContainingJavaClass(), ITypeConstants.CLASSNAME_JAVAX_EJB_EJBHOME); - } - - /** - * Exclude root remote interface methods - */ - public static boolean isEJBObjectMethod(EnterpriseBean bean, Method method) { - return isSameType(bean, method.getContainingJavaClass(), ITypeConstants.CLASSNAME_JAVAX_EJB_EJBOBJECT); - } - - /** - * Return true if the exception, or a parent of the exception, is in the list of exceptions. - */ - public static final boolean isExceptionInList(JavaClass exc, List exceptionList) { - if((exc == null) || (exceptionList == null)) { - return false; - } - - if(!exc.isExistingType()) { - return false; - } - - Iterator iterator = exceptionList.iterator(); - while(iterator.hasNext()) { - JavaClass exception = (JavaClass)iterator.next(); - if(isAssignableFrom(exc, exception)) { - // If there is a reflection problem, do not swallow the exception or a - // faulty message may appear. (i.e., "exc" is not thrown by "foo" when it - // really is but one of foo's exceptions wasn't reflected. - return true; - } - } - return false; - } - - /** - * Return true if the exception, or a child of the exception, is in the list of exceptions. - */ - public static final boolean isSubtypeExceptionInList(JavaClass exc, List exceptionList) { - if((exc == null) || (exceptionList == null)) { - return false; - } - - if(!exc.isExistingType()) { - return false; - } - - Iterator iterator = exceptionList.iterator(); - while(iterator.hasNext()) { - JavaClass exception = (JavaClass)iterator.next(); - if(isAssignableFrom(exception, exc)) { - // If there is a reflection problem, do not swallow the exception or a - // faulty message may appear. (i.e., "exc" is not thrown by "foo" when it - // really is but one of foo's exceptions wasn't reflected. - return true; - } - } - return false; - } - - /** - * Often, for validation messages, the validation message contains - * the name of a class. But, sometimes, the validation message is - * being generated because a class is null when it shouldn't be. - * This method is a helper method which makes the construction of - * the validation message a little less cluttered (i.e., instead - * of checking if the class is null before constructing the - * message, just call this method.) - */ - public static final String getQualifiedName(JavaHelpers helper) { - if(helper == null) { - return ""; //$NON-NLS-1$ - } - return helper.getJavaName(); - } - - /** - * Return the method's parameters in a displayable format. e.g., if - * the method signature is "public Integer foo(String a, String b, String c)" - * then this method returns "String, String, String". - */ - public static final String getParmsAsString(Method method) { - if(method == null) { - return ""; //$NON-NLS-1$ - } - - return getParmsAsString(method.listParametersWithoutReturn()); - } - - /** - * Return the parameters in a displayable format. - * @see getParmsAsString(Method) - */ - public static final String getParmsAsString(JavaParameter[] parm) { - if(parm.length == 0) { - return ""; //$NON-NLS-1$ - } - - StringBuffer buffer = new StringBuffer(); - for(int i=0; i<parm.length; i++) { - JavaHelpers type = parm[i].getJavaType(); - buffer.append(((type == null) ? "null" : type.getJavaName())); //$NON-NLS-1$ - buffer.append(COMMA); - } - return buffer.substring(0, buffer.length() - 2); // since "COMMA" is 2 char long, and the last COMMA isn't needed at the end, return everything up to but excluding the last COMMA - } - - /** - * Return the parameters in a displayable format. - * @see getParmsAsString(Method) - */ - public static final String getParmsAsString(JavaHelpers[] parm) { - if(parm.length == 0) { - return ""; //$NON-NLS-1$ - } - - StringBuffer buffer = new StringBuffer(); - for(int i=0; i<parm.length; i++) { - JavaHelpers type = parm[i]; - buffer.append(((type == null) ? "null" : type.getJavaName())); //$NON-NLS-1$ - buffer.append(COMMA); - } - return buffer.substring(0, buffer.length() - 2); // since "COMMA" is 2 char long, and the last COMMA isn't needed at the end, return everything up to but excluding the last COMMA - } - - /** - * Returns the name of the type, e.g. "com.ibm.foo.MyFoo" - * If the type is an array, the array type will be returned. - * e.g. if the type is java.lang.String[], java.lang.String[] will - * be returned, not the java.lang.String type. - */ - public static final JavaHelpers getType(EClassifier classifier) { - if(classifier == null) { - return null; - } - - JavaHelpers type = ((JavaHelpers)classifier); - - return type; - } - - /** - * javaClassName must be fully qualified - */ - public static JavaHelpers getType(String javaClassName, EnterpriseBean ejb) throws InvalidInputException { - if ((javaClassName == null) || (javaClassName.equals("") || (ejb == null))) //$NON-NLS-1$ - throw new InvalidInputException(); - - Resource resource = ejb.eResource(); - if (resource == null) { - throw new InvalidInputException(); - } - - JavaHelpers helper = null; - if(commonClassNames == null || commonClassNames.isEmpty()) { - initializeCommonClassNames(); - } - if (commonClassNames.contains(javaClassName)) { - ResourceSet rSet = resource.getResourceSet(); - helperMap = getHelperMap(rSet); - Object obj = helperMap.get(javaClassName); - if (obj != null) - return (JavaHelpers) obj; - else { - helper = getType(javaClassName,rSet); - helperMap.put(javaClassName, helper); - } - } else - helper = getType(javaClassName, resource.getResourceSet()); - return helper; - } - - protected static HashMap getHelperMap(ResourceSet rSet){ - HashMap mapHelper = (HashMap)projectHelperMap.get( rSet ); - if( mapHelper == null ){ - mapHelper = new HashMap(); - projectHelperMap.put(rSet, mapHelper); - } - return mapHelper; - } - - private static void initializeCommonClassNames() { - if(commonClassNames == null) - commonClassNames = new HashSet(); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVA_IO_IOEXCEPTION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVA_IO_SERIALIZABLE); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVA_LANG_EXCEPTION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVA_LANG_RUNTIMEEXCEPTION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVA_RMI_REMOTE); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVA_RMI_REMOTEEXCEPTION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVA_UTIL_COLLECTION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVA_UTIL_ENUMERATION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVA_UTIL_SET); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_CREATEEXCEPTION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_ENTITYBEAN); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_EJBEXCEPTION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_EJBHOME); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_EJBLOCALHOME); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_EJBOBJECT); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_EJBLOCALOBJECT); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_ENTITYCONTEXT); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_FINDEREXCEPTION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_MESSAGEDRIVENBEAN); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_OBJECTNOTFOUNDEXCEPTION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONBEAN); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONCONTEXT); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_EJB_SESSIONSYNCHRONIZATION); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_JMS_MESSAGE); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_JMS_MESSAGELISTENER); - commonClassNames.add(ITypeConstants.CLASSNAME_JAVAX_TRANSACTION_USERTRANSACTION); - } - - /** - * javaClassName must be fully qualified - */ - public static JavaHelpers getType(String javaClassName, ResourceSet resourceSet) throws InvalidInputException { - return getType(javaClassName, resourceSet, true); - } - - /** - * javaClassName must be fully qualified - */ - public static JavaHelpers getType(String javaClassName, ResourceSet resourceSet, boolean throwExcIfNotValid) throws InvalidInputException { - if((javaClassName == null) || (javaClassName.equals("") || (resourceSet == null))) { //$NON-NLS-1$ - Logger aLogger = getMsgLogger(); - if(aLogger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = getLogEntry(); - entry.setSourceID("ValidationRuleUtility.getType(String, ResourceSet, boolean)"); //$NON-NLS-1$ - String text = "invalid parameter; javaClassName = {0} and resourceSet = {1}"; - //entry.setText("invalid parameter; javaClassName = {0} and resourceSet = {1}"); //$NON-NLS-1$ - //entry.setTokens(new String[]{javaClassName, String.valueOf(resourceSet)}); - String result = MessageFormat.format(text, - new String[]{javaClassName, String.valueOf(resourceSet)}); - entry.setText(result); - - entry.appendStackTrace(); - aLogger.write(Level.FINEST, entry); - } - throw new InvalidInputException(); - } - - // If the class doesn't exist, it will be reflected - JavaHelpers helper = JavaRefFactory.eINSTANCE.reflectType(javaClassName, resourceSet); - if(throwExcIfNotValid) { - isValidType(helper); // check that the type has been reflected properly - } - - return helper; - } - - /** - * @return - */ - private static LogEntry getLogEntry() { - if(logEntry == null) { - logEntry = new LogEntry(IEJBValidatorConstants.BUNDLE_NAME); - } - logEntry.reset(); // reset the values so that we're not logging stale data - return logEntry; - } - - /** - * @return - */ - private static Logger getMsgLogger() { - if(logger == null) - logger = J2EECorePlugin.getPlugin().getMsgLogger(); - return logger; - } - - public static final JavaHelpers getType(Field field) { - if(field == null) { - return null; - } - - return (JavaHelpers)field.getEType(); - } - - /** - * Return true if the JavaClass passed in has the Method defined - * on it. Return false if the Method is defined on a supertype or - * is not defined on the class at all. - */ - public static final boolean onClass(JavaClass clazz, Method method) { - if((clazz == null) || (method == null)) { - return false; - } - - return clazz.equals(method.getJavaClass()); - } - - /** - * Return true if the JavaClass passed in has the Field defined - * on it. Return false if the Field is defined on a supertype or - * is not defined on the class at all. - */ - public static final boolean onClass(JavaClass clazz, Field field) { - if((clazz == null) || (field == null)) { - return false; - } - - return clazz.equals(field.getJavaClass()); - } - - public static final boolean isApplicationException(JavaClass exception, EnterpriseBean bean) { - if(exception == null) { - return false; - } - - // Exempt EJBException from the application exception check because it'll drive users crazy to see - // it flagged as an application exception. - try { - if(ValidationRuleUtility.isSameType(exception, getType(ITypeConstants.CLASSNAME_JAVAX_EJB_EJBEXCEPTION, bean))) { - return false; - } - } - catch(InvalidInputException e) { - // logged in getType() - // if EJBException can't be found, then there's probably a system JAR missing - } - - // 18.1.1 Application exceptions - // An application exception is an exception defined in the throws clause of a method of the enterprise - // Bean's home and component interfaces, other than the java.rmi.RemoteException. - return !isRemoteException(exception, bean); - } - - public static final boolean isRemoteMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method) { - try { - JavaHelpers javaRmiRemote = ValidationRuleUtility.getType(ITypeConstants.CLASSNAME_JAVA_RMI_REMOTE, bean); - if(isAssignableFrom(clazz, javaRmiRemote)) { - return true; - } - } - catch(InvalidInputException e) { - return false; - } - - return false; - } - - public static final boolean isReservedWord(String name) { - if(name == null) { - return false; - } - - String upperName = name.toUpperCase(); - for(int i=0; i<_reservedWords.length; i++) { - if(upperName.equals(_reservedWords[i])) { - return true; - } - } - return false; - } - - public static final boolean isRuntimeException(JavaClass clazz, EnterpriseBean bean) { - if(clazz == null) { - return false; - } - - try { - JavaHelpers runtimeExc = getType(ITypeConstants.CLASSNAME_JAVA_LANG_RUNTIMEEXCEPTION, bean); - return isException(clazz, runtimeExc.getWrapper()); - } - catch(InvalidInputException e) { - return false; - } - } - - public static final boolean isRemoteException(JavaClass clazz, EnterpriseBean bean) { - if(clazz == null) { - return false; - } - - try { - JavaHelpers remoteExc = getType(ITypeConstants.CLASSNAME_JAVA_RMI_REMOTEEXCEPTION, bean); - return isException(clazz, remoteExc.getWrapper()); - } - catch(InvalidInputException e) { - return false; - } - } - - /** - * Return true if the clazz is an instance of the exception. - */ - public static final boolean isException(JavaClass clazz, JavaClass exception) { - if((clazz == null) || (exception == null)) { - return false; - } - - return isAssignableFrom(clazz, exception); - } - - /** - * Return true if the type is either java.util.Collection, or a type which inherits/extends java.util.Collection. - * The bean is needed to retrieve the java.util.Collection type. - */ - public static boolean isAssignableFromCollection(JavaHelpers type, EnterpriseBean bean) throws InvalidInputException { - JavaHelpers javaUtilCollection = getType(ITypeConstants.CLASSNAME_JAVA_UTIL_COLLECTION, bean); - return isAssignableFrom(type, javaUtilCollection); - } - - /** - * Return true if the type is either java.util.Enumeration, or a type which inherits/extends java.util.Enumeration. - * The bean is needed to retrieve the java.util.Enumeration type. - */ - public static boolean isAssignableFromEnumeration(JavaHelpers type, EnterpriseBean bean) throws InvalidInputException { - JavaHelpers javaUtilEnumeration = getType(ITypeConstants.CLASSNAME_JAVA_UTIL_ENUMERATION, bean); - return isAssignableFrom(type, javaUtilEnumeration); - } - - /** - * Return true if the type is either java.util.Set, or a type which inherits/extends java.util.Set. - * The bean is needed to retrieve the java.util.Set type. - */ - public static boolean isAssignableFromSet(JavaHelpers type, EnterpriseBean bean) throws InvalidInputException { - JavaHelpers javaUtilSet = getType(ITypeConstants.CLASSNAME_JAVA_UTIL_SET, bean); - return isAssignableFrom(type, javaUtilSet); - } - - /** - * Returns true if the type is either the compare type, or inherits/extends the compare type. - */ - public static boolean isAssignableFrom(JavaHelpers type, JavaHelpers compareType) { - if((type == null) || (compareType == null)) { - return false; - } - - if(type.isPrimitive() || compareType.isPrimitive()) { - if(type.isPrimitive() && compareType.isPrimitive()) { - return type.getPrimitive().equals(compareType.getPrimitive()); - } - return false; - } - else if(type.isArray() && compareType.isArray()) { - JavaClass classType = type.getWrapper(); - JavaClass classCompareType = compareType.getWrapper(); - if((classType == null) || (compareType == null)) { - return false; - } - JavaHelpers finalType = ((ArrayType)classType).getFinalComponentType(); - JavaHelpers finalCompareType = ((ArrayType)classCompareType).getFinalComponentType(); - return isAssignableFrom(finalType, finalCompareType); - } - else { - return compareType.getWrapper().isAssignableFrom(type.getWrapper()); - } - } - - /** - * Return true if the given method is associated with a query element in ejb-jar.xml. - */ - public static final boolean isAssociatedWithQuery(ContainerManagedEntity cmp, Method method) { - // Check method is associated with a query element in ejb-jar.xml. - List queries = cmp.getQueries(); - Iterator iterator = queries.iterator(); - boolean found = false; - while(iterator.hasNext()) { - Query query = (Query)iterator.next(); - QueryMethod queryMethod = query.getQueryMethod(); - if(queryMethod == null) { - // Let the EJBJarVRule report this - continue; - } - - if((queryMethod.getName() == null) || queryMethod.getName().equals("")) { //$NON-NLS-1$ - // Let the EJBJarVRule report this - continue; - } - - if(queryMethod.getName().equals(method.getName())) { - found = true; - break; - } - } - - return found; - } - - public static final boolean isBeanManagedSession(EnterpriseBean bean) { - if(bean == null) { - return false; - } - - if(bean.isEntity()) { - return false; - } - - return (((Session)bean).getTransactionType().getValue() == TransactionType.BEAN); - } - - /** - * Return true if this method is the static initializer used for interfaces ("<clinit>") - */ - public static boolean isClinitMethod(EnterpriseBean bean, Method method) { - if (method == null) { - return false; - } - - return method.getName().equals("<clinit>"); //$NON-NLS-1$ - } - - public static final boolean isJNDINamingContext(Field field) { - return true; - } - - /** - * Return true if the field is defined on java.lang.Object. - */ - public static boolean isJavaLangObjectField(EnterpriseBean bean, Field field) { - return isSameType(bean, field.getContainingJavaClass(), ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT); - } - - /** - * Return true if the method is defined on named class. - */ - public static boolean isOwnedBy(EnterpriseBean bean, Method method, String className) { - return isSameType(bean, method.getContainingJavaClass(), className); - } - - /** - * Return true if given class is the same as the named class. - */ - public static boolean isSameType(EnterpriseBean bean, JavaClass owner, String className) { - try { - JavaHelpers helper = getType(className, bean); - if(helper == null) { - return false; - } - - JavaClass object = helper.getWrapper(); - - return isSameType(owner, object); - } - catch(InvalidInputException e) { - return false; - } - } - - /** - * Return true if given class is the same as the named class. - */ - public static boolean isSameType(JavaHelpers owner, JavaHelpers object) { - if(owner == null) { - return false; - } - - if(object == null) { - return false; - } - - if(owner.isPrimitive() && object.isPrimitive()) { - // Both are JavaDataType - return owner.getPrimitive().equals(object.getPrimitive()); - } - else if(owner.isArray() && object.isArray()) { - // Both are ArrayType - ArrayType ownerArray = (ArrayType)owner; - ArrayType objectArray = (ArrayType)object; - return isSameType(ownerArray.getFinalComponentType(), objectArray.getFinalComponentType()); - } - else if((owner.getWrapper() != null) && (object.getWrapper() != null)) { - // Both are JavaClass - return owner.getWrapper().equals(object.getWrapper()); - } - else { - // mismatching JavaHelpers type - return false; - } - } - - /** - * Return true if the method is defined on java.lang.Object. - */ - public static boolean isJavaLangObjectMethod(EnterpriseBean bean, Method method) { - return isSameType(bean, method.getContainingJavaClass(), ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT); - } - - public static final boolean isLegalRMI_IIOPInheritance(JavaClass clazz) { - return true; - } - - public static final boolean isLegalRMI_IIOPType(EnterpriseBean bean, JavaHelpers helper) throws InvalidInputException { - if(helper == null) { - return false; - } - - return isSerializable(helper, bean); - } - - public static final boolean isLocalType(EnterpriseBean bean, JavaHelpers type) { - try { - if(isSameType(type, getType(ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT, bean))) { - // If there's an undefined primary key (java.lang.Object), don't flag it as a local type. - return false; - } - } - catch(InvalidInputException e) { - // Let the DD validation report this. - return false; - } - - if(isAssignableFrom(bean.getLocalInterface(), type)) { - return true; - } - - if(isAssignableFrom(bean.getLocalHomeInterface(), type)) { - return true; - } - - // Bit of a performance hack here. - // Don't want to load and parse the entire EJBJar just to check if - // this type is local, so assume that if the extends - // javax.ejb.EJBLocalHome or javax.ejb.EJBLocalObject, then it's local. - try { - JavaHelpers ejbLocalHome = getType(ITypeConstants.CLASSNAME_JAVAX_EJB_EJBLOCALHOME, bean); - if(isAssignableFrom(ejbLocalHome, type)) { - return true; - } - } - catch(InvalidInputException exc) { - // ignore and try other type - } - - try { - JavaHelpers ejbLocalObject = getType(ITypeConstants.CLASSNAME_JAVAX_EJB_EJBLOCALOBJECT, bean); - if(isAssignableFrom(ejbLocalObject, type)) { - return true; - } - } - catch(InvalidInputException exc) { - // ignore - } - - return false; - } - - - - public static final boolean usesUnknownPrimaryKey(EnterpriseBean bean) { - if(bean.isContainerManagedEntity()) { - return usesUnknownPrimaryKey((ContainerManagedEntity)bean); - } - return false; - } - - public static final boolean usesUnknownPrimaryKey(ContainerManagedEntity cmp) { - if(cmp == null) { - return false; - } - - try { - if(isSameType(cmp.getPrimaryKey(), getType(ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT, cmp))) { - return true; - } - } - catch(InvalidInputException e) { - // If java.lang.Object can't be found, there's bigger problems than validating - // it mistakenly - return false; - } - - if(cmp.getVersionID() == J2EEVersionConstants.EJB_2_0_ID) { - List cmpFields = cmp.getFilteredFeatures(LocalModelledPersistentAttributeFilter.singleton()); - if(cmpFields != null && !cmpFields.isEmpty()) { - Iterator iterator = cmpFields.iterator(); - while(iterator.hasNext()) { - CMPAttribute attrib = (CMPAttribute)iterator.next(); - if(isUnknownPrimaryKey(attrib)) { - return true; - } - } - } - } - return false; - } - - public static final boolean isUnidirectionalRelationship(IEJBValidationContext vc, EJBRelationshipRole role) { - // Page 131 of EJB 2.0: - // A unidirectional relationship is implemented with a cmr-field on the entity bean instance from which - // navigation can take place, and no related cmr-field on the entity bean instance that is the target of the - // relationship. Unidirectional relationships are typically used when the Bean Provider wishes to restrict - // the visibility of a relationship. - Entity sourceEntity = role.getSource().getEntityBean(); - if(sourceEntity == null) { - return false; - } - - if(!sourceEntity.isContainerManagedEntity()) { - return false; - } - - CMRField sourceCMRField = role.getCmrField(); - if(sourceCMRField == null) { - return false; - } - - EJBRelationshipRole opposite = role.getOpposite(); - if(opposite == null) { - return false; - } - - CMRField oppositeCMRField = opposite.getCmrField(); - if(oppositeCMRField != null) { - return false; - } - - return true; - - } - - - - public static final boolean isUnknownPrimaryKey(CMPAttribute attrib) { - if(attrib == null) { - return false; - } - - // Section 10.8.3 - // By definition, the deployer's generated CMP field's name is defined in the - // ContainerManagedEntity.WAS_GENERATED_STRING_FIELD constant. - return ContainerManagedEntity.WAS_GENERATED_STRING_FIELD.equals(attrib.getName()); - } - - public static final boolean isPrimitivePrimaryKey(ContainerManagedEntity cmp) { - if(cmp == null) { - return false; - } - - if((cmp.getPrimKeyField() != null) && !cmp.getPrimKeyField().eIsProxy()) { - return true; - } - - return false; - } - - public static final boolean isPublic(Field field) { - if ( field == null ) - return false; - - return (JavaVisibilityKind.PUBLIC_LITERAL == field.getJavaVisibility()); - } - - public static final boolean isPublic( Method method ) { - if ( method == null ) - return false; - - return (JavaVisibilityKind.PUBLIC_LITERAL == method.getJavaVisibility()); - } - - /** - * Verifies that a given Class type is serializable. - * - * RMI 1.3 specification - * 2.6 Parameter Passing in Remote Method Invocation - * An argument to, or a return value from, a remote object can be any object that - * is serializable. This includes primitive types, remote objects, and non-remote - * objects that implement the java.io.Serializable interface. - */ - public static final boolean isSerializable(JavaHelpers cl, EnterpriseBean bean) throws InvalidInputException { - if(cl == null) { - // assume it's void - return true; - } - - // Check if the type reflected properly - isValidType(cl); - - if ( cl.isPrimitive() ) { - // JavaHelpers is a JavaDataType - return true; - } - else if(cl.isArray()) { - ArrayType array = (ArrayType)cl; - if(array.isPrimitiveArray()) { - return true; - } - // else, not primitive, so check its contents - cl = array.getFinalComponentType(); - } - - JavaHelpers remote = getType(ITypeConstants.CLASSNAME_JAVA_RMI_REMOTE, bean); - if(isAssignableFrom(cl, remote)) { - return true; - } - - JavaHelpers serial = getType(ITypeConstants.CLASSNAME_JAVA_IO_SERIALIZABLE, bean); - return isAssignableFrom(cl, serial); - } - - public static final boolean isStateful(EnterpriseBean bean) { - if(bean == null) { - return false; - } - - if(bean.isEntity()) { - return false; - } - - return (((Session)bean).getSessionType().getValue() == SessionType.STATEFUL); - } - - public static final boolean isStateless(EnterpriseBean bean) { - if(bean == null) { - return false; - } - - if(bean.isEntity()) { - return false; - } - - return (((Session)bean).getSessionType().getValue() == SessionType.STATELESS); - } - - public static boolean isUnnamedPackage(JavaPackage pkg) { - if(pkg == null) { - return true; - } - - String pkgName = pkg.getName(); - return ((pkgName == null) || (pkgName.equals(""))); //$NON-NLS-1$ - } - - public static final boolean isValidJavaIdentifier(String name) { - if(name == null) { - return false; - } - - char[] nameChar = name.toCharArray(); - if(nameChar.length < 1) { - return false; - } - - if(!Character.isJavaIdentifierStart(nameChar[0])) { - return false; - } - boolean isValidJavaIdentifier = true; - for(int i=1; i<nameChar.length; i++) { - if(!Character.isJavaIdentifierPart(nameChar[i])) { - isValidJavaIdentifier = false; - break; - } - } - return isValidJavaIdentifier; - } - - /** - * 6.5.3 The optional SessionSynchronization interface - *... - * Only a stateful Session bean with container-managed transaction demarcation may - * implement the SessionSynchronization interface. - *... - * There is no need for a Session bean with bean-managed transaction to rely on the - * synchronization call backs because the bean is in control of the commit the bean - * knows when the transaction is about to be committed and it knows the outcome of the - * transaction commit. - *... - */ - public static final boolean isValidSessionTypeElement(Session session) { - if(session == null) { - return false; - } - - // check syntax - if(!session.isSetSessionType()) { - return false; - } - - if(session.getSessionType() == null) { - return false; - } - - if(session.getSessionType().getValue() == SessionType.STATEFUL) { - return true; - } - - if(session.getSessionType().getValue() == SessionType.STATELESS) { - return true; - } - - return false; - } - - public static final boolean isValidTransactionTypeElement(Session sessionBean) { - if(sessionBean == null) { - return false; - } - - if(!sessionBean.isSetTransactionType()) { - return false; - } - - if(sessionBean.getTransactionType() == null) { - return false; - } - - if(sessionBean.getTransactionType().getValue() == TransactionType.BEAN) { - return true; - } - - if(sessionBean.getTransactionType().getValue() == TransactionType.CONTAINER) { - return true; - } - - return false; - } - - /** - * If the type is not reflected properly, throw an InvalidInputException. - */ - public static final void isValidType(JavaHelpers type) throws InvalidInputException { - if(type == null) { - // Cheating here. Should technically access the MsgLogger from the IEJBValidationContext - // type, but when I started changing this method and the isValidTypeHierarchy method, - // I ended up changing 42 files because these two methods are called directly or - // indirectly from almost everywhere. That was too much change, so I cheated. - Logger aLogger = getMsgLogger(); - if(aLogger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = getLogEntry(); - entry.setSourceID("ValidationRuleUtility.isValidType"); //$NON-NLS-1$ - entry.setText("type is null"); //$NON-NLS-1$ - entry.appendStackTrace(); - aLogger.write(Level.FINEST, entry); - } - throw new InvalidInputException(); - } - - if(type.getWrapper() != null) { - // check if the type reflected properly. If there's any compile errors, or references to unresolved - // classes, can output some mistaken error messages. - // e.g. class is not serializable - JavaClass wrapper = type.getWrapper(); - if(type.isArray()) { - ArrayType array = (ArrayType)type; - isValidType(array.getFinalComponentType()); - } - else { - if(!wrapper.isExistingType()) { - Logger aLogger = getMsgLogger(); - if(aLogger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = getLogEntry(); - entry.setSourceID("ValidationRuleUtility.isValidType"); //$NON-NLS-1$ - entry.setText("!wrapper.isExistingType(); type is " + wrapper.getJavaName()); //$NON-NLS-1$ - aLogger.write(Level.FINEST, entry); - } - throw new InvalidInputException(wrapper); - } - } - } - } - - /** - * If the type is not reflected properly, throw an InvalidInputException. - * This method, unlike isValidType, also checks every interface and class - * parent of the passed-in type. - */ - public static final void isValidTypeHierarchy(EnterpriseBean bean, JavaHelpers type) throws InvalidInputException { - if(type == null) { - // Cheating here. Should technically access the MsgLogger from the IEJBValidationContext - // type, but when I started changing this method and the isValidType method, - // I ended up changing 42 files because these two methods are called directly or - // indirectly from almost everywhere. That was too much change, so I cheated. - Logger aLogger = getMsgLogger(); - if(aLogger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = getLogEntry(); - entry.setSourceID("ValidationRuleUtility.isValidTypeHierarchy"); //$NON-NLS-1$ - entry.setText("type is null"); //$NON-NLS-1$ - entry.appendStackTrace(); - aLogger.write(Level.FINEST, entry); - } - throw new InvalidInputException(); - } - - // First, check this helper itself. - isValidType(type); - JavaHelpers javaLangObject = getType(ITypeConstants.CLASSNAME_JAVA_LANG_OBJECT, bean); - if(isSameType(type, javaLangObject)) { - return; - } - - // If this helper exists, and is not java.lang.Object, then check every supertype. - JavaClass classType = type.getWrapper(); - if(classType == null) { - Logger aLogger = getMsgLogger(); - if(aLogger.isLoggingLevel(Level.FINEST)) { - LogEntry entry = getLogEntry(); - entry.setSourceID("ValidationRuleUtility.isValidTypeHierarchy"); //$NON-NLS-1$ - entry.setText("type.getWrapper() returns null; type is " + type.getJavaName()); //$NON-NLS-1$ - aLogger.write(Level.FINEST, entry); - } - throw new InvalidInputException(); - } - - // Check the superclass. Since type is not java.lang.Object, there is at least - // the java.lang.Object superclass. - if(!classType.isInterface()) { - JavaClass superType = classType.getSupertype(); - isValidTypeHierarchy(bean, superType); - } - - // Check the superinterfaces, if they exist. - List superInterfaces = classType.getImplementsInterfaces(); - if(superInterfaces != null) { - Iterator iterator = superInterfaces.iterator(); - while(iterator.hasNext()) { - JavaClass superIntf = (JavaClass)iterator.next(); - isValidTypeHierarchy(bean, superIntf); - } - } - } - - /** - * RMI 1.3 page 6 section 2.4.1, - * A remote method declaration must include the exception java.rmi.RemoteException (or one - * of its upserclasses such as java.io.IOException or java.lang.Exception) in its throws - * clause, in addition to any application-specific exceptions (note that application - * specific exceptions do not have to extend java.rmi.RemoteException). - */ - public static final boolean throwsRemoteExceptionOrParent(EnterpriseBean bean, Method method) throws InvalidInputException { - return throwsExceptionOrParent(bean, method, ITypeConstants.CLASSNAME_JAVA_RMI_REMOTEEXCEPTION); - } - - /** - * Convenience method which checks if RemoteException (exactly, not Exception or IOException) - * is in the method signature. - */ - public static final boolean doesNotThrowRemoteException(EnterpriseBean bean, Method method) throws InvalidInputException { - return !throwsException(bean, method, ITypeConstants.CLASSNAME_JAVA_RMI_REMOTEEXCEPTION); - } - - public static final boolean throwsObjectNotFoundException(EnterpriseBean bean, Method method) throws InvalidInputException { - return throwsException(bean, method, ITypeConstants.CLASSNAME_JAVAX_EJB_OBJECTNOTFOUNDEXCEPTION); - } - - public static final boolean throwsFinderException(EnterpriseBean bean, Method method) throws InvalidInputException { - return throwsException(bean, method, ITypeConstants.CLASSNAME_JAVAX_EJB_FINDEREXCEPTION); - } - - public static final boolean throwsCreateException(EnterpriseBean bean, Method method) throws InvalidInputException { - return throwsException(bean, method, ITypeConstants.CLASSNAME_JAVAX_EJB_CREATEEXCEPTION); - } - - public static final boolean throwsApplicationException(Method method, EnterpriseBean bean) { - List exceptions = method.getJavaExceptions(); - if(exceptions.size() == 0) { - return false; - } - - // CHKJ2419 = {0} must be a subclass of java.lang.Exception. Read section 18.1.1, 18.2.1 of the EJB 2.0 specification. - Iterator iterator = exceptions.iterator(); - while(iterator.hasNext()) { - JavaClass exception = (JavaClass)iterator.next(); - - if(isApplicationException(exception, bean)) { - return true; - } - } - return false; - } - - /** - * Return true if the given method throws the named exception or a class which extends the named exception. - */ - public static final boolean throwsException(EnterpriseBean bean, Method method, String exceptionName) throws InvalidInputException { - if(method == null) { - return false; - } - - List exceptions = method.getJavaExceptions(); - Iterator iterator = exceptions.iterator(); - JavaClass exception = getType(exceptionName, bean).getWrapper(); - while(iterator.hasNext()) { - JavaClass exc = (JavaClass)iterator.next(); - if(isAssignableFrom(exc, exception)) { - return true; - } - } - - return false; - } - - /** - * Return true if the method returns the named exception, an exception which extends the named exception, or one of the parents of the named exception (e.g. java.lang.Exception). - * Use this method if it needs to be detected that an exception can be thrown either directly or through something generic like java.lang.Exception. - */ - public static final boolean throwsExceptionOrParent(EnterpriseBean bean, Method method, String exceptionName) throws InvalidInputException { - if(method == null) { - return false; - } - - JavaClass exception = getType(exceptionName, bean).getWrapper(); - - List exceptions = method.getJavaExceptions(); - Iterator iterator = exceptions.iterator(); - while(iterator.hasNext()) { - JavaClass exc = (JavaClass)iterator.next(); - if(isAssignableFrom(exc, exception)) { - // Assignable from the named exception, e.g. RemoteException or a child of RemoteException - return true; - } - - if(isAssignableFrom(exception, exc)) { - // The named exception is assignable from the method exception, e.g. java.lang.Exception - return true; - } - } - - return false; - } - - public static final boolean usesCollectionClass(EnterpriseBean bean, Method method) { - if((bean == null) || (method == null)) { - return false; - } - - JavaParameter[] parms = method.listParametersWithoutReturn(); - if(parms != null) { - for(int i=0; i<parms.length; i++) { - JavaParameter parm = parms[i]; - try { - if(isAssignableFromCollection(parm.getJavaType(), bean)) { - return true; - } - } - catch(InvalidInputException e) { - // ignore and test next parm - continue; - } - } - } - - // Now check the return type - try { - if(isAssignableFromCollection(method.getReturnType(), bean)) { - return true; - } - } - catch(InvalidInputException e) { - // ignore - } - - return false; - } - - public static final boolean usesLocalTypes(EnterpriseBean bean, Method method) { - if((bean == null) || (method == null)) { - return false; - } - - JavaParameter[] parms = method.listParametersWithoutReturn(); - if(parms != null) { - for(int i=0; i<parms.length; i++) { - JavaParameter parm = parms[i]; - if(isLocalType(bean, parm.getJavaType())) { - return true; - } - } - } - - // Now check the return type - if(isLocalType(bean, method.getReturnType())) { - return true; - } - - return false; - } -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/WARMessageConstants.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/WARMessageConstants.java deleted file mode 100644 index d42c0054c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/WARMessageConstants.java +++ /dev/null @@ -1,72 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - - - - -/** - * Message key constants for WAR validation. - */ -public interface WARMessageConstants extends org.eclipse.jst.j2ee.model.internal.validation.J2EEMessageConstants { - public static final String WAR_VALIDATOR_ID = "WAR_VALIDATOR"; //$NON-NLS-1$ - public static final String WAR_MODEL_NAME = "WAR_VALIDATION"; //$NON-NLS-1$ - public static final String ERROR_WAR_VALIDATION_FAILED = "ERROR_WAR_VALIDATION_FAILED"; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_SMALL_ICON = "MESSAGE_WAR_VALIDATION_SMALL_ICON"; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_LARGE_ICON = "MESSAGE_WAR_VALIDATION_LARGE_ICON"; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_BROKEN_SERVLET_MAPPING = "MESSAGE_WAR_VALIDATION_BROKEN_SERVLET_MAPPING"; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_MISSING_JSP = "MESSAGE_WAR_VALIDATION_MISSING_JSP"; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_MISSING_TLD = "MESSAGE_WAR_VALIDATION_MISSING_TLD"; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_MISSING_WELCOME_FILE = "MESSAGE_WAR_VALIDATION_MISSING_WELCOME_FILE"; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_NO_WELCOME_FILE = "MESSAGE_WAR_VALIDATION_NO_WELCOME_FILE"; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_INVALID_URL = "MESSAGE_WAR_VALIDATION_INVALID_URL" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_DUPLICATE_MAPPING = "MESSAGE_WAR_VALIDATION_DUPLICATE_MAPPING" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_DUPLICATE_SERVLET = "MESSAGE_WAR_VALIDATION_DUPLICATE_SERVLET" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_DUPLICATE_EJB_REF = "MESSAGE_WAR_VALIDATION_DUPLICATE_EJB_REF" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_SESSION_TIMEOUT = "MESSAGE_WAR_VALIDATION_SESSION_TIMEOUT" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY = "MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_EMPTY_ENTRY = "MESSAGE_WAR_VALIDATION_EMPTY_ENTRY" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE = "MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE_NAME = "MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE_NAME" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_INVALID_HTTP_CMD = "MESSAGE_WAR_VALIDATION_INVALID_HTTP_CMD" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_INVALID_TRANSPORT = "MESSAGE_WAR_VALIDATION_INVALID_TRANSPORT" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_INVALID_JSPFILE_REF = "MESSAGE_WAR_VALIDATION_INVALID_JSPFILE_REF" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_INVALID_WELCOME_FILE = "MESSAGE_WAR_VALIDATION_INVALID_WELCOME_FILE" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_INVALID_ERROR_PAGE = "MESSAGE_WAR_VALIDATION_INVALID_ERROR_PAGE" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_INVALID_AUTH_METHOD = "MESSAGE_WAR_VALIDATION_INVALID_AUTH_METHOD" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_IGNORE_FORM_LOGIN = "MESSAGE_WAR_VALIDATION_IGNORE_FORM_LOGIN" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_RES_AUTH_REQUIRED_22 = "MESSAGE_WAR_VALIDATION_RES_AUTH_REQUIRED_22" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_RES_AUTH_REQUIRED_23 = "MESSAGE_WAR_VALIDATION_RES_AUTH_REQUIRED_23" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_RES_AUTH_INVALID_22 = "MESSAGE_WAR_VALIDATION_RES_AUTH_INVALID_22" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_RES_AUTH_INVALID_23 = "MESSAGE_WAR_VALIDATION_RES_AUTH_INVALID_23" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_DUPLICATE_FILTER = "MESSAGE_WAR_VALIDATION_DUPLICATE_FILTER" ; //$NON-NLS-1$ - public static final String MESSAGE_WAR_VALIDATION_BROKEN_FILTER_MAPPING = "MESSAGE_WAR_VALIDATION_BROKEN_FILTER_MAPPING" ; //$NON-NLS-1$ - public static final String ERROR_EAR_DUPLICATE_ROLES = "ERROR_EAR_DUPLICATE_ROLES"; //$NON-NLS-1$ - public static final String ERROR_EAR_UNCONTAINED_MODULE_FILE_EXCEPTION = "ERROR_EAR_UNCONTAINED_MODULE_FILE_EXCEPTION"; //$NON-NLS-1$ - public static final String ERROR_INVALID_WAR_FILE = "ERROR_INVALID_WAR_FILE"; //$NON-NLS-1$ - public static final String WAR_DD_PARSE_LINECOL = "WAR_DD_PARSE_LINECOL"; //$NON-NLS-1$ - public static final String WAR_DD_PARSE_LINE = "WAR_DD_PARSE_LINE"; //$NON-NLS-1$ - public static final String WAR_DD_CANNOT_OPEN_DD = "WAR_DD_CANNOT_OPEN_DD"; //$NON-NLS-1$ - public static final String WAR_DD_PARSE_NOINFO = "WAR_DD_PARSE_NOINFO"; //$NON-NLS-1$ - public static String ERROR_EAR_INVALID_CONTEXT_ROOT = "ERROR_EAR_INVALID_CONTEXT_ROOT"; //$NON-NLS-1$ - public static String MESSAGE_WAR_VALIDATION_INVALID_RES_SHARING_SCOPE = "MESSAGE_WAR_VALIDATION_INVALID_RES_SHARING_SCOPE"; //$NON-NLS-1$ - public static String MESSAGE_WAR_VALIDATION_INVALID_ENV_ENTRY = "MESSAGE_WAR_VALIDATION_INVALID_ENV_ENTRY"; //$NON-NLS-1$ - public static String MESSAGE_WAR_VALIDATION_INVALID_ERROR_CODE = "MESSAGE_WAR_VALIDATION_INVALID_ERROR_CODE"; //$NON-NLS-1$ - public static String MESSAGE_WAR_VALIDATION_MISSING_WLP_PROJECT = "MESSAGE_WAR_VALIDATION_MISSING_WLP_PROJECT"; //$NON-NLS-1$ - public static String MESSAGE_WAR_VALIDATION_INVALID_EXCEPTION_TYPE = "MESSAGE_WAR_VALIDATION_INVALID_EXCEPTION_TYPE"; //$NON-NLS-1$ - public static String MESSAGE_WAR_VALIDATION_CONFLICTING_WLP_PROJECT = "MESSAGE_WAR_VALIDATION_CONFLICTING_WLP_PROJECT"; //$NON-NLS-1$ - public static String MESSAGE_WAR_VALIDATION_INVALID_EJB_REF_TYPE = "MESSAGE_WAR_VALIDATION_INVALID_EJB_REF_TYPE"; //$NON-NLS-1$ - //J2EE 14 Messages - public static String MESSAGE_URL_PATTERN_END_WITH_CARRAIGE_RETURN = "MESSAGE_URL_PATTERN_END_WITH_CARRAIGE_RETURN"; //$NON-NLS-1$ - - - - } diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/WARValidationResourceHandler.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/WARValidationResourceHandler.java deleted file mode 100644 index a549380d2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/WARValidationResourceHandler.java +++ /dev/null @@ -1,100 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import org.eclipse.osgi.util.NLS; - -public final class WARValidationResourceHandler extends NLS { - - private static final String BUNDLE_NAME = "warvalidation";//$NON-NLS-1$ - - private WARValidationResourceHandler() { - // Do not instantiate - } - - public static String ERROR_WAR_VALIDATION_FAILED; - public static String ERROR_EAR_DUPLICATE_ROLES; - public static String MESSAGE_WAR_VALIDATION_MISSING_JSP; - public static String MESSAGE_WAR_VALIDATION_SMALL_ICON; - public static String MESSAGE_WAR_VALIDATION_LARGE_ICON; - public static String MESSAGE_WAR_VALIDATION_BROKEN_SERVLET_MAPPING; - public static String MESSAGE_WAR_VALIDATION_NO_WELCOME_FILE; - public static String MESSAGE_WAR_VALIDATION_MISSING_WELCOME_FILE; - public static String MESSAGE_WAR_VALIDATION_MISSING_TLD; - public static String ERROR_INVALID_WAR_FILE; - public static String MESSAGE_WAR_VALIDATION_BROKEN_FILTER_MAPPING; - public static String MESSAGE_WAR_VALIDATION_INVALID_WELCOME_FILE; - public static String WAR_DD_PARSE_LINECOL; - public static String WAR_DD_PARSE_LINE; - public static String WAR_DD_PARSE_NOINFO; - public static String WAR_DD_CANNOT_OPEN_DD; - public static String MESSAGE_WAR_VALIDATION_INVALID_URL; - public static String MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE; - public static String MESSAGE_WAR_VALIDATION_INVALID_HTTP_CMD; - public static String MESSAGE_WAR_VALIDATION_INVALID_TRANSPORT; - public static String MESSAGE_WAR_VALIDATION_INVALID_JSPFILE_REF; - public static String ERROR_EAR_INVALID_CONTEXT_ROOT; - public static String MESSAGE_WAR_VALIDATION_INVALID_ERROR_PAGE; - public static String MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE_NAME; - public static String MESSAGE_WAR_VALIDATION_INVALID_AUTH_METHOD; - public static String MESSAGE_WAR_VALIDATION_IGNORE_FORM_LOGIN; - public static String MESSAGE_WAR_VALIDATION_RES_AUTH_REQUIRED_22; - public static String MESSAGE_WAR_VALIDATION_RES_AUTH_REQUIRED_23; - public static String MESSAGE_WAR_VALIDATION_RES_AUTH_INVALID_22; - public static String MESSAGE_WAR_VALIDATION_RES_AUTH_INVALID_23; - public static String MESSAGE_WAR_VALIDATION_INVALID_EXCEPTION_TYPE; - public static String MESSAGE_WAR_VALIDATION_DUPLICATE_MAPPING; - public static String MESSAGE_WAR_VALIDATION_DUPLICATE_SERVLET; - public static String MESSAGE_WAR_VALIDATION_SESSION_TIMEOUT; - public static String MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY; - public static String MESSAGE_WAR_VALIDATION_EMPTY_ENTRY; - public static String MESSAGE_WAR_VALIDATION_DUPLICATE_FILTER; - public static String MESSAGE_WAR_VALIDATION_DUPLICATE_EJB_REF; - public static String ERROR_EAR_UNCONTAINED_MODULE_FILE_EXCEPTION; - public static String MESSAGE_WAR_VALIDATION_INVALID_ERROR_CODE; - public static String MESSAGE_WAR_VALIDATION_INVALID_RES_SHARING_SCOPE; - public static String MESSAGE_WAR_VALIDATION_INVALID_ENV_ENTRY; - public static String MESSAGE_WAR_VALIDATION_MISSING_WLP_PROJECT; - public static String MESSAGE_WAR_VALIDATION_CONFLICTING_WLP_PROJECT; - public static String MSG_SERVER_TARGET_MISMATCH; - public static String MESSAGE_URL_PATTERN_END_WITH_CARRAIGE_RETURN; - public static String MESSAGE_WAR_VALIDATION_INVALID_EJB_REF_TYPE; - public static String ERROR_EAR_MISSING_EJB_ROLE; - public static String of_Type_Security_Role_Name_6; - public static String Web_Archive_Validator_8; - public static String of_Type_Role_Name_19; - public static String of_Type_Parameter_Name_25; - public static String of_Type_Parameter_Value_26; - public static String of_Type_Parameter_Name_32; - public static String of_Type_Parameter_Value_33; - public static String of_Type_Parameter_Name_39; - public static String of_Type_Parameter_Value_40; - public static String of_Type_ejb_ref_name_44; - public static String of_Type_Error_Location_47; - public static String of_Type_Error_Location_49; - public static String of_Type_Mime_Extension_54; - public static String of_Type_Mime_Type_55; - public static String of_Type_Mime_Extension___56; - public static String of_Type_Web_Resource_Collection_64; - public static String of_Type_Filter_Name_66; - public static String Invalid_URL_70; - public static String Invalid_URL_75; - public static String of_Type_Servlet_Name_77; - public static String of_Type_Taglib_80; - public static String of_Type_TagLib___81; - public static String of_Type_Web_Resource_Name_84; - public static String of_Type_Welcome_File_Name__87; - public static String of_Type_Env_Entry_Name___88; - - static { - NLS.initializeMessages(BUNDLE_NAME, WARValidationResourceHandler.class); - } -}
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/WarValidator.java b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/WarValidator.java deleted file mode 100644 index 6bfb86787..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/WarValidator.java +++ /dev/null @@ -1,1420 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.model.internal.validation; - -import java.util.HashSet; -import java.util.Hashtable; -import java.util.Iterator; -import java.util.List; -import java.util.Locale; -import java.util.Set; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jst.j2ee.common.EnvEntry; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.common.internal.impl.EJBLocalRefImpl; -import org.eclipse.jst.j2ee.common.internal.impl.EjbRefImpl; -import org.eclipse.jst.j2ee.common.internal.impl.ResourceRefImpl; -import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile; -import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.webapplication.AuthConstraint; -import org.eclipse.jst.j2ee.webapplication.ContextParam; -import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage; -import org.eclipse.jst.j2ee.webapplication.ErrorPage; -import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage; -import org.eclipse.jst.j2ee.webapplication.Filter; -import org.eclipse.jst.j2ee.webapplication.FilterMapping; -import org.eclipse.jst.j2ee.webapplication.FormLoginConfig; -import org.eclipse.jst.j2ee.webapplication.HTTPMethodType; -import org.eclipse.jst.j2ee.webapplication.InitParam; -import org.eclipse.jst.j2ee.webapplication.JSPType; -import org.eclipse.jst.j2ee.webapplication.LoginConfig; -import org.eclipse.jst.j2ee.webapplication.MimeMapping; -import org.eclipse.jst.j2ee.webapplication.SecurityConstraint; -import org.eclipse.jst.j2ee.webapplication.Servlet; -import org.eclipse.jst.j2ee.webapplication.ServletMapping; -import org.eclipse.jst.j2ee.webapplication.SessionConfig; -import org.eclipse.jst.j2ee.webapplication.TagLibRef; -import org.eclipse.jst.j2ee.webapplication.TransportGuaranteeType; -import org.eclipse.jst.j2ee.webapplication.UserDataConstraint; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebResourceCollection; -import org.eclipse.jst.j2ee.webapplication.WelcomeFile; -import org.eclipse.jst.j2ee.webapplication.WelcomeFileList; -import org.eclipse.wst.common.frameworks.internal.plugin.WTPCommonPlugin; -import org.eclipse.wst.validation.internal.ResourceConstants; -import org.eclipse.wst.validation.internal.ResourceHandler; -import org.eclipse.wst.validation.internal.core.Message; -import org.eclipse.wst.validation.internal.core.ValidationException; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; -import org.eclipse.wst.validation.internal.provisional.core.IValidationContext; - -// import org.eclipse.jst.j2ee.internal.plugin.nls.ResourceHandler; - -public class WarValidator extends J2EEValidator implements WARMessageConstants { - protected WARFile warFile; - protected WebApp webDD; - private Hashtable httpMethods = null; - - // Optional child validators - // protected WebExtValidator webExtValidator; - // protected WebBndValidator webBndValidator; - - - /** - * RelationshipMapValidator constructor comment. - */ - public WarValidator() { - super(); - } - - /** - * Will construct a HashTable of roles, and check for duplicates and null entries - * - * @return java.util.Hashtable - * @param roles - * org.eclipse.emf.common.util.EList - */ - public Hashtable getAndValidateSecurityRoles(EList roles) { - - Hashtable secRoles = new Hashtable(); - if (roles.isEmpty()) - return (secRoles); - - Iterator sRoles = roles.iterator(); - - while (sRoles.hasNext()) { - - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - - SecurityRole role = (SecurityRole) sRoles.next(); - - - String name = role.getRoleName(); - if (name != null) - name = name.trim(); - if (name == null || name.equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Security_Role_Name_6; - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, role); - continue; - } - if (secRoles.get(name) != null) { // Check for dups - - String[] parms = new String[1]; - parms[0] = name; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY, parms, role); - continue; - } - secRoles.put(name, "Yea"); //$NON-NLS-1$ - } - - - return secRoles; - } - - /** - * <p> - * Answer the id of the resource bundle which is used by the receiver. - * </p> - */ - public String getBaseName() { - return WAR_CATEGORY; - } - - // Messaging helpers ... - - /** - * Returns the name of the Validator, as it should be displayed in the UI. - * - * @see J2EEValidator#getName - */ - - public String getName() { - return WARValidationResourceHandler.Web_Archive_Validator_8; - } - - // Messaging helpers ... - - /** - * Returns the name of the Validator, as it should be displayed in the UI. - * - * @see J2EEValidator#getName - */ - - public String getName(Locale locale) { - return getMessage(null, "webArchiveValidator.name", locale); //$NON-NLS-1$ - } - - /** - * This is a utility function used by the validateSecurityConstraints. - * - * @return boolean - */ - protected boolean isHttpMethod(String method) { - - - if (httpMethods == null) { // Need to construct the Hashtable, once - String[] mList = {"GET", "PUT", "HEAD", "TRACE", "POST", "DELETE", "OPTIONS"}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ - - httpMethods = new Hashtable(); - for (int i = 0; i < mList.length; i++) - httpMethods.put(mList[i], "bla"); //$NON-NLS-1$ - } - String compare = method.trim(); - return (httpMethods.get(compare) != null); - } - - /** - * WAR validation is driven by 3 prong approach: o XML/DTD validation (this is now handled by - * the XML Validator) o Consistent web.xml data entry validation beyond DTD e.g., duplicate - * entries, null entries etc. This is also driven by this validator. o web.xml reference to - * resources in the "file system". This will not be provided by this validator. In the workbench - * this function is already provided by the link builder. - * - */ - public void validate() throws ValidationException { - validateMimeMapping(); - validateContextParameters(); - validateTagLibs(); - validateServletMappings(webDD.getServletMappings()); - validateWelcomeFileList(webDD.getFileList()); - validateErrorPages(webDD.getErrorPages()); - validateSecurityAndServlets(); - validateFilters(webDD.getFilters()); - validateFilterMappings(webDD.getFilterMappings()); - validateRefs(); - validateLoginConfig(webDD.getLoginConfig()); - validateEnvironmentEntries(webDD.getEnvironmentProperties()); - validateOther(); - validate14(); - } - - /** - * - */ - private void validate14() { - int versionId = webDD.getVersionID(); - if (versionId == J2EEVersionConstants.WEB_2_4_ID) { - validateUrlPattern(); - } - } - - /** - * - */ - private void validateUrlPattern() { - List servletMappings = webDD.getServletMappings(); - for (int i = 0; i < servletMappings.size(); i++) { - ServletMapping mapping = (ServletMapping) servletMappings.get(i); - String urlPattern = mapping.getUrlPattern(); - int newLineChar = urlPattern.indexOf(Character.LINE_SEPARATOR); - if (newLineChar != -1) { - String[] parms = new String[2]; - parms[0] = urlPattern; - parms[1] = mapping.getServlet().getDisplayName(); - addError(WAR_CATEGORY, MESSAGE_URL_PATTERN_END_WITH_CARRAIGE_RETURN, parms, mapping); - } - } - - } - - /** - * This is the method which performs the validation on the MOF model. <br> - * <br> - * <code>helper</code> and <code>reporter</code> may not be null. <code>changedFiles</code> - * may be null, if a full build is desired. <br> - * <br> - * <code>helper</code> loads a EObject. The EObject is the root of the MOF model about to be - * validated. When this object is traversed, you can reach every element in the MOF model which - * needs to be validated. <br> - * <br> - * <code>reporter</code> is an instance of an IReporter interface, which is used for - * interaction with the user. <br> - * <br> - * <code>changedFiles</code> is an array of file names which have changed since the last - * validation. If <code>changedFiles</code> is null, or if it is an empty array, then a full - * build is performed. Otherwise, validation on just the files listed in the Vector is - * performed. - */ - public void validate(IValidationContext inHelper, IReporter inReporter) throws ValidationException { - validateInJob(inHelper, inReporter); - } - - - public IStatus validateInJob(IValidationContext inHelper, IReporter inReporter) throws ValidationException { - status = super.validateInJob(inHelper, inReporter); - - - // First remove all previous msg. for this project - _reporter.removeAllMessages(this, null); // Note the WarHelper will return web.xml with a - // null object as well - - if( !_reporter.isCancelled()){ - - warFile = (WARFile) _helper.loadModel(WAR_MODEL_NAME); - - try { - if (warFile != null) { - webDD = warFile.getDeploymentDescriptor(); - validate(); - } else { - IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_INVALID_WAR_FILE); - status = WTPCommonPlugin.createErrorStatus( errorMsg.getText( getClass().getClassLoader() )); - throw new ValidationException(errorMsg); - } - - } catch (ValidationException ex) { - throw ex; - } catch (Exception e) { - String[] parms = new String[1]; - parms[0] = e.toString(); - IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_WAR_VALIDATION_FAILED, parms); - status = WTPCommonPlugin.createErrorStatus(errorMsg.getText( getClass().getClassLoader() )); - throw new ValidationException(errorMsg, e); - } - }else{ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - return status; - } - - /** - * This validator can be used for validation when the reporter and helper have been supplied via - * the constructor. - */ - public void validate(Object aWarFile) throws ValidationException { - - try { - warFile = (WARFile) aWarFile; - webDD = warFile.getDeploymentDescriptor(); - - validate(); - - } catch (Exception e) { - e.printStackTrace(); - String[] parms = new String[1]; - parms[0] = e.toString(); - IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_WAR_VALIDATION_FAILED, parms); - throw new ValidationException(errorMsg); - } - } - - /** - * The auth-constraint element indicates the user roles that should be permitted access to this - * resource collection. The role used here must appear in a security-role-ref element. <!ELEMENT - * auth-constraint (description?, role-name*)> The role-name element contains the name of a - * security role. <!ELEMENT role-name (#PCDATA)> Creation date: (7/6/2001 3:39:34 PM) - * - * @param authConstraint - * org.eclipse.jst.j2ee.internal.webapplication.AuthConstraint - */ - public void validateAuthConstraint(AuthConstraint authConstraint, Hashtable secRoles) { - - EList roleList = authConstraint.getRoles(); - - if (roleList != null && !roleList.isEmpty()) { - Iterator authRoles = roleList.iterator(); - Hashtable remember = new Hashtable(); - while (authRoles.hasNext()) { - String role = (String) authRoles.next(); - if (role == null || role.trim().equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Role_Name_19; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, authConstraint); - continue; - } - if (remember.get(role.trim()) != null) { - String[] parms = new String[1]; - parms[0] = role; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY, parms, authConstraint); - continue; - } - remember.put(role.trim(), "Yea"); //$NON-NLS-1$ - validateAuthSecRole("", role, secRoles, authConstraint); //$NON-NLS-1$ - } - } - } - - /** - * Insert the method's description here. Creation date: (7/5/2001 2:20:02 PM) - */ - public void validateContextParameters() { - - // we must verify that every param-name is unique; - // param-name appears in context parameters, filter - // and servlets. We must check each. - Hashtable remember = new Hashtable(); - - // check context parameters - each param-name should be unique within the web application - Iterator cparams = webDD.getContexts().iterator(); - while (cparams.hasNext()) { - - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - - ContextParam context = (ContextParam) cparams.next(); - - String name = context.getParamName(); - if (name != null) - name = name.trim(); - - if (name == null || name.equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Parameter_Name_25; - - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, context); - continue; - } - // if (remember.get(name + value) != null) { // Check for dups - if (remember.get(name) != null) { // Check for dups - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Parameter_Name_25 + ": " + name; //$NON-NLS-1$ - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY, parms, context); - continue; - } - // remember.put(name + value, "Yea"); - remember.put(name, "Yea"); //$NON-NLS-1$ - } - - - // check servlet init-param - each param-name should be unique within a servlet - Iterator servlets = webDD.getServlets().iterator(); - while (servlets.hasNext()) { - Servlet nextServlet = (Servlet) servlets.next(); - Iterator params = nextServlet.getParams().iterator(); - remember.clear(); - while (params.hasNext()) { - InitParam initParam = (InitParam) params.next(); - String name = initParam.getParamName(); - - if (name != null) - name = name.trim(); - - if (name == null || name.equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Parameter_Name_32; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, initParam); - continue; - } - if (remember.get(name) != null) { // Check for dups - - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Parameter_Name_25 + ": " + name; //$NON-NLS-1$ - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY, parms, initParam); - continue; - } - remember.put(name, "Yea"); //$NON-NLS-1$ - } - } - - // check filter init-param - each param-name should be unique within a filter - Iterator filters = webDD.getFilters().iterator(); - while (filters.hasNext()) { - Filter nextFilter = (Filter) filters.next(); - Iterator params = nextFilter.getInitParams().iterator(); - remember.clear(); - while (params.hasNext()) { - InitParam initParam = (InitParam) params.next(); - String name = initParam.getParamName(); - - if (name != null) - name = name.trim(); - - if (name == null || name.equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Parameter_Name_39; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, initParam); - continue; - } - if (remember.get(name) != null) { // Check for dups - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Parameter_Name_25 + ": " + name; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY, parms, initParam); - continue; - } - remember.put(name, "Yea"); //$NON-NLS-1$ - } - } - - } - - /** - * Validate EJB references. - */ - - public void validateEJBRefs(EjbRefImpl eref) { - // try { - - EARFile earFile = warFile.getEARFile(); - EnterpriseBean eb = null; - - if (earFile != null) - eb = earFile.getEnterpiseBeanFromRef(eref, warFile.getURI()); - - if (!(eb == null)) { - List ejbRefs = eb.getEjbRefs(); - - int numRefs = ejbRefs.size(); - - Set refSet = new HashSet(numRefs); - - for (int refNo = 0; refNo < numRefs; refNo++) { - String nextName = ((EjbRefImpl) (ejbRefs.get(refNo))).getName(); - - String[] parms = new String[1]; - parms[0] = eb.getName(); - if (!(refSet.add(nextName))) { - addWarning(WAR_CATEGORY, ERROR_EAR_DUPLICATE_ROLES, parms, ejbRefs.get(refNo)); - } - } - } - - // } catch (UncontainedModuleFileException ue) { - // String[] parms = new String[1]; - // parms[0] = warFile.getName(); - // addError(EREF_CATEGORY, ERROR_EAR_UNCONTAINED_MODULE_FILE_EXCEPTION, parms); - // } - } - - /** - * validate for duplicates in EAR Roles - */ - - public void validateEJBRefs(List ejbRefs) { - int numRefs = ejbRefs.size(); - Hashtable remember = new Hashtable(); - for (int refNo = 0; refNo < numRefs; refNo++) { - EjbRefImpl eref = (EjbRefImpl) ejbRefs.get(refNo); - if (eref.isSetType()) { - String type = eref.getType().getName(); - if (type == null) { - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_EJB_REF_TYPE, null, eref); // Type - // must - // be - // of - // ENTITY - // or - // FOO - } - } - if (eref.getName() != null) { - String name = eref.getName(); - name = name.trim(); - - if (name.equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_ejb_ref_name_44; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, eref); - continue; - } - if (remember.get(name) != null) { // check for duplicates - String[] parms = new String[1]; - parms[0] = name; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_EJB_REF, parms, eref); - continue; - } - remember.put(name, "Yea"); //$NON-NLS-1$ - } else { - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_ejb_ref_name_44; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, eref); - continue; - } - - - validateEJBRefs(eref); - validateEJBRefManadatoryElements(eref, webDD.getDisplayName()); - } - } - - - /** - * validate for duplicates in EAR Roles - */ - - public void validateEJBLocalRefs(List ejbRefs) { - int numRefs = ejbRefs.size(); - Hashtable remember = new Hashtable(); - for (int refNo = 0; refNo < numRefs; refNo++) { - EJBLocalRefImpl eref = (EJBLocalRefImpl) ejbRefs.get(refNo); - if (eref.isSetType()) { - String type = eref.getType().getName(); - if (type == null) { - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_EJB_REF_TYPE, null, eref); // Type - // must - // be - // of - // ENTITY - // or - // FOO - } - } - if (eref.getName() != null) { - String name = eref.getName(); - name = name.trim(); - - if (name.equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_ejb_ref_name_44; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, eref); - continue; - } - if (remember.get(name) != null) { // check for duplicates - String[] parms = new String[1]; - parms[0] = name; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_EJB_REF, parms, eref); - continue; - } - remember.put(name, "Yea"); //$NON-NLS-1$ - } else { - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_ejb_ref_name_44; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, eref); - continue; - } - - - // validateEJBRefs(eref); - // validateEJBRefManadatoryElements(eref, webDD.getDisplayName()); - } - } - - /** - * Link build should verify location of exception class - */ - - public void validateErrorPages(EList errorPageList) { - Iterator errorPages = errorPageList.iterator(); - - if (errorPageList == null || errorPageList.isEmpty()) - return; - - while (errorPages.hasNext()) { - - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - - ErrorPage nextPage = (ErrorPage) errorPages.next(); - String location = nextPage.getLocation(); - if (location == null || location.equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Error_Location_47; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, nextPage); - } - if (!location.startsWith("/")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Error_Location_49; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_ERROR_PAGE, parms, nextPage); - } - - - // check for valid HTTP error code - must be an Integer, 3 digits, and the starting - // digit must be a 1,2,3,4, or 5. - if (nextPage.isErrorCode()) { - ErrorCodeErrorPage ecep = (ErrorCodeErrorPage) nextPage; - String errorCode = ecep.getErrorCode(); - - boolean valid = false; - if (errorCode.length() == 3) { - try { - Integer tempInt = new Integer(errorCode); - // ok, it's a valid 3-digit integer - int code = tempInt.intValue(); - if (code >= 100 && code < 600) { - // valid HTTP status code - starting digit must be between 1-5 - valid = true; - } - } catch (NumberFormatException exc) { - // Ignore - } - } - if (!valid) { - String[] parms = new String[1]; - parms[0] = errorCode; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_ERROR_CODE, parms, ecep); - } - - } - - // If exception-type... the specified class must be or inherit from java.lang.Throwable - else if (nextPage.isExceptionType()) { - ExceptionTypeErrorPage etep = (ExceptionTypeErrorPage) nextPage; - JavaClass javaType = etep.getExceptionType(); - String exceptionType = "java.lang.Throwable";//$NON-NLS-1$ - String specifiedClassName = etep.getExceptionTypeName(); - if (javaType != null) { - ResourceSet lookupSet = javaType.eResource().getResourceSet(); - if (lookupSet != null) { - if (!javaType.inheritsFrom(JavaRefFactory.eINSTANCE.reflectType(exceptionType, lookupSet).getWrapper())) { - String[] parms = new String[1]; - parms[0] = specifiedClassName; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_EXCEPTION_TYPE, parms, etep); - } - } - } else { - String[] parms = new String[1]; - parms[0] = "";//$NON-NLS-1$ - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_EXCEPTION_TYPE, parms, etep); - } - // TBD - } else { // Error Code - // TBD - } - - // TBD remember location/code/exception dups - } - - } - - /** - * Validate the loginConfig section is correct - */ - public void validateLoginConfig(LoginConfig loginConfig) { - // com.ibm.etools.validate.ValidatorManager.setResourceUtilClass(com.ibm.etools.validate.ui.UIResourceUtil.class); - - if (loginConfig != null) { - String auth = loginConfig.getAuthMethod().getName(); - - if (auth == null) { - String[] parms = new String[0]; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_AUTH_METHOD, parms, loginConfig); - } - // Give a warning if form elements are supplied but FORM auth method is not used - else if (!auth.equals("FORM")) { //$NON-NLS-1$ - FormLoginConfig cfg = loginConfig.getFormLoginConfig(); - if (cfg != null) { - String[] parms = new String[1]; - parms[0] = auth; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_IGNORE_FORM_LOGIN, parms, loginConfig); - } - } - } - } - - /** - * Validate the loginConfig section is correct - */ - public void validateEnvironmentEntries(EList envEntries) { - if (envEntries.isEmpty()) - return; - - // boolean isVersion22 = warFile.getDeploymentDescriptor().isVersion2_2Descriptor(); - Iterator entries = envEntries.iterator(); - Hashtable remember = new Hashtable(); - - while (entries.hasNext()) { - EnvEntry entry = (EnvEntry) entries.next(); - if (entry.getType().getName() == null) { - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_ENV_ENTRY, null, entry); - } - - // check for duplicate env-entry-name's - String name = entry.getName(); - if (name != null) { - if (remember.get(name) != null) { // Check for dups - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Env_Entry_Name___88 + ": " + name; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY, parms, entry); - } else { - remember.put(name, "Yea"); //$NON-NLS-1$ - } - } - } - - } - - - /** - * Insert the method's description here. Creation date: (7/5/2001 12:11:23 PM) - */ - public void validateMimeMapping() { - - if (webDD.getMimeMappings().isEmpty()) - return; - - Iterator mimes = webDD.getMimeMappings().iterator(); - Hashtable remember = new Hashtable(); - - while (mimes.hasNext()) { - - if( _reporter.isCancelled()){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - MimeMapping mimeMap = (MimeMapping) mimes.next(); - - String ext = mimeMap.getExtension(); - String mtype = mimeMap.getMimeType(); - if (ext != null) - ext = ext.trim(); - if (mtype != null) - mtype = mtype.trim(); - - if (ext == null || ext.equals("") || mtype == null || mtype.equals("")) { //$NON-NLS-1$ //$NON-NLS-2$ - String[] parms = new String[1]; - if (ext == null || ext.trim().equals("")) //$NON-NLS-1$ - parms[0] = WARValidationResourceHandler.of_Type_Mime_Extension_54; - else - parms[0] = WARValidationResourceHandler.of_Type_Mime_Type_55; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, mimeMap); - continue; - } - if (remember.get(ext) != null) { // Check for dups - - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Mime_Extension___56 + ": " + ext; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY, parms, mimeMap); - continue; - } - remember.put(ext, "Yea"); //$NON-NLS-1$ - } - } - - /** - * Insert the method's description here. Creation date: (7/5/2001 11:46:58 AM) - */ - public void validateOther() { - - SessionConfig sessionCfg = webDD.getSessionConfig(); - if (sessionCfg != null) { - int timeout = sessionCfg.getSessionTimeout(); - if (timeout == 0) { - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_SESSION_TIMEOUT, null, sessionCfg); - } - } - - - - } - - /** - * validateRefs(WebApp) - validate EJB and resource references - details tbd - */ - - public void validateRefs() { - EList ejbRefs = webDD.getEjbRefs(); - - if (!ejbRefs.isEmpty()) - validateEJBRefs(ejbRefs); - - - EList ejblocalRefs = webDD.getEjbLocalRefs(); - - if (!ejblocalRefs.isEmpty()) - validateEJBLocalRefs(ejblocalRefs); - - - EList resourceRefs = webDD.getResourceRefs(); - - if (!resourceRefs.isEmpty()) { - // validateResourceRefs(resourceRefs); // we want to do additional checks here - - int numRefs = resourceRefs.size(); - Set refSet = new HashSet(numRefs); - boolean isVersion22 = warFile.getDeploymentDescriptor().getVersionID() <= J2EEVersionConstants.WEB_2_2_ID; - - for (int refNo = 0; refNo < numRefs; refNo++) { - - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - - ResourceRefImpl ref = (ResourceRefImpl) (resourceRefs.get(refNo)); - String auth = ref.getAuth().getName(); - - // Check: a res-auth element containing Container or Application must be supplied - if (auth == null || !ref.isSetAuth()) { - String[] parms = new String[1]; - parms[0] = ref.getName(); - String msgId = isVersion22 ? MESSAGE_WAR_VALIDATION_RES_AUTH_REQUIRED_22 : MESSAGE_WAR_VALIDATION_RES_AUTH_REQUIRED_23; - addError(WAR_CATEGORY, msgId, parms, ref); - - } else if (isVersion22 && auth.equals("Application")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = ref.getName(); - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_RES_AUTH_INVALID_22, parms, ref); - } else if (!isVersion22 && auth.equals("SERVLET")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = ref.getName(); - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_RES_AUTH_INVALID_23, parms, ref); - } - - // validate res-sharing-scope is allowable value - String sharingScope = ref.getResSharingScope().getName(); - if (!isVersion22) { - if (sharingScope == null || !ref.isSetResSharingScope()) { - String[] parms = new String[0]; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_RES_SHARING_SCOPE, parms, ref); - } - } - - String refName = ref.getName(); - String[] parms = new String[1]; - parms[0] = refName; - if (!(refSet.add(refName))){ - addError(EREF_CATEGORY, ERROR_EAR_DUPLICATE_RESREF, parms, ref); - } - } - } - - } - - - /** - * Insert the method's description here. Creation date: (7/6/2001 4:11:09 PM) - * - * @return boolean - * @param role - * java.lang.String - * @param defineRoles - * java.util.Hashtable - * - * The auth-constraint only needs to have role-name specified. <auth-constraint> <description></description> - * <role-name>guest</role-name> </auth-constraint> - * - */ - protected void validateAuthSecRole(String link, String role, Hashtable definedRoles, EObject targetObject) { - String rName = role; - String lName = link; - // boolean validRole = true; - // boolean validLink = true; - - if (rName != null) - rName = rName.trim(); - if (lName != null) - lName = lName.trim(); - - if (rName != null) { - if (!rName.equals("*") && !rName.equals("")) { //$NON-NLS-1$ //$NON-NLS-2$ - if (definedRoles.get(rName) == null && definedRoles.get(lName) == null) { - String[] parms = new String[1]; - parms[0] = rName; - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE_NAME, parms, targetObject); - } - } - } - } - - - - /** - * Insert the method's description here. Creation date: (7/6/2001 4:11:09 PM) - * - * @return boolean - * @param role - * java.lang.String - * @param defineRoles - * java.util.Hashtable - * - * - * the security-role-ref must have a non-null role-name and the role-link must contain the name - * of a role specified in the security-role section <security-role-ref> <role-name>MyName</role-name> - * <role-link>ExistingRole</role-link> </security-role-ref> - * - * - */ - protected void validateSecRole(String link, String role, Hashtable definedRoles, EObject targetObject) { - String rName = role; - String lName = link; - // boolean validRole = true; - // boolean validLink = true; - - if (rName != null) - rName = rName.trim(); - if (lName != null) - lName = lName.trim(); - - - // the security role-name cannot be null - if ((rName == null || rName.equals(""))) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = rName; - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE_NAME, parms, targetObject); - } - - if (rName == null || !rName.equals("*")) { //$NON-NLS-1$ - // check that security role-link matches a defines security role - if (lName != null && definedRoles.get(lName) == null) { - - String[] parms = new String[1]; - parms[0] = lName; - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE, parms, targetObject); - } - } - } - - /** - * validateSecurity(WebApp) - validate security constraints, roles, and security role refs - - * details tbd - */ - - public void validateSecurityAndServlets() { - - - EList webRoles = webDD.getSecurityRoles(); - - // Validate security roles - Hashtable secRoles = getAndValidateSecurityRoles(webRoles); - - // Validate Servlets/JSPs and their role ref. - validateServlets(webDD.getServlets(), secRoles); - - validateSecurityConstraints(webDD.getConstraints(), secRoles); - - // try { - if (!(webRoles.isEmpty())) { - EARFile module = warFile.getEARFile(); - if (module != null) { - EList earRoleList = module.getDeploymentDescriptor().getSecurityRoles(); - validateWEBRolesWithEARRoles(earRoleList, webRoles); - } - } - // } catch (UncontainedModuleFileException ue) { - // String[] parms = new String[1]; - // parms[0] = warFile.getName(); - // addError(EREF_CATEGORY, ERROR_EAR_UNCONTAINED_MODULE_FILE_EXCEPTION, parms); - // } - } - - /** - * The security-constraint element is used to associate security constraints with one or more - * web resource collections <!ELEMENT security-constraint (web-resource-collection+, - * auth-constraint?, user-data-constraint?)> - * - * @param constraints - * org.eclipse.emf.common.util.EList - */ - public void validateSecurityConstraints(EList constraints, Hashtable secRoles) { - - if (constraints.isEmpty()) - return; - - Iterator constList = constraints.iterator(); - while (constList.hasNext()) { - - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - - SecurityConstraint constraint = (SecurityConstraint) constList.next(); - - EList webResourceList = constraint.getWebResourceCollections(); - if (webResourceList == null || webResourceList.isEmpty()) { - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Web_Resource_Collection_64; - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, constraint); - continue; - } - validateWebResourceCollections(webResourceList); - - AuthConstraint authConstraint = constraint.getAuthConstraint(); - if (authConstraint != null) - validateAuthConstraint(authConstraint, secRoles); - - UserDataConstraint dataConstraint = constraint.getUserDataConstraint(); - if (dataConstraint != null && dataConstraint.getTransportGuarantee() != null) { - // <!ELEMENT user-data-constraint (description?, transport-guarantee)> - // The transport-guarantee element specifies that the communication - // between client and server should be NONE, INTEGRAL, or - // CONFIDENTIAL. - - // EEnumLiteral transport = dataConstraint.getTransportGuarantee(); - TransportGuaranteeType transport = dataConstraint.getTransportGuarantee(); - if (transport == null || !dataConstraint.isSetTransportGuarantee()) { - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_TRANSPORT, new String[0], dataConstraint); - } - } - } - } - - public void validateFilters(EList filterList) { - if (filterList.isEmpty()) - return; - - Iterator filters = filterList.iterator(); - - Hashtable remember = new Hashtable(); - - while (filters.hasNext()) { - - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - - Filter nextFilter = (Filter) filters.next(); - String name = nextFilter.getName(); - if (name != null) - name = name.trim(); - - if (name == null || name.equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Filter_Name_66; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, nextFilter); - continue; - } - if (remember.get(name) != null) { // check for duplicates - String[] parms = new String[1]; - parms[0] = name; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_FILTER, parms, nextFilter); - continue; - } - remember.put(name, "Yea"); //$NON-NLS-1$ - } - } - - /** - * validateFilterMappings(Elist(Filters's)) - for each filter mapping, make sure the named - * filter exists - */ - public void validateFilterMappings(EList filterMappingsList) { - - if (filterMappingsList.isEmpty()) - return; - - Iterator filterMappings = filterMappingsList.iterator(); - while (filterMappings.hasNext()) { - FilterMapping nextMapping = (FilterMapping) filterMappings.next(); - - // Mapping can be either servlet or url - if (nextMapping.getUrlPattern() != null) { - String[] parms = new String[1]; - String url = nextMapping.getUrlPattern(); - parms[0] = url; - if (url == null) { - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_URL, parms, nextMapping); - continue; - } - if (nextMapping.getFilter() == null || nextMapping.getFilter().equals("")) { //$NON-NLS-1$ - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_BROKEN_FILTER_MAPPING, parms, nextMapping); - continue; - } - - // Is is a valid URI notation ? - try { - if (url.equals("")) - throw new Exception(WARValidationResourceHandler.Invalid_URL_70); - // You can't use com.ibm.webtools.URI here... - // com.ibm.iwt.webtools.URI uri = new com.ibm.iwt.webtools.URI(url) ; - } catch (Exception e) { - parms = new String[1]; - parms[0] = nextMapping.getUrlPattern(); - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_URL, parms, nextMapping); - continue; - } - } else if (nextMapping.getServletName() != null) { - String[] parms = new String[1]; - String servletName = nextMapping.getServletName(); - parms[0] = servletName; - if (nextMapping.getServlet() == null) { - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_BROKEN_SERVLET_MAPPING, parms, nextMapping); - continue; - } - if (nextMapping.getFilter() == null || nextMapping.getFilter().equals("")) { //$NON-NLS-1$ - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_BROKEN_FILTER_MAPPING, parms, nextMapping); - continue; - } - } - // else { - // // otherwise neither servlet-name or url-mapping is defined - this gets flagged by - // the xml validator - // // as this does not conform to the DTD - // - // } - - - } - - } - - - - /** - * validateServlets(Elist(Servlet's)) - for each servlet mapping, make sure the named servlet - * exists - */ - - public void validateServletMappings(EList servletMappingsList) { - - if (servletMappingsList.isEmpty()) - return; - - Iterator servletMappings = servletMappingsList.iterator(); - - Hashtable remember = new Hashtable(); - while (servletMappings.hasNext()) { - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - - ServletMapping nextMapping = (ServletMapping) servletMappings.next(); - String url = nextMapping.getUrlPattern(); - - // Check for null servlet, if the name is right the reflection - // has already resolved it. - - if (url != null) { // check for duplicate first, no need to repeat earlier error, - url = url.trim(); - if (remember.get(url) != null) { - String[] parms = new String[1]; - parms[0] = nextMapping.getUrlPattern(); - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_MAPPING, parms, nextMapping); - continue; - } - remember.put(nextMapping.getUrlPattern(), "Yea"); //$NON-NLS-1$ - } - - - if (url == null || nextMapping.getServlet() == null || nextMapping.getServlet().equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = url; - if (url == null) - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_URL, parms, nextMapping); - else - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_BROKEN_SERVLET_MAPPING, parms, nextMapping); - continue; - } - - // Is is a valid URI notation ? - try { - if (url.equals("")) - throw new Exception(WARValidationResourceHandler.Invalid_URL_75); - - // - // The spec does not prohibit whitespace in the url-patterns - // - // // check to see if the string is a valid URL- has no white space - // char[] chars = url.toCharArray(); - // int len = chars.length; - // for (int cnt = 0; cnt < chars.length; cnt++) - // { - // if (Character.isWhitespace(chars[cnt])) - // throw new Exception("Invalid URL") ; - // } - // You can't use com.ibm.webtools.URI here... - // com.ibm.iwt.webtools.URI uri = new com.ibm.iwt.webtools.URI(url) ; - } catch (Exception e) { - String[] parms = new String[1]; - parms[0] = nextMapping.getUrlPattern(); - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_URL, parms, nextMapping); - continue; - } - } - - } - - /** - * validateServlets(Elist(Servlet's)) - if it's a JSP, verify the file exists - validate - * optional security role refs for existence of the security role - */ - - public void validateServlets(EList servletList, Hashtable secRoles) { - if (servletList.isEmpty()) - return; - - Iterator servlets = servletList.iterator(); - - Hashtable remember = new Hashtable(); - - while (servlets.hasNext()) { - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - - Servlet nextServlet = (Servlet) servlets.next(); - String name = nextServlet.getServletName(); - if (name != null) - name = name.trim(); - - if (name == null || name.equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Servlet_Name_77; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, nextServlet); - continue; - } - if (remember.get(name) != null) { // check for duplicates - String[] parms = new String[1]; - parms[0] = name; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_SERVLET, parms, nextServlet); - continue; - } - remember.put(name, "Yea"); //$NON-NLS-1$ - - // Validate servlet roles - EList rolesList = nextServlet.getSecurityRoleRefs(); - if (!rolesList.isEmpty()) { - Iterator roles = rolesList.iterator(); - while (roles.hasNext()) { - SecurityRoleRef role = (SecurityRoleRef) roles.next(); - validateSecRole(role.getLink(), role.getName(), secRoles, role); - } - } - - // if it's a JSP, the jsp-file attribute MUST be a full-path, according to the servlet - // 2.2 spec - if (nextServlet.getWebType().isJspType()) { - JSPType jspType = (JSPType) (nextServlet.getWebType()); - - String jspFileName = jspType.getJspFile(); - if (jspFileName == null || !(jspFileName.length() > 0)) { - String[] parms = new String[2]; - parms[0] = jspFileName; - parms[1] = name; - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_JSPFILE_REF, parms, nextServlet); - } - } - - /* No need to check for the existence of JSPs or Servlets. the LinkBuilder will do this */ - - } - } - - public void validateTagLibs() { - - if (webDD.getTagLibs().isEmpty()) - return; - - Iterator tags = webDD.getTagLibs().iterator(); - Hashtable remember = new Hashtable(); - - while (tags.hasNext()) { - - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - - TagLibRef taglib = (TagLibRef) tags.next(); // ClassCastException at runtime - String uri = taglib.getTaglibURI(); - - if (uri != null) - uri = uri.trim(); - - if (uri == null || uri.equals("")) { //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Taglib_80; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, taglib); - continue; - } - if (remember.get(uri) != null) { // Check for dups - - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_TagLib___81 + ": " + uri; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY, parms, taglib); - continue; - } - remember.put(uri, "Yea"); //$NON-NLS-1$ - } - } - - public void validateWebResourceCollections(EList webResourceList) { - - - Iterator resourceList = webResourceList.iterator(); - while (resourceList.hasNext()) { // Check the web resource collections - WebResourceCollection resource = (WebResourceCollection) resourceList.next(); - - String name = resource.getWebResourceName(); - if (name != null) - name = name.trim(); - if (name == null || name.equals("")) { // should have a name //$NON-NLS-1$ - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Web_Resource_Name_84; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_EMPTY_ENTRY, parms, resource); - } - - // Check that the http methods, if any is correct - EList httpList = resource.getHTTPs(); - if (!httpList.isEmpty()) { - Iterator https = httpList.iterator(); - while (https.hasNext()) { - HTTPMethodType httpMethod = (HTTPMethodType) https.next(); - String method = httpMethod.getHttpMethod(); - - if (method == null || !isHttpMethod(method)) { - String[] parms = new String[1]; - parms[0] = method; - addError(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_HTTP_CMD, parms, httpMethod); - } - - - } - } - } - } - - /** - * validateWelcomeFileList(WelcomeFileList) - walk through the files and verify they exist - */ - - public void validateWelcomeFileList(WelcomeFileList fileList) { - if (fileList == null) - return; - - Iterator files = fileList.getFile().iterator(); - - Hashtable remember = new Hashtable(); - while (files.hasNext()) { - - if( _reporter.isCancelled() ){ - String msg = ResourceHandler.getExternalizedMessage(ResourceConstants.VBF_STATUS_VALIDATOR_TERMINATED); - status = WTPCommonPlugin.createCancelStatus(msg); - } - - WelcomeFile nextFile = (WelcomeFile) files.next(); - String fileName = nextFile.getWelcomeFile(); - - if ((fileName == null) || (fileName.length() == 0)) { - String[] parms = new String[0]; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_NO_WELCOME_FILE, parms, nextFile); - } else if ((fileName.startsWith("/")) || (fileName.endsWith("/"))) { //$NON-NLS-1$ //$NON-NLS-2$ - String[] parms = new String[0]; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_INVALID_WELCOME_FILE, parms, nextFile); - } - fileName = fileName.trim(); - if (remember.get(fileName) != null) { - String[] parms = new String[1]; - parms[0] = WARValidationResourceHandler.of_Type_Welcome_File_Name__87 + ": " + fileName; - addWarning(WAR_CATEGORY, MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY, parms, nextFile); - continue; - } - remember.put(fileName, "Yea"); //$NON-NLS-1$ - } - } - - public ISchedulingRule getSchedulingRule(IValidationContext helper) { - _helper = helper; - return null; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/rarvalidation.properties b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/rarvalidation.properties deleted file mode 100644 index 3b8ccad52..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/rarvalidation.properties +++ /dev/null @@ -1,13 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2005 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: -# IBM Corporation - initial API and implementation -############################################################################### -CONNECTOR_INVALID_DOC_TYPE_ERROR_=IWAE0054E Document type version "{0}" for rar.xml in project "{1}" needs to be version "{2}". -ERROR_INVALID_CONNECTOR_FILE="Invalid RAR File". -ERROR_CONNECTOR_VALIDATION_FAILED="RAR Validation failed". diff --git a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/warvalidation.properties b/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/warvalidation.properties deleted file mode 100644 index f556fc4f2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/warvalidation.properties +++ /dev/null @@ -1,258 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2005 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: -# IBM Corporation - initial API and implementation -############################################################################### -#This properties file hold all the externalised strings for eTools WAR Validation project -# Validation project -# -# Messages should be according to the format at: -# http://hany.austin.ibm.com/messages/index.html -# -# Briefly: -# MESSAGE_ID=<ComponentPrefix><MessageNumber><TypeCode>: <MessageText> -# -# The prefix for this component is: -# CHKJ (IBM WebSphere Validation) -# -# Note the ": " that appears between the type code and the message text. -# -# :Begin: WebSphere Quality Validation Information :Begin: -#COMPONENTPREFIX CHKJ -#COMPONENTNAMEFOR CHKJ IBM WebSphere Validation -#CMVCPATHNAME ncf/src/java/com/ibm/websphere/validation/warvalidation.properties -# :End: WebSphere Quality Validation Information :End: -# - -# 2-July-2001: -# This file has been tested using the ProcessMsgFile tool, written by -# Hany Salem and owned by Dennis Hebert. Any future changes should -# also be verified using this tool. Please contact Dennis -# (hebert@us.ibm.com or T/L 543-2520) for more information. -# - -# -------------------------------- -ERROR_WAR_VALIDATION_FAILED=CHKJ3000E: WAR Validation Failed: {0} -#EXPLANATION None. -#USERACTION None. - - -# -------------------------------- -ERROR_EAR_DUPLICATE_ROLES=CHKJ1002E: Duplicate security role named {0}. -MESSAGE_WAR_VALIDATION_MISSING_JSP=CHKJ3001E: The JSP file, {0}, for the servlet \"{1}\" is missing. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_SMALL_ICON=CHKJ3002E: The <small-icon> file, {0}, is missing. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_LARGE_ICON=CHKJ3003E: The <large-icon> file, {0}, is missing. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_BROKEN_SERVLET_MAPPING=CHKJ3004W: The servlet mapping \"{0}\" refers to a servlet that is not defined. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_NO_WELCOME_FILE=CHKJ3005E: Empty welcome file list entry. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_MISSING_WELCOME_FILE=CHKJ3006E: Welcome file {0} is missing. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_MISSING_TLD=CHKJ3007E: The Tag Library Descriptor File, {0}, is missing. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -ERROR_INVALID_WAR_FILE=CHKJ3008E: Missing or invalid WAR file. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_BROKEN_FILTER_MAPPING=CHKJ3009E: The filter mapping \"{0}\" refers to a filter that is not defined. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_INVALID_WELCOME_FILE=CHKJ3010W: Welcome Files cannot begin or end with a /. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -WAR_DD_PARSE_LINECOL=CHKJ1009E: Parsing Error: {0}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -WAR_DD_PARSE_LINE=CHKJ1010E: Deployment Descriptor Parsing error. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -WAR_DD_PARSE_NOINFO=CHKJ1011E: Deployment Descriptor Parsing error. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -WAR_DD_CANNOT_OPEN_DD=CHKJ1012E: Cannot open the deployment descriptor. Validation cannot complete. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_INVALID_URL=CHKJ3013E: The URL Mapping \"{0}\" is invalid. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE=CHKJ3014E: Invalid Security role-link: {0}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_INVALID_HTTP_CMD=CHKJ3015E: Invalid HTTP method: {0}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_INVALID_TRANSPORT=CHKJ3016E: Invalid Transport Gurarantee. Valid values are \"NONE\", \"INTEGRAL\", or \"CONFIDENTIAL\". - -# -------------------------------- -MESSAGE_WAR_VALIDATION_INVALID_JSPFILE_REF=CHKJ3018E: The jsp-file \"{0}\" referenced by servlet {1} must be a full absolute path. - - -# -------------------------------- -ERROR_EAR_INVALID_CONTEXT_ROOT=CHKJ3017E: Web Project: {0} is mapped to an invalid Context root: {1} in EAR Project: {2}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_INVALID_ERROR_PAGE=IWAE0001E CHKJ3019E: The Location of the Error Page Must Begin with a /. -#EXPLANATION None. -#USERACTION None. - -MESSAGE_WAR_VALIDATION_INVALID_SEC_ROLE_NAME=CHKJ3020E: Invalid Security role-name: {0}. -#EXPLANATION None. -#USERACTION None. - -MESSAGE_WAR_VALIDATION_INVALID_AUTH_METHOD=CHKJ3021E: Invalid auth method. Valid values are: \"BASIC\", \"DIGEST\", \"FORM\", or \"CLIENT-CERT\". -#EXPLANATION None. -#USERACTION None. - -MESSAGE_WAR_VALIDATION_IGNORE_FORM_LOGIN=CHKJ3022E: Authentication method is {0}. The form-login-config values will be ignored unless using FORM authentication method. -#EXPLANATION None. -#USERACTION None. - -MESSAGE_WAR_VALIDATION_RES_AUTH_REQUIRED_22=CHKJ3023E: Resource ref {0} must contain res-auth of "SERVLET" or "CONTAINER". -MESSAGE_WAR_VALIDATION_RES_AUTH_REQUIRED_23=CHKJ3024E: Resource ref {0} must contain res-auth of "Application" or "Container". -MESSAGE_WAR_VALIDATION_RES_AUTH_INVALID_22=CHKJ3025E: \"Application\" is not a valid value for.res-auth in a 2.2 level deployment descriptor. Use \"SERVLET\" instead. -MESSAGE_WAR_VALIDATION_RES_AUTH_INVALID_23=CHKJ3026E: \"SERVLET\" is not a valid value for.res-auth in a 2.2 level deployment descriptor. Use \"Application\" instead. - -MESSAGE_WAR_VALIDATION_INVALID_EXCEPTION_TYPE=CHKJ3027E: Invalid Exception Type {0}. The exception type must contain a fully qualified class name of a Java exception type. -#EXPLANATION None. -#USERACTION None. - - - -# -------------------------------- -MESSAGE_WAR_VALIDATION_DUPLICATE_MAPPING=CHKJ4010W: Duplicate URL mapping {0}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_DUPLICATE_SERVLET=CHKJ4011W: Duplicate Servlet Entry {0}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_SESSION_TIMEOUT=CHKJ4012W: Session Timeout is not valid. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_DUPLICATE_ENTRY=CHKJ4013W: Duplicate Entry {0}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_EMPTY_ENTRY=CHKJ4014W: Empty Entry {0}. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_DUPLICATE_FILTER=CHKJ4015W: Duplicate Filter Entry {0}. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_DUPLICATE_EJB_REF=CHKJ4016W: Duplicate ejb-ref element named {0}. -#EXPLANATION None. -#USERACTION None. - -# This was missing. It's defined in constants... -ERROR_EAR_UNCONTAINED_MODULE_FILE_EXCEPTION=CHKJ4017W: ERROR EAR UNCONTAINED MODULE FILE EXCEPTION - -# -------------------------------- -MESSAGE_WAR_VALIDATION_INVALID_ERROR_CODE=IWAE0036E CHKJ4018W: Unknown Error Code: {0}. error-code must contain a valid HTTP status code. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -MESSAGE_WAR_VALIDATION_INVALID_RES_SHARING_SCOPE=CHKJ4019W: Invalid res-sharing-scope; valid values are \"Shareable\" or \"Unshareable\". -#USERACTION None. - -MESSAGE_WAR_VALIDATION_INVALID_ENV_ENTRY=CHKJ4020W: Invalid Environment Entry Type. Valid values are \"java.lang.TYPE\", where TYPE is one of the following: Boolean, Byte, Character, String, Short, Integer, Long, Float, or Double." -#USERACTION None. - -MESSAGE_WAR_VALIDATION_MISSING_WLP_PROJECT=CHKJ4021W: Missing Web Library Project ({0}). Check the properties of this project to fix this problem. -MESSAGE_WAR_VALIDATION_CONFLICTING_WLP_PROJECT=CHKJ4022W: The Web Library Project JAR ({0}) conflicts with an actual JAR in the WEB-INF/lib directory. -MSG_SERVER_TARGET_MISMATCH=CHKJ4023W: The target server of the Web Library Project ({1}) does not match that of this Web Project ({0}). Run validation on the Web Project if you think that is not the case. -MESSAGE_URL_PATTERN_END_WITH_CARRAIGE_RETURN=The URL pattern string "{0}" ends with a invalid carraige return for servlet {1} - -# -------------------------------- -MESSAGE_WAR_VALIDATION_INVALID_EJB_REF_TYPE=CHKJ4023W: ejb-ref-type must be 'Entity' or 'Session'. -#EXPLANATION None. -#USERACTION None. - -# -------------------------------- -ERROR_EAR_MISSING_EJB_ROLE=CHKJ2827W: ''security-role-ref'' element {0} defines the ''role-link'' element but no ''security-role'' elements in the application descriptor. -#EXPLANATION None. -#USERACTION None. - -of_Type_Security_Role_Name_6=of Type Security Role Name -Web_Archive_Validator_8=Web Archive Validator -of_Type_Role_Name_19=of Type Role Name -of_Type_Parameter_Name_25=of Type Parameter Name -of_Type_Parameter_Value_26=of Type Parameter Value -of_Type_Parameter_Name_32=of Type Parameter Name -of_Type_Parameter_Value_33=of Type Parameter Value -of_Type_Parameter_Name_39=of Type Parameter Name -of_Type_Parameter_Value_40=of Type Parameter Value -of_Type_ejb_ref_name_44=of Type ejb-ref-name -of_Type_Error_Location_47=of Type Error Location -of_Type_Error_Location_49=of Type Error Location -of_Type_Mime_Extension_54=of Type Mime Extension -of_Type_Mime_Type_55=of Type Mime Type -of_Type_Mime_Extension___56=of Type Mime Extension: -of_Type_Web_Resource_Collection_64=of Type Web Resource Collection -of_Type_Filter_Name_66=of Type Filter Name -Invalid_URL_70=Invalid URL -Invalid_URL_75=Invalid URL -of_Type_Servlet_Name_77=of Type Servlet Name -of_Type_Taglib_80=of Type Taglib -of_Type_TagLib___81=of Type TagLib: -of_Type_Web_Resource_Name_84=of Type Web Resource Name -of_Type_Welcome_File_Name__87=of Type Welcome File Name -of_Type_Env_Entry_Name___88=of Type Environment Entry Name diff --git a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/bindings/AbstractJNDIBindingsHelper.java b/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/bindings/AbstractJNDIBindingsHelper.java deleted file mode 100644 index 8d3de51a4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/bindings/AbstractJNDIBindingsHelper.java +++ /dev/null @@ -1,99 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005,2006 IBM Corporation - * Licensed Material - Property of IBM. All rights reserved. - * US Government Users Restricted Rights - Use, duplication or disclosure v1.0 - * restricted by GSA ADP Schedule Contract with IBM Corp. - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.core.internal.bindings; - -import org.eclipse.core.resources.IProject; -import org.eclipse.jst.j2ee.common.ResourceEnvRef; -import org.eclipse.jst.j2ee.common.ResourceRef; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.webapplication.WebApp; - -/** - * Default implementation of {@link IJNDIBindingsHelper}. Clients should extend this class for their - * implementations. - * - */ -public class AbstractJNDIBindingsHelper implements IJNDIBindingsHelper { - - /** - * Default implementation returns <code>false</code>. - */ - public boolean appliesFor(IProject project) { - return false; - } - - /** - * Default implementation returns <code>false</code>. - */ - public boolean appliesFor(Archive archive) { - return false; - } - - /** - * Default implementation returns <code>object.toString()</code>. - */ - public String getJNDIName(Object object) { - return object.toString(); - } - - /** - * Default implementation returns <code>bean.getName()</code>. - */ - public String getJNDIName(EnterpriseBean bean) { - return bean.getName(); - } - - /** - * Default implementation returns <code>resourceRef.getName()</code>. - */ - public String getJNDINameForRef(EnterpriseBean bean, ResourceRef resourceRef) { - return resourceRef.getName(); - } - - /** - * Default implementation returns <code>resourceEnvRef.getName()</code>. - */ - public String getJNDINameForRef(EnterpriseBean bean, ResourceEnvRef resourceEnvRef) { - return resourceEnvRef.getName(); - } - - /** - * Default implementation returns <code>securityRoleRef.getName()</code>. - */ - public String getJNDINameForRef(EnterpriseBean bean, SecurityRoleRef securityRoleRef) { - return securityRoleRef.getName(); - } - - /** - * Default implementation returns <code>resourceRef.getName()</code>. - */ - public String getJNDINameForRef(WebApp webApp, ResourceRef resourceRef) { - return resourceRef.getName(); - } - - /** - * Default implementation returns <code>resourceEnvRef.getName()</code>. - */ - public String getJNDINameForRef(WebApp webApp, ResourceEnvRef resourceEnvRef) { - return resourceEnvRef.getName(); - } - - /** - * Default implementation returns <code>((EJBJar) bean.eContainer()).getDisplayName()</code>. - */ - public String getJNDINameForDefaultDataSource(ContainerManagedEntity bean) { - return ((EJBJar) bean.eContainer()).getDisplayName(); - } - -}
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/bindings/IJNDIBindingsHelper.java b/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/bindings/IJNDIBindingsHelper.java deleted file mode 100644 index fa6a51264..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/bindings/IJNDIBindingsHelper.java +++ /dev/null @@ -1,117 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005,2006 IBM Corporation - * Licensed Material - Property of IBM. All rights reserved. - * US Government Users Restricted Rights - Use, duplication or disclosure v1.0 - * restricted by GSA ADP Schedule Contract with IBM Corp. - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.core.internal.bindings; - -import org.eclipse.core.resources.IProject; -import org.eclipse.jst.j2ee.common.ResourceEnvRef; -import org.eclipse.jst.j2ee.common.ResourceRef; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.webapplication.WebApp; - -/** - * This is used to load jndi bindings from various J2EE artifacts. Clients should acquire - * IBindingsHelper from the {@link JNDIBindingsHelperManager}. - */ -public interface IJNDIBindingsHelper { - - /** - * Clients should not call this method. This method is used by the - * {@link JNDIBindingsHelperManager}. - * - * @param project - * @return true if this {@link IJNDIBindingsHelper} can be used to load bindings for specified - * project. - */ - public boolean appliesFor(IProject project); - - /** - * Clients should not call this method. This method is used by the - * {@link JNDIBindingsHelperManager}. - * - * @param project - * @return true if this {@link IJNDIBindingsHelper} can be used to load bindings for specified - * archive. - */ - public boolean appliesFor(Archive archive); - - /** - * Returns the specified bean's JNDI name. - * - * @param bean - * @return the specified bean's JNDI name. - */ - public String getJNDIName(EnterpriseBean bean); - - /** - * Returns the JNDI name for the specified CMP's default datasource. - * - * @param bean - * @return the JNDI name for the specified CMP's default datasource. - */ - public String getJNDINameForDefaultDataSource(ContainerManagedEntity bean); - - /** - * Returns the specified bean's resource reference's JNDI name. - * - * @param bean - * @param resourceRef - * @return the specified bean's resource reference's JNDI name. - */ - public String getJNDINameForRef(EnterpriseBean bean, ResourceRef resourceRef); - - /** - * Returns the specified bean's resource environment reference's JNDI name. - * - * @param bean - * @param resourceEnvRef - * @return the specified bean's resource environment reference's JNDI name. - */ - public String getJNDINameForRef(EnterpriseBean bean, ResourceEnvRef resourceEnvRef); - - /** - * Returns the specified bean's security role referenc's JNDI name. - * - * @param bean - * @param securityRoleRef - * @return the specified bean's security role referenc's JNDI name. - */ - public String getJNDINameForRef(EnterpriseBean bean, SecurityRoleRef securityRoleRef); - - /** - * Reuturns the specified web application's resource reference's JNDI name. - * - * @param webApp - * @param resourceRef - * @return the specified web application's resource reference's JNDI name. - */ - public String getJNDINameForRef(WebApp webApp, ResourceRef resourceRef); - - /** - * Returns the specified web application's resource environment reference's JNDI name. - * - * @param webApp - * @param resourceEnvRef - * @return the specified web application's resource environment reference's JNDI name. - */ - public String getJNDINameForRef(WebApp webApp, ResourceEnvRef resourceEnvRef); - - /** - * Returns the specified Object's JNDI name. This method should only be used if none of the - * others apply, as it will likely be inefficient due to instanceof checks. - * - * @param obj - * @return the specified Object's JNDI name. - */ - public String getJNDIName(Object obj); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/bindings/JNDIBindingsHelperManager.java b/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/bindings/JNDIBindingsHelperManager.java deleted file mode 100644 index 7a8538797..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/bindings/JNDIBindingsHelperManager.java +++ /dev/null @@ -1,150 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005,2006 IBM Corporation - * Licensed Material - Property of IBM. All rights reserved. - * US Government Users Restricted Rights - Use, duplication or disclosure v1.0 - * restricted by GSA ADP Schedule Contract with IBM Corp. - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.core.internal.bindings; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.jem.util.RegistryReader; -import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive; -import org.eclipse.jst.j2ee.core.internal.plugin.J2EECorePlugin; - -/** - * This class is not intended to be subclasses - * - */ -public class JNDIBindingsHelperManager { - - private List allHelpers; - private IJNDIBindingsHelper defaultHelper; - private static final int TYPE_PROJECT = 0; - private static final int TYPE_ARCHIVE = 1; - - private static JNDIBindingsHelperManager instance = null; - - /** - * Returns the singleton instance. - * - * @return the singleton instance. - */ - public static JNDIBindingsHelperManager getInstance() { - if (instance == null) { - instance = new JNDIBindingsHelperManager(); - } - return instance; - } - - /** - * Returns an array of bindings helpers applicable for the specified project. If no registered - * bindings helpers apply, the returned array will contain a default bindings helper. - * - * @param project - * @return - */ - public IJNDIBindingsHelper[] getBindingsHelpers(IProject project) { - return getBindingsHelpers(TYPE_PROJECT, project); - } - - /** - * Returns an array of bindings helpers applicable for the specified archive. If no registered - * bindings helpers apply, the returned array will contain a default bindings helper. - * - * @param project - * @return - */ - public IJNDIBindingsHelper[] getBindingsHelpers(Archive archive) { - return getBindingsHelpers(TYPE_ARCHIVE, archive); - } - - private IJNDIBindingsHelper[] getBindingsHelpers(int type, Object obj) { - List helpers = getHelpers(); - List appliesHelpers = new ArrayList(); - IJNDIBindingsHelper helper = null; - for (int i = 0; i < helpers.size(); i++) { - helper = (IJNDIBindingsHelper) helpers.get(i); - if ((TYPE_PROJECT == type && helper.appliesFor((IProject) obj)) || (TYPE_ARCHIVE == type && helper.appliesFor((Archive) obj))) { - appliesHelpers.add(helper); - } - } - if (appliesHelpers.size() == 0) { - appliesHelpers.add(getDefaultHelper()); - } - - IJNDIBindingsHelper[] helpersArray = new IJNDIBindingsHelper[appliesHelpers.size()]; - for (int i = 0; i < helpersArray.length; i++) { - helpersArray[i] = (IJNDIBindingsHelper) appliesHelpers.get(i); - } - - return helpersArray; - } - - private IJNDIBindingsHelper getDefaultHelper() { - if (null == defaultHelper) { - defaultHelper = new AbstractJNDIBindingsHelper() { - public boolean appliesFor(IProject project) { - return true; - } - - public boolean appliesFor(Archive archive) { - return true; - } - }; - } - return defaultHelper; - } - - private List getHelpers() { - if (null == allHelpers) { - BindingsHelperRegistry registry = new BindingsHelperRegistry(); - registry.readRegistry(); - allHelpers = registry.getHelpers(); - } - return allHelpers; - } - - - protected String TAG_J2EE_BINDINGS_HELPER = "jndiBindingsHelpers"; //$NON-NLS-1$ - - private class BindingsHelperRegistry extends RegistryReader { - - private String ATT_CLASS = "class"; //$NON-NLS-1$ - private String TAG_BINDINGS_HELPER = "jndiBindingsHelper"; //$NON-NLS-1$ - - private List helpers = new ArrayList(); - - private BindingsHelperRegistry() { - super(J2EECorePlugin.PLUGIN_ID, TAG_J2EE_BINDINGS_HELPER); - } - - public boolean readElement(IConfigurationElement element) { - if (TAG_BINDINGS_HELPER.equals(element.getName())) { - try { - addHelper((IJNDIBindingsHelper) element.createExecutableExtension(ATT_CLASS)); - } catch (CoreException e) { - e.printStackTrace(); - return false; - } - return true; - } - return false; - } - - public List getHelpers() { - return helpers; - } - - private void addHelper(IJNDIBindingsHelper helper) { - helpers.add(helper); - } - } -}
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/Assert.java b/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/Assert.java deleted file mode 100644 index a797956b3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/Assert.java +++ /dev/null @@ -1,110 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.core.internal.plugin; - -/** - * <code>Assert</code> is useful for for embedding runtime sanity checks - * in code. - * The predicate methods all test a condition and throw some - * type of unchecked exception if the condition does not hold. - * <p> - * Assertion failure exceptions, like most runtime exceptions, are - * thrown when something is misbehaving. Assertion failures are invariably - * unspecified behavior; consequently, clients should never rely on - * these being thrown (and certainly should not being catching them - * specifically). - * </p> - */ -public final class Assert { - /* This class is not intended to be instantiated. */ - private Assert() { - // not allowed - } - - /** Asserts that an argument is legal. If the given boolean is - * not <code>true</code>, an <code>IllegalArgumentException</code> - * is thrown. - * - * @param expression the outcode of the check - * @return <code>true</code> if the check passes (does not return - * if the check fails) - * @exception IllegalArgumentException if the legality test failed - */ - public static boolean isLegal(boolean expression) { - return isLegal(expression, ""); //$NON-NLS-1$ - } - - /** Asserts that an argument is legal. If the given boolean is - * not <code>true</code>, an <code>IllegalArgumentException</code> - * is thrown. - * The given message is included in that exception, to aid debugging. - * - * @param expression the outcode of the check - * @param message the message to include in the exception - * @return <code>true</code> if the check passes (does not return - * if the check fails) - * @exception IllegalArgumentException if the legality test failed - */ - public static boolean isLegal(boolean expression, String message) { - if (!expression) - throw new IllegalArgumentException(message); - return expression; - } - - /** Asserts that the given object is not <code>null</code>. If this - * is not the case, some kind of unchecked exception is thrown. - * - * @param object the value to test - * @exception IllegalArgumentException if the object is <code>null</code> - */ - public static void isNotNull(Object object) { - isNotNull(object, ""); //$NON-NLS-1$ - } - - /** Asserts that the given object is not <code>null</code>. If this - * is not the case, some kind of unchecked exception is thrown. - * The given message is included in that exception, to aid debugging. - * - * @param object the value to test - * @param message the message to include in the exception - * @exception IllegalArgumentException if the object is <code>null</code> - */ - public static void isNotNull(Object object, String message) { - if (object == null) - throw new AssertionFailedException("null argument:" + message); //$NON-NLS-1$ - } - - /** Asserts that the given boolean is <code>true</code>. If this - * is not the case, some kind of unchecked exception is thrown. - * - * @param expression the outcode of the check - * @return <code>true</code> if the check passes (does not return - * if the check fails) - */ - public static boolean isTrue(boolean expression) { - return isTrue(expression, ""); //$NON-NLS-1$ - } - - /** Asserts that the given boolean is <code>true</code>. If this - * is not the case, some kind of unchecked exception is thrown. - * The given message is included in that exception, to aid debugging. - * - * @param expression the outcode of the check - * @param message the message to include in the exception - * @return <code>true</code> if the check passes (does not return - * if the check fails) - */ - public static boolean isTrue(boolean expression, String message) { - if (!expression) - throw new AssertionFailedException("assertion failed: " + message); //$NON-NLS-1$ - return expression; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/AssertionFailedException.java b/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/AssertionFailedException.java deleted file mode 100644 index b349e1cc6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/AssertionFailedException.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.core.internal.plugin; - -/** - * <code>AssertionFailedException</code> is a runtime exception thrown - * by some of the methods in <code>Assert</code>. - * <p> - * This class is not declared public to prevent some misuses; programs that catch - * or otherwise depend on assertion failures are susceptible to unexpected - * breakage when assertions in the code are added or removed. - * </p> - */ -/* package */ -class AssertionFailedException extends RuntimeException { - /** - * All serializable objects should have a stable serialVersionUID - */ - private static final long serialVersionUID = 1L; - - /** Constructs a new exception with the given message. - */ - public AssertionFailedException(String detail) { - super(detail); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/EclipseEJBModelExtenderProvider.java b/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/EclipseEJBModelExtenderProvider.java deleted file mode 100644 index 764522d05..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/EclipseEJBModelExtenderProvider.java +++ /dev/null @@ -1,160 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Oct 29, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.core.internal.plugin; - -import java.util.SortedSet; -import java.util.TreeSet; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.jem.util.RegistryReader; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.internal.EjbModuleExtensionHelper; -import org.eclipse.jst.j2ee.internal.IEJBModelExtenderProvider; -import org.eclipse.wst.common.frameworks.internal.enablement.Identifiable; -import org.eclipse.wst.common.frameworks.internal.enablement.IdentifiableComparator; - -/** - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class EclipseEJBModelExtenderProvider extends RegistryReader implements IEJBModelExtenderProvider { - - private SortedSet extensionHelpers; - - /* - * static final String EXTENSION_NAME = "e"; //$NON-NLS-1$ static final - * String ELEMENT_J2EEMODULE_EXTENSION = "j2eeModuleExtensionHelper"; - * //$NON-NLS-1$ static final String MODULE_EXTENSION_CLASS = - * "extensionClass"; //$NON-NLS-1$ - */ - - private static EclipseEJBModelExtenderProvider INSTANCE = null; - - public static class Descriptor implements Identifiable { - - public static final String EJB_MODEL_EXTENDER = "ejbModelExtender"; //$NON-NLS-1$ - - public static final String ATT_ID = "id"; //$NON-NLS-1$ - - public static final String ATT_EJB_EXTENSION_CLASS = "extensionClass"; //$NON-NLS-1$ - - private static int loadOrderCounter = 0; - - private final String id; - - private final int loadOrder; - - private IConfigurationElement element; - - private EjbModuleExtensionHelper instance; - - public Descriptor(IConfigurationElement element) { - Assert.isLegal(EJB_MODEL_EXTENDER.equals(element.getName()), - "Invalid IConfigurationElement used to create EclipseEJBModelExtenderProvider.Descriptor."); //$NON-NLS-1$ - this.element = element; - this.id = this.element.getAttribute(ATT_ID); - this.loadOrder = loadOrderCounter++; - } - - public String getID() { - return this.id; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.wst.common.frameworks.internal.enablement.Identifiable#getLoadOrder() - */ - public int getLoadOrder() { - return loadOrder; - } - - public EjbModuleExtensionHelper getInstance() { - try { - if (instance == null) - instance = (EjbModuleExtensionHelper) element - .createExecutableExtension(ATT_EJB_EXTENSION_CLASS); - } catch (CoreException e) { - Logger.getLogger().logError(e); - } - return instance; - } - } - - protected EclipseEJBModelExtenderProvider() { - super(J2EECorePlugin.PLUGIN_ID, Descriptor.EJB_MODEL_EXTENDER); - } - - public static EclipseEJBModelExtenderProvider getInstance() { - if (INSTANCE == null) { - INSTANCE = new EclipseEJBModelExtenderProvider(); - INSTANCE.readRegistry(); - } - return INSTANCE; - } - - /** - * readElement() - parse and deal w/ an extension like: <earModuleExtension - * extensionClass = "com.ibm.etools.web.plugin.WebModuleExtensionImpl"/> - */ - public boolean readElement(IConfigurationElement element) { - if (!element.getName().equals(Descriptor.EJB_MODEL_EXTENDER)) return false; - - addModuleExtension(new Descriptor(element)); - return true; - } - - /** - * @param descriptor - */ - private void addModuleExtension(Descriptor descriptor) { - getExtensionHelpers().add(descriptor); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.jst.j2ee.internal.core.moduleextension.helper.IEJBModelExtenderProvider#getEJBModuleExtension(java.lang.Object) - */ - public EjbModuleExtensionHelper getEJBModuleExtension(Object context) { - //IProject project = null; // TODO MDE Get the project using Project Utilities (add depend to emf.workbench ?) - if (getExtensionHelpers().isEmpty()) - return null; - Descriptor descriptor = (Descriptor) getExtensionHelpers().first(); - if(descriptor != null) - return descriptor.getInstance(); - return null; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.jst.j2ee.internal.core.moduleextension.helper.IEJBModelExtenderProvider#hasEJBModuleExtension(java.lang.Object) - */ - public boolean hasEJBModuleExtension(Object context) { - return false; - } - - /** - * @return Returns the extensionHelpers. - */ - protected SortedSet getExtensionHelpers() { - if (extensionHelpers == null) extensionHelpers = new TreeSet(IdentifiableComparator.getInstance()); - return extensionHelpers; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/J2EECorePlugin.java b/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/J2EECorePlugin.java deleted file mode 100644 index 2ecb95761..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/j2eeCorePlugin/org/eclipse/jst/j2ee/core/internal/plugin/J2EECorePlugin.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.core.internal.plugin; -import org.eclipse.core.runtime.Plugin; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jem.util.logger.proxyrender.DefaultPluginTraceRenderer; -import org.eclipse.jst.j2ee.internal.IEJBModelExtenderManager; -import org.osgi.framework.BundleContext; - -/* - * Created on Nov 25, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -/** - * @author vijayb - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class J2EECorePlugin extends Plugin { - public static final String PLUGIN_ID = "org.eclipse.jst.j2ee.core"; //$NON-NLS-1$ - private static J2EECorePlugin inst = null; - protected static Logger logger = null; - /** - * @param descriptor - */ - public J2EECorePlugin() { - super(); - if (inst==null) inst = this; - } - - public void start(BundleContext context) throws Exception { - super.start(context); - IEJBModelExtenderManager.INSTANCE.setProvider(EclipseEJBModelExtenderProvider.getInstance()); - } - - public static J2EECorePlugin getPlugin(){ - return inst; - } - - public static String getPluginID() { - return PLUGIN_ID; - } - - public Logger getMsgLogger() { - if (logger == null) { - logger = Logger.getLogger(getPluginID()); - setRenderer(logger); - } - return logger; - } - - /** - * @param aLogger - */ - protected void setRenderer(Logger aLogger) { - new DefaultPluginTraceRenderer(aLogger); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/model/application.ecore b/plugins/org.eclipse.jst.j2ee.core/model/application.ecore deleted file mode 100644 index 1c9e781bd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/application.ecore +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="application" - nsURI="application.xmi" nsPrefix="org.eclipse.jst.j2ee.application"> - <eClassifiers xsi:type="ecore:EClass" name="Application" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The applicationType defines the structure of the
application."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="version" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 
The required value for the version is 1.4."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="securityRoles" upperBound="-1" - eType="ecore:EClass common.ecore#//SecurityRole" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Contains the definitions of security roles which are
global to the application. "/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="modules" lowerBound="1" - upperBound="-1" eType="#//Module" containment="true" eOpposite="#//Module/application"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The application deployment descriptor must have one
 module element for each J2EE module in the
 application package. A module element is defined
 by moduleType definition."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Module"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The module element represents a single J2EE module and contains an ejb, java, or web element, which indicates the module type and contains a path to the module file, and an optional alt-dd element, which specifies an optional URI to the post-assembly version of the deployment descriptor. The application deployment descriptor must have one module element for each J2EE module in the application package.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="uri" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies the URI of a module, relative to the top level of the application package.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="altDD" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The alt-dd element specifies an optional URI to the post-assembly version of the deployment descriptor file for a particular J2EE module. The URI must specify the full pathname of the deployment descriptor file relative to the application's root directory. If alt-dd is not specified, the deployer must read the deployment descriptor from the default location and file name required by the respective component specification.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="application" eType="#//Application" - transient="true" eOpposite="#//Application/modules"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WebModule" eSuperTypes="#//Module"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Contains the web-uri and context-root of a web application module.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="contextRoot" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The context-root element specifies the context root of a web application
"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="JavaClientModule" eSuperTypes="#//Module"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="specifies the URI of a java application client module, relative to the top level of the application package.
"/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EjbModule" eSuperTypes="#//Module"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies the URI of a ejb-jar, relative to the top level of the application package.
"/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ConnectorModule" eSuperTypes="#//Module"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies the URI of a resource adapter archive file, relative to the top level of the application package."/> - </eAnnotations> - </eClassifiers> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/client.ecore b/plugins/org.eclipse.jst.j2ee.core/model/client.ecore deleted file mode 100644 index fc5cc858b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/client.ecore +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="client" - nsURI="client.xmi" nsPrefix="org.eclipse.jst.j2ee.client"> - <eClassifiers xsi:type="ecore:EClass" name="ApplicationClient" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The application-client element is the root element of an application client deployment descriptor. The application client deployment descriptor describes the EJB components and external resources referenced by the application client.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="version" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The required value for the version is 1.4."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="resourceRefs" upperBound="-1" - eType="ecore:EClass common.ecore#//ResourceRef" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Contains declarations of the application clients's references to an external resources."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="environmentProps" upperBound="-1" - eType="ecore:EClass common.ecore#//EnvEntry" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The env-entry element contains the declaration of an application client's environment entries. Each declaration consists of an optional description, the name of the environment entry, and an optional value."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="ejbReferences" upperBound="-1" - eType="ecore:EClass common.ecore#//EjbRef" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Contains a list of ejb-ref elements used for the declaration of a reference to an enterprise
bean's home. "/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="resourceEnvRefs" upperBound="-1" - eType="ecore:EClass common.ecore#//ResourceEnvRef" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The resource-env-ref element contains a declaration of an application client's reference to an administered object associated with a resource in the application client's environment. It consists of an optional
description, the resource environment reference name, and an indication of the resource environment reference type expected by the application client code.

Used in: application-client

Example:

<resource-env-ref>
 <resource-env-ref-name>jms/StockQueue</resource-env-ref-name>
 <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="callbackHandler" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="A class provided by the application. The class must have a no args constructor and must implement the javax.security.auth.callback.CallbackHandler interface. The class will be instantiated by the application client container and used by the container to collect authentication information from the user."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="serviceRefs" upperBound="-1" - eType="ecore:EClass wsclient.ecore#//ServiceRef" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="messageDestinationRefs" - upperBound="-1" eType="ecore:EClass common.ecore#//MessageDestinationRef" - containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The message-destination-ref-name element specifies the
 name of a message destination reference; its value is
 the message destination reference name used in the
 application client code. The name is a JNDI name
 relative to the java:comp/env context and must be unique
 within an application client."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="messageDestinations" upperBound="-1" - eType="ecore:EClass common.ecore#//MessageDestination" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="ResAuthApplicationType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Application=0
Container=1"/> - </eAnnotations> - <eLiterals name="Application"/> - <eLiterals name="Container" value="1"/> - </eClassifiers> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/common.ecore b/plugins/org.eclipse.jst.j2ee.core/model/common.ecore deleted file mode 100644 index 4cb2a04fd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/common.ecore +++ /dev/null @@ -1,408 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="common" - nsURI="common.xmi" nsPrefix="org.eclipse.jst.j2ee.common"> - <eClassifiers xsi:type="ecore:EClass" name="EjbRef"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The ejb-refType is used by ejb-ref elements for the
declaration of a reference to an enterprise bean's home. The
declaration consists of:

 - an optional description
 - the EJB reference name used in the code of
 the Deployment Component that's referencing the enterprise
 bean
 - the expected type of the referenced enterprise bean
 - the expected home and remote interfaces of the referenced
 enterprise bean
 - optional ejb-link information, used to specify the
 referenced enterprise bean"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The ejb-ref-name element contains the name of an EJB reference. This is the JNDI name that the servlet code uses to get a reference to the enterprise bean.
Example: <ejb-ref-name>ejb/Payroll</ejb-ref-name>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//EjbRefType" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The ejb-ref-type element contains the expected type of the referenced enterprise bean. The ejb-ref-type element must be one of the following:
<ejb-ref-type>Entity</ejb-ref-type>
<ejb-ref-type>Session</ejb-ref-type>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="home" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The home element contains the fully-qualified name of the enterprise bean’s home interface.
Example: <home>com.aardvark.payroll.PayrollHome</home>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="remote" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The remote element contains the fully-qualified name of the enterprise bean’s remote interface."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="link" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The ejb-link element is used in the ejb-ref element to specify that an EJB reference is linked to an enterprise bean in the encompassing J2EE Application package. The value of the ejb-link element must be the ejb-name of an enterprise bean in the same J2EE Application package. 
Example: <ejb-link>EmployeeRecord</ejb-link>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EnvEntry"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The env-entryType is used to declare an application's
environment entry. The declaration consists of an optional
description, the name of the environment entry, and an
optional value. If a value is not specified, one must be
supplied during deployment.

It is used by env-entry elements."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The env-entry-name element contains the name of a
 Deployment Component's environment entry. The name
 is a JNDI name relative to the java:comp/env
 context. The name must be unique within a
 Deployment Component. The uniqueness
 constraints must be defined within the declared
 context.

 Example:

 <env-entry-name>minAmount</env-entry-name>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The env-entry-value designates the value of a
 Deployment Component's environment entry. The value
 must be a String that is valid for the
 constructor of the specified type that takes a
 single String parameter, or for java.lang.Character,
 a single character.

 Example:

 <env-entry-value>100.00</env-entry-value>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//EnvEntryType" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The env-entry-type element contains the fully-qualified Java type of the environment entry value that is expected by the application client’s code. The following are the legal values of env-entry-type: java.lang.Bool-ean, java.lang.String, java.lang.Integer, java.lang.Double, java.lang.Byte, java.lang.Short, java.lang.Long, and java.lang.Float. 
Example: <env-entry-type>java.lang.Boolean</env-entry-type>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ResourceRef"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The resource-refType contains a declaration of a
Deployment Component's reference to an external resource. It
consists of an optional description, the resource manager
connection factory reference name, the indication of the
resource manager connection factory type expected by the
Deployment Component code, the type of authentication
(Application or Container), and an optional specification of
the shareability of connections obtained from the resource
(Shareable or Unshareable).

Example:

<resource-ref>
 <res-ref-name>jdbc/EmployeeAppDB</res-ref-name>
 <res-type>javax.sql.DataSource</res-type>
 <res-auth>Container</res-auth>
 <res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The res-ref-name element specifies the name of a
 resource manager connection factory reference.
 The name is a JNDI name relative to the
 java:comp/env context.
 The name must be unique within a Deployment File."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The res-type element specifies the type of the data
 source. The type is specified by the fully qualified
 Java language class or interface
 expected to be implemented by the data source."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="auth" eType="#//ResAuthTypeBase" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The res-auth element specifies whether the enterprise bean code signs on programmatically to the resource manager, or whether the Container will sign on to the resource manager on behalf of the bean. In the latter case, the Container uses information that is supplied by the Deployer. The value of this element must be one of the two following:
<res-auth>Application</res-auth>
<res-auth>Container</res-auth>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="link" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="resSharingScope" eType="#//ResSharingScopeType" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The res-sharing-scope element specifies whether connections obtained
through the given resource manager connection factory reference can be
shared. The value of this element, if specified, must be one of the
two following: Shareable, Unshareable

The default value is Shareable.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="EnvEntryType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.3 added Character
String=0
Integer=1
Boolean=2
Double=3
Byte=4
Short=5
Long=6
Float=7
Character=8"/> - </eAnnotations> - <eLiterals name="String"/> - <eLiterals name="Integer" value="1"/> - <eLiterals name="Boolean" value="2"/> - <eLiterals name="Double" value="3"/> - <eLiterals name="Byte" value="4"/> - <eLiterals name="Short" value="5"/> - <eLiterals name="Long" value="6"/> - <eLiterals name="Float" value="7"/> - <eLiterals name="Character" value="8"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="SecurityRoleRef"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The security-role-refType contains the declaration of a
security role reference in a component's or a
Deployment Component's code. The declaration consists of an
optional description, the security role name used in the
code, and an optional link to a security role. If the
security role is not specified, the Deployer must choose an
appropriate security role."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The value of the role-name element must be the String used
 as the parameter to the
 EJBContext.isCallerInRole(String roleName) method or the
 HttpServletRequest.isUserInRole(String role) method."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="link" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The role-link element is a reference to a defined
 security role. The role-link element must contain
 the name of one of the security roles defined in the
 security-role elements.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="ResAuthTypeBase"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="CONTAINER=0
Container=1
Application=2
SERVLET=3
"/> - </eAnnotations> - <eLiterals name="Container"/> - <eLiterals name="Application" value="1"/> - <eLiterals name="SERVLET" value="2"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="EjbRefType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Session=0
Entity=1"/> - </eAnnotations> - <eLiterals name="Session"/> - <eLiterals name="Entity" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="SecurityRole"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The security-roleType contains the definition of a security
role. The definition consists of an optional description of the
security role, and the security role name.

Example:

 <security-role>
 <description>
 This role includes all employees who are authorized
 to access the employee service application.
 </description>
 <role-name>employee</role-name>
 </security-role>"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated See descriptions"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="roleName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The role-name element contains the name of a role. This element must contain a non-empty string.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ResourceEnvRef"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The resource-env-refType is used to define
resource-env-type elements. It contains a declaration of a
Deployment Component's reference to an administered object
associated with a resource in the Deployment Component's
environment. It consists of an optional description, the
resource environment reference name, and an indication of
the resource environment reference type expected by the
Deployment Component code.

Example:

<resource-env-ref>
 <resource-env-ref-name>jms/StockQueue
 </resource-env-ref-name>
 <resource-env-ref-type>javax.jms.Queue
 </resource-env-ref-type>
</resource-env-ref>"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description is used by the ejb-jar file producer to provide text describing the resource env ref.

The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The resource-env-ref-name element specifies the name
 of a resource environment reference; its value is
 the environment entry name used in
 the Deployment Component code. The name is a JNDI
 name relative to the java:comp/env context and must
 be unique within a Deployment Component."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="type" lowerBound="1" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The resource-env-ref-type element specifies the type
 of a resource environment reference. It is the
 fully qualified name of a Java language class or
 interface."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="ResSharingScopeType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Shareable=0
Unshareable=1"/> - </eAnnotations> - <eLiterals name="Shareable"/> - <eLiterals name="Unshareable" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EJBLocalRef" eSuperTypes="#//EjbRef"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.3
The ejb-local-refType is used by ejb-local-ref elements for
the declaration of a reference to an enterprise bean's local
home. The declaration consists of:

 - an optional description
 - the EJB reference name used in the code of the Deployment
 Component that's referencing the enterprise bean
 - the expected type of the referenced enterprise bean
 - the expected local home and local interfaces of the
 referenced enterprise bean
 - optional ejb-link information, used to specify the
 referenced enterprise bean"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="localHome" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="local" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="RunAsSpecifiedIdentity" eSuperTypes="#//SecurityIdentity"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It contains an optional description and a specification of the security identity to be used.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="identity" eType="#//Identity" - containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Optional specifies the run-as identity to be used for the execution of the methods of an enterprise bean. It contains an optional description, and the name of a security role."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Identity"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies the run-as identity to be used for the execution of the methods of an enterprise bean. It contains an optional description, and the name of a security role.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description is used by the ejb-jar file producer to provide text describing the run as identity.

The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="roleName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The role-name element contains the name of a security role.

The name must conform to the lexical rules for an NMTOKEN."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="IconType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The icon type contains small-icon and large-icon elements
that specify the file names for small and large GIF or
JPEG icon images used to represent the parent element in a
GUI tool.

The xml:lang attribute defines the language that the
icon file names are provided in. Its value is "en" (English)
by default."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="smallIcon" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The small-icon element contains the name of a file
 containing a small (16 x 16) icon image. The file
 name is a relative path within the Deployment
 Component's Deployment File.

 The image may be either in the JPEG or GIF format.
 The icon can be used by tools.

 Example:

 <small-icon>employee-service-icon16x16.jpg</small-icon>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="largeIcon" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The large-icon element contains the name of a file
 containing a large
 (32 x 32) icon image. The file name is a relative
 path within the Deployment Component's Deployment
 File.

 The image may be either in the JPEG or GIF format.
 The icon can be used by tools.

 Example:

 <large-icon>employee-service-icon32x32.jpg</large-icon>
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="lang" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="DisplayName"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The display-name type contains a short name that is intended
to be displayed by tools. It is used by display-name
elements. The display name need not be unique.

Example:

...
 <display-name xml:lang="en">Employee Self Service</display-name>

The value of the xml:lang attribute is "en" (English) by default."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="lang" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MessageDestinationRef"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The message-destination-ref element contains a declaration
of Deployment Component's reference to a message destination
associated with a resource in Deployment Component's
environment. It consists of:

 - an optional description
 - the message destination reference name
 - the message destination type
 - a specification as to whether the
 destination is used for
 consuming or producing messages, or both
 - a link to the message destination

Examples:

<message-destination-ref>
 <message-destination-ref-name>jms/StockQueue
 </message-destination-ref-name>
 <message-destination-type>javax.jms.Queue
 </message-destination-type>
 <message-destination-usage>Consumes
 </message-destination-usage>
 <message-destination-link>CorporateStocks
 </message-destination-link>
</message-destination-ref>"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="usage" eType="#//MessageDestinationUsageType"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="link" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MessageDestination" eSuperTypes="#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The message-destinationType specifies a message
destination. The logical destination described by this
element is mapped to a physical destination by the Deployer.

The message destination element contains:

 - an optional description
 - an optional display-name
 - an optional icon
 - a message destination name which must be unique
 among message destination names within the same
 Deployment File.

Example:

<message-destination>
 <message-destination-name>CorporateStocks
 </message-destination-name>
</message-destination>"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The message-destination-name element specifies a
 name for a message destination. This name must be
 unique among the names of message destinations
 within the Deployment File."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ParamValue"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
This type is a general type that can be used to declare
parameter/value lists."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The param-name element contains the name of a parameter."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The param-value element contains the value of a parameter."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="DescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
This group keeps the usage of the contained description related
elements consistent across J2EE deployment descriptors."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="icons" upperBound="-1" - eType="#//IconType" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="displayNames" upperBound="-1" - eType="#//DisplayName" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="JNDIEnvRefsGroup" abstract="true" eSuperTypes="#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
This group keeps the usage of the contained JNDI environment
reference elements consistent across J2EE deployment descriptors."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="environmentProperties" - upperBound="-1" eType="#//EnvEntry" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="resourceRefs" upperBound="-1" - eType="#//ResourceRef" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="ejbRefs" upperBound="-1" - eType="#//EjbRef" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="resourceEnvRefs" upperBound="-1" - eType="#//ResourceEnvRef" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="A list of enterprise bean references to an administered object associated with a resource in the enterprise bean's environment. It consists of an optional description, the resource environment reference name, and an indication of the resource environment reference type expected by the enterprise bean code.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="ejbLocalRefs" upperBound="-1" - eType="#//EJBLocalRef" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="messageDestinationRefs" - upperBound="-1" eType="#//MessageDestinationRef" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="serviceRefs" upperBound="-1" - eType="ecore:EClass wsclient.ecore#//ServiceRef" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="SecurityIdentity"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It
contains an optional description and a specification of the security identity to be used.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="UseCallerIdentity" eSuperTypes="#//SecurityIdentity"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The use-caller-identity element specifies that the caller's security identity be used as the security identity for the execution of the enterprise bean's methods.
"/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Description"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The description type is used by a description element to
provide text describing the parent element. The elements
that use this type should include any information that the
Deployment Component's Deployment File file producer wants
to provide to the consumer of the Deployment Component's
Deployment File (i.e., to the Deployer). Typically, the
tools used by such a Deployment File consumer will display
the description when processing the parent element that
contains the description.

The lang attribute defines the language that the
description is provided in. The default value is "en" (English)."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="lang" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="MessageDestinationUsageType"> - <eLiterals name="Consumes"/> - <eLiterals name="Produces" value="1"/> - <eLiterals name="ConsumesProduces" value="2"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="QName"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="namespaceURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="localPart" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="combinedQName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="internalPrefixOrNsURI" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Listener" eSuperTypes="#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 moved from webapp

Declares a class in the application must be registered as a web application listener bean."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="listenerClass" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The listener-class element declares a class in the application must be registered as a web application listener bean."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="CompatibilityDescriptionGroup" eSuperTypes="#//DescriptionGroup"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="smallIcon" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="largeIcon" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="displayName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/commonArchive.genmodel b/plugins/org.eclipse.jst.j2ee.core/model/commonArchive.genmodel deleted file mode 100644 index 7ee553d8d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/commonArchive.genmodel +++ /dev/null @@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<genmodel:GenModel xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" - xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.jst.j2ee.core/commonArchive" - editDirectory="/org.eclipse.jst.j2ee.core.edit/src" editorDirectory="/org.eclipse.jst.j2ee.core.editor/src" - modelPluginID="org.eclipse.jst.j2ee.core" modelName="CommonArchive" editPluginClass="org.eclipse.j2ee.commonarchivecore.provider.CommonArchiveEditPlugin" - editorPluginClass="org.eclipse.j2ee.commonarchivecore.presentation.CommonArchiveEditorPlugin" - importerID="org.eclipse.emf.importer.rose" usedGenPackages="../../org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore j2ee.genmodel#//wsclient j2ee.genmodel#//common j2ee.genmodel#//webapplication j2ee.genmodel#//ejb j2ee.genmodel#//jsp j2ee.genmodel#//application j2ee.genmodel#//client j2ee.genmodel#//jca ../../org.eclipse.jem/model/javaModel.genmodel#//java"> - <foreignModel>..\rose\commonArchive.mdl</foreignModel> - <foreignModel>WORKSPACE_ROOT</foreignModel> - <foreignModel>../..</foreignModel> - <genPackages prefix="Commonarchive" basePackage="org.eclipse.jst.j2ee" interfacePackageSuffix="internal" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="commonarchivecore.ecore#/"> - <genClasses ecoreClass="commonarchivecore.ecore#//File"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute commonarchivecore.ecore#//File/URI"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute commonarchivecore.ecore#//File/lastModified"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute commonarchivecore.ecore#//File/size"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute commonarchivecore.ecore#//File/directoryEntry"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute commonarchivecore.ecore#//File/originalURI"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//File/loadingContainer"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//File/container"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//Archive"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute commonarchivecore.ecore#//Archive/types"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//EJBJarFile"> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//EJBJarFile/deploymentDescriptor"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//WARFile"> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//WARFile/deploymentDescriptor"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//EARFile"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference commonarchivecore.ecore#//EARFile/moduleRefs"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//EARFile/deploymentDescriptor"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//ApplicationClientFile"> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//ApplicationClientFile/deploymentDescriptor"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//ModuleFile"/> - <genClasses ecoreClass="commonarchivecore.ecore#//Container"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference commonarchivecore.ecore#//Container/files"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//ReadOnlyDirectory"/> - <genClasses ecoreClass="commonarchivecore.ecore#//RARFile"> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//RARFile/deploymentDescriptor"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//ModuleRef"> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//ModuleRef/moduleFile"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//ModuleRef/earFile"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//ModuleRef/module"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//EJBModuleRef"/> - <genClasses ecoreClass="commonarchivecore.ecore#//WebModuleRef"/> - <genClasses ecoreClass="commonarchivecore.ecore#//ClientModuleRef"/> - <genClasses ecoreClass="commonarchivecore.ecore#//ConnectorModuleRef"/> - <nestedGenPackages prefix="Looseconfig" basePackage="org.eclipse.jst.j2ee.commonarchivecore" - interfacePackageSuffix="internal" classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" - ecorePackage="commonarchivecore.ecore#//looseconfig"> - <genClasses ecoreClass="commonarchivecore.ecore#//looseconfig/LooseApplication"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference commonarchivecore.ecore#//looseconfig/LooseApplication/looseArchives"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//looseconfig/LooseArchive"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute commonarchivecore.ecore#//looseconfig/LooseArchive/uri"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute commonarchivecore.ecore#//looseconfig/LooseArchive/binariesPath"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute commonarchivecore.ecore#//looseconfig/LooseArchive/resourcesPath"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//looseconfig/LooseArchive/looseApp"/> - <genOperations ecoreOperation="commonarchivecore.ecore#//looseconfig/LooseArchive/isModule"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//looseconfig/LooseLibrary"> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference commonarchivecore.ecore#//looseconfig/LooseLibrary/looseWAR"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//looseconfig/LooseModule"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute commonarchivecore.ecore#//looseconfig/LooseModule/altDD"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//looseconfig/LooseConfiguration"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference commonarchivecore.ecore#//looseconfig/LooseConfiguration/applications"/> - </genClasses> - <genClasses ecoreClass="commonarchivecore.ecore#//looseconfig/LooseWARFile"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference commonarchivecore.ecore#//looseconfig/LooseWARFile/looseLibs"/> - </genClasses> - </nestedGenPackages> - </genPackages> -</genmodel:GenModel> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/commonarchivecore.ecore b/plugins/org.eclipse.jst.j2ee.core/model/commonarchivecore.ecore deleted file mode 100644 index b3db8e851..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/commonarchivecore.ecore +++ /dev/null @@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="commonarchivecore" - nsURI="commonarchive.xmi" nsPrefix="org.eclipse.jst.j2ee.commonarchivecore"> - <eClassifiers xsi:type="ecore:EClass" name="File"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="URI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="lastModified" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="size" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="directoryEntry" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="originalURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="loadingContainer" lowerBound="1" - eType="#//Container"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="container" eType="#//Container" - transient="true" eOpposite="#//Container/files"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Archive" eSuperTypes="#//Container"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="types" upperBound="-1" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EJBJarFile" eSuperTypes="#//ModuleFile"> - <eStructuralFeatures xsi:type="ecore:EReference" name="deploymentDescriptor" lowerBound="1" - eType="ecore:EClass ejb.ecore#//EJBJar"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WARFile" eSuperTypes="#//ModuleFile"> - <eStructuralFeatures xsi:type="ecore:EReference" name="deploymentDescriptor" lowerBound="1" - eType="ecore:EClass webapplication.ecore#//WebApp"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EARFile" eSuperTypes="#//ModuleFile"> - <eStructuralFeatures xsi:type="ecore:EReference" name="moduleRefs" lowerBound="1" - upperBound="-1" eType="#//ModuleRef" containment="true" eOpposite="#//ModuleRef/earFile"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="deploymentDescriptor" lowerBound="1" - eType="ecore:EClass application.ecore#//Application"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ApplicationClientFile" eSuperTypes="#//ModuleFile"> - <eStructuralFeatures xsi:type="ecore:EReference" name="deploymentDescriptor" lowerBound="1" - eType="ecore:EClass client.ecore#//ApplicationClient"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ModuleFile" abstract="true" eSuperTypes="#//Archive"/> - <eClassifiers xsi:type="ecore:EClass" name="Container" abstract="true" eSuperTypes="#//File"> - <eStructuralFeatures xsi:type="ecore:EReference" name="files" upperBound="-1" - eType="#//File" containment="true" eOpposite="#//File/container"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ReadOnlyDirectory" eSuperTypes="#//Container"/> - <eClassifiers xsi:type="ecore:EClass" name="RARFile" eSuperTypes="#//ModuleFile"> - <eStructuralFeatures xsi:type="ecore:EReference" name="deploymentDescriptor" lowerBound="1" - eType="ecore:EClass jca.ecore#//Connector"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ModuleRef" abstract="true"> - <eStructuralFeatures xsi:type="ecore:EReference" name="moduleFile" lowerBound="1" - eType="#//ModuleFile"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="earFile" lowerBound="1" - eType="#//EARFile" transient="true" eOpposite="#//EARFile/moduleRefs"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="module" lowerBound="1" - eType="ecore:EClass application.ecore#//Module"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EJBModuleRef" eSuperTypes="#//ModuleRef"/> - <eClassifiers xsi:type="ecore:EClass" name="WebModuleRef" eSuperTypes="#//ModuleRef"/> - <eClassifiers xsi:type="ecore:EClass" name="ClientModuleRef" eSuperTypes="#//ModuleRef"/> - <eClassifiers xsi:type="ecore:EClass" name="ConnectorModuleRef" eSuperTypes="#//ModuleRef"/> - <eSubpackages name="looseconfig" nsURI="commonarchive.looseconfig.xmi" nsPrefix="org.eclipse.jst.j2ee.commonarchivecore.looseconfig"> - <eClassifiers xsi:type="ecore:EClass" name="LooseApplication" eSuperTypes="#//looseconfig/LooseArchive"> - <eStructuralFeatures xsi:type="ecore:EReference" name="looseArchives" upperBound="-1" - eType="#//looseconfig/LooseArchive" containment="true" eOpposite="#//looseconfig/LooseArchive/looseApp"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="LooseArchive" abstract="true"> - <eOperations name="isModule" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="uri" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="binariesPath" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="resourcesPath" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="looseApp" eType="#//looseconfig/LooseApplication" - transient="true" eOpposite="#//looseconfig/LooseApplication/looseArchives"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="LooseLibrary" eSuperTypes="#//looseconfig/LooseArchive"> - <eStructuralFeatures xsi:type="ecore:EReference" name="looseWAR" eType="#//looseconfig/LooseWARFile" - transient="true" eOpposite="#//looseconfig/LooseWARFile/looseLibs"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="LooseModule" eSuperTypes="#//looseconfig/LooseArchive"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="altDD" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="LooseConfiguration"> - <eStructuralFeatures xsi:type="ecore:EReference" name="applications" upperBound="-1" - eType="#//looseconfig/LooseApplication" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="LooseWARFile" eSuperTypes="#//looseconfig/LooseModule"> - <eStructuralFeatures xsi:type="ecore:EReference" name="looseLibs" upperBound="-1" - eType="#//looseconfig/LooseLibrary" containment="true" eOpposite="#//looseconfig/LooseLibrary/looseWAR"/> - </eClassifiers> - </eSubpackages> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/ejb.ecore b/plugins/org.eclipse.jst.j2ee.core/model/ejb.ecore deleted file mode 100644 index bc21e0e75..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/ejb.ecore +++ /dev/null @@ -1,586 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="ejb" - nsURI="ejb.xmi" nsPrefix="org.eclipse.jst.j2ee.ejb"> - <eClassifiers xsi:type="ecore:EClass" name="ContainerManagedEntity" eSuperTypes="#//Entity"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="version" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" - defaultValueLiteral="2.x"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies the version of an entity bean with container-managed persistence.

@invariant The cmp-version element must be one of the two following: 1.x , 2.x
@default 2.x
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="abstractSchemaName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The abstract-schema-name element specifies the name of the abstract schema type of an entity bean with cmp-version 2.x. It is used in EJB QL queries.

For example, the abstract-schema-name for an entity bean whose local interface is com.acme.commerce.Order might be Order.

"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="persistentAttributes" upperBound="-1" - eType="#//CMPAttribute" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="keyAttributes" upperBound="-1" - eType="#//CMPAttribute"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="queries" upperBound="-1" - eType="#//Query" containment="true" eOpposite="#//Query/entity"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 moved from CME
The optional query elements must be present if the persistence-type is Container and the cmp-version is 2.x and query methods other than findByPrimaryKey have been defined for the entity bean.

@invariant see description
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="CMPAttribute" upperBound="-1" - eType="#//CMPAttribute"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="primKeyField" eType="#//CMPAttribute"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MethodPermission"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The method-permission element specifies that one or more security roles are allowed to invoke one or more enterprise bean methods. The method-permission element consists of an optional description, a list of security role names, and a list of method elements. The security roles used in the method-permission element must be defined in the security-role element of the deployment descriptor, and the methods must be methods defined in the enterprise bean's remote and/or home interfaces."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="unchecked" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="assemblyDescriptor" lowerBound="1" - eType="#//AssemblyDescriptor" transient="true" eOpposite="#//AssemblyDescriptor/methodPermissions"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="roles" lowerBound="1" upperBound="-1" - eType="ecore:EClass common.ecore#//SecurityRole"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="methodElements" lowerBound="1" - upperBound="-1" eType="#//MethodElement" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="AssemblyDescriptor"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The assembly-descriptor element contains application-assembly information. The application-assembly information consists of the following parts: the definition of security roles, the definition of method permissions, and the definition of transaction attributes for enterprise beans with container-managed transaction demarcation. All the parts are optional in the sense that they are omitted if the lists represented by them are empty. Providing an assembly-descriptor in the deployment descriptor is optional for the ejb-jar file producer."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="methodPermissions" upperBound="-1" - eType="#//MethodPermission" containment="true" eOpposite="#//MethodPermission/assemblyDescriptor"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="methodTransactions" upperBound="-1" - eType="#//MethodTransaction" containment="true" eOpposite="#//MethodTransaction/assemblyDescriptor"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies how the container must manage transaction scopes for the enterprise bean's method invocations. The element consists of an optional description, a list of method elements, and a transaction attribute.The transaction attribute is to be applied to all the specified methods."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="ejbJar" eType="#//EJBJar" - transient="true" eOpposite="#//EJBJar/assemblyDescriptor"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="securityRoles" upperBound="-1" - eType="ecore:EClass common.ecore#//SecurityRole" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="excludeList" eType="#//ExcludeList" - containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="messageDestinations" upperBound="-1" - eType="ecore:EClass common.ecore#//MessageDestination" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MethodTransaction"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies how the container must manage transaction scopes for the enterprise bean's method invocations. It consists of an optional description, a list of method elements, and a transaction attribute.The transaction attribute is to be applied to all the specified methods."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="transactionAttribute" eType="#//TransactionAttributeType" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The trans-attribute element specifies how the container must manage the transaction boundaries when delegating a method invocation to an enterprise bean's business method.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="assemblyDescriptor" lowerBound="1" - eType="#//AssemblyDescriptor" transient="true" eOpposite="#//AssemblyDescriptor/methodTransactions"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="methodElements" lowerBound="1" - upperBound="-1" eType="#//MethodElement" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Session" eSuperTypes="#//EnterpriseBean"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The session-beanType declares an session bean. The
declaration consists of:

 - an optional description
 - an optional display name
 - an optional icon element that contains a small and a large
 icon file name
 - a name assigned to the enterprise bean
 in the deployment description
 - the names of the session bean's remote home and
 remote interfaces, if any
 - the names of the session bean's local home and
 local interfaces, if any
 - the name of the session bean's web service endpoint
 interface, if any
 - the session bean's implementation class
 - the session bean's state management type
 - the session bean's transaction management type
 - an optional declaration of the bean's
 environment entries
 - an optional declaration of the bean's EJB references
 - an optional declaration of the bean's local
 EJB references
 - an optional declaration of the bean's web
 service references
 - an optional declaration of the security role
 references
 - an optional declaration of the security identity
 to be used for the execution of the bean's methods
 - an optional declaration of the bean's resource
 manager connection factory references
 - an optional declaration of the bean's resource
 environment references.
 - an optional declaration of the bean's message
 destination references

The elements that are optional are "optional" in the sense
that they are omitted when if lists represented by them are
empty.

Either both the local-home and the local elements or both
the home and the remote elements must be specified for the
session bean.

The service-endpoint element may only be specified if the
bean is a stateless session bean."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="transactionType" eType="#//TransactionType" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The transaction-type element specifies an enterprise bean's transaction management type.

"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="sessionType" eType="#//SessionType" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="serviceEndpoint" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The service-endpoint element contains the
 fully-qualified name of the enterprise bean's web
 service endpoint interface. The service-endpoint
 element may only be specified for a stateless
 session bean. The specified interface must be a
 valid JAX-RPC service endpoint interface."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Entity" eSuperTypes="#//EnterpriseBean"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The entity element declares an entity bean. The declaration consists of: an optional description; optional display name; optional small icon file name; optional large icon file name; a unique name assigned to the enterprise bean in the deployment descriptor; the names of the entity bean’s home and remote interfaces, if any; the names of the entity bean’s local home and local interface, if any; the entity bean’s implementation class; the entity bean’s persistence management type; the entity bean’s primary key class name; an indication of the entity bean’s reentrancy; an optional specification of the entity bean’s cmp-version; an optional specification of the entity bean’s abstract schema name; an optional list of container-managed fields; an optional specification of the primary key field; an optional declaration of the bean’s environment entries; an optional declaration of the bean’s EJB references; an optional declaration of the bean’s local EJB references; an optional declaration of the security role references; an optional declaration of the security identity to be used for the execution of the bean’s methods; an optional declaration of the bean’s resource manager connection factory references; an optional declaration of the bean’s resource environment references; an optional set of query declarations for finder and select methods for an entity bean with cmp-version 2.x.
The optional abstract-schema-name element must be specified for an entity bean with container managed persistence and cmp-version 2.x. The optional primkey-field may be present in the descriptor if the entity’s persistence-type is Container. The optional cmp-version element may be present in the descriptor if the entity’s persistence-type is Container. If the persistence-type is Container and the cmp-version element is not specified, its value defaults to 2.x.
The optional home and remote elements must be specified if the entity bean cmp-version is 1.x.
The optional local-home and local elements must be specified if the entity bean has a local home and local interface.
The optional query elements must be present if the persistence-type is Container and the cmp-version is 2.x and query methods other than findByPrimaryKey have been defined for the entity bean.
The other elements that are optional are "optional" in the sense that they are omitted if the lists represented by them are empty. At least one cmp-field element must be present in the descriptor if
the entity’s persistence-type is Container and the cmp-version is 1.x, and none must not be present if the entity’s persistence-type is Bean."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="reentrant" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The reentrant element specifies whether an entity bean is reentrant or not.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="primaryKey" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The primkey-field element is used to specify the name of the primary key field for an entity with container-managed persistence. The primkey-field must be one of the fields declared in the cmp-field
element, and the type of the field must be the same as the primary key type. The primkey-field element is not used if the primary key maps to multiple container-managed fields (i.e. the key is a compound key). In this case, the fields of the primary key class must be public, and their names must correspond to the field names of the entity bean class that comprise the key.
Examples:<prim-key-class>java.lang.String</prim-key-class>
	<prim-key-class>com.wombat.empl.EmployeeID</prim-key-class>
	<prim-key-class>java.lang.Object</prim-key-class>
"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EnterpriseBean" abstract="true" eSuperTypes="common.ecore#//JNDIEnvRefsGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="EnterpriseJavaBean is a class. It can have instances, someone could write an 
instance document containing Departments and Employees. It also has 
attributes, operations, and associations. These are actually derived/filtered 
from its implementation classes and interfaces. For mapping and browsing 
purposes, though, you would like the EJB to appear as a class. 

In this light, even Session Beans can have associations and properties 
implemented by their bean. For example, it would be meaningful to describe 
associations from a Session to the Entities which it uses to perform its work.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="securityRoleRefs" upperBound="-1" - eType="ecore:EClass common.ecore#//SecurityRoleRef" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="ejbClass" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="homeInterface" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="remoteInterface" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="ejbJar" lowerBound="1" - eType="#//EJBJar" transient="true" eOpposite="#//EJBJar/enterpriseBeans"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="securityIdentity" eType="ecore:EClass common.ecore#//SecurityIdentity" - containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It
contains an optional description and a specification of the security identity to be used."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="localHomeInterface" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="localInterface" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="TransactionAttributeType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="NotSupported=1
Supports=2
Required=3
RequiresNew=4
Mandatory=5
Never=6
"/> - </eAnnotations> - <eLiterals name="NotSupported"/> - <eLiterals name="Supports" value="1"/> - <eLiterals name="Required" value="2"/> - <eLiterals name="RequiresNew" value="3"/> - <eLiterals name="Mandatory" value="4"/> - <eLiterals name="Never" value="5"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="TransactionType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Bean=1
Container=2"/> - </eAnnotations> - <eLiterals name="Bean"/> - <eLiterals name="Container" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="SessionType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Stateful=1
Stateless=2"/> - </eAnnotations> - <eLiterals name="Stateful"/> - <eLiterals name="Stateless" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EJBMethodCategory"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The valid EJB method category names are: EJBHOMEMETHOD, EJBCREATEMETHOD, EJBFINDERMETHOD, EJBREMOTEMETHOD."/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EJBJar" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The root element of the EJB deployment descriptor. It contains an optional description of the ejb-jar file; optional display name; optional small icon file name; optional large icon file
name; mandatory structural information about all included enterprise beans; a descriptor for container managed relationships, if any; an optional application-assembly descriptor; and an optional name of an ejb-client-jar file for the ejb-jar."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="ejbClientJar" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The optional ejb-client-jar element specifies a JAR file that contains the class files necessary for a client program to access the enterprise beans in the ejb-jar file. The Deployer should make the ejb-client JAR file accessible to the client's class-loader. Example:<ejb-client-jar>employee_service_client.jar</ejb-client-jar>
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="version" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The version specifies the version of the
 EJB specification that the instance document must
 comply with. This information enables deployment tools
 to validate a particular EJB Deployment
 Descriptor with respect to a specific version of the EJB
 schema."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="assemblyDescriptor" eType="#//AssemblyDescriptor" - containment="true" eOpposite="#//AssemblyDescriptor/ejbJar"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="enterpriseBeans" lowerBound="1" - upperBound="-1" eType="#//EnterpriseBean" containment="true" eOpposite="#//EnterpriseBean/ejbJar"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The enterprise-beans element contains the declarations of one or more enterprise beans."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="relationshipList" eType="#//Relationships" - containment="true" eOpposite="#//Relationships/ejbJar"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The relationships collection describes the relationships in which container managed persistence entity beans and dependent objects participate. The relationships element contains an optional description; a list of ejb-entity-ref elements (references to entity beans that participate in container managed relationships but whose abstract persistence schemas are not included in the ejb-jar file);
and a list of ejb-relation elements, which specify the container managed relationships."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MethodElement"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The method element is used to denote a method of an enterprise bean's
home or remote interface, or a set of methods. The ejb-name element
must be the name of one of the enterprise beans in declared in the
deployment descriptor; the optional method-intf element allows to
distinguish between a method with the same signature that is defined in
both the home and remote interface; the method-name element specifies
the method name; and the optional method-params elements identify a
single method among multiple methods with an overloaded method name.

There are three possible styles of the method element syntax:

1. 	<method>
		<ejb-name>EJBNAME</ejb-name>
 		<method-name>*</method-name>
	</method>

 This style is used to refer to all the methods of the specified
 enterprise bean's home and remote interfaces.

2. 	<method>
		<ejb-name>EJBNAME</ejb-name>
 		<method-name>METHOD</method-name>
	</method>>

 This style is used to refer to the specified method of the
 specified enterprise bean. If there are multiple methods with
 the same overloaded name, the element of this style refers to
 all the methods with the overloaded name.





3. 	<method>
		<ejb-name>EJBNAME</ejb-name>
 		<method-name>METHOD</method-name>
		<method-params>
 			<method-param>PARAM-1</method-param>
 			<method-param>PARAM-2</method-param>
 			...
 			<method-param>PARAM-n</method-param>
		</method-params>
	<method>	

 This style is used to refer to a single method within a set of
 methods with an overloaded name. PARAM-1 through PARAM-n are the
 fully-qualified Java types of the method's input parameters (if
 the method has no input arguments, the method-params element
 contains no method-param elements). Arrays are specified by the
 array element's type, followed by one or more pair of square
 brackets (e.g. int[][]).


Used in: method-permission and container-transaction

Examples:

 Style 1: The following method element refers to all the methods of
		the EmployeeService bean's home and remote interfaces:

		<method>
			<ejb-name>EmployeeService</ejb-name>
			<method-name>*</method-name>
		</method>

	Style 2: The following method element refers to all the create
		methods of the EmployeeService bean's home interface:

 		<method>
			<ejb-name>EmployeeService</ejb-name>
			<method-name>create</method-name>
		</method>

	Style 3: The following method element refers to the
		create(String firstName, String LastName) method of the
	 	EmployeeService bean's home interface.

 		<method>
			<ejb-name>EmployeeService</ejb-name>
			<method-name>create</method-name>
			<method-params>
				<method-param>java.lang.String</method-param>
				<method-param>java.lang.String</method-param>
			</method-params>
		</method>

	
	The following example illustrates a Style 3 element with
	more complex parameter types. The method
			foobar(char s, int i, int[] iar, mypackage.MyClass mycl,
				mypackage.MyClass[][] myclaar)
 would be specified as:

 		<method>
			<ejb-name>EmployeeService</ejb-name>
			<method-name>foobar</method-name>
			<method-params>
				<method-param>char</method-param>
				<method-param>int</method-param>
				<method-param>int[]</method-param>
				<method-param>mypackage.MyClass</method-param>
				<method-param>mypackage.MyClass[][]</method-param>
			</method-params>
		</method>

	The optional method-intf element can be used when it becomes
 necessary to differentiate between a method defined in the home
 interface and a method with the same name and signature that is
 defined in the remote interface.

	For example, the method element

 		<method>
			<ejb-name>EmployeeService</ejb-name>
			<method-intf>Remote</method-intf>
			<method-name>create</method-name>
			<method-params>
				<method-param>java.lang.String</method-param>
				<method-param>java.lang.String</method-param>
			</method-params>
		</method>

	can be used to differentiate the create(String, String) method
 defined in the remote interface from the create(String, String)
 method defined in the home interface, which would be defined as

 		<method>
			<ejb-name>EmployeeService</ejb-name>
			<method-intf>Home</method-intf>
			<method-name>create</method-name>
			<method-params>
				<method-param>java.lang.String</method-param>
				<method-param>java.lang.String</method-param>
			</method-params>
		</method>
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The method-name element contains a name of an enterprise bean method,
or the asterisk (*) character. The asterisk is used when the element
denotes all the methods of an enterprise bean's remote and home
interfaces.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="parms" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The method-params element contains a list of the fully-qualified Java type names of the method parameters. In the current implementation this is a space delimitted String. A null string indicates a generic method element that can apply to multiple methods with the same name. An empty string indicates a method with zero parameters. In future implementations (post V5), this field will be deprecated and migrated to use the multi-valued params field and the isZeroParams flag.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//MethodElementKind" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="enterpriseBean" lowerBound="1" - eType="#//EnterpriseBean"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="MethodElementKind"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 added ServiceEndpoint
Unspecified=0
Remote=1
Home=2
Local=3
LocalHome=4
ServiceEndpoint=5"/> - </eAnnotations> - <eLiterals name="Unspecified"/> - <eLiterals name="Remote" value="1"/> - <eLiterals name="Home" value="2"/> - <eLiterals name="Local" value="3"/> - <eLiterals name="LocalHome" value="4"/> - <eLiterals name="ServiceEndpoint" value="5"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="CMPAttribute" eSuperTypes="../../../plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EAttribute"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Describes a container-managed field. The field element includes an optional description of the field, and the name of the field.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description is used by the ejb-jar file producer to provide text describing the cmr field.

The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Relationships"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The relationships describes the relationships in which entity beans with container managed persistence participate. The relationships element contains an optional description; and a list of ejb-relation elements, which specify the container managed relationships."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description is used by the ejb-jar file producer to provide text describing the collection of relationships.

The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="ejbJar" lowerBound="1" - eType="#//EJBJar" transient="true" eOpposite="#//EJBJar/relationshipList"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="ejbRelations" upperBound="-1" - eType="#//EJBRelation" containment="true" eOpposite="#//EJBRelation/relationshipList"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="A list of ejb-relation elements, which specify the container managed relationships."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Query"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The query element is used to specify a finder or select query. It contains an optional description of the query; the specification of the finder or select method it is used by; a specification of the return type mapping, if any, if the query is for a select method; and the EJB QL query string that defines the query. Queries that are expressible in EJB QL must use the ejb-ql element to specify the query. If a query
is not expressible in EJB QL, the description element should be used to describe the semantics of the query and the ejb-ql element should be empty."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description is used by the ejb-jar file producer to provide text describing the query.

The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="ejbQL" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Contains the EJB QL query string that defines a finder or select query. This element is defined within the scope of a query element whose contents specify the finder or the select method that uses the query. The content must be a valid EJB QL query string for the entity bean for which the query is specified. The ejb-ql element must be specified for all queries that are expressible in EJB QL.

@invariant The value must be a valid EJB QL query string for the entity bean or dependent object class for which the query is specified.
@invariant The ejb-ql element must be specified for all queries that are expressible in EJB QL.

Example:
<query>
<query-method>
<method-name>ejbSelectPendingLineitems</method-name>
<method-params/>
</query-method>
<ejb-ql>SELECT ENTITY(l)
FROM LineItems l
WHERE l.shipped is FALSE
</ejb-ql>
</query>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="returnTypeMapping" eType="#//ReturnTypeMapping" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The return-type-mapping element is used in the query element to specify whether an abstract schema type that is returned by a query for a select method is to be mapped to an EJBLocalObject or EJBObject type. The value of the return-type-mapping element, if specified must be one of the following."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="queryMethod" lowerBound="1" - eType="#//QueryMethod" containment="true" eOpposite="#//QueryMethod/query"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The query-method element is used to specify the method (DB/SR/CM-"on the home") for a finder or
select query.

The method-name element specifies the name of a finder or select
method in the entity bean's implementation class or a select method in
the dependent object class.

Each method-param must be defined for a query-method using the
method-params element.

Used in: query

Example:

Example:
<query>
 <description>Method finds large orders</description>
 <query-method>
 <method-name>findLargeOrders</method-name>
 <method-params></method-params>
 </query-method>
 <ejb-ql>SELECT ENTITY(o) FROM Order o WHERE o.amount &gt; 1000</ejb-ql>
</query>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="entity" eType="#//ContainerManagedEntity" - transient="true" eOpposite="#//ContainerManagedEntity/queries"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EJBRelation"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.3
The ejb-relation element describes a relationship between two entity beans with container managed persistence. An ejb-relation element contains a description; an optional ejb-relation-name element; and exactly two relationship role declarations, defined by the ejb-relationship-roles. The name of the relationship, if specified, is unique within the ejb-jar file.

@invariant The name of the relationship, if specified, is unique within the ejb-jar file.
@invariant self.relationshipRoles.size == 2
@invariant self.relationshipRoles[0].name != self.relationshipRoles[1].name

@migration EJB1.1 Moved from ejbext::EjbRelationshipRole contained under ejbext::EJBJarExtension
@migration EJB1.1 added optional attribute, description:String
@migration EJB1.1 added optional attribute, name:String (May have been inherited from RefBaseObject previously)"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description is used by the ejb-jar file producer to provide text describing the ejb relation.

The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The name of the relationship. If specified, must be unique within the ejb-jar file.
@invariant self.name unique within Set<collect(ejbJar.ejbRelations.name)>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="relationshipList" eType="#//Relationships" - transient="true" eOpposite="#//Relationships/ejbRelations"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="relationshipRoles" lowerBound="2" - upperBound="2" eType="#//EJBRelationshipRole" containment="true" eOpposite="#//EJBRelationshipRole/relationship"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="A collection containing exactly two relationship roles.

@migration EJB1.1 Containment used to be by reference on relation--now by value.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EJBRelationshipRole"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.3
The ejb-relationship-role element describes a role within a relationship.
There are two roles in each relationship. The ejb-relationship-role element contains an optional description; an optional name for the relationship role; a specification of the multiplicity of the role; an optional specification of cascade-delete functionality for the role; the role source; and a declaration of the cmr-field, if any, by means of which the other side of the relationship is accessed from the perspective of the role source. The multiplicity and relationship-role-source element are mandatory. The relationship-role-source element designates an entity-bean by means of an ejb-name element. For bidirectional relationships, both roles of a relationship must declare a relationship-role-source element that specifies a cmr-field in terms of which the relationship is accessed. The lack of a cmr-field element in an ejb-relationship-role specifies that the relationship is unidirectional in navigability and that entity bean that participates in the relationship is "not aware" of the relationship.

@invariant multiplicity != null
@invariant roleSource != null
@invariant Cascade delete can only be specified in an EJBRelationshipRole element in which the roleSource element specifies a dependent object class. 
@invariant Cascade delete can only be specified for an EJBRelationshipRole contained in an EJBrelation in which the other EJBRelationshipRole element specifies a multiplicity of One.

Example:
<ejb-relation>
 <ejb-relation-name>Product-LineItem</ejb-relation-name>
 <ejb-relationship-role>
 <ejb-relationship-role-name>product-has-lineitems</ejb-relationship-role-name>
 <multiplicity>One</multiplicity>
 <relationship-role-source>
 <ejb-name>ProductEJB</ejb-name>
 </relationship-role-source>
 </ejb-relationship-role>
..."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
The description is used by the ejb-jar file producer to provide text describing the ejb relationship role.

The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="roleName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Defines a name for a role that is unique within an ejb-relation. Different relationships can use the same name for a role.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="multiplicity" eType="#//MultiplicityKind" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Describes the multiplicity of the role that participates in a relation.

The multiplicity element must be one of the two following:
 One
 Many
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="cascadeDelete" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies that, within a particular relationship, the lifetime of one or more entity beans is dependent upon the lifetime of another entity bean. The cascade-delete element can Cascade delete can only be specified for an EJBRelationshipRole contained in an EJBrelation in which the other EJBRelationshipRole element specifies a multiplicity of One.


"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="relationship" lowerBound="1" - eType="#//EJBRelation" transient="true" eOpposite="#//EJBRelation/relationshipRoles"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="source" lowerBound="1" - eType="#//RoleSource" containment="true" eOpposite="#//RoleSource/role"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Designates the source of a role that participates in a relationship. A relationship-role-source element uniquely identifies an entity bean.
@migration EJB1.1: was ibmejbext::EjbRelationshipRole::sourceEJBName, but that may not be sufficient, as this can now refer to dependent class names or ejb refs"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="cmrField" lowerBound="1" - eType="#//CMRField" containment="true" eOpposite="#//CMRField/role"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="A declaration of the CMRField, if any, by means of which the other side of the relationship is accessed from the perspective of the role source

@migration EJB1.1: Used to be handled via ibmejbext::EjbRole::attributes list"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="RoleSource"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Designates the source of a role that participates in a relationship. A relationship-role-source element uniquely identifies an entity bean.
@invariant The content of each role-source element shall refer to an existing entity bean, entity bean reference."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="role" lowerBound="1" eType="#//EJBRelationshipRole" - transient="true" eOpposite="#//EJBRelationshipRole/source"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="entityBean" lowerBound="1" - eType="#//ContainerManagedEntity"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="CMRField" eSuperTypes="#//CMPAttribute"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.3
Describes the bean provider's view of a relationship. It consists of an optional description, and the name and the class type of a field in the source of a role of a relationship. The CMRField::name element corresponds to the name used for the get and set accessor methods for the relationship. The CMRField::type element is used only for collection-valued CMRFields. It specifies the type of the collection that is used (a java class name).

"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="role" eType="#//EJBRelationshipRole" - transient="true" eOpposite="#//EJBRelationshipRole/cmrField"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="collectionType" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MessageDriven" eSuperTypes="#//EnterpriseBean"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The message-driven element declares a message-driven
bean. The declaration consists of:

 - an optional description
 - an optional display name
 - an optional icon element that contains a small and a large
 icon file name.
 - a name assigned to the enterprise bean in
 the deployment descriptor
 - the message-driven bean's implementation class
 - an optional declaration of the bean's messaging
 type
 - the message-driven bean's transaction management type
 - an optional declaration of the bean's
 message-destination-type
 - an optional declaration of the bean's
 message-destination-link
 - an optional declaration of the message-driven bean's
 activation configuration properties
 - an optional declaration of the bean's environment
 entries
 - an optional declaration of the bean's EJB references
 - an optional declaration of the bean's local EJB
 references
 - an optional declaration of the bean's web service
 references
 - an optional declaration of the security
 identity to be used for the execution of the bean's
 methods
 - an optional declaration of the bean's
 resource manager connection factory
 references
 - an optional declaration of the bean's resource
 environment references.
 - an optional declaration of the bean's message
 destination references"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="transactionType" eType="#//TransactionType" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The transaction-type element specifies an enterprise bean's transaction management type.

The transaction-type element must be one of the two following: Bean, Container"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="messageSelector" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The message-selector element is used to specify the JMS message
selector to be used in determining which messages a message-driven
bean is to receive.

Example value: 
JMSType = `car' AND color = `blue' AND weight > 2500
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="acknowledgeMode" eType="#//AcknowledgeMode" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="an optional declaration of the acknowledgment mode for the message-driven bean if bean-managed transaction demarcation is used (ie. self.transactionType = Bean)

The acknowledge-mode specifies whether JMS AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE message acknowledgment semantics should be used for the onMessage message of a message-driven bean that uses bean managed transaction demarcation.

The acknowledge-mode must be one of the two following: Auto-acknowledge, Dups-ok-acknowledge
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="link" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value=" - an optional declaration of the bean's
	 message-destination-link
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="destination" eType="#//MessageDrivenDestination" - containment="true" eOpposite="#//MessageDrivenDestination/bean"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes activationConfig
An optional declaration of the intended destination type of the message-driven bean"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="activationConfig" eType="#//ActivationConfig" - containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="messageDestination" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="messagingType" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The messaging-type element specifies the message
 listener interface of the message-driven bean. If
 the messaging-type element is not specified, it is
 assumed to be javax.jms.MessageListener."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MessageDrivenDestination"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The message-driven-destination element provides advice to the Deployer as to whether a message-driven bean is intended for a Queue or a Topic. The declaration consists of: the type of the message-driven bean's intended destination and an optional declaration of whether a durable or non-durable subscription should be used if the destination-type is javax.jms.Topic."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//DestinationType" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The destination-type element specifies the type of the JMS destination. The type is specified by the Java interface expected to be implemented by the destination.

The destination-type element must be one of the two following: javax.jms.Queue, javax.jms.Topic"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="subscriptionDurability" - eType="#//SubscriptionDurabilityKind" unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The subscription-durability element specifies whether a JMS topic subscription is intended to be durable or nondurable.

The subscription-durability element must be one of the two following: Durable, NonDurable
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="bean" lowerBound="1" eType="#//MessageDriven" - transient="true" eOpposite="#//MessageDriven/destination"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="AcknowledgeMode"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Auto-acknowledge=0
Dups-ok-acknowledge=1"/> - </eAnnotations> - <eLiterals name="AutoAcknowledge"/> - <eLiterals name="DupsOkAcknowledge" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="SubscriptionDurabilityKind"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Durable=0
NonDurable=1"/> - </eAnnotations> - <eLiterals name="Durable"/> - <eLiterals name="NonDurable" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="ReturnTypeMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Local=0
Remote=1"/> - </eAnnotations> - <eLiterals name="Local"/> - <eLiterals name="Remote" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ExcludeList"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The exclude list element defines a set of methods which the Assembler marks to be uncallable. It contains one or more methods.

If the method permission relation contains methods that are in the exclude list, the Deployer must consider those methods to be uncallable.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="methodElements" lowerBound="1" - upperBound="-1" eType="#//MethodElement" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="DestinationType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Queue=0
Topic=1"/> - </eAnnotations> - <eLiterals name="Queue"/> - <eLiterals name="Topic" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="QueryMethod" eSuperTypes="#//MethodElement"> - <eStructuralFeatures xsi:type="ecore:EReference" name="query" lowerBound="1" eType="#//Query" - transient="true" eOpposite="#//Query/queryMethod"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="MultiplicityKind"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="One=0
Many=1"/> - </eAnnotations> - <eLiterals name="One"/> - <eLiterals name="Many" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ActivationConfigProperty"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The activation-config-propertyType contains a name/value
configuration property pair for a message-driven bean.

The properties that are recognized for a particular
message-driven bean are determined by the messaging type."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The activation-config-property-value element
 contains the value for an activation configuration
 property of a message-driven bean."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The activation-config-property-name element contains
 the name for an activation configuration property of
 a message-driven bean.

 For JMS message-driven beans, the following property
 names are recognized: acknowledgeMode,
 messageSelector, destinationType, subscriptionDurability"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ActivationConfig"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The activation-configType defines information about the
expected configuration properties of the message-driven bean
in its operational environment. This may include information
about message acknowledgement, message selector, expected
destination type, etc.

The configuration information is expressed in terms of
name/value configuration properties.

The properties that are recognized for a particular
message-driven bean are determined by the messaging type."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="configProperties" lowerBound="1" - upperBound="-1" eType="#//ActivationConfigProperty" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"/> - </eClassifiers> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/j2ee.genmodel b/plugins/org.eclipse.jst.j2ee.core/model/j2ee.genmodel deleted file mode 100644 index 17070d330..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/j2ee.genmodel +++ /dev/null @@ -1,898 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<genmodel:GenModel xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" - xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.jst.j2ee.core/mofj2ee" - modelPluginID="org.eclipse.jst.j2ee.core" modelName="J2ee" testsDirectory="/org.eclipse.jst.j2ee.core.tests/mofj2eeTests" - importerID="org.eclipse.emf.importer.rose" usedGenPackages="../../../plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../org.eclipse.jem/model/javaModel.genmodel#//java"> - <foreignModel>..\rose\j2ee.mdl</foreignModel> - <foreignModel>WORKSPACE_ROOT</foreignModel> - <foreignModel>D:\work\M5</foreignModel> - <genPackages prefix="Client" basePackage="org.eclipse.jst.j2ee" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="client.ecore#/"> - <genEnums ecoreEnum="client.ecore#//ResAuthApplicationType"> - <genEnumLiterals ecoreEnumLiteral="client.ecore#//ResAuthApplicationType/Application"/> - <genEnumLiterals ecoreEnumLiteral="client.ecore#//ResAuthApplicationType/Container"/> - </genEnums> - <genClasses ecoreClass="client.ecore#//ApplicationClient"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute client.ecore#//ApplicationClient/version"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference client.ecore#//ApplicationClient/resourceRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference client.ecore#//ApplicationClient/environmentProps"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference client.ecore#//ApplicationClient/ejbReferences"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference client.ecore#//ApplicationClient/resourceEnvRefs"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference client.ecore#//ApplicationClient/callbackHandler"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference client.ecore#//ApplicationClient/serviceRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference client.ecore#//ApplicationClient/messageDestinationRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference client.ecore#//ApplicationClient/messageDestinations"/> - </genClasses> - </genPackages> - <genPackages prefix="Application" basePackage="org.eclipse.jst.j2ee" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="application.ecore#/"> - <genClasses ecoreClass="application.ecore#//Application"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute application.ecore#//Application/version"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference application.ecore#//Application/securityRoles"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference application.ecore#//Application/modules"/> - </genClasses> - <genClasses ecoreClass="application.ecore#//Module"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute application.ecore#//Module/uri"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute application.ecore#//Module/altDD"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference application.ecore#//Module/application"/> - </genClasses> - <genClasses ecoreClass="application.ecore#//WebModule"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute application.ecore#//WebModule/contextRoot"/> - </genClasses> - <genClasses ecoreClass="application.ecore#//JavaClientModule"/> - <genClasses ecoreClass="application.ecore#//EjbModule"/> - <genClasses ecoreClass="application.ecore#//ConnectorModule"/> - <nestedGenPackages prefix="Application" basePackage="org.eclipse.jst.j2ee" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="application.ecore#/"> - <genClasses ecoreClass="application.ecore#//Application" labelFeature="#//common/CompatibilityDescriptionGroup/displayName"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute application.ecore#//Application/version"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference application.ecore#//Application/securityRoles"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference application.ecore#//Application/modules"/> - </genClasses> - <genClasses ecoreClass="application.ecore#//Module" labelFeature="#//application/application/Module/uri"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute application.ecore#//Module/uri"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute application.ecore#//Module/altDD"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference application.ecore#//Module/application"/> - </genClasses> - <genClasses ecoreClass="application.ecore#//WebModule" labelFeature="#//application/application/Module/uri"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute application.ecore#//WebModule/contextRoot"/> - </genClasses> - <genClasses ecoreClass="application.ecore#//JavaClientModule" labelFeature="#//application/application/Module/uri"/> - <genClasses ecoreClass="application.ecore#//EjbModule" labelFeature="#//application/application/Module/uri"/> - <genClasses ecoreClass="application.ecore#//ConnectorModule" labelFeature="#//application/application/Module/uri"/> - </nestedGenPackages> - </genPackages> - <genPackages prefix="Common" basePackage="org.eclipse.jst.j2ee" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="common.ecore#/"> - <genEnums ecoreEnum="common.ecore#//EnvEntryType"> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EnvEntryType/String"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EnvEntryType/Integer"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EnvEntryType/Boolean"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EnvEntryType/Double"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EnvEntryType/Byte"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EnvEntryType/Short"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EnvEntryType/Long"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EnvEntryType/Float"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EnvEntryType/Character"/> - </genEnums> - <genEnums ecoreEnum="common.ecore#//ResAuthTypeBase"> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//ResAuthTypeBase/Container"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//ResAuthTypeBase/Application"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//ResAuthTypeBase/SERVLET"/> - </genEnums> - <genEnums ecoreEnum="common.ecore#//EjbRefType"> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EjbRefType/Session"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//EjbRefType/Entity"/> - </genEnums> - <genEnums ecoreEnum="common.ecore#//ResSharingScopeType"> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//ResSharingScopeType/Shareable"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//ResSharingScopeType/Unshareable"/> - </genEnums> - <genEnums ecoreEnum="common.ecore#//MessageDestinationUsageType"> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//MessageDestinationUsageType/Consumes"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//MessageDestinationUsageType/Produces"/> - <genEnumLiterals ecoreEnumLiteral="common.ecore#//MessageDestinationUsageType/ConsumesProduces"/> - </genEnums> - <genClasses ecoreClass="common.ecore#//EjbRef"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EjbRef/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EjbRef/type"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EjbRef/home"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EjbRef/remote"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EjbRef/link"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EjbRef/description"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//EjbRef/descriptions"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//EnvEntry"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EnvEntry/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EnvEntry/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EnvEntry/value"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EnvEntry/type"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//EnvEntry/descriptions"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//ResourceRef"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ResourceRef/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ResourceRef/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ResourceRef/type"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ResourceRef/auth"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ResourceRef/link"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ResourceRef/resSharingScope"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//ResourceRef/descriptions"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//SecurityRoleRef"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//SecurityRoleRef/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//SecurityRoleRef/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//SecurityRoleRef/link"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//SecurityRoleRef/descriptions"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//SecurityRole"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//SecurityRole/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//SecurityRole/roleName"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//SecurityRole/descriptions"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//ResourceEnvRef"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ResourceEnvRef/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ResourceEnvRef/name"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference common.ecore#//ResourceEnvRef/type"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//ResourceEnvRef/descriptions"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//EJBLocalRef"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EJBLocalRef/localHome"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//EJBLocalRef/local"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//RunAsSpecifiedIdentity"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//RunAsSpecifiedIdentity/identity"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//Identity"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//Identity/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//Identity/roleName"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//Identity/descriptions"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//IconType"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//IconType/smallIcon"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//IconType/largeIcon"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//IconType/lang"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//DisplayName"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//DisplayName/lang"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//DisplayName/value"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//MessageDestinationRef"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//MessageDestinationRef/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//MessageDestinationRef/type"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//MessageDestinationRef/usage"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//MessageDestinationRef/link"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//MessageDestinationRef/descriptions"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//MessageDestination"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//MessageDestination/name"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//ParamValue"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ParamValue/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ParamValue/value"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//ParamValue/description"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//ParamValue/descriptions"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//DescriptionGroup"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//DescriptionGroup/icons"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//DescriptionGroup/displayNames"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//DescriptionGroup/descriptions"/> - </genClasses> - <genClasses image="false" ecoreClass="common.ecore#//JNDIEnvRefsGroup"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//JNDIEnvRefsGroup/environmentProperties"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//JNDIEnvRefsGroup/resourceRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//JNDIEnvRefsGroup/ejbRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//JNDIEnvRefsGroup/resourceEnvRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//JNDIEnvRefsGroup/ejbLocalRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//JNDIEnvRefsGroup/messageDestinationRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//JNDIEnvRefsGroup/serviceRefs"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//SecurityIdentity"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//SecurityIdentity/description"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference common.ecore#//SecurityIdentity/descriptions"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//UseCallerIdentity"/> - <genClasses ecoreClass="common.ecore#//Description"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//Description/lang"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//Description/value"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//QName"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//QName/namespaceURI"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//QName/localPart"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//QName/combinedQName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//QName/internalPrefixOrNsURI"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//Listener"> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference common.ecore#//Listener/listenerClass"/> - </genClasses> - <genClasses ecoreClass="common.ecore#//CompatibilityDescriptionGroup"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//CompatibilityDescriptionGroup/smallIcon"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//CompatibilityDescriptionGroup/largeIcon"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//CompatibilityDescriptionGroup/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute common.ecore#//CompatibilityDescriptionGroup/displayName"/> - </genClasses> - </genPackages> - <genPackages prefix="Ejb" basePackage="org.eclipse.jst.j2ee" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="ejb.ecore#/"> - <genEnums ecoreEnum="ejb.ecore#//TransactionAttributeType"> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//TransactionAttributeType/NotSupported"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//TransactionAttributeType/Supports"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//TransactionAttributeType/Required"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//TransactionAttributeType/RequiresNew"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//TransactionAttributeType/Mandatory"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//TransactionAttributeType/Never"/> - </genEnums> - <genEnums ecoreEnum="ejb.ecore#//TransactionType"> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//TransactionType/Bean"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//TransactionType/Container"/> - </genEnums> - <genEnums ecoreEnum="ejb.ecore#//SessionType"> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//SessionType/Stateful"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//SessionType/Stateless"/> - </genEnums> - <genEnums ecoreEnum="ejb.ecore#//MethodElementKind"> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//MethodElementKind/Unspecified"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//MethodElementKind/Remote"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//MethodElementKind/Home"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//MethodElementKind/Local"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//MethodElementKind/LocalHome"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//MethodElementKind/ServiceEndpoint"/> - </genEnums> - <genEnums ecoreEnum="ejb.ecore#//AcknowledgeMode"> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//AcknowledgeMode/AutoAcknowledge"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//AcknowledgeMode/DupsOkAcknowledge"/> - </genEnums> - <genEnums ecoreEnum="ejb.ecore#//SubscriptionDurabilityKind"> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//SubscriptionDurabilityKind/Durable"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//SubscriptionDurabilityKind/NonDurable"/> - </genEnums> - <genEnums ecoreEnum="ejb.ecore#//ReturnTypeMapping"> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//ReturnTypeMapping/Local"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//ReturnTypeMapping/Remote"/> - </genEnums> - <genEnums ecoreEnum="ejb.ecore#//DestinationType"> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//DestinationType/Queue"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//DestinationType/Topic"/> - </genEnums> - <genEnums ecoreEnum="ejb.ecore#//MultiplicityKind"> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//MultiplicityKind/One"/> - <genEnumLiterals ecoreEnumLiteral="ejb.ecore#//MultiplicityKind/Many"/> - </genEnums> - <genClasses ecoreClass="ejb.ecore#//ContainerManagedEntity"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//ContainerManagedEntity/version"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//ContainerManagedEntity/abstractSchemaName"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//ContainerManagedEntity/persistentAttributes"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//ContainerManagedEntity/keyAttributes"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//ContainerManagedEntity/queries"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//ContainerManagedEntity/CMPAttribute"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//ContainerManagedEntity/primKeyField"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//MethodPermission"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MethodPermission/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MethodPermission/unchecked"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//MethodPermission/assemblyDescriptor"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//MethodPermission/roles"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//MethodPermission/methodElements"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//MethodPermission/descriptions"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//AssemblyDescriptor"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//AssemblyDescriptor/methodPermissions"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//AssemblyDescriptor/methodTransactions"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//AssemblyDescriptor/ejbJar"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//AssemblyDescriptor/securityRoles"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//AssemblyDescriptor/excludeList"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//AssemblyDescriptor/messageDestinations"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//MethodTransaction"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MethodTransaction/transactionAttribute"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MethodTransaction/description"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//MethodTransaction/assemblyDescriptor"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//MethodTransaction/methodElements"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//MethodTransaction/descriptions"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//Session"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//Session/transactionType"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//Session/sessionType"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//Session/serviceEndpoint"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//Entity"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//Entity/reentrant"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//Entity/primaryKey"/> - </genClasses> - <genClasses image="false" ecoreClass="ejb.ecore#//EnterpriseBean"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//EnterpriseBean/name"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//EnterpriseBean/securityRoleRefs"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//EnterpriseBean/ejbClass"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//EnterpriseBean/homeInterface"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//EnterpriseBean/remoteInterface"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//EnterpriseBean/ejbJar"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//EnterpriseBean/securityIdentity"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//EnterpriseBean/localHomeInterface"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//EnterpriseBean/localInterface"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//EJBMethodCategory"/> - <genClasses ecoreClass="ejb.ecore#//EJBJar"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//EJBJar/ejbClientJar"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//EJBJar/version"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//EJBJar/assemblyDescriptor"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//EJBJar/enterpriseBeans"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//EJBJar/relationshipList"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//MethodElement"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MethodElement/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MethodElement/parms"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MethodElement/type"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MethodElement/description"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//MethodElement/enterpriseBean"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//MethodElement/descriptions"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//CMPAttribute"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//CMPAttribute/description"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//CMPAttribute/descriptions"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//Relationships"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//Relationships/description"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//Relationships/ejbJar"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//Relationships/ejbRelations"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//Relationships/descriptions"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//Query"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//Query/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//Query/ejbQL"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//Query/returnTypeMapping"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//Query/queryMethod"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//Query/entity"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//Query/descriptions"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//EJBRelation"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//EJBRelation/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//EJBRelation/name"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//EJBRelation/relationshipList"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//EJBRelation/relationshipRoles"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//EJBRelation/descriptions"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//EJBRelationshipRole"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//EJBRelationshipRole/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//EJBRelationshipRole/roleName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//EJBRelationshipRole/multiplicity"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//EJBRelationshipRole/cascadeDelete"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//EJBRelationshipRole/relationship"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//EJBRelationshipRole/source"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//EJBRelationshipRole/cmrField"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//EJBRelationshipRole/descriptions"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//RoleSource"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//RoleSource/description"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//RoleSource/role"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//RoleSource/entityBean"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//RoleSource/descriptions"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//CMRField"> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//CMRField/role"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//CMRField/collectionType"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//MessageDriven"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MessageDriven/transactionType"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MessageDriven/messageSelector"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MessageDriven/acknowledgeMode"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MessageDriven/link"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//MessageDriven/destination"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//MessageDriven/activationConfig"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//MessageDriven/messageDestination"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//MessageDriven/messagingType"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//MessageDrivenDestination"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MessageDrivenDestination/type"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//MessageDrivenDestination/subscriptionDurability"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//MessageDrivenDestination/bean"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//ExcludeList"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//ExcludeList/description"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//ExcludeList/methodElements"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//ExcludeList/descriptions"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//QueryMethod"> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ejb.ecore#//QueryMethod/query"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//ActivationConfigProperty"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//ActivationConfigProperty/value"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ejb.ecore#//ActivationConfigProperty/name"/> - </genClasses> - <genClasses ecoreClass="ejb.ecore#//ActivationConfig"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//ActivationConfig/configProperties"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ejb.ecore#//ActivationConfig/descriptions"/> - </genClasses> - </genPackages> - <genPackages prefix="Taglib" basePackage="org.eclipse.jst.j2ee" disposableProviderFactory="true" - interfacePackageSuffix="internal" classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" - ecorePackage="taglib.ecore#/"> - <genEnums ecoreEnum="taglib.ecore#//BodyContentType"> - <genEnumLiterals ecoreEnumLiteral="taglib.ecore#//BodyContentType/tagdependent"/> - <genEnumLiterals ecoreEnumLiteral="taglib.ecore#//BodyContentType/JSP"/> - <genEnumLiterals ecoreEnumLiteral="taglib.ecore#//BodyContentType/empty"/> - <genEnumLiterals ecoreEnumLiteral="taglib.ecore#//BodyContentType/scriptless"/> - </genEnums> - <genEnums ecoreEnum="taglib.ecore#//JSPScriptingVariableScope"> - <genEnumLiterals ecoreEnumLiteral="taglib.ecore#//JSPScriptingVariableScope/NESTED"/> - <genEnumLiterals ecoreEnumLiteral="taglib.ecore#//JSPScriptingVariableScope/AT_BEGIN"/> - <genEnumLiterals ecoreEnumLiteral="taglib.ecore#//JSPScriptingVariableScope/AT_END"/> - </genEnums> - <genClasses ecoreClass="taglib.ecore#//TagLib"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//TagLib/tagLibVersion"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//TagLib/jspVersion"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//TagLib/shortName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//TagLib/uri"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//TagLib/tags"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//TagLib/validator"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//TagLib/listeners"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//TagLib/functions"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//TagLib/taglibExtensions"/> - </genClasses> - <genClasses ecoreClass="taglib.ecore#//JSPTag"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPTag/bodyContent"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPTag/example"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPTag/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPTag/dynamicAttributes"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//JSPTag/attributes"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//JSPTag/variables"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference taglib.ecore#//JSPTag/tagClass"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference taglib.ecore#//JSPTag/teiClass"/> - </genClasses> - <genClasses ecoreClass="taglib.ecore#//JSPTagAttribute"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPTagAttribute/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPTagAttribute/required"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPTagAttribute/rtExprValue"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPTagAttribute/fragment"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference taglib.ecore#//JSPTagAttribute/type"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//JSPTagAttribute/descriptions"/> - </genClasses> - <genClasses ecoreClass="taglib.ecore#//Validator"> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference taglib.ecore#//Validator/validatorClass"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//Validator/initParams"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//Validator/descriptions"/> - </genClasses> - <genClasses ecoreClass="taglib.ecore#//JSPVariable"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPVariable/nameGiven"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPVariable/nameFromAttribute"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPVariable/declare"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//JSPVariable/scope"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference taglib.ecore#//JSPVariable/variableClass"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//JSPVariable/descriptions"/> - </genClasses> - <genClasses ecoreClass="taglib.ecore#//Function"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//Function/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//Function/signature"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//Function/example"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference taglib.ecore#//Function/functionClass"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//Function/functionExtensions"/> - </genClasses> - <genClasses ecoreClass="taglib.ecore#//TagFile"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//TagFile/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//TagFile/path"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//TagFile/example"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//TagFile/tagExtensions"/> - </genClasses> - <genClasses ecoreClass="taglib.ecore#//TldExtension"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//TldExtension/namespace"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference taglib.ecore#//TldExtension/extensionElements"/> - </genClasses> - <genClasses image="false" ecoreClass="taglib.ecore#//ExtensibleType"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute taglib.ecore#//ExtensibleType/value"/> - </genClasses> - </genPackages> - <genPackages prefix="Webapplication" basePackage="org.eclipse.jst.j2ee" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="webapplication.ecore#/"> - <genEnums ecoreEnum="webapplication.ecore#//ResAuthServletType"> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//ResAuthServletType/CONTAINER"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//ResAuthServletType/SERVLET"/> - </genEnums> - <genEnums ecoreEnum="webapplication.ecore#//HTTPMethodTypeEnum"> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//HTTPMethodTypeEnum/GET"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//HTTPMethodTypeEnum/POST"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//HTTPMethodTypeEnum/PUT"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//HTTPMethodTypeEnum/DELETE"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//HTTPMethodTypeEnum/HEAD"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//HTTPMethodTypeEnum/OPTIONS"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//HTTPMethodTypeEnum/TRACE"/> - </genEnums> - <genEnums ecoreEnum="webapplication.ecore#//TransportGuaranteeType"> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//TransportGuaranteeType/NONE"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//TransportGuaranteeType/INTEGRAL"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//TransportGuaranteeType/CONFIDENTIAL"/> - </genEnums> - <genEnums ecoreEnum="webapplication.ecore#//DispatcherType"> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//DispatcherType/FORWARD"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//DispatcherType/INCLUDE"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//DispatcherType/REQUEST"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//DispatcherType/ERROR"/> - </genEnums> - <genEnums ecoreEnum="webapplication.ecore#//AuthMethodKind"> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//AuthMethodKind/UNSPECIFIED"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//AuthMethodKind/BASIC"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//AuthMethodKind/DIGEST"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//AuthMethodKind/FORM"/> - <genEnumLiterals ecoreEnumLiteral="webapplication.ecore#//AuthMethodKind/CLIENT_CERT"/> - </genEnums> - <genClasses ecoreClass="webapplication.ecore#//WebApp"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//WebApp/distributable"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//WebApp/version"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/contexts"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/errorPages"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/fileList"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/tagLibs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/constraints"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/loginConfig"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/mimeMappings"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/sessionConfig"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/servletMappings"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/servlets"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/securityRoles"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/filters"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/filterMappings"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/listeners"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/contextParams"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/jspConfig"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/messageDestinations"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebApp/localEncodingMappingList"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//ContextParam"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//ContextParam/paramName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//ContextParam/paramValue"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//ContextParam/description"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//ContextParam/webApp"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//Servlet"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//Servlet/servletName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//Servlet/loadOnStartup"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//Servlet/webApp"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//Servlet/webType"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//Servlet/params"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//Servlet/securityRoleRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//Servlet/runAs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//Servlet/initParams"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//ServletMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//ServletMapping/urlPattern"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//ServletMapping/name"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//ServletMapping/webApp"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//ServletMapping/servlet"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//SessionConfig"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//SessionConfig/sessionTimeout"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//SessionConfig/webApp"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//MimeMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//MimeMapping/extension"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//MimeMapping/mimeType"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//MimeMapping/webApp"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//WelcomeFileList"> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//WelcomeFileList/webApp"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WelcomeFileList/file"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//ErrorPage"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//ErrorPage/location"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//ErrorPage/webApp"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//TagLibRef"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//TagLibRef/taglibURI"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//TagLibRef/taglibLocation"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//TagLibRef/webApp"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//SecurityConstraint"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//SecurityConstraint/displayName"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//SecurityConstraint/webApp"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//SecurityConstraint/webResourceCollections"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//SecurityConstraint/authConstraint"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//SecurityConstraint/userDataConstraint"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//SecurityConstraint/displayNames"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//WebResourceCollection"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//WebResourceCollection/webResourceName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//WebResourceCollection/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//WebResourceCollection/urlPattern"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//WebResourceCollection/httpMethod"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//WebResourceCollection/secConstraint"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebResourceCollection/URLs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebResourceCollection/descriptions"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//WebResourceCollection/HTTPs"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//AuthConstraint"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//AuthConstraint/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//AuthConstraint/roles"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//AuthConstraint/secConstraint"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//AuthConstraint/descriptions"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//UserDataConstraint"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//UserDataConstraint/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//UserDataConstraint/transportGuarantee"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//UserDataConstraint/secConstraint"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//UserDataConstraint/descriptions"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//LoginConfig"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//LoginConfig/authMethod"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//LoginConfig/realmName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//LoginConfig/authorizationMethod"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//LoginConfig/webApp"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//LoginConfig/formLoginConfig"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//FormLoginConfig"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//FormLoginConfig/formLoginPage"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//FormLoginConfig/formErrorPage"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//FormLoginConfig/loginConfig"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//InitParam"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//InitParam/paramName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//InitParam/paramValue"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//InitParam/description"/> - </genClasses> - <genClasses image="false" ecoreClass="webapplication.ecore#//WebType"/> - <genClasses ecoreClass="webapplication.ecore#//ServletType"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//ServletType/className"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//JSPType"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//JSPType/jspFile"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//URLPatternType"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//URLPatternType/urlPattern"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//URLPatternType/resCollection"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//RoleNameType"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//RoleNameType/roleName"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//WelcomeFile"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//WelcomeFile/welcomeFile"/> - <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//WelcomeFile/fileList"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//ExceptionTypeErrorPage"> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//ExceptionTypeErrorPage/exceptionType"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//ErrorCodeErrorPage"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//ErrorCodeErrorPage/errorCode"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//FilterMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//FilterMapping/urlPattern"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//FilterMapping/dispatcherType"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//FilterMapping/filter"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//FilterMapping/servlet"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//Filter"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//Filter/name"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//Filter/initParams"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference webapplication.ecore#//Filter/filterClass"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//Filter/initParamValues"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//LocalEncodingMappingList"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference webapplication.ecore#//LocalEncodingMappingList/localEncodingMappings"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//LocalEncodingMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//LocalEncodingMapping/locale"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//LocalEncodingMapping/encoding"/> - </genClasses> - <genClasses ecoreClass="webapplication.ecore#//HTTPMethodType"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute webapplication.ecore#//HTTPMethodType/httpMethod"/> - </genClasses> - </genPackages> - <genPackages prefix="Jca" basePackage="org.eclipse.jst.j2ee" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="jca.ecore#/"> - <genEnums ecoreEnum="jca.ecore#//AuthenticationMechanismType"> - <genEnumLiterals ecoreEnumLiteral="jca.ecore#//AuthenticationMechanismType/BasicPassword"/> - <genEnumLiterals ecoreEnumLiteral="jca.ecore#//AuthenticationMechanismType/Kerbv5"/> - </genEnums> - <genEnums ecoreEnum="jca.ecore#//TransactionSupportKind"> - <genEnumLiterals ecoreEnumLiteral="jca.ecore#//TransactionSupportKind/NoTransaction"/> - <genEnumLiterals ecoreEnumLiteral="jca.ecore#//TransactionSupportKind/LocalTransaction"/> - <genEnumLiterals ecoreEnumLiteral="jca.ecore#//TransactionSupportKind/XATransaction"/> - </genEnums> - <genClasses ecoreClass="jca.ecore#//Connector"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//Connector/vendorName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//Connector/specVersion"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//Connector/eisType"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//Connector/version"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//Connector/license"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//Connector/resourceAdapter"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//ResourceAdapter"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ResourceAdapter/managedConnectionFactoryClass"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ResourceAdapter/connectionFactoryInterface"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ResourceAdapter/connectionFactoryImplClass"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ResourceAdapter/connectionInterface"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ResourceAdapter/connectionImplClass"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ResourceAdapter/transactionSupport"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ResourceAdapter/reauthenticationSupport"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ResourceAdapter/resourceAdapterClass"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//ResourceAdapter/securityPermissions"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//ResourceAdapter/authenticationMechanisms"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//ResourceAdapter/configProperties"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//ResourceAdapter/outboundResourceAdapter"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//ResourceAdapter/inboundResourceAdapter"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//ResourceAdapter/adminObjects"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//AuthenticationMechanism"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//AuthenticationMechanism/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//AuthenticationMechanism/authenticationMechanism"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//AuthenticationMechanism/authenticationMechanismType"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//AuthenticationMechanism/credentialInterface"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//AuthenticationMechanism/customAuthMechType"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//AuthenticationMechanism/descriptions"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//ConfigProperty"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ConfigProperty/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ConfigProperty/name"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ConfigProperty/type"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ConfigProperty/value"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//ConfigProperty/descriptions"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//SecurityPermission"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//SecurityPermission/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//SecurityPermission/specification"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//SecurityPermission/descriptions"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//License"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//License/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//License/required"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//License/descriptions"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//InboundResourceAdapter"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//InboundResourceAdapter/messageAdapter"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//OutboundResourceAdapter"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//OutboundResourceAdapter/reauthenticationSupport"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//OutboundResourceAdapter/transactionSupport"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//OutboundResourceAdapter/connectionDefinitions"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//OutboundResourceAdapter/authenticationMechanisms"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//MessageAdapter"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//MessageAdapter/messageListeners"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//ConnectionDefinition"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ConnectionDefinition/managedConnectionFactoryClass"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ConnectionDefinition/connectionFactoryInterface"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ConnectionDefinition/connectionFactoryImplClass"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ConnectionDefinition/connectionInterface"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ConnectionDefinition/connectionImplClass"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//ConnectionDefinition/configProperties"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//AdminObject"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//AdminObject/adminObjectInterface"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//AdminObject/adminObjectClass"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//AdminObject/configProperties"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//MessageListener"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//MessageListener/messageListenerType"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//MessageListener/activationSpec"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//ActivationSpec"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//ActivationSpec/activationSpecClass"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//ActivationSpec/requiredConfigProperties"/> - </genClasses> - <genClasses ecoreClass="jca.ecore#//RequiredConfigPropertyType"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jca.ecore#//RequiredConfigPropertyType/name"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jca.ecore#//RequiredConfigPropertyType/descriptions"/> - </genClasses> - </genPackages> - <genPackages prefix="Webservice_client" basePackage="org.eclipse.jst.j2ee.webservice" - disposableProviderFactory="true" classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" - ecorePackage="wsclient.ecore#/"> - <genClasses ecoreClass="wsclient.ecore#//ServiceRef"> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference wsclient.ecore#//ServiceRef/serviceInterface"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsclient.ecore#//ServiceRef/serviceRefName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsclient.ecore#//ServiceRef/wsdlFile"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsclient.ecore#//ServiceRef/jaxrpcMappingFile"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsclient.ecore#//ServiceRef/portComponentRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsclient.ecore#//ServiceRef/handlers"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsclient.ecore#//ServiceRef/serviceQname"/> - </genClasses> - <genClasses ecoreClass="wsclient.ecore#//PortComponentRef"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsclient.ecore#//PortComponentRef/portComponentLink"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference wsclient.ecore#//PortComponentRef/serviceEndpointInterface"/> - </genClasses> - <genClasses ecoreClass="wsclient.ecore#//Handler"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsclient.ecore#//Handler/handlerName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsclient.ecore#//Handler/soapRoles"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsclient.ecore#//Handler/portNames"/> - <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference wsclient.ecore#//Handler/handlerClass"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsclient.ecore#//Handler/initParams"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsclient.ecore#//Handler/soapHeaders"/> - </genClasses> - <genClasses ecoreClass="wsclient.ecore#//WebServicesClient"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsclient.ecore#//WebServicesClient/componentScopedRefs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsclient.ecore#//WebServicesClient/serviceRefs"/> - </genClasses> - <genClasses ecoreClass="wsclient.ecore#//ComponentScopedRefs"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsclient.ecore#//ComponentScopedRefs/componentName"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsclient.ecore#//ComponentScopedRefs/serviceRefs"/> - </genClasses> - </genPackages> - <genPackages prefix="Jsp" basePackage="org.eclipse.jst.j2ee" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="jsp.ecore#/"> - <genClasses ecoreClass="jsp.ecore#//JSPConfig"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jsp.ecore#//JSPConfig/tagLibs"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jsp.ecore#//JSPConfig/propertyGroups"/> - </genClasses> - <genClasses ecoreClass="jsp.ecore#//JSPPropertyGroup"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jsp.ecore#//JSPPropertyGroup/urlPattern"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jsp.ecore#//JSPPropertyGroup/elIgnored"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jsp.ecore#//JSPPropertyGroup/pageEncoding"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jsp.ecore#//JSPPropertyGroup/scriptingInvalid"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jsp.ecore#//JSPPropertyGroup/isXML"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jsp.ecore#//JSPPropertyGroup/includePreludes"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jsp.ecore#//JSPPropertyGroup/includeCodas"/> - </genClasses> - <genClasses ecoreClass="jsp.ecore#//TagLibRefType"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jsp.ecore#//TagLibRefType/taglibURI"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jsp.ecore#//TagLibRefType/taglibLocation"/> - </genClasses> - </genPackages> - <genPackages prefix="Wscommon" basePackage="org.eclipse.jst.j2ee.webservice" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="wscommon.ecore#/"> - <genClasses ecoreClass="wscommon.ecore#//InitParam"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wscommon.ecore#//InitParam/paramName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wscommon.ecore#//InitParam/paramValue"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wscommon.ecore#//InitParam/description"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wscommon.ecore#//InitParam/descriptionTypes"/> - </genClasses> - <genClasses ecoreClass="wscommon.ecore#//SOAPHeader"/> - <genClasses ecoreClass="wscommon.ecore#//SOAPRole"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wscommon.ecore#//SOAPRole/soapRole"/> - </genClasses> - <genClasses ecoreClass="wscommon.ecore#//PortName"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wscommon.ecore#//PortName/portName"/> - </genClasses> - <genClasses ecoreClass="wscommon.ecore#//DescriptionType"/> - <genClasses ecoreClass="wscommon.ecore#//DisplayNameType"/> - </genPackages> - <genPackages prefix="Wsdd" basePackage="org.eclipse.jst.j2ee.webservice" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="wsdd.ecore#/"> - <genClasses ecoreClass="wsdd.ecore#//WebServices"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//WebServices/webServiceDescriptions"/> - </genClasses> - <genClasses ecoreClass="wsdd.ecore#//WebServiceDescription"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//WebServiceDescription/jaxrpcMappingFile"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//WebServiceDescription/webServiceDescriptionName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//WebServiceDescription/wsdlFile"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//WebServiceDescription/smallIcon"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//WebServiceDescription/largeIcon"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//WebServiceDescription/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//WebServiceDescription/displayName"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//WebServiceDescription/portComponents"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//WebServiceDescription/descriptionType"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//WebServiceDescription/displayNameType"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//WebServiceDescription/iconType"/> - </genClasses> - <genClasses ecoreClass="wsdd.ecore#//PortComponent"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//PortComponent/portComponentName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//PortComponent/serviceEndpointInterface"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//PortComponent/smallIcon"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//PortComponent/largeIcon"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//PortComponent/description"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//PortComponent/displayName"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//PortComponent/wsdlPort"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//PortComponent/serviceImplBean"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//PortComponent/handlers"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//PortComponent/descriptionType"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//PortComponent/displayNameType"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//PortComponent/iconType"/> - </genClasses> - <genClasses ecoreClass="wsdd.ecore#//WSDLPort"/> - <genClasses ecoreClass="wsdd.ecore#//ServiceImplBean"> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//ServiceImplBean/eEJBLink"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//ServiceImplBean/eServletLink"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//ServiceImplBean/beanLink"/> - </genClasses> - <genClasses ecoreClass="wsdd.ecore#//ServletLink"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//ServletLink/servletLink"/> - </genClasses> - <genClasses ecoreClass="wsdd.ecore#//EJBLink"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//EJBLink/ejbLink"/> - </genClasses> - <genClasses ecoreClass="wsdd.ecore#//Handler"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//Handler/handlerName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute wsdd.ecore#//Handler/handlerClass"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//Handler/initParams"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//Handler/soapHeaders"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference wsdd.ecore#//Handler/soapRoles"/> - </genClasses> - <genClasses ecoreClass="wsdd.ecore#//BeanLink"/> - </genPackages> -</genmodel:GenModel> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/jaxrpcmap.ecore b/plugins/org.eclipse.jst.j2ee.core/model/jaxrpcmap.ecore deleted file mode 100644 index 65bb2ff7c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/jaxrpcmap.ecore +++ /dev/null @@ -1,266 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="jaxrpcmap" - nsURI="jaxrpcmap.xmi" nsPrefix="org.eclipse.jst.j2ee.webservice.jaxrpcmap"> - <eClassifiers xsi:type="ecore:EClass" name="JavaWSDLMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element describes the Java mapping to a known WSDL document.It contains the mapping between package names and XML namespaces, 
WSDL root types and Java artifacts, and the set of mappings for services."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="packageMappings" lowerBound="1" - upperBound="-1" eType="#//PackageMapping" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="javaXMLTypeMappings" upperBound="-1" - eType="#//JavaXMLTypeMapping" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="exceptionMappings" upperBound="-1" - eType="#//ExceptionMapping" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="interfaceMappings" upperBound="-1" - eType="#//InterfaceMapping" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="PackageMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The package-mapping indicates the mapping between java-package-name and XML namespace in the WSDL document.

Used in: java-wsdl-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="packageType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The package-type indicates the Java package name. It must be a fully qualified name.

Used in: package-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="namespaceURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="JavaXMLTypeMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The java-xml-type-mapping element contains a class-type that is the fully qualified name of the Java class, QName of the XML root type, the WSDL type scope the QName applies to and the set of variable 
mappings for each public variable within the Java class.

Used in: java-wsdl-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="classType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The class-type element is the fully qualified class name of a Java class.

Used in: java-xml-type-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="qnameScope" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The qname-scope elements scopes the reference of a QName to the WSDL element type it applies to. The value of qname-scope may be simpleType, complexType, or element.

Used in: java-xml-type-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="anonymousTypeQname" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="rootTypeQname" lowerBound="1" - eType="#//RootTypeQname" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="variableMappings" upperBound="-1" - eType="#//VariableMapping" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ExceptionMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The exception-mapping element defines the mapping between the service specific exception types and the wsdl faults.

This element should be interpreted with respect to the
mapping between a method and an operation which provides the mapping context.

Used in: service-endpoint-method-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="exceptionType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The exception-type element defines Java type of the exception. It may be a service specific exception.

It must be a fully qualified class name.

Used in: exception-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="wsdlMessagePartName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="wsdlMessage" lowerBound="1" - eType="#//WSDLMessage" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="constructorParameterOrder" - eType="#//ConstructorParameterOrder" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ServiceInterfaceMapping" eSuperTypes="#//InterfaceMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-interface-mapping element defines how a Java type for the service interface maps to a WSDL service.

Used in: java-wsdl-mapping
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="serviceInterface" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-interface element defines the Java type for the service. For static services, it is javax.xml.rpc.Service interface. For generated service, it would be the generated interface name.

The name must be a fully qualified class name.

Used in: service-interface-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="wsdlServiceName" lowerBound="1" - eType="#//WSDLServiceName" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="portMappings" upperBound="-1" - eType="#//PortMapping" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ServiceEndpointInterfaceMapping" eSuperTypes="#//InterfaceMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-endpoint-interface-mapping defines a tuple
to specify Service Endpoint Interfaces to WSDL port types and WSDL bindings.

An interface may be mapped to a port-type and binding multiple times. This happens rarely.

Used in: java-wsdl-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="serviceEndpointInterface" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-endpoint-interface element defines the Java type for the endpoint interface. The name must be a fully qualified class name.

Used in: service-endpoint-interface-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="wsdlPortType" lowerBound="1" - eType="#//WSDLPortType" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="wsdlBinding" lowerBound="1" - eType="#//WSDLBinding" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="serviceEndpointMethodMappings" - upperBound="-1" eType="#//ServiceEndpointMethodMapping" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="RootTypeQname" eSuperTypes="common.ecore#//QName"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The root-type-qname identifies the WSDL QName of an XML type.

Used in: java-xml-type-mapping"/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="VariableMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The variable-mapping element defines the correlation between a Java class data member or JavaBeans property to an XML element name of an XML root type. If the data-member element is present, the Java variable name is a public data member. If data-member
is not present, the Java variable name is a JavaBeans property.

Used in: java-xml-type-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="javaVariableName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The java-variable-name defines the name of a public data member or JavaBeans property within a Java class. 

Used in: variable-mapping
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="xmlElementName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The xml-element-name element defines name attribute value of a WSDL element within a root type.

Used in: variable-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="dataMember" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="xmlAttributeName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="xmlWildcard" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WSDLMessage" eSuperTypes="common.ecore#//QName"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The wsdl-message element defines a WSDL message by a QNAME.

Used in: wsdl-message-mapping, wsdl-return-value-mapping"/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ConstructorParameterOrder"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The constructor-parameter-order element defines the order that complexType element values are applied to a Java exception constructor. Element names are specified for each parameter of the constructor, including element names of inherited types if necessary.

Used in: exception-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="elementNames" lowerBound="1" - upperBound="-1" eType="#//ElementName" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ElementName"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element-name element defines the name of a complexType element name attribute value.

Used in: constructor-parameter-order"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="text" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WSDLServiceName" eSuperTypes="common.ecore#//QName"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The wsdl-service-name element defines the wsdl service name by a QNAME which uniquely identifies the service.

Used in: service-interface-mapping"/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="PortMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The port-mapping defines the mapping of the WSDL port name attribute to the Java name used to generate the Generated Service Interface method get<java-name>.

Used in: service-interface-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="portName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The port-name is the attribute value of a name attribute of a WSDL port element.

Used in: port-mapping
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="javaPortName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The java-port-name element is the string to use as the port name in Java. It is used in generating the Generated Service Interface method
get<java-port-name>.

Used in: port-mapping"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WSDLPortType" eSuperTypes="common.ecore#//QName"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The wsdl-port-type element defines the wsdl port type
by a QNAME which uniquely identifies the port type.

Used in: service-endpoint-interface-mapping"/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WSDLBinding" eSuperTypes="common.ecore#//QName"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The wsdl-binding element defines the wsdl binding
by a QNAME which uniquely identifies the binding.

Used in: service-endpoint-interface-mapping"/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ServiceEndpointMethodMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-endpoint-method-mapping element defines the mapping of Java methods to operations (which are not uniquely qualified by qnames).

The wsdl-operation should be interpreted with respect to the portType and binding in which this definition is embedded within. See the definitions for service-endpoint-interface-mapping and 
service-interface-mapping to acquire the proper context. The wrapped-element indicator should only be specified when a WSDL message wraps an element type. The wsdl-return-value-mapping is not specified for one-way operations.

Used in: service-endpoint-interface-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="javaMethodName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The java-method-name element defines the name of a Java method within an interface.

Used in: service-endpoint-method-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="wsdlOperation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The wsdl-operation element defines an operation within a WSDL document. It must be interpreted with respect to a port type.

Used in: service-endpoint-method-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="wrappedElement" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="methodParamPartsMappings" - upperBound="-1" eType="#//MethodParamPartsMapping" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="wsdlReturnValueMapping" - eType="#//WSDLReturnValueMapping" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WSDLOperation"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="wsdlOperation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MethodParamPartsMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The method-param-parts-mapping element defines the mapping between a Java method parameters and a wsdl-message.

Used in: service-endpoint-method-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="paramPosition" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The param-position element defines the position of a parameter within a Java method. It must be an integer starting from 0.

Used in: method-param-parts-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="paramType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The param-type element defines the Java type of a parameter within a Java method. It must be defined by a fully qualified name of a class.

Used in: method-param-parts-mapping
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="wsdlMessageMapping" lowerBound="1" - eType="#//WSDLMessageMapping" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WSDLReturnValueMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The wsdl-return-value-mapping element defines the mapping for the method's return value. It defines the mapping to a specific message and its part. Together they define uniquely the mapping for a specific parameter. Parts within a message context are uniquely 
identified with their names. The wsdl-message-part-name is not
specified if there is no return value or OUT parameters.

Used in: service-endpoint-method-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="methodReturnValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The method-return-value element defines a fully qualified class name or void type for the method's return value type.

Used in: wsdl-return-value-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="wsdlMessagePartName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Interpretation of the wsdl-message-part-name element depends on whether or not wrapped-element has been defined in the service-endpoint-method-mapping. If wrapped-element is not specified, wsdl-message-part-name defines a WSDL message part. It should always be interpreter with respect to a wsdl-message element. If wrapped-element is specified, wsdl-message-part-name refers to an element
name of the element type.

Used in: wsdl-message-mapping, wsdl-return-value-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="wsdlMessage" lowerBound="1" - eType="#//WSDLMessage" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WSDLMessageMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The wsdl-message-mapping element defines the mapping to a specific message and its part. Together they define uniquely the mapping for a specific parameter. Parts within a message context are uniquely 
identified with their names.

The parameter-mode is defined by the mapping to indicate whether the mapping will be IN, OUT, or INOUT.. The presence of the soap-header
element indicates that the parameter is mapped to a soap header only. When absent, it means that the wsdl-message is mapped to a Java parameter. The soap headers are interpreted in the order they are
provided in the mapping.

Used in: method-param-parts-mapping"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="wsdlMessagePartName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Interpretation of the wsdl-message-part-name element depends on whether or not wrapped-element has been defined in the service-endpoint-method-mapping. If wrapped-element is not specified, wsdl-message-part-name defines a WSDL message part. It should always be interpreter with respect to a wsdl-message element. If wrapped-element is specified, wsdl-message-part-name refers to an element
name of the element type.

Used in: wsdl-message-mapping, wsdl-return-value-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="parameterMode" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The parameter-mode element defines the mode of the parameter. It can have only three values, IN, OUT, INOUT.

Used in: wsdl-message-mapping"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="soapHeader" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="wsdlMessage" lowerBound="1" - eType="#//WSDLMessage" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WSDLMessagePartName"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="wsdlMessagePartName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="InterfaceMapping"/> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/jca.ecore b/plugins/org.eclipse.jst.j2ee.core/model/jca.ecore deleted file mode 100644 index fde4cd36b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/jca.ecore +++ /dev/null @@ -1,349 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="jca" - nsURI="jca.xmi" nsPrefix="org.eclipse.jst.j2ee.jca"> - <eClassifiers xsi:type="ecore:EClass" name="Connector" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The connector element is the root element of the deployment descriptor for the resource adapter. This element includes general information - vendor name, version, specification version supported, icon - about the resource adapter module. It also includes information specific to the implementation of the resource adapter library as specified through the element resourceadapter.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="vendorName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies the name of resource adapter provider vendor.
Example: Wombat Corp."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="specVersion" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies the version of the connector architecture specification that is supported by this resource adapter. This information enables deployer to configure the resource adapter to support deployment and runtime requirements of the corresponding connector architecture specification.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="eisType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Contains information about the type of the EIS. For example, the type of an EIS can be product name of EIS independent of any version info.

This helps in identifying EIS instances that can be used with
this resource adapter.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="version" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies a string-based version of the resource adapter from the resource adapter provider.

Example: 1.5"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="license" eType="#//License" - containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies licensing requirements for the resource adapter module. This element specifies whether a license is required to deploy and use this resource adapter, and an optional description of the licensing terms (examples: duration of license, number of
connection restrictions)."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="resourceAdapter" lowerBound="1" - eType="#//ResourceAdapter" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ResourceAdapter"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies information about the resource adapter. The information includes fully-qualified names of class/interfaces required as part of the connector architecture specified contracts, level of transaction support provided, configurable properties for ManagedConnectionFactory instances, one or more authentication mechanisms supported and additional
required security permissions.

If there is no authentication-mechanism specified as part of
resource adapter element then the resource adapter does not
support any standard security authentication mechanisms as part
of security contract. The application server ignores the security
part of the system contracts in this case.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="managedConnectionFactoryClass" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes outboundResourceAdapter.connectionDefinitions.managedConnectionFactoryClass
Specifies the fully qualified name of the Java class that implements the javax.resource.spi.Managed-ConnectionFactory interface. This Java class is provided as part of resource adapter's implementation of connector architecture specified contracts.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="connectionFactoryInterface" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes outboundResourceAdapter.connectionDefinitions.connectionFactoryInterface
Specifies the fully-qualified name of the ConnectionFactory interface supported by the resource adapter.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="connectionFactoryImplClass" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes outboundResourceAdapter.connectionDefinitions.connectionFactoryImplClass
Specifies the fully-qualified name of the ConnectionFactory class that implements resource adapter specific ConnectionFactory interface."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="connectionInterface" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes outboundResourceAdapter.connectionDefinitions.connectionInterface"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="connectionImplClass" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes outboundResourceAdapter.connectionDefinitions.connectionImplClass
Specifies the fully-qualified name of the Connection interface supported by the resource adapter."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="transactionSupport" eType="#//TransactionSupportKind" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes outboundResourceAdapter.transactionSupport
The transaction-support element specifies the level of transaction
support provided by the resource adapter.
The value of transaction-support must be one of the following:
 NoTransaction
 LocalTransaction
 XATransaction"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="reauthenticationSupport" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes outboundResourceAdapter.reauthenticationSupport
Specifies whether the resource adapter implementation supports re-authentication of existing Managed-Connection instance. Note that this information is for the resource adapter implementation and not for the underlying EIS instance."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="resourceAdapterClass" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element resourceadapter-class specifies the
 fully qualified name of a Java class that implements
 the javax.resource.spi.ResourceAdapter
 interface. This Java class is provided as part of
 resource adapter's implementation of connector
 architecture specified contracts. The implementation
 of this class is required to be a JavaBean."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="securityPermissions" upperBound="-1" - eType="#//SecurityPermission" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="authenticationMechanisms" - upperBound="-1" eType="#//AuthenticationMechanism" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="configProperties" upperBound="-1" - eType="#//ConfigProperty" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="outboundResourceAdapter" - eType="#//OutboundResourceAdapter" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The connectionfactory-interface element content must be
 unique in the outbound-resourceadapter. Multiple connection-definitions
 can not use the same connectionfactory-type."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="inboundResourceAdapter" - eType="#//InboundResourceAdapter" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="adminObjects" upperBound="-1" - eType="#//AdminObject" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="AuthenticationMechanism"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element authentication-mechanism specifies an authentication mechanism supported by the resource adapter. Note that this support is for the resource adapter and not for the underlying EIS instance. The optional description specifies any resource adapter specific requirement for the support of security contract and authentication mechanism.

Note that BasicPassword mechanism type should support the
javax.resource.spi.security.PasswordCredential interface.
The Kerbv5 mechanism type should support the
javax.resource.spi.security.GenericCredential interface.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="authenticationMechanism" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="authenticationMechanismType" - eType="#//AuthenticationMechanismType" unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated See authenticationMechanism

The authentication-mechanism-type specifies type of an authentication mechanism.

The example values are:
 - BasicPassword
 - Kerbv5

Any additional security mechanisms are outside the scope of the
Connector architecture specification.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="credentialInterface" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies the interface that the resource adapter implementation supports for the representation of the credentials. This element should be used by application server to find out the Credential interface it should use as part of the security contract.

The possible values are:
 javax.resource.spi.security.PasswordCredential
 javax.resource.spi.security.GenericCredential
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="customAuthMechType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" - transient="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated
This is an internal variable used to store the AthenticationMechanismType when it is something other than BasicPassword or Kerbv5. AuthenticationMecanismType is set to 'Custom' in those cases. This attribute should not be used by runtime. It is only used by the writer to write back out the custom AuthenticationMechanismType string in the case of custom AuthenticationMechanismType's. 
This variable is internal, used only by the reader/writer classes, and can change or disappear without notice. "/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="AuthenticationMechanismType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
BasicPassword=0
Kerbv5=1"/> - </eAnnotations> - <eLiterals name="BasicPassword"/> - <eLiterals name="Kerbv5" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ConfigProperty"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The config property contains a declaration of a single
configuration property for a ManagedConnectionFactory instance.

Each ManagedConnectionFactory instance creates connections to a specific EIS instance based on the properties configured on the ManagedConnectionFactory instance. The configurable properties are specified only once in the deployment descriptor, even though a resource adapter can be used to configure multiple ManagedConnnection-Factory instances (that create connections to different instances of the same EIS).

The declaration consists of an optional description, name, type
and an optional value of the configuration property. If the resource
adapter provider does not specify a value than the deployer is
responsible for providing a valid value for a configuration property.

Any bounds or well-defined values of properties should be described in the description.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Contains the name of a configuration property.

The connector architecture defines a set of well-defined properties all of type java.lang.String. These are as follows:

 ServerName
 PortNumber
 UserName
 Password
 ConnectionURL

A resource adapter provider can extend this property set to include properties specific to the resource adapter and its underlying EIS.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Contains the fully qualified Java type of a configuration property as required by ManagedConnection-Factory instance.

The following are the legal values of config-property-type:
 java.lang.Boolean, java.lang.String, java.lang.Integer,
 java.lang.Double, java.lang.Byte, java.lang.Short,
 java.lang.Long, java.lang.Float, java.lang.Character"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element config-property-value contains the value
 of a configuration entry. Note, it is possible for a
 resource adapter deployer to override this
 configuration information during deployment.

 Example:
 <config-property-value>WombatServer</config-property-value>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="SecurityPermission"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies a security permission that is required by the resource adapter code.

The security permission listed in the deployment descriptor are ones that are different from those required by the default permission set as specified in the connector specification. The optional description can mention specific reason that resource adapter requires a given security permission.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="specification" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element permission-spec specifies a security permission based on the Security policy file syntax. 
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="License"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Specifies licensing requirements for the resource adapter module. Specifies whether a license is required to deploy and use this resource adapter, and an optional description of the licensing terms (examples: duration of license, number of connection restrictions)."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated Replaced with descriptions
The description is used to provide text describing the license."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="required" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="TransactionSupportKind"> - <eLiterals name="NoTransaction"/> - <eLiterals name="LocalTransaction" value="1"/> - <eLiterals name="XATransaction" value="2"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="InboundResourceAdapter"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The inbound-resourceadapterType specifies information
about an inbound resource adapter. This contains information
specific to the implementation of the resource adapter
library as specified through the messageadapter element."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="messageAdapter" eType="#//MessageAdapter" - containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The messagelistener-type element content must be
 unique in the messageadapter. Several messagelisteners
 can not use the same messagelistener-type."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="OutboundResourceAdapter"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The outbound-resourceadapterType specifies information about
an outbound resource adapter. The information includes fully
qualified names of classes/interfaces required as part of
the connector architecture specified contracts for
connection management, level of transaction support
provided, one or more authentication mechanisms supported
and additional required security permissions.

If there is no authentication-mechanism specified as part of
resource adapter element then the resource adapter does not
support any standard security authentication mechanisms as
part of security contract. The application server ignores
the security part of the system contracts in this case."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="reauthenticationSupport" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element reauthentication-support specifies
 whether the resource adapter implementation supports
 re-authentication of existing Managed- Connection
 instance. Note that this information is for the
 resource adapter implementation and not for the
 underlying EIS instance. This element must have
 either a "true" or "false" value."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="transactionSupport" eType="#//TransactionSupportKind" - unsettable="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="connectionDefinitions" - upperBound="-1" eType="#//ConnectionDefinition" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="authenticationMechanisms" - upperBound="-1" eType="#//AuthenticationMechanism" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MessageAdapter"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The messageadapterType specifies information about the
messaging capabilities of the resource adapter. This
contains information specific to the implementation of the
resource adapter library as specified through the
messagelistener element."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="messageListeners" lowerBound="1" - upperBound="-1" eType="#//MessageListener" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ConnectionDefinition"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The connection-definitionType defines a set of connection
interfaces and classes pertaining to a particular connection
type. This also includes configurable properties for
ManagedConnectionFactory instances that may be produced out
of this set."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="managedConnectionFactoryClass" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element managedconnectionfactory-class specifies
 the fully qualified name of the Java class that
 implements the
 javax.resource.spi.ManagedConnectionFactory interface.
 This Java class is provided as part of resource
 adapter's implementation of connector architecture
 specified contracts. The implementation of this
 class is required to be a JavaBean.

 Example:
 <managedconnectionfactory-class>
 com.wombat.ManagedConnectionFactoryImpl
 </managedconnectionfactory-class>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="connectionFactoryInterface" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element connectionfactory-interface specifies
 the fully qualified name of the ConnectionFactory
 interface supported by the resource adapter.

 Example:
 <connectionfactory-interface>com.wombat.ConnectionFactory
 </connectionfactory-interface>

 OR

 <connectionfactory-interface>javax.resource.cci.ConnectionFactory
 </connectionfactory-interface>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="connectionFactoryImplClass" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element connectionfactory-impl-class specifies
 the fully qualified name of the ConnectionFactory
 class that implements resource adapter
 specific ConnectionFactory interface.

 Example:

 <connectionfactory-impl-class>com.wombat.ConnectionFactoryImpl
 </connectionfactory-impl-class>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="connectionInterface" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The connection-interface element specifies the fully
 qualified name of the Connection interface supported
 by the resource adapter.

 Example:

 <connection-interface>javax.resource.cci.Connection
 </connection-interface>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="connectionImplClass" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The connection-impl-classType specifies the fully
 qualified name of the Connection class that
 implements resource adapter specific Connection
 interface. It is used by the connection-impl-class
 elements.

 Example:

 <connection-impl-class>com.wombat.ConnectionImpl
 </connection-impl-class>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="configProperties" upperBound="-1" - eType="#//ConfigProperty" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="AdminObject"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The adminobjectType specifies information about an
administered object. Administered objects are specific to a
messaging style or message provider. This contains
information on the Java type of the interface implemented by
an administered object, its Java class name and its
configuration properties."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="adminObjectInterface" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element adminobject-interface specifies the
 fully qualified name of the Java type of the
 interface implemented by an administered object.

 Example:
 <adminobject-interface>javax.jms.Destination
 </adminobject-interface>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="adminObjectClass" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element adminobject-class specifies the fully
 qualified Java class name of an administered object.

 Example:
 <adminobject-class>com.wombat.DestinationImpl
 </adminobject-class>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="configProperties" upperBound="-1" - eType="#//ConfigProperty" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MessageListener"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The messagelistenerType specifies information about a
specific message listener supported by the messaging
resource adapter. It contains information on the Java type
of the message listener interface and an activation
specification."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="messageListenerType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element messagelistener-type specifies the fully
 qualified name of the Java type of a message
 listener interface.

 Example:

 <messagelistener-type>javax.jms.MessageListener
 </messagelistener-type>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="activationSpec" lowerBound="1" - eType="#//ActivationSpec" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ActivationSpec"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The activationspecType specifies an activation
specification. The information includes fully qualified
Java class name of an activation specification and a set of
required configuration property names."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="activationSpecClass" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The element activationspec-class specifies the fully
 qualified Java class name of the activation
 specification class. This class must implement the
 javax.resource.spi.ActivationSpec interface. The
 implementation of this class is required to be a
 JavaBean.

 Example:
 <activationspec-class>com.wombat.ActivationSpecImpl
 </activationspec-class>"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="requiredConfigProperties" - upperBound="-1" eType="#//RequiredConfigPropertyType" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="RequiredConfigPropertyType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The required-config-propertyType contains a declaration
of a single configuration property used for specifying a
required configuration property name. It is used
by required-config-property elements.

Example:

<required-config-property>Destination</required-config-property>"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"/> - </eClassifiers> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/jsp.ecore b/plugins/org.eclipse.jst.j2ee.core/model/jsp.ecore deleted file mode 100644 index 4fb1b0052..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/jsp.ecore +++ /dev/null @@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="jsp" - nsURI="jsp.xmi" nsPrefix="org.eclipse.jst.j2ee.jsp"> - <eClassifiers xsi:type="ecore:EClass" name="JSPConfig"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The jsp-configType is used to provide global configuration
information for the JSP files in a web application. It has
two subelements, taglib and jsp-property-group."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="tagLibs" upperBound="-1" - eType="#//TagLibRefType" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="propertyGroups" upperBound="-1" - eType="#//JSPPropertyGroup" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="JSPPropertyGroup" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The jsp-property-groupType is used to group a number of
files so they can be given global property information.
All files so described are deemed to be JSP files. The
following additional properties can be described:

- Control enabling of EL evaluation. - Control enabling
of Scripting elements. - Indicate pageEncoding
information. - Indicating that a resource is a JSP
document - Prelude and Coda automatic includes."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="urlPattern" upperBound="-1" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="elIgnored" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - defaultValueLiteral="true" unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Can be used to easily set the isELIgnored
	property of a group of JSP pages. By default,
	the EL evaluation is enabled for Web
	Applications using a Servlet 2.4 or greater
	web.xml, and disabled otherwise."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="pageEncoding" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The valid values of page-encoding are those of
	the pageEncoding page directive. It is a
	translation-time error to name different
	encodings in the pageEncoding attribute of the
	page directive of a JSP page and in a JSP
	configuration element matching the page. It is
	also a translation-time error to name different
	encodings in the prolog of a document in XML
	syntax and in a JSP configuration element
	matching the document. It is legal to name the
	same encoding through mulitple mechanisms."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="scriptingInvalid" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - defaultValueLiteral="true" unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Can be used to easily disable scripting in a
	group of JSP pages. By default, scripting is
	enabled."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="isXML" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - defaultValueLiteral="false" unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="If true, denotes that the group of resources
	that match the URL pattern are JSP documents,
	and thus must be interpreted as XML documents.
	If false, the resources are assumed to not be
	JSP documents, unless there is another property
	group that indicates otherwise."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="includePreludes" upperBound="-1" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The include-prelude element is a
	context-relative path that must correspond to
	an element in the Web Application. When the
	element is present, the given path will be
	automatically included (as in an include
	directive) at the beginning of each JSP page in
	this jsp-property-group."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="includeCodas" upperBound="-1" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The include-coda element is a context-relative
	path that must correspond to an element in the
	Web Application. When the element is present,
	the given path will be automatically included
	(as in an include directive) at the end of each
	JSP page in this jsp-property-group."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="TagLibRefType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
A taglib can be used to provide information on a tag
library that is used by a JSP page within the Web
Application."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="taglibURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value=" A taglib-uri element describes a URI identifying a
 tag library used in the web application. The body
 of the taglib-uri element may be either an
 absolute URI specification, or a relative URI.
 There should be no entries in web.xml with the
 same taglib-uri value."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="taglibLocation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="the taglib-location element contains the location
 (as a resource relative to the root of the web
 application) where to find the Tag Library
 Description file for the tag library."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/taglib.ecore b/plugins/org.eclipse.jst.j2ee.core/model/taglib.ecore deleted file mode 100644 index d0605d8ae..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/taglib.ecore +++ /dev/null @@ -1,223 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="taglib" - nsURI="taglib.xmi" nsPrefix="org.eclipse.jst.j2ee.taglib"> - <eClassifiers xsi:type="ecore:EClass" name="TagLib" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The taglib tag is the document root, it defines:

description a simple string describing the "use" of this taglib,
 should be user discernable

display-name the display-name element contains a
 short name that is intended to be displayed
 by tools

icon optional icon that can be used by tools

tlib-version the version of the tag library implementation

short-name a simple default short name that could be
 used by a JSP authoring tool to create
 names with a mnemonic value; for example,
 the it may be used as the prefered prefix
 value in taglib directives

uri a uri uniquely identifying this taglib

validator optional TagLibraryValidator information

listener optional event listener specification

tag one or more tags in the tag library

tag-file one or more tag files in the tag library

function zero or more EL functions defined in this
 tag library

taglib-extension zero or more extensions that provide extra
		information about this taglib, for tool
		consumption"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="tagLibVersion" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Describes this version number of the tag library (dewey decimal).
@regexp [0-9]*{ "."[0-9] }0..3"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="jspVersion" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Describes the JSP version (number) this tag library requires in order to function (dewey decimal). Default is 1.2
@regexp [0-9]*{ "."[0-9] }0..3"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="shortName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The value of the short-name element is a name that could be used by a JSP authoring tool to create names with a mnemonic value; for example, it may be used as the prefered prefix value in taglib directives. Do not use white space, and do not start with digits or underscore."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="uri" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The value of the uri element is a public URI that uniquely identifies the exact semantics of this taglibrary."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="tags" lowerBound="1" upperBound="-1" - eType="#//JSPTag" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="validator" eType="#//Validator" - containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The validator element provides information on an optional validator that can be used to validate the conformance of a JSP page to using this tag library.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="listeners" upperBound="-1" - eType="ecore:EClass common.ecore#//Listener" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="functions" upperBound="-1" - eType="#//Function" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="taglibExtensions" upperBound="-1" - eType="#//TldExtension" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="JSPTag" eSuperTypes="common.ecore#//DescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The tag element defines an action in this tag library. The tag element has one attribute, id.
The tag element may have several subelements defining:
name -- The unique action name
tag-class -- The tag handler class implementing javax.servlet.jsp.tagext.Tag
tei-class -- An optional subclass of javax.servlet.jsp.tagext.TagExtraInfo
body-content -- The body content type
display-name -- A short name that is intended to be displayed by tools
small-icon -- Optional small-icon that can be used by tools
large-icon -- Optional large-icon that can be used by tools
description -- Optional tag-specific information
variable -- Optional scripting variable information
attribute -- All attributes of this action
example -- Optional informal description of an example of a use of this action.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="bodyContent" eType="#//BodyContentType" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Provides a hint as to the content of the body of this tag. Primarily intended for use by page composition tools.There are currently three values specified:

tagdependent - The body of the tag is interpreted by the tag implementation itself, and is most likely in a		different "langage", e.g embedded SQL statements.

JSP - The body of the tag contains nested JSP syntax

empty - The body must be emptyThe default (if not defined) is JSP#PCDATA ::= tagdependent | JSP | empty"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="example" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The example element provides an informal description of an example of the use of a tag."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="dynamicAttributes" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="attributes" upperBound="-1" - eType="#//JSPTagAttribute" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="variables" upperBound="-1" - eType="#//JSPVariable" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The variable element provides information on the scripting variables defined by this tag.
It is a (translation time) error for an action that has one or more variable subelements to have a TagExtraInfo class that returns a non-null object.
The subelements of variable are of the form:
name-given -- The variable name as a constant
name-from-attribute -- The name of an attribute whose (translation time) value will give the name of the variable. One of name-given or namefrom-attribute is required.
variable-class -- Name of the class of the variable. java.lang.String is default.
declare -- Whether the variable is declared or not. True is the default.
scope -- The scope of the scripting variable defined. NESTED is default.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="tagClass" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The tag-class element indicates the subclass of javax.serlvet.jsp.tagext.Tag that implements the request time semantics for this tag. This element is required.
@regexp fully qualified Java class name
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="teiClass" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The tei-class element indicates the subclass of javax.servlet.jsp.tagext.TagExtraInfo for this tag. The class is instantiated at translation time. This element is optional.
@regexp fully qualified Java class name"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="JSPTagAttribute"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The attribute tag defines an attribute for the nesting tag"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Defines the canonical name of a tag or attribute being defined (required)."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="required" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Defines if the nesting attribute is required or optional."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="rtExprValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - defaultValueLiteral="false" unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Defines if the nesting attribute can have scriptlet expressions asa value, i.e the value of the attribute may be dynamically calculatedat request time, as opposed to a static value determined at translationtime. (optional)
Default = false"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="fragment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The value of the type element describes the Java type of the attributes value.
For static values (those determined at translation time) the type is always java.lang.String."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="BodyContentType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4, added TAGDEPENDENT,EMPTY,scriptless,SCRIPTLESS
Provides a hint as to the content of the body of this tag.
Primarily intended for use by page composition tools.

There are currently four values specified:

tagdependent The body of the tag is interpreted by the tag
 implementation itself, and is most likely
 in a different "langage", e.g embedded SQL
 statements.

JSP The body of the tag contains nested JSP
 syntax.

empty The body must be empty

scriptless The body accepts only template text, EL
 Expressions, and JSP action elements. No
 scripting elements are allowed.
JSP=0
empty=1
tagdependent=2
TAGDEPENDENT=3
EMPTY=4
scriptless=5
SCRIPTLESS=6"/> - </eAnnotations> - <eLiterals name="tagdependent"/> - <eLiterals name="JSP" value="1"/> - <eLiterals name="empty" value="2"/> - <eLiterals name="scriptless" value="3"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Validator"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The validator element provides information on an optional validator that can be used to validate the conformance of a JSP page to using this tag library.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="validatorClass" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="defines the TagLibraryValidator class that can be
used to validate the conformance of a JSP page to using this tag library."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="initParams" upperBound="-1" - eType="ecore:EClass webapplication.ecore#//InitParam" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="JSPVariable"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="nameGiven" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The name-given element provides the name for the scripting variable.

One of name-given or name-from-attribute is required."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="nameFromAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The name of an attribute whose (translation-time) value will give the name of the variable."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="declare" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The value of the declare element indicates whether the scripting variable is to be defined or not. See TagExtraInfo for details.
This element is optional and is the default is true.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="scope" eType="#//JSPScriptingVariableScope"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="variableClass" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="JSPScriptingVariableScope"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="NESTED=0
AT_BEGIN=1
AT_END=2"/> - </eAnnotations> - <eLiterals name="NESTED"/> - <eLiterals name="AT_BEGIN" value="1"/> - <eLiterals name="AT_END" value="2"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Function" eSuperTypes="common.ecore#//DescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The function element is used to provide information on each
function in the tag library that is to be exposed to the EL.

The function element may have several subelements defining:

description Optional tag-specific information

display-name A short name that is intended to be
 displayed by tools

icon Optional icon element that can be used
 by tools

name A unique name for this function

function-class Provides the name of the Java class that
 implements the function

function-signature Provides the signature, as in the Java
 Language Specification, of the Java
 method that is to be used to implement
 the function.

example Optional informal description of an
 example of a use of this function"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="signature" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Provides the signature, as in the Java Language
 Specification, of the static Java method that is
 to be used to implement the function.

 Example:

 java.lang.String nickName( java.lang.String, int )"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="example" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The example element contains an informal description
 of an example of the use of this function."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="functionClass" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Provides the fully-qualified class name of the Java
 class containing the static method that implements
 the function."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="functionExtensions" upperBound="-1" - eType="#//TldExtension" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="TagFile" eSuperTypes="common.ecore#//DescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
Defines an action in this tag library that is implemented
as a .tag file.

The tag-file element has two required subelements:

name The unique action name

path Where to find the .tag file implementing this
 action, relative to the root of the web application or
	the root of the JAR file for a tag library packaged in
	a JAR. This must begin with /WEB-INF/tags if the .tag
	file resides in the WAR, or /META-INF/tags if the .tag
	file resides in a JAR."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="path" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="example" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="tagExtensions" upperBound="-1" - eType="#//TldExtension" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="TldExtension"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="namespace" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="extensionElements" lowerBound="1" - upperBound="-1" eType="#//ExtensibleType" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ExtensibleType" abstract="true"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/webapplication.ecore b/plugins/org.eclipse.jst.j2ee.core/model/webapplication.ecore deleted file mode 100644 index a37d929ad..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/webapplication.ecore +++ /dev/null @@ -1,538 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="webapplication" - nsURI="webapplication.xmi" nsPrefix="org.eclipse.jst.j2ee.webapplication"> - <eClassifiers xsi:type="ecore:EClass" name="WebApp" eSuperTypes="common.ecore#//JNDIEnvRefsGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The web-app element is the root of the deployment descriptor for
a web application."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="distributable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The distributable element, by its presence in a web application deployment descriptor, indicates that this web application is programmed appropriately to be deployed into a distributed servlet container"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="version" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="contexts" upperBound="-1" - eType="#//ContextParam" containment="true" eOpposite="#//ContextParam/webApp"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated see contextParams"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="errorPages" upperBound="-1" - eType="#//ErrorPage" containment="true" eOpposite="#//ErrorPage/webApp"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="fileList" eType="#//WelcomeFileList" - containment="true" eOpposite="#//WelcomeFileList/webApp"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="tagLibs" upperBound="-1" - eType="#//TagLibRef" containment="true" eOpposite="#//TagLibRef/webApp"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated See jsp::TagLibRef
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="constraints" upperBound="-1" - eType="#//SecurityConstraint" containment="true" eOpposite="#//SecurityConstraint/webApp"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="loginConfig" eType="#//LoginConfig" - containment="true" eOpposite="#//LoginConfig/webApp"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="mimeMappings" upperBound="-1" - eType="#//MimeMapping" containment="true" eOpposite="#//MimeMapping/webApp"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="sessionConfig" eType="#//SessionConfig" - containment="true" eOpposite="#//SessionConfig/webApp"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="servletMappings" upperBound="-1" - eType="#//ServletMapping" containment="true" eOpposite="#//ServletMapping/webApp"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="servlets" upperBound="-1" - eType="#//Servlet" containment="true" eOpposite="#//Servlet/webApp"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="securityRoles" upperBound="-1" - eType="ecore:EClass common.ecore#//SecurityRole" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="filters" upperBound="-1" - eType="#//Filter" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="filterMappings" upperBound="-1" - eType="#//FilterMapping" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Filter mappings defined for the web app"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="listeners" upperBound="-1" - eType="ecore:EClass common.ecore#//Listener" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The listeners collection contains deployment properties for a web application listener beans in the web app."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="contextParams" upperBound="-1" - eType="ecore:EClass common.ecore#//ParamValue" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="jspConfig" eType="ecore:EClass jsp.ecore#//JSPConfig" - containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="messageDestinations" upperBound="-1" - eType="ecore:EClass common.ecore#//MessageDestination" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="localEncodingMappingList" - eType="#//LocalEncodingMappingList" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ContextParam"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated
The context-param element contains the declaration of a web application's servlet context initialization parameters."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="paramName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated
The param-name element contains the name of a parameter."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="paramValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated
The param-value element contains the value of a parameter."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="webApp" eType="#//WebApp" - transient="true" eOpposite="#//WebApp/contexts"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Servlet" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The servlet element contains the declarative data of a servlet. If a jsp-file is specified and the load-on-startup element is present, then the JSP should be precompiled and loaded."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="servletName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The servlet-name element contains the canonical name of the servlet."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="loadOnStartup" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The load-on-startup element indicates that this servlet should be loaded on the startup of the web application. The optional contents of these element must be a positive integer indicating the order in which the servlet should be loaded. Lower integers are loaded before higher integers. If no value is specified, or if the value specified is not a positive integer, the container is free to load it at any time in the startup sequence.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="webApp" eType="#//WebApp" - transient="true" eOpposite="#//WebApp/servlets"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="webType" lowerBound="1" - eType="#//WebType" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="params" upperBound="-1" - eType="#//InitParam" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes initParams"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="securityRoleRefs" upperBound="-1" - eType="ecore:EClass common.ecore#//SecurityRoleRef" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="runAs" eType="ecore:EClass common.ecore#//RunAsSpecifiedIdentity" - containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="If defined for a servlet, overrides the security identity used to call an EJB by that servlet in this web application. The role-name is one of the security roles already defined for this web application."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="initParams" upperBound="-1" - eType="ecore:EClass common.ecore#//ParamValue" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ServletMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The servlet-mapping element defines a mapping between a servlet and a url pattern"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="urlPattern" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The url-pattern element contains the url pattern of the mapping. Must follow the rules specified in Section 10 of the Servlet API Specification."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The servlet-name element contains the canonical name of the
servlet. Each servlet name is unique within the web
application."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="webApp" eType="#//WebApp" - transient="true" eOpposite="#//WebApp/servletMappings"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="servlet" lowerBound="1" - eType="#//Servlet"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="SessionConfig"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The session-config element defines the session parameters for this web application."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="sessionTimeout" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The session-timeout element defines the default
 session timeout interval for all sessions created
 in this web application. The specified timeout
 must be expressed in a whole number of minutes.
 If the timeout is 0 or less, the container ensures
 the default behaviour of sessions is never to time
 out. If this element is not specified, the container
 must set its default timeout period."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="webApp" eType="#//WebApp" - transient="true" eOpposite="#//WebApp/sessionConfig"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="MimeMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The mime-mapping element defines a mapping between an extension and a mime type.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="extension" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The extension element contains a string describing an extension. example: "txt""/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="mimeType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The mime-type element contains a defined mime type. example: "text/plain""/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="webApp" eType="#//WebApp" - transient="true" eOpposite="#//WebApp/mimeMappings"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WelcomeFileList"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The welcome-file-list contains an ordered list of welcome files elements."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="webApp" eType="#//WebApp" - transient="true" eOpposite="#//WebApp/fileList"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="file" upperBound="-1" eType="#//WelcomeFile" - containment="true" eOpposite="#//WelcomeFile/fileList"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ErrorPage"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The error-page element contains a mapping between an error code or exception type to the path of a resource in the web application"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="location" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The location element contains the location of the resource in the web application"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="webApp" eType="#//WebApp" - transient="true" eOpposite="#//WebApp/errorPages"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="TagLibRef"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes jsp::TagLibRef
The taglib element is used to describe a JSP tag library."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="taglibURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated See jsp::TagLibRef

The taglib-uri element describes a URI, relative to the location of the web.xml document, identifying a Tag Library used in the Web Application."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="taglibLocation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated See jsp::TagLibRef

The taglib-location element contains the location (as a resource relative to the root of the web application) where to find the Tag Libary Description file for the tag library."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="webApp" eType="#//WebApp" - transient="true" eOpposite="#//WebApp/tagLibs"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="SecurityConstraint"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The security-constraint element is used to associate security constraints with one or more web resource collections"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="displayName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes displayNames"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="webApp" eType="#//WebApp" - transient="true" eOpposite="#//WebApp/constraints"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="webResourceCollections" - lowerBound="1" upperBound="-1" eType="#//WebResourceCollection" containment="true" - eOpposite="#//WebResourceCollection/secConstraint"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="authConstraint" eType="#//AuthConstraint" - containment="true" eOpposite="#//AuthConstraint/secConstraint"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="userDataConstraint" eType="#//UserDataConstraint" - containment="true" eOpposite="#//UserDataConstraint/secConstraint"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="displayNames" upperBound="-1" - eType="ecore:EClass common.ecore#//DisplayName" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WebResourceCollection"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The web-resource-collection element is used to identify a subset of the resources and HTTP methods on those resources within a web application to which a security constraint applies. If no HTTP methods are specified, then the security constraint applies to all HTTP methods.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="webResourceName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The web-resource-name contains the name of this web resource collection"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="urlPattern" unique="false" - lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="httpMethod" upperBound="-1" - eType="#//HTTPMethodTypeEnum"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="secConstraint" eType="#//SecurityConstraint" - transient="true" eOpposite="#//SecurityConstraint/webResourceCollections"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="URLs" upperBound="-1" eType="#//URLPatternType" - containment="true" eOpposite="#//URLPatternType/resCollection"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes urlPattern"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="HTTPs" upperBound="-1" - eType="#//HTTPMethodType" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes httpMethod"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="AuthConstraint"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The auth-constraintType indicates the user roles that
should be permitted access to this resource
collection. The role-name used here must either correspond
to the role-name of one of the security-role elements
defined for this web application, or be the specially
reserved role-name "*" that is a compact syntax for
indicating all roles in the web application. If both "*"
and rolenames appear, the container interprets this as all
roles. If no roles are defined, no user is allowed access
to the portion of the web application described by the
containing security-constraint. The container matches
role names case sensitively when determining access."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
A description of the auth constraint."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="roles" upperBound="-1" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="A list of role names for the auth constraint. Each element specifies the name of a security role (a String).
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="secConstraint" eType="#//SecurityConstraint" - transient="true" eOpposite="#//SecurityConstraint/authConstraint"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="UserDataConstraint"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The user-data-constraint element is used to indicate how data communicated between the client and container should be protected"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes descriptions
A description for the user data constraint."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="transportGuarantee" eType="#//TransportGuaranteeType" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The transport-guarantee element specifies that the communication between client and server should be NONE, INTEGRAL, or CONFIDENTIAL. NONE means that the application does not require any
transport guarantees. A value of INTEGRAL means that the application requires that the data sent between the client and server be sent in such a way that it can't be changed in transit. CONFIDENTIAL means that the application requires that the data be transmitted in a fashion that prevents other entities from observing the contents of the transmission. In most cases, the presence of the INTEGRAL or CONFIDENTIAL flag will indicate that the use of SSL is required."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="secConstraint" eType="#//SecurityConstraint" - transient="true" eOpposite="#//SecurityConstraint/userDataConstraint"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1" - eType="ecore:EClass common.ecore#//Description" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="LoginConfig"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The login-config element is used to configure the authentication method that should be used, the realm name that should be used for this application, and the attributes that are needed by the form login
mechanism."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="authMethod" eType="#//AuthMethodKind" - unsettable="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes initParamValues


The auth-method element is used to configure the authentication mechanism for the web application. As a prerequisite to gaining access to any web resources which are protected by an authorization constraint, a user must have authenticated using the configured mechanism. Legal values for this element are "BASIC", "DIGEST", "FORM", or "CLIENT-CERT"."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="realmName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The realm name element specifies the realm name to use in HTTP Basic authorization"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="authorizationMethod" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="webApp" eType="#//WebApp" - transient="true" eOpposite="#//WebApp/loginConfig"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="formLoginConfig" eType="#//FormLoginConfig" - containment="true" eOpposite="#//FormLoginConfig/loginConfig"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="FormLoginConfig"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The form-login-config element specifies the login and error pages that should be used in form based login. If form based authentication is not used, these elements are ignored."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="formLoginPage" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The form-login-page element defines the location in the web app where the page that can be used for login can be found"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="formErrorPage" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The form-error-page element defines the location in the web app where the error page that is displayed when login is not successful can be found"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="loginConfig" eType="#//LoginConfig" - transient="true" eOpposite="#//LoginConfig/formLoginConfig"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="InitParam"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated
The init-param element contains a name/value pair as an initialization param of the servlet"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="paramName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="paramValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@deprecated"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="ResAuthServletType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="CONTAINER=0
SERVLET=1
"/> - </eAnnotations> - <eLiterals name="CONTAINER"/> - <eLiterals name="SERVLET" value="1"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WebType" abstract="true"/> - <eClassifiers xsi:type="ecore:EClass" name="ServletType" eSuperTypes="#//WebType"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="className" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="JSPType" eSuperTypes="#//WebType"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="jspFile" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The jsp-file element contains the full path to a JSP file within the web application.
"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="URLPatternType"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="urlPattern" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="resCollection" eType="#//WebResourceCollection" - transient="true" eOpposite="#//WebResourceCollection/URLs"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="HTTPMethodTypeEnum"> - <eLiterals name="GET"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The http-method contains an HTTP method (GET | POST |...)"/> - </eAnnotations> - </eLiterals> - <eLiterals name="POST" value="1"/> - <eLiterals name="PUT" value="2"/> - <eLiterals name="DELETE" value="3"/> - <eLiterals name="HEAD" value="4"/> - <eLiterals name="OPTIONS" value="5"/> - <eLiterals name="TRACE" value="6"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="RoleNameType"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="roleName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WelcomeFile"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The welcome-file element contains file name to use as a default welcome file, such as index.html
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="welcomeFile" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="fileList" eType="#//WelcomeFileList" - transient="true" eOpposite="#//WelcomeFileList/file"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="TransportGuaranteeType"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="NONE=1
INTEGRAL=2
CONFIDENTIAL=3"/> - </eAnnotations> - <eLiterals name="NONE"/> - <eLiterals name="INTEGRAL" value="1"/> - <eLiterals name="CONFIDENTIAL" value="2"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ExceptionTypeErrorPage" eSuperTypes="#//ErrorPage"> - <eStructuralFeatures xsi:type="ecore:EReference" name="exceptionType" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The exception type contains a fully qualified class name of a Java exception type."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ErrorCodeErrorPage" eSuperTypes="#//ErrorPage"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="errorCode" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The error-code contains an HTTP error code, ex: 404
"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="FilterMapping"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Declaration of the filter mappings in this web application. The container uses the filter-mapping declarations to decide which filters to apply to a request, and in what order. The container matches the request URI to a Servlet in the normal way. To determine which filters to apply it matches filter-mapping declarations either on servlet-name, or on url-pattern for each filter-mapping element, depending on which style is used. The order in which filters are invoked is the order in which filter-mapping declarations that match a request URI for a servlet appear in the list of filter-mapping elements.The filter-name value must be the value of the <filtername> sub-elements of one of the <filter> declarations in the deployment descriptor.

@invariant The filter-name value must be the value of the Filter::name of one of the Filter declarations in the deployment descriptor.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="urlPattern" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The url-pattern element contains the url pattern of the mapping. Must follow the rules specified in Section 10 of the Servlet API Specification."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="dispatcherType" upperBound="4" - eType="#//DispatcherType"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="filter" lowerBound="1" - eType="#//Filter"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The filter being mapped"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="servlet" eType="#//Servlet"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="An optional servlet that is mapped by a filter mapping. servletName is used to resolve the servlet reference."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Filter" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Declares a filter in the web application application. The filter is mapped to either a servlet or a URL pattern in the filter-mapping element, using the filter-name value to reference. Filters can access the initialization parameters declared in the deployment descriptor at runtime via the FilterConfig interface.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The logical name of the filter. This name is used to map the filter."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="initParams" upperBound="-1" - eType="#//InitParam" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated, becomes initParamValues
The init-params contain a name/value pairs as initialization params for the filter
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="filterClass" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The fully qualified classname of the filter."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="initParamValues" upperBound="-1" - eType="ecore:EClass common.ecore#//ParamValue" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4
The init-param element contains a name/value pair as
 an initialization param of a servlet filter"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="DispatcherType"> - <eLiterals name="FORWARD"/> - <eLiterals name="INCLUDE" value="1"/> - <eLiterals name="REQUEST" value="2"/> - <eLiterals name="ERROR" value="3"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="LocalEncodingMappingList"> - <eStructuralFeatures xsi:type="ecore:EReference" name="localEncodingMappings" - lowerBound="1" upperBound="-1" eType="#//LocalEncodingMapping" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="LocalEncodingMapping"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="locale" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="encoding" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="HTTPMethodType"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="httpMethod" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="AuthMethodKind"> - <eLiterals name="UNSPECIFIED"/> - <eLiterals name="BASIC" value="1"/> - <eLiterals name="DIGEST" value="2"/> - <eLiterals name="FORM" value="3"/> - <eLiterals name="CLIENT_CERT" value="4"/> - </eClassifiers> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/webservice-j2ee.genmodel b/plugins/org.eclipse.jst.j2ee.core/model/webservice-j2ee.genmodel deleted file mode 100644 index dad0c5027..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/webservice-j2ee.genmodel +++ /dev/null @@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<genmodel:GenModel xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" - xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.jst.j2ee.core/webservices" - modelPluginID="org.eclipse.jst.j2ee.core" modelName="Webservice-j2ee" importerID="org.eclipse.emf.importer.rose" - usedGenPackages="j2ee.genmodel#//client j2ee.genmodel#//application j2ee.genmodel#//common j2ee.genmodel#//ejb j2ee.genmodel#//webapplication j2ee.genmodel#//wsclient j2ee.genmodel#//jsp j2ee.genmodel#//wscommon j2ee.genmodel#//wsdd ../../../plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../org.eclipse.jem/model/javaModel.genmodel#//java"> - <foreignModel>..\rose\webservice-j2ee.mdl</foreignModel> - <foreignModel>WORKSPACE_ROOT</foreignModel> - <foreignModel>D:\work\M5</foreignModel> - <genPackages prefix="Jaxrpcmap" basePackage="org.eclipse.jst.j2ee.webservice" disposableProviderFactory="true" - classPackageSuffix="internal.impl" utilityPackageSuffix="internal.util" ecorePackage="jaxrpcmap.ecore#/"> - <genClasses ecoreClass="jaxrpcmap.ecore#//JavaWSDLMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//JavaWSDLMapping/id"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//JavaWSDLMapping/packageMappings"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//JavaWSDLMapping/javaXMLTypeMappings"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//JavaWSDLMapping/exceptionMappings"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//JavaWSDLMapping/interfaceMappings"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//PackageMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//PackageMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//PackageMapping/packageType"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//PackageMapping/namespaceURI"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//JavaXMLTypeMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//JavaXMLTypeMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//JavaXMLTypeMapping/classType"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//JavaXMLTypeMapping/qnameScope"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//JavaXMLTypeMapping/anonymousTypeQname"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//JavaXMLTypeMapping/rootTypeQname"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//JavaXMLTypeMapping/variableMappings"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//ExceptionMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ExceptionMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ExceptionMapping/exceptionType"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ExceptionMapping/wsdlMessagePartName"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//ExceptionMapping/wsdlMessage"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//ExceptionMapping/constructorParameterOrder"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//ServiceInterfaceMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ServiceInterfaceMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ServiceInterfaceMapping/serviceInterface"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//ServiceInterfaceMapping/wsdlServiceName"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//ServiceInterfaceMapping/portMappings"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//ServiceEndpointInterfaceMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ServiceEndpointInterfaceMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ServiceEndpointInterfaceMapping/serviceEndpointInterface"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//ServiceEndpointInterfaceMapping/wsdlPortType"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//ServiceEndpointInterfaceMapping/wsdlBinding"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//ServiceEndpointInterfaceMapping/serviceEndpointMethodMappings"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//RootTypeQname"/> - <genClasses ecoreClass="jaxrpcmap.ecore#//VariableMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//VariableMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//VariableMapping/javaVariableName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//VariableMapping/xmlElementName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//VariableMapping/dataMember"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//VariableMapping/xmlAttributeName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//VariableMapping/xmlWildcard"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//WSDLMessage"/> - <genClasses ecoreClass="jaxrpcmap.ecore#//ConstructorParameterOrder"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ConstructorParameterOrder/id"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//ConstructorParameterOrder/elementNames"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//ElementName"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ElementName/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ElementName/text"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//WSDLServiceName"/> - <genClasses ecoreClass="jaxrpcmap.ecore#//PortMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//PortMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//PortMapping/portName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//PortMapping/javaPortName"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//WSDLPortType"/> - <genClasses ecoreClass="jaxrpcmap.ecore#//WSDLBinding"/> - <genClasses ecoreClass="jaxrpcmap.ecore#//ServiceEndpointMethodMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ServiceEndpointMethodMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ServiceEndpointMethodMapping/javaMethodName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ServiceEndpointMethodMapping/wsdlOperation"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//ServiceEndpointMethodMapping/wrappedElement"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//ServiceEndpointMethodMapping/methodParamPartsMappings"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//ServiceEndpointMethodMapping/wsdlReturnValueMapping"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//WSDLOperation"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLOperation/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLOperation/wsdlOperation"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//MethodParamPartsMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//MethodParamPartsMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//MethodParamPartsMapping/paramPosition"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//MethodParamPartsMapping/paramType"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//MethodParamPartsMapping/wsdlMessageMapping"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//WSDLReturnValueMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLReturnValueMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLReturnValueMapping/methodReturnValue"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLReturnValueMapping/wsdlMessagePartName"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//WSDLReturnValueMapping/wsdlMessage"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//WSDLMessageMapping"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLMessageMapping/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLMessageMapping/wsdlMessagePartName"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLMessageMapping/parameterMode"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLMessageMapping/soapHeader"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jaxrpcmap.ecore#//WSDLMessageMapping/wsdlMessage"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//WSDLMessagePartName"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLMessagePartName/id"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jaxrpcmap.ecore#//WSDLMessagePartName/wsdlMessagePartName"/> - </genClasses> - <genClasses ecoreClass="jaxrpcmap.ecore#//InterfaceMapping"/> - </genPackages> -</genmodel:GenModel> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/wsclient.ecore b/plugins/org.eclipse.jst.j2ee.core/model/wsclient.ecore deleted file mode 100644 index 8dbd4aa27..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/wsclient.ecore +++ /dev/null @@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="wsclient" - nsURI="webservice_client.xmi" nsPrefix="org.eclipse.jst.j2ee.webservice.wsclient"> - <eClassifiers xsi:type="ecore:EClass" name="ServiceRef" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-ref element declares a reference to a Web
 service. It contains optional description, display name and
 icons, a declaration of the required Service interface,
 an optional WSDL document location, an optional set
 of JAX-RPC mappings, an optional QName for the service element,
 an optional set of Service Endpoint Interfaces to be resolved
 by the container to a WSDL port, and an optional set of handlers."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="serviceInterface" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-interface element declares the fully qualified class
 name of the JAX-RPC Service interface the client depends on.
 In most cases the value will be javax.xml.rpc.Service. A JAX-RPC
 generated Service Interface class may also be specified."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="serviceRefName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-ref-name element declares logical name that the
 components in the module use to look up the Web service. It
 is recommended that all service reference names start with
 "service/"."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="wsdlFile" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value=" The wsdl-file element contains the URI location of a WSDL file. The
 location is relative to the root of the module."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="jaxrpcMappingFile" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The jaxrpc-mapping-file element contains the name of a file that
 describes the JAX-RPC mapping between the Java interaces used by
 the application and the WSDL description in the wsdl-file. The
 file name is a relative path within the module file."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="portComponentRefs" upperBound="-1" - eType="#//PortComponentRef" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The port-component-ref element declares a client dependency
 on the container for resolving a Service Endpoint Interface
 to a WSDL port. It optionally associates the Service Endpoint
 Interface with a particular port-component. This is only used
 by the container for a Service.getPort(Class) method call."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="handlers" upperBound="-1" - eType="#//Handler" containment="true"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value=" Declares the handler for a port-component. Handlers can access the
 init-param name/value pairs using the HandlerInfo interface. If
 port-name is not specified, the handler is assumed to be associated
 with all ports of the service."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="serviceQname" lowerBound="1" - eType="ecore:EClass common.ecore#//QName" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="PortComponentRef"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The port-component-ref element declares a client dependency
 on the container for resolving a Service Endpoint Interface
 to a WSDL port. It optionally associates the Service Endpoint
 Interface with a particular port-component. This is only used
 by the container for a Service.getPort(Class) method call."/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="portComponentLink" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The port-component-link element links a port-component-ref to a
 specific port-component required to be made available by a service
 reference.

 The value of a port-component-link must be the port-component-name
 of a port-component in the same module or another module in the same
 application unit. The syntax for specification follows the syntax
 defined for ejb-link in the EJB 2.0 specification."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="serviceEndpointInterface" - lowerBound="1" eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-endpoint-interface element defines a fully qualified
 Java class that represents the Service Endpoint Interface of a
 WSDL port."/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Handler" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Declares the handler for a port-component. Handlers can access the
 init-param name/value pairs using the HandlerInfo interface. If
 port-name is not specified, the handler is assumed to be associated
 with all ports of the service.

 Used in: service-ref"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="handlerName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Defines the name of the handler. The name must be unique within the module."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="soapRoles" upperBound="-1" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The soap-role element contains a SOAP actor definition that the Handler will play as a role."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="portNames" upperBound="-1" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The port-name element defines the WSDL port-name that a handler should be associated with."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="handlerClass" lowerBound="1" - eType="ecore:EClass ../../org.eclipse.jem/model/java.ecore#//JavaClass"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Defines a fully qualified class name for the handler implementation."/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="initParams" upperBound="-1" - eType="ecore:EClass common.ecore#//ParamValue" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="soapHeaders" upperBound="-1" - eType="ecore:EClass common.ecore#//QName" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WebServicesClient"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="componentScopedRefs" upperBound="-1" - eType="#//ComponentScopedRefs" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="serviceRefs" upperBound="-1" - eType="#//ServiceRef" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ComponentScopedRefs"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="@version J2EE1.4 deprecated"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="componentName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="serviceRefs" lowerBound="1" - upperBound="-1" eType="#//ServiceRef" containment="true"/> - </eClassifiers> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/wscommon.ecore b/plugins/org.eclipse.jst.j2ee.core/model/wscommon.ecore deleted file mode 100644 index 3b771bb7a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/wscommon.ecore +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="wscommon" - nsURI="wscommon.xmi" nsPrefix="org.eclipse.jst.j2ee.webservice.wscommon"> - <eClassifiers xsi:type="ecore:EClass" name="InitParam"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="paramName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="paramValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptionTypes" upperBound="-1" - eType="#//DescriptionType" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="SOAPHeader" eSuperTypes="common.ecore#//QName"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Defines the QName of a SOAP header that will be processed by the handler.
"/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="SOAPRole"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The soap-role element contains a SOAP actor definition that the Handler will play as a role.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="soapRole" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="PortName"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="portName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="DescriptionType" eSuperTypes="common.ecore#//Description"/> - <eClassifiers xsi:type="ecore:EClass" name="DisplayNameType" eSuperTypes="common.ecore#//DisplayName"/> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/model/wsdd.ecore b/plugins/org.eclipse.jst.j2ee.core/model/wsdd.ecore deleted file mode 100644 index 299ecc0ce..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/model/wsdd.ecore +++ /dev/null @@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="wsdd" - nsURI="wsdd.xmi" nsPrefix="org.eclipse.jst.j2ee.webservice.wsdd"> - <eClassifiers xsi:type="ecore:EClass" name="WebServices" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The webservices element is the root element for the web services deployment descriptor. It specifies the set of Web service descriptions that are to be deployed into the J2EE Application Server and the dependencies they have on container resources and services.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="webServiceDescriptions" - lowerBound="1" upperBound="-1" eType="#//WebServiceDescription" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WebServiceDescription"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The webservice-description element defines a WSDL document file and the set of Port components associated with the WSDL ports defined in the WSDL document. There may be multiple webservice-descriptions defined within a module.

All WSDL file ports must have a corresponding port-component element defined.

Used in: webservices
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="jaxrpcMappingFile" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The jaxrpc-mapping-file element contains the name of a file that describes the JAX-RPC mapping between the Java interaces used by the application and the WSDL description in the wsdl-file. The file name is a relative path within the module.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="webServiceDescriptionName" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The webservice-description-name identifies the collection of port-components associated with a WSDL file and JAX-RPC mapping. The name must be unique within the deployment descriptor.


"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="wsdlFile" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The wsdl-file element contains the name of a WSDL file in the module. The file name is a relative path within the module.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="smallIcon" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="largeIcon" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="displayName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="portComponents" lowerBound="1" - upperBound="-1" eType="#//PortComponent" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptionType" eType="ecore:EClass wscommon.ecore#//DescriptionType" - containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="displayNameType" eType="ecore:EClass wscommon.ecore#//DisplayNameType" - containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="iconType" eType="ecore:EClass common.ecore#//IconType" - containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="PortComponent"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The port-component element associates a WSDL port with a Web service interface and implementation. It defines the name of the port as a component, optional description, optional display name, optional iconic representations, WSDL port QName, Service Endpoint Interface, Service Implementation Bean.
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="portComponentName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The port-component-name element specifies a port component's name. This name is assigned by the module producer to name the service implementation bean in the module's deployment descriptor. The name must be unique among the port component names defined in the same module.

"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="serviceEndpointInterface" - eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-endpoint-interface element contains the fully-qualified name of the port component's Service Endpoint Interface.
"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="smallIcon" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="largeIcon" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="displayName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="wsdlPort" lowerBound="1" - eType="#//WSDLPort" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="serviceImplBean" lowerBound="1" - eType="#//ServiceImplBean" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="handlers" upperBound="-1" - eType="#//Handler" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="descriptionType" eType="ecore:EClass wscommon.ecore#//DescriptionType" - containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="displayNameType" eType="ecore:EClass wscommon.ecore#//DisplayNameType" - containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="iconType" eType="ecore:EClass common.ecore#//IconType" - containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="WSDLPort" eSuperTypes="common.ecore#//QName"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Defines the name space and local name part of the WSDL port QName.
"/> - </eAnnotations> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ServiceImplBean"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The service-impl-bean element defines the Web service implementation.A service implementation can be an EJB bean class or JAX-RPC web component. Existing EJB implementations are exposed as a Web service using an ejb-link.

Used in: port-component
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="eEJBLink" eType="#//EJBLink" - containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="eServletLink" eType="#//ServletLink" - containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="beanLink" eType="#//BeanLink" - containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="ServletLink" eSuperTypes="#//BeanLink"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The servlet-link element is used in the service-impl-bean element to specify that a Service Implementation Bean is defined as a JAX-RPC Service Endpoint.

The value of the servlet-link element must be the servlet-name of a JAX-RPC Service Endpoint in the same WAR file.

Used in: service-impl-bean
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="servletLink" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="EJBLink" eSuperTypes="#//BeanLink"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="The ejb-link element is used in the service-impl-bean element to specify that a Service Implementation Bean is defined as a Web Service Endpoint.

The value of the ejb-link element must be the ejb-name of an enterprise bean in the same ejb-jar file.

Used in: service-impl-bean

Examples:
<ejb-link>EmployeeRecord</ejb-link>
	<ejb-link>../products/product.jar#ProductEJB</ejb-link>
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="ejbLink" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Handler" eSuperTypes="common.ecore#//CompatibilityDescriptionGroup"> - <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> - <details key="documentation" value="Declares the handler for a port-component. Handlers can access the init-param name/value pairs using the HandlerInfo interface.

Used in: port-component
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="handlerName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="handlerClass" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="initParams" upperBound="-1" - eType="ecore:EClass wscommon.ecore#//InitParam" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="soapHeaders" upperBound="-1" - eType="ecore:EClass wscommon.ecore#//SOAPHeader" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="soapRoles" upperBound="-1" - eType="ecore:EClass wscommon.ecore#//SOAPRole" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="BeanLink"/> -</ecore:EPackage> diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb.properties deleted file mode 100644 index cc6195348..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb.properties +++ /dev/null @@ -1,51 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2004 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: -# IBM Corporation - initial API and implementation -############################################################################### -Ejb_provider_plugin_prob=Ejb provider plugin startup - Problem initializing plugin -Ejbext_provider_plugin_prob=Ejbext provider plugin startup - Problem initializing plugin -EJB_UI_STARTUP=EJB UI STARTUP -EJB_Path__=EJB Path: -Size__=Size: -Edit_the_bean_class=Edit the bean class -EJB_Tree=EJB Tree -EJB_Jar_Components=EJB JAR Components -EJB_Models=EJB Models -EJB_Features=EJB Features -Exception_loading_plugin=Exception loading plugin -Create=Create -Create_Attribute...=Create Attribute... -createAttribute=createAttribute -Edit=Edit -Add_To_Key=Add To Key -delete=delete -Unknown=Unknown -Remove_From_Key=Remove From Key -Delete=Delete -Delete_Attribute...=Delete Attribute... -additions=additions -CMDS_Cannot_reflect_JavaClass_ERROR_=IWAE0068E Cannot reflect JavaClass because its name is not set for -CMDS_CLASS_SET_FAILED_STRING_ERROR_=IWAE0069E The Java type named {0} could not be set for the {1} because its EJB is null. -CMDS_Cannot_perform_INFO_=IWAE0070I Cannot perform the command request because the EJB is null for the command: -CMDS_Cannot_add_the_feat_INFO_=IWAE0071I Cannot add the feature to the key because the feature is null for the command: -CMDS_Cannot_remove_the_INFO_=IWAE0072I Cannot remove the feature from the key because the feature is null for the command: -CMDS_Initializing_UI_=-- Java Generation :: Initializing... -CMDS_Generating_UI_=-- Java Generation :: Generating... -CMDS_Finishing_UI_=-- Java Generation :: Finishing... -CMDS_Analyzing_UI_=-- Java Generation :: Analyzing... -CMDS_Cancelled_WARNING_=Cancelled -CMDS_Multiple_EnterpriseBean_Up_INFO_=IWAE0073I Multiple EnterpriseBean Updates -CMDS_CREATING_TASK_UI_=Creating bean named "{0}" -CMDS_UPDATING_TASK_UI_=Updating bean named "{0}" -CMDS_DELETING_TASK_UI_=Deleting bean named "{0}" -CMDS_Updating_Metadata..._UI_=-- Updating Metadata... -Updating=Updating -New_key_attribute_added_wi=New key attribute added without attribute helper. -Error_has_occurred=Error has occurred - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin.properties deleted file mode 100644 index 953194431..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin.properties +++ /dev/null @@ -1,16 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2004 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: -# IBM Corporation - initial API and implementation -############################################################################### -Could_not_find_root_object_ERROR_=IWAE0074E Could not find root object in resource: {0} -An_error_occurred_while_sa_ERROR_=IWAE0075E An error occurred while saving. -Cannot_run_J2EEUIWorkingCo_ERROR_=IWAE0076E Cannot run J2EEUIWorkingCopyManager operation because the Workspace tree is locked. -Unable_to_save_read-only_f_ERROR_=IWAE0077E Unable to save read-only file: {0} -The_following_resources_ne_UI_=The following resources need to be saved but are currently shared, do you want to save now? - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml.properties deleted file mode 100644 index 889a7b93a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml.properties +++ /dev/null @@ -1,29 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2005 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: -# IBM Corporation - initial API and implementation -############################################################################### -rar_dtd_not_found_EXC_=IWAE0078E RAR file support: DTD file not found: {0} -io_ex_saving_EXC_=IWAE0079E IOException occurred saving {0} -could_not_create_file_EXC_=IWAE0080E Could not create the file named {0} -unsupported_encoding_EXC_=IWAE0081E {0} is not a supported encoding on this platform -unsupported_type_EXC_=IWAE0082E Type is unrecognized or not yet supported: PUBLIC_ID={0} SYSTEM_ID={1} -dtd_not_found_EXC_=IWAE0083E Could not parse xml because the resolved resource "{0}" could not be found in classpath -must_be_boolean_EXC_=IWAE0084E Exception occurred reading {0}. Value must be a boolean: String value = {1} -must_be_int_EXC_=IWAE0085E Exception occurred reading {0}. Value must be an integer: String value = {1} -empty_collection_EXC_=IWAE0086E Empty collection for {0} in {1} -missing_req_field_EXC_=IWAE0087E Missing required field {0} in {1} -An_Exception_occurred_whil_EXC_=IWAE0088E An Exception occurred while writing xml -Not_supported_in_this_rele_EXC_=IWAE0089E Not supported in this release -RAR_file_support__IO_excep_EXC_=IWAE0090E RAR file support: IO exception in custom DTD resolver. -An_IO_Exception_occurred_w_EXC_=IWAE0091E An IO Exception occurred while writing xml -Failure_occurred_reading_x_EXC_=IWAE0092E Failure occurred reading xml: -Invalid_value_for__EXC_=IWAE0093E Invalid value for -Valid_values_are___EXC_=IWAE0094E Valid values are: -Key1= - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee.properties deleted file mode 100644 index 497df93f3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee.properties +++ /dev/null @@ -1,28 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2005 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: -# IBM Corporation - initial API and implementation -############################################################################### -Stack_trace_of_nested_exce=Stack trace of nested exception: -ERROR=Error: -WARNING=Warning: -INFO=Info: -DEFAULT_COMPLETED_STATUS_MSG=Migration was completed for {0}. -DEFAULT_NOT_NEEDED_STATUS_MSG=Migration was not required for {0}. -DEFAULT_NOT_POSSIBLE_STATUS_MSG=Migration was not possible for {0}. -DEFAULT_ERROR_STATUS_MSG=IWAE0100E Error migrating {0}. -REMOVED_LOCAL_CLIENT_MSG=Removed local client view for EJB {0}. -REMOVED_ACCESS_INTENTS_MSG=Removed {0} 1.1 method access intent(s) from CMP bean {1}. -REMOVED_ISOLATION_LEVELS_MSG=Removed {0} 1.1 method isolation level(s) from CMP bean {1}. -CONVERTED_FINDER_MSG=Converted finder descripter for {0} in CMP bean {1}. Use the EJB editor to update the query EJB QL. -UNNAMED_EJB=<Unnamed CMP bean> -CONVERTED_QUERY_DESCRIPTION=Converted from IBM version 1.1 extensions. -MIGRATED_DEFAULT_DATASOURCE_JAR_MSG=Migrated default Datasource binding to a default CMP Connection Factory binding for EJB JAR \"{0}\". -MIGRATED_DEFAULT_DATASOURCE_MSG=Migrated default Datasource binding to a default CMP Connection Factory binding for EJB JAR. -J2EE_VERSION_NULL_ERROR=Unable to get J2EE version of object because it is not contained by a document. -J2EE_VERSION_PROXY_ERROR=Unable to get J2EE version of referenced object because the proxy cannot be resolved. Check the ids in the deployment descriptor files. HREF = {0}. diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/Application.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/Application.java deleted file mode 100644 index f08070632..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/Application.java +++ /dev/null @@ -1,149 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.SecurityRole; - -/** - * The application element is the root element of a J2EE application deployment descriptor. - - * @since 1.0 */ -public interface Application extends CompatibilityDescriptionGroup{ - - -/** - * @param name - String role name - * @return if contains the role - */ -public boolean containsSecurityRole(String name); -/** - * Returns the first module matching the specified uri and altDD - * @param uri - String aURI - * @param altDD - String altDD - * @return the first module matching the specified uri and altDD - */ -public Module getModule(String uri, String altDD); - -/** - * Returns the first module matching the specified uri - * @deprecated preferably use {@link #getModule(String, String)} or {@link #getFirstModule(String)} - * There may be multiple modules with the same uri but different alt-dds - * - * @param uri - String uri - * @return the first module matching the specified uri - */ -public Module getModule(String uri); -/** - *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level - * - * @return returns the j2ee version id - * @throws IllegalStateException - When resource is proxy - */ - -public int getJ2EEVersionID() throws IllegalStateException ; -/** - * This returns the module version id. Compare with J2EEVersionConstants to determine module level - * - * @return returns the module version id - * @throws IllegalStateException - When resource is proxy - */ -public int getVersionID() throws IllegalStateException ; - -/** - * Returns the first module matching the specified uri - * - * @param uri - String uri path - * @return the first module matching the specified uri - */ -public Module getFirstModule(String uri); -/** - * Returns the first module where the alt dd matches the specified uri - * - * @param uri - String uri path - * @return the first module where the alt dd matches the specified uri - */ -public Module getModuleHavingAltDD(String uri); -/** - * @param name - String role name - * @return security role with name - */ -public SecurityRole getSecurityRoleNamed(String name); -/** - * Return boolean indicating if this Application was populated from an Applcation1.2 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - * - */ -public boolean isVersion1_2Descriptor(); -/** - * Return boolean indicating if this Application was populated from an Application1.3 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - * - */ -public boolean isVersion1_3Descriptor(); - /** - * Returns the value of the '<em><b>Version</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Version</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The required value for the version is 1.4. - * <!-- end-model-doc --> - * @return the value of the '<em>Version</em>' attribute. - * @see #setVersion(String) - * @see org.eclipse.jst.j2ee.application.ApplicationPackage#getApplication_Version() - * @model - * @generated - * - */ - String getVersion(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.application.Application#getVersion <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Version</em>' attribute. - * @see #getVersion() - * @generated - */ - - void setVersion(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of SecurityRoles references - * Contains the definitions of security roles which are - * global to the application. - */ - - EList getSecurityRoles(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Modules references - */ - - EList getModules(); - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationFactory.java deleted file mode 100644 index e24a231be..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationFactory.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application; - -import org.eclipse.emf.ecore.EFactory; -/** - * @generated - * @since 1.0 */ -public interface ApplicationFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - ApplicationFactory eINSTANCE = new org.eclipse.jst.j2ee.application.internal.impl.ApplicationFactoryImpl(); - - /** - * @generated This field/method will be replaced during code generation - * @return Application value - */ - Application createApplication(); - - /** - * @generated This field/method will be replaced during code generation - * @return Module value - */ - Module createModule(); - - /** - * @generated This field/method will be replaced during code generation - * @return WebModule value - */ - WebModule createWebModule(); - - /** - * @generated This field/method will be replaced during code generation - * @return JavaClientModule value - */ - JavaClientModule createJavaClientModule(); - - /** - * @generated This field/method will be replaced during code generation - * @return EjbModule value - */ - EjbModule createEjbModule(); - - /** - * @generated This field/method will be replaced during code generation - * @return ConnectorModule value - */ - ConnectorModule createConnectorModule(); - - /** - * <!-- begin-user-doc --> - * This method is NOT api, and may change in future releases. - * EMF package classes should be access via their "eINSTANCE" static fields - * <!-- end-user-doc --> - * @generated This field/method will be replaced during code generation. - * - * @return EMF package class - */ - ApplicationPackage getApplicationPackage(); - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationPackage.java deleted file mode 100644 index 5de31bee4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationPackage.java +++ /dev/null @@ -1,361 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jst.j2ee.common.CommonPackage; - - -/** - * <p> - * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. - * </p> - * @since 1.0 - */ -public interface ApplicationPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "application"; //$NON-NLS-1$ - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION = 0; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - /** - * The feature id for the '<em><b>Version</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__VERSION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION__SECURITY_ROLES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION__MODULES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The number of structural features of the the '<em>Application</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE__URI = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE__ALT_DD = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int MODULE__APPLICATION = 2; - - /** - * The number of structural features of the the '<em>Module</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE_FEATURE_COUNT = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_MODULE = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_MODULE__URI = ApplicationPackage.MODULE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_MODULE__ALT_DD = ApplicationPackage.MODULE__ALT_DD; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_MODULE__APPLICATION = ApplicationPackage.MODULE__APPLICATION; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_MODULE__CONTEXT_ROOT = ApplicationPackage.MODULE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Web Module</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_MODULE_FEATURE_COUNT = ApplicationPackage.MODULE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int JAVA_CLIENT_MODULE = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int JAVA_CLIENT_MODULE__URI = ApplicationPackage.MODULE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int JAVA_CLIENT_MODULE__ALT_DD = ApplicationPackage.MODULE__ALT_DD; - /** - * @generated This field/method will be replaced during code generation. - */ - int JAVA_CLIENT_MODULE__APPLICATION = ApplicationPackage.MODULE__APPLICATION; - - /** - * The number of structural features of the the '<em>Java Client Module</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_CLIENT_MODULE_FEATURE_COUNT = ApplicationPackage.MODULE_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_MODULE = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_MODULE__URI = ApplicationPackage.MODULE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_MODULE__ALT_DD = ApplicationPackage.MODULE__ALT_DD; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_MODULE__APPLICATION = ApplicationPackage.MODULE__APPLICATION; - - /** - * The number of structural features of the the '<em>Ejb Module</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_MODULE_FEATURE_COUNT = ApplicationPackage.MODULE_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR_MODULE = 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR_MODULE__URI = ApplicationPackage.MODULE__URI; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR_MODULE__ALT_DD = ApplicationPackage.MODULE__ALT_DD; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR_MODULE__APPLICATION = ApplicationPackage.MODULE__APPLICATION; - - - /** - * The number of structural features of the the '<em>Connector Module</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTOR_MODULE_FEATURE_COUNT = ApplicationPackage.MODULE_FEATURE_COUNT + 0; - - - /** - * @generated This field/method will be replaced during code generation. - */ - String eNS_URI = "application.xmi"; //$NON-NLS-1$ - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.application"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - ApplicationPackage eINSTANCE = org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl.init(); - - /** - * @generated This field/method will be replaced during code generation - * @return Application object - */ - EClass getApplication(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.application.Application#getVersion <em>Version</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Version</em>'. - * @see org.eclipse.jst.j2ee.application.Application#getVersion() - * @see #getApplication() - * @generated - */ - EAttribute getApplication_Version(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getApplication_SecurityRoles(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getApplication_Modules(); - - /** - * @generated This field/method will be replaced during code generation - * @return Module object - */ - EClass getModule(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getModule_Uri(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getModule_AltDD(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getModule_Application(); - - /** - * @generated This field/method will be replaced during code generation - * @return WebModule object - */ - EClass getWebModule(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getWebModule_ContextRoot(); - - /** - * @generated This field/method will be replaced during code generation - * @return JavaClientModule object - */ - EClass getJavaClientModule(); - - /** - * @generated This field/method will be replaced during code generation - * @return EjbModule object - */ - EClass getEjbModule(); - - /** - * @generated This field/method will be replaced during code generation - * @return ConnectorModule object - */ - EClass getConnectorModule(); - - /** - * @generated This field/method will be replaced during code generation. - */ - ApplicationFactory getApplicationFactory(); - -} //ApplicationPackage - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationResource.java deleted file mode 100644 index 47eabe3d1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationResource.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application; - -import org.eclipse.jst.j2ee.internal.common.XMLResource; -/** - * The represents the deployment descriptor of the EAR. - - * @since 1.0 */ - -public interface ApplicationResource extends XMLResource { - - /** - * The application deployment descriptor - * @since 1.0 - * @return The deployment descriptor of the EAR, application deployment descriptor - */ - public Application getApplication() ; -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ConnectorModule.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ConnectorModule.java deleted file mode 100644 index 5920336f0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ConnectorModule.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application; - - -/** - * Specifies the URI of a resource adapter archive file, relative to the top level of the application package. - * @since 1.0 */ -public interface ConnectorModule extends Module{ - //ConnectorModule -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/EjbModule.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/EjbModule.java deleted file mode 100644 index fd3bb4a32..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/EjbModule.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application; - - -/** - * Specifies the URI of a ejb-jar, relative to the top level of the application package. - - * @since 1.0 */ -public interface EjbModule extends Module{ - //EjbModule -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/JavaClientModule.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/JavaClientModule.java deleted file mode 100644 index 3f9162cba..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/JavaClientModule.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application; - - -/** - * specifies the URI of a java application client module, relative to the top level of the application package. - - * @since 1.0 */ -public interface JavaClientModule extends Module{ - //JavaClientModule -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/Module.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/Module.java deleted file mode 100644 index e63a35735..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/Module.java +++ /dev/null @@ -1,94 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application; - -import org.eclipse.emf.ecore.EObject; -/** - * The module element represents a single J2EE module and contains an ejb, java, or web element, which indicates the module type and contains a path to the module file, and an optional alt-dd element, which specifies an optional URI to the post-assembly version of the deployment descriptor. The application deployment descriptor must have one module element for each J2EE module in the application package. - - * @since 1.0 */ -public interface Module extends EObject{ - - /** - * Returns boolean value if this Module represents a ConnectorModule - * @return boolean value - */ - public boolean isConnectorModule(); - - /** - * Returns boolean value if this Module represents a EjbModule - * @return boolean value - */ - public boolean isEjbModule(); - - /** - * Returns boolean value if this Module represents a JavaClientModule(ApplicationClient) - * @return boolean value - */ - public boolean isJavaModule(); - - /** - * Returns boolean value if this Module represents a WebModule - * @return boolean value - */ - public boolean isWebModule(); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Uri attribute - * Specifies the URI of a module, relative to the top level of the application - * package. - - */ - String getUri(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Uri attribute - */ - void setUri(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the AltDD attribute - * The alt-dd element specifies an optional URI to the post-assembly version of - * the deployment descriptor file for a particular J2EE module. The URI must - * specify the full pathname of the deployment descriptor file relative to the - * application's root directory. If alt-dd is not specified, the deployer must - * read the deployment descriptor from the default location and file name required - * by the respective component specification. - - */ - String getAltDD(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the AltDD attribute - */ - void setAltDD(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The Application reference - */ - Application getApplication(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Application reference - */ - void setApplication(Application value); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/WebModule.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/WebModule.java deleted file mode 100644 index c0013ec98..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/WebModule.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application; - - -/** - * Contains the web-uri and context-root of a web application module. - - * @since 1.0 */ -public interface WebModule extends Module{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ContextRoot attribute - * The context-root element specifies the context root of a web application - - */ - public String getContextRoot(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ContextRoot attribute - */ - public void setContextRoot(String value); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationFactoryImpl.java deleted file mode 100644 index ea83836f1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationFactoryImpl.java +++ /dev/null @@ -1,122 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationFactory; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.ConnectorModule; -import org.eclipse.jst.j2ee.application.EjbModule; -import org.eclipse.jst.j2ee.application.JavaClientModule; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.application.WebModule; - -/** - * @generated - */ -public class ApplicationFactoryImpl extends EFactoryImpl implements ApplicationFactory{ - - public ApplicationFactoryImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case ApplicationPackage.APPLICATION: return createApplication(); - case ApplicationPackage.MODULE: return createModule(); - case ApplicationPackage.WEB_MODULE: return createWebModule(); - case ApplicationPackage.JAVA_CLIENT_MODULE: return createJavaClientModule(); - case ApplicationPackage.EJB_MODULE: return createEjbModule(); - case ApplicationPackage.CONNECTOR_MODULE: return createConnectorModule(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - -public static ApplicationFactory getActiveFactory() { - return (ApplicationFactory) getPackage().getEFactoryInstance(); -} - /** - * @generated This field/method will be replaced during code generation. - */ - public Application createApplication() { - ApplicationImpl application = new ApplicationImpl(); - return application; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Module createModule() { - ModuleImpl module = new ModuleImpl(); - return module; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public WebModule createWebModule() { - WebModuleImpl webModule = new WebModuleImpl(); - return webModule; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public JavaClientModule createJavaClientModule() { - JavaClientModuleImpl javaClientModule = new JavaClientModuleImpl(); - return javaClientModule; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EjbModule createEjbModule() { - EjbModuleImpl ejbModule = new EjbModuleImpl(); - return ejbModule; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ConnectorModule createConnectorModule() { - ConnectorModuleImpl connectorModule = new ConnectorModuleImpl(); - return connectorModule; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ApplicationPackage getApplicationPackage() { - return (ApplicationPackage)getEPackage(); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public static ApplicationPackage getPackage() { - return ApplicationPackage.eINSTANCE; - } - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationImpl.java deleted file mode 100644 index 7a7994838..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationImpl.java +++ /dev/null @@ -1,434 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.impl; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.common.internal.util.CommonUtil; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.wst.common.internal.emf.utilities.StringUtil; - - -/** - * The application element is the root element of a J2EE application deployment descriptor. - - */ -public class ApplicationImpl extends CompatibilityDescriptionGroupImpl implements Application{ - - /** - * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected static final String VERSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected String version = VERSION_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList securityRoles = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList modules = null; - public ApplicationImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.eINSTANCE.getApplication(); - } - -/** - * @see org.eclipse.jst.j2ee.internal.application.Application - */ -public boolean containsSecurityRole(java.lang.String name) { - return getSecurityRoleNamed(name) != null; -} -public Module getModule(String uri) { - return getFirstModule(uri); -} - -public Module getModule(String uri, String altDD) { - List allModules = getModules(); - for (int i = 0; i < allModules.size(); i++) { - Module aModule = (Module) allModules.get(i); - if (StringUtil.stringsEqual(uri, aModule.getUri()) && StringUtil.stringsEqual(altDD, aModule.getAltDD())) - return aModule; - } - return null; -} - /** - * Gets the first module matching the specified uri - * @param uri The uri of a module to find. - * @return The first matching module or null if no module is found. - */ - public Module getFirstModule(String uri){ - if (uri == null) return null; - java.util.Iterator allModules = getModules().iterator(); - while (allModules.hasNext()){ - Module aModule = (Module)allModules.next(); - if(uri.equals(aModule.getUri())) return aModule; - } - return null; - } -/** - * @see org.eclipse.jst.j2ee.internal.application.Application - */ -public Module getModuleHavingAltDD(java.lang.String uri) { - if (uri == null) - return null; - List aModules = getModules(); - for (int i = 0; i < aModules.size(); i++) { - Module aModule = (Module) aModules.get(i); - if (uri.equals(aModule.getAltDD())) - return aModule; - } - return null; -} -public SecurityRole getSecurityRoleNamed(String roleName) { - java.util.List tempRoles = getSecurityRoles(); - SecurityRole role; - for (int i = 0; i < tempRoles.size(); i++) { - role = (SecurityRole) tempRoles.get(i); - if (role.getRoleName().equals(roleName)) - return role; - } - return null; -} - -/** - * Return boolean indicating if this Application was populated from an Applcation1.2 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion1_2Descriptor() { - CommonUtil.checkDDObjectForVersion(this); - String systemId = ((XMLResource)eResource()).getSystemId(); - return systemId == null ? false : systemId.equals(J2EEConstants.APPLICATION_SYSTEMID_1_2); -} -/** - * Return boolean indicating if this Application was populated from an Application1.3 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion1_3Descriptor() { - CommonUtil.checkDDObjectForVersion(this); - String systemId = ((XMLResource)eResource()).getSystemId(); - return systemId == null ? false : systemId.equals(J2EEConstants.APPLICATION_SYSTEMID_1_3); -} - /** - * - */ - public void setDisplayName(String newDisplayName) { - super.setDisplayName(newDisplayName); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getVersion() { - return version; - } - - /** - This returns the module version id. Compare with J2EEVersionConstants to determine module level - */ - public int getVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) throw new IllegalStateException(); - return res.getModuleVersionID(); - } - /** - *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level - */ - public int getJ2EEVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) throw new IllegalStateException(); - return res.getJ2EEVersionID(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setVersion(String newVersion) { - String oldVersion = version; - version = newVersion; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.APPLICATION__VERSION, oldVersion, version)); - } - - /** - * @generated This field/method will be replaced during code generation - * Contains the definitions of security roles which are - * global to the application. - */ - public EList getSecurityRoles() { - if (securityRoles == null) { - securityRoles = new EObjectContainmentEList(SecurityRole.class, this, ApplicationPackage.APPLICATION__SECURITY_ROLES); - } - return securityRoles; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getModules() { - if (modules == null) { - modules = new EObjectContainmentWithInverseEList(Module.class, this, ApplicationPackage.APPLICATION__MODULES, ApplicationPackage.MODULE__APPLICATION); - } - return modules; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.APPLICATION__MODULES: - return ((InternalEList)getModules()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.APPLICATION__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION__SECURITY_ROLES: - return ((InternalEList)getSecurityRoles()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION__MODULES: - return ((InternalEList)getModules()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.APPLICATION__ICONS: - return getIcons(); - case ApplicationPackage.APPLICATION__DISPLAY_NAMES: - return getDisplayNames(); - case ApplicationPackage.APPLICATION__DESCRIPTIONS: - return getDescriptions(); - case ApplicationPackage.APPLICATION__SMALL_ICON: - return getSmallIcon(); - case ApplicationPackage.APPLICATION__LARGE_ICON: - return getLargeIcon(); - case ApplicationPackage.APPLICATION__DESCRIPTION: - return getDescription(); - case ApplicationPackage.APPLICATION__DISPLAY_NAME: - return getDisplayName(); - case ApplicationPackage.APPLICATION__VERSION: - return getVersion(); - case ApplicationPackage.APPLICATION__SECURITY_ROLES: - return getSecurityRoles(); - case ApplicationPackage.APPLICATION__MODULES: - return getModules(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.APPLICATION__ICONS: - return icons != null && !icons.isEmpty(); - case ApplicationPackage.APPLICATION__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case ApplicationPackage.APPLICATION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case ApplicationPackage.APPLICATION__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case ApplicationPackage.APPLICATION__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case ApplicationPackage.APPLICATION__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case ApplicationPackage.APPLICATION__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case ApplicationPackage.APPLICATION__VERSION: - return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); - case ApplicationPackage.APPLICATION__SECURITY_ROLES: - return securityRoles != null && !securityRoles.isEmpty(); - case ApplicationPackage.APPLICATION__MODULES: - return modules != null && !modules.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.APPLICATION__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case ApplicationPackage.APPLICATION__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case ApplicationPackage.APPLICATION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case ApplicationPackage.APPLICATION__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case ApplicationPackage.APPLICATION__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case ApplicationPackage.APPLICATION__DESCRIPTION: - setDescription((String)newValue); - return; - case ApplicationPackage.APPLICATION__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case ApplicationPackage.APPLICATION__VERSION: - setVersion((String)newValue); - return; - case ApplicationPackage.APPLICATION__SECURITY_ROLES: - getSecurityRoles().clear(); - getSecurityRoles().addAll((Collection)newValue); - return; - case ApplicationPackage.APPLICATION__MODULES: - getModules().clear(); - getModules().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.APPLICATION__ICONS: - getIcons().clear(); - return; - case ApplicationPackage.APPLICATION__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case ApplicationPackage.APPLICATION__DESCRIPTIONS: - getDescriptions().clear(); - return; - case ApplicationPackage.APPLICATION__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case ApplicationPackage.APPLICATION__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case ApplicationPackage.APPLICATION__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case ApplicationPackage.APPLICATION__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case ApplicationPackage.APPLICATION__VERSION: - setVersion(VERSION_EDEFAULT); - return; - case ApplicationPackage.APPLICATION__SECURITY_ROLES: - getSecurityRoles().clear(); - return; - case ApplicationPackage.APPLICATION__MODULES: - getModules().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (version: "); - result.append(version); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationPackageImpl.java deleted file mode 100644 index c3b6f517c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationPackageImpl.java +++ /dev/null @@ -1,369 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationFactory; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.ConnectorModule; -import org.eclipse.jst.j2ee.application.EjbModule; -import org.eclipse.jst.j2ee.application.JavaClientModule; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.application.WebModule; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -public class ApplicationPackageImpl extends EPackageImpl implements ApplicationPackage, EPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass applicationEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass moduleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webModuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass javaClientModuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ejbModuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass connectorModuleEClass = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - private ApplicationPackageImpl() { - super(eNS_URI, ApplicationFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - public static ApplicationPackage init() { - if (isInited) return (ApplicationPackage)EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI); - - // Obtain or create and register package - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ApplicationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE); - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE); - - // Create package meta-data objects - theApplicationPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theCommonPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theTaglibPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - theWscommonPackage.createPackageContents(); - theWsddPackage.createPackageContents(); - - // Initialize created meta-data - theApplicationPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theTaglibPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - theWscommonPackage.initializePackageContents(); - theWsddPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theApplicationPackage.freeze(); - - return theApplicationPackage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getApplication() { - return applicationEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getApplication_Version() { - return (EAttribute)applicationEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getApplication_SecurityRoles() { - return (EReference)applicationEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getApplication_Modules() { - return (EReference)applicationEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getModule() { - return moduleEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getModule_Uri() { - return (EAttribute)moduleEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getModule_AltDD() { - return (EAttribute)moduleEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getModule_Application() { - return (EReference)moduleEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getWebModule() { - return webModuleEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getWebModule_ContextRoot() { - return (EAttribute)webModuleEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getJavaClientModule() { - return javaClientModuleEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEjbModule() { - return ejbModuleEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getConnectorModule() { - return connectorModuleEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ApplicationFactory getApplicationFactory() { - return (ApplicationFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - applicationEClass = createEClass(APPLICATION); - createEAttribute(applicationEClass, APPLICATION__VERSION); - createEReference(applicationEClass, APPLICATION__SECURITY_ROLES); - createEReference(applicationEClass, APPLICATION__MODULES); - - moduleEClass = createEClass(MODULE); - createEAttribute(moduleEClass, MODULE__URI); - createEAttribute(moduleEClass, MODULE__ALT_DD); - createEReference(moduleEClass, MODULE__APPLICATION); - - webModuleEClass = createEClass(WEB_MODULE); - createEAttribute(webModuleEClass, WEB_MODULE__CONTEXT_ROOT); - - javaClientModuleEClass = createEClass(JAVA_CLIENT_MODULE); - - ejbModuleEClass = createEClass(EJB_MODULE); - - connectorModuleEClass = createEClass(CONNECTOR_MODULE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI); - - // Add supertypes to classes - applicationEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - webModuleEClass.getESuperTypes().add(theApplicationPackage_1.getModule()); - javaClientModuleEClass.getESuperTypes().add(theApplicationPackage_1.getModule()); - ejbModuleEClass.getESuperTypes().add(theApplicationPackage_1.getModule()); - connectorModuleEClass.getESuperTypes().add(theApplicationPackage_1.getModule()); - - // Initialize classes and features; add operations and parameters - initEClass(applicationEClass, Application.class, "Application", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getApplication_Version(), ecorePackage.getEString(), "version", null, 0, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getApplication_SecurityRoles(), theCommonPackage.getSecurityRole(), null, "securityRoles", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getApplication_Modules(), theApplicationPackage_1.getModule(), theApplicationPackage_1.getModule_Application(), "modules", null, 1, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(moduleEClass, Module.class, "Module", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getModule_Uri(), ecorePackage.getEString(), "uri", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getModule_AltDD(), ecorePackage.getEString(), "altDD", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getModule_Application(), theApplicationPackage_1.getApplication(), theApplicationPackage_1.getApplication_Modules(), "application", null, 0, 1, Module.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(webModuleEClass, WebModule.class, "WebModule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWebModule_ContextRoot(), ecorePackage.getEString(), "contextRoot", null, 0, 1, WebModule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(javaClientModuleEClass, JavaClientModule.class, "JavaClientModule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(ejbModuleEClass, EjbModule.class, "EjbModule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(connectorModuleEClass, ConnectorModule.class, "ConnectorModule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - } - -} //ApplicationPackageImpl - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationResourceFactory.java deleted file mode 100644 index 4eb91ed03..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationResourceFactory.java +++ /dev/null @@ -1,86 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.impl; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.RendererFactory; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory; - - -public class ApplicationResourceFactory extends TranslatorResourceFactory { - - /** - * Method registerDtds. - */ - public static void registerDtds() { - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APPLICATION_SYSTEMID_1_2, "application_1_2.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APPLICATION_ALT_SYSTEMID_1_2, "application_1.2.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APPLICATION_SYSTEMID_1_3, "application_1_3.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APPLICATION_ALT_SYSTEMID_1_3, "application_1.3.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APPLICATION_SCHEMA_LOC_1_4, "application_1_4.xsd"); //$NON-NLS-1$ - // moved to the web svcs J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEB_SERVICES_CLIENT_SCHEMA_LOC_1_1, "j2ee_web_services_client_1_1.xsd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.J2EE_1_4_XSD_SHORT_NAME, J2EEConstants.J2EE_1_4_XSD_SHORT_NAME); - } - - - - /** - * @param aRendererFactory - */ - public ApplicationResourceFactory() { - super(RendererFactory.getDefaultRendererFactory()); - } - - /** - * @param aRendererFactory - */ - public ApplicationResourceFactory(RendererFactory aRendererFactory) { - super(aRendererFactory); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceFactory#createResource(org.eclipse.emf.common.util.URI, com.ibm.etools.emf2xml.Renderer) - */ - protected TranslatorResource createResource(URI uri, Renderer aRenderer) { - return new ApplicationResourceImpl(uri, aRenderer); - } - /** - * Register myself with the Resource.Factory.Registry - */ - public static void registerWith(RendererFactory aRendererFactory) { - J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(J2EEConstants.APPLICATION_DD_SHORT_NAME, new ApplicationResourceFactory(aRendererFactory)); - } - - /** - * register using the default renderer factory. - * @see #registerWith(RendererFactory) - */ - public static void register() { - registerWith(RendererFactory.getDefaultRendererFactory()); - } - - public static void register(FileNameResourceFactoryRegistry aRegistry) { - aRegistry.registerLastFileSegment(J2EEConstants.APPLICATION_DD_SHORT_NAME, new ApplicationResourceFactory(RendererFactory.getDefaultRendererFactory())); - } - - - public static Resource.Factory getRegisteredFactory() { - return J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.APPLICATION_DD_URI_OBJ); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationResourceImpl.java deleted file mode 100644 index f6c469595..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ApplicationResourceImpl.java +++ /dev/null @@ -1,155 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.impl; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationResource; -import org.eclipse.jst.j2ee.common.internal.impl.XMLResourceImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.model.translator.application.ApplicationTranslator; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.Translator; - - -public class ApplicationResourceImpl extends XMLResourceImpl implements ApplicationResource { - /** - * @param uri - * @param aRenderer - */ - public ApplicationResourceImpl(URI uri, Renderer aRenderer) { - super(uri, aRenderer); - - } - - /** - * @param aRenderer - */ - public ApplicationResourceImpl(Renderer aRenderer) { - super(aRenderer); - } - /** - * Return the first element in the EList. */ - public Application getApplication() { - return (Application) getRootObject(); - } - - - public int getType() { - return APPLICATION_TYPE; - } - - - public String getDoctype() { - switch (getJ2EEVersionID()) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - return J2EEConstants.APPLICATION_DOCTYPE; - default : - return null; - } - - } - /* App version is always the same as the J2EE version - */ - public int getJ2EEVersionID() { - return getModuleVersionID(); - } - public Translator getRootTranslator() { - return ApplicationTranslator.INSTANCE; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_SystemID() - */ - public String getJ2EE_1_2_SystemID() { - return J2EEConstants.APPLICATION_SYSTEMID_1_2; - } - - public String getJ2EE_Alt_1_2_SystemID() { - return J2EEConstants.APPLICATION_ALT_SYSTEMID_1_2; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID() - */ - public String getJ2EE_1_3_SystemID() { - return J2EEConstants.APPLICATION_SYSTEMID_1_3; - } - - public String getJ2EE_Alt_1_3_SystemID() { - return J2EEConstants.APPLICATION_ALT_SYSTEMID_1_3; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_PublicID() - */ - public String getJ2EE_1_2_PublicID() { - return J2EEConstants.APPLICATION_PUBLICID_1_2; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_PublicID() - */ - public String getJ2EE_1_3_PublicID() { - return J2EEConstants.APPLICATION_PUBLICID_1_3; - } - /* - * This directly sets the module version id - */ - public void setModuleVersionID(int id) { - super.setVersionID(id); - switch (id) { - case (J2EE_1_4_ID) : - super.setDoctypeValues(null, null); - break; - case (J2EE_1_3_ID) : - super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - break; - case (J2EE_1_2_ID) : - super.setDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - } - syncVersionOfRootObject(); - } - /* - * Based on the J2EE version, this will set the module version(Same as J2EE Version for Application) - */ - public void setJ2EEVersionID(int id) { - primSetVersionID(id); - switch (id) { - case (J2EE_1_4_ID) : - primSetDoctypeValues(null, null); - break; - case (J2EE_1_3_ID) : - primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - break; - case (J2EE_1_2_ID) : - primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - } - syncVersionOfRootObject(); - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.impl.XMLResourceImpl#syncVersionOfRootObject() - */ - protected void syncVersionOfRootObject() { - Application app = getApplication(); - if (app == null) - return; - - String version = app.getVersion(); - String newVersion = getModuleVersionString(); - if (!newVersion.equals(version)) - app.setVersion(newVersion); - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ConnectorModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ConnectorModuleImpl.java deleted file mode 100644 index f5554065e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ConnectorModuleImpl.java +++ /dev/null @@ -1,176 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.impl; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.ConnectorModule; -import org.eclipse.jst.j2ee.application.Module; - -/** - * Specifies the URI of a resource adapter archive file, relative to the top level of the application package. - */ -public class ConnectorModuleImpl extends ModuleImpl implements ConnectorModule, Module{ - - public ConnectorModuleImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.eINSTANCE.getConnectorModule(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.CONNECTOR_MODULE__APPLICATION: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, ApplicationPackage.CONNECTOR_MODULE__APPLICATION, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.CONNECTOR_MODULE__APPLICATION: - return eBasicSetContainer(null, ApplicationPackage.CONNECTOR_MODULE__APPLICATION, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case ApplicationPackage.CONNECTOR_MODULE__APPLICATION: - return eContainer.eInverseRemove(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.CONNECTOR_MODULE__URI: - return getUri(); - case ApplicationPackage.CONNECTOR_MODULE__ALT_DD: - return getAltDD(); - case ApplicationPackage.CONNECTOR_MODULE__APPLICATION: - return getApplication(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.CONNECTOR_MODULE__URI: - setUri((String)newValue); - return; - case ApplicationPackage.CONNECTOR_MODULE__ALT_DD: - setAltDD((String)newValue); - return; - case ApplicationPackage.CONNECTOR_MODULE__APPLICATION: - setApplication((Application)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.CONNECTOR_MODULE__URI: - setUri(URI_EDEFAULT); - return; - case ApplicationPackage.CONNECTOR_MODULE__ALT_DD: - setAltDD(ALT_DD_EDEFAULT); - return; - case ApplicationPackage.CONNECTOR_MODULE__APPLICATION: - setApplication((Application)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.CONNECTOR_MODULE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case ApplicationPackage.CONNECTOR_MODULE__ALT_DD: - return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD); - case ApplicationPackage.CONNECTOR_MODULE__APPLICATION: - return getApplication() != null; - } - return eDynamicIsSet(eFeature); - } - -public boolean isConnectorModule() { - return true; -} -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/EjbModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/EjbModuleImpl.java deleted file mode 100644 index 57ce7bee0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/EjbModuleImpl.java +++ /dev/null @@ -1,177 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.impl; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.EjbModule; -import org.eclipse.jst.j2ee.application.Module; - -/** - * Specifies the URI of a ejb-jar, relative to the top level of the application package. - - */ -public class EjbModuleImpl extends ModuleImpl implements EjbModule, Module { - - public EjbModuleImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.eINSTANCE.getEjbModule(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.EJB_MODULE__APPLICATION: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, ApplicationPackage.EJB_MODULE__APPLICATION, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.EJB_MODULE__APPLICATION: - return eBasicSetContainer(null, ApplicationPackage.EJB_MODULE__APPLICATION, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case ApplicationPackage.EJB_MODULE__APPLICATION: - return eContainer.eInverseRemove(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.EJB_MODULE__URI: - return getUri(); - case ApplicationPackage.EJB_MODULE__ALT_DD: - return getAltDD(); - case ApplicationPackage.EJB_MODULE__APPLICATION: - return getApplication(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.EJB_MODULE__URI: - setUri((String)newValue); - return; - case ApplicationPackage.EJB_MODULE__ALT_DD: - setAltDD((String)newValue); - return; - case ApplicationPackage.EJB_MODULE__APPLICATION: - setApplication((Application)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.EJB_MODULE__URI: - setUri(URI_EDEFAULT); - return; - case ApplicationPackage.EJB_MODULE__ALT_DD: - setAltDD(ALT_DD_EDEFAULT); - return; - case ApplicationPackage.EJB_MODULE__APPLICATION: - setApplication((Application)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.EJB_MODULE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case ApplicationPackage.EJB_MODULE__ALT_DD: - return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD); - case ApplicationPackage.EJB_MODULE__APPLICATION: - return getApplication() != null; - } - return eDynamicIsSet(eFeature); - } - -public boolean isEjbModule() { - return true; -} -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/JavaClientModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/JavaClientModuleImpl.java deleted file mode 100644 index d94781420..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/JavaClientModuleImpl.java +++ /dev/null @@ -1,177 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.impl; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.JavaClientModule; -import org.eclipse.jst.j2ee.application.Module; - -/** - * specifies the URI of a java application client module, relative to the top level of the application package. - - */ -public class JavaClientModuleImpl extends ModuleImpl implements JavaClientModule, Module { - - public JavaClientModuleImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.eINSTANCE.getJavaClientModule(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION: - return eBasicSetContainer(null, ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION: - return eContainer.eInverseRemove(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.JAVA_CLIENT_MODULE__URI: - return getUri(); - case ApplicationPackage.JAVA_CLIENT_MODULE__ALT_DD: - return getAltDD(); - case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION: - return getApplication(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.JAVA_CLIENT_MODULE__URI: - setUri((String)newValue); - return; - case ApplicationPackage.JAVA_CLIENT_MODULE__ALT_DD: - setAltDD((String)newValue); - return; - case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION: - setApplication((Application)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.JAVA_CLIENT_MODULE__URI: - setUri(URI_EDEFAULT); - return; - case ApplicationPackage.JAVA_CLIENT_MODULE__ALT_DD: - setAltDD(ALT_DD_EDEFAULT); - return; - case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION: - setApplication((Application)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.JAVA_CLIENT_MODULE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case ApplicationPackage.JAVA_CLIENT_MODULE__ALT_DD: - return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD); - case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION: - return getApplication() != null; - } - return eDynamicIsSet(eFeature); - } - -public boolean isJavaModule() { - return true; -} -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ModuleImpl.java deleted file mode 100644 index 7e938a9c3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/ModuleImpl.java +++ /dev/null @@ -1,307 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.Module; - - -/** - * The module element represents a single J2EE module and contains an ejb, java, or web element, which indicates the module type and contains a path to the module file, and an optional alt-dd element, which specifies an optional URI to the post-assembly version of the deployment descriptor. The application deployment descriptor must have one module element for each J2EE module in the application package. - - */ -public class ModuleImpl extends EObjectImpl implements Module, EObject { - - /** - * The default value of the '{@link #getUri() <em>Uri</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUri() - * @generated - * @ordered - */ - protected static final String URI_EDEFAULT = null; - - protected static final char FORWARD_SLASH = '/'; - protected static final char BACKWARD_SLASH = '\\'; - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String uri = URI_EDEFAULT; - /** - * The default value of the '{@link #getAltDD() <em>Alt DD</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAltDD() - * @generated - * @ordered - */ - protected static final String ALT_DD_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String altDD = ALT_DD_EDEFAULT; - public ModuleImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.eINSTANCE.getModule(); - } - -public boolean isConnectorModule() { - return false; -} -/* Returns false by default - * - */ -public boolean isEjbModule() { - return false; -} -/* - * Returns false by default - */ -public boolean isJavaModule() { - return false; -} -/* - * Returns false by default - */ -public boolean isWebModule() { - return false; -} - /** - * @generated This field/method will be replaced during code generation - * Specifies the URI of a module, relative to the top level of the application package. - - */ - public String getUri() { - return uri; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setUri(String newUri) { - String oldUri = uri; - uri = newUri; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__URI, oldUri, uri)); - } - - /** - * @generated This field/method will be replaced during code generation - * The alt-dd element specifies an optional URI to the post-assembly version of the deployment descriptor file for a particular J2EE module. The URI must specify the full pathname of the deployment descriptor file relative to the application's root directory. If alt-dd is not specified, the deployer must read the deployment descriptor from the default location and file name required by the respective component specification. - - */ - public String getAltDD() { - return altDD; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setAltDD(String newAltDD) { - String oldAltDD = altDD; - altDD = newAltDD; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__ALT_DD, oldAltDD, altDD)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public Application getApplication() { - if (eContainerFeatureID != ApplicationPackage.MODULE__APPLICATION) return null; - return (Application)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setApplication(Application newApplication) { - if (newApplication != eContainer || (eContainerFeatureID != ApplicationPackage.MODULE__APPLICATION && newApplication != null)) { - if (EcoreUtil.isAncestor(this, newApplication)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newApplication != null) - msgs = ((InternalEObject)newApplication).eInverseAdd(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newApplication, ApplicationPackage.MODULE__APPLICATION, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__APPLICATION, newApplication, newApplication)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.MODULE__APPLICATION: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, ApplicationPackage.MODULE__APPLICATION, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.MODULE__APPLICATION: - return eBasicSetContainer(null, ApplicationPackage.MODULE__APPLICATION, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case ApplicationPackage.MODULE__APPLICATION: - return eContainer.eInverseRemove(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.MODULE__URI: - return getUri(); - case ApplicationPackage.MODULE__ALT_DD: - return getAltDD(); - case ApplicationPackage.MODULE__APPLICATION: - return getApplication(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.MODULE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case ApplicationPackage.MODULE__ALT_DD: - return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD); - case ApplicationPackage.MODULE__APPLICATION: - return getApplication() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.MODULE__URI: - setUri((String)newValue); - return; - case ApplicationPackage.MODULE__ALT_DD: - setAltDD((String)newValue); - return; - case ApplicationPackage.MODULE__APPLICATION: - setApplication((Application)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.MODULE__URI: - setUri(URI_EDEFAULT); - return; - case ApplicationPackage.MODULE__ALT_DD: - setAltDD(ALT_DD_EDEFAULT); - return; - case ApplicationPackage.MODULE__APPLICATION: - setApplication((Application)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (uri: "); - result.append(uri); - result.append(", altDD: "); - result.append(altDD); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/WebModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/WebModuleImpl.java deleted file mode 100644 index 7c350d162..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/impl/WebModuleImpl.java +++ /dev/null @@ -1,233 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.application.WebModule; - - -/** - * Contains the web-uri and context-root of a web application module. - - */ -public class WebModuleImpl extends ModuleImpl implements WebModule, Module { - - /** - * The default value of the '{@link #getContextRoot() <em>Context Root</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getContextRoot() - * @generated - * @ordered - */ - protected static final String CONTEXT_ROOT_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String contextRoot = CONTEXT_ROOT_EDEFAULT; - public WebModuleImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.eINSTANCE.getWebModule(); - } - -public boolean isWebModule() { - return true; -} - /** - * @generated This field/method will be replaced during code generation - * The context-root element specifies the context root of a web application - - */ - public String getContextRoot() { - return contextRoot; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setContextRoot(String newContextRoot) { - String oldContextRoot = contextRoot; - contextRoot = newContextRoot; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.WEB_MODULE__CONTEXT_ROOT, oldContextRoot, contextRoot)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.WEB_MODULE__APPLICATION: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, ApplicationPackage.WEB_MODULE__APPLICATION, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ApplicationPackage.WEB_MODULE__APPLICATION: - return eBasicSetContainer(null, ApplicationPackage.WEB_MODULE__APPLICATION, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case ApplicationPackage.WEB_MODULE__APPLICATION: - return eContainer.eInverseRemove(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.WEB_MODULE__URI: - return getUri(); - case ApplicationPackage.WEB_MODULE__ALT_DD: - return getAltDD(); - case ApplicationPackage.WEB_MODULE__APPLICATION: - return getApplication(); - case ApplicationPackage.WEB_MODULE__CONTEXT_ROOT: - return getContextRoot(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.WEB_MODULE__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case ApplicationPackage.WEB_MODULE__ALT_DD: - return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD); - case ApplicationPackage.WEB_MODULE__APPLICATION: - return getApplication() != null; - case ApplicationPackage.WEB_MODULE__CONTEXT_ROOT: - return CONTEXT_ROOT_EDEFAULT == null ? contextRoot != null : !CONTEXT_ROOT_EDEFAULT.equals(contextRoot); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.WEB_MODULE__URI: - setUri((String)newValue); - return; - case ApplicationPackage.WEB_MODULE__ALT_DD: - setAltDD((String)newValue); - return; - case ApplicationPackage.WEB_MODULE__APPLICATION: - setApplication((Application)newValue); - return; - case ApplicationPackage.WEB_MODULE__CONTEXT_ROOT: - setContextRoot((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ApplicationPackage.WEB_MODULE__URI: - setUri(URI_EDEFAULT); - return; - case ApplicationPackage.WEB_MODULE__ALT_DD: - setAltDD(ALT_DD_EDEFAULT); - return; - case ApplicationPackage.WEB_MODULE__APPLICATION: - setApplication((Application)null); - return; - case ApplicationPackage.WEB_MODULE__CONTEXT_ROOT: - setContextRoot(CONTEXT_ROOT_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (contextRoot: "); - result.append(contextRoot); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/util/ApplicationAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/util/ApplicationAdapterFactory.java deleted file mode 100644 index a03029e3d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/util/ApplicationAdapterFactory.java +++ /dev/null @@ -1,265 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.ConnectorModule; -import org.eclipse.jst.j2ee.application.EjbModule; -import org.eclipse.jst.j2ee.application.JavaClientModule; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.application.WebModule; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; - - - -public class ApplicationAdapterFactory extends AdapterFactoryImpl { - protected static ApplicationPackage modelPackage; - - public ApplicationAdapterFactory() { - if (modelPackage == null) { - modelPackage = (ApplicationPackage)EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI); - } - } - public boolean isFactoryForType(Object type) { - if (type == modelPackage) { - return true; - } - if (type instanceof EObject) { - return ((EObject)type).eClass().eContainer() == modelPackage; - } - return false; - } - - protected ApplicationSwitch sw = new ApplicationSwitch() { - public Object caseApplication(Application object) { - return createApplicationAdapter(); - } - public Object caseModule(Module object) { - return createModuleAdapter(); - } - public Object caseWebModule(WebModule object) { - return createWebModuleAdapter(); - } - public Object caseJavaClientModule(JavaClientModule object) { - return createJavaClientModuleAdapter(); - } - public Object caseEjbModule(EjbModule object) { - return createEjbModuleAdapter(); - } - public Object caseConnectorModule(ConnectorModule object) { - return createConnectorModuleAdapter(); - } - }; - - public Adapter createAdapter(Notifier target) { - return (Adapter)sw.doSwitch((EObject)target); - } - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - public Adapter createApplicationAdapter() { - return null; - } - - public Adapter createModuleAdapter() { - return null; - } - - public Adapter createWebModuleAdapter() { - return null; - } - - public Adapter createJavaClientModuleAdapter() { - return null; - } - - public Adapter createEjbModuleAdapter() { - return null; - } - - public Adapter createConnectorModuleAdapter() { - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean isFactoryForTypeGen(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ApplicationSwitch modelSwitch = - new ApplicationSwitch() { - public Object caseApplication(Application object) { - return createApplicationAdapter(); - } - public Object caseModule(Module object) { - return createModuleAdapter(); - } - public Object caseWebModule(WebModule object) { - return createWebModuleAdapter(); - } - public Object caseJavaClientModule(JavaClientModule object) { - return createJavaClientModuleAdapter(); - } - public Object caseEjbModule(EjbModule object) { - return createEjbModuleAdapter(); - } - public Object caseConnectorModule(ConnectorModule object) { - return createConnectorModuleAdapter(); - } - public Object caseDescriptionGroup(DescriptionGroup object) { - return createDescriptionGroupAdapter(); - } - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return createCompatibilityDescriptionGroupAdapter(); - } - public Object caseApplication_Module(Module object) { - return createApplication_ModuleAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAdapterGen(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createApplicationAdapterGen() { - - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createModuleAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createWebModuleAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createJavaClientModuleAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEjbModuleAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createConnectorModuleAdapterGen() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - public Adapter createDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - public Adapter createCompatibilityDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.application.Module <em>Module</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.application.Module - * @generated - */ - public Adapter createApplication_ModuleAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //ApplicationAdapterFactory - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/util/ApplicationSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/util/ApplicationSwitch.java deleted file mode 100644 index f861066e2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/internal/util/ApplicationSwitch.java +++ /dev/null @@ -1,298 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.application.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.ConnectorModule; -import org.eclipse.jst.j2ee.application.EjbModule; -import org.eclipse.jst.j2ee.application.JavaClientModule; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.application.WebModule; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.application.ApplicationPackage - * @generated - */ -public class ApplicationSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static ApplicationPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ApplicationSwitch() { - if (modelPackage == null) { - modelPackage = ApplicationPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case ApplicationPackage.APPLICATION: { - Application application = (Application)theEObject; - Object result = caseApplication(application); - if (result == null) result = caseCompatibilityDescriptionGroup(application); - if (result == null) result = caseDescriptionGroup(application); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplicationPackage.MODULE: { - Module module = (Module)theEObject; - Object result = caseModule(module); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplicationPackage.WEB_MODULE: { - WebModule webModule = (WebModule)theEObject; - Object result = caseWebModule(webModule); - if (result == null) result = caseApplication_Module(webModule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplicationPackage.JAVA_CLIENT_MODULE: { - JavaClientModule javaClientModule = (JavaClientModule)theEObject; - Object result = caseJavaClientModule(javaClientModule); - if (result == null) result = caseApplication_Module(javaClientModule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplicationPackage.EJB_MODULE: { - EjbModule ejbModule = (EjbModule)theEObject; - Object result = caseEjbModule(ejbModule); - if (result == null) result = caseApplication_Module(ejbModule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplicationPackage.CONNECTOR_MODULE: { - ConnectorModule connectorModule = (ConnectorModule)theEObject; - Object result = caseConnectorModule(connectorModule); - if (result == null) result = caseApplication_Module(connectorModule); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Application</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Application</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseApplication(Application object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Module</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Module</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseModule(Module object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Web Module</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Web Module</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWebModule(WebModule object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Java Client Module</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Java Client Module</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseJavaClientModule(JavaClientModule object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Ejb Module</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Ejb Module</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEjbModule(EjbModule object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Connector Module</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Connector Module</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseConnectorModule(ConnectorModule object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionGroup(DescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Module</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Module</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseApplication_Module(Module object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //ApplicationSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/package.xml b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/package.xml deleted file mode 100644 index 5cfbab18a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/package.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<html> - <head> - <meta - name="root" - content="../../../../../../../" /> - <title>Enterprise Application model api overview</title> - </head> - - <body> - <abstract> - This package includes the j2ee Application module model api. Using this api the artifacts of an Application - can be created and accessed. - </abstract> - - <a href="#top">top</a> - </body> -</html> -
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClient.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClient.java deleted file mode 100644 index 2a21e9874..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClient.java +++ /dev/null @@ -1,228 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; - - -/** - * The application-client element is the root element of an application client deployment descriptor. The application client deployment descriptor describes the EJB components and external resources referenced by the application client. - - * @since 1.0 */ -public interface ApplicationClient extends CompatibilityDescriptionGroup{ - -/** - * Returns the String name of the call back handler - * @return the class name of the callback handler - */ -public String getCallbackHandlerClassName(); -/** - * Return boolean indicating if this Application Client was populated from an Application Client 1.2 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion1_2Descriptor(); -/** - * Return boolean indicating if this Application client was populated from an Application Client 1.3 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion1_3Descriptor(); -/** - * Return boolean indicating if this Application client was populated from an Application Client 1.4 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - * */ -public boolean isVersion1_4Descriptor(); -/** - * The class must have a no args constructor - * and must implement the javax.security.auth.callback.CallbackHandler interface. - * @param callbackHandlerClassName the name of the class of the CallbackHandler reference - */ -public void setCallbackHandlerClassName(String callbackHandlerClassName); - /** - * Returns the value of the '<em><b>Version</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Version</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The required value for the version is 1.4. - * <!-- end-model-doc --> - * @return the value of the '<em>Version</em>' attribute. - * @see #setVersion(String) - * @see org.eclipse.jst.j2ee.client.ClientPackage#getApplicationClient_Version() - * @model - * @generated - */ - String getVersion(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.client.ApplicationClient#getVersion <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Version</em>' attribute. - * @see #getVersion() - * @generated - */ - void setVersion(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of ResourceRefs references - * Contains declarations of the application clients's references to an external - * resources. - */ - EList getResourceRefs(); - - /** - This returns the module version id. Compare with J2EEVersionConstants to determine module level - * - * @return the int representing the app client module version - * @throws IllegalStateException - when EMF resource is not loaded - */ - public int getVersionID() throws IllegalStateException ; - /** - *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level - * @return the int representing the J2EE spec version. - * @throws IllegalStateException - when EMF resource is not loaded - */ - public int getJ2EEVersionID() throws IllegalStateException ; - - /** - * @generated This field/method will be replaced during code generation - * @return The list of EnvironmentProps references - * The env-entry element contains the declaration of an application client's - * environment entries. Each declaration consists of an optional description, the - * name of the environment entry, and an optional value. - */ - EList getEnvironmentProps(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of EjbReferences references - * Contains a list of ejb-ref elements used for the declaration of a reference to - * an enterprise - * bean's home. - */ - EList getEjbReferences(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of ResourceEnvRefs references - * The resource-env-ref element contains a declaration of an application client's - * reference to an administered object associated with a resource in the - * application client's environment. It consists of an optional - * description, the resource environment reference name, and an indication of the - * resource environment reference type expected by the application client code. - * - * Used in: application-client - * - * Example: - * - * <resource-env-ref> - * <resource-env-ref-name>jms//StockQueue<//resource-env-ref-name> - * <resource-env-ref-type>javax.jms.Queue<//resource-env-ref-type> - * <//resource-env-ref> - - */ - EList getResourceEnvRefs(); - - /** - * @generated This field/method will be replaced during code generation - * @return The CallbackHandler reference - * A class provided by the application. The class must have a no args constructor - * and must implement the javax.security.auth.callback.CallbackHandler interface. - * The class will be instantiated by the application client container and used by - * the container to collect authentication information from the user. - */ - JavaClass getCallbackHandler(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the CallbackHandler reference - */ - void setCallbackHandler(JavaClass value); - - /** - * Returns the value of the '<em><b>Service Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Service Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.client.ClientPackage#getApplicationClient_ServiceRefs() - * @model type="org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef" containment="true" - * @generated - */ - EList getServiceRefs(); - - /** - * Returns the value of the '<em><b>Message Destination Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.MessageDestinationRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Message Destination Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The message-destination-ref-name element specifies the - * name of a message destination reference; its value is - * the message destination reference name used in the - * application client code. The name is a JNDI name - * relative to the java:comp/env context and must be unique - * within an application client. - * <!-- end-model-doc --> - * @return the value of the '<em>Message Destination Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.client.ClientPackage#getApplicationClient_MessageDestinationRefs() - * @model type="org.eclipse.jst.j2ee.common.MessageDestinationRef" containment="true" - * @generated - */ - EList getMessageDestinationRefs(); - - /** - * Returns the value of the '<em><b>Message Destinations</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.MessageDestination}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Message Destinations</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Message Destinations</em>' containment reference list. - * @see org.eclipse.jst.j2ee.client.ClientPackage#getApplicationClient_MessageDestinations() - * @model type="org.eclipse.jst.j2ee.common.MessageDestination" containment="true" - * @generated - */ - EList getMessageDestinations(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClientResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClientResource.java deleted file mode 100644 index 977143d1a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClientResource.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client; - -import org.eclipse.jst.j2ee.internal.common.XMLResource; - -/** - * EMF Resource class the contrains App Client document - * @since 1.0 - */ -public interface ApplicationClientResource extends XMLResource { -/** - * Returns the one contained object in this resource's collection of root objects - * @return ApplicationClient, the root object for the App Client document. - */ -public ApplicationClient getApplicationClient() ; -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ClientFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ClientFactory.java deleted file mode 100644 index 71a6ef545..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ClientFactory.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client; - -import org.eclipse.emf.ecore.EFactory; -/** - * @generated - * @since 1.0 */ -public interface ClientFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - ClientFactory eINSTANCE = new org.eclipse.jst.j2ee.client.internal.impl.ClientFactoryImpl(); - - /** - * @generated This field/method will be replaced during code generation - * @return ApplicationClient value - */ - ApplicationClient createApplicationClient(); - - /** - * @generated This field/method will be replaced during code generation. - * @return ClientPackage value - */ - ClientPackage getClientPackage(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ClientPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ClientPackage.java deleted file mode 100644 index 71751474e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ClientPackage.java +++ /dev/null @@ -1,285 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jst.j2ee.common.CommonPackage; - -/** - * <p> - * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. - * </p> - * @since 1.0 - */ - -public interface ClientPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "client"; //$NON-NLS-1$ - - /** - * @generated This field/method will be replaced during code generation. - */ - - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT = 0; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - /** - * The feature id for the '<em><b>Version</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT__VERSION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT__RESOURCE_REFS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT__ENVIRONMENT_PROPS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT__EJB_REFERENCES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT__RESOURCE_ENV_REFS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int APPLICATION_CLIENT__CALLBACK_HANDLER = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 5; - - /** - * The feature id for the '<em><b>Service Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT__SERVICE_REFS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 6; - - /** - * The feature id for the '<em><b>Message Destination Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT__MESSAGE_DESTINATION_REFS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 7; - - /** - * The feature id for the '<em><b>Message Destinations</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT__MESSAGE_DESTINATIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 8; - - /** - * The number of structural features of the the '<em>Application Client</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_CLIENT_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 9; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.client.ResAuthApplicationType <em>Res Auth Application Type</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.client.ResAuthApplicationType - * @see org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl#getResAuthApplicationType() - * @generated - */ - int RES_AUTH_APPLICATION_TYPE = 1; - - - /** - * @generated This field/method will be replaced during code generation. - */ - String eNS_URI = "client.xmi"; //$NON-NLS-1$ - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.client"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - ClientPackage eINSTANCE = org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl.init(); - - /** - * @generated This field/method will be replaced during code generation - * @return ApplicationClient object - */ - EClass getApplicationClient(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.client.ApplicationClient#getVersion <em>Version</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Version</em>'. - * @see org.eclipse.jst.j2ee.client.ApplicationClient#getVersion() - * @see #getApplicationClient() - * @generated - */ - EAttribute getApplicationClient_Version(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getApplicationClient_ResourceRefs(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getApplicationClient_EnvironmentProps(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getApplicationClient_EjbReferences(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getApplicationClient_ResourceEnvRefs(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getApplicationClient_CallbackHandler(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.client.ApplicationClient#getServiceRefs <em>Service Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Service Refs</em>'. - * @see org.eclipse.jst.j2ee.client.ApplicationClient#getServiceRefs() - * @see #getApplicationClient() - * @generated - */ - EReference getApplicationClient_ServiceRefs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.client.ApplicationClient#getMessageDestinationRefs <em>Message Destination Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Message Destination Refs</em>'. - * @see org.eclipse.jst.j2ee.client.ApplicationClient#getMessageDestinationRefs() - * @see #getApplicationClient() - * @generated - */ - EReference getApplicationClient_MessageDestinationRefs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.client.ApplicationClient#getMessageDestinations <em>Message Destinations</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Message Destinations</em>'. - * @see org.eclipse.jst.j2ee.client.ApplicationClient#getMessageDestinations() - * @see #getApplicationClient() - * @generated - */ - EReference getApplicationClient_MessageDestinations(); - - /** - * Returns the meta object for enum '{@link org.eclipse.jst.j2ee.client.ResAuthApplicationType <em>Res Auth Application Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for enum '<em>Res Auth Application Type</em>'. - * @see org.eclipse.jst.j2ee.client.ResAuthApplicationType - * @generated - */ - EEnum getResAuthApplicationType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - ClientFactory getClientFactory(); - -} //ClientPackage - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ResAuthApplicationType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ResAuthApplicationType.java deleted file mode 100644 index b8f96a1c2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ResAuthApplicationType.java +++ /dev/null @@ -1,139 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - -/** - *@since 1.0 - */ - -public final class ResAuthApplicationType extends AbstractEnumerator{ - /** - * The '<em><b>Application</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #APPLICATION_LITERAL - * @model name="Application" - * @generated - * @ordered - */ - public static final int APPLICATION = 0; - - /** - * The '<em><b>Container</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #CONTAINER_LITERAL - * @model name="Container" - * @generated - * @ordered - */ - public static final int CONTAINER = 1; - - /** - * The '<em><b>Application</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Application</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #APPLICATION - * @generated - * @ordered - */ - public static final ResAuthApplicationType APPLICATION_LITERAL = new ResAuthApplicationType(APPLICATION, "Application"); //$NON-NLS-1$ - - /** - * The '<em><b>Container</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Container</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #CONTAINER - * @generated - * @ordered - */ - public static final ResAuthApplicationType CONTAINER_LITERAL = new ResAuthApplicationType(CONTAINER, "Container"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Res Auth Application Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final ResAuthApplicationType[] VALUES_ARRAY = - new ResAuthApplicationType[] { - APPLICATION_LITERAL, - CONTAINER_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Res Auth Application Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Res Auth Application Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static ResAuthApplicationType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - ResAuthApplicationType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Res Auth Application Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static ResAuthApplicationType get(int value) { - switch (value) { - case APPLICATION: return APPLICATION_LITERAL; - case CONTAINER: return CONTAINER_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private ResAuthApplicationType(int value, String name) { - super(value, name); - } - -} //ResAuthApplicationType - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ApplicationClientImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ApplicationClientImpl.java deleted file mode 100644 index 999d9e9bf..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ApplicationClientImpl.java +++ /dev/null @@ -1,606 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.EnvEntry; -import org.eclipse.jst.j2ee.common.MessageDestination; -import org.eclipse.jst.j2ee.common.MessageDestinationRef; -import org.eclipse.jst.j2ee.common.ResourceEnvRef; -import org.eclipse.jst.j2ee.common.ResourceRef; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.common.internal.util.CommonUtil; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef; - - -/** - * The application-client element is the root element of an application client deployment descriptor. The application client deployment descriptor describes the EJB components and external resources referenced by the application client. - - */ -public class ApplicationClientImpl extends CompatibilityDescriptionGroupImpl implements ApplicationClient { - - /** - * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected static final String VERSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected String version = VERSION_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList resourceRefs = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList environmentProps = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList ejbReferences = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList resourceEnvRefs = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass callbackHandler = null; - /** - * The cached value of the '{@link #getServiceRefs() <em>Service Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceRefs() - * @generated - * @ordered - */ - protected EList serviceRefs = null; - - /** - * The cached value of the '{@link #getMessageDestinationRefs() <em>Message Destination Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageDestinationRefs() - * @generated - * @ordered - */ - protected EList messageDestinationRefs = null; - - /** - * The cached value of the '{@link #getMessageDestinations() <em>Message Destinations</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageDestinations() - * @generated - * @ordered - */ - protected EList messageDestinations = null; - - public ApplicationClientImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ClientPackage.eINSTANCE.getApplicationClient(); - } - -/** - * createClassRef - return a JavaURL reference to the named Java class - */ -public JavaClass createClassRef(String targetName) { - return JavaRefFactory.eINSTANCE.createClassRef(targetName); -} -public String getCallbackHandlerClassName() { - getCallbackHandler(); - return (callbackHandler == null) ? null : callbackHandler.getQualifiedName(); -} -/** - * Return boolean indicating if this Application Client was populated from an Application Client 1.2 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion1_2Descriptor() { - CommonUtil.checkDDObjectForVersion(this); - String systemId = ((XMLResource)eResource()).getSystemId(); - return systemId == null ? false : systemId.equals(J2EEConstants.APP_CLIENT_SYSTEMID_1_2); -} -/** - * Return boolean indicating if this Application client was populated from an Application Client 1.3 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion1_3Descriptor() { - CommonUtil.checkDDObjectForVersion(this); - String systemId = ((XMLResource)eResource()).getSystemId(); - return systemId == null ? false : systemId.equals(J2EEConstants.APP_CLIENT_SYSTEMID_1_3); -} -/** - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion1_4Descriptor() { - return version != null && J2EEConstants.J2EE_1_4_TEXT.equals(version); -} -public void setCallbackHandlerClassName(String callbackHandlerClassName) { - eSet(ClientPackage.eINSTANCE.getApplicationClient_CallbackHandler(), createClassRef(callbackHandlerClassName)); -} -/** - *This returns the module version id. Compare with J2EEVersionConstants to determine module level - */ -public int getVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) throw new IllegalStateException(); - return res.getModuleVersionID(); -} -/** - *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level - */ -public int getJ2EEVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) throw new IllegalStateException(); - return res.getJ2EEVersionID(); -} - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getVersion() { - return version; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setVersion(String newVersion) { - String oldVersion = version; - version = newVersion; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ClientPackage.APPLICATION_CLIENT__VERSION, oldVersion, version)); - } - - /** - * @generated This field/method will be replaced during code generation - * Contains declarations of the application clients's references to an external - * resources. - */ - public EList getResourceRefs() { - if (resourceRefs == null) { - resourceRefs = new EObjectContainmentEList(ResourceRef.class, this, ClientPackage.APPLICATION_CLIENT__RESOURCE_REFS); - } - return resourceRefs; - } - - /** - * @generated This field/method will be replaced during code generation - * The env-entry element contains the declaration of an application client's - * environment entries. Each declaration consists of an optional description, the - * name of the environment entry, and an optional value. - */ - public EList getEnvironmentProps() { - if (environmentProps == null) { - environmentProps = new EObjectContainmentEList(EnvEntry.class, this, ClientPackage.APPLICATION_CLIENT__ENVIRONMENT_PROPS); - } - return environmentProps; - } - - /** - * @generated This field/method will be replaced during code generation - * Contains a list of ejb-ref elements used for the declaration of a reference to - * an enterprise - * bean's home. - */ - public EList getEjbReferences() { - if (ejbReferences == null) { - ejbReferences = new EObjectContainmentEList(EjbRef.class, this, ClientPackage.APPLICATION_CLIENT__EJB_REFERENCES); - } - return ejbReferences; - } - - /** - * @generated This field/method will be replaced during code generation - * The resource-env-ref element contains a declaration of an application client's - * reference to an administered object associated with a resource in the - * application client's environment. It consists of an optional - * description, the resource environment reference name, and an indication of the - * resource environment reference type expected by the application client code. - * - * Used in: application-client - * - * Example: - * - * <resource-env-ref> - * <resource-env-ref-name>jms//StockQueue<//resource-env-ref-name> - * <resource-env-ref-type>javax.jms.Queue<//resource-env-ref-type> - * <//resource-env-ref> - - */ - public EList getResourceEnvRefs() { - if (resourceEnvRefs == null) { - resourceEnvRefs = new EObjectContainmentEList(ResourceEnvRef.class, this, ClientPackage.APPLICATION_CLIENT__RESOURCE_ENV_REFS); - } - return resourceEnvRefs; - } - - /** - * @generated This field/method will be replaced during code generation - * A class provided by the application. The class must have a no args constructor and must implement the javax.security.auth.callback.CallbackHandler interface. The class will be instantiated by the application client container and used by the container to collect authentication information from the user. - */ - public JavaClass getCallbackHandler() { - if (callbackHandler != null && callbackHandler.eIsProxy()) { - JavaClass oldCallbackHandler = callbackHandler; - callbackHandler = (JavaClass)eResolveProxy((InternalEObject)callbackHandler); - if (callbackHandler != oldCallbackHandler) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ClientPackage.APPLICATION_CLIENT__CALLBACK_HANDLER, oldCallbackHandler, callbackHandler)); - } - } - return callbackHandler; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetCallbackHandler() { - return callbackHandler; - } - - /** - */ - public void setCallbackHandler(JavaClass newCallbackHandler) { - if ((callbackHandler == null || callbackHandler.getQualifiedName() == null) - && (newCallbackHandler == null || newCallbackHandler.getQualifiedName() == null)) { - return; - } - JavaClass oldCallbackHandler = callbackHandler; - callbackHandler = newCallbackHandler; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ClientPackage.APPLICATION_CLIENT__CALLBACK_HANDLER, oldCallbackHandler, callbackHandler)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getServiceRefs() { - if (serviceRefs == null) { - serviceRefs = new EObjectContainmentEList(ServiceRef.class, this, ClientPackage.APPLICATION_CLIENT__SERVICE_REFS); - } - return serviceRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getMessageDestinationRefs() { - if (messageDestinationRefs == null) { - messageDestinationRefs = new EObjectContainmentEList(MessageDestinationRef.class, this, ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATION_REFS); - } - return messageDestinationRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getMessageDestinations() { - if (messageDestinations == null) { - messageDestinations = new EObjectContainmentEList(MessageDestination.class, this, ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATIONS); - } - return messageDestinations; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case ClientPackage.APPLICATION_CLIENT__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case ClientPackage.APPLICATION_CLIENT__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case ClientPackage.APPLICATION_CLIENT__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case ClientPackage.APPLICATION_CLIENT__RESOURCE_REFS: - return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs); - case ClientPackage.APPLICATION_CLIENT__ENVIRONMENT_PROPS: - return ((InternalEList)getEnvironmentProps()).basicRemove(otherEnd, msgs); - case ClientPackage.APPLICATION_CLIENT__EJB_REFERENCES: - return ((InternalEList)getEjbReferences()).basicRemove(otherEnd, msgs); - case ClientPackage.APPLICATION_CLIENT__RESOURCE_ENV_REFS: - return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs); - case ClientPackage.APPLICATION_CLIENT__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - case ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATION_REFS: - return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs); - case ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATIONS: - return ((InternalEList)getMessageDestinations()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ClientPackage.APPLICATION_CLIENT__ICONS: - return getIcons(); - case ClientPackage.APPLICATION_CLIENT__DISPLAY_NAMES: - return getDisplayNames(); - case ClientPackage.APPLICATION_CLIENT__DESCRIPTIONS: - return getDescriptions(); - case ClientPackage.APPLICATION_CLIENT__SMALL_ICON: - return getSmallIcon(); - case ClientPackage.APPLICATION_CLIENT__LARGE_ICON: - return getLargeIcon(); - case ClientPackage.APPLICATION_CLIENT__DESCRIPTION: - return getDescription(); - case ClientPackage.APPLICATION_CLIENT__DISPLAY_NAME: - return getDisplayName(); - case ClientPackage.APPLICATION_CLIENT__VERSION: - return getVersion(); - case ClientPackage.APPLICATION_CLIENT__RESOURCE_REFS: - return getResourceRefs(); - case ClientPackage.APPLICATION_CLIENT__ENVIRONMENT_PROPS: - return getEnvironmentProps(); - case ClientPackage.APPLICATION_CLIENT__EJB_REFERENCES: - return getEjbReferences(); - case ClientPackage.APPLICATION_CLIENT__RESOURCE_ENV_REFS: - return getResourceEnvRefs(); - case ClientPackage.APPLICATION_CLIENT__CALLBACK_HANDLER: - if (resolve) return getCallbackHandler(); - return basicGetCallbackHandler(); - case ClientPackage.APPLICATION_CLIENT__SERVICE_REFS: - return getServiceRefs(); - case ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATION_REFS: - return getMessageDestinationRefs(); - case ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATIONS: - return getMessageDestinations(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ClientPackage.APPLICATION_CLIENT__ICONS: - return icons != null && !icons.isEmpty(); - case ClientPackage.APPLICATION_CLIENT__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case ClientPackage.APPLICATION_CLIENT__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case ClientPackage.APPLICATION_CLIENT__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case ClientPackage.APPLICATION_CLIENT__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case ClientPackage.APPLICATION_CLIENT__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case ClientPackage.APPLICATION_CLIENT__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case ClientPackage.APPLICATION_CLIENT__VERSION: - return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); - case ClientPackage.APPLICATION_CLIENT__RESOURCE_REFS: - return resourceRefs != null && !resourceRefs.isEmpty(); - case ClientPackage.APPLICATION_CLIENT__ENVIRONMENT_PROPS: - return environmentProps != null && !environmentProps.isEmpty(); - case ClientPackage.APPLICATION_CLIENT__EJB_REFERENCES: - return ejbReferences != null && !ejbReferences.isEmpty(); - case ClientPackage.APPLICATION_CLIENT__RESOURCE_ENV_REFS: - return resourceEnvRefs != null && !resourceEnvRefs.isEmpty(); - case ClientPackage.APPLICATION_CLIENT__CALLBACK_HANDLER: - return callbackHandler != null; - case ClientPackage.APPLICATION_CLIENT__SERVICE_REFS: - return serviceRefs != null && !serviceRefs.isEmpty(); - case ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATION_REFS: - return messageDestinationRefs != null && !messageDestinationRefs.isEmpty(); - case ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATIONS: - return messageDestinations != null && !messageDestinations.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ClientPackage.APPLICATION_CLIENT__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__DESCRIPTION: - setDescription((String)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__VERSION: - setVersion((String)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__RESOURCE_REFS: - getResourceRefs().clear(); - getResourceRefs().addAll((Collection)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__ENVIRONMENT_PROPS: - getEnvironmentProps().clear(); - getEnvironmentProps().addAll((Collection)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__EJB_REFERENCES: - getEjbReferences().clear(); - getEjbReferences().addAll((Collection)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - getResourceEnvRefs().addAll((Collection)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__CALLBACK_HANDLER: - setCallbackHandler((JavaClass)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - getMessageDestinationRefs().addAll((Collection)newValue); - return; - case ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATIONS: - getMessageDestinations().clear(); - getMessageDestinations().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case ClientPackage.APPLICATION_CLIENT__ICONS: - getIcons().clear(); - return; - case ClientPackage.APPLICATION_CLIENT__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case ClientPackage.APPLICATION_CLIENT__DESCRIPTIONS: - getDescriptions().clear(); - return; - case ClientPackage.APPLICATION_CLIENT__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case ClientPackage.APPLICATION_CLIENT__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case ClientPackage.APPLICATION_CLIENT__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case ClientPackage.APPLICATION_CLIENT__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case ClientPackage.APPLICATION_CLIENT__VERSION: - setVersion(VERSION_EDEFAULT); - return; - case ClientPackage.APPLICATION_CLIENT__RESOURCE_REFS: - getResourceRefs().clear(); - return; - case ClientPackage.APPLICATION_CLIENT__ENVIRONMENT_PROPS: - getEnvironmentProps().clear(); - return; - case ClientPackage.APPLICATION_CLIENT__EJB_REFERENCES: - getEjbReferences().clear(); - return; - case ClientPackage.APPLICATION_CLIENT__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - return; - case ClientPackage.APPLICATION_CLIENT__CALLBACK_HANDLER: - setCallbackHandler((JavaClass)null); - return; - case ClientPackage.APPLICATION_CLIENT__SERVICE_REFS: - getServiceRefs().clear(); - return; - case ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - return; - case ClientPackage.APPLICATION_CLIENT__MESSAGE_DESTINATIONS: - getMessageDestinations().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (version: "); - result.append(version); - result.append(')'); - return result.toString(); - } - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ApplicationClientResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ApplicationClientResourceFactory.java deleted file mode 100644 index 9385b1720..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ApplicationClientResourceFactory.java +++ /dev/null @@ -1,84 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client.internal.impl; - - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.RendererFactory; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory; - - -public class ApplicationClientResourceFactory extends TranslatorResourceFactory { - - /** - * Method registerDtds. - */ - public static void registerDtds() { - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APP_CLIENT_SYSTEMID_1_2, "application-client_1_2.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APP_CLIENT_ALT_SYSTEMID_1_2, "application-client_1.2.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APP_CLIENT_SYSTEMID_1_3, "application-client_1_3.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APP_CLIENT_ALT_SYSTEMID_1_3, "application-client_1.3.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APP_CLIENT_SCHEMA_LOC_1_4, "application-client_1_4.xsd"); //$NON-NLS-1$ - } - - /** - * Constructor for ApplicationClientResourceFactory. - */ - public ApplicationClientResourceFactory() { - super(RendererFactory.getDefaultRendererFactory()); - } - - /** - * Constructor for ApplicationClientResourceFactory. - * @param aRendererFactory - */ - public ApplicationClientResourceFactory(RendererFactory aRendererFactory) { - super(aRendererFactory); - } - - /** - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceFactory#createResource(URI, Renderer) - */ - protected TranslatorResource createResource(URI uri, Renderer aRenderer) { - return new ApplicationClientResourceImpl(uri, aRenderer); - } - - /** - * Register myself with the Resource.Factory.Registry - */ - public static void registerWith(RendererFactory aRendererFactory) { - J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(J2EEConstants.APP_CLIENT_DD_SHORT_NAME, new ApplicationClientResourceFactory(aRendererFactory)); - } - /** - * register using the default renderer factory. - * @see #registerWith(RendererFactory) - */ - public static void register() { - registerWith(RendererFactory.getDefaultRendererFactory()); - } - - public static void register(FileNameResourceFactoryRegistry aRegistry) { - aRegistry.registerLastFileSegment(J2EEConstants.APP_CLIENT_DD_SHORT_NAME, new ApplicationClientResourceFactory(RendererFactory.getDefaultRendererFactory())); - } - - - public static Resource.Factory getRegisteredFactory() { - return J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.APP_CLIENT_DD_URI_OBJ); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ApplicationClientResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ApplicationClientResourceImpl.java deleted file mode 100644 index ece239b41..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ApplicationClientResourceImpl.java +++ /dev/null @@ -1,162 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client.internal.impl; - - - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.client.ApplicationClientResource; -import org.eclipse.jst.j2ee.common.internal.impl.XMLResourceImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.model.translator.client.ApplicationClientTranslator; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class ApplicationClientResourceImpl extends XMLResourceImpl implements ApplicationClientResource { - /** - * Constructor for ApplicationClientResourceImpl. - * @param uri - * @param aRenderer - */ - public ApplicationClientResourceImpl(URI uri, Renderer aRenderer) { - super(uri, aRenderer); - } - - /** - * Constructor for ApplicationClientResourceImpl. - * @param aRenderer - */ - public ApplicationClientResourceImpl(Renderer aRenderer) { - super(aRenderer); - } - - /** - * Return the first element in the EList. - */ - public ApplicationClient getApplicationClient() { - return (ApplicationClient) getRootObject(); - } - - - public int getType() { - return APP_CLIENT_TYPE; - } - - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_SystemID() - */ - public String getJ2EE_1_2_SystemID() { - return J2EEConstants.APP_CLIENT_SYSTEMID_1_2; - } - - public String getJ2EE_Alt_1_2_SystemID() { - return J2EEConstants.APP_CLIENT_ALT_SYSTEMID_1_2; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID() - */ - public String getJ2EE_1_3_SystemID() { - return J2EEConstants.APP_CLIENT_SYSTEMID_1_3; - } - - public String getJ2EE_Alt_1_3_SystemID() { - return J2EEConstants.APP_CLIENT_ALT_SYSTEMID_1_3; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_PublicID() - */ - public String getJ2EE_1_2_PublicID() { - return J2EEConstants.APP_CLIENT_PUBLICID_1_2; - } - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_PublicID() - */ - public String getJ2EE_1_3_PublicID() { - return J2EEConstants.APP_CLIENT_PUBLICID_1_3; - } - - - public String getDoctype() { - switch (getJ2EEVersionID()) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - return J2EEConstants.APP_CLIENT_DOCTYPE; - default : - return null; - } - } - - /** - * @see com.ibm.etools.emf2xml.TranslatorResource#getRootTranslator() - */ - public Translator getRootTranslator() { - return ApplicationClientTranslator.INSTANCE; - } - - /* App client version is always the same as the J2EE version - */ - public int getJ2EEVersionID() { - return getModuleVersionID(); - } - /* - * This directly sets the module version id - */ - public void setModuleVersionID(int id) { - super.setVersionID(id); - switch (id) { - case (J2EE_1_4_ID) : - super.setDoctypeValues(null, null); - break; - case (J2EE_1_3_ID) : - super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - break; - case (J2EE_1_2_ID) : - super.setDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - } - syncVersionOfRootObject(); - } - /* - * Based on the J2EE version, this will set the module version(Same as J2EE Version for App client) - */ - public void setJ2EEVersionID(int id) { - primSetVersionID(id); - switch (id) { - case (J2EE_1_4_ID) : - primSetDoctypeValues(null, null); - break; - case (J2EE_1_3_ID) : - primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - break; - case (J2EE_1_2_ID) : - primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - } - syncVersionOfRootObject(); - } - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.impl.XMLResourceImpl#syncVersionOfRootObject() - */ - protected void syncVersionOfRootObject() { - ApplicationClient clt = getApplicationClient(); - if (clt == null) - return; - - String version = clt.getVersion(); - String newVersion = getModuleVersionString(); - if (!newVersion.equals(version)) - clt.setVersion(newVersion); - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ClientFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ClientFactoryImpl.java deleted file mode 100644 index 3e20ba017..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ClientFactoryImpl.java +++ /dev/null @@ -1,105 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.client.ClientFactory; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.ResAuthApplicationType; - -/** - * @generated - */ -public class ClientFactoryImpl extends EFactoryImpl implements ClientFactory{ - - public ClientFactoryImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case ClientPackage.APPLICATION_CLIENT: return createApplicationClient(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case ClientPackage.RES_AUTH_APPLICATION_TYPE: { - ResAuthApplicationType result = ResAuthApplicationType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case ClientPackage.RES_AUTH_APPLICATION_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - -public static ClientFactory getActiveFactory() { - return (ClientFactory) getPackage().getEFactoryInstance(); -} - /** - * @generated This field/method will be replaced during code generation. - */ - public ApplicationClient createApplicationClient() { - ApplicationClientImpl applicationClient = new ApplicationClientImpl(); - return applicationClient; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ClientPackage getClientPackage() { - return (ClientPackage)getEPackage(); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public static ClientPackage getPackage() { - return ClientPackage.eINSTANCE; - } - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ClientPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ClientPackageImpl.java deleted file mode 100644 index 4346947a1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/impl/ClientPackageImpl.java +++ /dev/null @@ -1,325 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.client.ClientFactory; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.ResAuthApplicationType; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -public class ClientPackageImpl extends EPackageImpl implements ClientPackage, EPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass applicationClientEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum resAuthApplicationTypeEEnum = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - private ClientPackageImpl() { - super(eNS_URI, ClientFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - public static ClientPackage init() { - if (isInited) return (ClientPackage)EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI); - - // Obtain or create and register package - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ClientPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE); - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE); - - // Create package meta-data objects - theClientPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theCommonPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theTaglibPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - theWscommonPackage.createPackageContents(); - theWsddPackage.createPackageContents(); - - // Initialize created meta-data - theClientPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theTaglibPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - theWscommonPackage.initializePackageContents(); - theWsddPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theClientPackage.freeze(); - - return theClientPackage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getApplicationClient() { - return applicationClientEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getApplicationClient_Version() { - return (EAttribute)applicationClientEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getApplicationClient_ResourceRefs() { - return (EReference)applicationClientEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getApplicationClient_EnvironmentProps() { - return (EReference)applicationClientEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getApplicationClient_EjbReferences() { - return (EReference)applicationClientEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getApplicationClient_ResourceEnvRefs() { - return (EReference)applicationClientEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getApplicationClient_CallbackHandler() { - return (EReference)applicationClientEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplicationClient_ServiceRefs() { - return (EReference)applicationClientEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplicationClient_MessageDestinationRefs() { - return (EReference)applicationClientEClass.getEStructuralFeatures().get(7); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplicationClient_MessageDestinations() { - return (EReference)applicationClientEClass.getEStructuralFeatures().get(8); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getResAuthApplicationType() { - return resAuthApplicationTypeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ClientFactory getClientFactory() { - return (ClientFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - applicationClientEClass = createEClass(APPLICATION_CLIENT); - createEAttribute(applicationClientEClass, APPLICATION_CLIENT__VERSION); - createEReference(applicationClientEClass, APPLICATION_CLIENT__RESOURCE_REFS); - createEReference(applicationClientEClass, APPLICATION_CLIENT__ENVIRONMENT_PROPS); - createEReference(applicationClientEClass, APPLICATION_CLIENT__EJB_REFERENCES); - createEReference(applicationClientEClass, APPLICATION_CLIENT__RESOURCE_ENV_REFS); - createEReference(applicationClientEClass, APPLICATION_CLIENT__CALLBACK_HANDLER); - createEReference(applicationClientEClass, APPLICATION_CLIENT__SERVICE_REFS); - createEReference(applicationClientEClass, APPLICATION_CLIENT__MESSAGE_DESTINATION_REFS); - createEReference(applicationClientEClass, APPLICATION_CLIENT__MESSAGE_DESTINATIONS); - - // Create enums - resAuthApplicationTypeEEnum = createEEnum(RES_AUTH_APPLICATION_TYPE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - JavaRefPackageImpl theJavaRefPackage = (JavaRefPackageImpl)EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI); - - // Add supertypes to classes - applicationClientEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - - // Initialize classes and features; add operations and parameters - initEClass(applicationClientEClass, ApplicationClient.class, "ApplicationClient", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getApplicationClient_Version(), ecorePackage.getEString(), "version", null, 0, 1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getApplicationClient_ResourceRefs(), theCommonPackage.getResourceRef(), null, "resourceRefs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getApplicationClient_EnvironmentProps(), theCommonPackage.getEnvEntry(), null, "environmentProps", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getApplicationClient_EjbReferences(), theCommonPackage.getEjbRef(), null, "ejbReferences", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getApplicationClient_ResourceEnvRefs(), theCommonPackage.getResourceEnvRef(), null, "resourceEnvRefs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getApplicationClient_CallbackHandler(), theJavaRefPackage.getJavaClass(), null, "callbackHandler", null, 0, 1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getApplicationClient_ServiceRefs(), theWebservice_clientPackage.getServiceRef(), null, "serviceRefs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getApplicationClient_MessageDestinationRefs(), theCommonPackage.getMessageDestinationRef(), null, "messageDestinationRefs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getApplicationClient_MessageDestinations(), theCommonPackage.getMessageDestination(), null, "messageDestinations", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(resAuthApplicationTypeEEnum, ResAuthApplicationType.class, "ResAuthApplicationType"); - addEEnumLiteral(resAuthApplicationTypeEEnum, ResAuthApplicationType.APPLICATION_LITERAL); - addEEnumLiteral(resAuthApplicationTypeEEnum, ResAuthApplicationType.CONTAINER_LITERAL); - - // Create resource - createResource(eNS_URI); - } - -} //ClientPackageImpl - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/util/ClientAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/util/ClientAdapterFactory.java deleted file mode 100644 index e87ff43c9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/util/ClientAdapterFactory.java +++ /dev/null @@ -1,158 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; - - - -public class ClientAdapterFactory extends AdapterFactoryImpl { - protected static ClientPackage modelPackage; - - public ClientAdapterFactory() { - if (modelPackage == null) { - modelPackage = (ClientPackage)EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI); - } - } - public boolean isFactoryForType(Object type) { - if (type == modelPackage) { - return true; - } - if (type instanceof EObject) { - return ((EObject)type).eClass().eContainer() == modelPackage; - } - return false; - } - - protected ClientSwitch sw = new ClientSwitch() { - public Object caseApplicationClient(ApplicationClient object) { - return createApplicationClientAdapter(); - } - }; - - public Adapter createAdapter(Notifier target) { - return (Adapter)sw.doSwitch((EObject)target); - } - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - public Adapter createApplicationClientAdapter() { - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean isFactoryForTypeGen(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ClientSwitch modelSwitch = - new ClientSwitch() { - public Object caseApplicationClient(ApplicationClient object) { - return createApplicationClientAdapter(); - } - public Object caseDescriptionGroup(DescriptionGroup object) { - return createDescriptionGroupAdapter(); - } - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return createCompatibilityDescriptionGroupAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAdapterGen(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createApplicationClientAdapterGen() { - - return null; - } - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - public Adapter createDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - public Adapter createCompatibilityDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //ClientAdapterFactory - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/util/ClientSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/util/ClientSwitch.java deleted file mode 100644 index 25aa59873..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/internal/util/ClientSwitch.java +++ /dev/null @@ -1,169 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.client.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.client.ApplicationClient; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.client.ClientPackage - * @generated - */ -public class ClientSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static ClientPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ClientSwitch() { - if (modelPackage == null) { - modelPackage = ClientPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case ClientPackage.APPLICATION_CLIENT: { - ApplicationClient applicationClient = (ApplicationClient)theEObject; - Object result = caseApplicationClient(applicationClient); - if (result == null) result = caseCompatibilityDescriptionGroup(applicationClient); - if (result == null) result = caseDescriptionGroup(applicationClient); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Application Client</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Application Client</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseApplicationClient(ApplicationClient object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionGroup(DescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //ClientSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/package.xml b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/package.xml deleted file mode 100644 index 43d1f530c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/package.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<html> - <head> - <meta - name="root" - content="../../../../../../../" /> - <title>EJB Artifact Edit api overview</title> - </head> - - <body> - <abstract> - This package includes the j2ee Application Client module model api. Using this api the artifacts of an Application Client app - can be created and accessed. - </abstract> - - <a href="#top">top</a> - </body> -</html> -
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonFactory.java deleted file mode 100644 index 5e7d85a98..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonFactory.java +++ /dev/null @@ -1,232 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.ecore.EFactory; - -/** - * <!-- begin-user-doc --> - * The <b>Factory</b> for the model. - * It provides a create method for each non-abstract class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.CommonPackage - * @generated - * @since 1.0 */ -public interface CommonFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - CommonFactory eINSTANCE = new org.eclipse.jst.j2ee.common.internal.impl.CommonFactoryImpl(); - - /** - * Returns a new object of class '<em>Ejb Ref</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Ejb Ref</em>'. - * @generated - */ - EjbRef createEjbRef(); - - /** - * Returns a new object of class '<em>Env Entry</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Env Entry</em>'. - * @generated - */ - EnvEntry createEnvEntry(); - - /** - * Returns a new object of class '<em>Resource Ref</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Resource Ref</em>'. - * @generated - */ - ResourceRef createResourceRef(); - - /** - * Returns a new object of class '<em>Security Role Ref</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Security Role Ref</em>'. - * @generated - */ - SecurityRoleRef createSecurityRoleRef(); - - /** - * Returns a new object of class '<em>Security Role</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Security Role</em>'. - * @generated - */ - SecurityRole createSecurityRole(); - - /** - * Returns a new object of class '<em>Resource Env Ref</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Resource Env Ref</em>'. - * @generated - */ - ResourceEnvRef createResourceEnvRef(); - - /** - * Returns a new object of class '<em>EJB Local Ref</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>EJB Local Ref</em>'. - * @generated - */ - EJBLocalRef createEJBLocalRef(); - - /** - * Returns a new object of class '<em>Run As Specified Identity</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Run As Specified Identity</em>'. - * @generated - */ - RunAsSpecifiedIdentity createRunAsSpecifiedIdentity(); - - /** - * Returns a new object of class '<em>Identity</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Identity</em>'. - * @generated - */ - Identity createIdentity(); - - /** - * Returns a new object of class '<em>Icon Type</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Icon Type</em>'. - * @generated - */ - IconType createIconType(); - - /** - * Returns a new object of class '<em>Display Name</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Display Name</em>'. - * @generated - */ - DisplayName createDisplayName(); - - /** - * Returns a new object of class '<em>Message Destination Ref</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Message Destination Ref</em>'. - * @generated - */ - MessageDestinationRef createMessageDestinationRef(); - - /** - * Returns a new object of class '<em>Message Destination</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Message Destination</em>'. - * @generated - */ - MessageDestination createMessageDestination(); - - /** - * Returns a new object of class '<em>Param Value</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Param Value</em>'. - * @generated - */ - ParamValue createParamValue(); - - /** - * Returns a new object of class '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Description Group</em>'. - * @generated - */ - DescriptionGroup createDescriptionGroup(); - - /** - * Returns a new object of class '<em>Security Identity</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Security Identity</em>'. - * @generated - */ - SecurityIdentity createSecurityIdentity(); - - /** - * Returns a new object of class '<em>Use Caller Identity</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Use Caller Identity</em>'. - * @generated - */ - UseCallerIdentity createUseCallerIdentity(); - - /** - * Returns a new object of class '<em>Description</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Description</em>'. - * @generated - */ - Description createDescription(); - - /** - * Returns a new object of class '<em>QName</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>QName</em>'. - * @generated - */ - QName createQName(); - - /** - * Returns a new object of class '<em>Listener</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Listener</em>'. - * @generated - */ - Listener createListener(); - - /** - * Returns a new object of class '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Compatibility Description Group</em>'. - * @generated - */ - CompatibilityDescriptionGroup createCompatibilityDescriptionGroup(); - - /** - * Returns the package supported by this factory. - * <!-- begin-user-doc --> - * This method is NOT api, and may change in future releases. - * EMF package classes should be access via their "eINSTANCE" static fields - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - CommonPackage getCommonPackage(); - -} //CommonFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonPackage.java deleted file mode 100644 index 306020d91..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonPackage.java +++ /dev/null @@ -1,2114 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * <p> - * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. - * </p> - * @since 1.0 - */ -public interface CommonPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "common"; //$NON-NLS-1$ - - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_ROLE = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_REF = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_REF = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_REF__NAME = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_REF__TYPE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_REF__HOME = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_REF__REMOTE = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_REF__LINK = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_REF__DESCRIPTION = 5; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_REF__DESCRIPTIONS = 6; - - /** - * The number of structural features of the the '<em>Ejb Ref</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_REF_FEATURE_COUNT = 7; - - /** - * @generated This field/method will be replaced during code generation. - */ - - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_LOCAL_REF = 6; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENV_ENTRY = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENV_ENTRY__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENV_ENTRY__NAME = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENV_ENTRY__VALUE = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENV_ENTRY__TYPE = 3; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENV_ENTRY__DESCRIPTIONS = 4; - - /** - * The number of structural features of the the '<em>Env Entry</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENV_ENTRY_FEATURE_COUNT = 5; - - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_REF__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_REF__NAME = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_REF__TYPE = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_REF__AUTH = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_REF__LINK = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_REF__RES_SHARING_SCOPE = 5; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RESOURCE_REF__DESCRIPTIONS = 6; - - /** - * The number of structural features of the the '<em>Resource Ref</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RESOURCE_REF_FEATURE_COUNT = 7; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_ROLE_REF = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_ROLE_REF__NAME = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_ROLE_REF__DESCRIPTION = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_ROLE_REF__LINK = 2; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_ROLE_REF__DESCRIPTIONS = 3; - - /** - * The number of structural features of the the '<em>Security Role Ref</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_ROLE_REF_FEATURE_COUNT = 4; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_ROLE__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_ROLE__ROLE_NAME = 1; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_ROLE__DESCRIPTIONS = 2; - - /** - * The number of structural features of the the '<em>Security Role</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_ROLE_FEATURE_COUNT = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int RUN_AS_SPECIFIED_IDENTITY = 7; - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_IDENTITY = 16; - /** - * @generated This field/method will be replaced during code generation. - */ - int USE_CALLER_IDENTITY = 17; - /** - * @generated This field/method will be replaced during code generation. - */ - int IDENTITY = 8; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ENV_REF = 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ENV_REF__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ENV_REF__NAME = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ENV_REF__TYPE = 2; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RESOURCE_ENV_REF__DESCRIPTIONS = 3; - - /** - * The number of structural features of the the '<em>Resource Env Ref</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RESOURCE_ENV_REF_FEATURE_COUNT = 4; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_LOCAL_REF__NAME = EJB_REF__NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_LOCAL_REF__TYPE = EJB_REF__TYPE; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_LOCAL_REF__HOME = EJB_REF__HOME; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_LOCAL_REF__REMOTE = EJB_REF__REMOTE; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_LOCAL_REF__LINK = EJB_REF__LINK; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_LOCAL_REF__DESCRIPTION = EJB_REF__DESCRIPTION; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_LOCAL_REF__DESCRIPTIONS = EJB_REF__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Local Home</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_LOCAL_REF__LOCAL_HOME = EJB_REF_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Local</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_LOCAL_REF__LOCAL = EJB_REF_FEATURE_COUNT + 1; - - /** - * The number of structural features of the the '<em>EJB Local Ref</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_LOCAL_REF_FEATURE_COUNT = EJB_REF_FEATURE_COUNT + 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_IDENTITY__DESCRIPTION = 0; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_IDENTITY__DESCRIPTIONS = 1; - - /** - * The number of structural features of the the '<em>Security Identity</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_IDENTITY_FEATURE_COUNT = 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int RUN_AS_SPECIFIED_IDENTITY__DESCRIPTION = SECURITY_IDENTITY__DESCRIPTION; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RUN_AS_SPECIFIED_IDENTITY__DESCRIPTIONS = SECURITY_IDENTITY__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int RUN_AS_SPECIFIED_IDENTITY__IDENTITY = SECURITY_IDENTITY_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Run As Specified Identity</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RUN_AS_SPECIFIED_IDENTITY_FEATURE_COUNT = SECURITY_IDENTITY_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int IDENTITY__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int IDENTITY__ROLE_NAME = 1; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IDENTITY__DESCRIPTIONS = 2; - - /** - * The number of structural features of the the '<em>Identity</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IDENTITY_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.IconTypeImpl <em>Icon Type</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.IconTypeImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getIconType() - * @generated - */ - int ICON_TYPE = 9; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ICON_TYPE__SMALL_ICON = 0; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ICON_TYPE__LARGE_ICON = 1; - - /** - * The feature id for the '<em><b>Lang</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ICON_TYPE__LANG = 2; - - /** - * The number of structural features of the the '<em>Icon Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ICON_TYPE_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.DisplayNameImpl <em>Display Name</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.DisplayNameImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getDisplayName() - * @generated - */ - int DISPLAY_NAME = 10; - - /** - * The feature id for the '<em><b>Lang</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DISPLAY_NAME__LANG = 0; - - /** - * The feature id for the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DISPLAY_NAME__VALUE = 1; - - /** - * The number of structural features of the the '<em>Display Name</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DISPLAY_NAME_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl <em>Message Destination Ref</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getMessageDestinationRef() - * @generated - */ - int MESSAGE_DESTINATION_REF = 11; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION_REF__NAME = 0; - - /** - * The feature id for the '<em><b>Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION_REF__TYPE = 1; - - /** - * The feature id for the '<em><b>Usage</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION_REF__USAGE = 2; - - /** - * The feature id for the '<em><b>Link</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION_REF__LINK = 3; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION_REF__DESCRIPTIONS = 4; - - /** - * The number of structural features of the the '<em>Message Destination Ref</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION_REF_FEATURE_COUNT = 5; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationImpl <em>Message Destination</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getMessageDestination() - * @generated - */ - int MESSAGE_DESTINATION = 12; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.ParamValueImpl <em>Param Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.ParamValueImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getParamValue() - * @generated - */ - int PARAM_VALUE = 13; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl <em>Description Group</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getDescriptionGroup() - * @generated - */ - int DESCRIPTION_GROUP = 14; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DESCRIPTION_GROUP__ICONS = 0; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DESCRIPTION_GROUP__DISPLAY_NAMES = 1; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DESCRIPTION_GROUP__DESCRIPTIONS = 2; - - /** - * The number of structural features of the the '<em>Description Group</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DESCRIPTION_GROUP_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl <em>Compatibility Description Group</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getCompatibilityDescriptionGroup() - * @generated - */ - int COMPATIBILITY_DESCRIPTION_GROUP = 21; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPATIBILITY_DESCRIPTION_GROUP__ICONS = DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES = DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS = DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON = DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON = DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION = DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME = DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * The number of structural features of the the '<em>Compatibility Description Group</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT = DESCRIPTION_GROUP_FEATURE_COUNT + 4; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION__ICONS = COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION__DISPLAY_NAMES = COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION__DESCRIPTIONS = COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION__SMALL_ICON = COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION__LARGE_ICON = COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION__DESCRIPTION = COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION__DISPLAY_NAME = COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION__NAME = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>Message Destination</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DESTINATION_FEATURE_COUNT = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PARAM_VALUE__NAME = 0; - - /** - * The feature id for the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PARAM_VALUE__VALUE = 1; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PARAM_VALUE__DESCRIPTION = 2; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PARAM_VALUE__DESCRIPTIONS = 3; - - /** - * The number of structural features of the the '<em>Param Value</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PARAM_VALUE_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl <em>JNDI Env Refs Group</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getJNDIEnvRefsGroup() - * @generated - */ - int JNDI_ENV_REFS_GROUP = 15; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__ICONS = COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__DISPLAY_NAMES = COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__DESCRIPTIONS = COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__SMALL_ICON = COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__LARGE_ICON = COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__DESCRIPTION = COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__DISPLAY_NAME = COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - - /** - * The feature id for the '<em><b>Environment Properties</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Resource Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__RESOURCE_REFS = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Ejb Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__EJB_REFS = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Resource Env Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * The feature id for the '<em><b>Ejb Local Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - - /** - * The feature id for the '<em><b>Message Destination Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 5; - - /** - * The feature id for the '<em><b>Service Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP__SERVICE_REFS = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 6; - - /** - * The number of structural features of the the '<em>JNDI Env Refs Group</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JNDI_ENV_REFS_GROUP_FEATURE_COUNT = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 7; - - /** - * @generated This field/method will be replaced during code generation. - */ - int USE_CALLER_IDENTITY__DESCRIPTION = SECURITY_IDENTITY__DESCRIPTION; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int USE_CALLER_IDENTITY__DESCRIPTIONS = SECURITY_IDENTITY__DESCRIPTIONS; - - /** - * The number of structural features of the the '<em>Use Caller Identity</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int USE_CALLER_IDENTITY_FEATURE_COUNT = SECURITY_IDENTITY_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionImpl <em>Description</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.DescriptionImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getDescription() - * @generated - */ - int DESCRIPTION = 18; - - /** - * The feature id for the '<em><b>Lang</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DESCRIPTION__LANG = 0; - - /** - * The feature id for the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DESCRIPTION__VALUE = 1; - - /** - * The number of structural features of the the '<em>Description</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DESCRIPTION_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.QNameImpl <em>QName</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.QNameImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getQName() - * @generated - */ - int QNAME = 19; - - /** - * The feature id for the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QNAME__NAMESPACE_URI = 0; - - /** - * The feature id for the '<em><b>Local Part</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QNAME__LOCAL_PART = 1; - - /** - * The feature id for the '<em><b>Combined QName</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QNAME__COMBINED_QNAME = 2; - - /** - * The feature id for the '<em><b>Internal Prefix Or Ns URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QNAME__INTERNAL_PREFIX_OR_NS_URI = 3; - - /** - * The number of structural features of the the '<em>QName</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QNAME_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.internal.impl.ListenerImpl <em>Listener</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.internal.impl.ListenerImpl - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getListener() - * @generated - */ - int LISTENER = 20; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LISTENER__ICONS = COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LISTENER__DISPLAY_NAMES = COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LISTENER__DESCRIPTIONS = COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LISTENER__SMALL_ICON = COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LISTENER__LARGE_ICON = COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LISTENER__DESCRIPTION = COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LISTENER__DISPLAY_NAME = COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - - /** - * The feature id for the '<em><b>Listener Class</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LISTENER__LISTENER_CLASS = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>Listener</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LISTENER_FEATURE_COUNT = COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_REF_TYPE = 24; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENV_ENTRY_TYPE = 22; - /** - * @generated This field/method will be replaced during code generation. - */ - int RES_AUTH_TYPE_BASE = 23; - /** - * @generated This field/method will be replaced during code generation. - */ - int RES_SHARING_SCOPE_TYPE = 25; - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.common.MessageDestinationUsageType <em>Message Destination Usage Type</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.MessageDestinationUsageType - * @see org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl#getMessageDestinationUsageType() - * @generated - */ - int MESSAGE_DESTINATION_USAGE_TYPE = 26; - - - /** - * @generated This field/method will be replaced during code generation. - */ - String eNS_URI = "common.xmi"; //$NON-NLS-1$ - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.common"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - CommonPackage eINSTANCE = org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl.init(); - - /** - * @generated This field/method will be replaced during code generation - * @return SecurityRole object - */ - EClass getSecurityRole(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSecurityRole_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSecurityRole_RoleName(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.SecurityRole#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.SecurityRole#getDescriptions() - * @see #getSecurityRole() - * @generated - */ - EReference getSecurityRole_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return ResourceRef object - */ - EClass getResourceRef(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceRef_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceRef_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceRef_Type(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceRef_Auth(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceRef_Link(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceRef_ResSharingScope(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.ResourceRef#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.ResourceRef#getDescriptions() - * @see #getResourceRef() - * @generated - */ - EReference getResourceRef_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return EjbRef object - */ - EClass getEjbRef(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEjbRef_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEjbRef_Type(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEjbRef_Home(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEjbRef_Remote(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEjbRef_Link(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEjbRef_Description(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.EjbRef#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.EjbRef#getDescriptions() - * @see #getEjbRef() - * @generated - */ - EReference getEjbRef_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBLocalRef object - */ - EClass getEJBLocalRef(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.EJBLocalRef#getLocalHome <em>Local Home</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Local Home</em>'. - * @see org.eclipse.jst.j2ee.common.EJBLocalRef#getLocalHome() - * @see #getEJBLocalRef() - * @generated - */ - EAttribute getEJBLocalRef_LocalHome(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.EJBLocalRef#getLocal <em>Local</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Local</em>'. - * @see org.eclipse.jst.j2ee.common.EJBLocalRef#getLocal() - * @see #getEJBLocalRef() - * @generated - */ - EAttribute getEJBLocalRef_Local(); - - /** - * @generated This field/method will be replaced during code generation - * @return EnvEntry object - */ - EClass getEnvEntry(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEnvEntry_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEnvEntry_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEnvEntry_Value(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEnvEntry_Type(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.EnvEntry#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.EnvEntry#getDescriptions() - * @see #getEnvEntry() - * @generated - */ - EReference getEnvEntry_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return SecurityRoleRef object - */ - EClass getSecurityRoleRef(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSecurityRoleRef_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSecurityRoleRef_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSecurityRoleRef_Link(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.SecurityRoleRef#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.SecurityRoleRef#getDescriptions() - * @see #getSecurityRoleRef() - * @generated - */ - EReference getSecurityRoleRef_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return RunAsSpecifiedIdentity object - */ - EClass getRunAsSpecifiedIdentity(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getRunAsSpecifiedIdentity_Identity(); - - /** - * @generated This field/method will be replaced during code generation - * @return SecurityIdentity object - */ - EClass getSecurityIdentity(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSecurityIdentity_Description(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.SecurityIdentity#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.SecurityIdentity#getDescriptions() - * @see #getSecurityIdentity() - * @generated - */ - EReference getSecurityIdentity_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return UseCallerIdentity object - */ - EClass getUseCallerIdentity(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.Description <em>Description</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Description</em>'. - * @see org.eclipse.jst.j2ee.common.Description - * @generated - */ - EClass getDescription(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.Description#getLang <em>Lang</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Lang</em>'. - * @see org.eclipse.jst.j2ee.common.Description#getLang() - * @see #getDescription() - * @generated - */ - EAttribute getDescription_Lang(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.Description#getValue <em>Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Value</em>'. - * @see org.eclipse.jst.j2ee.common.Description#getValue() - * @see #getDescription() - * @generated - */ - EAttribute getDescription_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.QName <em>QName</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>QName</em>'. - * @see org.eclipse.jst.j2ee.common.QName - * @generated - */ - EClass getQName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.QName#getNamespaceURI <em>Namespace URI</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Namespace URI</em>'. - * @see org.eclipse.jst.j2ee.common.QName#getNamespaceURI() - * @see #getQName() - * @generated - */ - EAttribute getQName_NamespaceURI(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.QName#getLocalPart <em>Local Part</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Local Part</em>'. - * @see org.eclipse.jst.j2ee.common.QName#getLocalPart() - * @see #getQName() - * @generated - */ - EAttribute getQName_LocalPart(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.QName#getCombinedQName <em>Combined QName</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Combined QName</em>'. - * @see org.eclipse.jst.j2ee.common.QName#getCombinedQName() - * @see #getQName() - * @generated - */ - EAttribute getQName_CombinedQName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.QName#getInternalPrefixOrNsURI <em>Internal Prefix Or Ns URI</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Internal Prefix Or Ns URI</em>'. - * @see org.eclipse.jst.j2ee.common.QName#getInternalPrefixOrNsURI() - * @see #getQName() - * @generated - */ - EAttribute getQName_InternalPrefixOrNsURI(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.Listener <em>Listener</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Listener</em>'. - * @see org.eclipse.jst.j2ee.common.Listener - * @generated - */ - EClass getListener(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.common.Listener#getListenerClass <em>Listener Class</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Listener Class</em>'. - * @see org.eclipse.jst.j2ee.common.Listener#getListenerClass() - * @see #getListener() - * @generated - */ - EReference getListener_ListenerClass(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Compatibility Description Group</em>'. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - EClass getCompatibilityDescriptionGroup(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getSmallIcon <em>Small Icon</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Small Icon</em>'. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getSmallIcon() - * @see #getCompatibilityDescriptionGroup() - * @generated - */ - EAttribute getCompatibilityDescriptionGroup_SmallIcon(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getLargeIcon <em>Large Icon</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Large Icon</em>'. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getLargeIcon() - * @see #getCompatibilityDescriptionGroup() - * @generated - */ - EAttribute getCompatibilityDescriptionGroup_LargeIcon(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getDescription <em>Description</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Description</em>'. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getDescription() - * @see #getCompatibilityDescriptionGroup() - * @generated - */ - EAttribute getCompatibilityDescriptionGroup_Description(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getDisplayName <em>Display Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Display Name</em>'. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getDisplayName() - * @see #getCompatibilityDescriptionGroup() - * @generated - */ - EAttribute getCompatibilityDescriptionGroup_DisplayName(); - - /** - * @generated This field/method will be replaced during code generation - * @return Identity object - */ - EClass getIdentity(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getIdentity_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getIdentity_RoleName(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.Identity#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.Identity#getDescriptions() - * @see #getIdentity() - * @generated - */ - EReference getIdentity_Descriptions(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.IconType <em>Icon Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Icon Type</em>'. - * @see org.eclipse.jst.j2ee.common.IconType - * @generated - */ - EClass getIconType(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.IconType#getSmallIcon <em>Small Icon</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Small Icon</em>'. - * @see org.eclipse.jst.j2ee.common.IconType#getSmallIcon() - * @see #getIconType() - * @generated - */ - EAttribute getIconType_SmallIcon(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.IconType#getLargeIcon <em>Large Icon</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Large Icon</em>'. - * @see org.eclipse.jst.j2ee.common.IconType#getLargeIcon() - * @see #getIconType() - * @generated - */ - EAttribute getIconType_LargeIcon(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.IconType#getLang <em>Lang</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Lang</em>'. - * @see org.eclipse.jst.j2ee.common.IconType#getLang() - * @see #getIconType() - * @generated - */ - EAttribute getIconType_Lang(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.DisplayName <em>Display Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Display Name</em>'. - * @see org.eclipse.jst.j2ee.common.DisplayName - * @generated - */ - EClass getDisplayName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.DisplayName#getLang <em>Lang</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Lang</em>'. - * @see org.eclipse.jst.j2ee.common.DisplayName#getLang() - * @see #getDisplayName() - * @generated - */ - EAttribute getDisplayName_Lang(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.DisplayName#getValue <em>Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Value</em>'. - * @see org.eclipse.jst.j2ee.common.DisplayName#getValue() - * @see #getDisplayName() - * @generated - */ - EAttribute getDisplayName_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef <em>Message Destination Ref</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Message Destination Ref</em>'. - * @see org.eclipse.jst.j2ee.common.MessageDestinationRef - * @generated - */ - EClass getMessageDestinationRef(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.jst.j2ee.common.MessageDestinationRef#getName() - * @see #getMessageDestinationRef() - * @generated - */ - EAttribute getMessageDestinationRef_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getType <em>Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Type</em>'. - * @see org.eclipse.jst.j2ee.common.MessageDestinationRef#getType() - * @see #getMessageDestinationRef() - * @generated - */ - EAttribute getMessageDestinationRef_Type(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getUsage <em>Usage</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Usage</em>'. - * @see org.eclipse.jst.j2ee.common.MessageDestinationRef#getUsage() - * @see #getMessageDestinationRef() - * @generated - */ - EAttribute getMessageDestinationRef_Usage(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getLink <em>Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Link</em>'. - * @see org.eclipse.jst.j2ee.common.MessageDestinationRef#getLink() - * @see #getMessageDestinationRef() - * @generated - */ - EAttribute getMessageDestinationRef_Link(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.MessageDestinationRef#getDescriptions() - * @see #getMessageDestinationRef() - * @generated - */ - EReference getMessageDestinationRef_Descriptions(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.MessageDestination <em>Message Destination</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Message Destination</em>'. - * @see org.eclipse.jst.j2ee.common.MessageDestination - * @generated - */ - EClass getMessageDestination(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.MessageDestination#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.jst.j2ee.common.MessageDestination#getName() - * @see #getMessageDestination() - * @generated - */ - EAttribute getMessageDestination_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.ParamValue <em>Param Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Param Value</em>'. - * @see org.eclipse.jst.j2ee.common.ParamValue - * @generated - */ - EClass getParamValue(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.ParamValue#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.jst.j2ee.common.ParamValue#getName() - * @see #getParamValue() - * @generated - */ - EAttribute getParamValue_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.ParamValue#getValue <em>Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Value</em>'. - * @see org.eclipse.jst.j2ee.common.ParamValue#getValue() - * @see #getParamValue() - * @generated - */ - EAttribute getParamValue_Value(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.common.ParamValue#getDescription <em>Description</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Description</em>'. - * @see org.eclipse.jst.j2ee.common.ParamValue#getDescription() - * @see #getParamValue() - * @generated - */ - EAttribute getParamValue_Description(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.ParamValue#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.ParamValue#getDescriptions() - * @see #getParamValue() - * @generated - */ - EReference getParamValue_Descriptions(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Description Group</em>'. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - EClass getDescriptionGroup(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.DescriptionGroup#getIcons <em>Icons</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Icons</em>'. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup#getIcons() - * @see #getDescriptionGroup() - * @generated - */ - EReference getDescriptionGroup_Icons(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.DescriptionGroup#getDisplayNames <em>Display Names</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Display Names</em>'. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup#getDisplayNames() - * @see #getDescriptionGroup() - * @generated - */ - EReference getDescriptionGroup_DisplayNames(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.DescriptionGroup#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup#getDescriptions() - * @see #getDescriptionGroup() - * @generated - */ - EReference getDescriptionGroup_Descriptions(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup <em>JNDI Env Refs Group</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>JNDI Env Refs Group</em>'. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup - * @generated - */ - EClass getJNDIEnvRefsGroup(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getEnvironmentProperties <em>Environment Properties</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Environment Properties</em>'. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getEnvironmentProperties() - * @see #getJNDIEnvRefsGroup() - * @generated - */ - EReference getJNDIEnvRefsGroup_EnvironmentProperties(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getResourceRefs <em>Resource Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Resource Refs</em>'. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getResourceRefs() - * @see #getJNDIEnvRefsGroup() - * @generated - */ - EReference getJNDIEnvRefsGroup_ResourceRefs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getEjbRefs <em>Ejb Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Ejb Refs</em>'. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getEjbRefs() - * @see #getJNDIEnvRefsGroup() - * @generated - */ - EReference getJNDIEnvRefsGroup_EjbRefs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getResourceEnvRefs <em>Resource Env Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Resource Env Refs</em>'. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getResourceEnvRefs() - * @see #getJNDIEnvRefsGroup() - * @generated - */ - EReference getJNDIEnvRefsGroup_ResourceEnvRefs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getEjbLocalRefs <em>Ejb Local Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Ejb Local Refs</em>'. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getEjbLocalRefs() - * @see #getJNDIEnvRefsGroup() - * @generated - */ - EReference getJNDIEnvRefsGroup_EjbLocalRefs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getMessageDestinationRefs <em>Message Destination Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Message Destination Refs</em>'. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getMessageDestinationRefs() - * @see #getJNDIEnvRefsGroup() - * @generated - */ - EReference getJNDIEnvRefsGroup_MessageDestinationRefs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getServiceRefs <em>Service Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Service Refs</em>'. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getServiceRefs() - * @see #getJNDIEnvRefsGroup() - * @generated - */ - EReference getJNDIEnvRefsGroup_ServiceRefs(); - - /** - * @generated This field/method will be replaced during code generation - * @return ResourceEnvRef object - */ - EClass getResourceEnvRef(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceEnvRef_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceEnvRef_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getResourceEnvRef_Type(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.common.ResourceEnvRef#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.common.ResourceEnvRef#getDescriptions() - * @see #getResourceEnvRef() - * @generated - */ - EReference getResourceEnvRef_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return EjbRefType object - */ - EEnum getEjbRefType(); - - /** - * @generated This field/method will be replaced during code generation - * @return EnvEntryType object - */ - EEnum getEnvEntryType(); - - /** - * @generated This field/method will be replaced during code generation - * @return ResAuthTypeBase object - */ - EEnum getResAuthTypeBase(); - - /** - * @generated This field/method will be replaced during code generation - * @return ResSharingScopeType object - */ - EEnum getResSharingScopeType(); - - /** - * Returns the meta object for enum '{@link org.eclipse.jst.j2ee.common.MessageDestinationUsageType <em>Message Destination Usage Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for enum '<em>Message Destination Usage Type</em>'. - * @see org.eclipse.jst.j2ee.common.MessageDestinationUsageType - * @generated - */ - EEnum getMessageDestinationUsageType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - CommonFactory getCommonFactory(); - -} //CommonPackage - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CompatibilityDescriptionGroup.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CompatibilityDescriptionGroup.java deleted file mode 100644 index 776eebd29..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CompatibilityDescriptionGroup.java +++ /dev/null @@ -1,163 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Compatibility Description Group</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getSmallIcon <em>Small Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getLargeIcon <em>Large Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getDisplayName <em>Display Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getCompatibilityDescriptionGroup() - * @model - * @generated - * @since 1.0 */ -public interface CompatibilityDescriptionGroup extends DescriptionGroup{ - /** - * Returns the value of the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Small Icon</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Small Icon</em>' attribute. - * @see #setSmallIcon(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getCompatibilityDescriptionGroup_SmallIcon() - * @model - * @generated - */ - String getSmallIcon(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getSmallIcon <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Small Icon</em>' attribute. - * @see #getSmallIcon() - * @generated - */ - void setSmallIcon(String value); - - /** - * Sets the value of the Small Icon attribute - * @param value the new value of the attribute - */ - void setSmallIconGen(String value); - - /** - * Returns the value of the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Large Icon</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Large Icon</em>' attribute. - * @see #setLargeIcon(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getCompatibilityDescriptionGroup_LargeIcon() - * @model - * @generated - */ - String getLargeIcon(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getLargeIcon <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Large Icon</em>' attribute. - * @see #getLargeIcon() - * @generated - */ - void setLargeIcon(String value); - - /** - * Sets the value of the Large Icon - * @param value the new value of the Large Icon - */ - void setLargeIconGen(String value); - - /** - * Returns the value of the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Description</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Description</em>' attribute. - * @see #setDescription(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getCompatibilityDescriptionGroup_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getDescription <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Description</em>' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Sets the value of the Description - * @param value the new value of the Description attrbute - */ - void setDescriptionGen(String value); - - /** - * Returns the value of the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Display Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Display Name</em>' attribute. - * @see #setDisplayName(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getCompatibilityDescriptionGroup_DisplayName() - * @model - * @generated - */ - String getDisplayName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup#getDisplayName <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Display Name</em>' attribute. - * @see #getDisplayName() - * @generated - */ - void setDisplayName(String value); - - /** - * Sets the value of the Display Name - * @param value the new value of the Display Name - */ - void setDisplayNameGen(String value); - -} // CompatibilityDescriptionGroup diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DeploymentExtension.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DeploymentExtension.java deleted file mode 100644 index 7cfcb0b2e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DeploymentExtension.java +++ /dev/null @@ -1,103 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Deployment Extension</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.internal.common.DeploymentExtension#getNamespace <em>Namespace</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.internal.common.DeploymentExtension#isMustUnderstand <em>Must Understand</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.internal.common.DeploymentExtension#getExtensionElements <em>Extension Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDeploymentExtension() - * @model - * @generated - * @since 1.0 */ -public interface DeploymentExtension extends EObject { - /** - * Returns the value of the '<em><b>Namespace</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Namespace</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Namespace</em>' attribute. - * @see #setNamespace(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDeploymentExtension_Namespace() - * @model - * @generated - */ - String getNamespace(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.common.DeploymentExtension#getNamespace <em>Namespace</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Namespace</em>' attribute. - * @see #getNamespace() - * @generated - */ - void setNamespace(String value); - - /** - * Returns the value of the '<em><b>Must Understand</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Must Understand</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Must Understand</em>' attribute. - * @see #setMustUnderstand(boolean) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDeploymentExtension_MustUnderstand() - * @model - * @generated - */ - boolean isMustUnderstand(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.common.DeploymentExtension#isMustUnderstand <em>Must Understand</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Must Understand</em>' attribute. - * @see #isMustUnderstand() - * @generated - */ - void setMustUnderstand(boolean value); - - /** - * Returns the value of the '<em><b>Extension Elements</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.internal.common.ExtensibleType}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Extension Elements</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Extension Elements</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDeploymentExtension_ExtensionElements() - * @model type="org.eclipse.jst.j2ee.internal.common.ExtensibleType" containment="true" required="true" - * @generated - */ - EList getExtensionElements(); - -} // DeploymentExtension diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Description.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Description.java deleted file mode 100644 index d53cfb287..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Description.java +++ /dev/null @@ -1,101 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Description</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The description type is used by a description element to - * provide text describing the parent element. The elements - * that use this type should include any information that the - * Deployment Component's Deployment File file producer wants - * to provide to the consumer of the Deployment Component's - * Deployment File (i.e., to the Deployer). Typically, the - * tools used by such a Deployment File consumer will display - * the description when processing the parent element that - * contains the description. - * - * The lang attribute defines the language that the - * description is provided in. The default value is "en" (English). - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.Description#getLang <em>Lang</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.Description#getValue <em>Value</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDescription() - * @model - * @generated - * @since 1.0 */ -public interface Description extends EObject{ - /** - * Returns the value of the '<em><b>Lang</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Lang</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Lang</em>' attribute. - * @see #setLang(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDescription_Lang() - * @model - * @generated - */ - String getLang(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.Description#getLang <em>Lang</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Lang</em>' attribute. - * @see #getLang() - * @generated - */ - void setLang(String value); - - /** - * Returns the value of the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Value</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Value</em>' attribute. - * @see #setValue(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDescription_Value() - * @model - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.Description#getValue <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Value</em>' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - -} // Description diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DescriptionGroup.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DescriptionGroup.java deleted file mode 100644 index b1faaf5c6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DescriptionGroup.java +++ /dev/null @@ -1,89 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Description Group</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * This group keeps the usage of the contained description related - * elements consistent across J2EE deployment descriptors. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.DescriptionGroup#getIcons <em>Icons</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.DescriptionGroup#getDisplayNames <em>Display Names</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.DescriptionGroup#getDescriptions <em>Descriptions</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDescriptionGroup() - * @model - * @generated - * @since 1.0 */ -public interface DescriptionGroup extends EObject{ - /** - * Returns the value of the '<em><b>Icons</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.IconType}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Icons</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Icons</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDescriptionGroup_Icons() - * @model type="org.eclipse.jst.j2ee.common.IconType" containment="true" - * @generated - */ - EList getIcons(); - - /** - * Returns the value of the '<em><b>Display Names</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.DisplayName}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Display Names</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Display Names</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDescriptionGroup_DisplayNames() - * @model type="org.eclipse.jst.j2ee.common.DisplayName" containment="true" - * @generated - */ - EList getDisplayNames(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDescriptionGroup_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} // DescriptionGroup diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DisplayName.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DisplayName.java deleted file mode 100644 index c97fa753a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DisplayName.java +++ /dev/null @@ -1,99 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Display Name</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The display-name type contains a short name that is intended - * to be displayed by tools. It is used by display-name - * elements. The display name need not be unique. - * - * Example: - * - * ... - * <display-name xml:lang="en">Employee Self Service</display-name> - * - * The value of the xml:lang attribute is "en" (English) by default. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.DisplayName#getLang <em>Lang</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.DisplayName#getValue <em>Value</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDisplayName() - * @model - * @generated - * @since 1.0 */ -public interface DisplayName extends EObject{ - /** - * Returns the value of the '<em><b>Lang</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Lang</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Lang</em>' attribute. - * @see #setLang(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDisplayName_Lang() - * @model - * @generated - */ - String getLang(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.DisplayName#getLang <em>Lang</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Lang</em>' attribute. - * @see #getLang() - * @generated - */ - void setLang(String value); - - /** - * Returns the value of the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Value</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Value</em>' attribute. - * @see #setValue(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getDisplayName_Value() - * @model - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.DisplayName#getValue <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Value</em>' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - -} // DisplayName diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EJBLocalRef.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EJBLocalRef.java deleted file mode 100644 index 9167e6fd8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EJBLocalRef.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - - - - -/** - * The ejb-local-ref element is used for the declaration of a reference to another enterprise bean's local home. The declaration consists of an optional description; the EJB reference name used in the code of the referencing enterprise bean; the expected type of the referenced enterprise bean; the expected local home and local interfaces of the referenced enterprise bean; and an optional ejb-link information. The optional ejb-link element is used to specify the referenced enterprise bean. - * Used in: entity, session, message-driven - * @since 1.0 */ -public interface EJBLocalRef extends EjbRef{ - - /** - * @return The value of the Local attribute - * The Local element contains the fully-qualified name of the enterprise bean's local interface. - */ - public String getLocal(); - /** - * @return The value of the localHome attribute - * The local home element contains the fully-qualified name of the enterprise bean's local home interface. - * Example: <home>com.aardvark.payroll.PayrollHome<//home> - */ - public String getLocalHome(); - /** - * @param value The new value of the local attribute - */ - public void setLocal(String value); - /** - * @param value The new value of the localHome attribute - */ - public void setLocalHome(String value); -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EjbRef.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EjbRef.java deleted file mode 100644 index 2aa3b222f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EjbRef.java +++ /dev/null @@ -1,196 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - -/** - * The ejb-ref element is used for the declaration of a reference to an enterprise bean's home. The declaration consists of an optional description; the EJB reference name used in the code of the referencing application client; the expected type of the referenced enterprise bean; the expected home and remote interfaces of the referenced enterprise bean; and an optional ejb-link information. The optional ejb-link element is used to specify the referenced enterprise bean. - * @since 1.0 */ -public interface EjbRef extends EObject{ - -/** - * Return an enterprise bean referenced by the EjbRef, if one exists, within the scope of the parameter. - * The ejb-link value of the ref must equate to a named enterprise bean contained in the jar; otherwise - * return null - */ -public EnterpriseBean getLinkedEjb(EJBJar ejbJar);/** - * Return an enterprise bean referenced by the EjbRef, if one exists, within the scope of the parameter. - * The ejb-link value of the ref must equate to a named enterprise bean contained in the jar; otherwise - * return null - */ -/** - * Return true if the name, home, remote, and link are equivalent. - */ -boolean isEquivalent(EjbRef anEjbRef) ; -/** - * Return true if this reference is physically linked to - * @anEJB. - */ -boolean isLinked(EnterpriseBean anEJB) ; -/** - * Return true if the ejbref is for a local ejb interface. - */ -boolean isLocal(); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Name attribute - * The ejb-ref-name element contains the name of an EJB reference. This is the - * JNDI name that the servlet code uses to get a reference to the enterprise bean. - * Example: <ejb-ref-name>ejb//Payroll<//ejb-ref-name> - */ - String getName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Name attribute - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Type attribute - * The ejb-ref-type element contains the expected type of the referenced - * enterprise bean. The ejb-ref-type element must be one of the following: - * <ejb-ref-type>Entity<//ejb-ref-type> - * <ejb-ref-type>Session<//ejb-ref-type> - */ - EjbRefType getType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.EjbRef#getType <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Type</em>' attribute. - * @see org.eclipse.jst.j2ee.common.EjbRefType - * @see #isSetType() - * @see #unsetType() - * @see #getType() - * @generated - */ - void setType(EjbRefType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.common.EjbRef#getType <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetType() - * @see #getType() - * @see #setType(EjbRefType) - * @generated - */ - void unsetType(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.common.EjbRef#getType <em>Type</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Type</em>' attribute is set. - * @see #unsetType() - * @see #getType() - * @see #setType(EjbRefType) - * @generated - */ - boolean isSetType(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Home attribute - * The home element contains the fully-qualified name of the enterprise bean's - * home interface. - * Example: <home>com.aardvark.payroll.PayrollHome<//home> - */ - String getHome(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Home attribute - */ - void setHome(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Remote attribute - * The remote element contains the fully-qualified name of the enterprise bean's - * remote interface. - */ - String getRemote(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Remote attribute - */ - void setRemote(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Link attribute - * The ejb-link element is used in the ejb-ref element to specify that an EJB - * reference is linked to an enterprise bean in the encompassing J2EE Application - * package. The value of the ejb-link element must be the ejb-name of an - * enterprise bean in the same J2EE Application package. - * Example: <ejb-link>EmployeeRecord<//ejb-link> - */ - String getLink(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Link attribute - */ - void setLink(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description element is used by the ejb-jar file producer to provide text - * describing the parent element. The description element should include any - * information that the ejb-jar file producer wants to provide to the consumer of - * the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the - * ejb-jar file consumer will display the description when processing the parent - * element. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getEjbRef_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EjbRefType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EjbRefType.java deleted file mode 100644 index 84fb41a98..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EjbRefType.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface EjbRefType {} - */ -public final class EjbRefType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int SESSION= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int ENTITY= 1; - - /** - * The '<em><b>Session</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Session</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #SESSION - * @generated - * @ordered - */ - public static final EjbRefType SESSION_LITERAL = new EjbRefType(SESSION, "Session"); //$NON-NLS-1$ - - /** - * The '<em><b>Entity</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Entity</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #ENTITY - * @generated - * @ordered - */ - public static final EjbRefType ENTITY_LITERAL = new EjbRefType(ENTITY, "Entity"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Ejb Ref Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final EjbRefType[] VALUES_ARRAY = - new EjbRefType[] { - SESSION_LITERAL, - ENTITY_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Ejb Ref Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Ejb Ref Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static EjbRefType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - EjbRefType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Ejb Ref Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static EjbRefType get(int value) { - switch (value) { - case SESSION: return SESSION_LITERAL; - case ENTITY: return ENTITY_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EjbRefType(int value, String name) { - super(value, name); - } - -} //EjbRefType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EnvEntry.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EnvEntry.java deleted file mode 100644 index bbce2bf32..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EnvEntry.java +++ /dev/null @@ -1,142 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * The env-entry element contains the declaration of an application client's environment entries. The declaration consists of an optional description, the name of the environment entry, and an optional value. - * @since 1.0 */ -public interface EnvEntry extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description element is used by the ejb-jar file producer to provide text - * describing the parent element. The description element should include any - * information that the ejb-jar file producer wants to provide to the consumer of - * the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the - * ejb-jar file consumer will display the description when processing the parent - * element. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Name attribute - * The env-entry-name element contains the name of an application client's - * environment entry. - */ - String getName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Name attribute - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Value attribute - * The env-entry-value element contains the value of an application client's - * environment entry. The value must be a String that is valid for the constructor - * of the specified type that takes a single String parameter. - * Used in: env-entry - * Example: - * <env-entry-value>//datasources//MyDatabase<//env-entry-value> - */ - String getValue(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Value attribute - */ - void setValue(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Type attribute - * The env-entry-type element contains the fully-qualified Java type of the - * environment entry value that is expected by the application client's code. The - * following are the legal values of env-entry-type: java.lang.Bool-ean, - * java.lang.String, java.lang.Integer, java.lang.Double, java.lang.Byte, - * java.lang.Short, java.lang.Long, and java.lang.Float. - * Example: <env-entry-type>java.lang.Boolean<//env-entry-type> - */ - EnvEntryType getType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.EnvEntry#getType <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Type</em>' attribute. - * @see org.eclipse.jst.j2ee.common.EnvEntryType - * @see #isSetType() - * @see #unsetType() - * @see #getType() - * @generated - */ - void setType(EnvEntryType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.common.EnvEntry#getType <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetType() - * @see #getType() - * @see #setType(EnvEntryType) - * @generated - */ - void unsetType(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.common.EnvEntry#getType <em>Type</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Type</em>' attribute is set. - * @see #unsetType() - * @see #getType() - * @see #setType(EnvEntryType) - * @generated - */ - boolean isSetType(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getEnvEntry_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EnvEntryType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EnvEntryType.java deleted file mode 100644 index 029edb8dd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EnvEntryType.java +++ /dev/null @@ -1,270 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface EnvEntryType {} - */ -public final class EnvEntryType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int STRING= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int INTEGER= 1; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int BOOLEAN= 2; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int DOUBLE= 3; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int BYTE= 4; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int SHORT= 5; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int LONG= 6; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int FLOAT= 7; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int CHARACTER= 8; - - /** - * The '<em><b>String</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>String</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #STRING - * @generated - * @ordered - */ - public static final EnvEntryType STRING_LITERAL = new EnvEntryType(STRING, "String"); //$NON-NLS-1$ - - /** - * The '<em><b>Integer</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Integer</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #INTEGER - * @generated - * @ordered - */ - public static final EnvEntryType INTEGER_LITERAL = new EnvEntryType(INTEGER, "Integer"); //$NON-NLS-1$ - - /** - * The '<em><b>Boolean</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Boolean</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #BOOLEAN - * @generated - * @ordered - */ - public static final EnvEntryType BOOLEAN_LITERAL = new EnvEntryType(BOOLEAN, "Boolean"); //$NON-NLS-1$ - - /** - * The '<em><b>Double</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Double</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #DOUBLE - * @generated - * @ordered - */ - public static final EnvEntryType DOUBLE_LITERAL = new EnvEntryType(DOUBLE, "Double"); //$NON-NLS-1$ - - /** - * The '<em><b>Byte</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Byte</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #BYTE - * @generated - * @ordered - */ - public static final EnvEntryType BYTE_LITERAL = new EnvEntryType(BYTE, "Byte"); //$NON-NLS-1$ - - /** - * The '<em><b>Short</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Short</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #SHORT - * @generated - * @ordered - */ - public static final EnvEntryType SHORT_LITERAL = new EnvEntryType(SHORT, "Short"); //$NON-NLS-1$ - - /** - * The '<em><b>Long</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Long</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #LONG - * @generated - * @ordered - */ - public static final EnvEntryType LONG_LITERAL = new EnvEntryType(LONG, "Long"); //$NON-NLS-1$ - - /** - * The '<em><b>Float</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Float</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #FLOAT - * @generated - * @ordered - */ - public static final EnvEntryType FLOAT_LITERAL = new EnvEntryType(FLOAT, "Float"); //$NON-NLS-1$ - - /** - * The '<em><b>Character</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Character</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #CHARACTER - * @generated - * @ordered - */ - public static final EnvEntryType CHARACTER_LITERAL = new EnvEntryType(CHARACTER, "Character"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Env Entry Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final EnvEntryType[] VALUES_ARRAY = - new EnvEntryType[] { - STRING_LITERAL, - INTEGER_LITERAL, - BOOLEAN_LITERAL, - DOUBLE_LITERAL, - BYTE_LITERAL, - SHORT_LITERAL, - LONG_LITERAL, - FLOAT_LITERAL, - CHARACTER_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Env Entry Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Env Entry Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static EnvEntryType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - EnvEntryType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Env Entry Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static EnvEntryType get(int value) { - switch (value) { - case STRING: return STRING_LITERAL; - case INTEGER: return INTEGER_LITERAL; - case BOOLEAN: return BOOLEAN_LITERAL; - case DOUBLE: return DOUBLE_LITERAL; - case BYTE: return BYTE_LITERAL; - case SHORT: return SHORT_LITERAL; - case LONG: return LONG_LITERAL; - case FLOAT: return FLOAT_LITERAL; - case CHARACTER: return CHARACTER_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EnvEntryType(int value, String name) { - super(value, name); - } - -} //EnvEntryType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ExtensibleType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ExtensibleType.java deleted file mode 100644 index 37b79a37d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ExtensibleType.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Extensible Type</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.internal.common.ExtensibleType#getValue <em>Value</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getExtensibleType() - * @model - * @generated - * @since 1.0 */ -public interface ExtensibleType extends EObject { - /** - * Returns the value of the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Value</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Value</em>' attribute. - * @see #setValue(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getExtensibleType_Value() - * @model - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.common.ExtensibleType#getValue <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Value</em>' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - -} // ExtensibleType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/IconType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/IconType.java deleted file mode 100644 index 7ba1c5b5d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/IconType.java +++ /dev/null @@ -1,152 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Icon Type</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The icon type contains small-icon and large-icon elements - * that specify the file names for small and large GIF or - * JPEG icon images used to represent the parent element in a - * GUI tool. - * - * The xml:lang attribute defines the language that the - * icon file names are provided in. Its value is "en" (English) - * by default. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.IconType#getSmallIcon <em>Small Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.IconType#getLargeIcon <em>Large Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.IconType#getLang <em>Lang</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getIconType() - * @model - * @generated - * @since 1.0 */ -public interface IconType extends EObject{ - /** - * Returns the value of the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Small Icon</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The small-icon element contains the name of a file - * containing a small (16 x 16) icon image. The file - * name is a relative path within the Deployment - * Component's Deployment File. - * - * The image may be either in the JPEG or GIF format. - * The icon can be used by tools. - * - * Example: - * - * <small-icon>employee-service-icon16x16.jpg</small-icon> - * <!-- end-model-doc --> - * @return the value of the '<em>Small Icon</em>' attribute. - * @see #setSmallIcon(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getIconType_SmallIcon() - * @model - * @generated - */ - String getSmallIcon(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.IconType#getSmallIcon <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Small Icon</em>' attribute. - * @see #getSmallIcon() - * @generated - */ - void setSmallIcon(String value); - - /** - * Returns the value of the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Large Icon</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The large-icon element contains the name of a file - * containing a large - * (32 x 32) icon image. The file name is a relative - * path within the Deployment Component's Deployment - * File. - * - * The image may be either in the JPEG or GIF format. - * The icon can be used by tools. - * - * Example: - * - * <large-icon>employee-service-icon32x32.jpg</large-icon> - * - * <!-- end-model-doc --> - * @return the value of the '<em>Large Icon</em>' attribute. - * @see #setLargeIcon(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getIconType_LargeIcon() - * @model - * @generated - */ - String getLargeIcon(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.IconType#getLargeIcon <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Large Icon</em>' attribute. - * @see #getLargeIcon() - * @generated - */ - void setLargeIcon(String value); - - /** - * Returns the value of the '<em><b>Lang</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Lang</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Lang</em>' attribute. - * @see #setLang(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getIconType_Lang() - * @model - * @generated - */ - String getLang(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.IconType#getLang <em>Lang</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Lang</em>' attribute. - * @see #getLang() - * @generated - */ - void setLang(String value); - -} // IconType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Identity.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Identity.java deleted file mode 100644 index a24e90bf7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Identity.java +++ /dev/null @@ -1,75 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * Specifies the run-as identity to be used for the execution of the methods of an enterprise bean. It contains an optional description, and the name of a security role. - - * @since 1.0 */ -public interface Identity extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description is used by the ejb-jar file producer to provide text describing - * the run as identity. - * - * The description should include any information that the ejb-jar file producer - * wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). - * Typically, the tools used by the ejb-jar file consumer will display the - * description when processing the list of dependents. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the RoleName attribute - * The role-name element contains the name of a security role. - * - * The name must conform to the lexical rules for an NMTOKEN. - */ - String getRoleName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the RoleName attribute - */ - void setRoleName(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getIdentity_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/JNDIEnvRefsGroup.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/JNDIEnvRefsGroup.java deleted file mode 100644 index 5552cd485..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/JNDIEnvRefsGroup.java +++ /dev/null @@ -1,160 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>JNDI Env Refs Group</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * This group keeps the usage of the contained JNDI environment - * reference elements consistent across J2EE deployment descriptors. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getEnvironmentProperties <em>Environment Properties</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getResourceRefs <em>Resource Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getEjbRefs <em>Ejb Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getResourceEnvRefs <em>Resource Env Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getEjbLocalRefs <em>Ejb Local Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getMessageDestinationRefs <em>Message Destination Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup#getServiceRefs <em>Service Refs</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getJNDIEnvRefsGroup() - * @model abstract="true" - * @generated - * @since 1.0 */ -public interface JNDIEnvRefsGroup extends CompatibilityDescriptionGroup{ - /** - * Returns the value of the '<em><b>Environment Properties</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.EnvEntry}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Environment Properties</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Environment Properties</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getJNDIEnvRefsGroup_EnvironmentProperties() - * @model type="org.eclipse.jst.j2ee.common.EnvEntry" containment="true" - * @generated - */ - EList getEnvironmentProperties(); - - /** - * Returns the value of the '<em><b>Resource Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.ResourceRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Resource Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Resource Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getJNDIEnvRefsGroup_ResourceRefs() - * @model type="org.eclipse.jst.j2ee.common.ResourceRef" containment="true" - * @generated - */ - EList getResourceRefs(); - - /** - * Returns the value of the '<em><b>Ejb Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.EjbRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Ejb Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Ejb Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getJNDIEnvRefsGroup_EjbRefs() - * @model type="org.eclipse.jst.j2ee.common.EjbRef" containment="true" - * @generated - */ - EList getEjbRefs(); - - /** - * Returns the value of the '<em><b>Resource Env Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.ResourceEnvRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Resource Env Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * A list of enterprise bean references to an administered object associated with a resource in the enterprise bean's environment. It consists of an optional description, the resource environment reference name, and an indication of the resource environment reference type expected by the enterprise bean code. - * - * <!-- end-model-doc --> - * @return the value of the '<em>Resource Env Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getJNDIEnvRefsGroup_ResourceEnvRefs() - * @model type="org.eclipse.jst.j2ee.common.ResourceEnvRef" containment="true" - * @generated - */ - EList getResourceEnvRefs(); - - /** - * Returns the value of the '<em><b>Ejb Local Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.EJBLocalRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Ejb Local Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Ejb Local Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getJNDIEnvRefsGroup_EjbLocalRefs() - * @model type="org.eclipse.jst.j2ee.common.EJBLocalRef" containment="true" - * @generated - */ - EList getEjbLocalRefs(); - - /** - * Returns the value of the '<em><b>Message Destination Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.MessageDestinationRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Message Destination Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Message Destination Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getJNDIEnvRefsGroup_MessageDestinationRefs() - * @model type="org.eclipse.jst.j2ee.common.MessageDestinationRef" containment="true" - * @generated - */ - EList getMessageDestinationRefs(); - - /** - * Returns the value of the '<em><b>Service Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Service Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getJNDIEnvRefsGroup_ServiceRefs() - * @model type="org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef" containment="true" - * @generated - */ - EList getServiceRefs(); - -} // JNDIEnvRefsGroup diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Listener.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Listener.java deleted file mode 100644 index 2b3187dcc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Listener.java +++ /dev/null @@ -1,71 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.jem.java.JavaClass; -/** - * Declares a class in the application must be registered as a web application listener bean. - * @since 1.0 */ -public interface Listener extends CompatibilityDescriptionGroup{ - -/** - * Get the JavaClass for the listener. - */ - - - - - - - - - - - - - - /** - * @generated This field/method will be replaced during code generation - * @return The ListenerClass reference - * The listener-class element declares a class in the application must be - * registered as a web application listener bean. - */ - JavaClass getListenerClass(); - -/** - * Get the fully qualified class name for the listener. - */ -public String getListenerClassName(); -/** - * Sets the listener class name. - */ -public void setListenerClassName(String listenerClassName); - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the ListenerClass reference - */ - void setListenerClass(JavaClass value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestination.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestination.java deleted file mode 100644 index 2c48dc8ab..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestination.java +++ /dev/null @@ -1,87 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Message Destination</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The message-destinationType specifies a message - * destination. The logical destination described by this - * element is mapped to a physical destination by the Deployer. - * - * The message destination element contains: - * - * - an optional description - * - an optional display-name - * - an optional icon - * - a message destination name which must be unique - * among message destination names within the same - * Deployment File. - * - * Example: - * - * <message-destination> - * <message-destination-name>CorporateStocks - * </message-destination-name> - * </message-destination> - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.MessageDestination#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getMessageDestination() - * @model - * @generated - * @since 1.0 */ -public interface MessageDestination extends CompatibilityDescriptionGroup{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The message-destination-name element specifies a - * name for a message destination. This name must be - * unique among the names of message destinations - * within the Deployment File. - * <!-- end-model-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getMessageDestination_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.MessageDestination#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // MessageDestination diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestinationRef.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestinationRef.java deleted file mode 100644 index 370f6901d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestinationRef.java +++ /dev/null @@ -1,189 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Message Destination Ref</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The message-destination-ref element contains a declaration - * of Deployment Component's reference to a message destination - * associated with a resource in Deployment Component's - * environment. It consists of: - * - * - an optional description - * - the message destination reference name - * - the message destination type - * - a specification as to whether the - * destination is used for - * consuming or producing messages, or both - * - a link to the message destination - * - * Examples: - * - * <message-destination-ref> - * <message-destination-ref-name>jms/StockQueue - * </message-destination-ref-name> - * <message-destination-type>javax.jms.Queue - * </message-destination-type> - * <message-destination-usage>Consumes - * </message-destination-usage> - * <message-destination-link>CorporateStocks - * </message-destination-link> - * </message-destination-ref> - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getType <em>Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getUsage <em>Usage</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getLink <em>Link</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getDescriptions <em>Descriptions</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getMessageDestinationRef() - * @model - * @generated - * @since 1.0 */ -public interface MessageDestinationRef extends EObject{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getMessageDestinationRef_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Type</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Type</em>' attribute. - * @see #setType(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getMessageDestinationRef_Type() - * @model - * @generated - */ - String getType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getType <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Type</em>' attribute. - * @see #getType() - * @generated - */ - void setType(String value); - - /** - * Returns the value of the '<em><b>Usage</b></em>' attribute. - * The literals are from the enumeration {@link org.eclipse.jst.j2ee.common.MessageDestinationUsageType}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Usage</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Usage</em>' attribute. - * @see org.eclipse.jst.j2ee.common.MessageDestinationUsageType - * @see #setUsage(MessageDestinationUsageType) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getMessageDestinationRef_Usage() - * @model - * @generated - */ - MessageDestinationUsageType getUsage(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getUsage <em>Usage</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Usage</em>' attribute. - * @see org.eclipse.jst.j2ee.common.MessageDestinationUsageType - * @see #getUsage() - * @generated - */ - void setUsage(MessageDestinationUsageType value); - - /** - * Returns the value of the '<em><b>Link</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Link</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Link</em>' attribute. - * @see #setLink(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getMessageDestinationRef_Link() - * @model - * @generated - */ - String getLink(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef#getLink <em>Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Link</em>' attribute. - * @see #getLink() - * @generated - */ - void setLink(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getMessageDestinationRef_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} // MessageDestinationRef diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestinationUsageType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestinationUsageType.java deleted file mode 100644 index abb73ab33..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestinationUsageType.java +++ /dev/null @@ -1,171 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - -/** - * <!-- begin-user-doc --> - * A representation of the literals of the enumeration '<em><b>Message Destination Usage Type</b></em>', - * and utility methods for working with them. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.CommonPackage#getMessageDestinationUsageType() - * @model - * @generated - * @since 1.0 - */ -public final class MessageDestinationUsageType extends AbstractEnumerator { - /** - * The '<em><b>Consumes</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #CONSUMES_LITERAL - * @model name="Consumes" - * @generated - * @ordered - */ - public static final int CONSUMES = 0; - - /** - * The '<em><b>Produces</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #PRODUCES_LITERAL - * @model name="Produces" - * @generated - * @ordered - */ - public static final int PRODUCES = 1; - - /** - * The '<em><b>Consumes Produces</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #CONSUMES_PRODUCES_LITERAL - * @model name="ConsumesProduces" - * @generated - * @ordered - */ - public static final int CONSUMES_PRODUCES = 2; - - /** - * The '<em><b>Consumes</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Consumes</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #CONSUMES - * @generated - * @ordered - */ - public static final MessageDestinationUsageType CONSUMES_LITERAL = new MessageDestinationUsageType(CONSUMES, "Consumes"); //$NON-NLS-1$ - - /** - * The '<em><b>Produces</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Produces</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #PRODUCES - * @generated - * @ordered - */ - public static final MessageDestinationUsageType PRODUCES_LITERAL = new MessageDestinationUsageType(PRODUCES, "Produces"); //$NON-NLS-1$ - - /** - * The '<em><b>Consumes Produces</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Consumes Produces</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #CONSUMES_PRODUCES - * @generated - * @ordered - */ - public static final MessageDestinationUsageType CONSUMES_PRODUCES_LITERAL = new MessageDestinationUsageType(CONSUMES_PRODUCES, "ConsumesProduces"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Message Destination Usage Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final MessageDestinationUsageType[] VALUES_ARRAY = - new MessageDestinationUsageType[] { - CONSUMES_LITERAL, - PRODUCES_LITERAL, - CONSUMES_PRODUCES_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Message Destination Usage Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Message Destination Usage Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static MessageDestinationUsageType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - MessageDestinationUsageType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Message Destination Usage Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static MessageDestinationUsageType get(int value) { - switch (value) { - case CONSUMES: return CONSUMES_LITERAL; - case PRODUCES: return PRODUCES_LITERAL; - case CONSUMES_PRODUCES: return CONSUMES_PRODUCES_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private MessageDestinationUsageType(int value, String name) { - super(value, name); - } - -} //MessageDestinationUsageType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ParamValue.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ParamValue.java deleted file mode 100644 index 40c7ce344..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ParamValue.java +++ /dev/null @@ -1,145 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Param Value</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * This type is a general type that can be used to declare - * parameter/value lists. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.ParamValue#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.ParamValue#getValue <em>Value</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.ParamValue#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.ParamValue#getDescriptions <em>Descriptions</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getParamValue() - * @model - * @generated - * @since 1.0 */ -public interface ParamValue extends EObject{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The param-name element contains the name of a parameter. - * <!-- end-model-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getParamValue_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.ParamValue#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Value</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The param-value element contains the value of a parameter. - * <!-- end-model-doc --> - * @return the value of the '<em>Value</em>' attribute. - * @see #setValue(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getParamValue_Value() - * @model - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.ParamValue#getValue <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Value</em>' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - - /** - * Returns the value of the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Description</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 deprecated, becomes descriptions - * <!-- end-model-doc --> - * @return the value of the '<em>Description</em>' attribute. - * @see #setDescription(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getParamValue_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.ParamValue#getDescription <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Description</em>' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getParamValue_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} // ParamValue diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/QName.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/QName.java deleted file mode 100644 index acc1e895f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/QName.java +++ /dev/null @@ -1,150 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>QName</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.QName#getNamespaceURI <em>Namespace URI</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.QName#getLocalPart <em>Local Part</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.QName#getCombinedQName <em>Combined QName</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.QName#getInternalPrefixOrNsURI <em>Internal Prefix Or Ns URI</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.common.CommonPackage#getQName() - * @model - * @generated - * @since 1.0 */ -public interface QName extends EObject{ - /** - * Returns the value of the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Namespace URI</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Namespace URI</em>' attribute. - * @see #setNamespaceURI(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getQName_NamespaceURI() - * @model - * @generated - */ - String getNamespaceURI(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.QName#getNamespaceURI <em>Namespace URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Namespace URI</em>' attribute. - * @see #getNamespaceURI() - * @generated - */ - void setNamespaceURI(String value); - - /** - * Returns the value of the '<em><b>Local Part</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Local Part</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Local Part</em>' attribute. - * @see #setLocalPart(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getQName_LocalPart() - * @model - * @generated - */ - String getLocalPart(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.QName#getLocalPart <em>Local Part</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Local Part</em>' attribute. - * @see #getLocalPart() - * @generated - */ - void setLocalPart(String value); - - /** - * Returns the value of the '<em><b>Combined QName</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Combined QName</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Combined QName</em>' attribute. - * @see #setCombinedQName(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getQName_CombinedQName() - * @model - * @generated - */ - String getCombinedQName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.QName#getCombinedQName <em>Combined QName</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Combined QName</em>' attribute. - * @see #getCombinedQName() - * @generated - */ - void setCombinedQName(String value); - - /** - * Returns the value of the '<em><b>Internal Prefix Or Ns URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * Internal field used by implementation classes. Clients should use - * {@link #getNamespaceURI()}. - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Internal Prefix Or Ns URI</em>' attribute. - * @see #setInternalPrefixOrNsURI(String) - * @see org.eclipse.jst.j2ee.common.CommonPackage#getQName_InternalPrefixOrNsURI() - * @model - * @generated - */ - String getInternalPrefixOrNsURI(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.QName#getInternalPrefixOrNsURI <em>Internal Prefix Or Ns URI</em>}' attribute. - * <!-- begin-user-doc --> - * Internal field used by implementation classes. Clients should use - * {@link #setValues(String, String, String)}. - * <!-- end-user-doc --> - * @param value the new value of the '<em>Internal Prefix Or Ns URI</em>' attribute. - * @see #getInternalPrefixOrNsURI() - * @generated - */ - void setInternalPrefixOrNsURI(String value); - - /** - * Sets all the values for this qName - * @param prefix - The namespace prefix - * @param nsURI - The namespace URI - * @param localPart - The local part - */ - void setValues(String prefix, String nsURI, String localPart); - - -} // QName diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResAuthTypeBase.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResAuthTypeBase.java deleted file mode 100644 index 26178535a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResAuthTypeBase.java +++ /dev/null @@ -1,178 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - -/** - * <!-- begin-user-doc --> - * A representation of the literals of the enumeration '<em><b>Res Auth Type Base</b></em>', - * and utility methods for working with them. - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * CONTAINER=0 - * Container=1 - * Application=2 - * SERVLET=3 - * - * <!-- end-model-doc --> - * @see org.eclipse.jst.j2ee.common.CommonPackage#getResAuthTypeBase() - * @model - * @generated - * @since 1.0 - */ -public final class ResAuthTypeBase extends AbstractEnumerator { - /** - * The '<em><b>Container</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #CONTAINER_LITERAL - * @model name="Container" - * @generated - * @ordered - */ - public static final int CONTAINER = 0; - - /** - * The '<em><b>Application</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #APPLICATION_LITERAL - * @model name="Application" - * @generated - * @ordered - */ - public static final int APPLICATION = 1; - - /** - * The '<em><b>SERVLET</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #SERVLET_LITERAL - * @model - * @generated - * @ordered - */ - public static final int SERVLET = 2; - - /** - * The '<em><b>Container</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Container</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #CONTAINER - * @generated - * @ordered - */ - public static final ResAuthTypeBase CONTAINER_LITERAL = new ResAuthTypeBase(CONTAINER, "Container"); //$NON-NLS-1$ - - /** - * The '<em><b>Application</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Application</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #APPLICATION - * @generated - * @ordered - */ - public static final ResAuthTypeBase APPLICATION_LITERAL = new ResAuthTypeBase(APPLICATION, "Application"); //$NON-NLS-1$ - - /** - * The '<em><b>SERVLET</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>SERVLET</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #SERVLET - * @generated - * @ordered - */ - public static final ResAuthTypeBase SERVLET_LITERAL = new ResAuthTypeBase(SERVLET, "SERVLET"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Res Auth Type Base</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final ResAuthTypeBase[] VALUES_ARRAY = - new ResAuthTypeBase[] { - CONTAINER_LITERAL, - APPLICATION_LITERAL, - SERVLET_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Res Auth Type Base</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Res Auth Type Base</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static ResAuthTypeBase get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - ResAuthTypeBase result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Res Auth Type Base</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static ResAuthTypeBase get(int value) { - switch (value) { - case CONTAINER: return CONTAINER_LITERAL; - case APPLICATION: return APPLICATION_LITERAL; - case SERVLET: return SERVLET_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private ResAuthTypeBase(int value, String name) { - super(value, name); - } - -} //ResAuthTypeBase diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResSharingScopeType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResSharingScopeType.java deleted file mode 100644 index 5a8001a21..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResSharingScopeType.java +++ /dev/null @@ -1,131 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface ResSharingScopeType {} - * @since 1.0 - */ -public final class ResSharingScopeType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int SHAREABLE= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int UNSHAREABLE= 1; - - /** - * The '<em><b>Shareable</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Shareable</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #SHAREABLE - * @generated - * @ordered - */ - public static final ResSharingScopeType SHAREABLE_LITERAL = new ResSharingScopeType(SHAREABLE, "Shareable"); //$NON-NLS-1$ - - /** - * The '<em><b>Unshareable</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Unshareable</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #UNSHAREABLE - * @generated - * @ordered - */ - public static final ResSharingScopeType UNSHAREABLE_LITERAL = new ResSharingScopeType(UNSHAREABLE, "Unshareable"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Res Sharing Scope Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final ResSharingScopeType[] VALUES_ARRAY = - new ResSharingScopeType[] { - SHAREABLE_LITERAL, - UNSHAREABLE_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Res Sharing Scope Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Res Sharing Scope Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static ResSharingScopeType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - ResSharingScopeType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Res Sharing Scope Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static ResSharingScopeType get(int value) { - switch (value) { - case SHAREABLE: return SHAREABLE_LITERAL; - case UNSHAREABLE: return UNSHAREABLE_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private ResSharingScopeType(int value, String name) { - super(value, name); - } - -} //ResSharingScopeType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResourceEnvRef.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResourceEnvRef.java deleted file mode 100644 index edc676be0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResourceEnvRef.java +++ /dev/null @@ -1,108 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jem.java.JavaClass; - -/** - * The resource-env-ref element contains a declaration of an enterprise bean's reference to an administered object associated with a resource in the enterprise bean's environment. It consists of an optional description, the resource environment reference name, and an indication of the resource environment reference type expected by the enterprise bean code. - * - * Examples: - * - * <resource-env-ref> - * <resource-env-ref-name>jms//StockQueue<//resource-env-ref-name> - * <resource-env-ref-type>javax.jms.Queue<//resource-env-ref-type> - * <//resource-env-ref> - * @since 1.0 */ -public interface ResourceEnvRef extends EObject{ - - /** - * Gets the name for the type - * @return String value - */ - public String getTypeName(); - - /** - * Sets the name of the type attribute - * @param className sets the name for the type - */ - public void setTypeName(String className); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description is used by the ejb-jar file producer to provide text describing - * the resource env ref. - * - * The description should include any information that the ejb-jar file producer - * wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). - * Typically, the tools used by the ejb-jar file consumer will display the - * description when processing the list of dependents. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Name attribute - * Specifies the name of a resource environment reference; its value is the - * environment entry name used in the enterprise bean code. - */ - String getName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Name attribute - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The Type reference - * Specifies the type of a resource environment reference. See the class - * description for an example. - */ - JavaClass getType(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Type reference - */ - void setType(JavaClass value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getResourceEnvRef_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResourceRef.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResourceRef.java deleted file mode 100644 index 8f79f2d0a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResourceRef.java +++ /dev/null @@ -1,206 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * The resource-ref element contains a declaration of application clients's reference to an external resource. It consists of an optional description, the resource factory reference name, the indication of the resource factory type expected by the application client's code, and the type of authentication (bean or container). - * Example: - * <resource-ref> - * <res-ref-name>EmployeeAppDB<//res-ref-name> - * <res-type>javax.sql.DataSource<//res-type> - * <res-auth>Container<//res-auth> - * <//resource-ref> - * @since 1.0 */ -public interface ResourceRef extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description element is used by the ejb-jar file producer to provide text - * describing the parent element. The description element should include any - * information that the ejb-jar file producer wants to provide to the consumer of - * the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the - * ejb-jar file consumer will display the description when processing the parent - * element. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Name attribute - * The res-ref-name element specifies the name of the resource factory reference - * name. The resource factory reference name is the name of the application - * client's environment entry whose value contains the JNDI name of the data - * source. - */ - String getName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Name attribute - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Type attribute - * The res-type element specifies the type of the data source. The type is - * specified by the Java interface (or class) expected to be implemented by the - * data source. - */ - String getType(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Type attribute - */ - void setType(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Auth attribute - * The res-auth element specifies whether the enterprise bean code signs on - * programmatically to the resource manager, or whether the Container will sign on - * to the resource manager on behalf of the bean. In the latter case, the - * Container uses information that is supplied by the Deployer. The value of this - * element must be one of the two following: - * <res-auth>Application<//res-auth> - * <res-auth>Container<//res-auth> - */ - ResAuthTypeBase getAuth(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.ResourceRef#getAuth <em>Auth</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Auth</em>' attribute. - * @see org.eclipse.jst.j2ee.common.ResAuthTypeBase - * @see #isSetAuth() - * @see #unsetAuth() - * @see #getAuth() - * @generated - */ - void setAuth(ResAuthTypeBase value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.common.ResourceRef#getAuth <em>Auth</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetAuth() - * @see #getAuth() - * @see #setAuth(ResAuthTypeBase) - * @generated - */ - void unsetAuth(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.common.ResourceRef#getAuth <em>Auth</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Auth</em>' attribute is set. - * @see #unsetAuth() - * @see #getAuth() - * @see #setAuth(ResAuthTypeBase) - * @generated - */ - boolean isSetAuth(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Link attribute - */ - String getLink(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Link attribute - */ - void setLink(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ResSharingScope attribute - * The res-sharing-scope element specifies whether connections obtained - * through the given resource manager connection factory reference can be - * shared. The value of this element, if specified, must be one of the - * two following: Shareable, Unshareable - * - * The default value is Shareable. - - */ - ResSharingScopeType getResSharingScope(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.common.ResourceRef#getResSharingScope <em>Res Sharing Scope</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Res Sharing Scope</em>' attribute. - * @see org.eclipse.jst.j2ee.common.ResSharingScopeType - * @see #isSetResSharingScope() - * @see #unsetResSharingScope() - * @see #getResSharingScope() - * @generated - */ - void setResSharingScope(ResSharingScopeType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.common.ResourceRef#getResSharingScope <em>Res Sharing Scope</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetResSharingScope() - * @see #getResSharingScope() - * @see #setResSharingScope(ResSharingScopeType) - * @generated - */ - void unsetResSharingScope(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.common.ResourceRef#getResSharingScope <em>Res Sharing Scope</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Res Sharing Scope</em>' attribute is set. - * @see #unsetResSharingScope() - * @see #getResSharingScope() - * @see #setResSharingScope(ResSharingScopeType) - * @generated - */ - boolean isSetResSharingScope(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getResourceRef_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/RunAsSpecifiedIdentity.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/RunAsSpecifiedIdentity.java deleted file mode 100644 index c09d6f152..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/RunAsSpecifiedIdentity.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - - - -/** - * The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It contains an optional description and a specification of the security identity to be used. - - * @since 1.0 */ -public interface RunAsSpecifiedIdentity extends SecurityIdentity{ - /** - * @generated This field/method will be replaced during code generation - * @return The Identity reference - * Optional specifies the run-as identity to be used for the execution of the - * methods of an enterprise bean. It contains an optional description, and the - * name of a security role. - */ - Identity getIdentity(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Identity reference - */ - void setIdentity(Identity value); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityIdentity.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityIdentity.java deleted file mode 100644 index 9dbf0900c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityIdentity.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It - * contains an optional description and a specification of the security identity to be used. - - * @since 1.0 */ -public interface SecurityIdentity extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getSecurityIdentity_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - - /** - * Returns boolean value for the RunAsSpecifiedIdentity - * @return boolean value - */ - boolean isRunAsSpecifiedIdentity(); - - /** - * Returns boolean value for the Caller Identity - * @return boolean value - */ - boolean isUseCallerIdentity(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityRole.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityRole.java deleted file mode 100644 index 5bba8f1fb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityRole.java +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * A semantic grouping of operations that may be performed by a subject. - * The security-role element contains the declaration of a security role which is used in the security-constraints placed on the web application. - * @since 1.0 */ -public interface SecurityRole extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the RoleName attribute - * The role-name element contains the name of a role. This element must contain a - * non-empty string. - - */ - String getRoleName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the RoleName attribute - */ - void setRoleName(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getSecurityRole_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityRoleRef.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityRoleRef.java deleted file mode 100644 index 9eea66966..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityRoleRef.java +++ /dev/null @@ -1,86 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * @generated - * @since 1.0 */ -public interface SecurityRoleRef extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Name attribute - */ - String getName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Name attribute - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description element is used by the ejb-jar file producer to provide text - * describing the parent element. The description element should include any - * information that the ejb-jar file producer wants to provide to the consumer of - * the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the - * ejb-jar file consumer will display the description when processing the parent - * element. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Link attribute - * The role-link element is used to link a security role reference to a defined - * security role. The role-link element must contain the name of one of the - * security roles defined in the security-role elements. - */ - String getLink(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Link attribute - */ - void setLink(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.common.CommonPackage#getSecurityRoleRef_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/UseCallerIdentity.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/UseCallerIdentity.java deleted file mode 100644 index 90a8091d4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/UseCallerIdentity.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common; - - - -/** - * The use-caller-identity element specifies that the caller's security identity be used as the security identity for the execution of the enterprise bean's methods. - - * @since 1.0 */ -public interface UseCallerIdentity extends SecurityIdentity{ - //UseCallerIdentity -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonFactoryImpl.java deleted file mode 100644 index e2629a871..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonFactoryImpl.java +++ /dev/null @@ -1,385 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.common.CommonFactory; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.EJBLocalRef; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.EjbRefType; -import org.eclipse.jst.j2ee.common.EnvEntry; -import org.eclipse.jst.j2ee.common.EnvEntryType; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.common.Identity; -import org.eclipse.jst.j2ee.common.Listener; -import org.eclipse.jst.j2ee.common.MessageDestination; -import org.eclipse.jst.j2ee.common.MessageDestinationRef; -import org.eclipse.jst.j2ee.common.MessageDestinationUsageType; -import org.eclipse.jst.j2ee.common.ParamValue; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.common.ResAuthTypeBase; -import org.eclipse.jst.j2ee.common.ResSharingScopeType; -import org.eclipse.jst.j2ee.common.ResourceEnvRef; -import org.eclipse.jst.j2ee.common.ResourceRef; -import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.common.UseCallerIdentity; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class CommonFactoryImpl extends EFactoryImpl implements CommonFactory { - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CommonFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case CommonPackage.EJB_REF: return createEjbRef(); - case CommonPackage.ENV_ENTRY: return createEnvEntry(); - case CommonPackage.RESOURCE_REF: return createResourceRef(); - case CommonPackage.SECURITY_ROLE_REF: return createSecurityRoleRef(); - case CommonPackage.SECURITY_ROLE: return createSecurityRole(); - case CommonPackage.RESOURCE_ENV_REF: return createResourceEnvRef(); - case CommonPackage.EJB_LOCAL_REF: return createEJBLocalRef(); - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY: return createRunAsSpecifiedIdentity(); - case CommonPackage.IDENTITY: return createIdentity(); - case CommonPackage.ICON_TYPE: return createIconType(); - case CommonPackage.DISPLAY_NAME: return createDisplayName(); - case CommonPackage.MESSAGE_DESTINATION_REF: return createMessageDestinationRef(); - case CommonPackage.MESSAGE_DESTINATION: return createMessageDestination(); - case CommonPackage.PARAM_VALUE: return createParamValue(); - case CommonPackage.DESCRIPTION_GROUP: return createDescriptionGroup(); - case CommonPackage.SECURITY_IDENTITY: return createSecurityIdentity(); - case CommonPackage.USE_CALLER_IDENTITY: return createUseCallerIdentity(); - case CommonPackage.DESCRIPTION: return createDescription(); - case CommonPackage.QNAME: return createQName(); - case CommonPackage.LISTENER: return createListener(); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP: return createCompatibilityDescriptionGroup(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case CommonPackage.ENV_ENTRY_TYPE: { - EnvEntryType result = EnvEntryType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case CommonPackage.RES_AUTH_TYPE_BASE: { - ResAuthTypeBase result = ResAuthTypeBase.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case CommonPackage.EJB_REF_TYPE: { - EjbRefType result = EjbRefType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case CommonPackage.RES_SHARING_SCOPE_TYPE: { - ResSharingScopeType result = ResSharingScopeType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case CommonPackage.MESSAGE_DESTINATION_USAGE_TYPE: { - MessageDestinationUsageType result = MessageDestinationUsageType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case CommonPackage.ENV_ENTRY_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case CommonPackage.RES_AUTH_TYPE_BASE: - return instanceValue == null ? null : instanceValue.toString(); - case CommonPackage.EJB_REF_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case CommonPackage.RES_SHARING_SCOPE_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case CommonPackage.MESSAGE_DESTINATION_USAGE_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EjbRef createEjbRef() { - EjbRefImpl ejbRef = new EjbRefImpl(); - return ejbRef; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EnvEntry createEnvEntry() { - EnvEntryImpl envEntry = new EnvEntryImpl(); - return envEntry; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ResourceRef createResourceRef() { - ResourceRefImpl resourceRef = new ResourceRefImpl(); - return resourceRef; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public SecurityRoleRef createSecurityRoleRef() { - SecurityRoleRefImpl securityRoleRef = new SecurityRoleRefImpl(); - return securityRoleRef; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public SecurityRole createSecurityRole() { - SecurityRoleImpl securityRole = new SecurityRoleImpl(); - return securityRole; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ResourceEnvRef createResourceEnvRef() { - ResourceEnvRefImpl resourceEnvRef = new ResourceEnvRefImpl(); - return resourceEnvRef; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EJBLocalRef createEJBLocalRef() { - EJBLocalRefImpl ejbLocalRef = new EJBLocalRefImpl(); - return ejbLocalRef; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RunAsSpecifiedIdentity createRunAsSpecifiedIdentity() { - RunAsSpecifiedIdentityImpl runAsSpecifiedIdentity = new RunAsSpecifiedIdentityImpl(); - return runAsSpecifiedIdentity; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Identity createIdentity() { - IdentityImpl identity = new IdentityImpl(); - return identity; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public IconType createIconType() { - IconTypeImpl iconType = new IconTypeImpl(); - return iconType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DisplayName createDisplayName() { - DisplayNameImpl displayName = new DisplayNameImpl(); - return displayName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MessageDestinationRef createMessageDestinationRef() { - MessageDestinationRefImpl messageDestinationRef = new MessageDestinationRefImpl(); - return messageDestinationRef; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MessageDestination createMessageDestination() { - MessageDestinationImpl messageDestination = new MessageDestinationImpl(); - return messageDestination; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ParamValue createParamValue() { - ParamValueImpl paramValue = new ParamValueImpl(); - return paramValue; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DescriptionGroup createDescriptionGroup() { - DescriptionGroupImpl descriptionGroup = new DescriptionGroupImpl(); - return descriptionGroup; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public SecurityIdentity createSecurityIdentity() { - SecurityIdentityImpl securityIdentity = new SecurityIdentityImpl(); - return securityIdentity; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UseCallerIdentity createUseCallerIdentity() { - UseCallerIdentityImpl useCallerIdentity = new UseCallerIdentityImpl(); - return useCallerIdentity; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Description createDescription() { - DescriptionImpl description = new DescriptionImpl(); - return description; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public QName createQName() { - QNameImpl qName = new QNameImpl(); - return qName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Listener createListener() { - ListenerImpl listener = new ListenerImpl(); - return listener; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CompatibilityDescriptionGroup createCompatibilityDescriptionGroup() { - CompatibilityDescriptionGroupImpl compatibilityDescriptionGroup = new CompatibilityDescriptionGroupImpl(); - return compatibilityDescriptionGroup; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CommonPackage getCommonPackage() { - return (CommonPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static CommonPackage getPackage() { - return CommonPackage.eINSTANCE; - } - -} //CommonFactoryImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonPackageImpl.java deleted file mode 100644 index 165fcf04a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonPackageImpl.java +++ /dev/null @@ -1,1509 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonFactory; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.EJBLocalRef; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.EjbRefType; -import org.eclipse.jst.j2ee.common.EnvEntry; -import org.eclipse.jst.j2ee.common.EnvEntryType; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.common.Identity; -import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup; -import org.eclipse.jst.j2ee.common.Listener; -import org.eclipse.jst.j2ee.common.MessageDestination; -import org.eclipse.jst.j2ee.common.MessageDestinationRef; -import org.eclipse.jst.j2ee.common.MessageDestinationUsageType; -import org.eclipse.jst.j2ee.common.ParamValue; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.common.ResAuthTypeBase; -import org.eclipse.jst.j2ee.common.ResSharingScopeType; -import org.eclipse.jst.j2ee.common.ResourceEnvRef; -import org.eclipse.jst.j2ee.common.ResourceRef; -import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.common.UseCallerIdentity; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -public class CommonPackageImpl extends EPackageImpl implements CommonPackage, EPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ejbRefEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass envEntryEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass resourceRefEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass securityRoleRefEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass securityRoleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass resourceEnvRefEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ejbLocalRefEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass runAsSpecifiedIdentityEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass securityIdentityEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass identityEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass iconTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass displayNameEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass messageDestinationRefEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass messageDestinationEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass paramValueEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass descriptionGroupEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass jndiEnvRefsGroupEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass useCallerIdentityEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass descriptionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass qNameEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass listenerEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass compatibilityDescriptionGroupEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum envEntryTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum resAuthTypeBaseEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum ejbRefTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum resSharingScopeTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum messageDestinationUsageTypeEEnum = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - private CommonPackageImpl() { - super(eNS_URI, CommonFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - public static CommonPackage init() { - if (isInited) return (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - - // Obtain or create and register package - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new CommonPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE); - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE); - - // Create package meta-data objects - theCommonPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theEjbPackage.createPackageContents(); - theTaglibPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - theWscommonPackage.createPackageContents(); - theWsddPackage.createPackageContents(); - - // Initialize created meta-data - theCommonPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theTaglibPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - theWscommonPackage.initializePackageContents(); - theWsddPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theCommonPackage.freeze(); - - return theCommonPackage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getSecurityRole() { - return securityRoleEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSecurityRole_Description() { - return (EAttribute)securityRoleEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSecurityRole_RoleName() { - return (EAttribute)securityRoleEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSecurityRole_Descriptions() { - return (EReference)securityRoleEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getResourceRef() { - return resourceRefEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceRef_Description() { - return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceRef_Name() { - return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceRef_Type() { - return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceRef_Auth() { - return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceRef_Link() { - return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceRef_ResSharingScope() { - return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getResourceRef_Descriptions() { - return (EReference)resourceRefEClass.getEStructuralFeatures().get(6); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEjbRef() { - return ejbRefEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEjbRef_Name() { - return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEjbRef_Type() { - return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEjbRef_Home() { - return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEjbRef_Remote() { - return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEjbRef_Link() { - return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEjbRef_Description() { - return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getEjbRef_Descriptions() { - return (EReference)ejbRefEClass.getEStructuralFeatures().get(6); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEJBLocalRef() { - return ejbLocalRefEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getEJBLocalRef_LocalHome() { - return (EAttribute)ejbLocalRefEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getEJBLocalRef_Local() { - return (EAttribute)ejbLocalRefEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEnvEntry() { - return envEntryEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEnvEntry_Description() { - return (EAttribute)envEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEnvEntry_Name() { - return (EAttribute)envEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEnvEntry_Value() { - return (EAttribute)envEntryEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEnvEntry_Type() { - return (EAttribute)envEntryEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getEnvEntry_Descriptions() { - return (EReference)envEntryEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getSecurityRoleRef() { - return securityRoleRefEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSecurityRoleRef_Name() { - return (EAttribute)securityRoleRefEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSecurityRoleRef_Description() { - return (EAttribute)securityRoleRefEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSecurityRoleRef_Link() { - return (EAttribute)securityRoleRefEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSecurityRoleRef_Descriptions() { - return (EReference)securityRoleRefEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getRunAsSpecifiedIdentity() { - return runAsSpecifiedIdentityEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getRunAsSpecifiedIdentity_Identity() { - return (EReference)runAsSpecifiedIdentityEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getSecurityIdentity() { - return securityIdentityEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSecurityIdentity_Description() { - return (EAttribute)securityIdentityEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSecurityIdentity_Descriptions() { - return (EReference)securityIdentityEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getUseCallerIdentity() { - return useCallerIdentityEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getDescription() { - return descriptionEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getDescription_Lang() { - return (EAttribute)descriptionEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getDescription_Value() { - return (EAttribute)descriptionEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getQName() { - return qNameEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getQName_NamespaceURI() { - return (EAttribute)qNameEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getQName_LocalPart() { - return (EAttribute)qNameEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getQName_CombinedQName() { - return (EAttribute)qNameEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getQName_InternalPrefixOrNsURI() { - return (EAttribute)qNameEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getListener() { - return listenerEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getListener_ListenerClass() { - return (EReference)listenerEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getCompatibilityDescriptionGroup() { - return compatibilityDescriptionGroupEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getCompatibilityDescriptionGroup_SmallIcon() { - return (EAttribute)compatibilityDescriptionGroupEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getCompatibilityDescriptionGroup_LargeIcon() { - return (EAttribute)compatibilityDescriptionGroupEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getCompatibilityDescriptionGroup_Description() { - return (EAttribute)compatibilityDescriptionGroupEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getCompatibilityDescriptionGroup_DisplayName() { - return (EAttribute)compatibilityDescriptionGroupEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getIdentity() { - return identityEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getIdentity_Description() { - return (EAttribute)identityEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getIdentity_RoleName() { - return (EAttribute)identityEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getIdentity_Descriptions() { - return (EReference)identityEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIconType() { - return iconTypeEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getIconType_SmallIcon() { - return (EAttribute)iconTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getIconType_LargeIcon() { - return (EAttribute)iconTypeEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getIconType_Lang() { - return (EAttribute)iconTypeEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getDisplayName() { - return displayNameEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getDisplayName_Lang() { - return (EAttribute)displayNameEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getDisplayName_Value() { - return (EAttribute)displayNameEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMessageDestinationRef() { - return messageDestinationRefEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMessageDestinationRef_Name() { - return (EAttribute)messageDestinationRefEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMessageDestinationRef_Type() { - return (EAttribute)messageDestinationRefEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMessageDestinationRef_Usage() { - return (EAttribute)messageDestinationRefEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMessageDestinationRef_Link() { - return (EAttribute)messageDestinationRefEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMessageDestinationRef_Descriptions() { - return (EReference)messageDestinationRefEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMessageDestination() { - return messageDestinationEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMessageDestination_Name() { - return (EAttribute)messageDestinationEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getParamValue() { - return paramValueEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getParamValue_Name() { - return (EAttribute)paramValueEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getParamValue_Value() { - return (EAttribute)paramValueEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getParamValue_Description() { - return (EAttribute)paramValueEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getParamValue_Descriptions() { - return (EReference)paramValueEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getDescriptionGroup() { - return descriptionGroupEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getDescriptionGroup_Icons() { - return (EReference)descriptionGroupEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getDescriptionGroup_DisplayNames() { - return (EReference)descriptionGroupEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getDescriptionGroup_Descriptions() { - return (EReference)descriptionGroupEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getJNDIEnvRefsGroup() { - return jndiEnvRefsGroupEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJNDIEnvRefsGroup_EnvironmentProperties() { - return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJNDIEnvRefsGroup_ResourceRefs() { - return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJNDIEnvRefsGroup_EjbRefs() { - return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJNDIEnvRefsGroup_ResourceEnvRefs() { - return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJNDIEnvRefsGroup_EjbLocalRefs() { - return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJNDIEnvRefsGroup_MessageDestinationRefs() { - return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJNDIEnvRefsGroup_ServiceRefs() { - return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(6); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getResourceEnvRef() { - return resourceEnvRefEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceEnvRef_Description() { - return (EAttribute)resourceEnvRefEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceEnvRef_Name() { - return (EAttribute)resourceEnvRefEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getResourceEnvRef_Type() { - return (EReference)resourceEnvRefEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getResourceEnvRef_Descriptions() { - return (EReference)resourceEnvRefEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getEjbRefType() { - return ejbRefTypeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getEnvEntryType() { - return envEntryTypeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getResAuthTypeBase() { - return resAuthTypeBaseEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getResSharingScopeType() { - return resSharingScopeTypeEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getMessageDestinationUsageType() { - return messageDestinationUsageTypeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public CommonFactory getCommonFactory() { - return (CommonFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - ejbRefEClass = createEClass(EJB_REF); - createEAttribute(ejbRefEClass, EJB_REF__NAME); - createEAttribute(ejbRefEClass, EJB_REF__TYPE); - createEAttribute(ejbRefEClass, EJB_REF__HOME); - createEAttribute(ejbRefEClass, EJB_REF__REMOTE); - createEAttribute(ejbRefEClass, EJB_REF__LINK); - createEAttribute(ejbRefEClass, EJB_REF__DESCRIPTION); - createEReference(ejbRefEClass, EJB_REF__DESCRIPTIONS); - - envEntryEClass = createEClass(ENV_ENTRY); - createEAttribute(envEntryEClass, ENV_ENTRY__DESCRIPTION); - createEAttribute(envEntryEClass, ENV_ENTRY__NAME); - createEAttribute(envEntryEClass, ENV_ENTRY__VALUE); - createEAttribute(envEntryEClass, ENV_ENTRY__TYPE); - createEReference(envEntryEClass, ENV_ENTRY__DESCRIPTIONS); - - resourceRefEClass = createEClass(RESOURCE_REF); - createEAttribute(resourceRefEClass, RESOURCE_REF__DESCRIPTION); - createEAttribute(resourceRefEClass, RESOURCE_REF__NAME); - createEAttribute(resourceRefEClass, RESOURCE_REF__TYPE); - createEAttribute(resourceRefEClass, RESOURCE_REF__AUTH); - createEAttribute(resourceRefEClass, RESOURCE_REF__LINK); - createEAttribute(resourceRefEClass, RESOURCE_REF__RES_SHARING_SCOPE); - createEReference(resourceRefEClass, RESOURCE_REF__DESCRIPTIONS); - - securityRoleRefEClass = createEClass(SECURITY_ROLE_REF); - createEAttribute(securityRoleRefEClass, SECURITY_ROLE_REF__NAME); - createEAttribute(securityRoleRefEClass, SECURITY_ROLE_REF__DESCRIPTION); - createEAttribute(securityRoleRefEClass, SECURITY_ROLE_REF__LINK); - createEReference(securityRoleRefEClass, SECURITY_ROLE_REF__DESCRIPTIONS); - - securityRoleEClass = createEClass(SECURITY_ROLE); - createEAttribute(securityRoleEClass, SECURITY_ROLE__DESCRIPTION); - createEAttribute(securityRoleEClass, SECURITY_ROLE__ROLE_NAME); - createEReference(securityRoleEClass, SECURITY_ROLE__DESCRIPTIONS); - - resourceEnvRefEClass = createEClass(RESOURCE_ENV_REF); - createEAttribute(resourceEnvRefEClass, RESOURCE_ENV_REF__DESCRIPTION); - createEAttribute(resourceEnvRefEClass, RESOURCE_ENV_REF__NAME); - createEReference(resourceEnvRefEClass, RESOURCE_ENV_REF__TYPE); - createEReference(resourceEnvRefEClass, RESOURCE_ENV_REF__DESCRIPTIONS); - - ejbLocalRefEClass = createEClass(EJB_LOCAL_REF); - createEAttribute(ejbLocalRefEClass, EJB_LOCAL_REF__LOCAL_HOME); - createEAttribute(ejbLocalRefEClass, EJB_LOCAL_REF__LOCAL); - - runAsSpecifiedIdentityEClass = createEClass(RUN_AS_SPECIFIED_IDENTITY); - createEReference(runAsSpecifiedIdentityEClass, RUN_AS_SPECIFIED_IDENTITY__IDENTITY); - - identityEClass = createEClass(IDENTITY); - createEAttribute(identityEClass, IDENTITY__DESCRIPTION); - createEAttribute(identityEClass, IDENTITY__ROLE_NAME); - createEReference(identityEClass, IDENTITY__DESCRIPTIONS); - - iconTypeEClass = createEClass(ICON_TYPE); - createEAttribute(iconTypeEClass, ICON_TYPE__SMALL_ICON); - createEAttribute(iconTypeEClass, ICON_TYPE__LARGE_ICON); - createEAttribute(iconTypeEClass, ICON_TYPE__LANG); - - displayNameEClass = createEClass(DISPLAY_NAME); - createEAttribute(displayNameEClass, DISPLAY_NAME__LANG); - createEAttribute(displayNameEClass, DISPLAY_NAME__VALUE); - - messageDestinationRefEClass = createEClass(MESSAGE_DESTINATION_REF); - createEAttribute(messageDestinationRefEClass, MESSAGE_DESTINATION_REF__NAME); - createEAttribute(messageDestinationRefEClass, MESSAGE_DESTINATION_REF__TYPE); - createEAttribute(messageDestinationRefEClass, MESSAGE_DESTINATION_REF__USAGE); - createEAttribute(messageDestinationRefEClass, MESSAGE_DESTINATION_REF__LINK); - createEReference(messageDestinationRefEClass, MESSAGE_DESTINATION_REF__DESCRIPTIONS); - - messageDestinationEClass = createEClass(MESSAGE_DESTINATION); - createEAttribute(messageDestinationEClass, MESSAGE_DESTINATION__NAME); - - paramValueEClass = createEClass(PARAM_VALUE); - createEAttribute(paramValueEClass, PARAM_VALUE__NAME); - createEAttribute(paramValueEClass, PARAM_VALUE__VALUE); - createEAttribute(paramValueEClass, PARAM_VALUE__DESCRIPTION); - createEReference(paramValueEClass, PARAM_VALUE__DESCRIPTIONS); - - descriptionGroupEClass = createEClass(DESCRIPTION_GROUP); - createEReference(descriptionGroupEClass, DESCRIPTION_GROUP__ICONS); - createEReference(descriptionGroupEClass, DESCRIPTION_GROUP__DISPLAY_NAMES); - createEReference(descriptionGroupEClass, DESCRIPTION_GROUP__DESCRIPTIONS); - - jndiEnvRefsGroupEClass = createEClass(JNDI_ENV_REFS_GROUP); - createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES); - createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__RESOURCE_REFS); - createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__EJB_REFS); - createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS); - createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS); - createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS); - createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__SERVICE_REFS); - - securityIdentityEClass = createEClass(SECURITY_IDENTITY); - createEAttribute(securityIdentityEClass, SECURITY_IDENTITY__DESCRIPTION); - createEReference(securityIdentityEClass, SECURITY_IDENTITY__DESCRIPTIONS); - - useCallerIdentityEClass = createEClass(USE_CALLER_IDENTITY); - - descriptionEClass = createEClass(DESCRIPTION); - createEAttribute(descriptionEClass, DESCRIPTION__LANG); - createEAttribute(descriptionEClass, DESCRIPTION__VALUE); - - qNameEClass = createEClass(QNAME); - createEAttribute(qNameEClass, QNAME__NAMESPACE_URI); - createEAttribute(qNameEClass, QNAME__LOCAL_PART); - createEAttribute(qNameEClass, QNAME__COMBINED_QNAME); - createEAttribute(qNameEClass, QNAME__INTERNAL_PREFIX_OR_NS_URI); - - listenerEClass = createEClass(LISTENER); - createEReference(listenerEClass, LISTENER__LISTENER_CLASS); - - compatibilityDescriptionGroupEClass = createEClass(COMPATIBILITY_DESCRIPTION_GROUP); - createEAttribute(compatibilityDescriptionGroupEClass, COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON); - createEAttribute(compatibilityDescriptionGroupEClass, COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON); - createEAttribute(compatibilityDescriptionGroupEClass, COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION); - createEAttribute(compatibilityDescriptionGroupEClass, COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME); - - // Create enums - envEntryTypeEEnum = createEEnum(ENV_ENTRY_TYPE); - resAuthTypeBaseEEnum = createEEnum(RES_AUTH_TYPE_BASE); - ejbRefTypeEEnum = createEEnum(EJB_REF_TYPE); - resSharingScopeTypeEEnum = createEEnum(RES_SHARING_SCOPE_TYPE); - messageDestinationUsageTypeEEnum = createEEnum(MESSAGE_DESTINATION_USAGE_TYPE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - JavaRefPackageImpl theJavaRefPackage = (JavaRefPackageImpl)EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI); - - // Add supertypes to classes - ejbLocalRefEClass.getESuperTypes().add(this.getEjbRef()); - runAsSpecifiedIdentityEClass.getESuperTypes().add(this.getSecurityIdentity()); - messageDestinationEClass.getESuperTypes().add(this.getCompatibilityDescriptionGroup()); - jndiEnvRefsGroupEClass.getESuperTypes().add(this.getCompatibilityDescriptionGroup()); - useCallerIdentityEClass.getESuperTypes().add(this.getSecurityIdentity()); - listenerEClass.getESuperTypes().add(this.getCompatibilityDescriptionGroup()); - compatibilityDescriptionGroupEClass.getESuperTypes().add(this.getDescriptionGroup()); - - // Initialize classes and features; add operations and parameters - initEClass(ejbRefEClass, EjbRef.class, "EjbRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEjbRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEjbRef_Type(), this.getEjbRefType(), "type", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEjbRef_Home(), ecorePackage.getEString(), "home", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEjbRef_Remote(), ecorePackage.getEString(), "remote", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEjbRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEjbRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEjbRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(envEntryEClass, EnvEntry.class, "EnvEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEnvEntry_Description(), ecorePackage.getEString(), "description", null, 0, 1, EnvEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEnvEntry_Name(), ecorePackage.getEString(), "name", null, 0, 1, EnvEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEnvEntry_Value(), ecorePackage.getEString(), "value", null, 0, 1, EnvEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEnvEntry_Type(), this.getEnvEntryType(), "type", null, 0, 1, EnvEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEnvEntry_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, EnvEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(resourceRefEClass, ResourceRef.class, "ResourceRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getResourceRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceRef_Type(), ecorePackage.getEString(), "type", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceRef_Auth(), this.getResAuthTypeBase(), "auth", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceRef_ResSharingScope(), this.getResSharingScopeType(), "resSharingScope", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getResourceRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(securityRoleRefEClass, SecurityRoleRef.class, "SecurityRoleRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSecurityRoleRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, SecurityRoleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getSecurityRoleRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, SecurityRoleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getSecurityRoleRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, SecurityRoleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSecurityRoleRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, SecurityRoleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(securityRoleEClass, SecurityRole.class, "SecurityRole", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSecurityRole_Description(), ecorePackage.getEString(), "description", null, 0, 1, SecurityRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getSecurityRole_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, SecurityRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSecurityRole_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, SecurityRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(resourceEnvRefEClass, ResourceEnvRef.class, "ResourceEnvRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getResourceEnvRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, ResourceEnvRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceEnvRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, ResourceEnvRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getResourceEnvRef_Type(), theJavaRefPackage.getJavaClass(), null, "type", null, 1, 1, ResourceEnvRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getResourceEnvRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, ResourceEnvRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(ejbLocalRefEClass, EJBLocalRef.class, "EJBLocalRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEJBLocalRef_LocalHome(), ecorePackage.getEString(), "localHome", null, 0, 1, EJBLocalRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEJBLocalRef_Local(), ecorePackage.getEString(), "local", null, 0, 1, EJBLocalRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(runAsSpecifiedIdentityEClass, RunAsSpecifiedIdentity.class, "RunAsSpecifiedIdentity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRunAsSpecifiedIdentity_Identity(), this.getIdentity(), null, "identity", null, 0, 1, RunAsSpecifiedIdentity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(identityEClass, Identity.class, "Identity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getIdentity_Description(), ecorePackage.getEString(), "description", null, 0, 1, Identity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getIdentity_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, Identity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getIdentity_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, Identity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(iconTypeEClass, IconType.class, "IconType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getIconType_SmallIcon(), ecorePackage.getEString(), "smallIcon", null, 0, 1, IconType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getIconType_LargeIcon(), ecorePackage.getEString(), "largeIcon", null, 0, 1, IconType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getIconType_Lang(), ecorePackage.getEString(), "lang", null, 0, 1, IconType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(displayNameEClass, DisplayName.class, "DisplayName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getDisplayName_Lang(), ecorePackage.getEString(), "lang", null, 0, 1, DisplayName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getDisplayName_Value(), ecorePackage.getEString(), "value", null, 0, 1, DisplayName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(messageDestinationRefEClass, MessageDestinationRef.class, "MessageDestinationRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMessageDestinationRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, MessageDestinationRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMessageDestinationRef_Type(), ecorePackage.getEString(), "type", null, 0, 1, MessageDestinationRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMessageDestinationRef_Usage(), this.getMessageDestinationUsageType(), "usage", null, 0, 1, MessageDestinationRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMessageDestinationRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, MessageDestinationRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMessageDestinationRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, MessageDestinationRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(messageDestinationEClass, MessageDestination.class, "MessageDestination", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMessageDestination_Name(), ecorePackage.getEString(), "name", null, 0, 1, MessageDestination.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(paramValueEClass, ParamValue.class, "ParamValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getParamValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, ParamValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getParamValue_Value(), ecorePackage.getEString(), "value", null, 0, 1, ParamValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getParamValue_Description(), ecorePackage.getEString(), "description", null, 0, 1, ParamValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getParamValue_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, ParamValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(descriptionGroupEClass, DescriptionGroup.class, "DescriptionGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getDescriptionGroup_Icons(), this.getIconType(), null, "icons", null, 0, -1, DescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getDescriptionGroup_DisplayNames(), this.getDisplayName(), null, "displayNames", null, 0, -1, DescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getDescriptionGroup_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, DescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(jndiEnvRefsGroupEClass, JNDIEnvRefsGroup.class, "JNDIEnvRefsGroup", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getJNDIEnvRefsGroup_EnvironmentProperties(), this.getEnvEntry(), null, "environmentProperties", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJNDIEnvRefsGroup_ResourceRefs(), this.getResourceRef(), null, "resourceRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJNDIEnvRefsGroup_EjbRefs(), this.getEjbRef(), null, "ejbRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJNDIEnvRefsGroup_ResourceEnvRefs(), this.getResourceEnvRef(), null, "resourceEnvRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJNDIEnvRefsGroup_EjbLocalRefs(), this.getEJBLocalRef(), null, "ejbLocalRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJNDIEnvRefsGroup_MessageDestinationRefs(), this.getMessageDestinationRef(), null, "messageDestinationRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJNDIEnvRefsGroup_ServiceRefs(), theWebservice_clientPackage.getServiceRef(), null, "serviceRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(securityIdentityEClass, SecurityIdentity.class, "SecurityIdentity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSecurityIdentity_Description(), ecorePackage.getEString(), "description", null, 0, 1, SecurityIdentity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSecurityIdentity_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, SecurityIdentity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(useCallerIdentityEClass, UseCallerIdentity.class, "UseCallerIdentity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(descriptionEClass, Description.class, "Description", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getDescription_Lang(), ecorePackage.getEString(), "lang", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getDescription_Value(), ecorePackage.getEString(), "value", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(qNameEClass, QName.class, "QName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getQName_NamespaceURI(), ecorePackage.getEString(), "namespaceURI", null, 0, 1, QName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getQName_LocalPart(), ecorePackage.getEString(), "localPart", null, 0, 1, QName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getQName_CombinedQName(), ecorePackage.getEString(), "combinedQName", null, 0, 1, QName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getQName_InternalPrefixOrNsURI(), ecorePackage.getEString(), "internalPrefixOrNsURI", null, 0, 1, QName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(listenerEClass, Listener.class, "Listener", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getListener_ListenerClass(), theJavaRefPackage.getJavaClass(), null, "listenerClass", null, 1, 1, Listener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(compatibilityDescriptionGroupEClass, CompatibilityDescriptionGroup.class, "CompatibilityDescriptionGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getCompatibilityDescriptionGroup_SmallIcon(), ecorePackage.getEString(), "smallIcon", null, 0, 1, CompatibilityDescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCompatibilityDescriptionGroup_LargeIcon(), ecorePackage.getEString(), "largeIcon", null, 0, 1, CompatibilityDescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCompatibilityDescriptionGroup_Description(), ecorePackage.getEString(), "description", null, 0, 1, CompatibilityDescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCompatibilityDescriptionGroup_DisplayName(), ecorePackage.getEString(), "displayName", null, 0, 1, CompatibilityDescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(envEntryTypeEEnum, EnvEntryType.class, "EnvEntryType"); - addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.STRING_LITERAL); - addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.INTEGER_LITERAL); - addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.BOOLEAN_LITERAL); - addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.DOUBLE_LITERAL); - addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.BYTE_LITERAL); - addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.SHORT_LITERAL); - addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.LONG_LITERAL); - addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.FLOAT_LITERAL); - addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.CHARACTER_LITERAL); - - initEEnum(resAuthTypeBaseEEnum, ResAuthTypeBase.class, "ResAuthTypeBase"); - addEEnumLiteral(resAuthTypeBaseEEnum, ResAuthTypeBase.CONTAINER_LITERAL); - addEEnumLiteral(resAuthTypeBaseEEnum, ResAuthTypeBase.APPLICATION_LITERAL); - addEEnumLiteral(resAuthTypeBaseEEnum, ResAuthTypeBase.SERVLET_LITERAL); - - initEEnum(ejbRefTypeEEnum, EjbRefType.class, "EjbRefType"); - addEEnumLiteral(ejbRefTypeEEnum, EjbRefType.SESSION_LITERAL); - addEEnumLiteral(ejbRefTypeEEnum, EjbRefType.ENTITY_LITERAL); - - initEEnum(resSharingScopeTypeEEnum, ResSharingScopeType.class, "ResSharingScopeType"); - addEEnumLiteral(resSharingScopeTypeEEnum, ResSharingScopeType.SHAREABLE_LITERAL); - addEEnumLiteral(resSharingScopeTypeEEnum, ResSharingScopeType.UNSHAREABLE_LITERAL); - - initEEnum(messageDestinationUsageTypeEEnum, MessageDestinationUsageType.class, "MessageDestinationUsageType"); - addEEnumLiteral(messageDestinationUsageTypeEEnum, MessageDestinationUsageType.CONSUMES_LITERAL); - addEEnumLiteral(messageDestinationUsageTypeEEnum, MessageDestinationUsageType.PRODUCES_LITERAL); - addEEnumLiteral(messageDestinationUsageTypeEEnum, MessageDestinationUsageType.CONSUMES_PRODUCES_LITERAL); - - // Create resource - createResource(eNS_URI); - } - -} //CommonPackageImpl - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CompatibilityDescriptionGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CompatibilityDescriptionGroupImpl.java deleted file mode 100644 index b63ef2c2c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CompatibilityDescriptionGroupImpl.java +++ /dev/null @@ -1,601 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonFactory; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Compatibility Description Group</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl#getSmallIcon <em>Small Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl#getLargeIcon <em>Large Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl#getDisplayName <em>Display Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class CompatibilityDescriptionGroupImpl extends DescriptionGroupImpl implements CompatibilityDescriptionGroup { - /** - * The default value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSmallIcon() - * @generated - * @ordered - */ - protected static final String SMALL_ICON_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSmallIcon() - * @generated - * @ordered - */ - protected String smallIcon = SMALL_ICON_EDEFAULT; - - /** - * The default value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLargeIcon() - * @generated - * @ordered - */ - protected static final String LARGE_ICON_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLargeIcon() - * @generated - * @ordered - */ - protected String largeIcon = LARGE_ICON_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected String description = DESCRIPTION_EDEFAULT; - - /** - * The default value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayName() - * @generated - * @ordered - */ - protected static final String DISPLAY_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayName() - * @generated - * @ordered - */ - protected String displayName = DISPLAY_NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - */ - protected CompatibilityDescriptionGroupImpl() { - super(); - eAdapters().add(new DescriptionGroupAdapter()); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getCompatibilityDescriptionGroup(); - } - - public String getSmallIcon() { - if(eResource() == null) - return getSmallIconGen(); - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - return getSmallIconGen(); - case J2EEVersionConstants.J2EE_1_4_ID : - default : - if (getIcons().size() > 0) - return ((IconType)getIcons().get(0)).getSmallIcon(); - } - return null; - } - - public void setSmallIcon(String newSmallIcon) { - if(eResource() == null) { - setSmallIconGen(newSmallIcon); - internalSetSmallIconInList(newSmallIcon); - return; - } - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - setSmallIconGen(newSmallIcon); - break; - case J2EEVersionConstants.J2EE_1_4_ID : - default : - internalSetSmallIconInList(newSmallIcon); - break; - } - } - /** - * @param newSmallIcon - */ - protected void internalSetSmallIconInList(String newSmallIcon) { - IconType newValue = null; - if(getIcons().size() > 0) { - newValue = (IconType) getIcons().get(0); - newValue.setSmallIcon(newSmallIcon); - } - else { - newValue = CommonFactory.eINSTANCE.createIconType(); - newValue.setSmallIcon(newSmallIcon); - getIcons().add(newValue); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getSmallIconGen() { - return smallIcon; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSmallIconGen(String newSmallIcon) { - String oldSmallIcon = smallIcon; - smallIcon = newSmallIcon; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON, oldSmallIcon, smallIcon)); - } - - public String getLargeIcon() { - if(eResource() == null) - return getLargeIconGen(); - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - return getLargeIconGen(); - case J2EEVersionConstants.J2EE_1_4_ID : - default : - if (getIcons().size() > 0) - return ((IconType)getIcons().get(0)).getLargeIcon(); - } - return null; - } - - public void setLargeIcon(String newLargeIcon) { - if(eResource() == null) { - setLargeIconGen(newLargeIcon); - internalSetLargeIconInList(newLargeIcon); - return; - } - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - setLargeIconGen(newLargeIcon); - break; - case J2EEVersionConstants.J2EE_1_4_ID : - default : - internalSetLargeIconInList(newLargeIcon); - break; - } - } - - /** - * @param newLargeIcon - */ - protected void internalSetLargeIconInList(String newLargeIcon) { - IconType newValue = null; - if(getIcons().size() > 0) { - newValue = (IconType) getIcons().get(0); - newValue.setLargeIcon(newLargeIcon); - } - else { - newValue = CommonFactory.eINSTANCE.createIconType(); - newValue.setLargeIcon(newLargeIcon); - getIcons().add(newValue); - } - - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLargeIconGen() { - return largeIcon; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLargeIconGen(String newLargeIcon) { - String oldLargeIcon = largeIcon; - largeIcon = newLargeIcon; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON, oldLargeIcon, largeIcon)); - } - - public String getDescription() { - if(eResource() == null) - return getDescriptionGen(); - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - return getDescriptionGen(); - case J2EEVersionConstants.J2EE_1_4_ID : - default : - if (getDescriptions().size() > 0) - return ((Description)getDescriptions().get(0)).getValue(); - } - return null; - } - - public void setDescription(String newDescription) { - if(eResource() == null) { - setDescriptionGen(newDescription); - internalSetDescriptionInList(newDescription); - return; - } - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - setDescriptionGen(newDescription); - break; - case J2EEVersionConstants.J2EE_1_4_ID : - default : - internalSetDescriptionInList(newDescription); - break; - } - } - - /** - * @param newDescription - */ - protected void internalSetDescriptionInList(String newDescription) { - Description newValue = null; - if(getDescriptions().size() > 0) { - newValue = (Description) getDescriptions().get(0); - newValue.setValue(newDescription); - } - else { - newValue = CommonFactory.eINSTANCE.createDescription(); - newValue.setValue(newDescription); - getDescriptions().add(newValue); - } - - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getDescriptionGen() { - return description; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDescriptionGen(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION, oldDescription, description)); - } - - public String getDisplayName() { - if(eResource() == null) - return getDisplayNameGen(); - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - return getDisplayNameGen(); - case J2EEVersionConstants.J2EE_1_4_ID : - default : - if (getDisplayNames().size() > 0) - return ((DisplayName)getDisplayNames().get(0)).getValue(); - } - return null; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.jst.j2ee.internal.common.DescriptionGroup#setDisplayName(java.lang.String) - */ - public void setDisplayName(String newDisplayName) { - if(eResource() == null) { - setDisplayNameGen(newDisplayName); - internalSetDisplayNameInList(newDisplayName); - return; - } - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - setDisplayNameGen(newDisplayName); - break; - case J2EEVersionConstants.J2EE_1_4_ID : - default : - internalSetDisplayNameInList(newDisplayName); - break; - } - } - - /** - * @param newDisplayName - */ - protected void internalSetDisplayNameInList(String newDisplayName) { - DisplayName newValue = null; - if(getDisplayNames().size() > 0) { - newValue = (DisplayName) getDisplayNames().get(0); - newValue.setValue(newDisplayName); - } - else { - newValue = CommonFactory.eINSTANCE.createDisplayName(); - newValue.setValue(newDisplayName); - getDisplayNames().add(newValue); - } - - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getDisplayNameGen() { - return displayName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDisplayNameGen(String newDisplayName) { - String oldDisplayName = displayName; - displayName = newDisplayName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME, oldDisplayName, displayName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS: - return getIcons(); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES: - return getDisplayNames(); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS: - return getDescriptions(); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON: - return getSmallIcon(); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON: - return getLargeIcon(); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION: - return getDescription(); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME: - return getDisplayName(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS: - getIcons().clear(); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS: - getDescriptions().clear(); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS: - return icons != null && !icons.isEmpty(); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (smallIcon: "); - result.append(smallIcon); - result.append(", largeIcon: "); - result.append(largeIcon); - result.append(", description: "); - result.append(description); - result.append(", displayName: "); - result.append(displayName); - result.append(')'); - return result.toString(); - } - -} //CompatibilityDescriptionGroupImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupAdapter.java deleted file mode 100644 index d87b2d7f5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupAdapter.java +++ /dev/null @@ -1,119 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 3, 2004 - * - * To change the template for this generated file go to - * Window - Preferences - Java - Code Generation - Code and Comments - */ -package org.eclipse.jst.j2ee.common.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.IconType; - - - -/** - * @author cbridgha - * - * To change the template for this generated type comment go to - * Window - Preferences - Java - Code Generation - Code and Comments - */ - public class DescriptionGroupAdapter extends AdapterImpl { - - /* (non-Javadoc) - * @see org.eclipse.emf.common.notify.Adapter#notifyChanged(org.eclipse.emf.common.notify.Notification) - */ - public void notifyChanged(Notification msg) { - if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_Icons() || - msg.getFeature() == CommonPackage.eINSTANCE.getIconType_LargeIcon() || - msg.getFeature() == CommonPackage.eINSTANCE.getIconType_SmallIcon()) { - synchIcons(); - return; - } - else if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_Descriptions() || - msg.getFeature() == CommonPackage.eINSTANCE.getDescription_Value()) { - synchDescription(); - return; - } - else if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_DisplayNames() || - msg.getFeature() == CommonPackage.eINSTANCE.getDisplayName_Value()) { - synchDisplayName(); - return; - } - - } - - /** - * - */ - private void synchDescription() { - CompatibilityDescriptionGroup myTarget = (CompatibilityDescriptionGroup)getTarget(); - if (myTarget.getDescriptions().isEmpty()) - myTarget.setDescriptionGen(null); - else { - Description aDescription = (Description)myTarget.getDescriptions().get(0); - if (!aDescription.eAdapters().contains(this)) - aDescription.eAdapters().add(this); - else - myTarget.setDescriptionGen(aDescription.getValue()); - } - } - - /** - * - */ - private void synchDisplayName() { - CompatibilityDescriptionGroup myTarget = (CompatibilityDescriptionGroup)getTarget(); - if (myTarget.getDisplayNames().isEmpty()) - myTarget.setDisplayNameGen(null); - else { - DisplayName aDisplayName = (DisplayName)myTarget.getDisplayNames().get(0); - if (!aDisplayName.eAdapters().contains(this)) - aDisplayName.eAdapters().add(this); - myTarget.setDisplayNameGen(aDisplayName.getValue()); - } - } - - /** - * - */ - private void synchIcons() { - CompatibilityDescriptionGroup myTarget = (CompatibilityDescriptionGroup)getTarget(); - if (myTarget.getIcons().isEmpty()) { - myTarget.setLargeIconGen(null); - myTarget.setSmallIconGen(null); - } - else { - IconType anIcon = (IconType)myTarget.getIcons().get(0); - if (!anIcon.eAdapters().contains(this)) - anIcon.eAdapters().add(this); - else { - myTarget.setLargeIconGen(anIcon.getLargeIcon()); - myTarget.setSmallIconGen(anIcon.getSmallIcon()); - } - } - } - - /* (non-Javadoc) - * @see org.eclipse.emf.common.notify.Adapter#setTarget(org.eclipse.emf.common.notify.Notifier) - */ - public void setTarget(Notifier newTarget) { - if (newTarget instanceof CompatibilityDescriptionGroup) - super.setTarget(newTarget); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupImpl.java deleted file mode 100644 index 9cc21ddca..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupImpl.java +++ /dev/null @@ -1,221 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; - - -/** - * <!-- begin-user-doc -->An implementation of the model object '<em><b>Description Group</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl#getIcons <em>Icons</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl#getDisplayNames <em>Display Names</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl#getDescriptions <em>Descriptions</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class DescriptionGroupImpl extends EObjectImpl implements DescriptionGroup { - /** - * The cached value of the '{@link #getIcons() <em>Icons</em>}' containment reference list. - * <!-- begin-user-doc --><!-- end-user-doc --> - * - * @see #getIcons() @generated @ordered - */ - protected EList icons = null; - - /** - * The cached value of the '{@link #getDisplayNames() <em>Display Names</em>}' containment - * reference list. <!-- begin-user-doc --><!-- end-user-doc --> - * - * @see #getDisplayNames() @generated @ordered - */ - protected EList displayNames = null; - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment - * reference list. <!-- begin-user-doc --><!-- end-user-doc --> - * - * @see #getDescriptions() @generated @ordered - */ - protected EList descriptions = null; - - /** - * <!-- begin-user-doc --><!-- end-user-doc -->@generated - */ - protected DescriptionGroupImpl() { - super(); - } - - /** - * <!-- begin-user-doc --><!-- end-user-doc -->@generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getDescriptionGroup(); - } - - /** - * <!-- begin-user-doc --><!-- end-user-doc -->@generated - */ - public EList getIcons() { - if (icons == null) { - icons = new EObjectContainmentEList(IconType.class, this, CommonPackage.DESCRIPTION_GROUP__ICONS); - } - return icons; - } - - /** - * <!-- begin-user-doc --><!-- end-user-doc -->@generated - */ - public EList getDisplayNames() { - if (displayNames == null) { - displayNames = new EObjectContainmentEList(DisplayName.class, this, CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES); - } - return displayNames; - } - - /** - * <!-- begin-user-doc --><!-- end-user-doc -->@generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --><!-- end-user-doc -->@generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.DESCRIPTION_GROUP__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --><!-- end-user-doc -->@generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DESCRIPTION_GROUP__ICONS: - return getIcons(); - case CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES: - return getDisplayNames(); - case CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --><!-- end-user-doc -->@generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DESCRIPTION_GROUP__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --><!-- end-user-doc -->@generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DESCRIPTION_GROUP__ICONS: - getIcons().clear(); - return; - case CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --><!-- end-user-doc -->@generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DESCRIPTION_GROUP__ICONS: - return icons != null && !icons.isEmpty(); - case CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.jst.j2ee.internal.common.DescriptionGroup#getJ2EEVersionID() - */ - public int getJ2EEVersionID() throws IllegalStateException { - - try { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) - throw new IllegalStateException(); - return res.getJ2EEVersionID(); - } catch (ClassCastException exception) { - return J2EEVersionConstants.J2EE_1_3_ID; - } - - } - -} //DescriptionGroupImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionImpl.java deleted file mode 100644 index 85f256ccb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Description</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionImpl#getLang <em>Lang</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionImpl#getValue <em>Value</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class DescriptionImpl extends EObjectImpl implements Description { - /** - * The default value of the '{@link #getLang() <em>Lang</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLang() - * @generated - * @ordered - */ - protected static final String LANG_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLang() - * @generated - * @ordered - */ - protected String lang = LANG_EDEFAULT; - - /** - * The default value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected DescriptionImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getDescription(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLang() { - return lang; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLang(String newLang) { - String oldLang = lang; - lang = newLang; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.DESCRIPTION__LANG, oldLang, lang)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getValue() { - return value; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.DESCRIPTION__VALUE, oldValue, value)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DESCRIPTION__LANG: - return getLang(); - case CommonPackage.DESCRIPTION__VALUE: - return getValue(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DESCRIPTION__LANG: - setLang((String)newValue); - return; - case CommonPackage.DESCRIPTION__VALUE: - setValue((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DESCRIPTION__LANG: - setLang(LANG_EDEFAULT); - return; - case CommonPackage.DESCRIPTION__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DESCRIPTION__LANG: - return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); - case CommonPackage.DESCRIPTION__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (lang: "); - result.append(lang); - result.append(", value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - -} //DescriptionImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DisplayNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DisplayNameImpl.java deleted file mode 100644 index ff4c3026d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DisplayNameImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.DisplayName; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Display Name</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DisplayNameImpl#getLang <em>Lang</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DisplayNameImpl#getValue <em>Value</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class DisplayNameImpl extends EObjectImpl implements DisplayName { - /** - * The default value of the '{@link #getLang() <em>Lang</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLang() - * @generated - * @ordered - */ - protected static final String LANG_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLang() - * @generated - * @ordered - */ - protected String lang = LANG_EDEFAULT; - - /** - * The default value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected DisplayNameImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getDisplayName(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLang() { - return lang; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLang(String newLang) { - String oldLang = lang; - lang = newLang; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.DISPLAY_NAME__LANG, oldLang, lang)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getValue() { - return value; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.DISPLAY_NAME__VALUE, oldValue, value)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DISPLAY_NAME__LANG: - return getLang(); - case CommonPackage.DISPLAY_NAME__VALUE: - return getValue(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DISPLAY_NAME__LANG: - setLang((String)newValue); - return; - case CommonPackage.DISPLAY_NAME__VALUE: - setValue((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DISPLAY_NAME__LANG: - setLang(LANG_EDEFAULT); - return; - case CommonPackage.DISPLAY_NAME__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.DISPLAY_NAME__LANG: - return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); - case CommonPackage.DISPLAY_NAME__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (lang: "); - result.append(lang); - result.append(", value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - -} //DisplayNameImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EJBLocalRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EJBLocalRefImpl.java deleted file mode 100644 index 8501ee2ed..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EJBLocalRefImpl.java +++ /dev/null @@ -1,333 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.EJBLocalRef; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.EjbRefType; - -/** - * The ejb-local-ref element is used for the declaration of a reference to another enterprise bean's local home. The declaration consists of an optional description; the EJB reference name used in the code of the referencing enterprise bean; the expected type of the referenced enterprise bean; the expected local home and local interfaces of the referenced enterprise bean; and an optional ejb-link information. The optional ejb-link element is used to specify the referenced enterprise bean. - * Used in: entity, session, message-driven - */ -public class EJBLocalRefImpl extends EjbRefImpl implements EJBLocalRef, EjbRef{ - - /** - * The default value of the '{@link #getLocalHome() <em>Local Home</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocalHome() - * @generated - * @ordered - */ - protected static final String LOCAL_HOME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLocalHome() <em>Local Home</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocalHome() - * @generated - * @ordered - */ - protected String localHome = LOCAL_HOME_EDEFAULT; - - /** - * The default value of the '{@link #getLocal() <em>Local</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocal() - * @generated - * @ordered - */ - protected static final String LOCAL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLocal() <em>Local</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocal() - * @generated - * @ordered - */ - protected String local = LOCAL_EDEFAULT; - - public EJBLocalRefImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getEJBLocalRef(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLocalHome() { - return localHome; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLocalHome(String newLocalHome) { - String oldLocalHome = localHome; - localHome = newLocalHome; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_LOCAL_REF__LOCAL_HOME, oldLocalHome, localHome)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLocal() { - return local; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLocal(String newLocal) { - String oldLocal = local; - local = newLocal; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_LOCAL_REF__LOCAL, oldLocal, local)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.EJB_LOCAL_REF__NAME: - return getName(); - case CommonPackage.EJB_LOCAL_REF__TYPE: - return getType(); - case CommonPackage.EJB_LOCAL_REF__HOME: - return getHome(); - case CommonPackage.EJB_LOCAL_REF__REMOTE: - return getRemote(); - case CommonPackage.EJB_LOCAL_REF__LINK: - return getLink(); - case CommonPackage.EJB_LOCAL_REF__DESCRIPTION: - return getDescription(); - case CommonPackage.EJB_LOCAL_REF__DESCRIPTIONS: - return getDescriptions(); - case CommonPackage.EJB_LOCAL_REF__LOCAL_HOME: - return getLocalHome(); - case CommonPackage.EJB_LOCAL_REF__LOCAL: - return getLocal(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.EJB_LOCAL_REF__NAME: - setName((String)newValue); - return; - case CommonPackage.EJB_LOCAL_REF__TYPE: - setType((EjbRefType)newValue); - return; - case CommonPackage.EJB_LOCAL_REF__HOME: - setHome((String)newValue); - return; - case CommonPackage.EJB_LOCAL_REF__REMOTE: - setRemote((String)newValue); - return; - case CommonPackage.EJB_LOCAL_REF__LINK: - setLink((String)newValue); - return; - case CommonPackage.EJB_LOCAL_REF__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.EJB_LOCAL_REF__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case CommonPackage.EJB_LOCAL_REF__LOCAL_HOME: - setLocalHome((String)newValue); - return; - case CommonPackage.EJB_LOCAL_REF__LOCAL: - setLocal((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.EJB_LOCAL_REF__NAME: - setName(NAME_EDEFAULT); - return; - case CommonPackage.EJB_LOCAL_REF__TYPE: - unsetType(); - return; - case CommonPackage.EJB_LOCAL_REF__HOME: - setHome(HOME_EDEFAULT); - return; - case CommonPackage.EJB_LOCAL_REF__REMOTE: - setRemote(REMOTE_EDEFAULT); - return; - case CommonPackage.EJB_LOCAL_REF__LINK: - setLink(LINK_EDEFAULT); - return; - case CommonPackage.EJB_LOCAL_REF__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.EJB_LOCAL_REF__DESCRIPTIONS: - getDescriptions().clear(); - return; - case CommonPackage.EJB_LOCAL_REF__LOCAL_HOME: - setLocalHome(LOCAL_HOME_EDEFAULT); - return; - case CommonPackage.EJB_LOCAL_REF__LOCAL: - setLocal(LOCAL_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.EJB_LOCAL_REF__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case CommonPackage.EJB_LOCAL_REF__TYPE: - return isSetType(); - case CommonPackage.EJB_LOCAL_REF__HOME: - return HOME_EDEFAULT == null ? home != null : !HOME_EDEFAULT.equals(home); - case CommonPackage.EJB_LOCAL_REF__REMOTE: - return REMOTE_EDEFAULT == null ? remote != null : !REMOTE_EDEFAULT.equals(remote); - case CommonPackage.EJB_LOCAL_REF__LINK: - return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link); - case CommonPackage.EJB_LOCAL_REF__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.EJB_LOCAL_REF__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case CommonPackage.EJB_LOCAL_REF__LOCAL_HOME: - return LOCAL_HOME_EDEFAULT == null ? localHome != null : !LOCAL_HOME_EDEFAULT.equals(localHome); - case CommonPackage.EJB_LOCAL_REF__LOCAL: - return LOCAL_EDEFAULT == null ? local != null : !LOCAL_EDEFAULT.equals(local); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (localHome: "); - result.append(localHome); - result.append(", local: "); - result.append(local); - result.append(')'); - return result.toString(); - } - -/** - * Return true if the ejbref is for a local ejb interface. - */ -public boolean isLocal(){ - return true; -} - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.EJB_LOCAL_REF__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.EjbRef#getRemote() - */ - public String getRemote() { - return getLocal(); //forward to the local - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.EjbRef#setRemote(java.lang.String) - */ - public void setRemote(String value) { - setLocal(value); //forward to the local - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.EjbRef#getHome() - */ - public String getHome() { - return getLocalHome(); //forward to the local home - } - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.EjbRef#setHome(java.lang.String) - */ - public void setHome(String value) { - setLocalHome(value); //forward to the local home - } -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EjbRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EjbRefImpl.java deleted file mode 100644 index 10887d5cd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EjbRefImpl.java +++ /dev/null @@ -1,513 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.EjbRefType; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - -/** - * The ejb-ref element is used for the declaration of a reference to an enterprise bean's home. The declaration consists of an optional description; the EJB reference name used in the code of the referencing application client; the expected type of the referenced enterprise bean; the expected home and remote interfaces of the referenced enterprise bean; and an optional ejb-link information. The optional ejb-link element is used to specify the referenced enterprise bean. - */ -public class EjbRefImpl extends EObjectImpl implements EjbRef, EObject{ - - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String name = NAME_EDEFAULT; - /** - * The default value of the '{@link #getType() <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected static final EjbRefType TYPE_EDEFAULT = EjbRefType.SESSION_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EjbRefType type = TYPE_EDEFAULT; - /** - * This is true if the Type attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean typeESet = false; - - /** - * The default value of the '{@link #getHome() <em>Home</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHome() - * @generated - * @ordered - */ - protected static final String HOME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String home = HOME_EDEFAULT; - /** - * The default value of the '{@link #getRemote() <em>Remote</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRemote() - * @generated - * @ordered - */ - protected static final String REMOTE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String remote = REMOTE_EDEFAULT; - /** - * The default value of the '{@link #getLink() <em>Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLink() - * @generated - * @ordered - */ - protected static final String LINK_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String link = LINK_EDEFAULT; - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public EjbRefImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getEjbRef(); - } - -/** - * Return an enterprise bean referenced by the EjbRef, if one exists, within the scope of the parameter. - * The ejb-link value of the ref must equate to a named enterprise bean contained in the jar; otherwise - * return null - */ -public EnterpriseBean getLinkedEjb(EJBJar ejbJar) { - if (getLink() == null) { - return null; - } - return ejbJar.getEnterpiseBeanFromRef(this); -}/** - * Return an enterprise bean referenced by the EjbRef, if one exists, within the scope of the parameter. - * The ejb-link value of the ref must equate to a named enterprise bean contained in the jar; otherwise - * return null - */ -public boolean isEquivalent(EjbRef anEjbRef) { - if (anEjbRef == null) return false; - boolean equiv = true; - equiv = getName() == anEjbRef.getName() || (getName() != null && getName().equals(anEjbRef.getName())); - if (equiv) - equiv = getHome() == anEjbRef.getHome() || (getHome() != null && getHome().equals(anEjbRef.getHome())); - if (equiv) - equiv = getRemote() == anEjbRef.getRemote() || (getRemote() != null && getRemote().equals(anEjbRef.getRemote())); - if (equiv) - equiv = getLink() == anEjbRef.getLink() || (getLink() != null && getLink().equals(anEjbRef.getLink())); - return equiv; -} -public boolean isLinked(EnterpriseBean anEJB) { - if (getLink() == null) - return false; - return getLink().equals(anEJB.getName()); -} -/** - * Return true if the ejbref is for a local ejb interface. - */ -public boolean isLocal(){ - return false; -} - /** - * @generated This field/method will be replaced during code generation - * The ejb-ref-name element contains the name of an EJB reference. This is the JNDI name that the servlet code uses to get a reference to the enterprise bean. - * Example: <ejb-ref-name>ejb//Payroll<//ejb-ref-name> - */ - public String getName() { - return name; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__NAME, oldName, name)); - } - - /** - * @generated This field/method will be replaced during code generation - * The ejb-ref-type element contains the expected type of the referenced enterprise bean. The ejb-ref-type element must be one of the following: - * <ejb-ref-type>Entity<//ejb-ref-type> - * <ejb-ref-type>Session<//ejb-ref-type> - */ - public EjbRefType getType() { - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setType(EjbRefType newType) { - EjbRefType oldType = type; - type = newType == null ? TYPE_EDEFAULT : newType; - boolean oldTypeESet = typeESet; - typeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__TYPE, oldType, type, !oldTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetType() { - EjbRefType oldType = type; - boolean oldTypeESet = typeESet; - type = TYPE_EDEFAULT; - typeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CommonPackage.EJB_REF__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetType() { - return typeESet; - } - - /** - * @generated This field/method will be replaced during code generation - * The home element contains the fully-qualified name of the enterprise bean's home interface. - * Example: <home>com.aardvark.payroll.PayrollHome<//home> - */ - public String getHome() { - return home; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setHome(String newHome) { - String oldHome = home; - home = newHome; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__HOME, oldHome, home)); - } - - /** - * @generated This field/method will be replaced during code generation - * The remote element contains the fully-qualified name of the enterprise bean's remote interface. - */ - public String getRemote() { - return remote; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRemote(String newRemote) { - String oldRemote = remote; - remote = newRemote; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__REMOTE, oldRemote, remote)); - } - - /** - * @generated This field/method will be replaced during code generation - * The ejb-link element is used in the ejb-ref element to specify that an EJB reference is linked to an enterprise bean in the encompassing J2EE Application package. The value of the ejb-link element must be the ejb-name of an enterprise bean in the same J2EE Application package. - * Example: <ejb-link>EmployeeRecord<//ejb-link> - */ - public String getLink() { - return link; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLink(String newLink) { - String oldLink = link; - link = newLink; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__LINK, oldLink, link)); - } - - /** - * @generated This field/method will be replaced during code generation The - * description element is used by the ejb-jar file producer to - * provide text describing the parent element. The description - * element should include any information that the ejb-jar file - * producer wants to provide to the consumer of the ejb-jar file - * (i.e. to the Deployer). Typically, the tools used by the - * ejb-jar file consumer will display the description when - * processing the parent element. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (getDescriptions() != null && !getDescriptions().isEmpty()) { - Description d = (Description) getDescriptions().get(0); - if (d != null) - d.setValue(newDescription); - } - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__DESCRIPTION, oldDescription, description)); - } - - public String getDescription() { - if (getDescriptions() != null && !getDescriptions().isEmpty()) { - Description d = (Description) getDescriptions().get(0); - if (d != null) - description = d.getValue(); - } - return description; - } - - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.EJB_REF__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.EJB_REF__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.EJB_REF__NAME: - return getName(); - case CommonPackage.EJB_REF__TYPE: - return getType(); - case CommonPackage.EJB_REF__HOME: - return getHome(); - case CommonPackage.EJB_REF__REMOTE: - return getRemote(); - case CommonPackage.EJB_REF__LINK: - return getLink(); - case CommonPackage.EJB_REF__DESCRIPTION: - return getDescription(); - case CommonPackage.EJB_REF__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.EJB_REF__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case CommonPackage.EJB_REF__TYPE: - return isSetType(); - case CommonPackage.EJB_REF__HOME: - return HOME_EDEFAULT == null ? home != null : !HOME_EDEFAULT.equals(home); - case CommonPackage.EJB_REF__REMOTE: - return REMOTE_EDEFAULT == null ? remote != null : !REMOTE_EDEFAULT.equals(remote); - case CommonPackage.EJB_REF__LINK: - return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link); - case CommonPackage.EJB_REF__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.EJB_REF__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.EJB_REF__NAME: - setName((String)newValue); - return; - case CommonPackage.EJB_REF__TYPE: - setType((EjbRefType)newValue); - return; - case CommonPackage.EJB_REF__HOME: - setHome((String)newValue); - return; - case CommonPackage.EJB_REF__REMOTE: - setRemote((String)newValue); - return; - case CommonPackage.EJB_REF__LINK: - setLink((String)newValue); - return; - case CommonPackage.EJB_REF__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.EJB_REF__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.EJB_REF__NAME: - setName(NAME_EDEFAULT); - return; - case CommonPackage.EJB_REF__TYPE: - unsetType(); - return; - case CommonPackage.EJB_REF__HOME: - setHome(HOME_EDEFAULT); - return; - case CommonPackage.EJB_REF__REMOTE: - setRemote(REMOTE_EDEFAULT); - return; - case CommonPackage.EJB_REF__LINK: - setLink(LINK_EDEFAULT); - return; - case CommonPackage.EJB_REF__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.EJB_REF__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(", type: "); - if (typeESet) result.append(type); else result.append("<unset>"); - result.append(", home: "); - result.append(home); - result.append(", remote: "); - result.append(remote); - result.append(", link: "); - result.append(link); - result.append(", description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EnvEntryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EnvEntryImpl.java deleted file mode 100644 index 4119c4a9b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EnvEntryImpl.java +++ /dev/null @@ -1,371 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.EnvEntry; -import org.eclipse.jst.j2ee.common.EnvEntryType; - -/** - * The env-entry element contains the declaration of an application client's environment entries. The declaration consists of an optional description, the name of the environment entry, and an optional value. - */ -public class EnvEntryImpl extends EObjectImpl implements EnvEntry, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String name = NAME_EDEFAULT; - /** - * The default value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String value = VALUE_EDEFAULT; - /** - * The default value of the '{@link #getType() <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected static final EnvEntryType TYPE_EDEFAULT = EnvEntryType.STRING_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EnvEntryType type = TYPE_EDEFAULT; - /** - * This is true if the Type attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean typeESet = false; - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public EnvEntryImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getEnvEntry(); - } - - /** - * @generated This field/method will be replaced during code generation - * The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ENV_ENTRY__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - * The env-entry-name element contains the name of an application client's environment entry. - */ - public String getName() { - return name; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ENV_ENTRY__NAME, oldName, name)); - } - - /** - * @generated This field/method will be replaced during code generation - * The env-entry-value element contains the value of an application client's environment entry. The value must be a String that is valid for the constructor of the specified type that takes a single String parameter. - * Used in: env-entry - * Example: - * <env-entry-value>//datasources//MyDatabase<//env-entry-value> - */ - public String getValue() { - return value; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ENV_ENTRY__VALUE, oldValue, value)); - } - - /** - * @generated This field/method will be replaced during code generation - * The env-entry-type element contains the fully-qualified Java type of the environment entry value that is expected by the application client's code. The following are the legal values of env-entry-type: java.lang.Bool-ean, java.lang.String, java.lang.Integer, java.lang.Double, java.lang.Byte, java.lang.Short, java.lang.Long, and java.lang.Float. - * Example: <env-entry-type>java.lang.Boolean<//env-entry-type> - */ - public EnvEntryType getType() { - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setType(EnvEntryType newType) { - EnvEntryType oldType = type; - type = newType == null ? TYPE_EDEFAULT : newType; - boolean oldTypeESet = typeESet; - typeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ENV_ENTRY__TYPE, oldType, type, !oldTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetType() { - EnvEntryType oldType = type; - boolean oldTypeESet = typeESet; - type = TYPE_EDEFAULT; - typeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CommonPackage.ENV_ENTRY__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetType() { - return typeESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.ENV_ENTRY__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.ENV_ENTRY__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.ENV_ENTRY__DESCRIPTION: - return getDescription(); - case CommonPackage.ENV_ENTRY__NAME: - return getName(); - case CommonPackage.ENV_ENTRY__VALUE: - return getValue(); - case CommonPackage.ENV_ENTRY__TYPE: - return getType(); - case CommonPackage.ENV_ENTRY__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.ENV_ENTRY__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.ENV_ENTRY__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case CommonPackage.ENV_ENTRY__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - case CommonPackage.ENV_ENTRY__TYPE: - return isSetType(); - case CommonPackage.ENV_ENTRY__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.ENV_ENTRY__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.ENV_ENTRY__NAME: - setName((String)newValue); - return; - case CommonPackage.ENV_ENTRY__VALUE: - setValue((String)newValue); - return; - case CommonPackage.ENV_ENTRY__TYPE: - setType((EnvEntryType)newValue); - return; - case CommonPackage.ENV_ENTRY__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.ENV_ENTRY__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.ENV_ENTRY__NAME: - setName(NAME_EDEFAULT); - return; - case CommonPackage.ENV_ENTRY__VALUE: - setValue(VALUE_EDEFAULT); - return; - case CommonPackage.ENV_ENTRY__TYPE: - unsetType(); - return; - case CommonPackage.ENV_ENTRY__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", name: "); - result.append(name); - result.append(", value: "); - result.append(value); - result.append(", type: "); - if (typeESet) result.append(type); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IconTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IconTypeImpl.java deleted file mode 100644 index dee539e87..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IconTypeImpl.java +++ /dev/null @@ -1,272 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.IconType; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Icon Type</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.IconTypeImpl#getSmallIcon <em>Small Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.IconTypeImpl#getLargeIcon <em>Large Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.IconTypeImpl#getLang <em>Lang</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class IconTypeImpl extends EObjectImpl implements IconType { - /** - * The default value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSmallIcon() - * @generated - * @ordered - */ - protected static final String SMALL_ICON_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSmallIcon() - * @generated - * @ordered - */ - protected String smallIcon = SMALL_ICON_EDEFAULT; - - /** - * The default value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLargeIcon() - * @generated - * @ordered - */ - protected static final String LARGE_ICON_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLargeIcon() - * @generated - * @ordered - */ - protected String largeIcon = LARGE_ICON_EDEFAULT; - - /** - * The default value of the '{@link #getLang() <em>Lang</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLang() - * @generated - * @ordered - */ - protected static final String LANG_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLang() - * @generated - * @ordered - */ - protected String lang = LANG_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected IconTypeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getIconType(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getSmallIcon() { - return smallIcon; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSmallIcon(String newSmallIcon) { - String oldSmallIcon = smallIcon; - smallIcon = newSmallIcon; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ICON_TYPE__SMALL_ICON, oldSmallIcon, smallIcon)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLargeIcon() { - return largeIcon; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLargeIcon(String newLargeIcon) { - String oldLargeIcon = largeIcon; - largeIcon = newLargeIcon; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ICON_TYPE__LARGE_ICON, oldLargeIcon, largeIcon)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLang() { - return lang; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLang(String newLang) { - String oldLang = lang; - lang = newLang; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ICON_TYPE__LANG, oldLang, lang)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.ICON_TYPE__SMALL_ICON: - return getSmallIcon(); - case CommonPackage.ICON_TYPE__LARGE_ICON: - return getLargeIcon(); - case CommonPackage.ICON_TYPE__LANG: - return getLang(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.ICON_TYPE__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case CommonPackage.ICON_TYPE__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case CommonPackage.ICON_TYPE__LANG: - setLang((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.ICON_TYPE__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case CommonPackage.ICON_TYPE__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case CommonPackage.ICON_TYPE__LANG: - setLang(LANG_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.ICON_TYPE__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case CommonPackage.ICON_TYPE__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case CommonPackage.ICON_TYPE__LANG: - return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (smallIcon: "); - result.append(smallIcon); - result.append(", largeIcon: "); - result.append(largeIcon); - result.append(", lang: "); - result.append(lang); - result.append(')'); - return result.toString(); - } - -} //IconTypeImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IdentityImpl.java deleted file mode 100644 index 5bc4ccaac..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IdentityImpl.java +++ /dev/null @@ -1,248 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.Identity; - - -/** - * Specifies the run-as identity to be used for the execution of the methods of an enterprise bean. It contains an optional description, and the name of a security role. - - */ -public class IdentityImpl extends EObjectImpl implements Identity, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getRoleName() <em>Role Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRoleName() - * @generated - * @ordered - */ - protected static final String ROLE_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String roleName = ROLE_NAME_EDEFAULT; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public IdentityImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getIdentity(); - } - - /** - * @generated This field/method will be replaced during code generation - * The description is used by the ejb-jar file producer to provide text describing the run as identity. - * - * The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.IDENTITY__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - * The role-name element contains the name of a security role. - * - * The name must conform to the lexical rules for an NMTOKEN. - */ - public String getRoleName() { - return roleName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRoleName(String newRoleName) { - String oldRoleName = roleName; - roleName = newRoleName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.IDENTITY__ROLE_NAME, oldRoleName, roleName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.IDENTITY__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.IDENTITY__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.IDENTITY__DESCRIPTION: - return getDescription(); - case CommonPackage.IDENTITY__ROLE_NAME: - return getRoleName(); - case CommonPackage.IDENTITY__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.IDENTITY__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.IDENTITY__ROLE_NAME: - return ROLE_NAME_EDEFAULT == null ? roleName != null : !ROLE_NAME_EDEFAULT.equals(roleName); - case CommonPackage.IDENTITY__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.IDENTITY__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.IDENTITY__ROLE_NAME: - setRoleName((String)newValue); - return; - case CommonPackage.IDENTITY__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.IDENTITY__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.IDENTITY__ROLE_NAME: - setRoleName(ROLE_NAME_EDEFAULT); - return; - case CommonPackage.IDENTITY__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", roleName: "); - result.append(roleName); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResouceFactorySaxRegistry.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResouceFactorySaxRegistry.java deleted file mode 100644 index 4210a55fd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResouceFactorySaxRegistry.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 11, 2004 - * - * To change the template for this generated file go to - * Window - Preferences - Java - Code Generation - Code and Comments - */ -package org.eclipse.jst.j2ee.common.internal.impl; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationResourceFactory; -import org.eclipse.jst.j2ee.client.internal.impl.ApplicationClientResourceFactory; -import org.eclipse.jst.j2ee.ejb.internal.impl.EJBJarResourceFactory; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.jca.internal.impl.ConnectorResourceFactory; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppResourceFactory; -import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants; -import org.eclipse.jst.j2ee.webservice.internal.wsdd.WsddResourceFactory; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.WebServicesClientResourceFactory; -import org.eclipse.wst.common.internal.emf.resource.EMF2SAXRendererFactory; - -/** - * @author jsholl - * - * To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code - * and Comments - */ -public class J2EEResouceFactorySaxRegistry extends J2EEResourceFactoryRegistry { - public static J2EEResourceFactoryRegistry INSTANCE = new J2EEResouceFactorySaxRegistry(); - - public J2EEResouceFactorySaxRegistry() { - super(); - initRegistration(); - } - private void initRegistration() { - EMF2SAXRendererFactory.INSTANCE.setValidating(false); - registerLastFileSegment(J2EEConstants.EJBJAR_DD_SHORT_NAME, new EJBJarResourceFactory(EMF2SAXRendererFactory.INSTANCE)); - registerLastFileSegment(J2EEConstants.WEBAPP_DD_SHORT_NAME, new WebAppResourceFactory(EMF2SAXRendererFactory.INSTANCE)); - registerLastFileSegment(J2EEConstants.APP_CLIENT_DD_SHORT_NAME, new ApplicationClientResourceFactory(EMF2SAXRendererFactory.INSTANCE)); - registerLastFileSegment(J2EEConstants.APPLICATION_DD_SHORT_NAME, new ApplicationResourceFactory(EMF2SAXRendererFactory.INSTANCE)); - registerLastFileSegment(J2EEConstants.RAR_SHORT_NAME, new ConnectorResourceFactory(EMF2SAXRendererFactory.INSTANCE)); - registerLastFileSegment(J2EEConstants.WEB_SERVICES_CLIENT_SHORTNAME, new WebServicesClientResourceFactory(EMF2SAXRendererFactory.INSTANCE)); - registerLastFileSegment(WebServiceConstants.WEBSERVICE_DD_SHORT_NAME, new WsddResourceFactory(EMF2SAXRendererFactory.INSTANCE)); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryDomRegistry.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryDomRegistry.java deleted file mode 100644 index 8eb5915a1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryDomRegistry.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on May 20, 2004 - * - * TODO To change the template for this generated file go to - * Window - Preferences - Java - Code Generation - Code and Comments - */ -package org.eclipse.jst.j2ee.common.internal.impl; - -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationResourceFactory; -import org.eclipse.jst.j2ee.client.internal.impl.ApplicationClientResourceFactory; -import org.eclipse.jst.j2ee.ejb.internal.impl.EJBJarResourceFactory; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.jca.internal.impl.ConnectorResourceFactory; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppResourceFactory; -import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants; -import org.eclipse.jst.j2ee.webservice.internal.wsdd.WsddResourceFactory; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.WebServicesClientResourceFactory; -import org.eclipse.wst.common.internal.emf.resource.EMF2DOMRendererFactory; -import org.eclipse.wst.common.internal.emf.resource.EMF2SAXRendererFactory; - - - -/** - * @author mdelder - * - * TODO To change the template for this generated type comment go to - * Window - Preferences - Java - Code Generation - Code and Comments - */ -public class J2EEResourceFactoryDomRegistry - extends J2EEResourceFactoryRegistry { - - /** - * - */ - public J2EEResourceFactoryDomRegistry() { - super(); - initRegistration(); - } - - private void initRegistration() { - EMF2SAXRendererFactory.INSTANCE.setValidating(false); - registerLastFileSegment(J2EEConstants.EJBJAR_DD_SHORT_NAME, new EJBJarResourceFactory(EMF2DOMRendererFactory.INSTANCE)); - registerLastFileSegment(J2EEConstants.WEBAPP_DD_SHORT_NAME, new WebAppResourceFactory(EMF2DOMRendererFactory.INSTANCE)); - registerLastFileSegment(J2EEConstants.APP_CLIENT_DD_SHORT_NAME, new ApplicationClientResourceFactory(EMF2DOMRendererFactory.INSTANCE)); - registerLastFileSegment(J2EEConstants.APPLICATION_DD_SHORT_NAME, new ApplicationResourceFactory(EMF2DOMRendererFactory.INSTANCE)); - registerLastFileSegment(J2EEConstants.RAR_SHORT_NAME, new ConnectorResourceFactory(EMF2DOMRendererFactory.INSTANCE)); - registerLastFileSegment(J2EEConstants.WEB_SERVICES_CLIENT_SHORTNAME, new WebServicesClientResourceFactory(EMF2DOMRendererFactory.INSTANCE)); - registerLastFileSegment(WebServiceConstants.WEBSERVICE_DD_SHORT_NAME, new WsddResourceFactory(EMF2DOMRendererFactory.INSTANCE)); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryRegistry.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryRegistry.java deleted file mode 100644 index 3229aba6e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryRegistry.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry; - - -public class J2EEResourceFactoryRegistry extends FileNameResourceFactoryRegistry { - - public static J2EEResourceFactoryRegistry INSTANCE = new J2EEResourceFactoryRegistry(); - - public J2EEResourceFactoryRegistry() { - super(); - } - - public Resource.Factory delegatedGetFactory(URI uri) { - if (J2EEResourceFactoryRegistry.INSTANCE == this) - return super.delegatedGetFactory(uri); - return J2EEResourceFactoryRegistry.INSTANCE.getFactory(uri); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/JNDIEnvRefsGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/JNDIEnvRefsGroupImpl.java deleted file mode 100644 index c1019dcf8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/JNDIEnvRefsGroupImpl.java +++ /dev/null @@ -1,454 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.EJBLocalRef; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.EnvEntry; -import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup; -import org.eclipse.jst.j2ee.common.MessageDestinationRef; -import org.eclipse.jst.j2ee.common.ResourceEnvRef; -import org.eclipse.jst.j2ee.common.ResourceRef; -import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>JNDI Env Refs Group</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getEnvironmentProperties <em>Environment Properties</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getResourceRefs <em>Resource Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getEjbRefs <em>Ejb Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getResourceEnvRefs <em>Resource Env Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getEjbLocalRefs <em>Ejb Local Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getMessageDestinationRefs <em>Message Destination Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getServiceRefs <em>Service Refs</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public abstract class JNDIEnvRefsGroupImpl extends CompatibilityDescriptionGroupImpl implements JNDIEnvRefsGroup { - /** - * The cached value of the '{@link #getEnvironmentProperties() <em>Environment Properties</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEnvironmentProperties() - * @generated - * @ordered - */ - protected EList environmentProperties = null; - - /** - * The cached value of the '{@link #getResourceRefs() <em>Resource Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getResourceRefs() - * @generated - * @ordered - */ - protected EList resourceRefs = null; - - /** - * The cached value of the '{@link #getEjbRefs() <em>Ejb Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEjbRefs() - * @generated - * @ordered - */ - protected EList ejbRefs = null; - - /** - * The cached value of the '{@link #getResourceEnvRefs() <em>Resource Env Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getResourceEnvRefs() - * @generated - * @ordered - */ - protected EList resourceEnvRefs = null; - - /** - * The cached value of the '{@link #getEjbLocalRefs() <em>Ejb Local Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEjbLocalRefs() - * @generated - * @ordered - */ - protected EList ejbLocalRefs = null; - - /** - * The cached value of the '{@link #getMessageDestinationRefs() <em>Message Destination Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageDestinationRefs() - * @generated - * @ordered - */ - protected EList messageDestinationRefs = null; - - /** - * The cached value of the '{@link #getServiceRefs() <em>Service Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceRefs() - * @generated - * @ordered - */ - protected EList serviceRefs = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected JNDIEnvRefsGroupImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getJNDIEnvRefsGroup(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getEnvironmentProperties() { - if (environmentProperties == null) { - environmentProperties = new EObjectContainmentEList(EnvEntry.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES); - } - return environmentProperties; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getResourceRefs() { - if (resourceRefs == null) { - resourceRefs = new EObjectContainmentEList(ResourceRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS); - } - return resourceRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getEjbRefs() { - if (ejbRefs == null) { - ejbRefs = new EObjectContainmentEList(EjbRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS); - } - return ejbRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getResourceEnvRefs() { - if (resourceEnvRefs == null) { - resourceEnvRefs = new EObjectContainmentEList(ResourceEnvRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS); - } - return resourceEnvRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getEjbLocalRefs() { - if (ejbLocalRefs == null) { - ejbLocalRefs = new EObjectContainmentEList(EJBLocalRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS); - } - return ejbLocalRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getMessageDestinationRefs() { - if (messageDestinationRefs == null) { - messageDestinationRefs = new EObjectContainmentEList(MessageDestinationRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS); - } - return messageDestinationRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getServiceRefs() { - if (serviceRefs == null) { - serviceRefs = new EObjectContainmentEList(ServiceRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS); - } - return serviceRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.JNDI_ENV_REFS_GROUP__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES: - return ((InternalEList)getEnvironmentProperties()).basicRemove(otherEnd, msgs); - case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS: - return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs); - case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS: - return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs); - case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS: - return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs); - case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS: - return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs); - case CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS: - return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs); - case CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.JNDI_ENV_REFS_GROUP__ICONS: - return getIcons(); - case CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAMES: - return getDisplayNames(); - case CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTIONS: - return getDescriptions(); - case CommonPackage.JNDI_ENV_REFS_GROUP__SMALL_ICON: - return getSmallIcon(); - case CommonPackage.JNDI_ENV_REFS_GROUP__LARGE_ICON: - return getLargeIcon(); - case CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTION: - return getDescription(); - case CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAME: - return getDisplayName(); - case CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES: - return getEnvironmentProperties(); - case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS: - return getResourceRefs(); - case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS: - return getEjbRefs(); - case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS: - return getResourceEnvRefs(); - case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS: - return getEjbLocalRefs(); - case CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS: - return getMessageDestinationRefs(); - case CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS: - return getServiceRefs(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.JNDI_ENV_REFS_GROUP__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - getEnvironmentProperties().addAll((Collection)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS: - getResourceRefs().clear(); - getResourceRefs().addAll((Collection)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS: - getEjbRefs().clear(); - getEjbRefs().addAll((Collection)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - getResourceEnvRefs().addAll((Collection)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - getEjbLocalRefs().addAll((Collection)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - getMessageDestinationRefs().addAll((Collection)newValue); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.JNDI_ENV_REFS_GROUP__ICONS: - getIcons().clear(); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTIONS: - getDescriptions().clear(); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS: - getResourceRefs().clear(); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS: - getEjbRefs().clear(); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - return; - case CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS: - getServiceRefs().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.JNDI_ENV_REFS_GROUP__ICONS: - return icons != null && !icons.isEmpty(); - case CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case CommonPackage.JNDI_ENV_REFS_GROUP__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case CommonPackage.JNDI_ENV_REFS_GROUP__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES: - return environmentProperties != null && !environmentProperties.isEmpty(); - case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS: - return resourceRefs != null && !resourceRefs.isEmpty(); - case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS: - return ejbRefs != null && !ejbRefs.isEmpty(); - case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS: - return resourceEnvRefs != null && !resourceEnvRefs.isEmpty(); - case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS: - return ejbLocalRefs != null && !ejbLocalRefs.isEmpty(); - case CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS: - return messageDestinationRefs != null && !messageDestinationRefs.isEmpty(); - case CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS: - return serviceRefs != null && !serviceRefs.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - -} //JNDIEnvRefsGroupImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ListenerImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ListenerImpl.java deleted file mode 100644 index 8c55bf626..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ListenerImpl.java +++ /dev/null @@ -1,267 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Listener; - - -/** - * Declares a class in the application must be registered as a web application listener bean. - */ -public class ListenerImpl extends CompatibilityDescriptionGroupImpl implements Listener { - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass listenerClass = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected ListenerImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getListener(); - } - - /** - * @generated This field/method will be replaced during code generation - * The listener-class element declares a class in the application must be registered as a web application listener bean. - */ - public JavaClass getListenerClass() { - if (listenerClass != null && listenerClass.eIsProxy()) { - JavaClass oldListenerClass = listenerClass; - listenerClass = (JavaClass)eResolveProxy((InternalEObject)listenerClass); - if (listenerClass != oldListenerClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonPackage.LISTENER__LISTENER_CLASS, oldListenerClass, listenerClass)); - } - } - return listenerClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetListenerClass() { - return listenerClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setListenerClass(JavaClass newListenerClass) { - JavaClass oldListenerClass = listenerClass; - listenerClass = newListenerClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.LISTENER__LISTENER_CLASS, oldListenerClass, listenerClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.LISTENER__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case CommonPackage.LISTENER__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case CommonPackage.LISTENER__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.LISTENER__ICONS: - return getIcons(); - case CommonPackage.LISTENER__DISPLAY_NAMES: - return getDisplayNames(); - case CommonPackage.LISTENER__DESCRIPTIONS: - return getDescriptions(); - case CommonPackage.LISTENER__SMALL_ICON: - return getSmallIcon(); - case CommonPackage.LISTENER__LARGE_ICON: - return getLargeIcon(); - case CommonPackage.LISTENER__DESCRIPTION: - return getDescription(); - case CommonPackage.LISTENER__DISPLAY_NAME: - return getDisplayName(); - case CommonPackage.LISTENER__LISTENER_CLASS: - if (resolve) return getListenerClass(); - return basicGetListenerClass(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.LISTENER__ICONS: - return icons != null && !icons.isEmpty(); - case CommonPackage.LISTENER__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case CommonPackage.LISTENER__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case CommonPackage.LISTENER__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case CommonPackage.LISTENER__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case CommonPackage.LISTENER__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.LISTENER__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case CommonPackage.LISTENER__LISTENER_CLASS: - return listenerClass != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.LISTENER__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case CommonPackage.LISTENER__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case CommonPackage.LISTENER__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case CommonPackage.LISTENER__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case CommonPackage.LISTENER__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case CommonPackage.LISTENER__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.LISTENER__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case CommonPackage.LISTENER__LISTENER_CLASS: - setListenerClass((JavaClass)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.LISTENER__ICONS: - getIcons().clear(); - return; - case CommonPackage.LISTENER__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case CommonPackage.LISTENER__DESCRIPTIONS: - getDescriptions().clear(); - return; - case CommonPackage.LISTENER__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case CommonPackage.LISTENER__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case CommonPackage.LISTENER__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.LISTENER__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case CommonPackage.LISTENER__LISTENER_CLASS: - setListenerClass((JavaClass)null); - return; - } - eDynamicUnset(eFeature); - } - -/** - * createClassRef - return a JavaURL reference to the named Java class - */ -public JavaClass createClassRef(String targetName) { - return JavaRefFactory.eINSTANCE.createClassRef(targetName); -} -/** - * Get the fully qualified class name for the listener. - */ -public String getListenerClassName() { - getListenerClass(); - return (listenerClass == null) ? null : listenerClass.getQualifiedName(); -} -/** - * Sets the listener class name. - */ -public void setListenerClassName(String listenerClassName) { - eSet(CommonPackage.eINSTANCE.getListener_ListenerClass(), createClassRef(listenerClassName)); -} -} //ListenerImpl - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationImpl.java deleted file mode 100644 index 8060831c5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationImpl.java +++ /dev/null @@ -1,262 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.MessageDestination; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Message Destination</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MessageDestinationImpl extends CompatibilityDescriptionGroupImpl implements MessageDestination { - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MessageDestinationImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getMessageDestination(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.MESSAGE_DESTINATION__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case CommonPackage.MESSAGE_DESTINATION__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case CommonPackage.MESSAGE_DESTINATION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.MESSAGE_DESTINATION__ICONS: - return getIcons(); - case CommonPackage.MESSAGE_DESTINATION__DISPLAY_NAMES: - return getDisplayNames(); - case CommonPackage.MESSAGE_DESTINATION__DESCRIPTIONS: - return getDescriptions(); - case CommonPackage.MESSAGE_DESTINATION__SMALL_ICON: - return getSmallIcon(); - case CommonPackage.MESSAGE_DESTINATION__LARGE_ICON: - return getLargeIcon(); - case CommonPackage.MESSAGE_DESTINATION__DESCRIPTION: - return getDescription(); - case CommonPackage.MESSAGE_DESTINATION__DISPLAY_NAME: - return getDisplayName(); - case CommonPackage.MESSAGE_DESTINATION__NAME: - return getName(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.MESSAGE_DESTINATION__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION__NAME: - setName((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.MESSAGE_DESTINATION__ICONS: - getIcons().clear(); - return; - case CommonPackage.MESSAGE_DESTINATION__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case CommonPackage.MESSAGE_DESTINATION__DESCRIPTIONS: - getDescriptions().clear(); - return; - case CommonPackage.MESSAGE_DESTINATION__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case CommonPackage.MESSAGE_DESTINATION__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case CommonPackage.MESSAGE_DESTINATION__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.MESSAGE_DESTINATION__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case CommonPackage.MESSAGE_DESTINATION__NAME: - setName(NAME_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.MESSAGE_DESTINATION__ICONS: - return icons != null && !icons.isEmpty(); - case CommonPackage.MESSAGE_DESTINATION__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case CommonPackage.MESSAGE_DESTINATION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case CommonPackage.MESSAGE_DESTINATION__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case CommonPackage.MESSAGE_DESTINATION__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case CommonPackage.MESSAGE_DESTINATION__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.MESSAGE_DESTINATION__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case CommonPackage.MESSAGE_DESTINATION__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //MessageDestinationImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationRefImpl.java deleted file mode 100644 index ff60b5b76..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationRefImpl.java +++ /dev/null @@ -1,411 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.MessageDestinationRef; -import org.eclipse.jst.j2ee.common.MessageDestinationUsageType; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Message Destination Ref</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl#getType <em>Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl#getUsage <em>Usage</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl#getLink <em>Link</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl#getDescriptions <em>Descriptions</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MessageDestinationRefImpl extends EObjectImpl implements MessageDestinationRef { - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getType() <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected static final String TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getType() <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected String type = TYPE_EDEFAULT; - - /** - * The default value of the '{@link #getUsage() <em>Usage</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUsage() - * @generated - * @ordered - */ - protected static final MessageDestinationUsageType USAGE_EDEFAULT = MessageDestinationUsageType.CONSUMES_LITERAL; - - /** - * The cached value of the '{@link #getUsage() <em>Usage</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUsage() - * @generated - * @ordered - */ - protected MessageDestinationUsageType usage = USAGE_EDEFAULT; - /** - * This is true if the Auth attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @ordered - */ - protected boolean useESet = false; - /** - * The default value of the '{@link #getLink() <em>Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLink() - * @generated - * @ordered - */ - protected static final String LINK_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLink() <em>Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLink() - * @generated - * @ordered - */ - protected String link = LINK_EDEFAULT; - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MessageDestinationRefImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getMessageDestinationRef(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION_REF__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getType() { - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setType(String newType) { - String oldType = type; - type = newType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION_REF__TYPE, oldType, type)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MessageDestinationUsageType getUsage() { - return usage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setUsage(MessageDestinationUsageType newUsage) { - MessageDestinationUsageType oldUsage = usage; - usage = newUsage == null ? USAGE_EDEFAULT : newUsage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION_REF__USAGE, oldUsage, usage)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - */ - public void unsetUsage() { - MessageDestinationUsageType oldUsage = usage; - boolean oldUsageESet = useESet; - usage = USAGE_EDEFAULT; - useESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CommonPackage.MESSAGE_DESTINATION_REF__USAGE, oldUsage, USAGE_EDEFAULT, oldUsageESet)); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - */ - public boolean isSetUse() { - return useESet; - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLink() { - return link; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLink(String newLink) { - String oldLink = link; - link = newLink; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION_REF__LINK, oldLink, link)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.MESSAGE_DESTINATION_REF__NAME: - return getName(); - case CommonPackage.MESSAGE_DESTINATION_REF__TYPE: - return getType(); - case CommonPackage.MESSAGE_DESTINATION_REF__USAGE: - return getUsage(); - case CommonPackage.MESSAGE_DESTINATION_REF__LINK: - return getLink(); - case CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.MESSAGE_DESTINATION_REF__NAME: - setName((String)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION_REF__TYPE: - setType((String)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION_REF__USAGE: - setUsage((MessageDestinationUsageType)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION_REF__LINK: - setLink((String)newValue); - return; - case CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.MESSAGE_DESTINATION_REF__NAME: - setName(NAME_EDEFAULT); - return; - case CommonPackage.MESSAGE_DESTINATION_REF__TYPE: - setType(TYPE_EDEFAULT); - return; - case CommonPackage.MESSAGE_DESTINATION_REF__USAGE: - setUsage(USAGE_EDEFAULT); - return; - case CommonPackage.MESSAGE_DESTINATION_REF__LINK: - setLink(LINK_EDEFAULT); - return; - case CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.MESSAGE_DESTINATION_REF__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case CommonPackage.MESSAGE_DESTINATION_REF__TYPE: - return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); - case CommonPackage.MESSAGE_DESTINATION_REF__USAGE: - return usage != USAGE_EDEFAULT; - case CommonPackage.MESSAGE_DESTINATION_REF__LINK: - return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link); - case CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(", type: "); - result.append(type); - result.append(", usage: "); - result.append(usage); - result.append(", link: "); - result.append(link); - result.append(')'); - return result.toString(); - } - -} //MessageDestinationRefImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ParamValueImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ParamValueImpl.java deleted file mode 100644 index 00cf3fe05..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ParamValueImpl.java +++ /dev/null @@ -1,331 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.ParamValue; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Param Value</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.ParamValueImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.ParamValueImpl#getValue <em>Value</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.ParamValueImpl#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.ParamValueImpl#getDescriptions <em>Descriptions</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ParamValueImpl extends EObjectImpl implements ParamValue { - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ParamValueImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getParamValue(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.PARAM_VALUE__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getValue() { - return value; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.PARAM_VALUE__VALUE, oldValue, value)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getDescription() { - return description; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.PARAM_VALUE__DESCRIPTION, oldDescription, description)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.PARAM_VALUE__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.PARAM_VALUE__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.PARAM_VALUE__NAME: - return getName(); - case CommonPackage.PARAM_VALUE__VALUE: - return getValue(); - case CommonPackage.PARAM_VALUE__DESCRIPTION: - return getDescription(); - case CommonPackage.PARAM_VALUE__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.PARAM_VALUE__NAME: - setName((String)newValue); - return; - case CommonPackage.PARAM_VALUE__VALUE: - setValue((String)newValue); - return; - case CommonPackage.PARAM_VALUE__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.PARAM_VALUE__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.PARAM_VALUE__NAME: - setName(NAME_EDEFAULT); - return; - case CommonPackage.PARAM_VALUE__VALUE: - setValue(VALUE_EDEFAULT); - return; - case CommonPackage.PARAM_VALUE__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.PARAM_VALUE__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.PARAM_VALUE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case CommonPackage.PARAM_VALUE__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - case CommonPackage.PARAM_VALUE__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.PARAM_VALUE__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(", value: "); - result.append(value); - result.append(", description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} //ParamValueImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/QNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/QNameImpl.java deleted file mode 100644 index 6df729c00..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/QNameImpl.java +++ /dev/null @@ -1,416 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.wst.common.internal.emf.utilities.NamespaceAdapter; -import org.eclipse.wst.common.internal.emf.utilities.StringUtil; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>QName</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.QNameImpl#getNamespaceURI <em>Namespace URI</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.QNameImpl#getLocalPart <em>Local Part</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.QNameImpl#getCombinedQName <em>Combined QName</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.QNameImpl#getInternalPrefixOrNsURI <em>Internal Prefix Or Ns URI</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class QNameImpl extends EObjectImpl implements QName { - /** - * The default value of the '{@link #getNamespaceURI() <em>Namespace URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getNamespaceURI() - * @generated - * @ordered - */ - protected static final String NAMESPACE_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNamespaceURI() <em>Namespace URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getNamespaceURI() - * @generated - * @ordered - */ - protected String namespaceURI = NAMESPACE_URI_EDEFAULT; - - /** - * The default value of the '{@link #getLocalPart() <em>Local Part</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocalPart() - * @generated - * @ordered - */ - protected static final String LOCAL_PART_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLocalPart() <em>Local Part</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocalPart() - * @generated - * @ordered - */ - protected String localPart = LOCAL_PART_EDEFAULT; - - /** - * The default value of the '{@link #getCombinedQName() <em>Combined QName</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCombinedQName() - * @generated - * @ordered - */ - protected static final String COMBINED_QNAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getCombinedQName() <em>Combined QName</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCombinedQName() - * @generated - * @ordered - */ - protected String combinedQName = COMBINED_QNAME_EDEFAULT; - - /** - * The default value of the '{@link #getInternalPrefixOrNsURI() <em>Internal Prefix Or Ns URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInternalPrefixOrNsURI() - * @generated - * @ordered - */ - protected static final String INTERNAL_PREFIX_OR_NS_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getInternalPrefixOrNsURI() <em>Internal Prefix Or Ns URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInternalPrefixOrNsURI() - * @generated - * @ordered - */ - protected String internalPrefixOrNsURI = INTERNAL_PREFIX_OR_NS_URI_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected QNameImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getQName(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getNamespaceURIGen() { - return namespaceURI; - } - - public String getNamespaceURI() { - if (namespaceURI != null) - return namespaceURI; - String resolved = NamespaceAdapter.getResolvedNamespaceURI(internalPrefixOrNsURI, this); - return resolved == null ? internalPrefixOrNsURI : resolved; - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setNamespaceURIGen(String newNamespaceURI) { - String oldNamespaceURI = namespaceURI; - namespaceURI = newNamespaceURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.QNAME__NAMESPACE_URI, oldNamespaceURI, namespaceURI)); - } - - public void setNamespaceURI(String newNamespaceURI) { - String prefix = getInternalPrefixOrNsURI(); - String oldNsURI = getInternalPrefixOrNsURI(); - if (!StringUtil.stringsEqual(prefix, oldNsURI)) - setValues(prefix, newNamespaceURI, getLocalPart()); - else { - setNamespaceURIGen(newNamespaceURI); - setInternalPrefixOrNsURI(newNamespaceURI); - } - - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLocalPart() { - return localPart; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLocalPartGen(String newLocalPart) { - String oldLocalPart = localPart; - localPart = newLocalPart; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.QNAME__LOCAL_PART, oldLocalPart, localPart)); - } - - public void setLocalPart(String newLocalPart) { - setLocalPartGen(newLocalPart); - updateCombine(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getCombinedQName() { - return combinedQName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setCombinedQNameGen(String newCombinedQName) { - String oldCombinedQName = combinedQName; - combinedQName = newCombinedQName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.QNAME__COMBINED_QNAME, oldCombinedQName, combinedQName)); - } - - public void setCombinedQName(String newCombinedQName) { - setCombinedQNameGen(newCombinedQName); - updateParse(); - } - - /** - * Parses the combined name into the components - */ - private void updateParse() { - String ns = null; - String lp = null; - if (combinedQName != null || combinedQName.length() > 0) { - int index = combinedQName.lastIndexOf(':'); - - if (index < 0) { //No separator - ns = combinedQName; - } else if (index == 0) { //First char - lp = combinedQName.substring(1); - } else if (index == combinedQName.length()-1) { //Last char - ns = combinedQName.substring(0, index); - } else { //In the middle, which is what it should be - ns = combinedQName.substring(0, index); - lp = combinedQName.substring(index+1, combinedQName.length()); - } - } - setInternalPrefixOrNsURIGen(ns); - setLocalPartGen(lp); - } - - /** - * updates the combined name from the components - */ - private void updateCombine() { - String cn = null; - if (internalPrefixOrNsURI != null || localPart != null) { - String ns = internalPrefixOrNsURI == null ? "" : internalPrefixOrNsURI; //$NON-NLS-1$ - String lp = localPart == null ? "" : localPart; //$NON-NLS-1$ - cn = ns+':'+lp; - } - setCombinedQNameGen(cn); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getInternalPrefixOrNsURI() { - return internalPrefixOrNsURI; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setInternalPrefixOrNsURIGen(String newInternalPrefixOrNsURI) { - String oldInternalPrefixOrNsURI = internalPrefixOrNsURI; - internalPrefixOrNsURI = newInternalPrefixOrNsURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI, oldInternalPrefixOrNsURI, internalPrefixOrNsURI)); - } - - public void setInternalPrefixOrNsURI(String newInternalPrefixOrNsURI) { - setInternalPrefixOrNsURIGen(newInternalPrefixOrNsURI); - updateCombine(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.QNAME__NAMESPACE_URI: - return getNamespaceURI(); - case CommonPackage.QNAME__LOCAL_PART: - return getLocalPart(); - case CommonPackage.QNAME__COMBINED_QNAME: - return getCombinedQName(); - case CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI: - return getInternalPrefixOrNsURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.QNAME__NAMESPACE_URI: - setNamespaceURI((String)newValue); - return; - case CommonPackage.QNAME__LOCAL_PART: - setLocalPart((String)newValue); - return; - case CommonPackage.QNAME__COMBINED_QNAME: - setCombinedQName((String)newValue); - return; - case CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.QNAME__NAMESPACE_URI: - setNamespaceURI(NAMESPACE_URI_EDEFAULT); - return; - case CommonPackage.QNAME__LOCAL_PART: - setLocalPart(LOCAL_PART_EDEFAULT); - return; - case CommonPackage.QNAME__COMBINED_QNAME: - setCombinedQName(COMBINED_QNAME_EDEFAULT); - return; - case CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI(INTERNAL_PREFIX_OR_NS_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * eIsSet for namespace uri must be derived if null so namespaceURI ! = null and internalPrefixOrNsURI != null must both be check. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.QNAME__NAMESPACE_URI: - return NAMESPACE_URI_EDEFAULT == null ? (namespaceURI != null || internalPrefixOrNsURI != null) : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI); - case CommonPackage.QNAME__LOCAL_PART: - return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart); - case CommonPackage.QNAME__COMBINED_QNAME: - return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName); - case CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI: - return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (namespaceURI: "); - result.append(namespaceURI); - result.append(", localPart: "); - result.append(localPart); - result.append(", combinedQName: "); - result.append(combinedQName); - result.append(", internalPrefixOrNsURI: "); - result.append(internalPrefixOrNsURI); - result.append(')'); - return result.toString(); - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.QName#setValues(java.lang.String, java.lang.String, java.lang.String) - */ - public void setValues(String prefix, String nsURI, String localPart) { - setInternalPrefixOrNsURIGen(prefix); - setLocalPartGen(localPart); - String existingURI = NamespaceAdapter.getNamespaceURIAtThisLevel(prefix, this); - boolean removed = false; - if (existingURI != null && !existingURI.equals(nsURI)) { - NamespaceAdapter.removeNamespace(prefix, this); - removed = true; - } - if (existingURI == null || removed) - NamespaceAdapter.addNamespace(prefix, nsURI, this); - updateCombine(); - } - - -} //QNameImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceEnvRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceEnvRefImpl.java deleted file mode 100644 index c17ae90ef..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceEnvRefImpl.java +++ /dev/null @@ -1,323 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.ResourceEnvRef; - -/** - * The resource-env-ref element contains a declaration of an enterprise bean's reference to an administered object associated with a resource in the enterprise bean's environment. It consists of an optional description, the resource environment reference name, and an indication of the resource environment reference type expected by the enterprise bean code. - * - * Examples: - * - * <resource-env-ref> - * <resource-env-ref-name>jms//StockQueue<//resource-env-ref-name> - * <resource-env-ref-type>javax.jms.Queue<//resource-env-ref-type> - * <//resource-env-ref> - */ -public class ResourceEnvRefImpl extends EObjectImpl implements ResourceEnvRef, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String name = NAME_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass type = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public ResourceEnvRefImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getResourceEnvRef(); - } - - /** - * createClassRef - return a JavaURL reference to the named Java class - */ - public JavaClass createClassRef(String targetName) { - return JavaRefFactory.eINSTANCE.createClassRef(targetName); - } - - public String getTypeName() { - getType(); - return type == null ? null : type.getQualifiedName(); - } - - public void setTypeName(String className) { - eSet(CommonPackage.eINSTANCE.getResourceEnvRef_Type(), createClassRef(className)); - } - - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (getDescriptions() != null && !getDescriptions().isEmpty()) { - Description d = (Description) getDescriptions().get(0); - if (d != null) - d.setValue(newDescription); - } - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE__DESCRIPTION, oldDescription, description)); - } - - public String getDescription() { - if (getDescriptions() != null && !getDescriptions().isEmpty()) { - Description d = (Description) getDescriptions().get(0); - if (d != null) - description = d.getValue(); - } - return description; - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies the name of a resource environment reference; its - * value is the environment entry name used in the enterprise - * bean code. - */ - public String getName() { - return name; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_ENV_REF__NAME, oldName, name)); - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies the type of a resource environment reference. See the class description for an example. - */ - public JavaClass getType() { - if (type != null && type.eIsProxy()) { - JavaClass oldType = type; - type = (JavaClass)eResolveProxy((InternalEObject)type); - if (type != oldType) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonPackage.RESOURCE_ENV_REF__TYPE, oldType, type)); - } - } - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetType() { - return type; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setType(JavaClass newType) { - JavaClass oldType = type; - type = newType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_ENV_REF__TYPE, oldType, type)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RESOURCE_ENV_REF__DESCRIPTION: - return getDescription(); - case CommonPackage.RESOURCE_ENV_REF__NAME: - return getName(); - case CommonPackage.RESOURCE_ENV_REF__TYPE: - if (resolve) return getType(); - return basicGetType(); - case CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RESOURCE_ENV_REF__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.RESOURCE_ENV_REF__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case CommonPackage.RESOURCE_ENV_REF__TYPE: - return type != null; - case CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RESOURCE_ENV_REF__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.RESOURCE_ENV_REF__NAME: - setName((String)newValue); - return; - case CommonPackage.RESOURCE_ENV_REF__TYPE: - setType((JavaClass)newValue); - return; - case CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RESOURCE_ENV_REF__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.RESOURCE_ENV_REF__NAME: - setName(NAME_EDEFAULT); - return; - case CommonPackage.RESOURCE_ENV_REF__TYPE: - setType((JavaClass)null); - return; - case CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceRefImpl.java deleted file mode 100644 index 1d9e20a9a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceRefImpl.java +++ /dev/null @@ -1,508 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.ResAuthTypeBase; -import org.eclipse.jst.j2ee.common.ResSharingScopeType; -import org.eclipse.jst.j2ee.common.ResourceRef; - -/** - * The resource-ref element contains a declaration of application clients's reference to an external resource. It consists of an optional description, the resource factory reference name, the indication of the resource factory type expected by the application client's code, and the type of authentication (bean or container). - * Example: - * <resource-ref> - * <res-ref-name>EmployeeAppDB<//res-ref-name> - * <res-type>javax.sql.DataSource<//res-type> - * <res-auth>Container<//res-auth> - * <//resource-ref> - */ -public class ResourceRefImpl extends EObjectImpl implements ResourceRef, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String name = NAME_EDEFAULT; - /** - * The default value of the '{@link #getType() <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected static final String TYPE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String type = TYPE_EDEFAULT; - /** - * The default value of the '{@link #getAuth() <em>Auth</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuth() - * @generated - * @ordered - */ - protected static final ResAuthTypeBase AUTH_EDEFAULT = ResAuthTypeBase.CONTAINER_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected ResAuthTypeBase auth = AUTH_EDEFAULT; - /** - * This is true if the Auth attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean authESet = false; - - /** - * The default value of the '{@link #getLink() <em>Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLink() - * @generated - * @ordered - */ - protected static final String LINK_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String link = LINK_EDEFAULT; - /** - * The default value of the '{@link #getResSharingScope() <em>Res Sharing Scope</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getResSharingScope() - * @generated - * @ordered - */ - protected static final ResSharingScopeType RES_SHARING_SCOPE_EDEFAULT = ResSharingScopeType.SHAREABLE_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected ResSharingScopeType resSharingScope = RES_SHARING_SCOPE_EDEFAULT; - /** - * This is true if the Res Sharing Scope attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean resSharingScopeESet = false; - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public ResourceRefImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getResourceRef(); - } - - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (getDescriptions() != null && !getDescriptions().isEmpty()) { - Description d = (Description) getDescriptions().get(0); - if (d != null) - d.setValue(newDescription); - } - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE__DESCRIPTION, oldDescription, description)); - } - - public String getDescription() { - if (getDescriptions() != null && !getDescriptions().isEmpty()) { - Description d = (Description) getDescriptions().get(0); - if (d != null) - description = d.getValue(); - } - return description; - } - - /** - * @generated This field/method will be replaced during code generation - * The res-ref-name element specifies the name of the resource factory reference name. The resource factory reference name is the name of the application client's environment entry whose value contains the JNDI name of the data source. - */ - public String getName() { - return name; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_REF__NAME, oldName, name)); - } - - /** - * @generated This field/method will be replaced during code generation - * The res-type element specifies the type of the data source. The type is specified by the Java interface (or class) expected to be implemented by the data source. - */ - public String getType() { - return type; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setType(String newType) { - String oldType = type; - type = newType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_REF__TYPE, oldType, type)); - } - - /** - * @generated This field/method will be replaced during code generation - * The res-auth element specifies whether the enterprise bean code signs on programmatically to the resource manager, or whether the Container will sign on to the resource manager on behalf of the bean. In the latter case, the Container uses information that is supplied by the Deployer. The value of this element must be one of the two following: - * <res-auth>Application<//res-auth> - * <res-auth>Container<//res-auth> - */ - public ResAuthTypeBase getAuth() { - return auth; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAuth(ResAuthTypeBase newAuth) { - ResAuthTypeBase oldAuth = auth; - auth = newAuth == null ? AUTH_EDEFAULT : newAuth; - boolean oldAuthESet = authESet; - authESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_REF__AUTH, oldAuth, auth, !oldAuthESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetAuth() { - ResAuthTypeBase oldAuth = auth; - boolean oldAuthESet = authESet; - auth = AUTH_EDEFAULT; - authESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CommonPackage.RESOURCE_REF__AUTH, oldAuth, AUTH_EDEFAULT, oldAuthESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetAuth() { - return authESet; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getLink() { - return link; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLink(String newLink) { - String oldLink = link; - link = newLink; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_REF__LINK, oldLink, link)); - } - - /** - * @generated This field/method will be replaced during code generation - * The res-sharing-scope element specifies whether connections obtained - * through the given resource manager connection factory reference can be - * shared. The value of this element, if specified, must be one of the - * two following: Shareable, Unshareable - * - * The default value is Shareable. - - */ - public ResSharingScopeType getResSharingScope() { - return resSharingScope; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setResSharingScope(ResSharingScopeType newResSharingScope) { - ResSharingScopeType oldResSharingScope = resSharingScope; - resSharingScope = newResSharingScope == null ? RES_SHARING_SCOPE_EDEFAULT : newResSharingScope; - boolean oldResSharingScopeESet = resSharingScopeESet; - resSharingScopeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE, oldResSharingScope, resSharingScope, !oldResSharingScopeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetResSharingScope() { - ResSharingScopeType oldResSharingScope = resSharingScope; - boolean oldResSharingScopeESet = resSharingScopeESet; - resSharingScope = RES_SHARING_SCOPE_EDEFAULT; - resSharingScopeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE, oldResSharingScope, RES_SHARING_SCOPE_EDEFAULT, oldResSharingScopeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetResSharingScope() { - return resSharingScopeESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.RESOURCE_REF__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.RESOURCE_REF__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RESOURCE_REF__DESCRIPTION: - return getDescription(); - case CommonPackage.RESOURCE_REF__NAME: - return getName(); - case CommonPackage.RESOURCE_REF__TYPE: - return getType(); - case CommonPackage.RESOURCE_REF__AUTH: - return getAuth(); - case CommonPackage.RESOURCE_REF__LINK: - return getLink(); - case CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE: - return getResSharingScope(); - case CommonPackage.RESOURCE_REF__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RESOURCE_REF__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.RESOURCE_REF__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case CommonPackage.RESOURCE_REF__TYPE: - return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); - case CommonPackage.RESOURCE_REF__AUTH: - return isSetAuth(); - case CommonPackage.RESOURCE_REF__LINK: - return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link); - case CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE: - return isSetResSharingScope(); - case CommonPackage.RESOURCE_REF__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RESOURCE_REF__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.RESOURCE_REF__NAME: - setName((String)newValue); - return; - case CommonPackage.RESOURCE_REF__TYPE: - setType((String)newValue); - return; - case CommonPackage.RESOURCE_REF__AUTH: - setAuth((ResAuthTypeBase)newValue); - return; - case CommonPackage.RESOURCE_REF__LINK: - setLink((String)newValue); - return; - case CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE: - setResSharingScope((ResSharingScopeType)newValue); - return; - case CommonPackage.RESOURCE_REF__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RESOURCE_REF__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.RESOURCE_REF__NAME: - setName(NAME_EDEFAULT); - return; - case CommonPackage.RESOURCE_REF__TYPE: - setType(TYPE_EDEFAULT); - return; - case CommonPackage.RESOURCE_REF__AUTH: - unsetAuth(); - return; - case CommonPackage.RESOURCE_REF__LINK: - setLink(LINK_EDEFAULT); - return; - case CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE: - unsetResSharingScope(); - return; - case CommonPackage.RESOURCE_REF__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", name: "); - result.append(name); - result.append(", type: "); - result.append(type); - result.append(", auth: "); - if (authESet) result.append(auth); else result.append("<unset>"); - result.append(", link: "); - result.append(link); - result.append(", resSharingScope: "); - if (resSharingScopeESet) result.append(resSharingScope); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/RunAsSpecifiedIdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/RunAsSpecifiedIdentityImpl.java deleted file mode 100644 index 7cc442f77..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/RunAsSpecifiedIdentityImpl.java +++ /dev/null @@ -1,193 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Identity; -import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity; -import org.eclipse.jst.j2ee.common.SecurityIdentity; - - -/** - * The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It contains an optional description and a specification of the security identity to be used. - - */ -public class RunAsSpecifiedIdentityImpl extends SecurityIdentityImpl implements RunAsSpecifiedIdentity, SecurityIdentity{ - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected Identity identity = null; - public RunAsSpecifiedIdentityImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getRunAsSpecifiedIdentity(); - } - - /** - * @generated This field/method will be replaced during code generation - * Optional specifies the run-as identity to be used for the execution of the methods of an enterprise bean. It contains an optional description, and the name of a security role. - */ - public Identity getIdentity() { - return identity; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetIdentity(Identity newIdentity, NotificationChain msgs) { - Identity oldIdentity = identity; - identity = newIdentity; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY, oldIdentity, newIdentity); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setIdentity(Identity newIdentity) { - if (newIdentity != identity) { - NotificationChain msgs = null; - if (identity != null) - msgs = ((InternalEObject)identity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY, null, msgs); - if (newIdentity != null) - msgs = ((InternalEObject)newIdentity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY, null, msgs); - msgs = basicSetIdentity(newIdentity, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY, newIdentity, newIdentity)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY: - return basicSetIdentity(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__DESCRIPTION: - return getDescription(); - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__DESCRIPTIONS: - return getDescriptions(); - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY: - return getIdentity(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY: - return identity != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY: - setIdentity((Identity)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__DESCRIPTIONS: - getDescriptions().clear(); - return; - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY: - setIdentity((Identity)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @see org.eclipse.jst.j2ee.internal.common.SecurityIdentity#isRunAsSpecifiedIdentity() - */ - public boolean isRunAsSpecifiedIdentity() { - return true; - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityIdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityIdentityImpl.java deleted file mode 100644 index bf6732ae6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityIdentityImpl.java +++ /dev/null @@ -1,214 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.SecurityIdentity; - - -/** - * The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It - * contains an optional description and a specification of the security identity to be used. - - */ -public class SecurityIdentityImpl extends EObjectImpl implements SecurityIdentity, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public SecurityIdentityImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getSecurityIdentity(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_IDENTITY__DESCRIPTION, oldDescription, description)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_IDENTITY__DESCRIPTION: - return getDescription(); - case CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_IDENTITY__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_IDENTITY__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_IDENTITY__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - - /** - * @see org.eclipse.jst.j2ee.internal.common.SecurityIdentity#isRunAsSpecifiedIdentity() - */ - public boolean isRunAsSpecifiedIdentity() { - return false; - } - - /** - * @see org.eclipse.jst.j2ee.internal.common.SecurityIdentity#isUseCallerIdentity() - */ - public boolean isUseCallerIdentity() { - return false; - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleImpl.java deleted file mode 100644 index 1410dbeb2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleImpl.java +++ /dev/null @@ -1,286 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.wst.common.frameworks.internal.enablement.nonui.WorkbenchUtil; - -/** - * A semantic grouping of operations that may be performed by a subject. - * The security-role element contains the declaration of a security role which is used in the security-constraints placed on the web application. - */ -public class SecurityRoleImpl extends EObjectImpl implements SecurityRole, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - static boolean inEclipse = WorkbenchUtil.workbenchIsRunning(); - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getRoleName() <em>Role Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRoleName() - * @generated - * @ordered - */ - protected static final String ROLE_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String roleName = ROLE_NAME_EDEFAULT; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public SecurityRoleImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getSecurityRole(); - } - -public boolean equals(Object o) { - if (inEclipse) - return super.equals(o); - - if (o instanceof SecurityRoleImpl) { - String r1 = getRoleName(); - String r2 = ((SecurityRole) o).getRoleName(); - if ((r1 != null) && (r2 != null)) { - if (r1.equals(r2)) { - return true; - } - } else if (r1 == null && r2 == null) - return super.equals(o); - } - return false; -} -public int hashCode() { - if (inEclipse || getRoleName() == null) - return super.hashCode(); - return getRoleName().hashCode(); -} -public String toString() { - String name = getRoleName() == null ? "<unknown>" : getRoleName(); //$NON-NLS-1$ - return getClass().getName() + "(" + name + ")"; //$NON-NLS-1$ //$NON-NLS-2$ -} - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - if (getDescriptions() != null && !getDescriptions().isEmpty()) { - Description d = (Description) getDescriptions().get(0); - if (d != null) - description = d.getValue(); - } - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (getDescriptions() != null) { - if (getDescriptions().isEmpty()) { - Description d = new DescriptionImpl(); - d.setValue(newDescription); - getDescriptions().add(d); - } else { - Description d = (Description) getDescriptions().get(0); - if (d != null) - d.setValue(newDescription); - } - } - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation The - * role-name element contains the name of a role. This element - * must contain a non-empty string. - */ - public String getRoleName() { - return roleName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRoleName(String newRoleName) { - String oldRoleName = roleName; - roleName = newRoleName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE__ROLE_NAME, oldRoleName, roleName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.SECURITY_ROLE__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.SECURITY_ROLE__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_ROLE__DESCRIPTION: - return getDescription(); - case CommonPackage.SECURITY_ROLE__ROLE_NAME: - return getRoleName(); - case CommonPackage.SECURITY_ROLE__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_ROLE__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.SECURITY_ROLE__ROLE_NAME: - return ROLE_NAME_EDEFAULT == null ? roleName != null : !ROLE_NAME_EDEFAULT.equals(roleName); - case CommonPackage.SECURITY_ROLE__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_ROLE__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.SECURITY_ROLE__ROLE_NAME: - setRoleName((String)newValue); - return; - case CommonPackage.SECURITY_ROLE__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_ROLE__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.SECURITY_ROLE__ROLE_NAME: - setRoleName(ROLE_NAME_EDEFAULT); - return; - case CommonPackage.SECURITY_ROLE__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toStringGen() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", roleName: "); - result.append(roleName); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java deleted file mode 100644 index 92934d0f5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java +++ /dev/null @@ -1,288 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; - - -/** - * @generated - */ -public class SecurityRoleRefImpl extends EObjectImpl implements SecurityRoleRef{ - - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String name = NAME_EDEFAULT; - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getLink() <em>Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLink() - * @generated - * @ordered - */ - protected static final String LINK_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String link = LINK_EDEFAULT; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public SecurityRoleRefImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getSecurityRoleRef(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getName() { - return name; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE_REF__NAME, oldName, name)); - } - - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (getDescriptions() != null && !getDescriptions().isEmpty()) { - Description d = (Description) getDescriptions().get(0); - if (d != null) - d.setValue(newDescription); - } - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE_REF__DESCRIPTION, oldDescription, description)); - } - - public String getDescription() { - if (getDescriptions() != null && !getDescriptions().isEmpty()) { - Description d = (Description) getDescriptions().get(0); - if (d != null) - description = d.getValue(); - } - return description; - } - - /** - * @generated This field/method will be replaced during code generation - * The role-link element is used to link a security role reference to a defined security role. The role-link element must contain the name of one of the security roles defined in the security-role elements. - */ - public String getLink() { - return link; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLink(String newLink) { - String oldLink = link; - link = newLink; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE_REF__LINK, oldLink, link)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_ROLE_REF__NAME: - return getName(); - case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION: - return getDescription(); - case CommonPackage.SECURITY_ROLE_REF__LINK: - return getLink(); - case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_ROLE_REF__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.SECURITY_ROLE_REF__LINK: - return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link); - case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_ROLE_REF__NAME: - setName((String)newValue); - return; - case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.SECURITY_ROLE_REF__LINK: - setLink((String)newValue); - return; - case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.SECURITY_ROLE_REF__NAME: - setName(NAME_EDEFAULT); - return; - case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.SECURITY_ROLE_REF__LINK: - setLink(LINK_EDEFAULT); - return; - case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(", description: "); - result.append(description); - result.append(", link: "); - result.append(link); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/UseCallerIdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/UseCallerIdentityImpl.java deleted file mode 100644 index 48a8c1b19..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/UseCallerIdentityImpl.java +++ /dev/null @@ -1,137 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.common.UseCallerIdentity; - - -/** - * The use-caller-identity element specifies that the caller's security identity be used as the security identity for the execution of the enterprise bean's methods. - - */ -public class UseCallerIdentityImpl extends SecurityIdentityImpl implements UseCallerIdentity, SecurityIdentity{ - - public UseCallerIdentityImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return CommonPackage.eINSTANCE.getUseCallerIdentity(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case CommonPackage.USE_CALLER_IDENTITY__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.USE_CALLER_IDENTITY__DESCRIPTION: - return getDescription(); - case CommonPackage.USE_CALLER_IDENTITY__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.USE_CALLER_IDENTITY__DESCRIPTION: - setDescription((String)newValue); - return; - case CommonPackage.USE_CALLER_IDENTITY__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.USE_CALLER_IDENTITY__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case CommonPackage.USE_CALLER_IDENTITY__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case CommonPackage.USE_CALLER_IDENTITY__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case CommonPackage.USE_CALLER_IDENTITY__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @see org.eclipse.jst.j2ee.internal.common.SecurityIdentity#isUseCallerIdentity() - */ - public boolean isUseCallerIdentity() { - return true; - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceFactory.java deleted file mode 100644 index 329b7afa2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceFactory.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; -import org.eclipse.jst.j2ee.internal.common.XMLResource; - - -/** - * @deprecated Since 4/22/2003 - * This is replaced with concrete implementers of {@link com.ibm.etools.emf2xml.impl.TranslatorResourceFactory} - */ - -public abstract class XMLResourceFactory extends ResourceFactoryImpl { -/** - * EJBJarResourceFactory constructor comment. - */ -public XMLResourceFactory() { - //TODO: Delete this class - super(); -} - -/** - * @see org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl#createResource(URI) - */ -public final Resource createResource(URI uri) { - XMLResource resource = primCreateResource(uri); - resource.getDefaultSaveOptions().put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - resource.getDefaultSaveOptions().put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_LINE_WIDTH, new Integer(80)); - return resource; -} - -/** - * Method primCreateResource. - * @param uri - * @return XMLResource - */ -protected abstract XMLResource primCreateResource(URI uri) ; - -} - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceImpl.java deleted file mode 100644 index 9fc4db367..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceImpl.java +++ /dev/null @@ -1,285 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.impl; - -import java.math.BigDecimal; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl; -import org.xml.sax.EntityResolver; - - -public abstract class XMLResourceImpl extends TranslatorResourceImpl implements XMLResource,J2EEVersionResource { - /** Indicator to determine if this resource was loaded as an alt-dd (from an ear), - * default is false */ - protected boolean isAlt = false; - /** The application which declared the alt-dd for this resource; exists only if this resource is and - * alt dd */ - protected Application application; - protected boolean isNew = true; - - - private static class RootVersionAdapter extends AdapterImpl { - static final String ADAPTER_TYPE = RootVersionAdapter.class.getName(); - /* (non-Javadoc) - * @see org.eclipse.emf.common.notify.impl.AdapterImpl#isAdapterForType(java.lang.Object) - */ - public boolean isAdapterForType(Object type) { - return super.isAdapterForType(type); - } - - /* (non-Javadoc) - * @see org.eclipse.emf.common.notify.impl.AdapterImpl#notifyChanged(org.eclipse.emf.common.notify.Notification) - */ - public void notifyChanged(Notification msg) { - if (msg.getFeatureID(null) == RESOURCE__CONTENTS && - msg.getEventType() == Notification.ADD) { - ((XMLResourceImpl)msg.getNotifier()).syncVersionOfRootObject(); - ((Notifier)msg.getNotifier()).eAdapters().remove(this); - } - } - - - - - } - - /** - * @deprecated since 4/29/2003 - used for compatibility - * Subclasses should be using the Renderers and translator framework - */ - public XMLResourceImpl() { - super(); - } - - /** - * @deprecated since 4/29/2003 - used for compatibility - * Subclasses should be using the Renderers and translator framework - */ - public XMLResourceImpl(URI uri) { - super(uri); - } - - public XMLResourceImpl(URI uri, Renderer aRenderer) { - super(uri, aRenderer); - } - - public XMLResourceImpl(Renderer aRenderer) { - super(aRenderer); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#initializeContents() - */ - protected void initializeContents() { - super.initializeContents(); - eAdapters().add(new RootVersionAdapter()); - } - - - /** - * Is this a resource loaded as an alternate deployment descriptor? - */ - public boolean isAlt() { - return isAlt; - } - - - public void setApplication(Application newApplication) { - application = newApplication; - } - /** - * Is this a resource loaded as an alternate deployment descriptor? - */ - public void setIsAlt(boolean isAlternateDD) { - isAlt = isAlternateDD; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#getDefaultVersionID() - */ - protected int getDefaultVersionID() { - return J2EE_1_4_ID; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#setDoctypeValues(java.lang.String, java.lang.String) - * This is setting the module version on the resource, where values are different that the J2EE version, this will be overridden - */ - public void setDoctypeValues(String publicId, String systemId) { - int version = J2EE_1_4_ID; - if (systemId == null) - version = J2EE_1_4_ID; - else if (systemId.equals(getJ2EE_1_3_SystemID()) || systemId.equals(getJ2EE_Alt_1_3_SystemID())) - version = J2EE_1_3_ID; - else if (systemId.equals(getJ2EE_1_2_SystemID()) || systemId.equals(getJ2EE_Alt_1_2_SystemID())) - version = J2EE_1_2_ID; - super.setDoctypeValues(publicId, systemId); - setJ2EEVersionID(version); - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#usesDTD() - */ - public boolean usesDTD() { - return getVersionID() != J2EE_1_4_ID; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#setVersionID(int) - * @deprecated, Use setJ2EEVersionID() to set module version based on j2ee version - **/ - public void setVersionID(int id) { - setJ2EEVersionID(id); - } - protected void primSetVersionID(int id) { - super.setVersionID(id); - } - protected void primSetDoctypeValues(String aPublicId, String aSystemId) { - super.setDoctypeValues(aPublicId,aSystemId); - } - /* - * Sets the module version based on the J2EE version - */ - public abstract void setJ2EEVersionID(int id); - /* - * Sets the module version directly - * */ - public abstract void setModuleVersionID(int id); - /** - * @deprecated - * (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.XMLResource#isJ2EE1_3() - */ - public boolean isJ2EE1_3() { - return getVersionID() == J2EE_1_3_ID; - } - - /** - * @deprecated use {@link TranslatorResource#setVersionID(int)}, - * {@link TranslatorResource#setDoctypeValues(String, String)} - * Sets the system id of the XML document. - * @see J2EEVersionConstants - */ - public void setPublicId(String id) { - setDoctypeValues(id, getSystemId()); - } - - /** - * @deprecated use {@link TranslatorResource#setVersionID(int)}, - * {@link TranslatorResource#setDoctypeValues(String, String)} - * Sets the public id of the XML document. - * @see J2EEVersionConstants - */ - public void setSystemId(String id) { - setDoctypeValues(getPublicId(), id); - } - protected String getDefaultPublicId() { - switch (getVersionID()) { - case (J2EE_1_2_ID) : - return getJ2EE_1_2_PublicID(); - case (J2EE_1_3_ID) : - return getJ2EE_1_3_PublicID(); - default : - return null; - } - } - - protected String getDefaultSystemId() { - switch (getVersionID()) { - case (J2EE_1_2_ID) : - return getJ2EE_1_2_SystemID(); - case (J2EE_1_3_ID) : - return getJ2EE_1_3_SystemID(); - default : - return null; - } - } - - public abstract String getJ2EE_1_2_PublicID(); - - public abstract String getJ2EE_1_2_SystemID(); - - /** - * By default just return the proper 1.2 system ID, subclasses may override - * @return alternate string for system ID - */ - public String getJ2EE_Alt_1_2_SystemID() { - return getJ2EE_1_2_SystemID(); - } - - public abstract String getJ2EE_1_3_PublicID(); - - public abstract String getJ2EE_1_3_SystemID(); - - /** - * By default just return the proper 1.3 system ID, subclasses may override - * @return alternate string for system ID - */ - public String getJ2EE_Alt_1_3_SystemID() { - return getJ2EE_1_3_SystemID(); - } - - - public NotificationChain basicSetResourceSet(ResourceSet aResourceSet, NotificationChain notifications) { - if (aResourceSet == null && this.resourceSet != null) - preDelete(); - return super.basicSetResourceSet(aResourceSet, notifications); - } - - public Application getApplication() { - return application; - } - - /** - * @deprecated - use getJ2EEVersionID() and getModuleVersionID() - */ - public int getVersionID() { - return getJ2EEVersionID(); - } - - public EntityResolver getEntityResolver() { - return J2EEXmlDtDEntityResolver.INSTANCE; - } - /* All subclasses will derive this value based on their module version - */ - public abstract int getJ2EEVersionID(); - - - - /* This will be computed during loads of the resource - */ - public int getModuleVersionID() { - return super.getVersionID(); - } - - protected abstract void syncVersionOfRootObject(); - - protected String getModuleVersionString() { - - int ver = getModuleVersionID(); - return new BigDecimal(String.valueOf(ver)).movePointLeft(1).toString(); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonAdapterFactory.java deleted file mode 100644 index a2f85d547..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonAdapterFactory.java +++ /dev/null @@ -1,464 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.EJBLocalRef; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.EnvEntry; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.common.Identity; -import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup; -import org.eclipse.jst.j2ee.common.Listener; -import org.eclipse.jst.j2ee.common.MessageDestination; -import org.eclipse.jst.j2ee.common.MessageDestinationRef; -import org.eclipse.jst.j2ee.common.ParamValue; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.common.ResourceEnvRef; -import org.eclipse.jst.j2ee.common.ResourceRef; -import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.common.UseCallerIdentity; - - - -public class CommonAdapterFactory extends AdapterFactoryImpl { - protected static CommonPackage modelPackage; - - public CommonAdapterFactory() { - if (modelPackage == null) { - modelPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - } - } - public boolean isFactoryForType(Object type) { - if (type == modelPackage) { - return true; - } - if (type instanceof EObject) { - return ((EObject)type).eClass().eContainer() == modelPackage; - } - return false; - } - - public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - public Adapter createSecurityRoleAdapter() { - return null; - } - - public Adapter createResourceRefAdapter() { - return null; - } - - public Adapter createEjbRefAdapter() { - return null; - } - - public Adapter createEJBLocalRefAdapter() { - return null; - } - - public Adapter createEnvEntryAdapter() { - return null; - } - - public Adapter createSecurityRoleRefAdapter() { - return null; - } - - public Adapter createRunAsSpecifiedIdentityAdapter() { - return null; - } - - public Adapter createSecurityIdentityAdapter() { - return null; - } - - public Adapter createUseCallerIdentityAdapter() { - return null; - } - - public Adapter createIdentityAdapter() { - return null; - } - - public Adapter createResourceEnvRefAdapter() { - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean isFactoryForTypeGen(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected CommonSwitch modelSwitch = - new CommonSwitch() { - public Object caseEjbRef(EjbRef object) { - return createEjbRefAdapter(); - } - public Object caseEnvEntry(EnvEntry object) { - return createEnvEntryAdapter(); - } - public Object caseResourceRef(ResourceRef object) { - return createResourceRefAdapter(); - } - public Object caseSecurityRoleRef(SecurityRoleRef object) { - return createSecurityRoleRefAdapter(); - } - public Object caseSecurityRole(SecurityRole object) { - return createSecurityRoleAdapter(); - } - public Object caseResourceEnvRef(ResourceEnvRef object) { - return createResourceEnvRefAdapter(); - } - public Object caseEJBLocalRef(EJBLocalRef object) { - return createEJBLocalRefAdapter(); - } - public Object caseRunAsSpecifiedIdentity(RunAsSpecifiedIdentity object) { - return createRunAsSpecifiedIdentityAdapter(); - } - public Object caseIdentity(Identity object) { - return createIdentityAdapter(); - } - public Object caseIconType(IconType object) { - return createIconTypeAdapter(); - } - public Object caseDisplayName(DisplayName object) { - return createDisplayNameAdapter(); - } - public Object caseMessageDestinationRef(MessageDestinationRef object) { - return createMessageDestinationRefAdapter(); - } - public Object caseMessageDestination(MessageDestination object) { - return createMessageDestinationAdapter(); - } - public Object caseParamValue(ParamValue object) { - return createParamValueAdapter(); - } - public Object caseDescriptionGroup(DescriptionGroup object) { - return createDescriptionGroupAdapter(); - } - public Object caseJNDIEnvRefsGroup(JNDIEnvRefsGroup object) { - return createJNDIEnvRefsGroupAdapter(); - } - public Object caseSecurityIdentity(SecurityIdentity object) { - return createSecurityIdentityAdapter(); - } - public Object caseUseCallerIdentity(UseCallerIdentity object) { - return createUseCallerIdentityAdapter(); - } - public Object caseDescription(Description object) { - return createDescriptionAdapter(); - } - public Object caseQName(QName object) { - return createQNameAdapter(); - } - public Object caseListener(Listener object) { - return createListenerAdapter(); - } - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return createCompatibilityDescriptionGroupAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAdapterGen(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createSecurityRoleAdapterGen() { - - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createResourceRefAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEjbRefAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEJBLocalRefAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEnvEntryAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createSecurityRoleRefAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createRunAsSpecifiedIdentityAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createSecurityIdentityAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createUseCallerIdentityAdapterGen() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.Description <em>Description</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.Description - * @generated - */ - public Adapter createDescriptionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.QName <em>QName</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.QName - * @generated - */ - public Adapter createQNameAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.Listener <em>Listener</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.Listener - * @generated - */ - public Adapter createListenerAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - public Adapter createCompatibilityDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createIdentityAdapterGen() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.IconType <em>Icon Type</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.IconType - * @generated - */ - public Adapter createIconTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DisplayName <em>Display Name</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DisplayName - * @generated - */ - public Adapter createDisplayNameAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef <em>Message Destination Ref</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.MessageDestinationRef - * @generated - */ - public Adapter createMessageDestinationRefAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.MessageDestination <em>Message Destination</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.MessageDestination - * @generated - */ - public Adapter createMessageDestinationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.ParamValue <em>Param Value</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.ParamValue - * @generated - */ - public Adapter createParamValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - public Adapter createDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup <em>JNDI Env Refs Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup - * @generated - */ - public Adapter createJNDIEnvRefsGroupAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createResourceEnvRefAdapterGen() { - return null; - } - -} //CommonAdapterFactory - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonSwitch.java deleted file mode 100644 index 1eb01c666..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonSwitch.java +++ /dev/null @@ -1,608 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.EJBLocalRef; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.EnvEntry; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.common.Identity; -import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup; -import org.eclipse.jst.j2ee.common.Listener; -import org.eclipse.jst.j2ee.common.MessageDestination; -import org.eclipse.jst.j2ee.common.MessageDestinationRef; -import org.eclipse.jst.j2ee.common.ParamValue; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.common.ResourceEnvRef; -import org.eclipse.jst.j2ee.common.ResourceRef; -import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.common.UseCallerIdentity; - - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.common.CommonPackage - * @generated - */ -public class CommonSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static CommonPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CommonSwitch() { - if (modelPackage == null) { - modelPackage = CommonPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case CommonPackage.EJB_REF: { - EjbRef ejbRef = (EjbRef)theEObject; - Object result = caseEjbRef(ejbRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.ENV_ENTRY: { - EnvEntry envEntry = (EnvEntry)theEObject; - Object result = caseEnvEntry(envEntry); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.RESOURCE_REF: { - ResourceRef resourceRef = (ResourceRef)theEObject; - Object result = caseResourceRef(resourceRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.SECURITY_ROLE_REF: { - SecurityRoleRef securityRoleRef = (SecurityRoleRef)theEObject; - Object result = caseSecurityRoleRef(securityRoleRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.SECURITY_ROLE: { - SecurityRole securityRole = (SecurityRole)theEObject; - Object result = caseSecurityRole(securityRole); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.RESOURCE_ENV_REF: { - ResourceEnvRef resourceEnvRef = (ResourceEnvRef)theEObject; - Object result = caseResourceEnvRef(resourceEnvRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.EJB_LOCAL_REF: { - EJBLocalRef ejbLocalRef = (EJBLocalRef)theEObject; - Object result = caseEJBLocalRef(ejbLocalRef); - if (result == null) result = caseEjbRef(ejbLocalRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.RUN_AS_SPECIFIED_IDENTITY: { - RunAsSpecifiedIdentity runAsSpecifiedIdentity = (RunAsSpecifiedIdentity)theEObject; - Object result = caseRunAsSpecifiedIdentity(runAsSpecifiedIdentity); - if (result == null) result = caseSecurityIdentity(runAsSpecifiedIdentity); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.IDENTITY: { - Identity identity = (Identity)theEObject; - Object result = caseIdentity(identity); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.ICON_TYPE: { - IconType iconType = (IconType)theEObject; - Object result = caseIconType(iconType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.DISPLAY_NAME: { - DisplayName displayName = (DisplayName)theEObject; - Object result = caseDisplayName(displayName); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.MESSAGE_DESTINATION_REF: { - MessageDestinationRef messageDestinationRef = (MessageDestinationRef)theEObject; - Object result = caseMessageDestinationRef(messageDestinationRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.MESSAGE_DESTINATION: { - MessageDestination messageDestination = (MessageDestination)theEObject; - Object result = caseMessageDestination(messageDestination); - if (result == null) result = caseCompatibilityDescriptionGroup(messageDestination); - if (result == null) result = caseDescriptionGroup(messageDestination); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.PARAM_VALUE: { - ParamValue paramValue = (ParamValue)theEObject; - Object result = caseParamValue(paramValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.DESCRIPTION_GROUP: { - DescriptionGroup descriptionGroup = (DescriptionGroup)theEObject; - Object result = caseDescriptionGroup(descriptionGroup); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.JNDI_ENV_REFS_GROUP: { - JNDIEnvRefsGroup jndiEnvRefsGroup = (JNDIEnvRefsGroup)theEObject; - Object result = caseJNDIEnvRefsGroup(jndiEnvRefsGroup); - if (result == null) result = caseCompatibilityDescriptionGroup(jndiEnvRefsGroup); - if (result == null) result = caseDescriptionGroup(jndiEnvRefsGroup); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.SECURITY_IDENTITY: { - SecurityIdentity securityIdentity = (SecurityIdentity)theEObject; - Object result = caseSecurityIdentity(securityIdentity); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.USE_CALLER_IDENTITY: { - UseCallerIdentity useCallerIdentity = (UseCallerIdentity)theEObject; - Object result = caseUseCallerIdentity(useCallerIdentity); - if (result == null) result = caseSecurityIdentity(useCallerIdentity); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.DESCRIPTION: { - Description description = (Description)theEObject; - Object result = caseDescription(description); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.QNAME: { - QName qName = (QName)theEObject; - Object result = caseQName(qName); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.LISTENER: { - Listener listener = (Listener)theEObject; - Object result = caseListener(listener); - if (result == null) result = caseCompatibilityDescriptionGroup(listener); - if (result == null) result = caseDescriptionGroup(listener); - if (result == null) result = defaultCase(theEObject); - return result; - } - case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP: { - CompatibilityDescriptionGroup compatibilityDescriptionGroup = (CompatibilityDescriptionGroup)theEObject; - Object result = caseCompatibilityDescriptionGroup(compatibilityDescriptionGroup); - if (result == null) result = caseDescriptionGroup(compatibilityDescriptionGroup); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Ejb Ref</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Ejb Ref</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEjbRef(EjbRef object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Env Entry</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Env Entry</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEnvEntry(EnvEntry object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Resource Ref</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Resource Ref</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseResourceRef(ResourceRef object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Security Role Ref</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Security Role Ref</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseSecurityRoleRef(SecurityRoleRef object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Security Role</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Security Role</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseSecurityRole(SecurityRole object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Resource Env Ref</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Resource Env Ref</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseResourceEnvRef(ResourceEnvRef object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EJB Local Ref</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EJB Local Ref</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEJBLocalRef(EJBLocalRef object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Run As Specified Identity</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Run As Specified Identity</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseRunAsSpecifiedIdentity(RunAsSpecifiedIdentity object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Security Identity</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Security Identity</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseSecurityIdentity(SecurityIdentity object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Identity</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Identity</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIdentity(Identity object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Icon Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Icon Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIconType(IconType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Display Name</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Display Name</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDisplayName(DisplayName object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Message Destination Ref</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Message Destination Ref</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMessageDestinationRef(MessageDestinationRef object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Message Destination</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Message Destination</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMessageDestination(MessageDestination object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Param Value</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Param Value</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseParamValue(ParamValue object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionGroup(DescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>JNDI Env Refs Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>JNDI Env Refs Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseJNDIEnvRefsGroup(JNDIEnvRefsGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Use Caller Identity</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Use Caller Identity</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseUseCallerIdentity(UseCallerIdentity object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescription(Description object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>QName</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>QName</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseQName(QName object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Listener</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Listener</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseListener(Listener object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //CommonSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonUtil.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonUtil.java deleted file mode 100644 index 56d104623..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonUtil.java +++ /dev/null @@ -1,82 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.util; - - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationFactoryImpl; -import org.eclipse.jst.j2ee.client.internal.impl.ClientFactoryImpl; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbFactoryImpl; -import org.eclipse.jst.j2ee.internal.MOFJ2EEResourceHandler; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaFactoryImpl; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationFactoryImpl; - - -public class CommonUtil { -public static boolean isDeploymentDescriptorRoot(EObject o) { - return isDeploymentDescriptorRoot(o, true); -} -public static boolean isDeploymentDescriptorRoot(EObject o, boolean includeEars) { - EObject meta = o.eClass(); - return (includeEars && meta == eClassApplication()) || - meta == eClassApplicationClient() || - meta == eClassEJBJar() || - meta == eClassWebApp() || - meta == eClassConnector(); -} -public static boolean isDeploymentDescriptorRoot(Object o) { - return isDeploymentDescriptorRoot(o, true); -} -public static boolean isDeploymentDescriptorRoot(Object o, boolean includeEARs) { - if (o instanceof EObject) - return isDeploymentDescriptorRoot((EObject)o, includeEARs); - return false; -} -protected static EClass eClassApplication() { - return ApplicationFactoryImpl.getPackage().getApplication(); -} -protected static EClass eClassApplicationClient() { - return ClientFactoryImpl.getPackage().getApplicationClient(); -} -protected static EClass eClassEJBJar() { - return EjbFactoryImpl.getPackage().getEJBJar(); -} -protected static EClass eClassWebApp() { - return WebapplicationFactoryImpl.getPackage().getWebApp(); -} - -protected static EClass eClassConnector() { - return JcaFactoryImpl.getPackage().getConnector(); -} -/** - * Safety check method to ensure that the version of the dd object can be computed. - */ -public static void checkDDObjectForVersion(EObject dd) { - if (dd.eIsProxy()) { - String proxyUri = ((InternalEObject)dd).eProxyURI().toString(); - String message = MOFJ2EEResourceHandler.getString(MOFJ2EEResourceHandler.J2EE_VERSION_PROXY_ERROR, new Object[]{proxyUri}); - throw new IllegalStateException(message); - } else if (dd.eResource() == null) { - String message = MOFJ2EEResourceHandler.J2EE_VERSION_NULL_ERROR; - throw new IllegalStateException(message); - } -} - -} - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultable.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultable.java deleted file mode 100644 index 4301ee406..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultable.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.util; - -import org.eclipse.emf.common.notify.Notifier; -/** - * Interface used for objects that can be "fluffed up" on demand, but not serialized unless modified - * @since 1.0 */ -public interface Defaultable extends Notifier { -public boolean isDefault(); -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/DefaultedAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/DefaultedAdapterImpl.java deleted file mode 100644 index 405409177..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/DefaultedAdapterImpl.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.util; - -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.util.EcoreUtil; -/** - * Insert the type's description here. - * Creation date: (03/22/01 10:54:22 AM) - * @author: Administrator - */ -public abstract class DefaultedAdapterImpl extends AdapterImpl { - final static String ADAPTER_KEY = "DEFAULTED_ADAPTER"; //$NON-NLS-1$ - protected boolean fNotify = true; -/** - * DefaultedAdapter constructor comment. - */ -public DefaultedAdapterImpl() { - super(); -} -public abstract EObject defaultContainer(); -public boolean isAdapterForType(Object type) { - return ADAPTER_KEY.equals(type); -} -public static boolean isDefault(Defaultable object) { - Defaultor defaultor = (Defaultor) retrieveDefaultContainerFor(object); - return defaultor != null && defaultor.isDefault(object); -} - -/** - * Insert the method's description here. - * Creation date: (6/13/2001 8:43:41 PM) - * @return boolean - */ -public boolean isNotify() { - return fNotify; -} -public static DefaultedAdapterImpl retrieveAdapterFor(Defaultable notifier) { - return (DefaultedAdapterImpl)EcoreUtil.getExistingAdapter(notifier,ADAPTER_KEY); -} -public static EObject retrieveDefaultContainerFor(Defaultable notifier) { - DefaultedAdapterImpl adapter = retrieveAdapterFor(notifier); - return adapter == null ? null : adapter.defaultContainer(); -} -/** - * Insert the method's description here. - * Creation date: (6/13/2001 8:43:41 PM) - * @param newNotify boolean - */ -public void setNotify(boolean newNotify) { - fNotify = newNotify; -} -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultor.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultor.java deleted file mode 100644 index 3aadeb2f8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultor.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.util; - -/** - * Insert the type's description here. - * Creation date: (6/15/2001 4:58:15 PM) - * @author: Administrator - * @since 1.0 */ -public interface Defaultor { -/** - * Returns true if this objects create @aDefaultable and it is still - * currently default and not contained. - * Creation date: (6/15/2001 4:59:28 PM) - * @return boolean - * @param aDefaultable org.eclipse.jst.j2ee.internal.common.util.Defaultable - */ -boolean isDefault(Defaultable aDefaultable); -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/IDUtility.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/IDUtility.java deleted file mode 100644 index dfbcdd8ad..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/IDUtility.java +++ /dev/null @@ -1,77 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.wst.common.internal.emf.utilities.IDUtil; - - -/** - * Utility class for generating and setting unique id's for ref objects contained within a resource. This is needed - * sometimes when a refobject is referenced by an object in a separate resource. This utility will force the refobject - * to notify after the id gets set, using the static feature on this class. The object must be contained in a resource - * for the utility methods to work. - */ -public class IDUtility { - -/** - * IDUtility constructor comment. - */ -public IDUtility() { - super(); -} -/** - * Generate a default id and notify. - */ -protected static String primSetDefaultID(EObject object) { - return IDUtil.getOrAssignID(object); -} - -/** - * Generate a default id and notify. - * Helper for default id generation to support cross document references to non xmi resources - * (eg, xml deployment descriptors); called from overriden accessors in selected objects; - */ -public static String setDefaultID(EObject object) { - if (object == null || object.eResource() == null) - return null; - return primSetDefaultID(object); -} - -/** - * Generate a default id and notify, for this object and for all referenced objects that are contained - * within the same resource. Helper for default id generation to support cross document references to non xmi resources - * (eg, xml deployment descriptors); useful for post copy/add - */ -public static String setDefaultID(EObject object, boolean recurseChildren) { - if (object == null || object.eResource() == null) - return null; - - String result = primSetDefaultID(object); - - if (recurseChildren) - setDefaultIDForChildren(object); - - return result; -} - -protected static void setDefaultIDForChildren(EObject object) { - - List objects = object.eContents(); - for (int i = 0; i < objects.size(); i++){ - EObject o = (EObject)objects.get(i); - primSetDefaultID(o); - } -} -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/XmlSpecifiedDataAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/XmlSpecifiedDataAdapter.java deleted file mode 100644 index 67d1934f1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/XmlSpecifiedDataAdapter.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.common.internal.util; - -/** - * Insert the type's description here. - * Creation date: (06/04/01 7:56:22 PM) - * @author: Administrator - */ -public class XmlSpecifiedDataAdapter extends org.eclipse.emf.common.notify.impl.AdapterImpl { - protected final static String ADAPTER_KEY = "XML_SPECIFIED_ADAPTER"; //$NON-NLS-1$ -/** - * XmlSpecifiedDataAdapter constructor comment. - */ -public XmlSpecifiedDataAdapter() { - super(); -} -public boolean isAdapterForType(Object type) { - return ADAPTER_KEY.equals(type); -} -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/package.xml b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/package.xml deleted file mode 100644 index 1ad91dcba..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/package.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<html> - <head> - <meta - name="root" - content="../../../../../../../" /> - <title>EJB Artifact Edit api overview</title> - </head> - - <body> - <abstract> - This package includes api the common model artifacts that include (Resource References, EJB References, Display Name, Description Group, Security roles, Environment variables). - Using this api the common model artifacts can be created and accessed in any j2ee modules (Enterprise Application, Application Client, Web App, EJB App, Connectors). - can be created and accessed. - </abstract> - - <a href="#top">top</a> - </body> -</html> -
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AcknowledgeMode.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AcknowledgeMode.java deleted file mode 100644 index 1a9c5f669..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AcknowledgeMode.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface AcknowledgeMode {} - * @since 1.0 - */ -public final class AcknowledgeMode extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int AUTO_ACKNOWLEDGE= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int DUPS_OK_ACKNOWLEDGE= 1; - - /** - * The '<em><b>Auto Acknowledge</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Auto Acknowledge</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #AUTO_ACKNOWLEDGE - * @ordered - */ - public static final AcknowledgeMode AUTO_ACKNOWLEDGE_LITERAL = new AcknowledgeMode(AUTO_ACKNOWLEDGE, "Auto-acknowledge"); //$NON-NLS-1$ - - /** - * The '<em><b>Dups Ok Acknowledge</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Dups Ok Acknowledge</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #DUPS_OK_ACKNOWLEDGE - *TODO: generate correctly - * @ordered - */ - public static final AcknowledgeMode DUPS_OK_ACKNOWLEDGE_LITERAL = new AcknowledgeMode(DUPS_OK_ACKNOWLEDGE, "Dups-ok-acknowledge"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Acknowledge Mode</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final AcknowledgeMode[] VALUES_ARRAY = - new AcknowledgeMode[] { - AUTO_ACKNOWLEDGE_LITERAL, - DUPS_OK_ACKNOWLEDGE_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Acknowledge Mode</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Acknowledge Mode</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static AcknowledgeMode get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - AcknowledgeMode result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Acknowledge Mode</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @param value passes literal value - * @return literal instance - */ - public static AcknowledgeMode get(int value) { - switch (value) { - case AUTO_ACKNOWLEDGE: return AUTO_ACKNOWLEDGE_LITERAL; - case DUPS_OK_ACKNOWLEDGE: return DUPS_OK_ACKNOWLEDGE_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private AcknowledgeMode(int value, String name) { - super(value, name); - } - -} //AcknowledgeMode diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ActivationConfig.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ActivationConfig.java deleted file mode 100644 index 6d815acda..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ActivationConfig.java +++ /dev/null @@ -1,81 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Activation Config</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The activation-configType defines information about the - * expected configuration properties of the message-driven bean - * in its operational environment. This may include information - * about message acknowledgement, message selector, expected - * destination type, etc. - * - * The configuration information is expressed in terms of - * name/value configuration properties. - * - * The properties that are recognized for a particular - * message-driven bean are determined by the messaging type. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.ejb.ActivationConfig#getConfigProperties <em>Config Properties</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.ejb.ActivationConfig#getDescriptions <em>Descriptions</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getActivationConfig() - * @model - * @generated - * @since 1.0 */ -public interface ActivationConfig extends EObject{ - /** - * Returns the value of the '<em><b>Config Properties</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.ejb.ActivationConfigProperty}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Config Properties</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Config Properties</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getActivationConfig_ConfigProperties() - * @model type="org.eclipse.jst.j2ee.ejb.ActivationConfigProperty" containment="true" required="true" - * @generated - */ - EList getConfigProperties(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getActivationConfig_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} // ActivationConfig diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ActivationConfigProperty.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ActivationConfigProperty.java deleted file mode 100644 index 9e0b7bc25..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ActivationConfigProperty.java +++ /dev/null @@ -1,108 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Activation Config Property</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The activation-config-propertyType contains a name/value - * configuration property pair for a message-driven bean. - * - * The properties that are recognized for a particular - * message-driven bean are determined by the messaging type. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.ejb.ActivationConfigProperty#getValue <em>Value</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.ejb.ActivationConfigProperty#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getActivationConfigProperty() - * @model - * @generated - * @since 1.0 */ -public interface ActivationConfigProperty extends EObject{ - /** - * Returns the value of the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Value</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The activation-config-property-value element - * contains the value for an activation configuration - * property of a message-driven bean. - * <!-- end-model-doc --> - * @return the value of the '<em>Value</em>' attribute. - * @see #setValue(String) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getActivationConfigProperty_Value() - * @model - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.ActivationConfigProperty#getValue <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Value</em>' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The activation-config-property-name element contains - * the name for an activation configuration property of - * a message-driven bean. - * - * For JMS message-driven beans, the following property - * names are recognized: acknowledgeMode, - * messageSelector, destinationType, subscriptionDurability - * <!-- end-model-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getActivationConfigProperty_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.ActivationConfigProperty#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // ActivationConfigProperty diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AssemblyDescriptor.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AssemblyDescriptor.java deleted file mode 100644 index c4617211c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AssemblyDescriptor.java +++ /dev/null @@ -1,135 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.SecurityRole; - -/** - * The assembly-descriptor element contains application-assembly information. The application-assembly information consists of the following parts: the definition of security roles, the definition of method permissions, and the definition of transaction attributes for enterprise beans with container-managed transaction demarcation. All the parts are optional in the sense that they are omitted if the lists represented by them are empty. Providing an assembly-descriptor in the deployment descriptor is optional for the ejb-jar file producer. - * @since 1.0 */ -public interface AssemblyDescriptor extends EObject{ - - /** - * Return the first method permission that contains all the roles in securityRoles and - * is the same size - * @param securityRoles the list of SecurityRole - * @return The MethodPermission - */ - MethodPermission getMethodPermission(List securityRoles); - /** - * Return a List of MethodElements for @anEJB going - * through the MethodPermissions. - * @param anEJB the Enterprise Bean model - * @return List of MethodElement - */ - List getMethodPermissionMethodElements(EnterpriseBean anEJB) ; - /** - * Return a List of MethodElements for @anEJB going - * through the MethodTransactions. - * @param anEJB the Enterprise Bean model - * @return List of MethodElement - */ - List getMethodTransactionMethodElements(EnterpriseBean anEJB) ; - - /** - * Return the SecurityRole given a roleName - * @param roleName the name of the role - * @return SecurityRole - */ - public SecurityRole getSecurityRoleNamed(String roleName); - - /** - * Rename the security role, if it exists - * @param existingRoleName the existing role name - * @param newRoleName the new role name - */ - public void renameSecurityRole(String existingRoleName, String newRoleName); - /** - * @generated This field/method will be replaced during code generation - * @return The list of MethodPermissions references - */ - EList getMethodPermissions(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of MethodTransactions references - * Specifies how the container must manage transaction scopes for the enterprise - * bean's method invocations. The element consists of an optional description, a - * list of method elements, and a transaction attribute.The transaction attribute - * is to be applied to all the specified methods. - */ - EList getMethodTransactions(); - - /** - * @generated This field/method will be replaced during code generation - * @return The EjbJar reference - */ - EJBJar getEjbJar(); - - /** - * @generated This field/method will be replaced during code generation - * @param value the new value of the EjbJar reference - */ - void setEjbJar(EJBJar value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of SecurityRoles references - */ - EList getSecurityRoles(); - - /** - * @generated This field/method will be replaced during code generation - * @return The ExcludeList reference - */ - ExcludeList getExcludeList(); - - /** - * @generated This field/method will be replaced during code generation - * @param value the new value of the ExcludeList reference - */ - void setExcludeList(ExcludeList value); - - /** - * Returns the value of the '<em><b>Message Destinations</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.MessageDestination}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Message Destinations</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Message Destinations</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getAssemblyDescriptor_MessageDestinations() - * @model type="org.eclipse.jst.j2ee.common.MessageDestination" containment="true" - * @generated - */ - EList getMessageDestinations(); - - /** - * Remove the MethodElements that are referencing @anEJB. - * @param anEJB the Enterprise Bean model - */ - void removeData(EnterpriseBean anEJB) ; - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CMPAttribute.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CMPAttribute.java deleted file mode 100644 index 27444f703..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CMPAttribute.java +++ /dev/null @@ -1,135 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaHelpers; -/** - * Describes a container-managed field. The field element includes an optional description of the field, and the name of the field. - - * @since 1.0 */ -public interface CMPAttribute extends EAttribute{ - - /** - * @deprecated - With EJB 2.0, assuming a Java field is no longer safe. - * Use getType() and getName() to get the most common field info. - * Or use getEjbClass() to get additional Java info. - *@return the Field value - */ - - Field getField() ; - - /** - * The name of the get method corresponding to this attrribute - * @return the String value - */ - String getGetterName(); - /** - * Return the type of this attribute in its original form (i.e., unwrapped if - * the type has been wrapped). - * @return JavaHelpers value - */ - public JavaHelpers getOriginatingType() ; - - /** - * The name of the set method corresponding to this attrribute - * @return the String value - */ - String getSetterName(); - - /** - * Returns the Java Type of the attribute - * @return the JavaHelpers - */ - JavaHelpers getType() ; - - /** - * Returns true if the attribute is a CMR field - * @return boolean value - */ - boolean isCMRField() ; - - /** - * Returns true if the attribute is the key field of the bean - * @return boolean value - */ - boolean isKey() ; - /** - * Returns true if this field is a primkey-field in the deployment descriptor. - * @return boolean value - */ - public boolean isPrimKeyField(); - - /** - * Sets the originating Java type - * @param newOriginatingType the JavaHelpers - */ - public void setOriginatingType(JavaHelpers newOriginatingType) ; - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description is used by the ejb-jar file producer to provide text describing - * the cmr field. - * - * The description should include any information that the ejb-jar file producer - * wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). - * Typically, the tools used by the ejb-jar file consumer will display the - * description when processing the list of dependents. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getCMPAttribute_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - - /** - * Return true if a targetAttribute exists. - * @return boolean value - */ - boolean isDerived(); - - /** - * Sets the attribute as a derived attribute - * @param aBoolean the boolean value - */ - void setDerived(boolean aBoolean); - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CMRField.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CMRField.java deleted file mode 100644 index 38cdac9c1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CMRField.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.jem.java.JavaClass; -/** - * Describes the bean provider's view of a relationship. It consists of an optional description, and the name and the class type of a field in the source of a role of a relationship. The CMRField::name element corresponds to the name used for the get and set accessor methods for the relationship. The CMRField::type element is used only for collection-valued CMRFields. It specifies the type of the collection that is used (a java class name). - * - - * @since 1.0 */ -public interface CMRField extends CMPAttribute{ - - /** - * Returns the java CollectionType name - * @return The name of the java collection type - */ - public String getCollectionTypeName(); - - /** - * Sets the java collection type name - * @param typeName the name of the java collection type - */ - public void setCollectionTypeName(String typeName); - /** - * @generated This field/method will be replaced during code generation - * @return The Role reference - */ - EJBRelationshipRole getRole(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Role reference - */ - void setRole(EJBRelationshipRole value); - - /** - * @generated This field/method will be replaced during code generation - * @return The CollectionType reference - */ - JavaClass getCollectionType(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the CollectionType reference - */ - void setCollectionType(JavaClass value); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CommonRelationship.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CommonRelationship.java deleted file mode 100644 index 89c73209c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CommonRelationship.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * Insert the type's description here. - * Creation date: (10/26/2001 9:24:27 AM) - * @author: Administrator - * @since 1.0 */ -public interface CommonRelationship extends EObject { - /** - * Returns the EList of the common roles - * @return EList reference - */ - public EList getCommonRoles(); - - /** - * Gets the first common role - * @return CommonRelationshipRole reference - */ - public CommonRelationshipRole getFirstCommonRole(); - - /** - * Gets the second common role - * @return CommonRelationshipRole - */ - public CommonRelationshipRole getSecondCommonRole(); - - /** - * Returns the name of the CommonRelationship - * @return String value - */ - public String getName(); - - /** - * Sets the name of the CommonRelationship - * @param value the String value of the name - */ - public void setName(String value); -} - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CommonRelationshipRole.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CommonRelationshipRole.java deleted file mode 100644 index 3a25cbae9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CommonRelationshipRole.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * Insert the type's description here. - * Creation date: (10/26/2001 9:24:27 AM) - * @author: Administrator - * @since 1.0 */ -public interface CommonRelationshipRole extends EObject { -/** - * Return the persistentAttributes from my Entity that are used - * by this role. - * @return the attributes of the CommonRelationshipRole - */ - -public EList getAttributes(); -/** - * Return our parent relationship as a CommonRelationship - * @return the CommonRelationship reference - */ - -public CommonRelationship getCommonRelationship(); - - -/** - - * Defines a name for a role that is unique within an ejb-relation. Different relationships can use the same name for a role. - * @return The value of the Name attribute - */ - public String getName(); -/** - * Return the actual name of this role. This is the name defined in the Deployment - * Descriptor. You should use <code>getName()</code> for the name to use in code - * generation. - * @return the name of the CommonRelationshipRole - */ -String getRoleName(); -/** - * Return the other role. - * @return CommonRelationshipRole reference - */ - -CommonRelationshipRole getOppositeAsCommonRole() ; -/** - * @return The Source ejb - * Compute the ContainerManagedEntity which is the source of a role that participates in a relationship. - * @return ContainerManagedEntity reference - */ -public ContainerManagedEntity getSourceEntity(); - -/** - * Compute the ContainerManagedEntity which is the type of a role that participates in a relationship. - * @return The type ejb - */ -public ContainerManagedEntity getTypeEntity(); -/** -* @return The computed value of the isForward attribute -* Specifies whether this role should be mapped to a persistent reference, such as a foreign key. -*/ -public boolean isForward(); - -/** - * Returns true if this is a key - * @return The computed value isKey - */ -public boolean isKey(); - -/** - * This method should be used as a hint about the key status of the role. - * @param aBoolean the boolean value - */ -public void setKey(boolean aBoolean) ; -/** -* @return The computed value isMany -* Returns whether the upper limit of our multiplicity is > 1 -*/ -public boolean isMany(); - -/** -* -* sets the upper limit of our multiplicity -* @param upperBound the int value of the multiplicity -*/ -public void setUpper(int upperBound); - -/** -* -* sets the lower limit of our multiplicity -* @param lowerBound the int value if the multiplicity -*/ -public void setLower(int lowerBound); - -/** -* @return The computed value of the isNavigable attribute -* Specifies that accessors should be generated for this relationship role. -*/ -public boolean isNavigable(); - -/** - * Gets the attribute name of a given CMPAttribute - * @param roleAttribute the CMPAttribute - * @return the name of the targetAttribute - */ -public String getTargetAttributeName(CMPAttribute roleAttribute); - -/** - * Collects the attributes - * - */ -void reconcileAttributes(); - /** - * Method isRequired. - * @return boolean value - */ - boolean isRequired(); -} - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ContainerManagedEntity.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ContainerManagedEntity.java deleted file mode 100644 index 0e9bd21b4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ContainerManagedEntity.java +++ /dev/null @@ -1,334 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jem.java.Field; - -/** - * @generated - * @since 1.0 */ -public interface ContainerManagedEntity extends Entity{ - - /** - * Denotes 1.x version of the CMP Bean - */ - String VERSION_1_X = "1.x"; //$NON-NLS-1$ - - /** - * Denotes 2.x version of the CMP Bean - */ - String VERSION_2_X = "2.x"; //$NON-NLS-1$ - - /** - * - */ - String WAS_GENERATED_STRING_KEY = "com.ibm.ws.ejbpersistence.dataaccess.GeneratedStringPK"; //$NON-NLS-1$ - - /** - * - */ - String WAS_GENERATED_STRING_FIELD = "wasGenUnknownkeyValue"; //$NON-NLS-1$ - - /** - * Set to java.lang.Object - */ - String UNKNOWN_PRIMARY_KEY = "java.lang.Object"; //$NON-NLS-1$ - - /** - * Set to java.lang.String - */ - String JAVA_LANG_STRING = "java.lang.String"; //$NON-NLS-1$ - - /** - * - */ - int DERIVED_FLAG_CHANGE = 301; - - /** - * Create a new instance of CMPAttribute with aName and add it to the keyAttributes - * of the bean - * @param aName the name of the key attribute - * @return CMPAttribute - */ - public CMPAttribute addKeyAttributeName(String aName); - - /** - * Add a persistent attribute with the same name as the name for aField. - * @param aField a reference of type Field - * @return CMPAttribute - */ - public abstract CMPAttribute addPersistentAttribute(Field aField) ; - - /** - * Create a new instance of CMPAttribute with aName and add it to the persistent attributes - * @param aName the name of the persistent attribute - * @return CMPAttribute - */ - public abstract CMPAttribute addPersistentAttributeName(String aName) ; - /** - * Return the keyAttribute with aName. - * Creation date: (8/8/2000 9:25:27 PM) - * @return EStructuralFeature - * @param aName java.lang.String - */ - CMPAttribute getKeyAttribute(String aName) ; - /** - * Return the persistentAttribute with aName. - * Creation date: (8/8/2000 9:25:27 PM) - * @return EStructuralFeature - * @param aName java.lang.String - */ - CMPAttribute getPersistentAttribute(String aName) ; - /** - * If a primary key exists, return the persistent attribute; the primary key is defined as one and only one - * key attribute, whose type is the same as the key class - * @return a reference to the CMPAttribute - * @deprecated - Use getPrimKeyField() - */ - CMPAttribute getPrimaryKeyAttribute(); - - /** - * Returns true when invoked on the instance of this class - * @return boolean value - */ - public boolean isContainerManagedEntity(); - - /** - * Returns true if the CMP is of version 1.X - * @return boolean value - */ - public boolean isVersion1_X(); - - /** - * Returns true if the CMP is of version 2.X - * @return boolean value - */ - public boolean isVersion2_X(); - - /** - * Returns true if anAttribute is a key attribute of the CMP - * @param anAttribute a attribute of the CMP of type CMPAttribute - * @return boolean value - */ - public boolean isKeyAttribute(CMPAttribute anAttribute); - - /** - * Return whether this bean represents an instance of the "unknown primary key" case - * described in the specification. This is identified by the primary key class - * being specified as "java.lang.Object". - * In order to deploy an unknown primary key bean, we must substitute a real key, - * and add a corresponding field. - * @return boolean value - */ - public boolean isUnknownPrimaryKey(); - - /** - * Returns the list of Persistent Field Names - * @return an String array of names - */ - public String[] listPersistentFieldNames(); - - /** - * Removes the attribute with the name specified in the aField from the list of persistent attributes - * @param aField the Field reference - * @return CMPAttribute reference - */ - - CMPAttribute removePersistentAttribute(Field aField) ; - /** - * Remove the persistentAttribute named aName. - * Creation date: (8/2/2000 8:59:32 PM) - * @param aName java.lang.String - * @return CMPAttribute reference - */ - CMPAttribute removePersistentAttribute(String aName) ; - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Version attribute - * Specifies the version of an entity bean with container-managed persistence. - * - * @invariant The cmp-version element must be one of the two following: 1.x , 2.x - * @default 2.x - - */ - String getVersion(); - - /** - * This returns the module version id. Compare with J2EEVersionConstants to determine module level - * @throws IllegalStateException throws this exception when an error is encountered in getting version of the CMP - * @return the version of CMP represented in int type - */ - public int getCMPVersionID() throws IllegalStateException ; - - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Version attribute - */ - void setVersion(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the AbstractSchemaName attribute - * The abstract-schema-name element specifies the name of the abstract schema type - * of an entity bean with cmp-version 2.x. It is used in EJB QL queries. - * - * For example, the abstract-schema-name for an entity bean whose local interface - * is com.acme.commerce.Order might be Order. - * - - */ - String getAbstractSchemaName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the AbstractSchemaName attribute - */ - void setAbstractSchemaName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of PersistentAttributes references - */ - EList getPersistentAttributes(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of KeyAttributes references - */ - EList getKeyAttributes(); - - /** - * Returns the value of the '<em><b>Queries</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.ejb.Query}. - * It is bidirectional and its opposite is '{@link org.eclipse.jst.j2ee.ejb.Query#getEntity <em>Entity</em>}'. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Queries</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 moved from CME - * The optional query elements must be present if the persistence-type is Container and the cmp-version is 2.x and query methods other than findByPrimaryKey have been defined for the entity bean. - * - * @invariant see description - * - * <!-- end-model-doc --> - * @return the value of the '<em>Queries</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getContainerManagedEntity_Queries() - * @see org.eclipse.jst.j2ee.ejb.Query#getEntity - * @model type="org.eclipse.jst.j2ee.ejb.Query" opposite="entity" containment="true" - * @generated - */ - EList getQueries(); - - /** - * Returns the value of the '<em><b>CMP Attribute</b></em>' reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.ejb.CMPAttribute}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>CMP Attribute</em>' reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>CMP Attribute</em>' reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getContainerManagedEntity_CMPAttribute() - * @model type="org.eclipse.jst.j2ee.ejb.CMPAttribute" - * @generated - */ - EList getCMPAttribute(); - - /** - * Returns the value of the '<em><b>Prim Key Field</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Prim Key Field</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Prim Key Field</em>' reference. - * @see #setPrimKeyField(CMPAttribute) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getContainerManagedEntity_PrimKeyField() - * @model - * @generated - */ - CMPAttribute getPrimKeyField(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.ContainerManagedEntity#getPrimKeyField <em>Prim Key Field</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Prim Key Field</em>' reference. - * @see #getPrimKeyField() - * @generated - */ - void setPrimKeyField(CMPAttribute value); - - /** - * Return a List of all the available Query methods for the Home and Local Home interfaces. - * @return List of Find Query Methods - */ - List getAvailableFindQueryMethods() ; - /** - * Return a List of all the available Query methods for the Bean class. - * @return List of Select Query Methods - */ - List getAvailableSelectQueryMethods(); - /** - * Return a List, sorted by signature, of all the available Query methods - * on the remote Home, local Home, or ejbSelect methods on the bean class - * @return List of Query methods - */ - List getAllAvailableQueryMethods(); - - /** - * Returns the list of EJBExtensionFilter - * @param aFilter a reference of type EJBExtensionFilter - * @return List of filtered features - */ - public List getFilteredFeatures(EJBExtensionFilter aFilter); - - /** - * Makes the primary Key Field proxy. - * - */ - public void makePrimKeyFieldProxy(); - /** - * Gets the list of CMR Fields - * @return The list of all CMR fields for this bean. - */ - public List getCMRFields(); - /** - * @return The list of all roles where this bean is the source. - * @link CommonRelationshipRole - */ - public List getRoles(); - - /** - * Return a specific CommonRelationshipRole which has a named role - * that is equal to <code>roleName</code>. - * @see CommonRelationshipRole - * @param roleName the role name - * @return a reference to CommonRelationshipRole instance - */ - public CommonRelationshipRole getRole(String roleName); - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/DestinationType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/DestinationType.java deleted file mode 100644 index 4b3f334b6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/DestinationType.java +++ /dev/null @@ -1,132 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface DestinationType {} - * @since 1.0 - */ -public final class DestinationType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int QUEUE= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int TOPIC= 1; - - /** - * The '<em><b>Queue</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Queue</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #QUEUE - * @generated - * @ordered - */ - public static final DestinationType QUEUE_LITERAL = new DestinationType(QUEUE, "Queue"); //$NON-NLS-1$ - - /** - * The '<em><b>Topic</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Topic</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #TOPIC - * @generated - * @ordered - */ - public static final DestinationType TOPIC_LITERAL = new DestinationType(TOPIC, "Topic"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Destination Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final DestinationType[] VALUES_ARRAY = - new DestinationType[] { - QUEUE_LITERAL, - TOPIC_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Destination Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Destination Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static DestinationType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - DestinationType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Destination Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static DestinationType get(int value) { - switch (value) { - case QUEUE: return QUEUE_LITERAL; - case TOPIC: return TOPIC_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * - * <!-- end-user-doc --> - * @generated - */ - private DestinationType(int value, String name) { - super(value, name); - } - -} //DestinationType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBExtensionFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBExtensionFilter.java deleted file mode 100644 index e8d2102aa..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBExtensionFilter.java +++ /dev/null @@ -1,78 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import java.util.List; - -/** - * Insert the type's description here. - * Creation date: (11/28/2000 5:31:53 PM) - * @author: Administrator - * @since 1.0 */ -public interface EJBExtensionFilter { - - /** - * Return a List of one of the properties using a Filter - * @param ejb reference to the Enterprise Bean model - * @return List - */ - List filter(EnterpriseBean ejb) ; -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBJar.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBJar.java deleted file mode 100644 index dbadea1b6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBJar.java +++ /dev/null @@ -1,265 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.EjbRef; - -/** - * The root element of the EJB deployment descriptor. It contains an optional description of the ejb-jar file; optional display name; optional small icon file name; optional large icon file - * name; mandatory structural information about all included enterprise beans; a descriptor for container managed relationships, if any; an optional application-assembly descriptor; and an optional name of an ejb-client-jar file for the ejb-jar. - * @since 1.0 */ -public interface EJBJar extends CompatibilityDescriptionGroup{ - -/** - * Return true if there are any ContainerManagedEntity beans in this jar. - * @return boolean value - */ -boolean containsContainerManagedBeans() ; - -/** - * Returns true if there is security role with the name specified in the argument - * @param name the name of the security role - * @return boolean value - */ -public boolean containsSecurityRole(String name); -/** - * Return List of BeanManaged beans in this jar. - * @return java.util.List - */ -List getBeanManagedBeans() ; -/** - * Return List of ContainerManagedEntity beans in this jar. - * @return java.util.List - */ -List getContainerManagedBeans() ; -/** - * Return List of EJB 1.1 ContainerManagedEntity beans in this jar. - * @return java.util.List - */ -List getEJB11ContainerManagedBeans() ; -/** - * Return List of EJB 2.0 ContainerManagedEntity beans in this jar. - * @return java.util.List - */ -List getEJB20ContainerManagedBeans() ; -/** - * Return List of MessageDriven beans in this jar. - * @return java.util.List - */ -List getMessageDrivenBeans() ; -/** - * @return The list of EjbRelations references - * A list of ejb-relation elements, which specify the container managed relationships. - */ -public List getEjbRelations(); -/** - * Return an enterprise bean referenced by the EjbRef, if one exists. The ejb-link value - * of the ref must equate to a named enterprise bean contained in the jar; otherwise return - * null - * @param ref reference to the EjbRef - * @return reference to the EnterpriseBean model - */ -public EnterpriseBean getEnterpiseBeanFromRef(EjbRef ref); - -/** - * Return the enterprise bean model which has the bean name of ejbName - * @param ejbName the name of the Enterprise Bean - * @return reference to the EnterpriseBean model - */ -public EnterpriseBean getEnterpriseBeanNamed(String ejbName); -/** - * Return ALL EnterpriseBean(s) that are referencing @aJavaClass as a - * home, remote, bean class, or key class. - * @param aJavaClass a reference of type JavaClass - * @return java.util.List of EnterpriseBean - */ -List getEnterpriseBeansWithReference(JavaClass aJavaClass) ; -/** - * Return the *FIRST* EnterpriseBean that is referencing @aJavaClass as its - * home, remote, bean class, or key class. - * @param aJavaClass a refernce of type JavaClass - * @return reference to EnterpriseBean model - */ -EnterpriseBean getEnterpriseBeanWithReference(JavaClass aJavaClass) ; -/** - * Return List of Session beans in this jar. - * @return java.util.List of EnterpriseBean - */ -List getSessionBeans() ; -/** - * Return boolean indicating if this EJB JAR was populated from an EJB 1.1 descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -boolean isVersion1_1Descriptor() ; -/** - * Return boolean indicating if this EJB JAR was populated from an EJB 2.0 descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -boolean isVersion2_0Descriptor() ; -/** - * Rename the security role contained in the assembly descriptor; for each enterprise bean, fix the role-link on any contained role - * refs - * @param existingRoleName the old name of the Security Role - * @param newRoleName the new name of the Security Role - */ -public void renameSecurityRole(String existingRoleName, String newRoleName); - /** - *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level - *@throws IllegalStateException when an error is encountered while getting the version - *@return the j2ee version of the Enterprise Bean in int - */ - public int getJ2EEVersionID() throws IllegalStateException ; - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the EjbClientJar attribute - * The optional ejb-client-jar element specifies a JAR file that contains the - * class files necessary for a client program to access the enterprise beans in - * the ejb-jar file. The Deployer should make the ejb-client JAR file accessible - * to the client's class-loader. - * Example:<ejb-client-jar>employee_service_client.jar<//ejb-client-jar> - - */ - String getEjbClientJar(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the EjbClientJar attribute - */ - void setEjbClientJar(String value); - - /** - * Returns the value of the '<em><b>Version</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Version</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The version specifies the version of the - * EJB specification that the instance document must - * comply with. This information enables deployment tools - * to validate a particular EJB Deployment - * Descriptor with respect to a specific version of the EJB - * schema. - * <!-- end-model-doc --> - * @return the value of the '<em>Version</em>' attribute. - * @see #setVersion(String) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getEJBJar_Version() - * @model - * @generated - */ - String getVersion(); - - /** - * This returns the module version id. Compare with J2EEVersionConstants to determine module level - * @throws IllegalStateException when an error is encountered while getting the spec version of the bean - * @return the spec version of the EnterpriseBean, 11, 20, 21 - */ - public int getVersionID() throws IllegalStateException ; - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.EJBJar#getVersion <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Version</em>' attribute. - * @see #getVersion() - * @generated - */ - void setVersion(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The AssemblyDescriptor reference - */ - AssemblyDescriptor getAssemblyDescriptor(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the AssemblyDescriptor reference - */ - void setAssemblyDescriptor(AssemblyDescriptor value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of EnterpriseBeans references - * The enterprise-beans element contains the declarations of one or more - * enterprise beans. - */ - EList getEnterpriseBeans(); - - /** - * @generated This field/method will be replaced during code generation - * @return The RelationshipList reference - * The relationships collection describes the relationships in which container - * managed persistence entity beans and dependent objects participate. The - * relationships element contains an optional description; a list of - * ejb-entity-ref elements (references to entity beans that participate in - * container managed relationships but whose abstract persistence schemas are not - * included in the ejb-jar file); - * and a list of ejb-relation elements, which specify the container managed - * relationships. - */ - Relationships getRelationshipList(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the RelationshipList reference - */ - void setRelationshipList(Relationships value); - - /** - * Return the EJBRelationshipRole with the same name as <code>aRoleName</code> - * that has <code>sourceCMP</code> as its source bean. - * @param aRoleName the role name - * @param sourceCMP reference to ContainerManagedEntity - * @return a reference to EJBRelationshipRole - */ - EJBRelationshipRole getRelationshipRole(String aRoleName, ContainerManagedEntity sourceCMP) ; - - /** - * Return the first EJBRelation with the same name as <code>aRelationName</code>. - * @param aRelationName the name of the relation - * @return a reference to EJBRelation - */ - EJBRelation getEJBRelation(String aRelationName) ; - - /** - * Return all EJBRelation objects that have an EJBRelationshipRole with a - * source EJB of <code>cmp</code>. - * @param cmp reference to ContainerManagedEntity - * @return List of EJBRelation - */ - List getEJBRelationsForSource(ContainerManagedEntity cmp); - - /** - * Return all EJBRelationshipRole objects that have an EJBRelationshipRole with a - * type EJB of <code>cmp</code>. - * @param cmp reference to ContainerManagedEntit - * @return List of EJBRelationshipRole - */ - List getEJBRelationshipRolesForType(ContainerManagedEntity cmp) ; -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBMethodCategory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBMethodCategory.java deleted file mode 100644 index a42f70a20..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBMethodCategory.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.ecore.EObject; -/** - * The valid EJB method category names are: EJBHOMEMETHOD, EJBCREATEMETHOD, EJBFINDERMETHOD, EJBREMOTEMETHOD. - * @since 1.0 */ -public interface EJBMethodCategory extends EObject{ - //EJBMethodCategory -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBRelation.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBRelation.java deleted file mode 100644 index 63bd7ae4e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBRelation.java +++ /dev/null @@ -1,126 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * The ejb-relation element describes a relationship between two entity beans with container managed persistence. An ejb-relation element contains a description; an optional ejb-relation-name element; and exactly two relationship role declarations, defined by the ejb-relationship-roles. The name of the relationship, if specified, is unique within the ejb-jar file. - * - * @invariant The name of the relationship, if specified, is unique within the ejb-jar file. - * @invariant self.relationshipRoles.size == 2 - * @invariant self.relationshipRoles[0].name != self.relationshipRoles[1].name - * - * @migration EJB1.1 Moved from ejbext::EjbRelationshipRole contained under ejbext::EJBJarExtension - * @migration EJB1.1 added optional attribute, description:String - * @migration EJB1.1 added optional attribute, name:String (May have been inherited from EObject previously) - * @since 1.0 */ -public interface EJBRelation extends EObject,CommonRelationship{ - -boolean containsRelationshipRole(EJBRelationshipRole aRole) ; -EJBRelationshipRole getFirstRole() ; -/** - * Return the other role. - */ - -EJBRelationshipRole getOppositeRole(EJBRelationshipRole aRole) ; -EJBRelationshipRole getSecondRole() ; -/** - * Set the forward role. - */ - -void setFoward(EJBRelationshipRole aRole) ; - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description is used by the ejb-jar file producer to provide text describing - * the ejb relation. - * - * The description should include any information that the ejb-jar file producer - * wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). - * Typically, the tools used by the ejb-jar file consumer will display the - * description when processing the list of dependents. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Name attribute - * The name of the relationship. If specified, must be unique within the ejb-jar - * file. - * @invariant self.name unique within Set<collect(ejbJar.ejbRelations.name)> - */ - String getName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Name attribute - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The RelationshipList reference - */ - Relationships getRelationshipList(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the RelationshipList reference - */ - void setRelationshipList(Relationships value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of RelationshipRoles references - * A collection containing exactly two relationship roles. - * - * @migration EJB1.1 Containment used to be by reference on relation--now by value. - - */ - EList getRelationshipRoles(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getEJBRelation_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - - /** - * Return the EJBRelationshipRole with the same name as <code>aRoleName</code>. - */ - EJBRelationshipRole getRelationshipRole(String aRoleName) ; -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBRelationshipRole.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBRelationshipRole.java deleted file mode 100644 index 8a00cfa1d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBRelationshipRole.java +++ /dev/null @@ -1,307 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - - -/** - * The ejb-relationship-role element describes a role within a relationship. - * There are two roles in each relationship. The ejb-relationship-role element contains an optional description; an optional name for the relationship role; a specification of the multiplicity of the role; an optional specification of cascade-delete functionality for the role; the role source; and a declaration of the cmr-field, if any, by means of which the other side of the relationship is accessed from the perspective of the role source. The multiplicity and relationship-role-source element are mandatory. The relationship-role-source element designates an entity-bean by means of an ejb-name element. For bidirectional relationships, both roles of a relationship must declare a relationship-role-source element that specifies a cmr-field in terms of which the relationship is accessed. The lack of a cmr-field element in an ejb-relationship-role specifies that the relationship is unidirectional in navigability and that entity bean that participates in the relationship is "not aware" of the relationship. - * - * @invariant multiplicity != null - * @invariant roleSource != null - * @invariant Cascade delete can only be specified in an EJBRelationshipRole element in which the roleSource element specifies a dependent object class. - * @invariant Cascade delete can only be specified for an EJBRelationshipRole contained in an EJBrelation in which the other EJBRelationshipRole element specifies a multiplicity of One. - * - * Example: - * <ejb-relation> - * <ejb-relation-name>Product-LineItem<//ejb-relation-name> - * <ejb-relationship-role> - * <ejb-relationship-role-name>product-has-lineitems<//ejb-relationship-role-name> - * <multiplicity>One<//multiplicity> - * <relationship-role-source> - * <ejb-name>ProductEJB<//ejb-name> - * <//relationship-role-source> - * <//ejb-relationship-role> - * ... - * @since 1.0 */ -public interface EJBRelationshipRole extends EObject,CommonRelationshipRole{ - -/** - * @return The logical name which can be used for naming this role. - * Required to be unique within a JAR. - * If a cmr-field is defined, then a name in the form %source-ejb-name%_%cmr-field-name% is computed. - * Otherwise a default ID is generated. - */ -public String getLogicalName(); -/** - * Return the other role. - */ - -EJBRelationshipRole getOpposite() ; -/** - * @return java.lang.String the unique name for this role - * */ -public java.lang.String getName(); -/** - * @return The Source ejb - * Compute the ContainerManagedEntity which is the source of a role that participates in a relationship. - */ -public ContainerManagedEntity getSourceEntity(); -/** -* @return The computed value of the isForward attribute -* Specifies whether this role should be mapped to a persistent reference, such as a foreign key. -*/ -public boolean isForward(); -/** -* @return The computed value isMany -* Returns whether the upper limit of our multiplicity is > 1 -*/ -public boolean isMany(); -/** -* @return The computed value of the isNavigable attribute -* Specifies that accessors should be generated for this relationship role. -*/ -public boolean isNavigable(); -/** - * Set this role to be the forward role. - */ - -void setFoward() ; - -public void setName(java.lang.String uniqueName); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description is used by the ejb-jar file producer to provide text describing - * the ejb relationship role. - * - * The description should include any information that the ejb-jar file producer - * wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). - * Typically, the tools used by the ejb-jar file consumer will display the - * description when processing the list of dependents. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the RoleName attribute - * Defines a name for a role that is unique within an ejb-relation. Different - * relationships can use the same name for a role. - - */ - String getRoleName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the RoleName attribute - */ - void setRoleName(String value); - - /** - * Returns the value of the '<em><b>Multiplicity</b></em>' attribute. - * The literals are from the enumeration {@link org.eclipse.jst.j2ee.ejb.MultiplicityKind}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Multiplicity</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * Describes the multiplicity of the role that participates in a relation. - * - * The multiplicity element must be one of the two following: - * One - * Many - * - * <!-- end-model-doc --> - * @return the value of the '<em>Multiplicity</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.MultiplicityKind - * @see #isSetMultiplicity() - * @see #unsetMultiplicity() - * @see #setMultiplicity(MultiplicityKind) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getEJBRelationshipRole_Multiplicity() - * @model unsettable="true" - * @generated - */ - MultiplicityKind getMultiplicity(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.EJBRelationshipRole#getMultiplicity <em>Multiplicity</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Multiplicity</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.MultiplicityKind - * @see #isSetMultiplicity() - * @see #unsetMultiplicity() - * @see #getMultiplicity() - * @generated - */ - void setMultiplicity(MultiplicityKind value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.EJBRelationshipRole#getMultiplicity <em>Multiplicity</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetMultiplicity() - * @see #getMultiplicity() - * @see #setMultiplicity(MultiplicityKind) - * @generated - */ - void unsetMultiplicity(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.EJBRelationshipRole#getMultiplicity <em>Multiplicity</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Multiplicity</em>' attribute is set. - * @see #unsetMultiplicity() - * @see #getMultiplicity() - * @see #setMultiplicity(MultiplicityKind) - * @generated - */ - boolean isSetMultiplicity(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the CascadeDelete attribute - * Specifies that, within a particular relationship, the lifetime of one or more - * entity beans is dependent upon the lifetime of another entity bean. The - * cascade-delete element can Cascade delete can only be specified for an - * EJBRelationshipRole contained in an EJBrelation in which the other - * EJBRelationshipRole element specifies a multiplicity of One. - * - * - - */ - boolean isCascadeDelete(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the CascadeDelete attribute - */ - void setCascadeDelete(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.EJBRelationshipRole#isCascadeDelete <em>Cascade Delete</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetCascadeDelete() - * @see #isCascadeDelete() - * @see #setCascadeDelete(boolean) - * @generated - */ - void unsetCascadeDelete(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.EJBRelationshipRole#isCascadeDelete <em>Cascade Delete</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Cascade Delete</em>' attribute is set. - * @see #unsetCascadeDelete() - * @see #isCascadeDelete() - * @see #setCascadeDelete(boolean) - * @generated - */ - boolean isSetCascadeDelete(); - - /** - * @generated This field/method will be replaced during code generation - * @return The Relationship reference - */ - EJBRelation getRelationship(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the Relationship reference - */ - void setRelationship(EJBRelation value); - - void setRequired(Boolean isRequired); - /** - * @generated This field/method will be replaced during code generation - * @return The Source reference - * Designates the source of a role that participates in a relationship. A - * relationship-role-source element uniquely identifies an entity bean. - * @migration EJB1.1: was ibmejbext::EjbRelationshipRole::sourceEJBName, but that - * may not be sufficient, as this can now refer to dependent class names or ejb - * refs - */ - RoleSource getSource(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the Source reference - */ - void setSource(RoleSource value); - - /** - * @generated This field/method will be replaced during code generation - * @return The CmrField reference - * A declaration of the CMRField, if any, by means of which the other side of the - * relationship is accessed from the perspective of the role source - * - * @migration EJB1.1: Used to be handled via ibmejbext::EjbRole::attributes list - */ - CMRField getCmrField(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the CmrField reference - */ - void setCmrField(CMRField value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getEJBRelationshipRole_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - - /** - * Return whether this role is part of the key of the source EJB. - */ - boolean isKey(); - - /** - * This allows you to set the Role as being key so it will - * not traverse it attributes to determine if it is key. - */ - void setKey(boolean aBoolean) ; - - void reconcileAttributes() ; -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBResource.java deleted file mode 100644 index 7ea1b4b0d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBResource.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 27, 2003 - * - */ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.jst.j2ee.internal.common.XMLResource; - -/** - * @author schacher - * @since 1.0 */ -public interface EJBResource extends XMLResource { - EJBJar getEJBJar(); - /** - * Return true if this Resource supports the EJB 1.1 spec. - */ - boolean isEJB1_1(); - /** - * Return true if this Resource supports the EJB 2.0 spec. - */ - boolean isEJB2_0(); - /** - * Sets the batchMode. - * @param batchMode The batchMode to set - */ - public void setBatchMode(boolean isBatch); - /** - * Gets the batchmode - from the renderer - */ - public boolean isBatchMode(); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbFactory.java deleted file mode 100644 index 824abef9a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbFactory.java +++ /dev/null @@ -1,204 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.jem.java.Method; -/** - * @generated - * @since 1.0 */ -public interface EjbFactory extends EFactory{ - - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EjbFactory eINSTANCE = new org.eclipse.jst.j2ee.ejb.internal.impl.EjbFactoryImpl(); - - /** - * Creates and returns a reference to a MethodElement from the given signature - * @param aSignature the signature of the MethodElement - * @return MethodElement reference - */ - MethodElement createMethodElement(String aSignature) ; - - /** - * Creates and returns a reference to a MethodElement from the given reference of a Method - * @param method the reference of a Method - * @return MethodElement reference - */ - MethodElement createMethodElementFrom(Method method) ; - - /** - * Creates and returns a reference to a MethodElement from the given reference of a java.lang.reflect.Method - * @param method reference of a java.lang.reflect.Method - * @return MethodElement reference - */ - MethodElement createMethodElementFrom(java.lang.reflect.Method method) ; - /** - * @generated This field/method will be replaced during code generation - * @return MethodPermission value - */ - MethodPermission createMethodPermission(); - - /** - * @generated This field/method will be replaced during code generation - * @return AssemblyDescriptor value - */ - AssemblyDescriptor createAssemblyDescriptor(); - - /** - * @generated This field/method will be replaced during code generation - * @return MethodTransaction value - */ - MethodTransaction createMethodTransaction(); - - /** - * @generated This field/method will be replaced during code generation - * @return Entity value - */ - Entity createEntity(); - - /** - * @generated This field/method will be replaced during code generation - * @return ContainerManagedEntity value - */ - ContainerManagedEntity createContainerManagedEntity(); - - /** - * @generated This field/method will be replaced during code generation - * @return CMPAttribute value - */ - CMPAttribute createCMPAttribute(); - - /** - * @generated This field/method will be replaced during code generation - * @return CMRField value - */ - CMRField createCMRField(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBRelationshipRole value - */ - EJBRelationshipRole createEJBRelationshipRole(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBRelation value - */ - EJBRelation createEJBRelation(); - - /** - * @generated This field/method will be replaced during code generation - * @return Relationships value - */ - Relationships createRelationships(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBJar value - */ - EJBJar createEJBJar(); - - /** - * @generated This field/method will be replaced during code generation - * @return RoleSource value - */ - RoleSource createRoleSource(); - - /** - * @generated This field/method will be replaced during code generation - * @return Query value - */ - Query createQuery(); - - /** - * @generated This field/method will be replaced during code generation - * @return QueryMethod value - */ - QueryMethod createQueryMethod(); - - /** - * Returns a new object of class '<em>Activation Config Property</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Activation Config Property</em>'. - * @generated - */ - ActivationConfigProperty createActivationConfigProperty(); - - /** - * Returns a new object of class '<em>Activation Config</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Activation Config</em>'. - * @generated - */ - ActivationConfig createActivationConfig(); - - /** - * @generated This field/method will be replaced during code generation - * @return MethodElement value - */ - MethodElement createMethodElement(); - - /** - * @generated This field/method will be replaced during code generation - * @return ExcludeList value - */ - ExcludeList createExcludeList(); - - /** - * @generated This field/method will be replaced during code generation - * @return Session value - */ - Session createSession(); - - /** - * @generated This field/method will be replaced during code generation - * @return MessageDriven value - */ - MessageDriven createMessageDriven(); - - /** - * @generated This field/method will be replaced during code generation - * @return MessageDrivenDestination value - */ - MessageDrivenDestination createMessageDrivenDestination(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBMethodCategory value - */ - EJBMethodCategory createEJBMethodCategory(); - - /** - * <!-- begin-user-doc --> - * This method is NOT api, and may change in future releases. - * EMF package classes should be access via their "eINSTANCE" static fields - * <!-- end-user-doc --> - * @generated This field/method will be replaced during code generation. - * @return EjbPackage - */ - EjbPackage getEjbPackage(); - -} - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbMethodElementComparator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbMethodElementComparator.java deleted file mode 100644 index 8acd95e51..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbMethodElementComparator.java +++ /dev/null @@ -1,118 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import java.util.Comparator; - -/** - * @since 1.0 - */ - -public class EjbMethodElementComparator implements Comparator { - /** - * Specifies the Interface type HOME - */ - static final int HOME = MethodElementKind.HOME; - /** - * Specifies the Interface type REMOTE - */ - static final int REMOTE = MethodElementKind.REMOTE; - /** - * Specifies the Interface type LOCAL_HOME - */ - static final int LOCAL_HOME = MethodElementKind.LOCAL_HOME; - /** - * Specifies the Interface type LOCAL - */ - static final int LOCAL = MethodElementKind.LOCAL; - /** - * The Interface type is unspecified - */ - static final int UNSPECIFIED = MethodElementKind.UNSPECIFIED; - - /** - * Constructor for EjbMethodElementComparator. - */ - public EjbMethodElementComparator() { - super(); - } - - /** - * Compares two arguments for order. - * @see Comparator#compare(Object, Object) - *@param o1 the first object to be compared - *@param 02 the second object to be compared - *@return a negative integer, zero, or a positive integer - */ - public int compare(Object o1, Object o2) { - return compare((MethodElement) o1, (MethodElement) o2); - } - /** - * Sort by type first in the following order: - * Home, Remote, LocalHome, Local, Unspecified - * Then alphabetically order. - * - * @param me1 the first object to be compared - * @param me2 the second object to be compared - * @return a negative integer, zero, or a positive integer - */ - protected int compare(MethodElement me1, MethodElement me2) { - int type1, type2; - type1 = me1.getType().getValue(); - type2 = me2.getType().getValue(); - if (type1 == type2) - return compareSignatures(me1, me2); - return compareTypes(type1, type2); - } - - /** - * @param type1 the first object to be compared - * @param type2 the second object to be compared - * @return a negative integer, zero, or a positive integer - */ - protected int compareTypes(int type1, int type2) { - if (type1 == HOME) - return -1; - if (type1 == REMOTE) { - if (type2 == HOME) - return 1; - return -1; - } - if (type1 == LOCAL_HOME) { - if (type2 == HOME || type2 == REMOTE) - return 1; - return -1; - } - if (type1 == LOCAL) { - if (type2 == HOME || type2 == REMOTE || type2 == LOCAL_HOME) - return 1; - return -1; - } - if (type1 == UNSPECIFIED) { - if (type2 == HOME || type2 == REMOTE || type2 == LOCAL_HOME || type2 == LOCAL) - return 1; - return -1; - } - return -1; - } - /** - * @param me1 the first object to be compared - * @param me2 the second object to be compared - * @return a negative integer, zero, or a positive integer - */ - protected int compareSignatures(MethodElement me1, MethodElement me2) { - String sig1, sig2; - sig1 = me1.getSignature(); - sig2 = me2.getSignature(); - return sig1.compareTo(sig2); - } -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbMethodElementHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbMethodElementHelper.java deleted file mode 100644 index ac76230d5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbMethodElementHelper.java +++ /dev/null @@ -1,593 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 21, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.ejb; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Comparator; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbFactoryImpl; - -/** - * @author blancett - * @since 1.0 - * Used to sort and filter method element lists - */ -public class EjbMethodElementHelper { - /** - * Used to filter methods - */ - public static final int ALL_METHODS = 0; - /** - * Used to filter methods - */ - public static final int HOME_METHODS = 1; - /** - * Used to filter methods - */ - public static final int CLIENT_METHODS = 2; - /** - * Used to filter methods - */ - public static final int REMOTE_METHODS = 3; - /** - * Used to filter methods - */ - public static final int LOCAL_METHODS = 4; - /** - * Used to filter methods - */ - public static final int LOCAL_HOME_METHODS = 5; - /** - * Used to filter methods - */ - public static final int LOCAL_REMOTE_METHODS = 6; - /** - * a MethodElement comparator - */ - protected EjbMethodElementComparator defaultMEComparator; - /** - * a MethodElement comparator - */ - protected EjbMethodElementComparator defaultMethodElementComparator; - private static EjbMethodElementHelper singleton; - /** - * Used to filter methods - */ - public static final String DEFAULT_METHOD_NAME = "*"; //$NON-NLS-1$ - protected static final String METHOD_ELEMENT_NAME = "MethodElement"; //$NON-NLS-1$ - /** - * Constructor to create helper class - */ - public EjbMethodElementHelper() { - super(); - } - /** - * @return the singleton instance for this helper - */ - public static EjbMethodElementHelper singleton() { - if (singleton == null) - singleton = new EjbMethodElementHelper(); - return singleton; - } - public boolean isMethodElementsEqual(MethodElement me1, MethodElement me2) { - return (me1.getSignature().equals(me2.getSignature()) - && me1.getEnterpriseBean() == me2.getEnterpriseBean() - && me1.getMethodParams().equals(me2.getMethodParams()) - && me1.getType() == me2.getType()); - } - public boolean isMethodElementinList(List meList, Object me) { - if (! (me instanceof MethodElement)) - return false; - for (int i = 0; i < meList.size(); i++) { - if (meList.get(i) instanceof MethodElement) { - MethodElement element = (MethodElement) meList.get(i); - if (isMethodElementsEqual(element, (MethodElement)me)) - return true; - } - } - return false; - } - /** - * @return a EjbMethodElementComparator - */ - protected EjbMethodElementComparator getDefaultMEComparator() { - if (defaultMEComparator == null) - defaultMEComparator = new EjbMethodElementComparator(); - return defaultMEComparator; - } - /** - * @return a EjbMethodElementComparator - */ - protected EjbMethodElementComparator getDefaultMethodElementComparator() { - if (defaultMethodElementComparator == null) - defaultMethodElementComparator = new EjbMethodElementComparator(); - return defaultMethodElementComparator; - } - /** - * @param result - * @param someQueries - */ - protected void excludeQueryMethods(List result, List someQueries) { - if (someQueries.isEmpty()) - return; - int size = someQueries.size(); - List methods = new ArrayList(size); - Query query = null; - for (int i = 0; i < size; i++) { - query = (Query) someQueries.get(i); - methods.add(query.getQueryMethod()); - } - excludeMethodElements(result, methods); - } - /** - * @param cmp - * @return - */ - public List getAvailableSelectQueryMethodsExcludingExisting(ContainerManagedEntity cmp) { - if (cmp == null) - return Collections.EMPTY_LIST; - List result = cmp.getAvailableSelectQueryMethods(); - List existing = cmp.getQueries(); - excludeQueryMethods(result, existing); - return result; - } - /** - * Used to return finder methods with filter - * @param cmp bean to exclude - * @return list of method elements - */ - public List getAvailableFindQueryMethodsExcludingExisting(ContainerManagedEntity cmp) { - if (cmp == null) - return Collections.EMPTY_LIST; - List result = cmp.getAvailableFindQueryMethods(); - List existing = cmp.getQueries(); - excludeQueryMethods(result, existing); - return result; - } - /** - * @param object - * @param bean used to search - * @return list of method elements - */ - public List getExistingOrAvailableTransactionMethodElements(EObject object, EnterpriseBean bean) { - List result = new ArrayList(); - result.addAll(getAvailableMethodTransactionMethodElementsExcludingExisting(bean)); - unionMethodElements(result, getExistingMethodElements(object, bean)); - Collections.sort(result, getDefaultMEComparator()); - return result; - } - /** - * @param refObject - * @param bean - * @return - */ - protected List getExistingMethodElements(EObject refObject, EnterpriseBean bean) { - if (refObject != null) { - EjbPackage pack = getEjbPackage(); - if (refObject.eClass() == pack.getMethodTransaction()) - return ((MethodTransaction) refObject).getMethodElements(bean); - if (refObject.eClass() == pack.getMethodPermission()) - return ((MethodPermission) refObject).getMethodElements(bean); - } - return Collections.EMPTY_LIST; - } - /** - * @param sourceMethodElements - * @param additionalMethodElements - */ - protected void unionMethodElements(List sourceMethodElements, List additionalMethodElements) { - MethodElement sourceME, additionalME; - int sourceSize, addSize; - sourceSize = sourceMethodElements.size(); - addSize = additionalMethodElements.size(); - List foundElements = new ArrayList(addSize); - boolean found = false; - for (int i = 0; i < addSize; i++) { - found = false; - additionalME = (MethodElement) additionalMethodElements.get(i); - sourceME = null; - for (int ii = 0; ii < sourceSize; ii++) { - sourceME = (MethodElement) sourceMethodElements.get(ii); - if (sourceME.isEquivalent(additionalME)) { - found = true; - break; - } - } - if (found) - foundElements.add(sourceME); - } - sourceMethodElements.removeAll(foundElements); - sourceMethodElements.addAll(additionalMethodElements); - } - /** - * @param bean - * @return - */ - public List getAvailableMethodTransactionMethodElementsExcludingExisting(EnterpriseBean bean) { - List result = new ArrayList(); - List filteredMethods = new ArrayList(); - if (bean.isEntity()) { - if (bean.getRemoteInterface() != null) { - filteredMethods = bean.getRemoteInterface().getMethodsExtendedWithFilters(Collections.EMPTY_LIST, getEntityMethodTransactionExcludedMethods((Entity) bean, REMOTE_METHODS)); - result.addAll(createMethodElements(getMethodElementSignatures(filteredMethods), MethodElementKind.REMOTE_LITERAL, bean)); - } - if (bean.getHomeInterface() != null) { - filteredMethods = bean.getHomeInterface().getMethodsExtendedWithFilters(Collections.EMPTY_LIST, getEntityMethodTransactionExcludedMethods((Entity) bean, HOME_METHODS)); - result.addAll(createMethodElements(getMethodElementSignatures(filteredMethods), MethodElementKind.HOME_LITERAL, bean)); - } - if (bean.getLocalInterface() != null) { - filteredMethods = bean.getLocalInterface().getMethodsExtendedWithFilters(Collections.EMPTY_LIST, getEntityMethodTransactionExcludedMethods((Entity) bean, LOCAL_METHODS)); - result.addAll(createMethodElements(getMethodElementSignatures(filteredMethods), MethodElementKind.LOCAL_LITERAL, bean)); - } - if (bean.getLocalHomeInterface() != null) - result.addAll(bean.getAvailableLocalHomeMethodElements()); - result.addAll(bean.getAvailableUnspecifiedMethodElements()); - } else if (bean.isSession()) { - if (bean.getRemoteInterface() != null) { - filteredMethods = bean.getRemoteInterface().getMethodsExtendedWithFilters(getSessionMethodTransactionExcludedClasses((Session) bean, REMOTE_METHODS), Collections.EMPTY_LIST); - result.addAll(createMethodElements(getMethodElementSignatures(filteredMethods), MethodElementKind.REMOTE_LITERAL, bean)); - } - if (bean.getLocalInterface() != null) { - filteredMethods = bean.getLocalInterface().getMethodsExtendedWithFilters(getSessionMethodTransactionExcludedClasses((Session) bean, LOCAL_METHODS), Collections.EMPTY_LIST); - result.addAll(createMethodElements(getMethodElementSignatures(filteredMethods), MethodElementKind.LOCAL_LITERAL, bean)); - } - result.add(bean.getAvailableUnspecifiedMethodElements().get(0)); - } else if (bean.isMessageDriven()) { - filteredMethods = Arrays.asList(new Object[]{getMethod(bean.getEjbClass(), getMDBMethod_Sig())}); - result.addAll(bean.createMethodElements(filteredMethods, bean.getEjbClass())); - } - return result; - } - public List getMethodElementSignatures(List methods) { - List signatures, sameNames; - sameNames = new ArrayList(); - signatures = new ArrayList(methods.size() + 1); - signatures.add(DEFAULT_METHOD_NAME); - Iterator it = methods.iterator(); - Method aMethod; - String methodName; - while (it.hasNext()) { - aMethod = (Method) it.next(); - methodName = aMethod.getName(); - if (sameNames.contains(methodName)) { - if (!signatures.contains(methodName)) - signatures.add(methodName); - } else - sameNames.add(methodName); - signatures.add(aMethod.getMethodElementSignature()); - } - Collections.sort(signatures); - return signatures; - } - /** - * Create method elements on EJB - * @param signatures - List of method sigs - * @param aType - The enum type - * @param bean - EJB bean passed - * @return a List of method elements - */ - protected List createMethodElements(List signatures, Enumerator aType, EnterpriseBean bean) { - return createMethodElements(METHOD_ELEMENT_NAME, signatures, aType, bean); - } - /** - * @return - */ - protected EjbPackage getEjbPackage() { - return EjbFactoryImpl.getPackage(); - } - /** - * @return - */ - protected EjbFactory getEjbFactory() { - return ((EjbPackage) EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI)).getEjbFactory(); - } - /** - * Create method elements with ME type name - * @param meTypeName The ME type - * @param signatures list of method signatures - * @param aType - enum type - * @param bean - EJB bean - * @return List of created elements - */ - protected List createMethodElements(String meTypeName, List signatures, Enumerator aType, EnterpriseBean bean) { - int size = signatures.size(); - List methodElements = new ArrayList(size); - String signature; - MethodElement me; - for (int i = 0; i < size; i++) { - signature = (String) signatures.get(i); - me = (MethodElement) getEjbFactory().create((EClass) getEjbPackage().getEClassifier(meTypeName)); - me.initializeFromSignature(signature); - me.setEnterpriseBean(bean); - me.setType((MethodElementKind) aType); - methodElements.add(me); - } - return methodElements; - } - /** - * Get list of MTE's excluding bean - * @param entity - excluded bean - * @param type - filter on method type constants - * @return List of method elements - */ - protected List getEntityMethodTransactionExcludedMethods(Entity entity, int type) { - List result = new ArrayList(); - switch (type) { - case (REMOTE_METHODS) : - { - JavaClass aClass = getEJBObjectClass(entity); - aClass.getClassImport(); - result.addAll(excludeMethods(aClass, Arrays.asList(new Object[]{getMethod(aClass, getRemoteRemoveMethod_Sig())}))); - break; - } - case (HOME_METHODS) : - { - JavaClass aClass = getEJBHomeClass(entity); - aClass.getClassImport(); - result.addAll(Arrays.asList(new Object[]{getMethod(aClass, getEjbGetMetaDataMethod_Sig()), getMethod(aClass, getEjbGetHomeHandleMethod_Sig())})); - break; - } - case (LOCAL_METHODS) : - { - JavaClass aClass = getEJBLocalObjectClass(entity); - aClass.getClassImport(); - result.addAll(excludeMethods(aClass, Arrays.asList(new Object[]{getMethod(aClass, getLocalRemoveMethod_Sig())}))); - break; - } - } - return result; - } - /** - * Get Session ME list exclusing session beans - * @param session - excludng beans - * @param type - Interface type - * @return - list of ME's - */ - protected List getSessionMethodTransactionExcludedClasses(Session session, int type) { - List result = new ArrayList(); - Object[] allInterfaces; - String className; - switch (type) { - case (REMOTE_METHODS) : - { - className = getEJBObjectClassName(); - allInterfaces = session.getRemoteInterface().getImplementsInterfaces().toArray(); - result.addAll(getInterfaces(allInterfaces, className)); - break; - } - case (LOCAL_METHODS) : - { - className = getEJBLocalObjectClassName(); - allInterfaces = session.getLocalInterface().getImplementsInterfaces().toArray(); - result.addAll(getInterfaces(allInterfaces, className)); - break; - } - } - return result; - } - /** - * @param aClass - * @param methods - * @return - */ - protected List excludeMethods(JavaClass aClass, List methods) { - List currentMethods = aClass.getMethods(); - List resultMethods = new ArrayList(); - for (int i = 0; i < currentMethods.size(); i++) { - if (!methods.contains(currentMethods.get(i))) - resultMethods.add(currentMethods.get(i)); - } - return resultMethods; - } - /** - * @param aClass - * @param methodName - * @return - */ - protected Method getMethod(JavaClass aClass, String methodName) { - List currentMethods = aClass.getMethods(); - for (int i = 0; i < currentMethods.size(); i++) { - Method method = (Method) currentMethods.get(i); - if (methodName.equals(method.getSignature())) - return method; - } - return null; - } - protected Method getMethodUsingMethodSig(JavaClass aClass, String methodName) { - List currentMethods = aClass.getMethods(); - for (int i = 0; i < currentMethods.size(); i++) { - Method method = (Method) currentMethods.get(i); - if (methodName.equals(method.getSignature())) - return method; - } - return null; - } - /** - * Used to collect matched interfaces for ejbs - * @param interfaces for filtering - * @param aEjbObjectClassName - the ejb name - * @return list of interfaces - */ - public List getInterfaces(Object[] interfaces, String aEjbObjectClassName) { - List extractedInterfaces = new ArrayList(); - for (int i = 0; i < interfaces.length; i++) { - if (((JavaClass) interfaces[i]).getQualifiedName().equals(aEjbObjectClassName)) - extractedInterfaces.add(interfaces[i]); - } - return extractedInterfaces; - } - /** - * @param ejb - * @param someMethodElementOwners - * @param methodElementReference - * @param usageFlag - * @return - */ - public List getAvailableMethodElementsExcludingExisting(EnterpriseBean ejb, List someMethodElementOwners, EReference methodElementReference, int usageFlag) { - return getAvailableMethodElementsExcludingExisting(ejb, someMethodElementOwners, methodElementReference, getDefaultMEComparator(), usageFlag); - } - /** - * @param ejb - * @param someMethodElementOwners - * @param methodElementReference - * @return - */ - public List getAvailableMethodElementsExcludingExisting(EnterpriseBean ejb, List someMethodElementOwners, EReference methodElementReference) { - return getAvailableMethodElementsExcludingExisting(ejb, someMethodElementOwners, methodElementReference, getDefaultMEComparator()); - } - /** - * @param ejb - * @param someMethodElementOwners - * @param methodElementReference - * @param comparator - * @return - */ - public List getAvailableMethodElementsExcludingExisting(EnterpriseBean ejb, List someMethodElementOwners, EReference methodElementReference, Comparator comparator) { - return getAvailableMethodElementsExcludingExisting(ejb, someMethodElementOwners, methodElementReference, comparator, ALL_METHODS); - } - /** - * @param someMethodElementOwners - * @param methodElementReference - * @return - */ - protected List getExistingMethodElements(List someMethodElementOwners, EReference methodElementReference) { - if (someMethodElementOwners == null || someMethodElementOwners.isEmpty() || methodElementReference == null || !methodElementReference.isMany()) - return Collections.EMPTY_LIST; - List result = new ArrayList(); - int size = someMethodElementOwners.size(); - EObject owner = null; - for (int i = 0; i < size; i++) { - owner = (EObject) someMethodElementOwners.get(i); - result.addAll((List) owner.eGet(methodElementReference)); - } - return result; - } - /** - * @param ejb - * @param someMethodElementOwners - * @param methodElementReference - * @param comparator - * @param usageFlag - * @return - */ - public List getAvailableMethodElementsExcludingExisting(EnterpriseBean ejb, List someMethodElementOwners, EReference methodElementReference, Comparator comparator, int usageFlag) { - if (ejb == null) - return Collections.EMPTY_LIST; - List result = new ArrayList(); - boolean showHomes = usageFlag == ALL_METHODS || usageFlag == HOME_METHODS; - boolean showClients = usageFlag == ALL_METHODS || usageFlag == CLIENT_METHODS; - if (showHomes) - result.addAll(ejb.getAvailableHomeMethodElements()); - if (showClients) - result.addAll(ejb.getAvailableRemoteMethodElements()); - if (showHomes) - result.addAll(ejb.getAvailableLocalHomeMethodElements()); - if (showClients) - result.addAll(ejb.getAvailableLocalMethodElements()); - result.addAll(ejb.getAvailableUnspecifiedMethodElements()); - excludeMethodElements(result, getExistingMethodElements(someMethodElementOwners, methodElementReference)); - Collections.sort(result, comparator); - return result; - } - /** - * @param sourceMethodElements - * @param existingMethodElements - */ - protected void excludeMethodElements(List sourceMethodElements, List existingMethodElements) { - MethodElement sourceME, existingME; - int sourceSize, existingSize; - sourceSize = sourceMethodElements.size(); - existingSize = existingMethodElements.size(); - List foundElements = new ArrayList(existingSize); - boolean found = false; - for (int i = 0; i < existingSize; i++) { - found = false; - existingME = (MethodElement) existingMethodElements.get(i); - sourceME = null; - for (int ii = 0; ii < sourceSize; ii++) { - sourceME = (MethodElement) sourceMethodElements.get(ii); - if (existingME != null && existingME.getName() != null && sourceME.getSignature().equals(existingME.getSignature()) && sourceME.getTypeJavaClass() == existingME.getTypeJavaClass()) { - if (sourceME.getTypeJavaClass() != null) { //it returns - // null if the - // method is * - // and it is not - // a message - // bean - found = true; - break; - } - else if (sourceME.getEnterpriseBean().getEjbClass() == existingME.getEnterpriseBean().getEjbClass()) { - found = true; - break; - } - } - } - if (found) - foundElements.add(sourceME); - } - sourceMethodElements.removeAll(foundElements); - } - private String getEjbGetHomeHandleMethod_Sig() { - return "Public abstract javax.ejb.HomeHandle javax.ejb.EJBHome.getHomeHandle() throws java.rmi.RemoteException"; //$NON-NLS-1$ - } - private String getEjbGetMetaDataMethod_Sig() { - return "Public abstract javax.ejb.EJBMetaData javax.ejb.EJBHome.getEJBMetaData() throws java.rmi.RemoteException"; //$NON-NLS-1$ - } - private String getRemoteRemoveMethod_Sig() { - return "Public abstract void javax.ejb.EJBObject.remove() throws java.rmi.RemoteException,javax.ejb.RemoveException"; //non-nls //$NON-NLS-1$ - } - private String getLocalRemoveMethod_Sig() { - return "Public abstract void javax.ejb.EJBLocalObject.remove() throws java.rmi.RemoteException,javax.ejb.RemoveException"; //non-nls //$NON-NLS-1$ - } - private String getMDBMethod_Sig() { - return "public void onMessage(javax.jms.Message msg)"; //$NON-NLS-1$ - } - private String getEJBObjectClassName() { - return "javax.ejb.EJBObject"; //$NON-NLS-1$ - } - private String getEJBLocalObjectClassName() { - return "javax.ejb.EJBLocalObject"; //$NON-NLS-1$ - } - private JavaClass getEJBObjectClass(EnterpriseBean bean) { - Resource res = bean.eResource(); - ResourceSet set = res != null ? res.getResourceSet() : null; - return (JavaClass) JavaRefFactory.eINSTANCE.reflectType("javax.ejb", "EJBObject", set); //$NON-NLS-1$ //$NON-NLS-2$ - } - private JavaClass getEJBLocalObjectClass(EnterpriseBean bean) { - Resource res = bean.eResource(); - ResourceSet set = res != null ? res.getResourceSet() : null; - return (JavaClass) JavaRefFactory.eINSTANCE.reflectType("javax.ejb", "EJBLocalObject", set); //$NON-NLS-1$ //$NON-NLS-2$ - } - private JavaClass getEJBHomeClass(EnterpriseBean bean) { - Resource res = bean.eResource(); - ResourceSet set = res != null ? res.getResourceSet() : null; - return (JavaClass) JavaRefFactory.eINSTANCE.reflectType("javax.ejb", "EJBHome", set); //$NON-NLS-1$ //$NON-NLS-2$ - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbPackage.java deleted file mode 100644 index 90a96339b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbPackage.java +++ /dev/null @@ -1,2783 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.jst.j2ee.common.CommonPackage; -/** - * <p> - * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. - * </p> - * @since 1.0 - */ -public interface EjbPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "ejb"; //$NON-NLS-1$ - - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_PERMISSION = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - - - /** - * @generated This field/method will be replaced during code generation. - */ - int ASSEMBLY_DESCRIPTOR = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_TRANSACTION = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN = 6; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTERPRISE_BEAN__ICONS = CommonPackage.JNDI_ENV_REFS_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTERPRISE_BEAN__DISPLAY_NAMES = CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTERPRISE_BEAN__DESCRIPTIONS = CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__SMALL_ICON = CommonPackage.JNDI_ENV_REFS_GROUP__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__LARGE_ICON = CommonPackage.JNDI_ENV_REFS_GROUP__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__DESCRIPTION = CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__DISPLAY_NAME = CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__ENVIRONMENT_PROPERTIES = CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__RESOURCE_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__EJB_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__RESOURCE_ENV_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__EJB_LOCAL_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS; - /** - * The feature id for the '<em><b>Message Destination Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTERPRISE_BEAN__MESSAGE_DESTINATION_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS; - - /** - * The feature id for the '<em><b>Service Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTERPRISE_BEAN__SERVICE_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__NAME = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__SECURITY_ROLE_REFS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__EJB_CLASS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__HOME_INTERFACE = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__REMOTE_INTERFACE = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__EJB_JAR = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__SECURITY_IDENTITY = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 6; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 7; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTERPRISE_BEAN__LOCAL_INTERFACE = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 8; - /** - * The number of structural features of the the '<em>Enterprise Bean</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTERPRISE_BEAN_FEATURE_COUNT = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 9; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY = 5; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTITY__ICONS = ENTERPRISE_BEAN__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTITY__DISPLAY_NAMES = ENTERPRISE_BEAN__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTITY__DESCRIPTIONS = ENTERPRISE_BEAN__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__SMALL_ICON = ENTERPRISE_BEAN__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__LARGE_ICON = ENTERPRISE_BEAN__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__DESCRIPTION = ENTERPRISE_BEAN__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__DISPLAY_NAME = ENTERPRISE_BEAN__DISPLAY_NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__ENVIRONMENT_PROPERTIES = ENTERPRISE_BEAN__ENVIRONMENT_PROPERTIES; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__RESOURCE_REFS = ENTERPRISE_BEAN__RESOURCE_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__EJB_REFS = ENTERPRISE_BEAN__EJB_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__RESOURCE_ENV_REFS = ENTERPRISE_BEAN__RESOURCE_ENV_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__EJB_LOCAL_REFS = ENTERPRISE_BEAN__EJB_LOCAL_REFS; - /** - * The feature id for the '<em><b>Message Destination Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTITY__MESSAGE_DESTINATION_REFS = ENTERPRISE_BEAN__MESSAGE_DESTINATION_REFS; - - /** - * The feature id for the '<em><b>Service Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTITY__SERVICE_REFS = ENTERPRISE_BEAN__SERVICE_REFS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__NAME = ENTERPRISE_BEAN__NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__SECURITY_ROLE_REFS = ENTERPRISE_BEAN__SECURITY_ROLE_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__EJB_CLASS = ENTERPRISE_BEAN__EJB_CLASS; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__HOME_INTERFACE = ENTERPRISE_BEAN__HOME_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__REMOTE_INTERFACE = ENTERPRISE_BEAN__REMOTE_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__EJB_JAR = ENTERPRISE_BEAN__EJB_JAR; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__SECURITY_IDENTITY = ENTERPRISE_BEAN__SECURITY_IDENTITY; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__LOCAL_HOME_INTERFACE = ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__LOCAL_INTERFACE = ENTERPRISE_BEAN__LOCAL_INTERFACE; - /** - * The feature id for the '<em><b>Reentrant</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTITY__REENTRANT = ENTERPRISE_BEAN_FEATURE_COUNT + 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ENTITY__PRIMARY_KEY = ENTERPRISE_BEAN_FEATURE_COUNT + 1; - /** - * The number of structural features of the the '<em>Entity</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ENTITY_FEATURE_COUNT = ENTERPRISE_BEAN_FEATURE_COUNT + 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY = 0; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTAINER_MANAGED_ENTITY__ICONS = ENTITY__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTAINER_MANAGED_ENTITY__DISPLAY_NAMES = ENTITY__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTAINER_MANAGED_ENTITY__DESCRIPTIONS = ENTITY__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__SMALL_ICON = ENTITY__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__LARGE_ICON = ENTITY__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__DESCRIPTION = ENTITY__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__DISPLAY_NAME = ENTITY__DISPLAY_NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__ENVIRONMENT_PROPERTIES = ENTITY__ENVIRONMENT_PROPERTIES; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__RESOURCE_REFS = ENTITY__RESOURCE_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__EJB_REFS = ENTITY__EJB_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__RESOURCE_ENV_REFS = ENTITY__RESOURCE_ENV_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__EJB_LOCAL_REFS = ENTITY__EJB_LOCAL_REFS; - /** - * The feature id for the '<em><b>Message Destination Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTAINER_MANAGED_ENTITY__MESSAGE_DESTINATION_REFS = ENTITY__MESSAGE_DESTINATION_REFS; - - /** - * The feature id for the '<em><b>Service Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTAINER_MANAGED_ENTITY__SERVICE_REFS = ENTITY__SERVICE_REFS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__NAME = ENTITY__NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__SECURITY_ROLE_REFS = ENTITY__SECURITY_ROLE_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__EJB_CLASS = ENTITY__EJB_CLASS; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__HOME_INTERFACE = ENTITY__HOME_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__REMOTE_INTERFACE = ENTITY__REMOTE_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__EJB_JAR = ENTITY__EJB_JAR; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__SECURITY_IDENTITY = ENTITY__SECURITY_IDENTITY; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__LOCAL_HOME_INTERFACE = ENTITY__LOCAL_HOME_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__LOCAL_INTERFACE = ENTITY__LOCAL_INTERFACE; - /** - * The feature id for the '<em><b>Reentrant</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTAINER_MANAGED_ENTITY__REENTRANT = ENTITY__REENTRANT; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__PRIMARY_KEY = ENTITY__PRIMARY_KEY; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__VERSION = ENTITY_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__ABSTRACT_SCHEMA_NAME = ENTITY_FEATURE_COUNT + 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__PERSISTENT_ATTRIBUTES = ENTITY_FEATURE_COUNT + 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__KEY_ATTRIBUTES = ENTITY_FEATURE_COUNT + 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTAINER_MANAGED_ENTITY__QUERIES = ENTITY_FEATURE_COUNT + 4; - /** - * The feature id for the '<em><b>CMP Attribute</b></em>' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTAINER_MANAGED_ENTITY__CMP_ATTRIBUTE = ENTITY_FEATURE_COUNT + 5; - - /** - * The feature id for the '<em><b>Prim Key Field</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTAINER_MANAGED_ENTITY__PRIM_KEY_FIELD = ENTITY_FEATURE_COUNT + 6; - - /** - * The number of structural features of the the '<em>Container Managed Entity</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTAINER_MANAGED_ENTITY_FEATURE_COUNT = ENTITY_FEATURE_COUNT + 7; - - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_PERMISSION__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_PERMISSION__UNCHECKED = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_PERMISSION__ROLES = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_PERMISSION__METHOD_ELEMENTS = 4; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_PERMISSION__DESCRIPTIONS = 5; - - /** - * The number of structural features of the the '<em>Method Permission</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_PERMISSION_FEATURE_COUNT = 6; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int ASSEMBLY_DESCRIPTOR__EJB_JAR = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int ASSEMBLY_DESCRIPTOR__SECURITY_ROLES = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST = 4; - - /** - * The feature id for the '<em><b>Message Destinations</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ASSEMBLY_DESCRIPTOR__MESSAGE_DESTINATIONS = 5; - - /** - * The number of structural features of the the '<em>Assembly Descriptor</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ASSEMBLY_DESCRIPTOR_FEATURE_COUNT = 6; - - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_TRANSACTION__TRANSACTION_ATTRIBUTE = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_TRANSACTION__DESCRIPTION = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_TRANSACTION__METHOD_ELEMENTS = 3; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_TRANSACTION__DESCRIPTIONS = 4; - - /** - * The number of structural features of the the '<em>Method Transaction</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_TRANSACTION_FEATURE_COUNT = 5; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CMP_ATTRIBUTE = 10; - /** - * @generated This field/method will be replaced during code generation. - */ - int CMR_FIELD = 16; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATIONSHIP_ROLE = 14; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATION = 13; - /** - * @generated This field/method will be replaced during code generation. - */ - int RELATIONSHIPS = 11; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR = 8; - /** - * @generated This field/method will be replaced during code generation. - */ - int ROLE_SOURCE = 15; - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY = 12; - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY_METHOD = 20; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_ELEMENT = 9; - /** - * @generated This field/method will be replaced during code generation. - */ - int EXCLUDE_LIST = 19; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION = 4; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SESSION__ICONS = ENTERPRISE_BEAN__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SESSION__DISPLAY_NAMES = ENTERPRISE_BEAN__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SESSION__DESCRIPTIONS = ENTERPRISE_BEAN__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__SMALL_ICON = ENTERPRISE_BEAN__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__LARGE_ICON = ENTERPRISE_BEAN__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__DESCRIPTION = ENTERPRISE_BEAN__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__DISPLAY_NAME = ENTERPRISE_BEAN__DISPLAY_NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__ENVIRONMENT_PROPERTIES = ENTERPRISE_BEAN__ENVIRONMENT_PROPERTIES; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__RESOURCE_REFS = ENTERPRISE_BEAN__RESOURCE_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__EJB_REFS = ENTERPRISE_BEAN__EJB_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__RESOURCE_ENV_REFS = ENTERPRISE_BEAN__RESOURCE_ENV_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__EJB_LOCAL_REFS = ENTERPRISE_BEAN__EJB_LOCAL_REFS; - /** - * The feature id for the '<em><b>Message Destination Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SESSION__MESSAGE_DESTINATION_REFS = ENTERPRISE_BEAN__MESSAGE_DESTINATION_REFS; - - /** - * The feature id for the '<em><b>Service Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SESSION__SERVICE_REFS = ENTERPRISE_BEAN__SERVICE_REFS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__NAME = ENTERPRISE_BEAN__NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__SECURITY_ROLE_REFS = ENTERPRISE_BEAN__SECURITY_ROLE_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__EJB_CLASS = ENTERPRISE_BEAN__EJB_CLASS; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__HOME_INTERFACE = ENTERPRISE_BEAN__HOME_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__REMOTE_INTERFACE = ENTERPRISE_BEAN__REMOTE_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__EJB_JAR = ENTERPRISE_BEAN__EJB_JAR; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__SECURITY_IDENTITY = ENTERPRISE_BEAN__SECURITY_IDENTITY; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__LOCAL_HOME_INTERFACE = ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__LOCAL_INTERFACE = ENTERPRISE_BEAN__LOCAL_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__TRANSACTION_TYPE = ENTERPRISE_BEAN_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION__SESSION_TYPE = ENTERPRISE_BEAN_FEATURE_COUNT + 1; - /** - * The feature id for the '<em><b>Service Endpoint</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SESSION__SERVICE_ENDPOINT = ENTERPRISE_BEAN_FEATURE_COUNT + 2; - - /** - * The number of structural features of the the '<em>Session</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SESSION_FEATURE_COUNT = ENTERPRISE_BEAN_FEATURE_COUNT + 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN = 17; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN_DESTINATION = 18; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_METHOD_CATEGORY = 7; - /** - * The number of structural features of the the '<em>EJB Method Category</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_METHOD_CATEGORY_FEATURE_COUNT = 0; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_JAR__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_JAR__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_JAR__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR__EJB_CLIENT_JAR = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - /** - * The feature id for the '<em><b>Version</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_JAR__VERSION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR__ASSEMBLY_DESCRIPTOR = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR__ENTERPRISE_BEANS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_JAR__RELATIONSHIP_LIST = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - - /** - * The number of structural features of the the '<em>EJB Jar</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_JAR_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 5; - - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_ELEMENT__NAME = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_ELEMENT__PARMS = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_ELEMENT__TYPE = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_ELEMENT__DESCRIPTION = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_ELEMENT__ENTERPRISE_BEAN = 4; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_ELEMENT__DESCRIPTIONS = 5; - - /** - * The number of structural features of the the '<em>Method Element</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_ELEMENT_FEATURE_COUNT = 6; - - /** - * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__EANNOTATIONS = EcorePackage.EATTRIBUTE__EANNOTATIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CMP_ATTRIBUTE__NAME = EcorePackage.EATTRIBUTE__NAME; - /** - * The feature id for the '<em><b>Ordered</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__ORDERED = EcorePackage.EATTRIBUTE__ORDERED; - - /** - * The feature id for the '<em><b>Unique</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__UNIQUE = EcorePackage.EATTRIBUTE__UNIQUE; - - /** - * The feature id for the '<em><b>Lower Bound</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__LOWER_BOUND = EcorePackage.EATTRIBUTE__LOWER_BOUND; - - /** - * The feature id for the '<em><b>Upper Bound</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__UPPER_BOUND = EcorePackage.EATTRIBUTE__UPPER_BOUND; - - /** - * The feature id for the '<em><b>Many</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__MANY = EcorePackage.EATTRIBUTE__MANY; - - /** - * The feature id for the '<em><b>Required</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__REQUIRED = EcorePackage.EATTRIBUTE__REQUIRED; - - /** - * The feature id for the '<em><b>EType</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__ETYPE = EcorePackage.EATTRIBUTE__ETYPE; - - /** - * The feature id for the '<em><b>Changeable</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__CHANGEABLE = EcorePackage.EATTRIBUTE__CHANGEABLE; - - /** - * The feature id for the '<em><b>Volatile</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__VOLATILE = EcorePackage.EATTRIBUTE__VOLATILE; - - /** - * The feature id for the '<em><b>Transient</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__TRANSIENT = EcorePackage.EATTRIBUTE__TRANSIENT; - - /** - * The feature id for the '<em><b>Default Value Literal</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__DEFAULT_VALUE_LITERAL = EcorePackage.EATTRIBUTE__DEFAULT_VALUE_LITERAL; - - /** - * The feature id for the '<em><b>Default Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__DEFAULT_VALUE = EcorePackage.EATTRIBUTE__DEFAULT_VALUE; - - /** - * The feature id for the '<em><b>Unsettable</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__UNSETTABLE = EcorePackage.EATTRIBUTE__UNSETTABLE; - - /** - * The feature id for the '<em><b>Derived</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__DERIVED = EcorePackage.EATTRIBUTE__DERIVED; - - /** - * The feature id for the '<em><b>EContaining Class</b></em>' container reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__ECONTAINING_CLASS = EcorePackage.EATTRIBUTE__ECONTAINING_CLASS; - - /** - * The feature id for the '<em><b>ID</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__ID = EcorePackage.EATTRIBUTE__ID; - - /** - * The feature id for the '<em><b>EAttribute Type</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__EATTRIBUTE_TYPE = EcorePackage.EATTRIBUTE__EATTRIBUTE_TYPE; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CMP_ATTRIBUTE__DESCRIPTION = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 0; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE__DESCRIPTIONS = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the the '<em>CMP Attribute</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMP_ATTRIBUTE_FEATURE_COUNT = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int RELATIONSHIPS__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int RELATIONSHIPS__EJB_JAR = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int RELATIONSHIPS__EJB_RELATIONS = 2; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RELATIONSHIPS__DESCRIPTIONS = 3; - - /** - * The number of structural features of the the '<em>Relationships</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RELATIONSHIPS_FEATURE_COUNT = 4; - - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY__EJB_QL = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY__RETURN_TYPE_MAPPING = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY__QUERY_METHOD = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY__ENTITY = 4; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QUERY__DESCRIPTIONS = 5; - - /** - * The number of structural features of the the '<em>Query</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QUERY_FEATURE_COUNT = 6; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATION__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATION__NAME = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATION__RELATIONSHIP_LIST = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATION__RELATIONSHIP_ROLES = 3; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_RELATION__DESCRIPTIONS = 4; - - /** - * The number of structural features of the the '<em>EJB Relation</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_RELATION_FEATURE_COUNT = 5; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATIONSHIP_ROLE__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATIONSHIP_ROLE__ROLE_NAME = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATIONSHIP_ROLE__MULTIPLICITY = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATIONSHIP_ROLE__CASCADE_DELETE = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATIONSHIP_ROLE__RELATIONSHIP = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATIONSHIP_ROLE__SOURCE = 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int EJB_RELATIONSHIP_ROLE__CMR_FIELD = 6; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_RELATIONSHIP_ROLE__DESCRIPTIONS = 7; - - /** - * The number of structural features of the the '<em>EJB Relationship Role</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_RELATIONSHIP_ROLE_FEATURE_COUNT = 8; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ROLE_SOURCE__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int ROLE_SOURCE__ROLE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int ROLE_SOURCE__ENTITY_BEAN = 2; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ROLE_SOURCE__DESCRIPTIONS = 3; - - /** - * The number of structural features of the the '<em>Role Source</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ROLE_SOURCE_FEATURE_COUNT = 4; - - /** - * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__EANNOTATIONS = CMP_ATTRIBUTE__EANNOTATIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CMR_FIELD__NAME = CMP_ATTRIBUTE__NAME; - /** - * The feature id for the '<em><b>Ordered</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__ORDERED = CMP_ATTRIBUTE__ORDERED; - - /** - * The feature id for the '<em><b>Unique</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__UNIQUE = CMP_ATTRIBUTE__UNIQUE; - - /** - * The feature id for the '<em><b>Lower Bound</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__LOWER_BOUND = CMP_ATTRIBUTE__LOWER_BOUND; - - /** - * The feature id for the '<em><b>Upper Bound</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__UPPER_BOUND = CMP_ATTRIBUTE__UPPER_BOUND; - - /** - * The feature id for the '<em><b>Many</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__MANY = CMP_ATTRIBUTE__MANY; - - /** - * The feature id for the '<em><b>Required</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__REQUIRED = CMP_ATTRIBUTE__REQUIRED; - - /** - * The feature id for the '<em><b>EType</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__ETYPE = CMP_ATTRIBUTE__ETYPE; - - /** - * The feature id for the '<em><b>Changeable</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__CHANGEABLE = CMP_ATTRIBUTE__CHANGEABLE; - - /** - * The feature id for the '<em><b>Volatile</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__VOLATILE = CMP_ATTRIBUTE__VOLATILE; - - /** - * The feature id for the '<em><b>Transient</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__TRANSIENT = CMP_ATTRIBUTE__TRANSIENT; - - /** - * The feature id for the '<em><b>Default Value Literal</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__DEFAULT_VALUE_LITERAL = CMP_ATTRIBUTE__DEFAULT_VALUE_LITERAL; - - /** - * The feature id for the '<em><b>Default Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__DEFAULT_VALUE = CMP_ATTRIBUTE__DEFAULT_VALUE; - - /** - * The feature id for the '<em><b>Unsettable</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__UNSETTABLE = CMP_ATTRIBUTE__UNSETTABLE; - - /** - * The feature id for the '<em><b>Derived</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__DERIVED = CMP_ATTRIBUTE__DERIVED; - - /** - * The feature id for the '<em><b>EContaining Class</b></em>' container reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__ECONTAINING_CLASS = CMP_ATTRIBUTE__ECONTAINING_CLASS; - - /** - * The feature id for the '<em><b>ID</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__ID = CMP_ATTRIBUTE__ID; - - /** - * The feature id for the '<em><b>EAttribute Type</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__EATTRIBUTE_TYPE = CMP_ATTRIBUTE__EATTRIBUTE_TYPE; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CMR_FIELD__DESCRIPTION = CMP_ATTRIBUTE__DESCRIPTION; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD__DESCRIPTIONS = CMP_ATTRIBUTE__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CMR_FIELD__ROLE = CMP_ATTRIBUTE_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int CMR_FIELD__COLLECTION_TYPE = CMP_ATTRIBUTE_FEATURE_COUNT + 1; - /** - * The number of structural features of the the '<em>CMR Field</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CMR_FIELD_FEATURE_COUNT = CMP_ATTRIBUTE_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN__ICONS = ENTERPRISE_BEAN__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN__DISPLAY_NAMES = ENTERPRISE_BEAN__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN__DESCRIPTIONS = ENTERPRISE_BEAN__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__SMALL_ICON = ENTERPRISE_BEAN__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__LARGE_ICON = ENTERPRISE_BEAN__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__DESCRIPTION = ENTERPRISE_BEAN__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__DISPLAY_NAME = ENTERPRISE_BEAN__DISPLAY_NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__ENVIRONMENT_PROPERTIES = ENTERPRISE_BEAN__ENVIRONMENT_PROPERTIES; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__RESOURCE_REFS = ENTERPRISE_BEAN__RESOURCE_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__EJB_REFS = ENTERPRISE_BEAN__EJB_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__RESOURCE_ENV_REFS = ENTERPRISE_BEAN__RESOURCE_ENV_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__EJB_LOCAL_REFS = ENTERPRISE_BEAN__EJB_LOCAL_REFS; - /** - * The feature id for the '<em><b>Message Destination Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN__MESSAGE_DESTINATION_REFS = ENTERPRISE_BEAN__MESSAGE_DESTINATION_REFS; - - /** - * The feature id for the '<em><b>Service Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN__SERVICE_REFS = ENTERPRISE_BEAN__SERVICE_REFS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__NAME = ENTERPRISE_BEAN__NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__SECURITY_ROLE_REFS = ENTERPRISE_BEAN__SECURITY_ROLE_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__EJB_CLASS = ENTERPRISE_BEAN__EJB_CLASS; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__HOME_INTERFACE = ENTERPRISE_BEAN__HOME_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__REMOTE_INTERFACE = ENTERPRISE_BEAN__REMOTE_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__EJB_JAR = ENTERPRISE_BEAN__EJB_JAR; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__SECURITY_IDENTITY = ENTERPRISE_BEAN__SECURITY_IDENTITY; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__LOCAL_HOME_INTERFACE = ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__LOCAL_INTERFACE = ENTERPRISE_BEAN__LOCAL_INTERFACE; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__TRANSACTION_TYPE = ENTERPRISE_BEAN_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__MESSAGE_SELECTOR = ENTERPRISE_BEAN_FEATURE_COUNT + 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__ACKNOWLEDGE_MODE = ENTERPRISE_BEAN_FEATURE_COUNT + 2; - /** - * The feature id for the '<em><b>Link</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN__LINK = ENTERPRISE_BEAN_FEATURE_COUNT + 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN__DESTINATION = ENTERPRISE_BEAN_FEATURE_COUNT + 4; - /** - * The feature id for the '<em><b>Activation Config</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN__ACTIVATION_CONFIG = ENTERPRISE_BEAN_FEATURE_COUNT + 5; - - /** - * The feature id for the '<em><b>Message Destination</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN__MESSAGE_DESTINATION = ENTERPRISE_BEAN_FEATURE_COUNT + 6; - - /** - * The feature id for the '<em><b>Messaging Type</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN__MESSAGING_TYPE = ENTERPRISE_BEAN_FEATURE_COUNT + 7; - - /** - * The number of structural features of the the '<em>Message Driven</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN_FEATURE_COUNT = ENTERPRISE_BEAN_FEATURE_COUNT + 8; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN_DESTINATION__TYPE = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN_DESTINATION__SUBSCRIPTION_DURABILITY = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int MESSAGE_DRIVEN_DESTINATION__BEAN = 2; - - /** - * The number of structural features of the the '<em>Message Driven Destination</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_DRIVEN_DESTINATION_FEATURE_COUNT = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EXCLUDE_LIST__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int EXCLUDE_LIST__METHOD_ELEMENTS = 1; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXCLUDE_LIST__DESCRIPTIONS = 2; - - /** - * The number of structural features of the the '<em>Exclude List</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXCLUDE_LIST_FEATURE_COUNT = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY_METHOD__NAME = METHOD_ELEMENT__NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY_METHOD__PARMS = METHOD_ELEMENT__PARMS; - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY_METHOD__TYPE = METHOD_ELEMENT__TYPE; - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY_METHOD__DESCRIPTION = METHOD_ELEMENT__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY_METHOD__ENTERPRISE_BEAN = METHOD_ELEMENT__ENTERPRISE_BEAN; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QUERY_METHOD__DESCRIPTIONS = METHOD_ELEMENT__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int QUERY_METHOD__QUERY = METHOD_ELEMENT_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Query Method</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QUERY_METHOD_FEATURE_COUNT = METHOD_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.ejb.internal.impl.ActivationConfigPropertyImpl <em>Activation Config Property</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.ejb.internal.impl.ActivationConfigPropertyImpl - * @see org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl#getActivationConfigProperty() - * @generated - */ - int ACTIVATION_CONFIG_PROPERTY = 21; - - /** - * The feature id for the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ACTIVATION_CONFIG_PROPERTY__VALUE = 0; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ACTIVATION_CONFIG_PROPERTY__NAME = 1; - - /** - * The number of structural features of the the '<em>Activation Config Property</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ACTIVATION_CONFIG_PROPERTY_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.ejb.internal.impl.ActivationConfigImpl <em>Activation Config</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.ejb.internal.impl.ActivationConfigImpl - * @see org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl#getActivationConfig() - * @generated - */ - int ACTIVATION_CONFIG = 22; - - /** - * The feature id for the '<em><b>Config Properties</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ACTIVATION_CONFIG__CONFIG_PROPERTIES = 0; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ACTIVATION_CONFIG__DESCRIPTIONS = 1; - - /** - * The number of structural features of the the '<em>Activation Config</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ACTIVATION_CONFIG_FEATURE_COUNT = 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int TRANSACTION_ATTRIBUTE_TYPE = 23; - /** - * @generated This field/method will be replaced during code generation. - */ - int MULTIPLICITY_KIND = 31; - /** - * @generated This field/method will be replaced during code generation. - */ - int RETURN_TYPE_MAPPING = 29; - /** - * @generated This field/method will be replaced during code generation. - */ - int METHOD_ELEMENT_KIND = 26; - /** - * @generated This field/method will be replaced during code generation. - */ - int TRANSACTION_TYPE = 24; - /** - * @generated This field/method will be replaced during code generation. - */ - int ACKNOWLEDGE_MODE = 27; - /** - * @generated This field/method will be replaced during code generation. - */ - int DESTINATION_TYPE = 30; - /** - * @generated This field/method will be replaced during code generation. - */ - int SUBSCRIPTION_DURABILITY_KIND = 28; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION_TYPE = 25; - /** - * @generated This field/method will be replaced during code generation. - */ - String eNS_URI = "ejb.xmi"; //$NON-NLS-1$ - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.ejb"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EjbPackage eINSTANCE = org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl.init(); - - /** - * @generated This field/method will be replaced during code generation - * @return MethodPermission object - */ - EClass getMethodPermission(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMethodPermission_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMethodPermission_Unchecked(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getMethodPermission_AssemblyDescriptor(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getMethodPermission_Roles(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getMethodPermission_MethodElements(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.MethodPermission#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.MethodPermission#getDescriptions() - * @see #getMethodPermission() - * @generated - */ - EReference getMethodPermission_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return AssemblyDescriptor object - */ - EClass getAssemblyDescriptor(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getAssemblyDescriptor_MethodPermissions(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getAssemblyDescriptor_MethodTransactions(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getAssemblyDescriptor_EjbJar(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getAssemblyDescriptor_SecurityRoles(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getAssemblyDescriptor_ExcludeList(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.AssemblyDescriptor#getMessageDestinations <em>Message Destinations</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Message Destinations</em>'. - * @see org.eclipse.jst.j2ee.ejb.AssemblyDescriptor#getMessageDestinations() - * @see #getAssemblyDescriptor() - * @generated - */ - EReference getAssemblyDescriptor_MessageDestinations(); - - /** - * @generated This field/method will be replaced during code generation - * @return MethodTransaction object - */ - EClass getMethodTransaction(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMethodTransaction_TransactionAttribute(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMethodTransaction_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getMethodTransaction_AssemblyDescriptor(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getMethodTransaction_MethodElements(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.MethodTransaction#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.MethodTransaction#getDescriptions() - * @see #getMethodTransaction() - * @generated - */ - EReference getMethodTransaction_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return EnterpriseBean object - */ - EClass getEnterpriseBean(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.ejb.EnterpriseBean#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.jst.j2ee.ejb.EnterpriseBean#getName() - * @see #getEnterpriseBean() - * @generated - */ - EAttribute getEnterpriseBean_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEnterpriseBean_SecurityRoleRefs(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEnterpriseBean_EjbClass(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEnterpriseBean_HomeInterface(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEnterpriseBean_RemoteInterface(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEnterpriseBean_EjbJar(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEnterpriseBean_SecurityIdentity(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEnterpriseBean_LocalHomeInterface(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEnterpriseBean_LocalInterface(); - - /** - * @generated This field/method will be replaced during code generation - * @return Entity object - */ - EClass getEntity(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.ejb.Entity#isReentrant <em>Reentrant</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Reentrant</em>'. - * @see org.eclipse.jst.j2ee.ejb.Entity#isReentrant() - * @see #getEntity() - * @generated - */ - EAttribute getEntity_Reentrant(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEntity_PrimaryKey(); - - /** - * @generated This field/method will be replaced during code generation - * @return ContainerManagedEntity object - */ - EClass getContainerManagedEntity(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getContainerManagedEntity_Version(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getContainerManagedEntity_AbstractSchemaName(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getContainerManagedEntity_PersistentAttributes(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getContainerManagedEntity_KeyAttributes(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.ContainerManagedEntity#getQueries <em>Queries</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Queries</em>'. - * @see org.eclipse.jst.j2ee.ejb.ContainerManagedEntity#getQueries() - * @see #getContainerManagedEntity() - * @generated - */ - EReference getContainerManagedEntity_Queries(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.jst.j2ee.ejb.ContainerManagedEntity#getCMPAttribute <em>CMP Attribute</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference list '<em>CMP Attribute</em>'. - * @see org.eclipse.jst.j2ee.ejb.ContainerManagedEntity#getCMPAttribute() - * @see #getContainerManagedEntity() - * @generated - */ - EReference getContainerManagedEntity_CMPAttribute(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.ejb.ContainerManagedEntity#getPrimKeyField <em>Prim Key Field</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Prim Key Field</em>'. - * @see org.eclipse.jst.j2ee.ejb.ContainerManagedEntity#getPrimKeyField() - * @see #getContainerManagedEntity() - * @generated - */ - EReference getContainerManagedEntity_PrimKeyField(); - - /** - * @generated This field/method will be replaced during code generation - * @return CMPAttribute object - */ - EClass getCMPAttribute(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getCMPAttribute_Description(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.CMPAttribute#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.CMPAttribute#getDescriptions() - * @see #getCMPAttribute() - * @generated - */ - EReference getCMPAttribute_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return CMRField object - */ - EClass getCMRField(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getCMRField_Role(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getCMRField_CollectionType(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBRelationshipRole object - */ - EClass getEJBRelationshipRole(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEJBRelationshipRole_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEJBRelationshipRole_RoleName(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEJBRelationshipRole_Multiplicity(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEJBRelationshipRole_CascadeDelete(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEJBRelationshipRole_Relationship(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEJBRelationshipRole_Source(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEJBRelationshipRole_CmrField(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.EJBRelationshipRole#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.EJBRelationshipRole#getDescriptions() - * @see #getEJBRelationshipRole() - * @generated - */ - EReference getEJBRelationshipRole_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBRelation object - */ - EClass getEJBRelation(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEJBRelation_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEJBRelation_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEJBRelation_RelationshipList(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEJBRelation_RelationshipRoles(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.EJBRelation#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.EJBRelation#getDescriptions() - * @see #getEJBRelation() - * @generated - */ - EReference getEJBRelation_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return Relationships object - */ - EClass getRelationships(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getRelationships_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getRelationships_EjbJar(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getRelationships_EjbRelations(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.Relationships#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.Relationships#getDescriptions() - * @see #getRelationships() - * @generated - */ - EReference getRelationships_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBJar object - */ - EClass getEJBJar(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getEJBJar_EjbClientJar(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.ejb.EJBJar#getVersion <em>Version</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Version</em>'. - * @see org.eclipse.jst.j2ee.ejb.EJBJar#getVersion() - * @see #getEJBJar() - * @generated - */ - EAttribute getEJBJar_Version(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEJBJar_AssemblyDescriptor(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEJBJar_EnterpriseBeans(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getEJBJar_RelationshipList(); - - /** - * @generated This field/method will be replaced during code generation - * @return RoleSource object - */ - EClass getRoleSource(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getRoleSource_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getRoleSource_Role(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getRoleSource_EntityBean(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.RoleSource#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.RoleSource#getDescriptions() - * @see #getRoleSource() - * @generated - */ - EReference getRoleSource_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return Query object - */ - EClass getQuery(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getQuery_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getQuery_EjbQL(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getQuery_ReturnTypeMapping(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getQuery_QueryMethod(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getQuery_Entity(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.Query#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.Query#getDescriptions() - * @see #getQuery() - * @generated - */ - EReference getQuery_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return QueryMethod object - */ - EClass getQueryMethod(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getQueryMethod_Query(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.ejb.ActivationConfigProperty <em>Activation Config Property</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Activation Config Property</em>'. - * @see org.eclipse.jst.j2ee.ejb.ActivationConfigProperty - * @generated - */ - EClass getActivationConfigProperty(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.ejb.ActivationConfigProperty#getValue <em>Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Value</em>'. - * @see org.eclipse.jst.j2ee.ejb.ActivationConfigProperty#getValue() - * @see #getActivationConfigProperty() - * @generated - */ - EAttribute getActivationConfigProperty_Value(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.ejb.ActivationConfigProperty#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.jst.j2ee.ejb.ActivationConfigProperty#getName() - * @see #getActivationConfigProperty() - * @generated - */ - EAttribute getActivationConfigProperty_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.ejb.ActivationConfig <em>Activation Config</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Activation Config</em>'. - * @see org.eclipse.jst.j2ee.ejb.ActivationConfig - * @generated - */ - EClass getActivationConfig(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.ActivationConfig#getConfigProperties <em>Config Properties</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Config Properties</em>'. - * @see org.eclipse.jst.j2ee.ejb.ActivationConfig#getConfigProperties() - * @see #getActivationConfig() - * @generated - */ - EReference getActivationConfig_ConfigProperties(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.ActivationConfig#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.ActivationConfig#getDescriptions() - * @see #getActivationConfig() - * @generated - */ - EReference getActivationConfig_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return MethodElement object - */ - EClass getMethodElement(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMethodElement_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMethodElement_Parms(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMethodElement_Type(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMethodElement_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getMethodElement_EnterpriseBean(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.MethodElement#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.MethodElement#getDescriptions() - * @see #getMethodElement() - * @generated - */ - EReference getMethodElement_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return ExcludeList object - */ - EClass getExcludeList(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getExcludeList_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getExcludeList_MethodElements(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.ejb.ExcludeList#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.ejb.ExcludeList#getDescriptions() - * @see #getExcludeList() - * @generated - */ - EReference getExcludeList_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return Session object - */ - EClass getSession(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSession_TransactionType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSession_SessionType(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.ejb.Session#getServiceEndpoint <em>Service Endpoint</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Service Endpoint</em>'. - * @see org.eclipse.jst.j2ee.ejb.Session#getServiceEndpoint() - * @see #getSession() - * @generated - */ - EReference getSession_ServiceEndpoint(); - - /** - * @generated This field/method will be replaced during code generation - * @return MessageDriven object - */ - EClass getMessageDriven(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMessageDriven_TransactionType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMessageDriven_MessageSelector(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMessageDriven_AcknowledgeMode(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getMessageDriven_Destination(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getActivationConfig <em>Activation Config</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Activation Config</em>'. - * @see org.eclipse.jst.j2ee.ejb.MessageDriven#getActivationConfig() - * @see #getMessageDriven() - * @generated - */ - EReference getMessageDriven_ActivationConfig(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getMessageDestination <em>Message Destination</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Message Destination</em>'. - * @see org.eclipse.jst.j2ee.ejb.MessageDriven#getMessageDestination() - * @see #getMessageDriven() - * @generated - */ - EReference getMessageDriven_MessageDestination(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getLink <em>Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Link</em>'. - * @see org.eclipse.jst.j2ee.ejb.MessageDriven#getLink() - * @see #getMessageDriven() - * @generated - */ - EAttribute getMessageDriven_Link(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getMessagingType <em>Messaging Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Messaging Type</em>'. - * @see org.eclipse.jst.j2ee.ejb.MessageDriven#getMessagingType() - * @see #getMessageDriven() - * @generated - */ - EReference getMessageDriven_MessagingType(); - - /** - * @generated This field/method will be replaced during code generation - * @return MessageDrivenDestination object - */ - EClass getMessageDrivenDestination(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMessageDrivenDestination_Type(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMessageDrivenDestination_SubscriptionDurability(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getMessageDrivenDestination_Bean(); - - /** - * @generated This field/method will be replaced during code generation - * @return EJBMethodCategory object - */ - EClass getEJBMethodCategory(); - - /** - * @generated This field/method will be replaced during code generation - * @return TransactionAttributeType object - */ - EEnum getTransactionAttributeType(); - - /** - * @generated This field/method will be replaced during code generation - * @return MultiplicityKind object - */ - EEnum getMultiplicityKind(); - - /** - * @generated This field/method will be replaced during code generation - * @return ReturnTypeMapping object - */ - EEnum getReturnTypeMapping(); - - /** - * @generated This field/method will be replaced during code generation - * @return MethodElementKind object - */ - EEnum getMethodElementKind(); - - /** - * @generated This field/method will be replaced during code generation - * @return TransactionType object - */ - EEnum getTransactionType(); - - /** - * @generated This field/method will be replaced during code generation - * @return AcknowledgeMode object - */ - EEnum getAcknowledgeMode(); - - /** - * @generated This field/method will be replaced during code generation - * @return DestinationType object - */ - EEnum getDestinationType(); - - /** - * @generated This field/method will be replaced during code generation - * @return SubscriptionDurabilityKind object - */ - EEnum getSubscriptionDurabilityKind(); - - /** - * @generated This field/method will be replaced during code generation - * @return SessionType object - */ - EEnum getSessionType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EjbFactory getEjbFactory(); - -} //EjbPackage - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EnterpriseBean.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EnterpriseBean.java deleted file mode 100644 index 641d59f49..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EnterpriseBean.java +++ /dev/null @@ -1,328 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import java.util.Comparator; -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.ENamedElement; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.common.EJBLocalRef; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup; -import org.eclipse.jst.j2ee.common.SecurityIdentity; - - -/** - * @generated - * EnterpriseJavaBean is a class. It can have instances, someone could write an instance document containing Departments and Employees. It also has attributes, operations, and associations. These are actually derived//filtered from its implementation classes and interfaces. For mapping and browsing purposes, though, you would like the EJB to appear as a class. - * - * In this light, even Session Beans can have associations and properties implemented by their bean. For example, it would be meaningful to describe associations from a Session to the Entities which it uses to perform its work. - * @extends ENamedElement - * - ** @since 1.0 */ -public interface EnterpriseBean extends JNDIEnvRefsGroup, ENamedElement{ - -/** - * Creates a List of MethodElements that represent the - * Methods from @someMethods pointing to this EJB. It is - * assumed that all of the methods belong to @anInterface. - */ -List createMethodElements(List someMethods, JavaClass anInterface) ; -/** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * and are common to both the Home and Remote interfaces. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - * @deprecated used getAvailableUnspecifiedMethodElements - */ -List getAvailableCommonMethodElements() ; - -/** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * and are common to both the Home and Remote interfaces. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - */ -List getAvailableUnspecifiedMethodElements() ; -/** - * This method will return a List of MethodElements signatures - * that represent all the possible MethodElements that can be created - * and are common to both the Home and Remote interfaces. - * @deprecated used getAvailableUnspecifiedMethodElementSignatures - */ -List getAvailableCommonMethodElementSignatures() ; -/** - * This method will return a List of MethodElements signatures - * that represent all the possible MethodElements that can be created - * and are common to both the Home and Remote interfaces. - */ -List getAvailableUnspecifiedMethodElementSignatures() ; -/** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * for the Home interface. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - */ -List getAvailableHomeMethodElements() ; -/** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * for the Local Home interface. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - */ -List getAvailableLocalHomeMethodElements() ; -/** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * for the Local interface. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - */ -List getAvailableLocalMethodElements() ; -/** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * for the Remote interface. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - */ -List getAvailableRemoteMethodElements() ; -/** - * Return a List of all available MethodElements for all types as well as the - * existing MethodElements from the <code>refObject</code>. The parameter - * will be either a MethodTransaction or a MethodPermission. The List will be - * sorted based on the passed EjbMethodElementComparator - */ -public List getExistingOrAvailableMethodElements(EObject refObject, Comparator comparator) ; -/** - * Return a List of all available MethodElements for all types as well as the - * existing MethodElements from the <code>refObject</code>. The parameter - * will be either a MethodTransaction or a MethodPermission. The List will be - * sorted based on the EjbMethodElementComparator - */ -public List getExistingOrAvailableMethodElements(EObject refObject) ; -public String getEjbClassName(); -/** - * Return an EjbRef contained by this bean which is - * equivalent to @anEjbRef. - */ -EjbRef getEquivalentEjbRef(EjbRef anEjbRef) ; -/** - * Method getEquivalentEJBLocalRef. - * @param anEjbLocalRef - * @return EJBLocalRef - */ -EJBLocalRef getEquivalentEJBLocalRef(EJBLocalRef anEjbLocalRef); - -public String getHomeInterfaceName(); -public Method[] getHomeMethodsForDeployment(); -/** - * Return an EjbRef that is physically linked to @anEJB. - */ -EjbRef getLinkedEJBReference(EnterpriseBean anEJB) ; -/** - * Return an EJBLocalRef that is physically linked to @anEJB. - */ -EJBLocalRef getLinkedEJBLocalReference(EnterpriseBean anEJB) ; -public String getLocalHomeInterfaceName(); -public Method[] getLocalHomeMethodsForDeployment(); -public String getLocalInterfaceName(); -public String getRemoteInterfaceName(); -public Method[] getRemoteMethodsForDeployment(); -/** - * Return true if @aJavaClass as equal to the - * home, remote, bean class, or key class. - */ -boolean hasJavaReference(JavaClass aJavaClass) ; -/** - * Return true if this ejb has BeanManagedPersistance. - */ -boolean isBeanManagedEntity() ; -public boolean isContainerManagedEntity(); -public boolean isEntity(); -public boolean isMessageDriven(); -public boolean isSession(); - -/** - * returns an integer representing the version of the bean in the EJBJar - * @see org.eclipse.jst.j2ee.internal.J2EEVersionConstants - */ -public int getVersionID(); - -/** - * @deprecated - Use {@link #getVersionID()} - * @see org.eclipse.jst.j2ee.internal.J2EEVersionConstants - */ -public boolean isVersion1_X() ; - -/** - * @deprecated - Use {@link #getVersionID()} - * @see org.eclipse.jst.j2ee.internal.J2EEVersionConstants - */ -public boolean isVersion2_X() ; - -/** - * Return true if this EJB has a local interface and a local home - * interface. - */ -public boolean hasLocalClient(); - -/** - * Return true if this EJB has a remote interface and a home - * interface. - */ -public boolean hasRemoteClient(); - -/** - * Fix the role-link on any contained role refs - */ -public void reSyncSecurityRoleRef(String existingRoleName, String newRoleName); -public void setEjbClassName(String ejbClassName); -public void setHomeInterfaceName(String homeInterfaceName); -public void setLocalHomeInterfaceName(String localHomeInterfaceName); -public void setLocalInterfaceName(String localInterfaceName); -public void setRemoteInterfaceName(String remoteInterfaceName); - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getEnterpriseBean_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.EnterpriseBean#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of SecurityRoleRefs references - */ - EList getSecurityRoleRefs(); - - /** - * @generated This field/method will be replaced during code generation - * @return The EjbClass reference - */ - JavaClass getEjbClass(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the EjbClass reference - */ - void setEjbClass(JavaClass value); - - /** - * @generated This field/method will be replaced during code generation - * @return The HomeInterface reference - */ - JavaClass getHomeInterface(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the HomeInterface reference - */ - void setHomeInterface(JavaClass value); - - /** - * @generated This field/method will be replaced during code generation - * @return The RemoteInterface reference - */ - JavaClass getRemoteInterface(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the RemoteInterface reference - */ - void setRemoteInterface(JavaClass value); - - /** - * @generated This field/method will be replaced during code generation - * @return The EjbJar reference - */ - EJBJar getEjbJar(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the EjbJar reference - */ - void setEjbJar(EJBJar value); - - /** - * @generated This field/method will be replaced during code generation - * @return The SecurityIdentity reference - * The security-identity element specifies whether the caller's security identity - * is to be used for the execution of the methods of the enterprise bean or - * whether a specific run-as identity is to be used. It - * contains an optional description and a specification of the security identity - * to be used. - */ - SecurityIdentity getSecurityIdentity(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the SecurityIdentity reference - */ - void setSecurityIdentity(SecurityIdentity value); - - /** - * @generated This field/method will be replaced during code generation - * @return The LocalHomeInterface reference - */ - JavaClass getLocalHomeInterface(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the LocalHomeInterface reference - */ - void setLocalHomeInterface(JavaClass value); - - /** - * @generated This field/method will be replaced during code generation - * @return The LocalInterface reference - */ - JavaClass getLocalInterface(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the LocalInterface reference - */ - void setLocalInterface(JavaClass value); - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Entity.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Entity.java deleted file mode 100644 index 30a9ad374..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Entity.java +++ /dev/null @@ -1,103 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.jem.java.JavaClass; - -/** - * The entity element declares an entity bean. The declaration consists of: an optional description; optional display name; optional small icon file name; optional large icon file name; a unique name assigned to the enterprise bean in the deployment descriptor; the names of the entity bean's home and remote interfaces, if any; the names of the entity bean's local home and local interface, if any; the entity bean's implementation class; the entity bean's persistence management type; the entity bean's primary key class name; an indication of the entity bean's reentrancy; an optional specification of the entity bean's cmp-version; an optional specification of the entity bean's abstract schema name; an optional list of container-managed fields; an optional specification of the primary key field; an optional declaration of the bean's environment entries; an optional declaration of the bean's EJB references; an optional declaration of the bean's local EJB references; an optional declaration of the security role references; an optional declaration of the security identity to be used for the execution of the bean's methods; an optional declaration of the bean's resource manager connection factory references; an optional declaration of the bean's resource environment references; an optional set of query declarations for finder and select methods for an entity bean with cmp-version 2.x. - * The optional abstract-schema-name element must be specified for an entity bean with container managed persistence and cmp-version 2.x. The optional primkey-field may be present in the descriptor if the entity's persistence-type is Container. The optional cmp-version element may be present in the descriptor if the entity's persistence-type is Container. If the persistence-type is Container and the cmp-version element is not specified, its value defaults to 2.x. - * The optional home and remote elements must be specified if the entity bean cmp-version is 1.x. - * The optional local-home and local elements must be specified if the entity bean has a local home and local interface. - * The optional query elements must be present if the persistence-type is Container and the cmp-version is 2.x and query methods other than findByPrimaryKey have been defined for the entity bean. - * The other elements that are optional are "optional" in the sense that they are omitted if the lists represented by them are empty. At least one cmp-field element must be present in the descriptor if - * the entity's persistence-type is Container and the cmp-version is 1.x, and none must not be present if the entity's persistence-type is Bean. - * @since 1.0 */ -public interface Entity extends EnterpriseBean{ - -public String getPrimaryKeyName(); -public boolean isContainerManagedEntity(); - -public void setPrimaryKeyName(String primaryKeyName); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the IsReentrant attribute - * The reentrant element specifies whether an entity bean is reentrant or not. - - */ - boolean isReentrant(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.Entity#isReentrant <em>Reentrant</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Reentrant</em>' attribute. - * @see #isSetReentrant() - * @see #unsetReentrant() - * @see #isReentrant() - * @generated - */ - void setReentrant(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.Entity#isReentrant <em>Reentrant</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetReentrant() - * @see #isReentrant() - * @see #setReentrant(boolean) - * @generated - */ - void unsetReentrant(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.Entity#isReentrant <em>Reentrant</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Reentrant</em>' attribute is set. - * @see #unsetReentrant() - * @see #isReentrant() - * @see #setReentrant(boolean) - * @generated - */ - boolean isSetReentrant(); - - /** - * @generated This field/method will be replaced during code generation - * @return The PrimaryKey reference - * The primkey-field element is used to specify the name of the primary key field - * for an entity with container-managed persistence. The primkey-field must be - * one of the fields declared in the cmp-field - * element, and the type of the field must be the same as the primary key type. - * The primkey-field element is not used if the primary key maps to multiple - * container-managed fields (i.e. the key is a compound key). In this case, the - * fields of the primary key class must be public, and their names must correspond - * to the field names of the entity bean class that comprise the key. - * Examples:<prim-key-class>java.lang.String<//prim-key-class> - * <prim-key-class>com.wombat.empl.EmployeeID<//prim-key-class> - * <prim-key-class>java.lang.Object<//prim-key-class> - - */ - JavaClass getPrimaryKey(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the PrimaryKey reference - */ - void setPrimaryKey(JavaClass value); - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ExcludeList.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ExcludeList.java deleted file mode 100644 index e8df1f6c3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ExcludeList.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * The exclude list element defines a set of methods which the Assembler marks to be uncallable. It contains one or more methods. - * - * If the method permission relation contains methods that are in the exclude list, the Deployer must consider those methods to be uncallable. - - * @since 1.0 */ -public interface ExcludeList extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of MethodElements references - */ - EList getMethodElements(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getExcludeList_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - - /** - * Return a List of MethodElements that point to - * @anEJB. - */ - List getMethodElements(EnterpriseBean anEJB); -} - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/IRoleShapeStrategy.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/IRoleShapeStrategy.java deleted file mode 100644 index 306edf0a1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/IRoleShapeStrategy.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import java.util.List; - - - - - -/** - * Insert the type's description here. - * Creation date: (11/6/2000 11:40:16 AM) - * @author: Administrator - * @since 1.0 */ -public interface IRoleShapeStrategy { - String ATTRIBUTE_NAME_JOINER = "_"; //$NON-NLS-1$ - String ROLE_GET_PREFIX = "get"; //$NON-NLS-1$ - String ROLE_SET_PREFIX = "set"; //$NON-NLS-1$ -boolean isFlat(); -boolean isRound(); -void reconcileAttributes(List roleAttributes) ; -boolean usesAttributeNamed(String attributeName) ; -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MessageDriven.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MessageDriven.java deleted file mode 100644 index a84ecc2a8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MessageDriven.java +++ /dev/null @@ -1,281 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import org.eclipse.jem.java.JavaClass; - - - - -/** - * @generated - * @since 1.0 */ -public interface MessageDriven extends EnterpriseBean{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the TransactionType attribute - * The transaction-type element specifies an enterprise bean's transaction - * management type. - * - * The transaction-type element must be one of the two following: Bean, Container - */ - TransactionType getTransactionType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getTransactionType <em>Transaction Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Transaction Type</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.TransactionType - * @see #isSetTransactionType() - * @see #unsetTransactionType() - * @see #getTransactionType() - * @generated - */ - void setTransactionType(TransactionType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getTransactionType <em>Transaction Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetTransactionType() - * @see #getTransactionType() - * @see #setTransactionType(TransactionType) - * @generated - */ - void unsetTransactionType(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getTransactionType <em>Transaction Type</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Transaction Type</em>' attribute is set. - * @see #unsetTransactionType() - * @see #getTransactionType() - * @see #setTransactionType(TransactionType) - * @generated - */ - boolean isSetTransactionType(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the MessageSelector attribute - * The message-selector element is used to specify the JMS message - * selector to be used in determining which messages a message-driven - * bean is to receive. - * - * Example value: - * JMSType = `car' AND color = `blue' AND weight > 2500 - - */ - String getMessageSelector(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the MessageSelector attribute - */ - void setMessageSelector(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the AcknowledgeMode attribute - * an optional declaration of the acknowledgment mode for the message-driven bean - * if bean-managed transaction demarcation is used (ie. self.transactionType = - * Bean) - * - * The acknowledge-mode specifies whether JMS AUTO_ACKNOWLEDGE or - * DUPS_OK_ACKNOWLEDGE message acknowledgment semantics should be used for the - * onMessage message of a message-driven bean that uses bean managed transaction - * demarcation. - * - * The acknowledge-mode must be one of the two following: Auto-acknowledge, - * Dups-ok-acknowledge - - */ - AcknowledgeMode getAcknowledgeMode(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getAcknowledgeMode <em>Acknowledge Mode</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Acknowledge Mode</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.AcknowledgeMode - * @see #isSetAcknowledgeMode() - * @see #unsetAcknowledgeMode() - * @see #getAcknowledgeMode() - * @generated - */ - void setAcknowledgeMode(AcknowledgeMode value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getAcknowledgeMode <em>Acknowledge Mode</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetAcknowledgeMode() - * @see #getAcknowledgeMode() - * @see #setAcknowledgeMode(AcknowledgeMode) - * @generated - */ - void unsetAcknowledgeMode(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getAcknowledgeMode <em>Acknowledge Mode</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Acknowledge Mode</em>' attribute is set. - * @see #unsetAcknowledgeMode() - * @see #getAcknowledgeMode() - * @see #setAcknowledgeMode(AcknowledgeMode) - * @generated - */ - boolean isSetAcknowledgeMode(); - - /** - * @generated This field/method will be replaced during code generation - * @return The Destination reference - * An optional declaration of the intended destination type of the message-driven - * bean - */ - MessageDrivenDestination getDestination(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Destination reference - */ - void setDestination(MessageDrivenDestination value); - - /** - * Returns the value of the '<em><b>Activation Config</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Activation Config</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Activation Config</em>' containment reference. - * @see #setActivationConfig(ActivationConfig) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getMessageDriven_ActivationConfig() - * @model containment="true" - * @generated - */ - ActivationConfig getActivationConfig(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getActivationConfig <em>Activation Config</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Activation Config</em>' containment reference. - * @see #getActivationConfig() - * @generated - */ - void setActivationConfig(ActivationConfig value); - - /** - * Returns the value of the '<em><b>Message Destination</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Message Destination</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Message Destination</em>' reference. - * @see #setMessageDestination(JavaClass) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getMessageDriven_MessageDestination() - * @model - * @generated - */ - JavaClass getMessageDestination(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getMessageDestination <em>Message Destination</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Message Destination</em>' reference. - * @see #getMessageDestination() - * @generated - */ - void setMessageDestination(JavaClass value); - - /** - * Returns the value of the '<em><b>Link</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Link</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * - an optional declaration of the bean's - * message-destination-link - * - * <!-- end-model-doc --> - * @return the value of the '<em>Link</em>' attribute. - * @see #setLink(String) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getMessageDriven_Link() - * @model - * @generated - */ - String getLink(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getLink <em>Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Link</em>' attribute. - * @see #getLink() - * @generated - */ - void setLink(String value); - - /** - * Returns the value of the '<em><b>Messaging Type</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Messaging Type</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The messaging-type element specifies the message - * listener interface of the message-driven bean. If - * the messaging-type element is not specified, it is - * assumed to be javax.jms.MessageListener. - * <!-- end-model-doc --> - * @return the value of the '<em>Messaging Type</em>' reference. - * @see #setMessagingType(JavaClass) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getMessageDriven_MessagingType() - * @model - * @generated - */ - JavaClass getMessagingType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDriven#getMessagingType <em>Messaging Type</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Messaging Type</em>' reference. - * @see #getMessagingType() - * @generated - */ - void setMessagingType(JavaClass value); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MessageDrivenDestination.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MessageDrivenDestination.java deleted file mode 100644 index e23e2c54a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MessageDrivenDestination.java +++ /dev/null @@ -1,132 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.ecore.EObject; - -/** - * The message-driven-destination element provides advice to the Deployer as to whether a message-driven bean is intended for a Queue or a Topic. The declaration consists of: the type of the message-driven bean's intended destination and an optional declaration of whether a durable or non-durable subscription should be used if the destination-type is javax.jms.Topic. - * @since 1.0 */ -public interface MessageDrivenDestination extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Type attribute - * The destination-type element specifies the type of the JMS destination. The - * type is specified by the Java interface expected to be implemented by the - * destination. - * - * The destination-type element must be one of the two following: javax.jms.Queue, - * javax.jms.Topic - */ - DestinationType getType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDrivenDestination#getType <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Type</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.DestinationType - * @see #isSetType() - * @see #unsetType() - * @see #getType() - * @generated - */ - void setType(DestinationType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDrivenDestination#getType <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetType() - * @see #getType() - * @see #setType(DestinationType) - * @generated - */ - void unsetType(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDrivenDestination#getType <em>Type</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Type</em>' attribute is set. - * @see #unsetType() - * @see #getType() - * @see #setType(DestinationType) - * @generated - */ - boolean isSetType(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the SubscriptionDurability attribute - * The subscription-durability element specifies whether a JMS topic subscription - * is intended to be durable or nondurable. - * - * The subscription-durability element must be one of the two following: Durable, - * NonDurable - - */ - SubscriptionDurabilityKind getSubscriptionDurability(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDrivenDestination#getSubscriptionDurability <em>Subscription Durability</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Subscription Durability</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.SubscriptionDurabilityKind - * @see #isSetSubscriptionDurability() - * @see #unsetSubscriptionDurability() - * @see #getSubscriptionDurability() - * @generated - */ - void setSubscriptionDurability(SubscriptionDurabilityKind value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDrivenDestination#getSubscriptionDurability <em>Subscription Durability</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetSubscriptionDurability() - * @see #getSubscriptionDurability() - * @see #setSubscriptionDurability(SubscriptionDurabilityKind) - * @generated - */ - void unsetSubscriptionDurability(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.MessageDrivenDestination#getSubscriptionDurability <em>Subscription Durability</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Subscription Durability</em>' attribute is set. - * @see #unsetSubscriptionDurability() - * @see #getSubscriptionDurability() - * @see #setSubscriptionDurability(SubscriptionDurabilityKind) - * @generated - */ - boolean isSetSubscriptionDurability(); - - /** - * @generated This field/method will be replaced during code generation - * @return The Bean reference - */ - MessageDriven getBean(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Bean reference - */ - void setBean(MessageDriven value); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodElement.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodElement.java deleted file mode 100644 index ed70544ab..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodElement.java +++ /dev/null @@ -1,368 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -/** - * The method element is used to denote a method of an enterprise bean's - * home or remote interface, or a set of methods. The ejb-name element - * must be the name of one of the enterprise beans in declared in the - * deployment descriptor; the optional method-intf element allows to - * distinguish between a method with the same signature that is defined in - * both the home and remote interface; the method-name element specifies - * the method name; and the optional method-params elements identify a - * single method among multiple methods with an overloaded method name. - * - * There are three possible styles of the method element syntax: - * - * 1. <method> - * <ejb-name>EJBNAME<//ejb-name> - * <method-name>*<//method-name> - * <//method> - * - * This style is used to refer to all the methods of the specified - * enterprise bean's home and remote interfaces. - * - * 2. <method> - * <ejb-name>EJBNAME<//ejb-name> - * <method-name>METHOD<//method-name> - * <//method>> - * - * This style is used to refer to the specified method of the - * specified enterprise bean. If there are multiple methods with - * the same overloaded name, the element of this style refers to - * all the methods with the overloaded name. - * - * - * - * - * - * 3. <method> - * <ejb-name>EJBNAME<//ejb-name> - * <method-name>METHOD<//method-name> - * <method-params> - * <method-param>PARAM-1<//method-param> - * <method-param>PARAM-2<//method-param> - * ... - * <method-param>PARAM-n<//method-param> - * <//method-params> - * <method> - * - * This style is used to refer to a single method within a set of - * methods with an overloaded name. PARAM-1 through PARAM-n are the - * fully-qualified Java types of the method's input parameters (if - * the method has no input arguments, the method-params element - * contains no method-param elements). Arrays are specified by the - * array element's type, followed by one or more pair of square - * brackets (e.g. int[][]). - * - * - * Used in: method-permission and container-transaction - * - * Examples: - * - * Style 1: The following method element refers to all the methods of - * the EmployeeService bean's home and remote interfaces: - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-name>*<//method-name> - * <//method> - * - * Style 2: The following method element refers to all the create - * methods of the EmployeeService bean's home interface: - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-name>create<//method-name> - * <//method> - * - * Style 3: The following method element refers to the - * create(String firstName, String LastName) method of the - * EmployeeService bean's home interface. - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-name>create<//method-name> - * <method-params> - * <method-param>java.lang.String<//method-param> - * <method-param>java.lang.String<//method-param> - * <//method-params> - * <//method> - * - * - * The following example illustrates a Style 3 element with - * more complex parameter types. The method - * foobar(char s, int i, int[] iar, mypackage.MyClass mycl, - * mypackage.MyClass[][] myclaar) - * would be specified as: - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-name>foobar<//method-name> - * <method-params> - * <method-param>char<//method-param> - * <method-param>int<//method-param> - * <method-param>int[]<//method-param> - * <method-param>mypackage.MyClass<//method-param> - * <method-param>mypackage.MyClass[][]<//method-param> - * <//method-params> - * <//method> - * - * The optional method-intf element can be used when it becomes - * necessary to differentiate between a method defined in the home - * interface and a method with the same name and signature that is - * defined in the remote interface. - * - * For example, the method element - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-intf>Remote<//method-intf> - * <method-name>create<//method-name> - * <method-params> - * <method-param>java.lang.String<//method-param> - * <method-param>java.lang.String<//method-param> - * <//method-params> - * <//method> - * - * can be used to differentiate the create(String, String) method - * defined in the remote interface from the create(String, String) - * method defined in the home interface, which would be defined as - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-intf>Home<//method-intf> - * <method-name>create<//method-name> - * <method-params> - * <method-param>java.lang.String<//method-param> - * <method-param>java.lang.String<//method-param> - * <//method-params> - * <//method> - - * @since 1.0 */ -public interface MethodElement extends EObject{ - - public static final String RIGHT_PAREN = "("; //$NON-NLS-1$ - public static final String LEFT_PAREN = ")"; //$NON-NLS-1$ - public static final String COMMA = ","; //$NON-NLS-1$ - public void addMethodParams(String param); -/** - * Set the params for this method element to an empty array, as opposed - * to null. - */ -public void applyZeroParams(); -/** - * Return true if this MethodElement and @anotherMethodElement - * have the same name, parameters, and type. - */ -boolean equalSignature(MethodElement anotherMethodElement) ; - java.util.List getMethodParams() ;/** - * Answer whether method params apply to this method, e.g., it is specific to one - * overloaded method, even if the method is a zero parameter method. Answer false if no - * parameters apply, that is, the method element applies to all overloaded methods with this name - */ -/** - * Answer a list of all the methods for which this method element applies. The following rules are used: - * - * 1) If the method element type is unspecified, the methods are obtained from the remote interface of the ejb; - * If it is specified, then the appropriate interface is used - * - * 2) If the method name = "*", then all the PUBLIC methods for that interface are returned - * - * 3) If the method name is specified, and no method params are specified, then all public methods for the interface - * having the same name are returned. - * - * 4) If the method name and params are specified, then a zero or one element array is returned, containing the one and only method - * on the interface with the appropriate signature, if it exists - */ -public Method[] getMethods(); -/** - * Return the MethodElement that is most specific. - */ -MethodElement getMostSpecific(MethodElement aMethodElement, JavaClass aJavaClass); -/** - * Return the signature. - * For example: setTwoParamMethod(java.lang.String, java.lang.String) - */ -String getSignature() ; -/** - * Return the type cast to a JavaClass. - */ -JavaClass getTypeJavaClass() ; -public boolean hasMethodParams(); -/** - * Parse @aSignature setting the name and the params. - * A signature example: setTwoParamMethod(java.lang.String, java.lang.String) - */ -void initializeFromSignature(String aSignature) ; -boolean isDefault(); -/** - * Return true if this MethodElement and @anotherMethodElement - * represent the same exact methods. - */ -boolean isEquivalent(MethodElement anotherMethodElement) ; -boolean isHome() ; -boolean isRemote() ; -boolean isUnspecified() ; -boolean isLocalHome() ; -boolean isLocal() ; -/** - * Return true if this MethodElement represents one or more - * methods. - */ -public boolean isValid() ; -/** - * Return true if this MethodElement has the same basic signature as - * @aMethod, ignoring the return type, thrown exceptions, and declaring class of - * this instance or @aMethod. Return false, if params is null - */ -public boolean nameAndParamsEquals(Method aMethod); - public void removeMethodParams(String param); -boolean represents(Method aMethod); -public void setIdToReadableString(); -/** - * Return true if this MethodElement uniquely identifies - * @aMethod. Return false, even if the MethodElement represents - * @aMethod (i.e., @aMethod is contained in its list of methods). - */ -boolean uniquelyIdentifies(Method aMethod); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Name attribute - * The method-name element contains a name of an enterprise bean method, - * or the asterisk (*) character. The asterisk is used when the element - * denotes all the methods of an enterprise bean's remote and home - * interfaces. - - */ - String getName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Name attribute - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Parms attribute - * The method-params element contains a list of the fully-qualified Java type - * names of the method parameters. In the current implementation this is a space - * delimitted String. A null string indicates a generic method element that can - * apply to multiple methods with the same name. An empty string indicates a - * method with zero parameters. - */ - String getParms(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Parms attribute - */ - void setParms(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Type attribute - */ - MethodElementKind getType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.MethodElement#getType <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Type</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.MethodElementKind - * @see #isSetType() - * @see #unsetType() - * @see #getType() - * @generated - */ - void setType(MethodElementKind value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.MethodElement#getType <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetType() - * @see #getType() - * @see #setType(MethodElementKind) - * @generated - */ - void unsetType(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.MethodElement#getType <em>Type</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Type</em>' attribute is set. - * @see #unsetType() - * @see #getType() - * @see #setType(MethodElementKind) - * @generated - */ - boolean isSetType(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description element is used by the ejb-jar file producer to provide text - * describing the parent element. The description element should include any - * information that the ejb-jar file producer wants to provide to the consumer of - * the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the - * ejb-jar file consumer will display the description when processing the parent - * element. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The EnterpriseBean reference - */ - EnterpriseBean getEnterpriseBean(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the EnterpriseBean reference - */ - void setEnterpriseBean(EnterpriseBean value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getMethodElement_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodElementKind.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodElementKind.java deleted file mode 100644 index f93821046..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodElementKind.java +++ /dev/null @@ -1,219 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface MethodElementKind {} - * @since 1.0 - */ -public final class MethodElementKind extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int UNSPECIFIED = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int REMOTE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int HOME = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int LOCAL = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int LOCAL_HOME = 4; - /** - * The '<em><b>Service Endpoint</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #SERVICE_ENDPOINT_LITERAL - * @model name="ServiceEndpoint" - * @generated - * @ordered - */ - public static final int SERVICE_ENDPOINT = 5; - - /** - * The '<em><b>Unspecified</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Unspecified</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #UNSPECIFIED - * @generated - * @ordered - */ - public static final MethodElementKind UNSPECIFIED_LITERAL = new MethodElementKind(UNSPECIFIED, "Unspecified"); //$NON-NLS-1$ - - /** - * The '<em><b>Remote</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Remote</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #REMOTE - * @generated - * @ordered - */ - public static final MethodElementKind REMOTE_LITERAL = new MethodElementKind(REMOTE, "Remote"); //$NON-NLS-1$ - - /** - * The '<em><b>Home</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Home</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #HOME - * @generated - * @ordered - */ - public static final MethodElementKind HOME_LITERAL = new MethodElementKind(HOME, "Home"); //$NON-NLS-1$ - - /** - * The '<em><b>Local</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Local</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #LOCAL - * @generated - * @ordered - */ - public static final MethodElementKind LOCAL_LITERAL = new MethodElementKind(LOCAL, "Local"); //$NON-NLS-1$ - - /** - * The '<em><b>Local Home</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Local Home</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #LOCAL_HOME - * @generated - * @ordered - */ - public static final MethodElementKind LOCAL_HOME_LITERAL = new MethodElementKind(LOCAL_HOME, "LocalHome"); //$NON-NLS-1$ - - /** - * The '<em><b>Service Endpoint</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Service Endpoint</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #SERVICE_ENDPOINT - * @generated - * @ordered - */ - public static final MethodElementKind SERVICE_ENDPOINT_LITERAL = new MethodElementKind(SERVICE_ENDPOINT, "ServiceEndpoint"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Method Element Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final MethodElementKind[] VALUES_ARRAY = - new MethodElementKind[] { - UNSPECIFIED_LITERAL, - REMOTE_LITERAL, - HOME_LITERAL, - LOCAL_LITERAL, - LOCAL_HOME_LITERAL, - SERVICE_ENDPOINT_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Method Element Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Method Element Kind</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static MethodElementKind get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - MethodElementKind result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Method Element Kind</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static MethodElementKind get(int value) { - switch (value) { - case UNSPECIFIED: return UNSPECIFIED_LITERAL; - case REMOTE: return REMOTE_LITERAL; - case HOME: return HOME_LITERAL; - case LOCAL: return LOCAL_LITERAL; - case LOCAL_HOME: return LOCAL_HOME_LITERAL; - case SERVICE_ENDPOINT: return SERVICE_ENDPOINT_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private MethodElementKind(int value, String name) { - super(value, name); - } - -} //MethodElementKind - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodPermission.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodPermission.java deleted file mode 100644 index fd6953fe7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodPermission.java +++ /dev/null @@ -1,148 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.SecurityRole; - -/** - * The method-permission element specifies that one or more security roles are allowed to invoke one or more enterprise bean methods. The method-permission element consists of an optional description, a list of security role names, and a list of method elements. The security roles used in the method-permission element must be defined in the security-role element of the deployment descriptor, and the methods must be methods defined in the enterprise bean's remote and//or home interfaces. - * @since 1.0 */ -public interface MethodPermission extends EObject{ - -/** - * Return a List of MethodElements that point to - * @anEJB. - */ -List getMethodElements(EnterpriseBean anEJB) ; -/** - * Return the SecurityRole named @aRoleName. - */ -SecurityRole getSecurityRole(String aRoleName) ; -/** - * Return true if this permission contains @aSecurityRole - */ -boolean hasSecurityRole(SecurityRole aSecurityRole) ; -/** - * Return true if this permission contains a SecurityRole - * named @aRoleName. - */ -boolean hasSecurityRole(String aRoleName) ; -/** - * Return true if this MethodPermission and @anotherMethodPermission - * have the same roles. - */ -boolean isEquivalent(MethodPermission anotherMethodPermission) ; - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description element is used by the ejb-jar file producer to provide text - * describing the parent element. The description element should include any - * information that the ejb-jar file producer wants to provide to the consumer of - * the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the - * ejb-jar file consumer will display the description when processing the parent - * element. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Unchecked attribute - */ - boolean isUnchecked(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Unchecked attribute - */ - void setUnchecked(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.MethodPermission#isUnchecked <em>Unchecked</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetUnchecked() - * @see #isUnchecked() - * @see #setUnchecked(boolean) - * @generated - */ - void unsetUnchecked(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.MethodPermission#isUnchecked <em>Unchecked</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Unchecked</em>' attribute is set. - * @see #unsetUnchecked() - * @see #isUnchecked() - * @see #setUnchecked(boolean) - * @generated - */ - boolean isSetUnchecked(); - - /** - * @generated This field/method will be replaced during code generation - * @return The AssemblyDescriptor reference - */ - AssemblyDescriptor getAssemblyDescriptor(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the AssemblyDescriptor reference - */ - void setAssemblyDescriptor(AssemblyDescriptor value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Roles references - */ - EList getRoles(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of MethodElements references - */ - EList getMethodElements(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getMethodPermission_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodTransaction.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodTransaction.java deleted file mode 100644 index abaa7c8c7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodTransaction.java +++ /dev/null @@ -1,139 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jem.java.Method; -/** - * Specifies how the container must manage transaction scopes for the enterprise bean's method invocations. It consists of an optional description, a list of method elements, and a transaction attribute.The transaction attribute is to be applied to all the specified methods. - * @since 1.0 */ -public interface MethodTransaction extends EObject{ - -/** - * Return a List of MethodElements that point to - * @anEJB. - */ -List getMethodElements(EnterpriseBean anEJB) ; -MethodElement getMostSpecificMethodElement(Method aMethod) ; -/** - * Return true if the transaction attributes are the same. - */ -boolean isEquivalent(MethodTransaction anotherMethodTransaction) ; - /** - * @generated This field/method will be replaced during code generation - * @return The value of the TransactionAttribute attribute - * The trans-attribute element specifies how the container must manage the - * transaction boundaries when delegating a method invocation to an enterprise - * bean's business method. - - */ - TransactionAttributeType getTransactionAttribute(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.MethodTransaction#getTransactionAttribute <em>Transaction Attribute</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Transaction Attribute</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.TransactionAttributeType - * @see #isSetTransactionAttribute() - * @see #unsetTransactionAttribute() - * @see #getTransactionAttribute() - * @generated - */ - void setTransactionAttribute(TransactionAttributeType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.MethodTransaction#getTransactionAttribute <em>Transaction Attribute</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetTransactionAttribute() - * @see #getTransactionAttribute() - * @see #setTransactionAttribute(TransactionAttributeType) - * @generated - */ - void unsetTransactionAttribute(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.MethodTransaction#getTransactionAttribute <em>Transaction Attribute</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Transaction Attribute</em>' attribute is set. - * @see #unsetTransactionAttribute() - * @see #getTransactionAttribute() - * @see #setTransactionAttribute(TransactionAttributeType) - * @generated - */ - boolean isSetTransactionAttribute(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description element is used by the ejb-jar file producer to provide text - * describing the parent element. The description element should include any - * information that the ejb-jar file producer wants to provide to the consumer of - * the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the - * ejb-jar file consumer will display the description when processing the parent - * element. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The AssemblyDescriptor reference - */ - AssemblyDescriptor getAssemblyDescriptor(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the AssemblyDescriptor reference - */ - void setAssemblyDescriptor(AssemblyDescriptor value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of MethodElements references - */ - EList getMethodElements(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getMethodTransaction_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MultiplicityKind.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MultiplicityKind.java deleted file mode 100644 index 3a088b3da..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MultiplicityKind.java +++ /dev/null @@ -1,131 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface MultiplicityKind {} - * @since 1.0 - */ -public final class MultiplicityKind extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int ONE= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int MANY= 1; - - /** - * The '<em><b>One</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>One</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #ONE - * @generated - * @ordered - */ - public static final MultiplicityKind ONE_LITERAL = new MultiplicityKind(ONE, "One"); //$NON-NLS-1$ - - /** - * The '<em><b>Many</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Many</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #MANY - * @generated - * @ordered - */ - public static final MultiplicityKind MANY_LITERAL = new MultiplicityKind(MANY, "Many"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Multiplicity Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final MultiplicityKind[] VALUES_ARRAY = - new MultiplicityKind[] { - ONE_LITERAL, - MANY_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Multiplicity Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Multiplicity Kind</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static MultiplicityKind get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - MultiplicityKind result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Multiplicity Kind</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static MultiplicityKind get(int value) { - switch (value) { - case ONE: return ONE_LITERAL; - case MANY: return MANY_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private MultiplicityKind(int value, String name) { - super(value, name); - } - -} //MultiplicityKind diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Query.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Query.java deleted file mode 100644 index 2e859b364..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Query.java +++ /dev/null @@ -1,206 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * The query element is used to specify a finder or select query. It contains an optional description of the query; the specification of the finder or select method it is used by; a specification of the return type mapping, if any, if the query is for a select method; and the EJB QL query string that defines the query. Queries that are expressible in EJB QL must use the ejb-ql element to specify the query. If a query - * is not expressible in EJB QL, the description element should be used to describe the semantics of the query and the ejb-ql element should be empty. - * @since 1.0 */ -public interface Query extends EObject{ - - /** - * Returns boolean value for ReturnTypeMapping, checks if it is of type ReturnTypeMapping.LOCAL - * @return boolean value - */ - public boolean isLocalResultMapping(); - - /** - * Returns boolean value for ReturnTypeMapping, checks if it is of type ReturnTypeMapping.REMOTE - * @return boolean value - */ - public boolean isRemoteResultMapping(); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description is used by the ejb-jar file producer to provide text describing - * the query. - * - * The description should include any information that the ejb-jar file producer - * wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). - * Typically, the tools used by the ejb-jar file consumer will display the - * description when processing the list of dependents. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the EjbQL attribute - * Contains the EJB QL query string that defines a finder or select query. This - * element is defined within the scope of a query element whose contents specify - * the finder or the select method that uses the query. The content must be a - * valid EJB QL query string for the entity bean for which the query is specified. - * The ejb-ql element must be specified for all queries that are expressible in - * EJB QL. - * - * @invariant The value must be a valid EJB QL query string for the entity bean or - * dependent object class for which the query is specified. - * @invariant The ejb-ql element must be specified for all queries that are - * expressible in EJB QL. - * - * Example: - * <query> - * <query-method> - * <method-name>ejbSelectPendingLineitems<//method-name> - * <method-params//> - * <//query-method> - * <ejb-ql>SELECT ENTITY(l) - * FROM LineItems l - * WHERE l.shipped is FALSE - * <//ejb-ql> - * <//query> - */ - String getEjbQL(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the EjbQL attribute - */ - void setEjbQL(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ReturnTypeMapping attribute - * The return-type-mapping element is used in the query element to specify whether - * an abstract schema type that is returned by a query for a select method is to - * be mapped to an EJBLocalObject or EJBObject type. The value of the - * return-type-mapping element, if specified must be one of the following. - */ - ReturnTypeMapping getReturnTypeMapping(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.Query#getReturnTypeMapping <em>Return Type Mapping</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Return Type Mapping</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.ReturnTypeMapping - * @see #isSetReturnTypeMapping() - * @see #unsetReturnTypeMapping() - * @see #getReturnTypeMapping() - * @generated - */ - void setReturnTypeMapping(ReturnTypeMapping value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.Query#getReturnTypeMapping <em>Return Type Mapping</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetReturnTypeMapping() - * @see #getReturnTypeMapping() - * @see #setReturnTypeMapping(ReturnTypeMapping) - * @generated - */ - void unsetReturnTypeMapping(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.Query#getReturnTypeMapping <em>Return Type Mapping</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Return Type Mapping</em>' attribute is set. - * @see #unsetReturnTypeMapping() - * @see #getReturnTypeMapping() - * @see #setReturnTypeMapping(ReturnTypeMapping) - * @generated - */ - boolean isSetReturnTypeMapping(); - - /** - * @generated This field/method will be replaced during code generation - * @return The QueryMethod reference - * The query-method element is used to specify the method (DB//SR//CM-"on the - * home") for a finder or - * select query. - * - * The method-name element specifies the name of a finder or select - * method in the entity bean's implementation class or a select method in - * the dependent object class. - * - * Each method-param must be defined for a query-method using the - * method-params element. - * - * Used in: query - * - * Example: - * - * Example: - * <query> - * <description>Method finds large orders<//description> - * <query-method> - * <method-name>findLargeOrders<//method-name> - * <method-params><//method-params> - * <//query-method> - * <ejb-ql>SELECT ENTITY(o) FROM Order o WHERE o.amount > 1000<//ejb-ql> - * <//query> - */ - QueryMethod getQueryMethod(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the QueryMethod reference - */ - void setQueryMethod(QueryMethod value); - - /** - * @generated This field/method will be replaced during code generation - * @return The Entity reference - */ - ContainerManagedEntity getEntity(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.Query#getEntity <em>Entity</em>}' container reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Entity</em>' container reference. - * @see #getEntity() - * @generated - */ - void setEntity(ContainerManagedEntity value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getQuery_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/QueryMethod.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/QueryMethod.java deleted file mode 100644 index d1ffa859a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/QueryMethod.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.jem.java.JavaClass; -/** - * @generated - * @since 1.0 */ -public interface QueryMethod extends MethodElement{ - - /** - * - */ - public static final String SELECT_PREFIX = "ejbSelect"; //$NON-NLS-1$ - - /** - * - */ - public static final String FIND_PREFIX = "find"; //$NON-NLS-1$ - /** - * @generated This field/method will be replaced during code generation - * @return The Query reference - */ - Query getQuery(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Query reference - */ - void setQuery(Query value); - - /** - * Return an array of JavaClasses of all the interfaces or bean class that this method is presented - * to a client. If it is an ejbSelect... on the bean class will be returned and if - * it if a find both home interfaces will be returned if they exist. - * - * May return null. - * @return array of JavaClass - */ - JavaClass[] getClientTypeJavaClasses() ; -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Relationships.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Relationships.java deleted file mode 100644 index 5e36b53b1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Relationships.java +++ /dev/null @@ -1,82 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * The relationships describes the relationships in which entity beans with container managed persistence participate. The relationships element contains an optional description; and a list of ejb-relation elements, which specify the container managed relationships. - * @since 1.0 */ -public interface Relationships extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * The description is used by the ejb-jar file producer to provide text describing - * the collection of relationships. - * - * The description should include any information that the ejb-jar file producer - * wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). - * Typically, the tools used by the ejb-jar file consumer will display the - * description when processing the list of dependents. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The EjbJar reference - */ - EJBJar getEjbJar(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the EjbJar reference - */ - void setEjbJar(EJBJar value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of EjbRelations references - * A list of ejb-relation elements, which specify the container managed - * relationships. - */ - EList getEjbRelations(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getRelationships_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ReturnTypeMapping.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ReturnTypeMapping.java deleted file mode 100644 index 1764aee4b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ReturnTypeMapping.java +++ /dev/null @@ -1,131 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface ReturnTypeMapping {} - * @since 1.0 - */ -public final class ReturnTypeMapping extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int LOCAL= 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int REMOTE= 1; - /** - * The '<em><b>Local</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Local</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #LOCAL - * @generated - * @ordered - */ - public static final ReturnTypeMapping LOCAL_LITERAL = new ReturnTypeMapping(LOCAL, "Local"); //$NON-NLS-1$ - - /** - * The '<em><b>Remote</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Remote</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #REMOTE - * @generated - * @ordered - */ - public static final ReturnTypeMapping REMOTE_LITERAL = new ReturnTypeMapping(REMOTE, "Remote"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Return Type Mapping</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final ReturnTypeMapping[] VALUES_ARRAY = - new ReturnTypeMapping[] { - LOCAL_LITERAL, - REMOTE_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Return Type Mapping</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Return Type Mapping</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static ReturnTypeMapping get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - ReturnTypeMapping result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Return Type Mapping</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static ReturnTypeMapping get(int value) { - switch (value) { - case LOCAL: return LOCAL_LITERAL; - case REMOTE: return REMOTE_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private ReturnTypeMapping(int value, String name) { - super(value, name); - } - -} //ReturnTypeMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/RoleSource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/RoleSource.java deleted file mode 100644 index 499950fdc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/RoleSource.java +++ /dev/null @@ -1,84 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * Designates the source of a role that participates in a relationship. A relationship-role-source element uniquely identifies an entity bean. - * @invariant The content of each role-source element shall refer to an existing entity bean, entity bean reference. - * @since 1.0 */ -public interface RoleSource extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The Role reference - */ - EJBRelationshipRole getRole(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Role reference - */ - void setRole(EJBRelationshipRole value); - - /** - * @generated This field/method will be replaced during code generation - * @return The EntityBean reference - */ - ContainerManagedEntity getEntityBean(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.RoleSource#getEntityBean <em>Entity Bean</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Entity Bean</em>' reference. - * @see #getEntityBean() - * @generated - */ - void setEntityBean(ContainerManagedEntity value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getRoleSource_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Session.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Session.java deleted file mode 100644 index c1017b0a6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Session.java +++ /dev/null @@ -1,167 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import org.eclipse.jem.java.JavaClass; - - - - -/** - * The session element declares an session bean. The declaration consists of: an optional description; optional display name; optional small icon file name; optional large icon file name; a name assigned - * to the enterprise bean in the deployment description; the names of the session bean's home and remote interfaces, if any; the names of the session bean's local home and local interfaces, if any; the session bean's implementation class; the session bean's state management type; the session bean's transaction management type; an optional declaration of the bean's environment entries; an optional declaration of the bean's EJB references; an optional declaration of the bean's local EJB references; an optional declaration of the security role references; an optional declaration of the security identity to be used for the execution of the bean's methods; an optional declaration of the bean's resource manager connection factory references; and an optional declaration of the bean's resource environment references. The elements that are optional are "optional" in the sense that they are omitted when if lists represented by them are empty. - * @since 1.0 */ -public interface Session extends EnterpriseBean{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the TransactionType attribute - * The transaction-type element specifies an enterprise bean's transaction - * management type. - * - - */ - TransactionType getTransactionType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.Session#getTransactionType <em>Transaction Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Transaction Type</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.TransactionType - * @see #isSetTransactionType() - * @see #unsetTransactionType() - * @see #getTransactionType() - * @generated - */ - void setTransactionType(TransactionType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.Session#getTransactionType <em>Transaction Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetTransactionType() - * @see #getTransactionType() - * @see #setTransactionType(TransactionType) - * @generated - */ - void unsetTransactionType(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.Session#getTransactionType <em>Transaction Type</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Transaction Type</em>' attribute is set. - * @see #unsetTransactionType() - * @see #getTransactionType() - * @see #setTransactionType(TransactionType) - * @generated - */ - boolean isSetTransactionType(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the SessionType attribute - */ - SessionType getSessionType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.Session#getSessionType <em>Session Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Session Type</em>' attribute. - * @see org.eclipse.jst.j2ee.ejb.SessionType - * @see #isSetSessionType() - * @see #unsetSessionType() - * @see #getSessionType() - * @generated - */ - void setSessionType(SessionType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.ejb.Session#getSessionType <em>Session Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetSessionType() - * @see #getSessionType() - * @see #setSessionType(SessionType) - * @generated - */ - void unsetSessionType(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.ejb.Session#getSessionType <em>Session Type</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Session Type</em>' attribute is set. - * @see #unsetSessionType() - * @see #getSessionType() - * @see #setSessionType(SessionType) - * @generated - */ - boolean isSetSessionType(); - - /** - * Returns the value of the '<em><b>Service Endpoint</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Endpoint</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The service-endpoint element contains the - * fully-qualified name of the enterprise bean's web - * service endpoint interface. The service-endpoint - * element may only be specified for a stateless - * session bean. The specified interface must be a - * valid JAX-RPC service endpoint interface. - * <!-- end-model-doc --> - * @return the value of the '<em>Service Endpoint</em>' reference. - * @see #setServiceEndpoint(JavaClass) - * @see org.eclipse.jst.j2ee.ejb.EjbPackage#getSession_ServiceEndpoint() - * @model - * @generated - */ - JavaClass getServiceEndpoint(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.ejb.Session#getServiceEndpoint <em>Service Endpoint</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Service Endpoint</em>' reference. - * @see #getServiceEndpoint() - * @generated - */ - void setServiceEndpoint(JavaClass value); - - /** - * Helper method to set Java Class name via String - * @param serviceEndpointName the name of the ServiceEndpoint - */ - public void setServiceEndpointName(String serviceEndpointName); - /** - * Return true if this Session bean has a service endpoint interface - * interface. - * @return boolean value - */ - public boolean hasServiceEndpoint() ; - /** - * Helper method to get Java Class name - * @return String value - */ - public String getServiceEndpointName(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/SessionType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/SessionType.java deleted file mode 100644 index 38f5447b8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/SessionType.java +++ /dev/null @@ -1,131 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface SessionType {} - * @since 1.0 - */ -public final class SessionType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int STATEFUL= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int STATELESS= 1; - - /** - * The '<em><b>Stateful</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Stateful</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #STATEFUL - * @generated - * @ordered - */ - public static final SessionType STATEFUL_LITERAL = new SessionType(STATEFUL, "Stateful"); //$NON-NLS-1$ - - /** - * The '<em><b>Stateless</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Stateless</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #STATELESS - * @generated - * @ordered - */ - public static final SessionType STATELESS_LITERAL = new SessionType(STATELESS, "Stateless"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Session Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final SessionType[] VALUES_ARRAY = - new SessionType[] { - STATEFUL_LITERAL, - STATELESS_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Session Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Session Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static SessionType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - SessionType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Session Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static SessionType get(int value) { - switch (value) { - case STATEFUL: return STATEFUL_LITERAL; - case STATELESS: return STATELESS_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private SessionType(int value, String name) { - super(value, name); - } - -} //SessionType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/SubscriptionDurabilityKind.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/SubscriptionDurabilityKind.java deleted file mode 100644 index 9ae5fd469..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/SubscriptionDurabilityKind.java +++ /dev/null @@ -1,131 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface SubscriptionDurabilityKind {} - * @since 1.0 - */ -public final class SubscriptionDurabilityKind extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int DURABLE= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int NON_DURABLE= 1; - - /** - * The '<em><b>Durable</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Durable</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #DURABLE - * @generated - * @ordered - */ - public static final SubscriptionDurabilityKind DURABLE_LITERAL = new SubscriptionDurabilityKind(DURABLE, "Durable"); //$NON-NLS-1$ - - /** - * The '<em><b>Non Durable</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Non Durable</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #NON_DURABLE - * @generated - * @ordered - */ - public static final SubscriptionDurabilityKind NON_DURABLE_LITERAL = new SubscriptionDurabilityKind(NON_DURABLE, "NonDurable"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Subscription Durability Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final SubscriptionDurabilityKind[] VALUES_ARRAY = - new SubscriptionDurabilityKind[] { - DURABLE_LITERAL, - NON_DURABLE_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Subscription Durability Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Subscription Durability Kind</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static SubscriptionDurabilityKind get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - SubscriptionDurabilityKind result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Subscription Durability Kind</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static SubscriptionDurabilityKind get(int value) { - switch (value) { - case DURABLE: return DURABLE_LITERAL; - case NON_DURABLE: return NON_DURABLE_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private SubscriptionDurabilityKind(int value, String name) { - super(value, name); - } - -} //SubscriptionDurabilityKind diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/TransactionAttributeType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/TransactionAttributeType.java deleted file mode 100644 index e62972718..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/TransactionAttributeType.java +++ /dev/null @@ -1,211 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface TransactionAttributeType {} - * @since 1.0 - */ -public final class TransactionAttributeType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int NOT_SUPPORTED= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int SUPPORTS= 1; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int REQUIRED= 2; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int REQUIRES_NEW= 3; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int MANDATORY= 4; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int NEVER= 5; - - /** - * The '<em><b>Not Supported</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Not Supported</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #NOT_SUPPORTED - * @generated - * @ordered - */ - public static final TransactionAttributeType NOT_SUPPORTED_LITERAL = new TransactionAttributeType(NOT_SUPPORTED, "NotSupported"); //$NON-NLS-1$ - - /** - * The '<em><b>Supports</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Supports</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #SUPPORTS - * @generated - * @ordered - */ - public static final TransactionAttributeType SUPPORTS_LITERAL = new TransactionAttributeType(SUPPORTS, "Supports"); //$NON-NLS-1$ - - /** - * The '<em><b>Required</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Required</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #REQUIRED - * @generated - * @ordered - */ - public static final TransactionAttributeType REQUIRED_LITERAL = new TransactionAttributeType(REQUIRED, "Required"); //$NON-NLS-1$ - - /** - * The '<em><b>Requires New</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Requires New</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #REQUIRES_NEW - * @generated - * @ordered - */ - public static final TransactionAttributeType REQUIRES_NEW_LITERAL = new TransactionAttributeType(REQUIRES_NEW, "RequiresNew"); //$NON-NLS-1$ - - /** - * The '<em><b>Mandatory</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Mandatory</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #MANDATORY - * @generated - * @ordered - */ - public static final TransactionAttributeType MANDATORY_LITERAL = new TransactionAttributeType(MANDATORY, "Mandatory"); //$NON-NLS-1$ - - /** - * The '<em><b>Never</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Never</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #NEVER - * @generated - * @ordered - */ - public static final TransactionAttributeType NEVER_LITERAL = new TransactionAttributeType(NEVER, "Never"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Transaction Attribute Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final TransactionAttributeType[] VALUES_ARRAY = - new TransactionAttributeType[] { - NOT_SUPPORTED_LITERAL, - SUPPORTS_LITERAL, - REQUIRED_LITERAL, - REQUIRES_NEW_LITERAL, - MANDATORY_LITERAL, - NEVER_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Transaction Attribute Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Transaction Attribute Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static TransactionAttributeType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - TransactionAttributeType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Transaction Attribute Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static TransactionAttributeType get(int value) { - switch (value) { - case NOT_SUPPORTED: return NOT_SUPPORTED_LITERAL; - case SUPPORTS: return SUPPORTS_LITERAL; - case REQUIRED: return REQUIRED_LITERAL; - case REQUIRES_NEW: return REQUIRES_NEW_LITERAL; - case MANDATORY: return MANDATORY_LITERAL; - case NEVER: return NEVER_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private TransactionAttributeType(int value, String name) { - super(value, name); - } - -} //TransactionAttributeType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/TransactionType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/TransactionType.java deleted file mode 100644 index 078d90da9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/TransactionType.java +++ /dev/null @@ -1,131 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface TransactionType {} - * @since 1.0 - */ -public final class TransactionType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int BEAN= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int CONTAINER= 1; - - /** - * The '<em><b>Bean</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Bean</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #BEAN - * @generated - * @ordered - */ - public static final TransactionType BEAN_LITERAL = new TransactionType(BEAN, "Bean"); //$NON-NLS-1$ - - /** - * The '<em><b>Container</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Container</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #CONTAINER - * @generated - * @ordered - */ - public static final TransactionType CONTAINER_LITERAL = new TransactionType(CONTAINER, "Container"); //$NON-NLS-1$ - - /** - * An array of all the '<em><b>Transaction Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final TransactionType[] VALUES_ARRAY = - new TransactionType[] { - BEAN_LITERAL, - CONTAINER_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Transaction Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Transaction Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static TransactionType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - TransactionType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Transaction Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static TransactionType get(int value) { - switch (value) { - case BEAN: return BEAN_LITERAL; - case CONTAINER: return CONTAINER_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private TransactionType(int value, String name) { - super(value, name); - } - -} //TransactionType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/AbstractRelationshipRoleAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/AbstractRelationshipRoleAttributeFilter.java deleted file mode 100644 index a05f6ee09..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/AbstractRelationshipRoleAttributeFilter.java +++ /dev/null @@ -1,99 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - - -/** - * Insert the type's description here. - * Creation date: (11/28/2000 7:06:49 PM) - * @author: Administrator - */ -public abstract class AbstractRelationshipRoleAttributeFilter extends ContainerManagedEntityFilter { -/** - * AbstractRelationshipRoleAttributeFilter constructor comment. - */ -public AbstractRelationshipRoleAttributeFilter() { - super(); -} -/** - * filter method comment. - */ -public List filter(ContainerManagedEntity cmp) { - List attributes = new ArrayList(); - Iterator it = getSourceRoles(cmp).iterator(); - CommonRelationshipRole role; - while (it.hasNext()) { - role = (CommonRelationshipRole) it.next(); - attributes.addAll(role.getAttributes()); - } - return attributes; -} -/** - * Return the proper list of roles from cmpExt. - */ -protected abstract java.util.List getSourceRoles(ContainerManagedEntity cmpExt) ; -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/AbstractRequiredRelationshipRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/AbstractRequiredRelationshipRoleFilter.java deleted file mode 100644 index 765ec1ef6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/AbstractRequiredRelationshipRoleFilter.java +++ /dev/null @@ -1,115 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - -/** - * Insert the type's description here. - * Creation date: (10/15/2001 11:37:19 AM) - * @author: Administrator - */ -public abstract class AbstractRequiredRelationshipRoleFilter extends ContainerManagedEntityFilter { -/** - * AbstractRequiredRelationshipRoleFilter constructor comment. - */ -public AbstractRequiredRelationshipRoleFilter() { - super(); -} -/** - * filter method comment. - */ -public List filter(ContainerManagedEntity cmp) { - List roles = new ArrayList(); - List allRoles = getRolesToFilter(cmp); - CommonRelationshipRole role; - for (int i = 0; i < allRoles.size(); i++) { - role = (CommonRelationshipRole) allRoles.get(i); - if (shouldAddFilteredResult(role)) - roles.add(role); - } - return roles; -} -protected abstract java.util.List getRolesToFilter(ContainerManagedEntity cmp) ; -/** - * Return true if the multiplicity for @aRole is required. - */ -protected boolean shouldAddFilteredResult(CommonRelationshipRole aRole) { - boolean required = aRole.isRequired(); - if (required) { - CommonRelationshipRole opposite = aRole.getOppositeAsCommonRole(); - if (opposite != null) { - if (opposite.isRequired() && !aRole.isKey()) { - if (opposite.isKey() || aRole.isMany()) - return false; - if (!opposite.isMany()) - //both are single and not key - return aRole.isForward(); - } - } - } - return required; -} -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ActivationConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ActivationConfigImpl.java deleted file mode 100644 index 59e73fc39..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ActivationConfigImpl.java +++ /dev/null @@ -1,190 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.ejb.ActivationConfig; -import org.eclipse.jst.j2ee.ejb.ActivationConfigProperty; -import org.eclipse.jst.j2ee.ejb.EjbPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Activation Config</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.ejb.internal.impl.ActivationConfigImpl#getConfigProperties <em>Config Properties</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.ejb.internal.impl.ActivationConfigImpl#getDescriptions <em>Descriptions</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ActivationConfigImpl extends EObjectImpl implements ActivationConfig { - /** - * The cached value of the '{@link #getConfigProperties() <em>Config Properties</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConfigProperties() - * @generated - * @ordered - */ - protected EList configProperties = null; - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ActivationConfigImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getActivationConfig(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getConfigProperties() { - if (configProperties == null) { - configProperties = new EObjectContainmentEList(ActivationConfigProperty.class, this, EjbPackage.ACTIVATION_CONFIG__CONFIG_PROPERTIES); - } - return configProperties; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.ACTIVATION_CONFIG__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.ACTIVATION_CONFIG__CONFIG_PROPERTIES: - return ((InternalEList)getConfigProperties()).basicRemove(otherEnd, msgs); - case EjbPackage.ACTIVATION_CONFIG__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ACTIVATION_CONFIG__CONFIG_PROPERTIES: - return getConfigProperties(); - case EjbPackage.ACTIVATION_CONFIG__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ACTIVATION_CONFIG__CONFIG_PROPERTIES: - getConfigProperties().clear(); - getConfigProperties().addAll((Collection)newValue); - return; - case EjbPackage.ACTIVATION_CONFIG__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ACTIVATION_CONFIG__CONFIG_PROPERTIES: - getConfigProperties().clear(); - return; - case EjbPackage.ACTIVATION_CONFIG__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ACTIVATION_CONFIG__CONFIG_PROPERTIES: - return configProperties != null && !configProperties.isEmpty(); - case EjbPackage.ACTIVATION_CONFIG__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - -} //ActivationConfigImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ActivationConfigPropertyImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ActivationConfigPropertyImpl.java deleted file mode 100644 index 7f0786883..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ActivationConfigPropertyImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.ejb.ActivationConfigProperty; -import org.eclipse.jst.j2ee.ejb.EjbPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Activation Config Property</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.ejb.internal.impl.ActivationConfigPropertyImpl#getValue <em>Value</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.ejb.internal.impl.ActivationConfigPropertyImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ActivationConfigPropertyImpl extends EObjectImpl implements ActivationConfigProperty { - /** - * The default value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ActivationConfigPropertyImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getActivationConfigProperty(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getValue() { - return value; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ACTIVATION_CONFIG_PROPERTY__VALUE, oldValue, value)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ACTIVATION_CONFIG_PROPERTY__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ACTIVATION_CONFIG_PROPERTY__VALUE: - return getValue(); - case EjbPackage.ACTIVATION_CONFIG_PROPERTY__NAME: - return getName(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ACTIVATION_CONFIG_PROPERTY__VALUE: - setValue((String)newValue); - return; - case EjbPackage.ACTIVATION_CONFIG_PROPERTY__NAME: - setName((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ACTIVATION_CONFIG_PROPERTY__VALUE: - setValue(VALUE_EDEFAULT); - return; - case EjbPackage.ACTIVATION_CONFIG_PROPERTY__NAME: - setName(NAME_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ACTIVATION_CONFIG_PROPERTY__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - case EjbPackage.ACTIVATION_CONFIG_PROPERTY__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); - result.append(value); - result.append(", name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //ActivationConfigPropertyImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/AssemblyDescriptorImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/AssemblyDescriptorImpl.java deleted file mode 100644 index 0b851c2c0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/AssemblyDescriptorImpl.java +++ /dev/null @@ -1,483 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.MessageDestination; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.ExcludeList; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodPermission; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; -import org.eclipse.wst.common.internal.emf.utilities.ExtendedEcoreUtil; - - -/** - * The assembly-descriptor element contains application-assembly information. The application-assembly information consists of the following parts: the definition of security roles, the definition of method permissions, and the definition of transaction attributes for enterprise beans with container-managed transaction demarcation. All the parts are optional in the sense that they are omitted if the lists represented by them are empty. Providing an assembly-descriptor in the deployment descriptor is optional for the ejb-jar file producer. - */ -public class AssemblyDescriptorImpl extends EObjectImpl implements AssemblyDescriptor, EObject { - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList methodPermissions = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList methodTransactions = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList securityRoles = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected ExcludeList excludeList = null; - /** - * The cached value of the '{@link #getMessageDestinations() <em>Message Destinations</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageDestinations() - * @generated - * @ordered - */ - protected EList messageDestinations = null; - - public AssemblyDescriptorImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getAssemblyDescriptor(); - } - -/** - * Return the first method permission that contains all the roles in securityRoles and - * is the same size - */ - -public MethodPermission getMethodPermission(List securityRolesList) { - List permissions = getMethodPermissions(); - MethodPermission temp = null; - for (int i = 0; i < permissions.size(); i++) { - temp = (MethodPermission) permissions.get(i); - if (temp.getRoles().containsAll(securityRolesList) && temp.getRoles().size() == securityRolesList.size()) - return temp; - } - return null; -} -public List getMethodPermissionMethodElements(EnterpriseBean anEJB) { - List allMethodElements = new ArrayList(); - List permissions = getMethodPermissions(); - MethodPermission permission; - for (int i = 0; i < permissions.size(); i++){ - permission = (MethodPermission) permissions.get(i); - allMethodElements.addAll(permission.getMethodElements(anEJB)); - } - return allMethodElements; -} - - -public List getMethodTransactionMethodElements(EnterpriseBean anEJB) { - List allMethodElements = new ArrayList(); - List transactions = getMethodTransactions(); - MethodTransaction transaction; - for (int i = 0; i < transactions.size(); i++){ - transaction = (MethodTransaction) transactions.get(i); - allMethodElements.addAll(transaction.getMethodElements(anEJB)); - } - return allMethodElements; -} - -public SecurityRole getSecurityRoleNamed(String roleName) { - java.util.List tempRoles = getSecurityRoles(); - SecurityRole role; - for (int i = 0; i < tempRoles.size(); i++) { - role = (SecurityRole) tempRoles.get(i); - if (role.getRoleName().equals(roleName)) - return role; - } - return null; -} - -/** - * @see org.eclipse.jst.j2ee.internal.ejb.AssemblyDescriptor - */ -public void renameSecurityRole(java.lang.String existingRoleName, java.lang.String newRoleName) { - SecurityRole role = getSecurityRoleNamed(existingRoleName); - role.setRoleName(newRoleName); -} - /** - * @generated This field/method will be replaced during code generation - */ - public EList getMethodPermissions() { - if (methodPermissions == null) { - methodPermissions = new EObjectContainmentWithInverseEList(MethodPermission.class, this, EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS, EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR); - } - return methodPermissions; - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies how the container must manage transaction scopes for the enterprise - * bean's method invocations. The element consists of an optional description, a - * list of method elements, and a transaction attribute.The transaction attribute - * is to be applied to all the specified methods. - */ - public EList getMethodTransactions() { - if (methodTransactions == null) { - methodTransactions = new EObjectContainmentWithInverseEList(MethodTransaction.class, this, EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS, EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR); - } - return methodTransactions; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EJBJar getEjbJar() { - if (eContainerFeatureID != EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR) return null; - return (EJBJar)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setEjbJar(EJBJar newEjbJar) { - if (newEjbJar != eContainer || (eContainerFeatureID != EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR && newEjbJar != null)) { - if (EcoreUtil.isAncestor(this, newEjbJar)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newEjbJar != null) - msgs = ((InternalEObject)newEjbJar).eInverseAdd(this, EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR, EJBJar.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newEjbJar, EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR, newEjbJar, newEjbJar)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getSecurityRoles() { - if (securityRoles == null) { - securityRoles = new EObjectContainmentEList(SecurityRole.class, this, EjbPackage.ASSEMBLY_DESCRIPTOR__SECURITY_ROLES); - } - return securityRoles; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public ExcludeList getExcludeList() { - return excludeList; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetExcludeList(ExcludeList newExcludeList, NotificationChain msgs) { - ExcludeList oldExcludeList = excludeList; - excludeList = newExcludeList; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EjbPackage.ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST, oldExcludeList, newExcludeList); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setExcludeList(ExcludeList newExcludeList) { - if (newExcludeList != excludeList) { - NotificationChain msgs = null; - if (excludeList != null) - msgs = ((InternalEObject)excludeList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EjbPackage.ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST, null, msgs); - if (newExcludeList != null) - msgs = ((InternalEObject)newExcludeList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EjbPackage.ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST, null, msgs); - msgs = basicSetExcludeList(newExcludeList, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST, newExcludeList, newExcludeList)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getMessageDestinations() { - if (messageDestinations == null) { - messageDestinations = new EObjectContainmentEList(MessageDestination.class, this, EjbPackage.ASSEMBLY_DESCRIPTOR__MESSAGE_DESTINATIONS); - } - return messageDestinations; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS: - return ((InternalEList)getMethodPermissions()).basicAdd(otherEnd, msgs); - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS: - return ((InternalEList)getMethodTransactions()).basicAdd(otherEnd, msgs); - case EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS: - return ((InternalEList)getMethodPermissions()).basicRemove(otherEnd, msgs); - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS: - return ((InternalEList)getMethodTransactions()).basicRemove(otherEnd, msgs); - case EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR: - return eBasicSetContainer(null, EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR, msgs); - case EjbPackage.ASSEMBLY_DESCRIPTOR__SECURITY_ROLES: - return ((InternalEList)getSecurityRoles()).basicRemove(otherEnd, msgs); - case EjbPackage.ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST: - return basicSetExcludeList(null, msgs); - case EjbPackage.ASSEMBLY_DESCRIPTOR__MESSAGE_DESTINATIONS: - return ((InternalEList)getMessageDestinations()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR: - return eContainer.eInverseRemove(this, EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR, EJBJar.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS: - return getMethodPermissions(); - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS: - return getMethodTransactions(); - case EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR: - return getEjbJar(); - case EjbPackage.ASSEMBLY_DESCRIPTOR__SECURITY_ROLES: - return getSecurityRoles(); - case EjbPackage.ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST: - return getExcludeList(); - case EjbPackage.ASSEMBLY_DESCRIPTOR__MESSAGE_DESTINATIONS: - return getMessageDestinations(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS: - return methodPermissions != null && !methodPermissions.isEmpty(); - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS: - return methodTransactions != null && !methodTransactions.isEmpty(); - case EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR: - return getEjbJar() != null; - case EjbPackage.ASSEMBLY_DESCRIPTOR__SECURITY_ROLES: - return securityRoles != null && !securityRoles.isEmpty(); - case EjbPackage.ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST: - return excludeList != null; - case EjbPackage.ASSEMBLY_DESCRIPTOR__MESSAGE_DESTINATIONS: - return messageDestinations != null && !messageDestinations.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS: - getMethodPermissions().clear(); - getMethodPermissions().addAll((Collection)newValue); - return; - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS: - getMethodTransactions().clear(); - getMethodTransactions().addAll((Collection)newValue); - return; - case EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR: - setEjbJar((EJBJar)newValue); - return; - case EjbPackage.ASSEMBLY_DESCRIPTOR__SECURITY_ROLES: - getSecurityRoles().clear(); - getSecurityRoles().addAll((Collection)newValue); - return; - case EjbPackage.ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST: - setExcludeList((ExcludeList)newValue); - return; - case EjbPackage.ASSEMBLY_DESCRIPTOR__MESSAGE_DESTINATIONS: - getMessageDestinations().clear(); - getMessageDestinations().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS: - getMethodPermissions().clear(); - return; - case EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS: - getMethodTransactions().clear(); - return; - case EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR: - setEjbJar((EJBJar)null); - return; - case EjbPackage.ASSEMBLY_DESCRIPTOR__SECURITY_ROLES: - getSecurityRoles().clear(); - return; - case EjbPackage.ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST: - setExcludeList((ExcludeList)null); - return; - case EjbPackage.ASSEMBLY_DESCRIPTOR__MESSAGE_DESTINATIONS: - getMessageDestinations().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * Remove the MethodElements that are referencing @anEJB. - */ - public void removeData(EnterpriseBean anEJB) { - if (anEJB != null) { - removeMethodPermissionData(anEJB); - removeMethodTransactionData(anEJB); - } - } - /** - * Remove the MethodElements that are referencing @anEJB. - */ - protected void removeMethodPermissionData(EnterpriseBean anEJB) { - List mes = getMethodPermissionMethodElements(anEJB); - MethodElement me; - MethodPermission mp; - for (int i = 0; i < mes.size(); i++){ - me = (MethodElement) mes.get(i); - mp = (MethodPermission)me.eContainer(); - if (mp.getMethodElements().size() == 1){ - ExtendedEcoreUtil.becomeProxy(mp, mp.eResource()); - getMethodPermissions().remove(mp); - } - else{ - ExtendedEcoreUtil.becomeProxy(me, me.eResource()); - mp.getMethodElements().remove(me); - } - } - } - /** - * Remove the MethodElements that are referencing @anEJB. - */ - protected void removeMethodTransactionData(EnterpriseBean anEJB) { - List mes = getMethodTransactionMethodElements(anEJB); - MethodElement me; - MethodTransaction mt; - for (int i = 0; i < mes.size(); i++){ - me = (MethodElement) mes.get(i); - mt = (MethodTransaction)me.eContainer(); - if (mt.getMethodElements().size() == 1){ - ExtendedEcoreUtil.becomeProxy(mt, mt.eResource()); - getMethodTransactions().remove(mt); - } - else{ - ExtendedEcoreUtil.becomeProxy(me, me.eResource()); - mt.getMethodElements().remove(me); - } - } - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/CMPAttributeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/CMPAttributeImpl.java deleted file mode 100644 index db8b8674a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/CMPAttributeImpl.java +++ /dev/null @@ -1,606 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.Collection; -import java.util.Collections; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EAttributeImpl; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; - -/** - * Describes a container-managed field. The field element includes an optional description of the field, and the name of the field. - - */ -public class CMPAttributeImpl extends EAttributeImpl implements CMPAttribute, EAttribute{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - protected transient JavaHelpers originatingType; - protected transient CMPAttribute targetAttribute; - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - protected boolean derived; - - public CMPAttributeImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getCMPAttribute(); - } - -protected Field findExistingField() { - JavaClass javaClass = getEjbClass(); - if (javaClass != null) - return javaClass.getFieldExtended(getName()); - return null; -} -public org.eclipse.emf.ecore.EClassifier getAccessorType() { - if (getEjbClass() != null) { - Method getter = getEjbClass().getMethodExtended(getGetterName(), Collections.EMPTY_LIST); - if (getter != null) - return getter.getReturnType(); - } - return null; -} -public ContainerManagedEntity getCMPEntity() { - return (ContainerManagedEntity) eContainer(); -} -/** - * Return the EjbClass from the CMP Entity. - */ - -protected JavaClass getEjbClass() { - ContainerManagedEntity ejb = getCMPEntity(); - return ejb == null ? null : ejb.getEjbClass(); -} -/** - * Return the KeyClass from the CMP Entity. - */ - -protected JavaClass getKeyClass() { - ContainerManagedEntity ejb = getCMPEntity(); - return ejb == null ? null : ejb.getPrimaryKey(); -} -/** - * @deprecated - With EJB 2.0, assuming a Java field is no longer safe. - * Use getType() and getName() to get the most common field info. - * Or use getEjbClass() to get additional Java info. - */ - - public Field getField() { - ContainerManagedEntity ejb = getCMPEntity(); - - if(ejb == null) - return null; - - Field field = null; - switch(ejb.getVersionID()) { - case J2EEVersionConstants.EJB_1_0_ID: - case J2EEVersionConstants.EJB_1_1_ID: - field = findExistingField(); - //Set the field type based on the attribute type if necessary - if (field != null && getEType() != null && field.getEType() == null) - field.setEType(getEType()); - break; - case J2EEVersionConstants.EJB_2_0_ID: - case J2EEVersionConstants.EJB_2_1_ID: default: - field = ((JavaRefPackage)EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI)).getJavaRefFactory().createField(); - field.setName(getName()); - field.setEType(getAccessorType()); - break; - } - return field; -} -public String getGetterName() { - if (name != null && name.length() > 0) { - StringBuffer b = new StringBuffer("get"); //$NON-NLS-1$ - - b.append(Character.toUpperCase(name.charAt(0))).append(name.length() > 1 ? name.substring(1) : ""); //$NON-NLS-1$ - return b.toString(); - } - return name; -} -/** - * Return the type of this attribute in its original form (i.e., unwrapped if - * the type has been wrapped). - */ -public JavaHelpers getOriginatingType() { - return originatingType; -} -public String getSetterName() { - return "set" + Character.toUpperCase(getName().charAt(0)) + (getName().length() > 1 ? getName().substring(1) : ""); //$NON-NLS-1$ //$NON-NLS-2$ -} -public JavaHelpers getType() { - if (getEType() != null) - return (JavaHelpers) getEType(); - // Be sensitive to CMP 2.0 beans, get type from field or get accessor type - ContainerManagedEntity ejb = getCMPEntity(); - Resource res = eResource(); - boolean modFlag = res == null ? false : res.isModified(); - boolean deliveryFlag = eDeliver(); - try { - eSetDeliver(false); - if(ejb != null) { - switch(ejb.getVersionID()) { - case J2EEVersionConstants.EJB_1_0_ID: - case J2EEVersionConstants.EJB_1_1_ID: - setEType(getTypeFromBeanField()); - break; - case J2EEVersionConstants.EJB_2_0_ID: - case J2EEVersionConstants.EJB_2_1_ID: default: - setEType(get20Type()); - break; - } - } - } finally { - eSetDeliver(deliveryFlag); - if (res != null && res.isTrackingModification()) - res.setModified(modFlag); - } - return (JavaHelpers) getEType(); -} -protected EClassifier getTypeFromBeanField() { - EClassifier type = null; - Field field = getField(); - if (field != null) - type = field.getEType(); - if (type == null) - type = getKeyFieldTypeFromKeyClass(); - return type; -} -public EClassifier get20Type() { - EClassifier type = null; - if (getEjbClass() != null) { - String getterName = getGetterName(); - if (getterName != null && getterName.length() > 0) { - Method getter = getEjbClass().getMethodExtended(getterName, Collections.EMPTY_LIST); - if (getter != null) - type = getter.getReturnType(); - } - } - if (type == null) - type = getKeyFieldTypeFromKeyClass(); - return type; -} -/** - * @return - */ -private EClassifier getKeyFieldTypeFromKeyClass() { - if (isKey()) { - JavaClass key = getCMPEntity().getPrimaryKey(); - if (key != null && key.getQualifiedName() != null && !key.getQualifiedName().startsWith("java.lang")) { //$NON-NLS-1$ - Field field = key.getFieldExtended(getName()); - if (field != null) - return field.getEType(); - } else - return key; - } - return null; -} -public boolean isCMRField() { - return false; -} -public boolean isKey() { - return getCMPEntity() == null ? false : getCMPEntity().isKeyAttribute(this); -} - -public boolean isPrimKeyField(){ - return getCMPEntity() == null ? false : getCMPEntity().getPrimKeyField() == this; -} - -public void setOriginatingType(JavaHelpers newOriginatingType) { - originatingType = newOriginatingType; -} - /** - * @generated This field/method will be replaced during code generation - * The description is used by the ejb-jar file producer to provide text describing the cmr field. - * - * The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.CMP_ATTRIBUTE__DESCRIPTION, oldDescription, description)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.CMP_ATTRIBUTE__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.CMP_ATTRIBUTE__EANNOTATIONS: - return ((InternalEList)getEAnnotations()).basicAdd(otherEnd, msgs); - case EjbPackage.CMP_ATTRIBUTE__ECONTAINING_CLASS: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.CMP_ATTRIBUTE__ECONTAINING_CLASS, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.CMP_ATTRIBUTE__EANNOTATIONS: - return ((InternalEList)getEAnnotations()).basicRemove(otherEnd, msgs); - case EjbPackage.CMP_ATTRIBUTE__ECONTAINING_CLASS: - return eBasicSetContainer(null, EjbPackage.CMP_ATTRIBUTE__ECONTAINING_CLASS, msgs); - case EjbPackage.CMP_ATTRIBUTE__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.CMP_ATTRIBUTE__ECONTAINING_CLASS: - return eContainer.eInverseRemove(this, EcorePackage.ECLASS__ESTRUCTURAL_FEATURES, EClass.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CMP_ATTRIBUTE__EANNOTATIONS: - return getEAnnotations(); - case EjbPackage.CMP_ATTRIBUTE__NAME: - return getName(); - case EjbPackage.CMP_ATTRIBUTE__ORDERED: - return isOrdered() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMP_ATTRIBUTE__UNIQUE: - return isUnique() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMP_ATTRIBUTE__LOWER_BOUND: - return new Integer(getLowerBound()); - case EjbPackage.CMP_ATTRIBUTE__UPPER_BOUND: - return new Integer(getUpperBound()); - case EjbPackage.CMP_ATTRIBUTE__MANY: - return isMany() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMP_ATTRIBUTE__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMP_ATTRIBUTE__ETYPE: - if (resolve) return getEType(); - return basicGetEType(); - case EjbPackage.CMP_ATTRIBUTE__CHANGEABLE: - return isChangeable() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMP_ATTRIBUTE__VOLATILE: - return isVolatile() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMP_ATTRIBUTE__TRANSIENT: - return isTransient() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMP_ATTRIBUTE__DEFAULT_VALUE_LITERAL: - return getDefaultValueLiteral(); - case EjbPackage.CMP_ATTRIBUTE__DEFAULT_VALUE: - return getDefaultValue(); - case EjbPackage.CMP_ATTRIBUTE__UNSETTABLE: - return isUnsettable() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMP_ATTRIBUTE__DERIVED: - return isDerived() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMP_ATTRIBUTE__ECONTAINING_CLASS: - return getEContainingClass(); - case EjbPackage.CMP_ATTRIBUTE__ID: - return isID() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMP_ATTRIBUTE__EATTRIBUTE_TYPE: - if (resolve) return getEAttributeType(); - return basicGetEAttributeType(); - case EjbPackage.CMP_ATTRIBUTE__DESCRIPTION: - return getDescription(); - case EjbPackage.CMP_ATTRIBUTE__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CMP_ATTRIBUTE__EANNOTATIONS: - return eAnnotations != null && !eAnnotations.isEmpty(); - case EjbPackage.CMP_ATTRIBUTE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EjbPackage.CMP_ATTRIBUTE__ORDERED: - return ((eFlags & ORDERED_EFLAG) != 0) != ORDERED_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__UNIQUE: - return ((eFlags & UNIQUE_EFLAG) != 0) != UNIQUE_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__LOWER_BOUND: - return lowerBound != LOWER_BOUND_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__UPPER_BOUND: - return upperBound != UPPER_BOUND_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__MANY: - return isMany() != MANY_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__REQUIRED: - return isRequired() != REQUIRED_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__ETYPE: - return eType != null; - case EjbPackage.CMP_ATTRIBUTE__CHANGEABLE: - return ((eFlags & CHANGEABLE_EFLAG) != 0) != CHANGEABLE_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__VOLATILE: - return ((eFlags & VOLATILE_EFLAG) != 0) != VOLATILE_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__TRANSIENT: - return ((eFlags & TRANSIENT_EFLAG) != 0) != TRANSIENT_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__DEFAULT_VALUE_LITERAL: - return DEFAULT_VALUE_LITERAL_EDEFAULT == null ? defaultValueLiteral != null : !DEFAULT_VALUE_LITERAL_EDEFAULT.equals(defaultValueLiteral); - case EjbPackage.CMP_ATTRIBUTE__DEFAULT_VALUE: - return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue()); - case EjbPackage.CMP_ATTRIBUTE__UNSETTABLE: - return ((eFlags & UNSETTABLE_EFLAG) != 0) != UNSETTABLE_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__DERIVED: - return ((eFlags & DERIVED_EFLAG) != 0) != DERIVED_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__ECONTAINING_CLASS: - return getEContainingClass() != null; - case EjbPackage.CMP_ATTRIBUTE__ID: - return ((eFlags & ID_EFLAG) != 0) != ID_EDEFAULT; - case EjbPackage.CMP_ATTRIBUTE__EATTRIBUTE_TYPE: - return basicGetEAttributeType() != null; - case EjbPackage.CMP_ATTRIBUTE__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.CMP_ATTRIBUTE__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CMP_ATTRIBUTE__EANNOTATIONS: - getEAnnotations().clear(); - getEAnnotations().addAll((Collection)newValue); - return; - case EjbPackage.CMP_ATTRIBUTE__NAME: - setName((String)newValue); - return; - case EjbPackage.CMP_ATTRIBUTE__ORDERED: - setOrdered(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMP_ATTRIBUTE__UNIQUE: - setUnique(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMP_ATTRIBUTE__LOWER_BOUND: - setLowerBound(((Integer)newValue).intValue()); - return; - case EjbPackage.CMP_ATTRIBUTE__UPPER_BOUND: - setUpperBound(((Integer)newValue).intValue()); - return; - case EjbPackage.CMP_ATTRIBUTE__ETYPE: - setEType((EClassifier)newValue); - return; - case EjbPackage.CMP_ATTRIBUTE__CHANGEABLE: - setChangeable(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMP_ATTRIBUTE__VOLATILE: - setVolatile(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMP_ATTRIBUTE__TRANSIENT: - setTransient(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMP_ATTRIBUTE__DEFAULT_VALUE_LITERAL: - setDefaultValueLiteral((String)newValue); - return; - case EjbPackage.CMP_ATTRIBUTE__UNSETTABLE: - setUnsettable(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMP_ATTRIBUTE__DERIVED: - setDerived(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMP_ATTRIBUTE__ID: - setID(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMP_ATTRIBUTE__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.CMP_ATTRIBUTE__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CMP_ATTRIBUTE__EANNOTATIONS: - getEAnnotations().clear(); - return; - case EjbPackage.CMP_ATTRIBUTE__NAME: - setName(NAME_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__ORDERED: - setOrdered(ORDERED_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__UNIQUE: - setUnique(UNIQUE_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__LOWER_BOUND: - setLowerBound(LOWER_BOUND_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__UPPER_BOUND: - setUpperBound(UPPER_BOUND_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__ETYPE: - setEType((EClassifier)null); - return; - case EjbPackage.CMP_ATTRIBUTE__CHANGEABLE: - setChangeable(CHANGEABLE_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__VOLATILE: - setVolatile(VOLATILE_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__TRANSIENT: - setTransient(TRANSIENT_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__DEFAULT_VALUE_LITERAL: - setDefaultValueLiteral(DEFAULT_VALUE_LITERAL_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__UNSETTABLE: - setUnsettable(UNSETTABLE_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__DERIVED: - setDerived(DERIVED_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__ID: - setID(ID_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.CMP_ATTRIBUTE__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * This field/method will be replaced during code generation. - */ - public String toString() { - return super.toString() + " :: " + getName(); //$NON-NLS-1$ - } - /** - * Returns true if a targetAttribute is being used. - * @return Returns a boolean - */ - public boolean isDerived() { - return derived; - } - public void setDerived(boolean aBoolean) { - if (aBoolean && getEType() == null) - getType(); //This ensures that the type is set. - derived = aBoolean; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public String toStringGen() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/CMRFieldImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/CMRFieldImpl.java deleted file mode 100644 index 8ef01ef67..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/CMRFieldImpl.java +++ /dev/null @@ -1,470 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EjbPackage; - -/** - * Describes the bean provider's view of a relationship. It consists of an optional description, and the name and the class type of a field in the source of a role of a relationship. The CMRField::name element corresponds to the name used for the get and set accessor methods for the relationship. The CMRField::type element is used only for collection-valued CMRFields. It specifies the type of the collection that is used (a java class name). - * - - */ -public class CMRFieldImpl extends CMPAttributeImpl implements CMRField, CMPAttribute{ - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass collectionType = null; - public CMRFieldImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getCMRField(); - } - -/** - * createClassRef - return a JavaURL reference to the named Java class - */ -public JavaClass createClassRef(String targetName) { - return JavaRefFactory.eINSTANCE.createClassRef(targetName); -} -public String getCollectionTypeName() { - getCollectionType(); - return collectionType == null ? null : collectionType.getQualifiedName(); -} - -public boolean isPrimKeyField(){ - return false; -} - -public boolean isCMRField() { - return true; -} -public void setCollectionTypeName(String typeName) { - eSet(EjbPackage.eINSTANCE.getCMRField_CollectionType(), createClassRef(typeName)); -} - /** - * @generated This field/method will be replaced during code generation - */ - public EJBRelationshipRole getRole() { - if (eContainerFeatureID != EjbPackage.CMR_FIELD__ROLE) return null; - return (EJBRelationshipRole)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRole(EJBRelationshipRole newRole) { - if (newRole != eContainer || (eContainerFeatureID != EjbPackage.CMR_FIELD__ROLE && newRole != null)) { - if (EcoreUtil.isAncestor(this, newRole)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newRole != null) - msgs = ((InternalEObject)newRole).eInverseAdd(this, EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD, EJBRelationshipRole.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newRole, EjbPackage.CMR_FIELD__ROLE, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.CMR_FIELD__ROLE, newRole, newRole)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public JavaClass getCollectionType() { - if (collectionType != null && collectionType.eIsProxy()) { - JavaClass oldCollectionType = collectionType; - collectionType = (JavaClass)eResolveProxy((InternalEObject)collectionType); - if (collectionType != oldCollectionType) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.CMR_FIELD__COLLECTION_TYPE, oldCollectionType, collectionType)); - } - } - return collectionType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetCollectionType() { - return collectionType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setCollectionType(JavaClass newCollectionType) { - JavaClass oldCollectionType = collectionType; - collectionType = newCollectionType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.CMR_FIELD__COLLECTION_TYPE, oldCollectionType, collectionType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.CMR_FIELD__EANNOTATIONS: - return ((InternalEList)getEAnnotations()).basicAdd(otherEnd, msgs); - case EjbPackage.CMR_FIELD__ECONTAINING_CLASS: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.CMR_FIELD__ECONTAINING_CLASS, msgs); - case EjbPackage.CMR_FIELD__ROLE: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.CMR_FIELD__ROLE, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.CMR_FIELD__EANNOTATIONS: - return ((InternalEList)getEAnnotations()).basicRemove(otherEnd, msgs); - case EjbPackage.CMR_FIELD__ECONTAINING_CLASS: - return eBasicSetContainer(null, EjbPackage.CMR_FIELD__ECONTAINING_CLASS, msgs); - case EjbPackage.CMR_FIELD__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case EjbPackage.CMR_FIELD__ROLE: - return eBasicSetContainer(null, EjbPackage.CMR_FIELD__ROLE, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.CMR_FIELD__ECONTAINING_CLASS: - return eContainer.eInverseRemove(this, EcorePackage.ECLASS__ESTRUCTURAL_FEATURES, EClass.class, msgs); - case EjbPackage.CMR_FIELD__ROLE: - return eContainer.eInverseRemove(this, EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD, EJBRelationshipRole.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CMR_FIELD__EANNOTATIONS: - return getEAnnotations(); - case EjbPackage.CMR_FIELD__NAME: - return getName(); - case EjbPackage.CMR_FIELD__ORDERED: - return isOrdered() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMR_FIELD__UNIQUE: - return isUnique() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMR_FIELD__LOWER_BOUND: - return new Integer(getLowerBound()); - case EjbPackage.CMR_FIELD__UPPER_BOUND: - return new Integer(getUpperBound()); - case EjbPackage.CMR_FIELD__MANY: - return isMany() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMR_FIELD__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMR_FIELD__ETYPE: - if (resolve) return getEType(); - return basicGetEType(); - case EjbPackage.CMR_FIELD__CHANGEABLE: - return isChangeable() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMR_FIELD__VOLATILE: - return isVolatile() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMR_FIELD__TRANSIENT: - return isTransient() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMR_FIELD__DEFAULT_VALUE_LITERAL: - return getDefaultValueLiteral(); - case EjbPackage.CMR_FIELD__DEFAULT_VALUE: - return getDefaultValue(); - case EjbPackage.CMR_FIELD__UNSETTABLE: - return isUnsettable() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMR_FIELD__DERIVED: - return isDerived() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMR_FIELD__ECONTAINING_CLASS: - return getEContainingClass(); - case EjbPackage.CMR_FIELD__ID: - return isID() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CMR_FIELD__EATTRIBUTE_TYPE: - if (resolve) return getEAttributeType(); - return basicGetEAttributeType(); - case EjbPackage.CMR_FIELD__DESCRIPTION: - return getDescription(); - case EjbPackage.CMR_FIELD__DESCRIPTIONS: - return getDescriptions(); - case EjbPackage.CMR_FIELD__ROLE: - return getRole(); - case EjbPackage.CMR_FIELD__COLLECTION_TYPE: - if (resolve) return getCollectionType(); - return basicGetCollectionType(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CMR_FIELD__EANNOTATIONS: - return eAnnotations != null && !eAnnotations.isEmpty(); - case EjbPackage.CMR_FIELD__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EjbPackage.CMR_FIELD__ORDERED: - return ((eFlags & ORDERED_EFLAG) != 0) != ORDERED_EDEFAULT; - case EjbPackage.CMR_FIELD__UNIQUE: - return ((eFlags & UNIQUE_EFLAG) != 0) != UNIQUE_EDEFAULT; - case EjbPackage.CMR_FIELD__LOWER_BOUND: - return lowerBound != LOWER_BOUND_EDEFAULT; - case EjbPackage.CMR_FIELD__UPPER_BOUND: - return upperBound != UPPER_BOUND_EDEFAULT; - case EjbPackage.CMR_FIELD__MANY: - return isMany() != MANY_EDEFAULT; - case EjbPackage.CMR_FIELD__REQUIRED: - return isRequired() != REQUIRED_EDEFAULT; - case EjbPackage.CMR_FIELD__ETYPE: - return eType != null; - case EjbPackage.CMR_FIELD__CHANGEABLE: - return ((eFlags & CHANGEABLE_EFLAG) != 0) != CHANGEABLE_EDEFAULT; - case EjbPackage.CMR_FIELD__VOLATILE: - return ((eFlags & VOLATILE_EFLAG) != 0) != VOLATILE_EDEFAULT; - case EjbPackage.CMR_FIELD__TRANSIENT: - return ((eFlags & TRANSIENT_EFLAG) != 0) != TRANSIENT_EDEFAULT; - case EjbPackage.CMR_FIELD__DEFAULT_VALUE_LITERAL: - return DEFAULT_VALUE_LITERAL_EDEFAULT == null ? defaultValueLiteral != null : !DEFAULT_VALUE_LITERAL_EDEFAULT.equals(defaultValueLiteral); - case EjbPackage.CMR_FIELD__DEFAULT_VALUE: - return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue()); - case EjbPackage.CMR_FIELD__UNSETTABLE: - return ((eFlags & UNSETTABLE_EFLAG) != 0) != UNSETTABLE_EDEFAULT; - case EjbPackage.CMR_FIELD__DERIVED: - return ((eFlags & DERIVED_EFLAG) != 0) != DERIVED_EDEFAULT; - case EjbPackage.CMR_FIELD__ECONTAINING_CLASS: - return getEContainingClass() != null; - case EjbPackage.CMR_FIELD__ID: - return ((eFlags & ID_EFLAG) != 0) != ID_EDEFAULT; - case EjbPackage.CMR_FIELD__EATTRIBUTE_TYPE: - return basicGetEAttributeType() != null; - case EjbPackage.CMR_FIELD__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.CMR_FIELD__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case EjbPackage.CMR_FIELD__ROLE: - return getRole() != null; - case EjbPackage.CMR_FIELD__COLLECTION_TYPE: - return collectionType != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CMR_FIELD__EANNOTATIONS: - getEAnnotations().clear(); - getEAnnotations().addAll((Collection)newValue); - return; - case EjbPackage.CMR_FIELD__NAME: - setName((String)newValue); - return; - case EjbPackage.CMR_FIELD__ORDERED: - setOrdered(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMR_FIELD__UNIQUE: - setUnique(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMR_FIELD__LOWER_BOUND: - setLowerBound(((Integer)newValue).intValue()); - return; - case EjbPackage.CMR_FIELD__UPPER_BOUND: - setUpperBound(((Integer)newValue).intValue()); - return; - case EjbPackage.CMR_FIELD__ETYPE: - setEType((EClassifier)newValue); - return; - case EjbPackage.CMR_FIELD__CHANGEABLE: - setChangeable(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMR_FIELD__VOLATILE: - setVolatile(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMR_FIELD__TRANSIENT: - setTransient(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMR_FIELD__DEFAULT_VALUE_LITERAL: - setDefaultValueLiteral((String)newValue); - return; - case EjbPackage.CMR_FIELD__UNSETTABLE: - setUnsettable(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMR_FIELD__DERIVED: - setDerived(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMR_FIELD__ID: - setID(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CMR_FIELD__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.CMR_FIELD__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case EjbPackage.CMR_FIELD__ROLE: - setRole((EJBRelationshipRole)newValue); - return; - case EjbPackage.CMR_FIELD__COLLECTION_TYPE: - setCollectionType((JavaClass)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CMR_FIELD__EANNOTATIONS: - getEAnnotations().clear(); - return; - case EjbPackage.CMR_FIELD__NAME: - setName(NAME_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__ORDERED: - setOrdered(ORDERED_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__UNIQUE: - setUnique(UNIQUE_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__LOWER_BOUND: - setLowerBound(LOWER_BOUND_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__UPPER_BOUND: - setUpperBound(UPPER_BOUND_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__ETYPE: - setEType((EClassifier)null); - return; - case EjbPackage.CMR_FIELD__CHANGEABLE: - setChangeable(CHANGEABLE_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__VOLATILE: - setVolatile(VOLATILE_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__TRANSIENT: - setTransient(TRANSIENT_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__DEFAULT_VALUE_LITERAL: - setDefaultValueLiteral(DEFAULT_VALUE_LITERAL_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__UNSETTABLE: - setUnsettable(UNSETTABLE_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__DERIVED: - setDerived(DERIVED_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__ID: - setID(ID_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.CMR_FIELD__DESCRIPTIONS: - getDescriptions().clear(); - return; - case EjbPackage.CMR_FIELD__ROLE: - setRole((EJBRelationshipRole)null); - return; - case EjbPackage.CMR_FIELD__COLLECTION_TYPE: - setCollectionType((JavaClass)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @see org.eclipse.jst.j2ee.ejb.internal.impl.CMPAttributeImpl#getCMPEntity() - */ - public ContainerManagedEntity getCMPEntity() { - EJBRelationshipRole role = getRole(); - if (role != null) - return role.getSourceEntity(); - return null; - } - - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ContainerManagedEntityFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ContainerManagedEntityFilter.java deleted file mode 100644 index 206558b69..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ContainerManagedEntityFilter.java +++ /dev/null @@ -1,101 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBExtensionFilter; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.internal.EjbModuleExtensionHelper; -import org.eclipse.jst.j2ee.internal.IEJBModelExtenderManager; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; - - -/** - * Insert the type's description here. Creation date: (11/28/2000 6:28:39 PM) - * @author: Administrator - */ -public abstract class ContainerManagedEntityFilter implements EJBExtensionFilter { - - - /** - * AttributeFilter constructor comment. - */ - public ContainerManagedEntityFilter() { - super(); - } - - /** - * filter method comment. - */ - public abstract List filter(ContainerManagedEntity cmp); - - /** - * All CMPAttributeFilters only operate on ContainerManagedEntityExtension - * objects. - */ - public List filter(EnterpriseBean ejb) { - if (ejb.isEntity() && ((Entity) ejb).isContainerManagedEntity()) return filter((ContainerManagedEntity) ejb); - return new ArrayList(); - } - - protected void filterRoleAttributesByName(List allAttributes, List roleAttributes) { - if (!roleAttributes.isEmpty()) { - int allSize, roleSize; - roleSize = roleAttributes.size(); - CMPAttribute roleAtt, allAtt; - for (int i = 0; i < roleSize; i++) { - roleAtt = (CMPAttribute) roleAttributes.get(i); - allSize = allAttributes.size(); - for (int j = allSize - 1; j != -1; j--) { - allAtt = (CMPAttribute) allAttributes.get(j); - if (roleAtt == allAtt || roleAtt.getName().equals(allAtt.getName())) { - allAttributes.remove(j); - break; - } - } - } - } - } - - protected EjbModuleExtensionHelper getEjbModuleExtHelper(Object context) { - return IEJBModelExtenderManager.INSTANCE.getEJBModuleExtension(context); - } - - protected List getLocalRelationshipRoles(ContainerManagedEntity cmp) { - EjbModuleExtensionHelper modelExtender = null; - if (cmp.getVersionID() >= J2EEVersionConstants.EJB_2_0_ID) - return cmp.getRoles(); - else if ( (modelExtender = getEjbModuleExtHelper(cmp)) != null ){ - return modelExtender.getLocalRelationshipRoles_cmp11(cmp); - } - return Collections.EMPTY_LIST; - } - - protected List getRelationshipRoles(ContainerManagedEntity cmp) { - List roles = new ArrayList(); - collectRelationshipRoles(cmp, getEjbModuleExtHelper(cmp), roles); - return Collections.unmodifiableList(roles); - } - - public void collectRelationshipRoles(ContainerManagedEntity cmp, EjbModuleExtensionHelper extensionHelper, List containerList) { - if(cmp == null) - return; - containerList.addAll(getLocalRelationshipRoles(cmp)); - if(extensionHelper != null) - collectRelationshipRoles((ContainerManagedEntity) extensionHelper.getSuperType(cmp), extensionHelper, containerList); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ContainerManagedEntityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ContainerManagedEntityImpl.java deleted file mode 100644 index 85bff197e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ContainerManagedEntityImpl.java +++ /dev/null @@ -1,1142 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Set; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.Enumerator; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBExtensionFilter; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.MethodElementKind; -import org.eclipse.jst.j2ee.ejb.Query; -import org.eclipse.jst.j2ee.ejb.internal.util.CMPKeySynchronizationAdapter; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; - - -/** - * @generated - */ -public class ContainerManagedEntityImpl extends EntityImpl implements ContainerManagedEntity { - - /** - * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * - * @ordered - */ - protected static final String VERSION_EDEFAULT = "1.x"; //$NON-NLS-1$ - - protected EClassifier fGeneratedIdType = null; - protected static final String PERS_FEATURE_CHNG_NOTIFIER = "PersistentFeatureChangeNotificationAdapter"; //$NON-NLS-1$ - protected static final String QUERY_METHOD_NAME = "QueryMethod"; //$NON-NLS-1$ - protected static final String FIND_BY_PRIM_KEY_METHOD_NAME = "findByPrimaryKey"; //$NON-NLS-1$ - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String version = VERSION_EDEFAULT; - /** - * The default value of the '{@link #getAbstractSchemaName() <em>Abstract Schema Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAbstractSchemaName() - * @generated - * @ordered - */ - protected static final String ABSTRACT_SCHEMA_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String abstractSchemaName = ABSTRACT_SCHEMA_NAME_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList persistentAttributes = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList keyAttributes = null; - /** - * The cached value of the '{@link #getQueries() <em>Queries</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getQueries() - * @generated - * @ordered - */ - protected EList queries = null; - - /** - * The cached value of the '{@link #getCMPAttribute() <em>CMP Attribute</em>}' reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCMPAttribute() - * @generated - * @ordered - */ - protected EList cmpAttribute = null; - - /** - * The cached value of the '{@link #getPrimKeyField() <em>Prim Key Field</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPrimKeyField() - * @generated - * @ordered - */ - protected CMPAttribute primKeyField = null; - - /** - * @generated - */ - protected ContainerManagedEntityImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getContainerManagedEntity(); - } - -/** - * Create a new instance of AttributeExtn with aName and add it to the keyFeatures. - * Creation date: (8/2/2000 9:11:13 PM) - * @param aName java.lang.String - * @return CMPAttribute - */ -public CMPAttribute addKeyAttributeName(String aName) { - CMPAttribute attribute = getPersistentAttribute(aName); - if (attribute != null) { - List keys = getKeyAttributes(); - CMPAttribute key; - for (int i = 0; i < keys.size(); i++) { - key = (CMPAttribute) keys.get(i); - if (aName.equals(key.getName())) - return attribute; - } - keys.add(attribute); - } - return attribute; -} -/** - * Return a List of one of the properties using aFilter. -*/ -public List getFilteredFeatures(EJBExtensionFilter aFilter) { - return aFilter.filter(this); - } -/** - * Add a persistent attribute with the same name as the name for aField. - * Creation date: (8/3/2000 8:30:42 AM) - * @param aField org.eclipse.jem.internal.java.Field - * @return CMPAttribute - */ -public CMPAttribute addPersistentAttribute(Field aField) { - if (aField == null) - return null; - return addPersistentAttributeName(aField.getName()); -} -/** - * Create a new instance of AttributeExtn with aName and add it to the persistentFeatures. - * Creation date: (8/2/2000 9:11:13 PM) - * @param aName java.lang.String - * @return CMPAttribute - */ -public CMPAttribute addPersistentAttributeName(String aName) { - CMPAttribute attribute = getPersistentAttribute(aName); - if (attribute == null) { - attribute = createPersistentAttribute(aName); - getPersistentAttributes().add(attribute); - } - return attribute; -} -protected CMPAttribute createPersistentAttribute(String aName) { - CMPAttribute attribute = ((EjbPackage)EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI)).getEjbFactory().createCMPAttribute(); - attribute.setName(aName); - return attribute; -} -public List getAllAvailableQueryMethods() { - Set sigs = new HashSet(); - List javaMethods = getAvailableSelectQueryJavaMethods(); - sigs.addAll(getMethodElementSignatures(javaMethods)); - javaMethods = getAvailableLocalQueryJavaMethods(); - sigs.addAll(getMethodElementSignatures(javaMethods)); - javaMethods = getAvailableRemoteQueryJavaMethods(); - sigs.addAll(getMethodElementSignatures(javaMethods)); - List signatures = new ArrayList(sigs); - return createQueryMethods(signatures); -} -protected List createQueryMethods(List signatures) { - Collections.sort(signatures); - Enumerator enumerator = MethodElementKind.UNSPECIFIED_LITERAL; - return createMethodElements(QUERY_METHOD_NAME, signatures, enumerator); -} - -public List getAvailableSelectQueryMethods() { - List methods = getAvailableSelectQueryJavaMethods(); - List sigs = getMethodElementSignatures(methods); - return createQueryMethods(sigs); -} -protected List getAvailableSelectQueryJavaMethods() { - JavaClass bean = getEjbClass(); - if (bean == null) - return Collections.EMPTY_LIST; - return bean.getOnlySpecificMethods("ejbSelect", Collections.EMPTY_LIST); //$NON-NLS-1$ -} - -public List getAvailableFindQueryMethods() { - Set sigs = new HashSet(); - List javaMethods = getAvailableRemoteQueryJavaMethods(); - sigs.addAll(getMethodElementSignatures(javaMethods)); - javaMethods = getAvailableLocalQueryJavaMethods(); - sigs.addAll(getMethodElementSignatures(javaMethods)); - List signatures = new ArrayList(sigs); - return createQueryMethods(signatures); -} -protected List getAvailableLocalQueryJavaMethods() { - return getAvailableQueryJavaMethods(getLocalHomeInterface()); -} -/** -* This returns the CMP version id by using the module id and the <cmp-version>. -* Compare with J2EEVersionConstants to determine CMP level -* This will help differentiate between 2.0,2.1,... rather than "2.x" -*/ -public int getCMPVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - /* If resource is null we will return based on CMP version....*/ - if (res == null) { - if (getVersion().equals(ContainerManagedEntity.VERSION_1_X)) - return J2EEVersionConstants.EJB_1_1_ID; - return J2EEVersionConstants.EJB_2_0_ID; - } - int cmpVersion; - switch (res.getModuleVersionID()) { - case J2EEVersionConstants.EJB_2_0_ID : - if (getVersion().equalsIgnoreCase(VERSION_2_X)) - cmpVersion = J2EEVersionConstants.EJB_2_0_ID; - else - cmpVersion = J2EEVersionConstants.EJB_1_1_ID; - break; - case J2EEVersionConstants.EJB_2_1_ID : - if (getVersion().equalsIgnoreCase(VERSION_2_X)) - cmpVersion = J2EEVersionConstants.EJB_2_1_ID; - else - cmpVersion = J2EEVersionConstants.EJB_1_1_ID; - break; - - default : - cmpVersion = res.getModuleVersionID(); - } - return cmpVersion; -} - -/* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.ejb.EnterpriseBean#getVersionID() - */ -public int getVersionID() { - return getCMPVersionID(); -}protected List getAvailableRemoteQueryJavaMethods() { - return getAvailableQueryJavaMethods(getHomeInterface()); -} - -protected List getAvailableQueryJavaMethods(JavaClass home) { - if (home == null) return Collections.EMPTY_LIST; - List excluded = new ArrayList(1); - excluded.add("findByPrimaryKey"); //$NON-NLS-1$ - return home.getOnlySpecificMethods("find", excluded); //$NON-NLS-1$ -} - -protected EClassifier getGeneratedIdType() { - if (fGeneratedIdType == null) { - fGeneratedIdType = JavaRefFactory.eINSTANCE.reflectType(JAVA_LANG_STRING, this); - } - return fGeneratedIdType; -} -/** - * Return the keyAttribute with aName. - * Creation date: (8/8/2000 9:25:27 PM) - * @return EStructuralFeature - * @param aName java.lang.String - */ -public CMPAttribute getKeyAttribute(String aName) { - if (aName != null) { - Iterator it = getKeyAttributes().iterator(); - CMPAttribute next; - while (it.hasNext()) { - next = (CMPAttribute) it.next(); - if (aName.equals(next.getName())) - return next; - } - } - return null; -} -/** - * Return the persistentAttribute with aName. - * Creation date: (8/8/2000 9:25:27 PM) - * @return EStructuralFeature - * @param aName java.lang.String - */ -public CMPAttribute getPersistentAttribute(String aName) { - if (aName != null) { - Iterator it = getPersistentAttributes().iterator(); - CMPAttribute next; - while (it.hasNext()) { - next = (CMPAttribute) it.next(); - if (aName.equals(next.getName())) - return next; - } - } - return null; -} - -/** - * If a primary key exists, return the persistent attribute; the primary key is defined as one and only one - * key attribute, whose type is the same as the key class - * @deprecated use getPrimKeyField() - */ -public CMPAttribute getPrimaryKeyAttribute() { - return getPrimKeyField(); -} - - -/** - * isContainerManagedEntity method comment. - */ -public boolean isContainerManagedEntity() { - return true; -} -public boolean isKeyAttribute(CMPAttribute anAttribute) { - java.util.List attributes = getKeyAttributes(); - for (int i = 0; i < attributes.size(); i++){ - if (attributes.get(i) == anAttribute) - return true; - } - return false; -} -/* - * Return whether this bean represents an instance of the "unknown primary key" case - * described in the specification. This is identified by the primary key class - * being specified as "java.lang.Object". - * In order to deploy an unknown primary key bean, we must substitute a real key, - * and add a corresponding field. - */ -public boolean isUnknownPrimaryKey() { - String keyName = getPrimaryKeyName(); - if (keyName == null) return false; - //test whether it is unknown or we have the WAS generated key for the unknown prim key - boolean genTest = keyName.equals(UNKNOWN_PRIMARY_KEY) || keyName.equals(WAS_GENERATED_STRING_KEY); - if (genTest) return true; - //Lastly, test for the findByPrimaryKey(Object) method on the home. - JavaClass home = getHomeInterface(); - if (home == null) - home = getLocalHomeInterface(); - if (home == null) return false; - List parmType = new ArrayList(1); - parmType.add(UNKNOWN_PRIMARY_KEY); - return home.getMethodExtended(FIND_BY_PRIM_KEY_METHOD_NAME, parmType) != null; -} -/** - * isVersion1_X method comment. - */ -public boolean isVersion1_X() { - return getVersion().equals(ContainerManagedEntity.VERSION_1_X); -} -/** - * isVersion2_X method comment. - */ -public boolean isVersion2_X() { - return getVersion().equals(ContainerManagedEntity.VERSION_2_X); -} -/* - * listPersistentFieldNames - return the names of our CMP fields. derived from persistentFeatures - */ -public String[] listPersistentFieldNames() { - java.util.List attributes = getPersistentAttributes(); - String[] names = new String[attributes.size()]; - for (int i = 0; i < attributes.size(); i++) { - names[i] = ((CMPAttribute) attributes.get(i)).getName(); - } - return names; -} - -/** - * Remove the persistentAttribute with the same name as the Field's name. - * Creation date: (8/3/2000 8:33:01 AM) - * @param aField org.eclipse.jem.internal.java.Field - */ -public CMPAttribute removePersistentAttribute(Field aField) { - if (aField != null) - return removePersistentAttribute(aField.getName()); - return null; -} -/** - * Remove the persistentAttribute named aName. - * Creation date: (8/2/2000 8:59:32 PM) - * @param aName java.lang.String - */ -public CMPAttribute removePersistentAttribute(String aName) { - if (aName != null) { - Iterator it = getPersistentAttributes().iterator(); - CMPAttribute next; - while (it.hasNext()) { - next = (CMPAttribute) it.next(); - if (aName.equals(next.getName())) { - getPersistentAttributes().remove(next); - return next; - } - } - } - return null; -} -/** - * @generated This field/method will be replaced during code generation - * Specifies the version of an entity bean with container-managed persistence. - * - * @invariant The cmp-version element must be one of the two following: 1.x , 2.x - * @default 2.x - * Returns "1.x" if in a 1.1 Jar (For compatibility) - */ - public String getVersion() { - return version; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setVersion(String newVersion) { - String oldVersion = version; - version = newVersion; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.CONTAINER_MANAGED_ENTITY__VERSION, oldVersion, version)); - } - - /** - * @generated This field/method will be replaced during code generation - * The abstract-schema-name element specifies the name of the abstract schema type of an entity bean with cmp-version 2.x. It is used in EJB QL queries. - * - * For example, the abstract-schema-name for an entity bean whose local interface is com.acme.commerce.Order might be Order. - * - - */ - public String getAbstractSchemaName() { - return abstractSchemaName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setAbstractSchemaName(String newAbstractSchemaName) { - String oldAbstractSchemaName = abstractSchemaName; - abstractSchemaName = newAbstractSchemaName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.CONTAINER_MANAGED_ENTITY__ABSTRACT_SCHEMA_NAME, oldAbstractSchemaName, abstractSchemaName)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getPersistentAttributes() { - if (persistentAttributes == null) { - persistentAttributes = new EObjectContainmentEList(CMPAttribute.class, this, EjbPackage.CONTAINER_MANAGED_ENTITY__PERSISTENT_ATTRIBUTES); - } - return persistentAttributes; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_JAR: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_JAR, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__QUERIES: - return ((InternalEList)getQueries()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.CONTAINER_MANAGED_ENTITY__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__ENVIRONMENT_PROPERTIES: - return ((InternalEList)getEnvironmentProperties()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__RESOURCE_REFS: - return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_REFS: - return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__RESOURCE_ENV_REFS: - return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_LOCAL_REFS: - return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__MESSAGE_DESTINATION_REFS: - return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__SECURITY_ROLE_REFS: - return ((InternalEList)getSecurityRoleRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_JAR: - return eBasicSetContainer(null, EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_JAR, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__SECURITY_IDENTITY: - return basicSetSecurityIdentity(null, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__PERSISTENT_ATTRIBUTES: - return ((InternalEList)getPersistentAttributes()).basicRemove(otherEnd, msgs); - case EjbPackage.CONTAINER_MANAGED_ENTITY__QUERIES: - return ((InternalEList)getQueries()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_JAR: - return eContainer.eInverseRemove(this, EjbPackage.EJB_JAR__ENTERPRISE_BEANS, EJBJar.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CONTAINER_MANAGED_ENTITY__ICONS: - return getIcons(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__DISPLAY_NAMES: - return getDisplayNames(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__DESCRIPTIONS: - return getDescriptions(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__SMALL_ICON: - return getSmallIcon(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__LARGE_ICON: - return getLargeIcon(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__DESCRIPTION: - return getDescription(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__DISPLAY_NAME: - return getDisplayName(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__ENVIRONMENT_PROPERTIES: - return getEnvironmentProperties(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__RESOURCE_REFS: - return getResourceRefs(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_REFS: - return getEjbRefs(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__RESOURCE_ENV_REFS: - return getResourceEnvRefs(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_LOCAL_REFS: - return getEjbLocalRefs(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__MESSAGE_DESTINATION_REFS: - return getMessageDestinationRefs(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__SERVICE_REFS: - return getServiceRefs(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__NAME: - return getName(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__SECURITY_ROLE_REFS: - return getSecurityRoleRefs(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_CLASS: - if (resolve) return getEjbClass(); - return basicGetEjbClass(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__HOME_INTERFACE: - if (resolve) return getHomeInterface(); - return basicGetHomeInterface(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__REMOTE_INTERFACE: - if (resolve) return getRemoteInterface(); - return basicGetRemoteInterface(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_JAR: - return getEjbJar(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__SECURITY_IDENTITY: - return getSecurityIdentity(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__LOCAL_HOME_INTERFACE: - if (resolve) return getLocalHomeInterface(); - return basicGetLocalHomeInterface(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__LOCAL_INTERFACE: - if (resolve) return getLocalInterface(); - return basicGetLocalInterface(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__REENTRANT: - return isReentrant() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.CONTAINER_MANAGED_ENTITY__PRIMARY_KEY: - if (resolve) return getPrimaryKey(); - return basicGetPrimaryKey(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__VERSION: - return getVersion(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__ABSTRACT_SCHEMA_NAME: - return getAbstractSchemaName(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__PERSISTENT_ATTRIBUTES: - return getPersistentAttributes(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__KEY_ATTRIBUTES: - return getKeyAttributes(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__QUERIES: - return getQueries(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__CMP_ATTRIBUTE: - return getCMPAttribute(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__PRIM_KEY_FIELD: - if (resolve) return getPrimKeyField(); - return basicGetPrimKeyField(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CONTAINER_MANAGED_ENTITY__ICONS: - return icons != null && !icons.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case EjbPackage.CONTAINER_MANAGED_ENTITY__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case EjbPackage.CONTAINER_MANAGED_ENTITY__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.CONTAINER_MANAGED_ENTITY__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case EjbPackage.CONTAINER_MANAGED_ENTITY__ENVIRONMENT_PROPERTIES: - return environmentProperties != null && !environmentProperties.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__RESOURCE_REFS: - return resourceRefs != null && !resourceRefs.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_REFS: - return ejbRefs != null && !ejbRefs.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__RESOURCE_ENV_REFS: - return resourceEnvRefs != null && !resourceEnvRefs.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_LOCAL_REFS: - return ejbLocalRefs != null && !ejbLocalRefs.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__MESSAGE_DESTINATION_REFS: - return messageDestinationRefs != null && !messageDestinationRefs.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__SERVICE_REFS: - return serviceRefs != null && !serviceRefs.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EjbPackage.CONTAINER_MANAGED_ENTITY__SECURITY_ROLE_REFS: - return securityRoleRefs != null && !securityRoleRefs.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_CLASS: - return ejbClass != null; - case EjbPackage.CONTAINER_MANAGED_ENTITY__HOME_INTERFACE: - return homeInterface != null; - case EjbPackage.CONTAINER_MANAGED_ENTITY__REMOTE_INTERFACE: - return remoteInterface != null; - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_JAR: - return getEjbJar() != null; - case EjbPackage.CONTAINER_MANAGED_ENTITY__SECURITY_IDENTITY: - return securityIdentity != null; - case EjbPackage.CONTAINER_MANAGED_ENTITY__LOCAL_HOME_INTERFACE: - return localHomeInterface != null; - case EjbPackage.CONTAINER_MANAGED_ENTITY__LOCAL_INTERFACE: - return localInterface != null; - case EjbPackage.CONTAINER_MANAGED_ENTITY__REENTRANT: - return isSetReentrant(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__PRIMARY_KEY: - return primaryKey != null; - case EjbPackage.CONTAINER_MANAGED_ENTITY__VERSION: - return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); - case EjbPackage.CONTAINER_MANAGED_ENTITY__ABSTRACT_SCHEMA_NAME: - return ABSTRACT_SCHEMA_NAME_EDEFAULT == null ? abstractSchemaName != null : !ABSTRACT_SCHEMA_NAME_EDEFAULT.equals(abstractSchemaName); - case EjbPackage.CONTAINER_MANAGED_ENTITY__PERSISTENT_ATTRIBUTES: - return persistentAttributes != null && !persistentAttributes.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__KEY_ATTRIBUTES: - return keyAttributes != null && !keyAttributes.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__QUERIES: - return queries != null && !queries.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__CMP_ATTRIBUTE: - return cmpAttribute != null && !cmpAttribute.isEmpty(); - case EjbPackage.CONTAINER_MANAGED_ENTITY__PRIM_KEY_FIELD: - return primKeyField != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CONTAINER_MANAGED_ENTITY__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - getEnvironmentProperties().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__RESOURCE_REFS: - getResourceRefs().clear(); - getResourceRefs().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_REFS: - getEjbRefs().clear(); - getEjbRefs().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - getResourceEnvRefs().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - getEjbLocalRefs().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - getMessageDestinationRefs().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__NAME: - setName((String)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - getSecurityRoleRefs().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_CLASS: - setEjbClass((JavaClass)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__HOME_INTERFACE: - setHomeInterface((JavaClass)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__REMOTE_INTERFACE: - setRemoteInterface((JavaClass)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_JAR: - setEjbJar((EJBJar)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__SECURITY_IDENTITY: - setSecurityIdentity((SecurityIdentity)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__LOCAL_HOME_INTERFACE: - setLocalHomeInterface((JavaClass)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__LOCAL_INTERFACE: - setLocalInterface((JavaClass)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__REENTRANT: - setReentrant(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__PRIMARY_KEY: - setPrimaryKey((JavaClass)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__VERSION: - setVersion((String)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__ABSTRACT_SCHEMA_NAME: - setAbstractSchemaName((String)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__PERSISTENT_ATTRIBUTES: - getPersistentAttributes().clear(); - getPersistentAttributes().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__KEY_ATTRIBUTES: - getKeyAttributes().clear(); - getKeyAttributes().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__QUERIES: - getQueries().clear(); - getQueries().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__CMP_ATTRIBUTE: - getCMPAttribute().clear(); - getCMPAttribute().addAll((Collection)newValue); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__PRIM_KEY_FIELD: - setPrimKeyField((CMPAttribute)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.CONTAINER_MANAGED_ENTITY__ICONS: - getIcons().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__DESCRIPTIONS: - getDescriptions().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__RESOURCE_REFS: - getResourceRefs().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_REFS: - getEjbRefs().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__SERVICE_REFS: - getServiceRefs().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__NAME: - setName(NAME_EDEFAULT); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_CLASS: - setEjbClass((JavaClass)null); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__HOME_INTERFACE: - setHomeInterface((JavaClass)null); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__REMOTE_INTERFACE: - setRemoteInterface((JavaClass)null); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__EJB_JAR: - setEjbJar((EJBJar)null); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__SECURITY_IDENTITY: - setSecurityIdentity((SecurityIdentity)null); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__LOCAL_HOME_INTERFACE: - setLocalHomeInterface((JavaClass)null); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__LOCAL_INTERFACE: - setLocalInterface((JavaClass)null); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__REENTRANT: - unsetReentrant(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__PRIMARY_KEY: - setPrimaryKey((JavaClass)null); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__VERSION: - setVersion(VERSION_EDEFAULT); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__ABSTRACT_SCHEMA_NAME: - setAbstractSchemaName(ABSTRACT_SCHEMA_NAME_EDEFAULT); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__PERSISTENT_ATTRIBUTES: - getPersistentAttributes().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__KEY_ATTRIBUTES: - getKeyAttributes().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__QUERIES: - getQueries().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__CMP_ATTRIBUTE: - getCMPAttribute().clear(); - return; - case EjbPackage.CONTAINER_MANAGED_ENTITY__PRIM_KEY_FIELD: - setPrimKeyField((CMPAttribute)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (version: "); - result.append(version); - result.append(", abstractSchemaName: "); - result.append(abstractSchemaName); - result.append(')'); - return result.toString(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getKeyAttributesGen() { - if (keyAttributes == null) { - keyAttributes = new EObjectResolvingEList(CMPAttribute.class, this, EjbPackage.CONTAINER_MANAGED_ENTITY__KEY_ATTRIBUTES); - } - return keyAttributes; - } - - public EList getKeyAttributes() { - if(keyAttributes == null) { - CMPKeySynchronizationAdapter syncAdapter = (CMPKeySynchronizationAdapter) EcoreUtil.getExistingAdapter(this, CMPKeySynchronizationAdapter.ADAPTER_TYPE); - if(syncAdapter != null) - syncAdapter.initializeKeyAttributes(); - } - return getKeyAttributesGen(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getQueries() { - if (queries == null) { - queries = new EObjectContainmentWithInverseEList(Query.class, this, EjbPackage.CONTAINER_MANAGED_ENTITY__QUERIES, EjbPackage.QUERY__ENTITY); - } - return queries; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getCMPAttribute() { - if (cmpAttribute == null) { - cmpAttribute = new EObjectResolvingEList(CMPAttribute.class, this, EjbPackage.CONTAINER_MANAGED_ENTITY__CMP_ATTRIBUTE); - } - return cmpAttribute; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CMPAttribute getPrimKeyField() { - if (primKeyField != null && primKeyField.eIsProxy()) { - CMPAttribute oldPrimKeyField = primKeyField; - primKeyField = (CMPAttribute)eResolveProxy((InternalEObject)primKeyField); - if (primKeyField != oldPrimKeyField) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.CONTAINER_MANAGED_ENTITY__PRIM_KEY_FIELD, oldPrimKeyField, primKeyField)); - } - } - return primKeyField; - } - - public void makePrimKeyFieldProxy() { - if (primKeyField == null) return; - String fieldName = primKeyField.getName(); - if (fieldName == null) fieldName = ""; //$NON-NLS-1$ - primKeyField = EjbFactory.eINSTANCE.createCMPAttribute(); - ((InternalEObject)primKeyField).eSetProxyURI(URI.createURI(fieldName)); - - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CMPAttribute basicGetPrimKeyField() { - return primKeyField; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPrimKeyField(CMPAttribute newPrimKeyField) { - CMPAttribute oldPrimKeyField = primKeyField; - primKeyField = newPrimKeyField; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.CONTAINER_MANAGED_ENTITY__PRIM_KEY_FIELD, oldPrimKeyField, primKeyField)); - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.ejb.ContainerManagedEntity#getCMRFields() - */ - public List getCMRFields() { - List myRoles = getRoles(); - List cmrFields = Collections.EMPTY_LIST; - if (myRoles != null && !myRoles.isEmpty()) { - cmrFields = new ArrayList(); - Iterator i = myRoles.iterator(); - while (i.hasNext()) { - EJBRelationshipRole role = (EJBRelationshipRole) i.next(); - CMRField field = role.getCmrField(); - if (field != null) - cmrFields.add(field); - } - } - return cmrFields; - } - - public boolean isSelfReferencing(EJBRelation rel) { - if (rel.getSecondRole() == null) - return false; - return (rel.getFirstRole().getSourceEntity() == this) && - (rel.getSecondRole().getSourceEntity() == this); - } - - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.ejb.ContainerManagedEntity#getRoles() - */ - public List getRoles() { - if (getEjbJar() == null) - return Collections.EMPTY_LIST; - List allRoles = getEjbJar().getEjbRelations(); - List myRoles = Collections.EMPTY_LIST; - if (allRoles != null && !allRoles.isEmpty()) { - myRoles = new ArrayList(); - Iterator i = allRoles.iterator(); - while (i.hasNext()) { - EJBRelation rel = (EJBRelation) i.next(); - EJBRelationshipRole role = rel.getFirstRole(); - if (isSelfReferencing(rel)) { - myRoles.add(rel.getFirstRole()); - myRoles.add(rel.getSecondRole()); - } - else if ((role != null) && role.getSourceEntity() == this) { - myRoles.add(role); - } else { - role = rel.getSecondRole(); - if ((role != null) && (role.getSourceEntity() == this)) - myRoles.add(role); - } - } - } - return myRoles; - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.ejb.ContainerManagedEntity#getRole(java.lang.String) - */ - public CommonRelationshipRole getRole(String roleName) { - List roles = getRoles(); - for (int i=0; i<roles.size(); i++) { - CommonRelationshipRole role = (CommonRelationshipRole)roles.get(i); - if (role.getName().equals(roleName)) - return role; - } - return null; - } - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJB20FlattenedRoleShapeStrategy.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJB20FlattenedRoleShapeStrategy.java deleted file mode 100644 index 6499b3277..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJB20FlattenedRoleShapeStrategy.java +++ /dev/null @@ -1,170 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.List; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.IRoleShapeStrategy; - -/** - * Insert the type's description here. - * Creation date: (11/6/2000 11:41:33 AM) - * @author: Administrator - */ -public class EJB20FlattenedRoleShapeStrategy extends RoleShapeStrategy { - /** - * FlattenedRoleShapeStrategy constructor comment. - */ - public EJB20FlattenedRoleShapeStrategy(CommonRelationshipRole aRole) { - super(aRole); - } - protected boolean canContinue() { - return !busy && role.getName() != null && (role.isForward() || - (role.isMany() && (role.getOppositeAsCommonRole() == null || - role.getOppositeAsCommonRole().isMany()))); - } - - public boolean usesAttributeNamed(String attributeName) { - if (attributeName != null) { - int index = attributeName.indexOf(IRoleShapeStrategy.ATTRIBUTE_NAME_JOINER); - String name = attributeName.substring(0, index); - return getRole().getName().equals(name); - } - return false; - } - - /** - * @see RoleShapeStrategy#reconcileAttributes(CommonRelationshipRole, String, List, List) - */ - protected void reconcileAttributes(CommonRelationshipRole aRole, String attributeName, List aList, List computedNames) { - - Resource res = aRole.eResource(); - boolean dirtyFlag = res != null ? res.isModified() : false; - try { - if (aRole.getOppositeAsCommonRole() != null) { - ContainerManagedEntity entity = aRole.getOppositeAsCommonRole().getSourceEntity(); - // ContainerManagedEntityExtension roleType = (ContainerManagedEntityExtension)getTypeExtension(aRole); - if (entity != null) - collectAttributes(entity, attributeName, aList, computedNames); - } - } finally { - if (res != null) - res.setModified(dirtyFlag); - } - } - - /** - * @see com.ibm.ejs.models.base.extensions.ejbext.impl.FlattenedRoleShapeStrategy#setDerivedAttributeType(CMPAttribute, JavaHelpers) - */ - protected void setDerivedAttributeType(CMPAttribute attribute, CMPAttribute targetAttribute, boolean isNew) { - if (targetAttribute == null) return; - JavaHelpers fieldType = targetAttribute.getType(); - if (fieldType != null) { - int singleRoleNameSize = getRole().getName().length() + targetAttribute.getName().length() + 1; //one for the underscore - if (!(attribute.getName().length() > singleRoleNameSize)) //don't set the originating type since we are derived from another derived attribute - attribute.setOriginatingType(fieldType); - attribute.setEType(fieldType.getWrapper()); - } - if (isNew && !getRole().isKey()) - attribute.setDerived(true); - } - /** - * getFields method comment. - */ - protected void collectAttributes(ContainerManagedEntity type, String attributeName, List aList, List computedNames) { - collectKeyModelledAttributes(type, attributeName, aList, computedNames); - collectKeyRoleAttributes(type, attributeName, aList, computedNames); - } - - /** - * @deprecated to be safe, really should use collectAttributes(ContainerManagedEntity entity, CMPAttribute type, String attributeName, List aList, List computedNames) - * @param type - * @param attributeName - * @param aList - * @param computedNames - */ - protected void collectAttributes(CMPAttribute type, String attributeName, List aList, List computedNames) { - // This is necessary for code generation - ContainerManagedEntity entity = (ContainerManagedEntity) type.eContainer(); - collectAttributes(entity, type, attributeName, aList, computedNames); - } - - /** - * - */ - protected void collectAttributes(ContainerManagedEntity entity, CMPAttribute type, String attributeName, List aList, List computedNames) { - boolean isNewAttribute = false; - attributeName = appendName(attributeName, type.getName()); - computedNames.add(attributeName); - CMPAttribute attribute = getCMPEntity().getPersistentAttribute(attributeName); - if (attribute == null) { - attribute = createPersistentAttribute(attributeName); - isNewAttribute = true; - } - if (entity != null) - setDerivedAttributeType(attribute, type, isNewAttribute); - if (isNewAttribute) { - if (getRole().isKey()) - getCMPEntity().getKeyAttributes().add(attribute); - aList.add(attribute); - getCMPEntity().getPersistentAttributes().add(attribute); - } else { - if (!aList.contains(attribute)) - aList.add(attribute); - } - } - - protected CMPAttribute createPersistentAttribute(String aName) { - CMPAttribute attribute = ((EjbPackage)EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI)).getEjbFactory().createCMPAttribute(); - attribute.setName(aName); - attribute.setDescription("Generated to support relationships. Do NOT delete."); - return attribute; - } - /** - * getFields method comment. - */ - protected void collectKeyModelledAttributes(ContainerManagedEntity entity, String attributeName, List aList, List computedNames) { - java.util.Iterator it = entity.getFilteredFeatures(ModelledKeyAttributeFilter.singleton()).iterator(); - CMPAttribute attribute; - while (it.hasNext()) { - attribute = (CMPAttribute) it.next(); - collectAttributes(entity, attribute, attributeName, aList, computedNames); - } - } - /** - * getFields method comment. - */ - protected void collectKeyRoleAttributes(ContainerManagedEntity entity, String attributeName, List aList, List computedNames) { - if(visitedKeyTypes.contains(entity)){ - throw new RuntimeException("Key role cycle detected"); - } - visitedKeyTypes.add(entity); - java.util.Iterator it = entity.getFilteredFeatures(KeyRelationshipRoleFilter.singleton()).iterator(); - CommonRelationshipRole aRole; - while (it.hasNext()) { - aRole = (CommonRelationshipRole) it.next(); - String attName = appendName(attributeName, aRole.getName()); - reconcileAttributes(aRole, attName, aList, computedNames); - } - } - protected ContainerManagedEntity getCMPEntity() { - return getRole().getSourceEntity(); - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBJarImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBJarImpl.java deleted file mode 100644 index 86cc7eb32..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBJarImpl.java +++ /dev/null @@ -1,817 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.common.internal.util.CommonUtil; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EJBResource; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.Relationships; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; - -/** - * The root element of the EJB deployment descriptor. It contains an optional description of the ejb-jar file; optional display name; optional small icon file name; optional large icon file - * name; mandatory structural information about all included enterprise beans; a descriptor for container managed relationships, if any; an optional application-assembly descriptor; and an optional name of an ejb-client-jar file for the ejb-jar. - */ -public class EJBJarImpl extends CompatibilityDescriptionGroupImpl implements EJBJar { - - /** - * The default value of the '{@link #getEjbClientJar() <em>Ejb Client Jar</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEjbClientJar() - * @generated - * @ordered - */ - protected static final String EJB_CLIENT_JAR_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String ejbClientJar = EJB_CLIENT_JAR_EDEFAULT; - /** - * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected static final String VERSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected String version = VERSION_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected AssemblyDescriptor assemblyDescriptor = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList enterpriseBeans = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected Relationships relationshipList = null; - public EJBJarImpl() { - super(); -// setRefId(com.ibm.etools.archive.ArchiveConstants.EJBJAR_ID); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getEJBJar(); - } - -/** - * Return true if there are any ContainerManagedEntity beans in this jar. - */ -public boolean containsContainerManagedBeans() { - Iterator it = getEnterpriseBeans().iterator(); - EnterpriseBean ejb; - while (it.hasNext()) { - ejb = (EnterpriseBean)it.next(); - if (ejb.isEntity() && ((Entity)ejb).isContainerManagedEntity()) - return true; - } - return false; -} -/** - * @see org.eclipse.jst.j2ee.internal.ejb.EJBJar - */ -public boolean containsSecurityRole(java.lang.String name) { - AssemblyDescriptor ad = getAssemblyDescriptor(); - return (ad != null) && (ad.getSecurityRoleNamed(name) != null); -} -/** - * Return List of BMP beans in this jar. - * @return java.util.List - */ -public List getBeanManagedBeans() { - List allBeans, beans; - allBeans = getEnterpriseBeans(); - int size = allBeans.size(); - beans = new ArrayList(size); - EnterpriseBean ejb; - for (int i = 0; i < size; i++) { - ejb = (EnterpriseBean) allBeans.get(i); - if (ejb.isBeanManagedEntity()) - beans.add(ejb); - } - return beans; -} -/** - * Return List of ContainerManagedEntity beans in this jar. - * @return java.util.List - */ -public List getContainerManagedBeans() { - List cmps = new ArrayList(getEnterpriseBeans().size()); - Iterator it = getEnterpriseBeans().iterator(); - EnterpriseBean ejb; - while (it.hasNext()) { - ejb = (EnterpriseBean)it.next(); - if (ejb.isEntity() && ((Entity)ejb).isContainerManagedEntity()) - cmps.add(ejb); - } - return cmps; -} - -/** - * Return List of EJB 1.1 ContainerManagedEntity beans in this jar. - * @return java.util.List - */ -public List getEJB11ContainerManagedBeans() { - List cmps = new ArrayList(getEnterpriseBeans().size()); - Iterator it = getEnterpriseBeans().iterator(); - EnterpriseBean ejb; - while (it.hasNext()) { - ejb = (EnterpriseBean)it.next(); - if (ejb.isEntity() && ((Entity)ejb).isContainerManagedEntity() && ejb.getVersionID() <= J2EEVersionConstants.EJB_1_1_ID) - cmps.add(ejb); - } - return cmps; -} - -/** - * Return List of EJB 2.0 ContainerManagedEntity beans in this jar. - * @return java.util.List - */ -public List getEJB20ContainerManagedBeans() { - List cmps = new ArrayList(getEnterpriseBeans().size()); - Iterator it = getEnterpriseBeans().iterator(); - EnterpriseBean ejb; - while (it.hasNext()) { - ejb = (EnterpriseBean)it.next(); - if (ejb.isEntity() && ((Entity)ejb).isContainerManagedEntity() && ejb.getVersionID() >= J2EEVersionConstants.EJB_2_0_ID) - cmps.add(ejb); - } - return cmps; -} - /* - * @see EJBJar#getMessageDrivenBeans() - */ - public List getMessageDrivenBeans() { - List ejbs = getEnterpriseBeans(); - int size = ejbs.size(); - List mdbs = new ArrayList(size); - EnterpriseBean ejb; - for (int i = 0; i < size; i++) { - ejb = (EnterpriseBean)ejbs.get(i); - if (ejb.isMessageDriven()) - mdbs.add(ejb); - } - return mdbs; - } -/** - * @return The list of EjbRelations references - * A list of ejb-relation elements, which specify the container managed relationships. - */ -public List getEjbRelations() { - return getRelationshipList() == null ? null : getRelationshipList().getEjbRelations(); -} -/** - * Return an enterprise bean referenced by the EjbRef, if one exists. The ejb-link value - * of the ref must equate to a named enterprise bean contained in the jar; otherwise return - * null - */ -public EnterpriseBean getEnterpiseBeanFromRef(EjbRef ref) { - String link = ref.getLink(); - if (link == null) { - return null; - } - return getEnterpriseBeanNamed(link); -} -public EnterpriseBean getEnterpriseBeanNamed(String ejbName) { - if (ejbName == null) - return null; - EList beans = getEnterpriseBeans(); - EnterpriseBean bean; - for (int i = 0; i < beans.size(); i++) { - bean = (EnterpriseBean) beans.get(i); - if (ejbName.equals(bean.getName())) - return bean; - } - return null; -} -/** - * Return ALL EnterpriseBean(s) that are referencing @aJavaClass as a - * home, remote, bean class, or key class. - */ -public java.util.List getEnterpriseBeansWithReference(JavaClass aJavaClass) { - List beans = getEnterpriseBeans(); - List result = new ArrayList(); - EnterpriseBean bean = null; - for (int i = 0; i < beans.size(); i++){ - bean = (EnterpriseBean) beans.get(i); - if (bean.hasJavaReference(aJavaClass)) - result.add(bean); - } - return result; -} -/** - * Return the *FIRST* EnterpriseBean that is referencing @aJavaClass as its - * home, remote, bean class, or key class. - */ -public EnterpriseBean getEnterpriseBeanWithReference(JavaClass aJavaClass) { - List beans = getEnterpriseBeans(); - EnterpriseBean bean = null; - for (int i = 0; i < beans.size(); i++){ - bean = (EnterpriseBean) beans.get(i); - if (bean.hasJavaReference(aJavaClass)) - return bean; - } - return null; -} -/** - * Return List of Session beans in this jar. - * @return java.util.List - */ -public List getSessionBeans() { - List allBeans, beans; - allBeans = getEnterpriseBeans(); - int size = allBeans.size(); - beans = new ArrayList(size); - EnterpriseBean ejb; - for (int i = 0; i < size; i++) { - ejb = (EnterpriseBean) allBeans.get(i); - if (ejb.isSession()) - beans.add(ejb); - } - return beans; -} -/** - * Return boolean indicating if this EJB JAR was populated from an EJB 1.1 descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion1_1Descriptor() { - CommonUtil.checkDDObjectForVersion(this); - EJBResource ejbRes = (EJBResource) eResource(); - return ejbRes.isEJB1_1(); -} -/** - * Return boolean indicating if this EJB JAR was populated from an EJB 2.0 descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion2_0Descriptor() { - CommonUtil.checkDDObjectForVersion(this); - EJBResource ejbRes = (EJBResource) eResource(); - return ejbRes.isEJB2_0(); -} -/** - * @see org.eclipse.jst.j2ee.internal.ejb.EJBJar - */ -public void renameSecurityRole(java.lang.String existingRoleName, java.lang.String newRoleName) { - AssemblyDescriptor ad = getAssemblyDescriptor(); - if (ad != null) - ad.renameSecurityRole(existingRoleName, newRoleName); - List ejbs = getEnterpriseBeans(); - for (int i = 0; i < ejbs.size(); i++) { - EnterpriseBean ejb = (EnterpriseBean) ejbs.get(i); - ejb.reSyncSecurityRoleRef(existingRoleName, newRoleName); - } -} - /** - * - */ - public void setDisplayName(String newDisplayName) { - super.setDisplayName(newDisplayName); - } - - /** - * @generated This field/method will be replaced during code generation - * The optional ejb-client-jar element specifies a JAR file that contains the class files necessary for a client program to access the enterprise beans in the ejb-jar file. The Deployer should make the ejb-client JAR file accessible to the client's class-loader. Example:<ejb-client-jar>employee_service_client.jar<//ejb-client-jar> - - */ - public String getEjbClientJar() { - return ejbClientJar; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setEjbClientJar(String newEjbClientJar) { - String oldEjbClientJar = ejbClientJar; - ejbClientJar = newEjbClientJar; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_JAR__EJB_CLIENT_JAR, oldEjbClientJar, ejbClientJar)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getVersion() { - return version; - } - - /** - This returns the module version id. Compare with J2EEVersionConstants to determine module level - */ - public int getVersionID() throws IllegalStateException { - J2EEVersionResource ejbRes = (J2EEVersionResource) eResource(); - if (ejbRes == null) { - // fix defect 3276, when resource is unloaded - if (version == null) - throw new IllegalStateException(); - if (version.equals("2.1")) //$NON-NLS-1$ - return J2EEVersionConstants.EJB_2_1_ID; - if (version.equals("2.0")) //$NON-NLS-1$ - return J2EEVersionConstants.EJB_2_0_ID; - if (version.equals("1.1")) //$NON-NLS-1$ - return J2EEVersionConstants.EJB_1_1_ID; - if (version.equals("1.0")) //$NON-NLS-1$ - return J2EEVersionConstants.EJB_1_0_ID; - } - return ejbRes.getModuleVersionID(); - } - /** - *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level - */ - public int getJ2EEVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) throw new IllegalStateException("XMLResource is null"); - return res.getJ2EEVersionID(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setVersion(String newVersion) { - String oldVersion = version; - version = newVersion; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_JAR__VERSION, oldVersion, version)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public AssemblyDescriptor getAssemblyDescriptor() { - return assemblyDescriptor; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetAssemblyDescriptor(AssemblyDescriptor newAssemblyDescriptor, NotificationChain msgs) { - AssemblyDescriptor oldAssemblyDescriptor = assemblyDescriptor; - assemblyDescriptor = newAssemblyDescriptor; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR, oldAssemblyDescriptor, newAssemblyDescriptor); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setAssemblyDescriptor(AssemblyDescriptor newAssemblyDescriptor) { - if (newAssemblyDescriptor != assemblyDescriptor) { - NotificationChain msgs = null; - if (assemblyDescriptor != null) - msgs = ((InternalEObject)assemblyDescriptor).eInverseRemove(this, EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR, AssemblyDescriptor.class, msgs); - if (newAssemblyDescriptor != null) - msgs = ((InternalEObject)newAssemblyDescriptor).eInverseAdd(this, EjbPackage.ASSEMBLY_DESCRIPTOR__EJB_JAR, AssemblyDescriptor.class, msgs); - msgs = basicSetAssemblyDescriptor(newAssemblyDescriptor, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR, newAssemblyDescriptor, newAssemblyDescriptor)); - } - - /** - * @generated This field/method will be replaced during code generation - * The enterprise-beans element contains the declarations of one or more - * enterprise beans. - */ - public EList getEnterpriseBeans() { - if (enterpriseBeans == null) { - enterpriseBeans = new EObjectContainmentWithInverseEList(EnterpriseBean.class, this, EjbPackage.EJB_JAR__ENTERPRISE_BEANS, EjbPackage.ENTERPRISE_BEAN__EJB_JAR); - } - return enterpriseBeans; - } - - /** - * @generated This field/method will be replaced during code generation - * The relationships collection describes the relationships in which container managed persistence entity beans and dependent objects participate. The relationships element contains an optional description; a list of ejb-entity-ref elements (references to entity beans that participate in container managed relationships but whose abstract persistence schemas are not included in the ejb-jar file); - * and a list of ejb-relation elements, which specify the container managed relationships. - */ - public Relationships getRelationshipList() { - return relationshipList; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetRelationshipList(Relationships newRelationshipList, NotificationChain msgs) { - Relationships oldRelationshipList = relationshipList; - relationshipList = newRelationshipList; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_JAR__RELATIONSHIP_LIST, oldRelationshipList, newRelationshipList); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRelationshipList(Relationships newRelationshipList) { - if (newRelationshipList != relationshipList) { - NotificationChain msgs = null; - if (relationshipList != null) - msgs = ((InternalEObject)relationshipList).eInverseRemove(this, EjbPackage.RELATIONSHIPS__EJB_JAR, Relationships.class, msgs); - if (newRelationshipList != null) - msgs = ((InternalEObject)newRelationshipList).eInverseAdd(this, EjbPackage.RELATIONSHIPS__EJB_JAR, Relationships.class, msgs); - msgs = basicSetRelationshipList(newRelationshipList, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_JAR__RELATIONSHIP_LIST, newRelationshipList, newRelationshipList)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR: - if (assemblyDescriptor != null) - msgs = ((InternalEObject)assemblyDescriptor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR, null, msgs); - return basicSetAssemblyDescriptor((AssemblyDescriptor)otherEnd, msgs); - case EjbPackage.EJB_JAR__ENTERPRISE_BEANS: - return ((InternalEList)getEnterpriseBeans()).basicAdd(otherEnd, msgs); - case EjbPackage.EJB_JAR__RELATIONSHIP_LIST: - if (relationshipList != null) - msgs = ((InternalEObject)relationshipList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EjbPackage.EJB_JAR__RELATIONSHIP_LIST, null, msgs); - return basicSetRelationshipList((Relationships)otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.EJB_JAR__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case EjbPackage.EJB_JAR__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case EjbPackage.EJB_JAR__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR: - return basicSetAssemblyDescriptor(null, msgs); - case EjbPackage.EJB_JAR__ENTERPRISE_BEANS: - return ((InternalEList)getEnterpriseBeans()).basicRemove(otherEnd, msgs); - case EjbPackage.EJB_JAR__RELATIONSHIP_LIST: - return basicSetRelationshipList(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_JAR__ICONS: - return getIcons(); - case EjbPackage.EJB_JAR__DISPLAY_NAMES: - return getDisplayNames(); - case EjbPackage.EJB_JAR__DESCRIPTIONS: - return getDescriptions(); - case EjbPackage.EJB_JAR__SMALL_ICON: - return getSmallIcon(); - case EjbPackage.EJB_JAR__LARGE_ICON: - return getLargeIcon(); - case EjbPackage.EJB_JAR__DESCRIPTION: - return getDescription(); - case EjbPackage.EJB_JAR__DISPLAY_NAME: - return getDisplayName(); - case EjbPackage.EJB_JAR__EJB_CLIENT_JAR: - return getEjbClientJar(); - case EjbPackage.EJB_JAR__VERSION: - return getVersion(); - case EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR: - return getAssemblyDescriptor(); - case EjbPackage.EJB_JAR__ENTERPRISE_BEANS: - return getEnterpriseBeans(); - case EjbPackage.EJB_JAR__RELATIONSHIP_LIST: - return getRelationshipList(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_JAR__ICONS: - return icons != null && !icons.isEmpty(); - case EjbPackage.EJB_JAR__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case EjbPackage.EJB_JAR__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case EjbPackage.EJB_JAR__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case EjbPackage.EJB_JAR__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case EjbPackage.EJB_JAR__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.EJB_JAR__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case EjbPackage.EJB_JAR__EJB_CLIENT_JAR: - return EJB_CLIENT_JAR_EDEFAULT == null ? ejbClientJar != null : !EJB_CLIENT_JAR_EDEFAULT.equals(ejbClientJar); - case EjbPackage.EJB_JAR__VERSION: - return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); - case EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR: - return assemblyDescriptor != null; - case EjbPackage.EJB_JAR__ENTERPRISE_BEANS: - return enterpriseBeans != null && !enterpriseBeans.isEmpty(); - case EjbPackage.EJB_JAR__RELATIONSHIP_LIST: - return relationshipList != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_JAR__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case EjbPackage.EJB_JAR__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case EjbPackage.EJB_JAR__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case EjbPackage.EJB_JAR__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case EjbPackage.EJB_JAR__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case EjbPackage.EJB_JAR__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.EJB_JAR__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case EjbPackage.EJB_JAR__EJB_CLIENT_JAR: - setEjbClientJar((String)newValue); - return; - case EjbPackage.EJB_JAR__VERSION: - setVersion((String)newValue); - return; - case EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR: - setAssemblyDescriptor((AssemblyDescriptor)newValue); - return; - case EjbPackage.EJB_JAR__ENTERPRISE_BEANS: - getEnterpriseBeans().clear(); - getEnterpriseBeans().addAll((Collection)newValue); - return; - case EjbPackage.EJB_JAR__RELATIONSHIP_LIST: - setRelationshipList((Relationships)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_JAR__ICONS: - getIcons().clear(); - return; - case EjbPackage.EJB_JAR__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case EjbPackage.EJB_JAR__DESCRIPTIONS: - getDescriptions().clear(); - return; - case EjbPackage.EJB_JAR__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case EjbPackage.EJB_JAR__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case EjbPackage.EJB_JAR__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.EJB_JAR__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case EjbPackage.EJB_JAR__EJB_CLIENT_JAR: - setEjbClientJar(EJB_CLIENT_JAR_EDEFAULT); - return; - case EjbPackage.EJB_JAR__VERSION: - setVersion(VERSION_EDEFAULT); - return; - case EjbPackage.EJB_JAR__ASSEMBLY_DESCRIPTOR: - setAssemblyDescriptor((AssemblyDescriptor)null); - return; - case EjbPackage.EJB_JAR__ENTERPRISE_BEANS: - getEnterpriseBeans().clear(); - return; - case EjbPackage.EJB_JAR__RELATIONSHIP_LIST: - setRelationshipList((Relationships)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (ejbClientJar: "); - result.append(ejbClientJar); - result.append(", version: "); - result.append(version); - result.append(')'); - return result.toString(); - } - - public EJBRelationshipRole getRelationshipRole(String aRoleName, ContainerManagedEntity sourceCMP) { - if (aRoleName == null || sourceCMP == null) return null; - EJBRelationshipRole role = null; - if (getRelationshipList() != null) { - List relations = getRelationshipList().getEjbRelations(); - int size = relations.size(); - EJBRelation rel = null; - for (int i = 0; i < size; i++) { - rel = (EJBRelation) relations.get(i); - role = rel.getRelationshipRole(aRoleName); - if (role != null && role.getSourceEntity() == sourceCMP) - return role; - } - } - return null; - } - - public EJBRelation getEJBRelation(String aRelationName) { - Relationships relList = getRelationshipList(); - if (relList != null) { - List rels = relList.getEjbRelations(); - int size = rels.size(); - EJBRelation rel = null; - for (int i = 0; i < size; i++) { - rel = (EJBRelation) rels.get(i); - if (rel == null) continue; - if (aRelationName.equals(rel.getName())) - return rel; - } - } - return null; - } - /** - * @see EJBJar#getEJBRelationsForSource(ContainerManagedEntity) - */ - public List getEJBRelationsForSource(ContainerManagedEntity cmp) { - Relationships relList = getRelationshipList(); - List result = null; - if (relList != null) { - List rels = relList.getEjbRelations(); - int size = rels.size(); - EJBRelation rel = null; - for (int i = 0; i < size; i++) { - rel = (EJBRelation) rels.get(i); - if (rel == null) continue; - List roles = rel.getRelationshipRoles(); - EJBRelationshipRole role; - for (int j = 0; j < roles.size(); j++) { - role = (EJBRelationshipRole) roles.get(j); - if (role.getSourceEntity() == cmp) { - if (result == null) - result = new ArrayList(); - result.add(rel); - break; - } - } - } - } - if (result == null) - result = Collections.EMPTY_LIST; - return result; - } - - public List getEJBRelationshipRolesForType(ContainerManagedEntity cmp) { - Relationships relList = getRelationshipList(); - List result = null; - if (relList != null) { - List rels = relList.getEjbRelations(); - int size = rels.size(); - EJBRelation rel = null; - for (int i = 0; i < size; i++) { - rel = (EJBRelation) rels.get(i); - if (rel == null) continue; - List roles = rel.getRelationshipRoles(); - EJBRelationshipRole role; - for (int j = 0; j < roles.size(); j++) { - role = (EJBRelationshipRole) roles.get(j); - if (cmp.equals(((CommonRelationshipRole) role).getTypeEntity())) { - if (result == null) - result = new ArrayList(); - result.add(role); - break; - } - } - } - } - if (result == null) - result = Collections.EMPTY_LIST; - return result; - } - - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBJarResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBJarResourceFactory.java deleted file mode 100644 index 35c6b0571..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBJarResourceFactory.java +++ /dev/null @@ -1,82 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 27, 2003 - * - */ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.RendererFactory; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory; - - -/** - * @author schacher - */ -public class EJBJarResourceFactory extends TranslatorResourceFactory { - - public static void registerDtds() { - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.EJBJAR_SYSTEMID_1_1, "ejb-jar_1_1.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.EJBJAR_ALT_SYSTEMID_1_1, "ejb-jar_1.1.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.EJBJAR_SYSTEMID_2_0, "ejb-jar_2_0.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.EJBJAR_ALT_SYSTEMID_2_0, "ejb-jar_2.0.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.EJB_JAR_SCHEMA_LOC_2_1, "ejb-jar_2_1.xsd"); //$NON-NLS-1$ - } - - /** - */ - public EJBJarResourceFactory() { - super(RendererFactory.getDefaultRendererFactory()); - } - - /** - * @param aRendererFactory - */ - public EJBJarResourceFactory(RendererFactory aRendererFactory) { - super(aRendererFactory); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceFactory#createResource(org.eclipse.emf.common.util.URI, com.ibm.etools.emf2xml.Renderer) - */ - protected TranslatorResource createResource(URI uri, Renderer aRenderer) { - return new EJBResourceImpl(uri, aRenderer); - } - /** - * Register myself with the Resource.Factory.Registry - */ - public static void registerWith(RendererFactory aRendererFactory) { - J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(J2EEConstants.EJBJAR_DD_SHORT_NAME, new EJBJarResourceFactory(aRendererFactory)); - } - public static Resource.Factory getRegisteredFactory() { - return J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.EJBJAR_DD_URI_OBJ); - } - - /** - * register using the default renderer factory. - * @see #registerWith(RendererFactory) - */ - public static void register() { - registerWith(RendererFactory.getDefaultRendererFactory()); - } - public static void register(FileNameResourceFactoryRegistry aRegistry) { - aRegistry.registerLastFileSegment(J2EEConstants.EJBJAR_DD_SHORT_NAME, new EJBJarResourceFactory(RendererFactory.getDefaultRendererFactory())); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBMethodCategoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBMethodCategoryImpl.java deleted file mode 100644 index 03d4158a3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBMethodCategoryImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.ejb.EJBMethodCategory; -import org.eclipse.jst.j2ee.ejb.EjbPackage; - -/** - * The valid EJB method category names are: EJBHOMEMETHOD, EJBCREATEMETHOD, EJBFINDERMETHOD, EJBREMOTEMETHOD. - */ -public class EJBMethodCategoryImpl extends EObjectImpl implements EJBMethodCategory, EObject { - - public EJBMethodCategoryImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getEJBMethodCategory(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBRelationImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBRelationImpl.java deleted file mode 100644 index 535584b01..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBRelationImpl.java +++ /dev/null @@ -1,448 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.ejb.CommonRelationship; -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.Relationships; - -/** - * The ejb-relation element describes a relationship between two entity beans with container managed persistence. An ejb-relation element contains a description; an optional ejb-relation-name element; and exactly two relationship role declarations, defined by the ejb-relationship-roles. The name of the relationship, if specified, is unique within the ejb-jar file. - * - * @invariant The name of the relationship, if specified, is unique within the ejb-jar file. - * @invariant self.relationshipRoles.size == 2 - * @invariant self.relationshipRoles[0].name != self.relationshipRoles[1].name - * - * @migration EJB1.1 Moved from ejbext::EjbRelationshipRole contained under ejbext::EJBJarExtension - * @migration EJB1.1 added optional attribute, description:String - * @migration EJB1.1 added optional attribute, name:String (May have been inherited from EObject previously) - */ -public class EJBRelationImpl extends EObjectImpl implements EJBRelation, EObject, CommonRelationship{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String name = NAME_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList relationshipRoles = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public EJBRelationImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getEJBRelation(); - } - -public boolean containsRelationshipRole(EJBRelationshipRole aRole) { - return getRelationshipRoles().contains(aRole); -} -/** - * Return the roles. - */ -public EList getCommonRoles() { - return getRelationshipRoles(); -} -/** - * Return the first role. - */ -public CommonRelationshipRole getFirstCommonRole() { - return getFirstRole(); -} -/** - * Return the first role. - */ -public EJBRelationshipRole getFirstRole() { - List list = getRelationshipRoles(); - if (list.size() == 0) - return null; - return (EJBRelationshipRole) list.get(0); -} -/** - * Return the other role. - */ -public EJBRelationshipRole getOppositeRole(EJBRelationshipRole aRole) { - if (aRole != null) { - if (aRole == getFirstRole()) - return getSecondRole(); - if (aRole == getSecondRole()) - return getFirstRole(); - } - return null; -} -/** - * Return the first role. - */ -public CommonRelationshipRole getSecondCommonRole() { - return getSecondRole(); -} -/** - * Return the second role. - */ -public EJBRelationshipRole getSecondRole() { - List list = getRelationshipRoles(); - if (list.size() < 2) - return null; - return (EJBRelationshipRole) list.get(1); -} -/** - * Set the forward role. Implemented by ensuring that the passed role is the first role - * which is the "tiebreaker" in case of unclear relationships, such as 1:1. - */ -public void setFoward(EJBRelationshipRole aRole) { - - EList roles = getRelationshipRoles(); - int currentIndex = roles.indexOf(aRole); - if (currentIndex != 0) { - if (currentIndex > -1) - roles.move(0, aRole); - else - roles.set(0, aRole); - } -} - /** - * @generated This field/method will be replaced during code generation - * The description is used by the ejb-jar file producer to provide text describing the ejb relation. - * - * The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATION__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - * The name of the relationship. If specified, must be unique within the ejb-jar file. - * @invariant self.name unique within Set<collect(ejbJar.ejbRelations.name)> - */ - public String getName() { - return name; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATION__NAME, oldName, name)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public Relationships getRelationshipList() { - if (eContainerFeatureID != EjbPackage.EJB_RELATION__RELATIONSHIP_LIST) return null; - return (Relationships)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRelationshipList(Relationships newRelationshipList) { - if (newRelationshipList != eContainer || (eContainerFeatureID != EjbPackage.EJB_RELATION__RELATIONSHIP_LIST && newRelationshipList != null)) { - if (EcoreUtil.isAncestor(this, newRelationshipList)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newRelationshipList != null) - msgs = ((InternalEObject)newRelationshipList).eInverseAdd(this, EjbPackage.RELATIONSHIPS__EJB_RELATIONS, Relationships.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newRelationshipList, EjbPackage.EJB_RELATION__RELATIONSHIP_LIST, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATION__RELATIONSHIP_LIST, newRelationshipList, newRelationshipList)); - } - - /** - * @generated This field/method will be replaced during code generation - * A collection containing exactly two relationship roles. - * - * @migration EJB1.1 Containment used to be by reference on relation--now by value. - - */ - public EList getRelationshipRoles() { - if (relationshipRoles == null) { - relationshipRoles = new EObjectContainmentWithInverseEList(EJBRelationshipRole.class, this, EjbPackage.EJB_RELATION__RELATIONSHIP_ROLES, EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP); - } - return relationshipRoles; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.EJB_RELATION__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.EJB_RELATION__RELATIONSHIP_LIST: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.EJB_RELATION__RELATIONSHIP_LIST, msgs); - case EjbPackage.EJB_RELATION__RELATIONSHIP_ROLES: - return ((InternalEList)getRelationshipRoles()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.EJB_RELATION__RELATIONSHIP_LIST: - return eBasicSetContainer(null, EjbPackage.EJB_RELATION__RELATIONSHIP_LIST, msgs); - case EjbPackage.EJB_RELATION__RELATIONSHIP_ROLES: - return ((InternalEList)getRelationshipRoles()).basicRemove(otherEnd, msgs); - case EjbPackage.EJB_RELATION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.EJB_RELATION__RELATIONSHIP_LIST: - return eContainer.eInverseRemove(this, EjbPackage.RELATIONSHIPS__EJB_RELATIONS, Relationships.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_RELATION__DESCRIPTION: - return getDescription(); - case EjbPackage.EJB_RELATION__NAME: - return getName(); - case EjbPackage.EJB_RELATION__RELATIONSHIP_LIST: - return getRelationshipList(); - case EjbPackage.EJB_RELATION__RELATIONSHIP_ROLES: - return getRelationshipRoles(); - case EjbPackage.EJB_RELATION__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_RELATION__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.EJB_RELATION__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EjbPackage.EJB_RELATION__RELATIONSHIP_LIST: - return getRelationshipList() != null; - case EjbPackage.EJB_RELATION__RELATIONSHIP_ROLES: - return relationshipRoles != null && !relationshipRoles.isEmpty(); - case EjbPackage.EJB_RELATION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_RELATION__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.EJB_RELATION__NAME: - setName((String)newValue); - return; - case EjbPackage.EJB_RELATION__RELATIONSHIP_LIST: - setRelationshipList((Relationships)newValue); - return; - case EjbPackage.EJB_RELATION__RELATIONSHIP_ROLES: - getRelationshipRoles().clear(); - getRelationshipRoles().addAll((Collection)newValue); - return; - case EjbPackage.EJB_RELATION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_RELATION__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.EJB_RELATION__NAME: - setName(NAME_EDEFAULT); - return; - case EjbPackage.EJB_RELATION__RELATIONSHIP_LIST: - setRelationshipList((Relationships)null); - return; - case EjbPackage.EJB_RELATION__RELATIONSHIP_ROLES: - getRelationshipRoles().clear(); - return; - case EjbPackage.EJB_RELATION__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - - public EJBRelationshipRole getRelationshipRole(String aRoleName) { - if (aRoleName == null) return null; - List roles = getRelationshipRoles(); - EJBRelationshipRole role = null; - for (int i = 0; i < roles.size(); i++) { - role = (EJBRelationshipRole) roles.get(i); - if (aRoleName.equals(role.getName())) - return role; - } - return null; - } -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBRelationshipRoleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBRelationshipRoleImpl.java deleted file mode 100644 index 5cbb370f1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBRelationshipRoleImpl.java +++ /dev/null @@ -1,1011 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.lang.reflect.Constructor; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.BasicEList; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.emf.ecore.xmi.XMIResource; -import org.eclipse.jem.util.logger.proxy.Logger; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.CommonRelationship; -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.IRoleShapeStrategy; -import org.eclipse.jst.j2ee.ejb.MultiplicityKind; -import org.eclipse.jst.j2ee.ejb.RoleSource; -import org.eclipse.wst.common.internal.emf.utilities.IDUtil; -/** - * The ejb-relationship-role element describes a role within a relationship. - * There are two roles in each relationship. The ejb-relationship-role element contains an optional description; an optional name for the relationship role; a specification of the multiplicity of the role; an optional specification of cascade-delete functionality for the role; the role source; and a declaration of the cmr-field, if any, by means of which the other side of the relationship is accessed from the perspective of the role source. The multiplicity and relationship-role-source element are mandatory. The relationship-role-source element designates an entity-bean by means of an ejb-name element. For bidirectional relationships, both roles of a relationship must declare a relationship-role-source element that specifies a cmr-field in terms of which the relationship is accessed. The lack of a cmr-field element in an ejb-relationship-role specifies that the relationship is unidirectional in navigability and that entity bean that participates in the relationship is "not aware" of the relationship. - * - * @invariant multiplicity != null - * @invariant roleSource != null - * @invariant Cascade delete can only be specified in an EJBRelationshipRole element in which the roleSource element specifies a dependent object class. - * @invariant Cascade delete can only be specified for an EJBRelationshipRole contained in an EJBRelation in which the other EJBRelationshipRole element specifies a multiplicity of One. - * - * Example: - * <ejb-relation> - * <ejb-relation-name>Product-LineItem<//ejb-relation-name> - * <ejb-relationship-role> - * <ejb-relationship-role-name>product-has-lineitems<//ejb-relationship-role-name> - * <multiplicity>One<//multiplicity> - * <relationship-role-source> - * <ejb-name>ProductEJB<//ejb-name> - * <//relationship-role-source> - * <//ejb-relationship-role> - * ... - */ -public class EJBRelationshipRoleImpl extends EObjectImpl implements EJBRelationshipRole, EObject, CommonRelationshipRole { - - - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - protected static final EList EMPTY_ELIST = new org.eclipse.emf.common.util.BasicEList(0); - - // Need to cache the computed attributes so that they maintain identity - protected EList fAttributes = null; - protected String fName = null; - protected IRoleShapeStrategy roleShapeStrategy; - private static final String ROLE_STRATEGY_CLASS_NAME = "org.eclipse.jst.j2ee.ejb.internal.impl.EJB20FlattenedRoleShapeStrategy"; //$NON-NLS-1$ - private static final String COMMON_ROLE_CLASS_NAME = "org.eclipse.jst.j2ee.ejb.CommonRelationshipRole"; //$NON-NLS-1$ - private static Class COMMON_ROLE_CLASS; - private static Class ROLE_STRATEGY_CLASS; - private static Constructor ROLE_STRATEGY_CONSTRUCTOR; - private static final String NAME_SUFFIX = "Inverse"; //$NON-NLS-1$ - - private boolean toStringGuard; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getRoleName() <em>Role Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRoleName() - * @generated - * @ordered - */ - protected static final String ROLE_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String roleName = ROLE_NAME_EDEFAULT; - /** - * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMultiplicity() - * @generated - * @ordered - */ - protected static final MultiplicityKind MULTIPLICITY_EDEFAULT = MultiplicityKind.ONE_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected MultiplicityKind multiplicity = MULTIPLICITY_EDEFAULT; - /** - * This is true if the Multiplicity attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean multiplicityESet = false; - - /** - * The default value of the '{@link #isCascadeDelete() <em>Cascade Delete</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isCascadeDelete() - * @generated - * @ordered - */ - protected static final boolean CASCADE_DELETE_EDEFAULT = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected boolean cascadeDelete = CASCADE_DELETE_EDEFAULT; - /** - * This is true if the Cascade Delete attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean cascadeDeleteESet = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected RoleSource source = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected CMRField cmrField = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - private boolean wasForward = false; - private boolean wasMany = false; - - private boolean isKeySet = false; - private boolean key = false; - - private transient Boolean required = null; - - public EJBRelationshipRoleImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getEJBRelationshipRole(); - } - - /** - * Return the persistentAttributes from my Entity that are used - * by this role. - */ - - public EList getAttributes() { - if (fAttributes == null) { - fAttributes = new BasicEList(1); - } - if (fAttributes.isEmpty()) { - getRoleShapeStrategy().reconcileAttributes(fAttributes); - } - return fAttributes; - } - /** - * Return our parent relationship as a CommonRelationship - */ - - public CommonRelationship getCommonRelationship() { - return getRelationship(); - } - protected IRoleShapeStrategy getDefaultRoleShapeStrategy() { - try { - return (IRoleShapeStrategy) getRoleStrategyConstructor(this).newInstance(new Object[] { this }); - } catch (Throwable t) { - Logger.getLogger().logError("EJBRelationshipRoleImpl:Could not instantiate role shape strategy; this requires extensions"); //$NON-NLS-1$ - Logger.getLogger().logError(t); - return null; - } - - } - - - /** - * @return The logical name which can be used for naming this role. - * Required to be unique within a JAR. - * If a cmr-field is defined, then a name in the form %source-ejb-name%_%cmr-field-name% is computed. - * Otherwise a default ID is generated. - */ - public String getLogicalName() { - String result = null; - String qualifier = getCmrField().getName(); - if (qualifier != null) { - result = getSource().getEntityBean().getName() + "_" + qualifier; //$NON-NLS-1$ - } else { - // Apply a default ID - result = IDUtil.getOrAssignID(this); - } - return result; - } - /** - * @return The name for this role, derived from the CMR-field name - * Used to determine the name used in querying this role as well as the accessor method names which implement it. - * Note: may return the XMI ID for non-navigable roles, ie - where there is no CMR-field. - */ - public String getName() { - if (fName == null) { - if (getCmrField() != null) - fName = getCmrField().getName(); - else if (getOpposite() != null) { - EJBRelationshipRole op = getOpposite(); - if (op.getCmrField() != null) - fName = op.getCmrField().getName() + op.getSourceEntity().getName() + NAME_SUFFIX; - } else { - if (eGetId() == null) - eSetId(); - fName = eGetId(); - } - } - return fName; - } - /** - * Return the other role. - */ - public EJBRelationshipRole getOpposite() { - if (getRelationship() != null) - return getRelationship().getOppositeRole(this); - return null; - } - /** - * Return the other role. - */ - public CommonRelationshipRole getOppositeAsCommonRole() { - return getOpposite(); - } - - /** - * Insert the method's description here. - * Creation date: (11/15/2000 6:50:30 PM) - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.IRoleShapeStrategy - */ - public IRoleShapeStrategy getRoleShapeStrategy() { - if (roleShapeStrategy == null) - roleShapeStrategy = getDefaultRoleShapeStrategy(); - return roleShapeStrategy; - } - /** - * @return The Source ejb - * Compute the ContainerManagedEntity which is the source of a role that participates in a relationship. - */ - public ContainerManagedEntity getSourceEntity() { - if(null == getSource()) { - return null; - } - return getSource().getEntityBean(); - } - /** - * @return The computed value of the isForward attribute - * Specifies whether this role should be mapped to a persistent reference, such as a foreign key. - * The current implementation is: - * - if the role is many, it cannot be forward - * - if the role is single and not navigable, it cannot be forward - * - all other things being equal, the first role is considered to be forward - * - clients can manipulate this by setting an ambiguous role to be fwd (by manipulating the role order under the covers). - */ - public boolean isForward() { - if (this.isMany()) - return false; - if (getOppositeAsCommonRole() == null) - return wasForward; - if (getOppositeAsCommonRole().isMany()) - return true; - // if (!this.isNavigable()) removed to allow non-navigable role in key - // return false; - if (getRelationship() == null) - return wasForward; - return (getRelationship().getFirstRole() == this); - } - /** - * @return The computed value isKey - */ - public boolean isKey() { - if (isKeySet) - return key; - return isKeyFromAttributes(); - } - - protected boolean isKeyFromAttributes() { - List list = getAttributes(); - if (list.isEmpty()) - return false; - Iterator it = list.iterator(); - CMPAttribute attribute; - while (it.hasNext()) { - attribute = (CMPAttribute) it.next(); - if (!attribute.isKey()) - return false; - } - return true; - } - - /** - * This allows you to set the Role as being key so it will - * not traverse it attributes to determine if it is key. - */ - public void setKey(boolean aBoolean) { - key = aBoolean; - isKeySet = true; - } - - /** - * Handwritten version of isMany(): - */ - - - public boolean isMany() { - if (getOpposite() == null) - return wasMany; - return getOpposite().getMultiplicity() == MultiplicityKind.MANY_LITERAL; - } - - - - /** - * @return The computed value of the isNavigable attribute - * Specifies that accessors should be generated for this relationship role. - * Current implementation is to test whether or not a CMR field exists. - */ - public boolean isNavigable() { - return getCmrField() != null; - } - - - public void reconcileAttributes() { - if (fAttributes != null) - getRoleShapeStrategy().reconcileAttributes(fAttributes); - } - - - /** - * Set this role to be the forward role. - */ - public void setFoward() { - getRelationship().setFoward(this); - } - public void setName(java.lang.String uniqueName) { - fName = uniqueName; - } - public String toString() { - if (toStringGuard) return super.toString(); - try { - toStringGuard = true; - String oppositeType = getOpposite() != null ? getTypeEntity().getName() : "<<unknown>>"; //$NON-NLS-1$ - return getName() + "(" + oppositeType + ")" + (isMany() ? " *" : " 1"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ - } catch (Exception e) { - return e.toString(); - } finally { - toStringGuard = false; - } - } - - private static Class getCommonRoleClass(Object caller) throws ClassNotFoundException { - - if (COMMON_ROLE_CLASS == null) { - COMMON_ROLE_CLASS = loadClass(COMMON_ROLE_CLASS_NAME, caller); - } - return COMMON_ROLE_CLASS; - } - - private static Class loadClass(String name, Object caller) throws ClassNotFoundException { - ClassLoader cl = caller.getClass().getClassLoader(); - if (cl != null) - return cl.loadClass(name); - return Class.forName(name); - } - - private static Class getRoleStrategyClass(Object caller) throws ClassNotFoundException { - if (ROLE_STRATEGY_CLASS == null) - ROLE_STRATEGY_CLASS = loadClass(ROLE_STRATEGY_CLASS_NAME, caller); - return ROLE_STRATEGY_CLASS; - } - - private static Constructor getRoleStrategyConstructor(Object caller) throws ClassNotFoundException, NoSuchMethodException { - if (ROLE_STRATEGY_CONSTRUCTOR == null) { - Class[] parmTypes = new Class[] { getCommonRoleClass(caller)}; - ROLE_STRATEGY_CONSTRUCTOR = getRoleStrategyClass(caller).getConstructor(parmTypes); - } - return ROLE_STRATEGY_CONSTRUCTOR; - } - - /** - * @generated This field/method will be replaced during code generation - * The description is used by the ejb-jar file producer to provide text describing - * the ejb relationship role. - * - * The description should include any information that the ejb-jar file producer - * wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). - * Typically, the tools used by the ejb-jar file consumer will display the - * description when processing the list of dependents. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - * Defines a name for a role that is unique within an ejb-relation. Different - * relationships can use the same name for a role. - - */ - public String getRoleName() { - return roleName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRoleName(String newRoleName) { - String oldRoleName = roleName; - roleName = newRoleName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATIONSHIP_ROLE__ROLE_NAME, oldRoleName, roleName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MultiplicityKind getMultiplicity() { - return multiplicity; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMultiplicity(MultiplicityKind newMultiplicity) { - MultiplicityKind oldMultiplicity = multiplicity; - multiplicity = newMultiplicity == null ? MULTIPLICITY_EDEFAULT : newMultiplicity; - boolean oldMultiplicityESet = multiplicityESet; - multiplicityESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATIONSHIP_ROLE__MULTIPLICITY, oldMultiplicity, multiplicity, !oldMultiplicityESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetMultiplicity() { - MultiplicityKind oldMultiplicity = multiplicity; - boolean oldMultiplicityESet = multiplicityESet; - multiplicity = MULTIPLICITY_EDEFAULT; - multiplicityESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.EJB_RELATIONSHIP_ROLE__MULTIPLICITY, oldMultiplicity, MULTIPLICITY_EDEFAULT, oldMultiplicityESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetMultiplicity() { - return multiplicityESet; - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies that, within a particular relationship, the lifetime of one or more - * entity beans is dependent upon the lifetime of another entity bean. The - * cascade-delete element can Cascade delete can only be specified for an - * EJBRelationshipRole contained in an EJBrelation in which the other - * EJBRelationshipRole element specifies a multiplicity of One. - * - * - - */ - public boolean isCascadeDelete() { - return cascadeDelete; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setCascadeDelete(boolean newCascadeDelete) { - boolean oldCascadeDelete = cascadeDelete; - cascadeDelete = newCascadeDelete; - boolean oldCascadeDeleteESet = cascadeDeleteESet; - cascadeDeleteESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATIONSHIP_ROLE__CASCADE_DELETE, oldCascadeDelete, cascadeDelete, !oldCascadeDeleteESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetCascadeDelete() { - boolean oldCascadeDelete = cascadeDelete; - boolean oldCascadeDeleteESet = cascadeDeleteESet; - cascadeDelete = CASCADE_DELETE_EDEFAULT; - cascadeDeleteESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.EJB_RELATIONSHIP_ROLE__CASCADE_DELETE, oldCascadeDelete, CASCADE_DELETE_EDEFAULT, oldCascadeDeleteESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetCascadeDelete() { - return cascadeDeleteESet; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EJBRelation getRelationship() { - if (eContainerFeatureID != EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP) return null; - return (EJBRelation)eContainer; - } - - /** - * This field/method will be replaced during code generation. - */ - public void setRelationship(EJBRelation newContainer) { - if (newContainer == null && getRelationship() != null) { - updateCachedSettings(); - EJBRelationshipRoleImpl roleOpposite = (EJBRelationshipRoleImpl) getOpposite(); - if (roleOpposite != null) - roleOpposite.updateCachedSettings(); - } else - wasForward = false; - setRelationshipGen(newContainer); - } - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.ejb.CommonRelationshipRole#getTargetAttributeName(org.eclipse.jst.j2ee.internal.ejb.CMPAttribute) - */ - public String getTargetAttributeName(CMPAttribute roleAttribute) { - int roleNameSize = getName().length(); - return roleAttribute.getName().substring(roleNameSize + 1); - } - /** - * Method updateCachedSettings. - */ - protected void updateCachedSettings() { - wasForward = isForward(); - wasMany = isMany(); - } - - /** - * @generated This field/method will be replaced during code generation - * Designates the source of a role that participates in a relationship. A - * relationship-role-source element uniquely identifies an entity bean. - * @migration EJB1.1: was ibmejbext::EjbRelationshipRole::sourceEJBName, but that - * may not be sufficient, as this can now refer to dependent class names or ejb - * refs - */ - public RoleSource getSource() { - return source; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetSource(RoleSource newSource, NotificationChain msgs) { - RoleSource oldSource = source; - source = newSource; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE, oldSource, newSource); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setSource(RoleSource newSource) { - if (newSource != source) { - NotificationChain msgs = null; - if (source != null) - msgs = ((InternalEObject)source).eInverseRemove(this, EjbPackage.ROLE_SOURCE__ROLE, RoleSource.class, msgs); - if (newSource != null) - msgs = ((InternalEObject)newSource).eInverseAdd(this, EjbPackage.ROLE_SOURCE__ROLE, RoleSource.class, msgs); - msgs = basicSetSource(newSource, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE, newSource, newSource)); - } - - /** - * @generated This field/method will be replaced during code generation - * A declaration of the CMRField, if any, by means of which the other side of the - * relationship is accessed from the perspective of the role source - * - * @migration EJB1.1: Used to be handled via ibmejbext::EjbRole::attributes list - */ - public CMRField getCmrField() { - return cmrField; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetCmrField(CMRField newCmrField, NotificationChain msgs) { - CMRField oldCmrField = cmrField; - cmrField = newCmrField; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD, oldCmrField, newCmrField); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setCmrField(CMRField newCmrField) { - if (newCmrField != cmrField) { - NotificationChain msgs = null; - if (cmrField != null) - msgs = ((InternalEObject)cmrField).eInverseRemove(this, EjbPackage.CMR_FIELD__ROLE, CMRField.class, msgs); - if (newCmrField != null) - msgs = ((InternalEObject)newCmrField).eInverseAdd(this, EjbPackage.CMR_FIELD__ROLE, CMRField.class, msgs); - msgs = basicSetCmrField(newCmrField, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD, newCmrField, newCmrField)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP, msgs); - case EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE: - if (source != null) - msgs = ((InternalEObject)source).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE, null, msgs); - return basicSetSource((RoleSource)otherEnd, msgs); - case EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD: - if (cmrField != null) - msgs = ((InternalEObject)cmrField).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD, null, msgs); - return basicSetCmrField((CMRField)otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP: - return eBasicSetContainer(null, EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP, msgs); - case EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE: - return basicSetSource(null, msgs); - case EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD: - return basicSetCmrField(null, msgs); - case EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP: - return eContainer.eInverseRemove(this, EjbPackage.EJB_RELATION__RELATIONSHIP_ROLES, EJBRelation.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTION: - return getDescription(); - case EjbPackage.EJB_RELATIONSHIP_ROLE__ROLE_NAME: - return getRoleName(); - case EjbPackage.EJB_RELATIONSHIP_ROLE__MULTIPLICITY: - return getMultiplicity(); - case EjbPackage.EJB_RELATIONSHIP_ROLE__CASCADE_DELETE: - return isCascadeDelete() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP: - return getRelationship(); - case EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE: - return getSource(); - case EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD: - return getCmrField(); - case EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.EJB_RELATIONSHIP_ROLE__ROLE_NAME: - return ROLE_NAME_EDEFAULT == null ? roleName != null : !ROLE_NAME_EDEFAULT.equals(roleName); - case EjbPackage.EJB_RELATIONSHIP_ROLE__MULTIPLICITY: - return isSetMultiplicity(); - case EjbPackage.EJB_RELATIONSHIP_ROLE__CASCADE_DELETE: - return isSetCascadeDelete(); - case EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP: - return getRelationship() != null; - case EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE: - return source != null; - case EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD: - return cmrField != null; - case EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__ROLE_NAME: - setRoleName((String)newValue); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__MULTIPLICITY: - setMultiplicity((MultiplicityKind)newValue); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__CASCADE_DELETE: - setCascadeDelete(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP: - setRelationship((EJBRelation)newValue); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE: - setSource((RoleSource)newValue); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD: - setCmrField((CMRField)newValue); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__ROLE_NAME: - setRoleName(ROLE_NAME_EDEFAULT); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__MULTIPLICITY: - unsetMultiplicity(); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__CASCADE_DELETE: - unsetCascadeDelete(); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP: - setRelationship((EJBRelation)null); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE: - setSource((RoleSource)null); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__CMR_FIELD: - setCmrField((CMRField)null); - return; - case EjbPackage.EJB_RELATIONSHIP_ROLE__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toStringGen() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", roleName: "); - result.append(roleName); - result.append(", multiplicity: "); - if (multiplicityESet) result.append(multiplicity); else result.append("<unset>"); - result.append(", cascadeDelete: "); - if (cascadeDeleteESet) result.append(cascadeDelete); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - - /* - * @see CommonRelationshipRole#getTypeEntity() - */ - public ContainerManagedEntity getTypeEntity() { - if (getOpposite() != null) - return getOpposite().getSourceEntity(); - return null; - } - - /** - * @see CommonRelationshipRole#isRequired() - */ - public boolean isRequired() { - if (required!=null) - return required.booleanValue(); - return isKey(); - } - - /** - * Set the isRequired flag for bottom up - */ - public void setRequired(Boolean isRequired) { - required = isRequired; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRelationshipGen(EJBRelation newRelationship) { - if (newRelationship != eContainer || (eContainerFeatureID != EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP && newRelationship != null)) { - if (EcoreUtil.isAncestor(this, newRelationship)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newRelationship != null) - msgs = ((InternalEObject)newRelationship).eInverseAdd(this, EjbPackage.EJB_RELATION__RELATIONSHIP_ROLES, EJBRelation.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newRelationship, EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EJB_RELATIONSHIP_ROLE__RELATIONSHIP, newRelationship, newRelationship)); - } - - /** - * @see org.eclipse.jst.j2ee.internal.ejb.CommonRelationshipRole#setLower(int) - */ - public void setLower(int lowerBound) { - // Do nothing... Only upperbound is relevant here - } - - /** - * @see org.eclipse.jst.j2ee.internal.ejb.CommonRelationshipRole#setUpper(int) - */ - public void setUpper(int upperBound) { - switch (upperBound) { - case MultiplicityKind.ONE : - setMultiplicity(MultiplicityKind.ONE_LITERAL); - break; - default : - setMultiplicity(MultiplicityKind.MANY_LITERAL); - break; - } - } - - /** - Gets the MOF XMI ref id for this object. - */ - private String eGetId() { - XMIResource res = (XMIResource)eResource(); - if (res == null) - return null; - return res.getID(this); - } - - - /** - * Set and return The id of this element - */ - private String eSetId() { - - - IDUtil.getOrAssignID(this); - - return eGetId(); - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBResourceImpl.java deleted file mode 100644 index fbc87230b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EJBResourceImpl.java +++ /dev/null @@ -1,223 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 27, 2003 - * - */ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.common.internal.impl.XMLResourceImpl; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBResource; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.jst.j2ee.internal.model.translator.ejb.EJBJarTranslator; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public class EJBResourceImpl extends XMLResourceImpl implements EJBResource { - - /** - * @param uri - * @param aRenderer - */ - public EJBResourceImpl(URI uri, Renderer aRenderer) { - super(uri, aRenderer); - } - - /** - * @param aRenderer - */ - public EJBResourceImpl(Renderer aRenderer) { - super(aRenderer); - } - - /* - * @see EJBResource#isEJB1_1() - * @deprecated - use getModuleVersionID() and J2EEVersionConstants - */ - public boolean isEJB1_1() { - return getModuleVersionID() == EJB_1_1_ID; - } - - /* - * @see EJBResource#isEJB2_0() - * @deprecated - use getModuleVersionID() and J2EEVersionConstants - */ - public boolean isEJB2_0() { - return getModuleVersionID() == EJB_2_0_ID; - } - - - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResource#getType() - */ - public int getType() { - return XMLResource.EJB_TYPE; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#getDoctype() - */ - public String getDoctype() { - switch (getJ2EEVersionID()) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - return J2EEConstants.EJBJAR_DOCTYPE; - default : - return null; - } - - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_PublicID() - */ - public String getJ2EE_1_2_PublicID() { - return J2EEConstants.EJBJAR_PUBLICID_1_1; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_SystemID() - */ - public String getJ2EE_1_2_SystemID() { - return J2EEConstants.EJBJAR_SYSTEMID_1_1; - } - - public String getJ2EE_Alt_1_2_SystemID() { - return J2EEConstants.EJBJAR_ALT_SYSTEMID_1_1; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_PublicID() - */ - public String getJ2EE_1_3_PublicID() { - return J2EEConstants.EJBJAR_PUBLICID_2_0; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID() - */ - public String getJ2EE_1_3_SystemID() { - return J2EEConstants.EJBJAR_SYSTEMID_2_0; - } - - public String getJ2EE_Alt_1_3_SystemID() { - return J2EEConstants.EJBJAR_ALT_SYSTEMID_2_0; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#getRootTranslator() - */ - public Translator getRootTranslator() { - return EJBJarTranslator.INSTANCE; - } - - /* Return J2EE version based on module version - */ - public int getJ2EEVersionID() { - switch (getModuleVersionID()) { - case J2EEVersionConstants.EJB_1_0_ID : - return J2EEVersionConstants.J2EE_1_2_ID; - case J2EEVersionConstants.EJB_1_1_ID : - return J2EEVersionConstants.J2EE_1_2_ID; - case J2EEVersionConstants.EJB_2_0_ID : - return J2EEVersionConstants.J2EE_1_3_ID; - case J2EEVersionConstants.EJB_2_1_ID : - return J2EEVersionConstants.J2EE_1_4_ID; - default : - return J2EEVersionConstants.J2EE_1_4_ID; - } - } - - /** - * Return the first element in the EList. - */ - public EJBJar getEJBJar() { - return (EJBJar) getRootObject(); - } - - public void setBatchMode(boolean isBatch) { - renderer.setBatchMode(isBatch); - - } - /* - * This directly sets the module version id - */ - public void setModuleVersionID(int id) { - super.setVersionID(id); - switch (id) { - case (EJB_2_1_ID) : - super.setDoctypeValues(null, null); - break; - case (EJB_2_0_ID) : - super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - break; - case (EJB_1_1_ID) : - super.setDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - break; - case (EJB_1_0_ID) : - super.setDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - - } - syncVersionOfRootObject(); - } - /* - * Based on the J2EE version, this will set the module version - */ - public void setJ2EEVersionID(int id) { - switch (id) { - case (J2EE_1_4_ID) : - primSetDoctypeValues(null, null); - primSetVersionID(EJB_2_1_ID); - break; - case (J2EE_1_3_ID) : - primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - primSetVersionID(EJB_2_0_ID); - break; - case (J2EE_1_2_ID) : - primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - primSetVersionID(EJB_1_1_ID); - } - syncVersionOfRootObject(); - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#getDefaultVersionID() - */ - protected int getDefaultVersionID() { - return EJB_2_1_ID; - } - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.impl.XMLResourceImpl#syncVersionOfRootObject() - */ - protected void syncVersionOfRootObject() { - EJBJar ejbJar = getEJBJar(); - if (ejbJar == null) - return; - - String version = ejbJar.getVersion(); - String newVersion = getModuleVersionString(); - if (!newVersion.equals(version)) - ejbJar.setVersion(newVersion); - } - - public boolean isBatchMode() { - return renderer.isBatchMode(); - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EjbFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EjbFactoryImpl.java deleted file mode 100644 index 87ed4358c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EjbFactoryImpl.java +++ /dev/null @@ -1,531 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.AcknowledgeMode; -import org.eclipse.jst.j2ee.ejb.ActivationConfig; -import org.eclipse.jst.j2ee.ejb.ActivationConfigProperty; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.DestinationType; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBMethodCategory; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.ExcludeList; -import org.eclipse.jst.j2ee.ejb.MessageDriven; -import org.eclipse.jst.j2ee.ejb.MessageDrivenDestination; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodElementKind; -import org.eclipse.jst.j2ee.ejb.MethodPermission; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; -import org.eclipse.jst.j2ee.ejb.MultiplicityKind; -import org.eclipse.jst.j2ee.ejb.Query; -import org.eclipse.jst.j2ee.ejb.QueryMethod; -import org.eclipse.jst.j2ee.ejb.Relationships; -import org.eclipse.jst.j2ee.ejb.ReturnTypeMapping; -import org.eclipse.jst.j2ee.ejb.RoleSource; -import org.eclipse.jst.j2ee.ejb.Session; -import org.eclipse.jst.j2ee.ejb.SessionType; -import org.eclipse.jst.j2ee.ejb.SubscriptionDurabilityKind; -import org.eclipse.jst.j2ee.ejb.TransactionAttributeType; -import org.eclipse.jst.j2ee.ejb.TransactionType; -import org.eclipse.jst.j2ee.ejb.internal.util.CMPKeySynchronizationAdapter; -import org.eclipse.wst.common.internal.emf.utilities.AdapterFactoryDescriptor; -import org.eclipse.wst.common.internal.emf.utilities.AdapterFactoryUtil; -import org.eclipse.wst.common.internal.emf.utilities.ExtendedEcoreUtil; - - - -/** - * @generated - */ -public class EjbFactoryImpl extends EFactoryImpl implements EjbFactory{ - private static List CMP_ADAPTER_FACTORIES = new ArrayList(1); - private static List CMP_ADAPTER_FACTORY_DESCRIPTORS = new ArrayList(1); - private static List EJB_RELATION_ADAPTER_FACTORIES = new ArrayList(1); - private static List EJB_RELATION_ADAPTER_FACTORY_DESCRIPTORS = new ArrayList(1); - private static List RELATIONSHIPS_ADAPTER_FACTORIES = new ArrayList(1); - private static List RELATIONSHIPS_ADAPTER_FACTORY_DESCRIPTORS = new ArrayList(1); - public static final String MM_VERSION = "1.1"; //$NON-NLS-1$ - private boolean createdAdapterFactories = false; - - public EjbFactoryImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case EjbPackage.CONTAINER_MANAGED_ENTITY: return createContainerManagedEntity(); - case EjbPackage.METHOD_PERMISSION: return createMethodPermission(); - case EjbPackage.ASSEMBLY_DESCRIPTOR: return createAssemblyDescriptor(); - case EjbPackage.METHOD_TRANSACTION: return createMethodTransaction(); - case EjbPackage.SESSION: return createSession(); - case EjbPackage.ENTITY: return createEntity(); - case EjbPackage.EJB_METHOD_CATEGORY: return createEJBMethodCategory(); - case EjbPackage.EJB_JAR: return createEJBJar(); - case EjbPackage.METHOD_ELEMENT: return createMethodElement(); - case EjbPackage.CMP_ATTRIBUTE: return createCMPAttribute(); - case EjbPackage.RELATIONSHIPS: return createRelationships(); - case EjbPackage.QUERY: return createQuery(); - case EjbPackage.EJB_RELATION: return createEJBRelation(); - case EjbPackage.EJB_RELATIONSHIP_ROLE: return createEJBRelationshipRole(); - case EjbPackage.ROLE_SOURCE: return createRoleSource(); - case EjbPackage.CMR_FIELD: return createCMRField(); - case EjbPackage.MESSAGE_DRIVEN: return createMessageDriven(); - case EjbPackage.MESSAGE_DRIVEN_DESTINATION: return createMessageDrivenDestination(); - case EjbPackage.EXCLUDE_LIST: return createExcludeList(); - case EjbPackage.QUERY_METHOD: return createQueryMethod(); - case EjbPackage.ACTIVATION_CONFIG_PROPERTY: return createActivationConfigProperty(); - case EjbPackage.ACTIVATION_CONFIG: return createActivationConfig(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case EjbPackage.TRANSACTION_ATTRIBUTE_TYPE: { - TransactionAttributeType result = TransactionAttributeType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case EjbPackage.TRANSACTION_TYPE: { - TransactionType result = TransactionType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case EjbPackage.SESSION_TYPE: { - SessionType result = SessionType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case EjbPackage.METHOD_ELEMENT_KIND: { - MethodElementKind result = MethodElementKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case EjbPackage.ACKNOWLEDGE_MODE: { - AcknowledgeMode result = AcknowledgeMode.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case EjbPackage.SUBSCRIPTION_DURABILITY_KIND: { - SubscriptionDurabilityKind result = SubscriptionDurabilityKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case EjbPackage.RETURN_TYPE_MAPPING: { - ReturnTypeMapping result = ReturnTypeMapping.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case EjbPackage.DESTINATION_TYPE: { - DestinationType result = DestinationType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case EjbPackage.MULTIPLICITY_KIND: { - MultiplicityKind result = MultiplicityKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case EjbPackage.TRANSACTION_ATTRIBUTE_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case EjbPackage.TRANSACTION_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case EjbPackage.SESSION_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case EjbPackage.METHOD_ELEMENT_KIND: - return instanceValue == null ? null : instanceValue.toString(); - case EjbPackage.ACKNOWLEDGE_MODE: - return instanceValue == null ? null : instanceValue.toString(); - case EjbPackage.SUBSCRIPTION_DURABILITY_KIND: - return instanceValue == null ? null : instanceValue.toString(); - case EjbPackage.RETURN_TYPE_MAPPING: - return instanceValue == null ? null : instanceValue.toString(); - case EjbPackage.DESTINATION_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case EjbPackage.MULTIPLICITY_KIND: - return instanceValue == null ? null : instanceValue.toString(); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - -public MethodElement createMethodElement(String aSignature) { - MethodElement me = createMethodElement(); - me.initializeFromSignature(aSignature); - return me; -} -/** - * Helper method to create a MethodElement from a java method. Defaults the type to "Unspecified". - */ -public MethodElement createMethodElementFrom( - Method method) { - - MethodElement element = createMethodElement(); - element.setName(method.getName()); - element.setType(MethodElementKind.UNSPECIFIED_LITERAL); - - JavaParameter[] params = - method.listParametersWithoutReturn(); - if (params.length == 0) - element.applyZeroParams(); - else { - for (int i = 0; i < params.length; i++) { - JavaHelpers helper = (JavaHelpers) params[i].getEType(); - element.addMethodParams(helper.getQualifiedName()); - } - } - return element; -} -/** - * Helper method to reflect the method and create a MethodElement. If the parameter is null, creates an element - * with a name of "*". Defaults the type to "Unspecified". - */ -public MethodElement createMethodElementFrom(java.lang.reflect.Method method) { - - String methodName = method == null ? "*" : method.getName(); //$NON-NLS-1$ - MethodElement me = createMethodElement(); - me.setName(methodName); - me.setType(MethodElementKind.UNSPECIFIED_LITERAL); - if (method != null) { - Class[] types = method.getParameterTypes(); - for (int i = 0; i < types.length; i++) { - me.addMethodParams(getTypeName(types[i])); - } - } - return me; -} -public static EjbFactory getActiveFactory() { - return (EjbFactory) getPackage().getEFactoryInstance(); -} -/* - * Utility routine to paper over array type names - * Borrowed from a package-visibility helper on java.lang.reflect.Field - */ -static String getTypeName(Class type) { - if (type.isArray()) { - try { - Class cl = type; - int dimensions = 0; - while (cl.isArray()) { - dimensions++; - cl = cl.getComponentType(); - } - StringBuffer sb = new StringBuffer(); - sb.append(cl.getName()); - for (int i = 0; i < dimensions; i++) { - sb.append("[]");//$NON-NLS-1$ - } - return sb.toString(); - } catch (Throwable e) { /*FALLTHRU*/ - } - } - return type.getName(); -} - - - /** - * @generated This field/method will be replaced during code generation. - */ - public MethodPermission createMethodPermission() { - MethodPermissionImpl methodPermission = new MethodPermissionImpl(); - return methodPermission; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public AssemblyDescriptor createAssemblyDescriptor() { - AssemblyDescriptorImpl assemblyDescriptor = new AssemblyDescriptorImpl(); - return assemblyDescriptor; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public MethodTransaction createMethodTransaction() { - MethodTransactionImpl methodTransaction = new MethodTransactionImpl(); - return methodTransaction; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Entity createEntity() { - EntityImpl entity = new EntityImpl(); - return entity; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ContainerManagedEntity createContainerManagedEntityGen() { - ContainerManagedEntityImpl containerManagedEntity = new ContainerManagedEntityImpl(); - return containerManagedEntity; - } - - public ContainerManagedEntity createContainerManagedEntity() { - ContainerManagedEntity cmp = createContainerManagedEntityGen(); - adaptNew(cmp, CMP_ADAPTER_FACTORIES); - addKeySynchronizationAdapter(cmp); - return cmp; - } - - /** - * @param cmp - */ - private void addKeySynchronizationAdapter(ContainerManagedEntity cmp) { - CMPKeySynchronizationAdapter cmpAdapter = new CMPKeySynchronizationAdapter(cmp); - Adapter loadingAdapter = ExtendedEcoreUtil.createAdapterForLoading(cmpAdapter,cmp); - cmp.eAdapters().add(loadingAdapter); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public CMPAttribute createCMPAttribute() { - CMPAttributeImpl cmpAttribute = new CMPAttributeImpl(); - return cmpAttribute; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public CMRField createCMRField() { - CMRFieldImpl cmrField = new CMRFieldImpl(); - return cmrField; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EJBRelationshipRole createEJBRelationshipRole() { - EJBRelationshipRoleImpl ejbRelationshipRole = new EJBRelationshipRoleImpl(); - return ejbRelationshipRole; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EJBRelation createEJBRelationGen() { - EJBRelationImpl ejbRelation = new EJBRelationImpl(); - return ejbRelation; - } - - public EJBRelation createEJBRelation() { - EJBRelation rel = createEJBRelationGen(); - adaptNew(rel, EJB_RELATION_ADAPTER_FACTORIES); - return rel; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Relationships createRelationshipsGen() { - RelationshipsImpl relationships = new RelationshipsImpl(); - return relationships; - } - - public Relationships createRelationships() { - Relationships rel = createRelationshipsGen(); - adaptNew(rel, RELATIONSHIPS_ADAPTER_FACTORIES); - return rel; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public EJBJar createEJBJar() { - EJBJarImpl ejbJar = new EJBJarImpl(); - return ejbJar; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public RoleSource createRoleSource() { - RoleSourceImpl roleSource = new RoleSourceImpl(); - return roleSource; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Query createQuery() { - QueryImpl query = new QueryImpl(); - return query; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public QueryMethod createQueryMethod() { - QueryMethodImpl queryMethod = new QueryMethodImpl(); - return queryMethod; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ActivationConfigProperty createActivationConfigProperty() { - ActivationConfigPropertyImpl activationConfigProperty = new ActivationConfigPropertyImpl(); - return activationConfigProperty; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ActivationConfig createActivationConfig() { - ActivationConfigImpl activationConfig = new ActivationConfigImpl(); - return activationConfig; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public MethodElement createMethodElement() { - MethodElementImpl methodElement = new MethodElementImpl(); - return methodElement; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ExcludeList createExcludeList() { - ExcludeListImpl excludeList = new ExcludeListImpl(); - return excludeList; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Session createSession() { - SessionImpl session = new SessionImpl(); - return session; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public MessageDriven createMessageDriven() { - MessageDrivenImpl messageDriven = new MessageDrivenImpl(); - return messageDriven; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public MessageDrivenDestination createMessageDrivenDestination() { - MessageDrivenDestinationImpl messageDrivenDestination = new MessageDrivenDestinationImpl(); - return messageDrivenDestination; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EJBMethodCategory createEJBMethodCategory() { - EJBMethodCategoryImpl ejbMethodCategory = new EJBMethodCategoryImpl(); - return ejbMethodCategory; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EjbPackage getEjbPackage() { - return (EjbPackage)getEPackage(); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public static EjbPackage getPackage() { - return EjbPackage.eINSTANCE; - } - - public static void internalRegisterCMPAdapterFactory(AdapterFactoryDescriptor config) { - CMP_ADAPTER_FACTORY_DESCRIPTORS.add(config); - - } - public static void internalRegisterEJBRelationAdapterFactory(AdapterFactoryDescriptor config) { - EJB_RELATION_ADAPTER_FACTORY_DESCRIPTORS.add(config); - } - public static void internalRegisterRelationshipsAdapterFactory(AdapterFactoryDescriptor config) { - RELATIONSHIPS_ADAPTER_FACTORY_DESCRIPTORS.add(config); - } - - - private void createAdapterFactories() { - createdAdapterFactories = true; - AdapterFactoryUtil.createAdapterFactories(CMP_ADAPTER_FACTORY_DESCRIPTORS, CMP_ADAPTER_FACTORIES); - AdapterFactoryUtil.createAdapterFactories(EJB_RELATION_ADAPTER_FACTORY_DESCRIPTORS, EJB_RELATION_ADAPTER_FACTORIES); - AdapterFactoryUtil.createAdapterFactories(RELATIONSHIPS_ADAPTER_FACTORY_DESCRIPTORS, RELATIONSHIPS_ADAPTER_FACTORIES); - } - - private void adaptNew(Notifier notifier, List factories) { - if (!createdAdapterFactories) - createAdapterFactories(); - AdapterFactoryUtil.adaptNew(notifier, factories); - } - -} - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EjbPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EjbPackageImpl.java deleted file mode 100644 index 4e03aa21d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EjbPackageImpl.java +++ /dev/null @@ -1,1778 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.AcknowledgeMode; -import org.eclipse.jst.j2ee.ejb.ActivationConfig; -import org.eclipse.jst.j2ee.ejb.ActivationConfigProperty; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.DestinationType; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBMethodCategory; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.ExcludeList; -import org.eclipse.jst.j2ee.ejb.MessageDriven; -import org.eclipse.jst.j2ee.ejb.MessageDrivenDestination; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodElementKind; -import org.eclipse.jst.j2ee.ejb.MethodPermission; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; -import org.eclipse.jst.j2ee.ejb.MultiplicityKind; -import org.eclipse.jst.j2ee.ejb.Query; -import org.eclipse.jst.j2ee.ejb.QueryMethod; -import org.eclipse.jst.j2ee.ejb.Relationships; -import org.eclipse.jst.j2ee.ejb.ReturnTypeMapping; -import org.eclipse.jst.j2ee.ejb.RoleSource; -import org.eclipse.jst.j2ee.ejb.Session; -import org.eclipse.jst.j2ee.ejb.SessionType; -import org.eclipse.jst.j2ee.ejb.SubscriptionDurabilityKind; -import org.eclipse.jst.j2ee.ejb.TransactionAttributeType; -import org.eclipse.jst.j2ee.ejb.TransactionType; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -public class EjbPackageImpl extends EPackageImpl implements EjbPackage, EPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass containerManagedEntityEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass methodPermissionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass assemblyDescriptorEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass methodTransactionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass sessionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass entityEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass enterpriseBeanEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ejbMethodCategoryEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ejbJarEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass methodElementEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass cmpAttributeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass relationshipsEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass queryEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ejbRelationEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ejbRelationshipRoleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass roleSourceEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass cmrFieldEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass messageDrivenEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass messageDrivenDestinationEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass excludeListEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass queryMethodEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass activationConfigPropertyEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass activationConfigEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum transactionAttributeTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum transactionTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum sessionTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum methodElementKindEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum acknowledgeModeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum subscriptionDurabilityKindEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum returnTypeMappingEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum destinationTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum multiplicityKindEEnum = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - private EjbPackageImpl() { - super(eNS_URI, EjbFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - public static EjbPackage init() { - if (isInited) return (EjbPackage)EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI); - - // Obtain or create and register package - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new EjbPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE); - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE); - - // Create package meta-data objects - theEjbPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theCommonPackage.createPackageContents(); - theTaglibPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - theWscommonPackage.createPackageContents(); - theWsddPackage.createPackageContents(); - - // Initialize created meta-data - theEjbPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theTaglibPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - theWscommonPackage.initializePackageContents(); - theWsddPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theEjbPackage.freeze(); - - return theEjbPackage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getMethodPermission() { - return methodPermissionEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMethodPermission_Description() { - return (EAttribute)methodPermissionEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMethodPermission_Unchecked() { - return (EAttribute)methodPermissionEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getMethodPermission_AssemblyDescriptor() { - return (EReference)methodPermissionEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getMethodPermission_Roles() { - return (EReference)methodPermissionEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getMethodPermission_MethodElements() { - return (EReference)methodPermissionEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMethodPermission_Descriptions() { - return (EReference)methodPermissionEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getAssemblyDescriptor() { - return assemblyDescriptorEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getAssemblyDescriptor_MethodPermissions() { - return (EReference)assemblyDescriptorEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getAssemblyDescriptor_MethodTransactions() { - return (EReference)assemblyDescriptorEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getAssemblyDescriptor_EjbJar() { - return (EReference)assemblyDescriptorEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getAssemblyDescriptor_SecurityRoles() { - return (EReference)assemblyDescriptorEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getAssemblyDescriptor_ExcludeList() { - return (EReference)assemblyDescriptorEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getAssemblyDescriptor_MessageDestinations() { - return (EReference)assemblyDescriptorEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getMethodTransaction() { - return methodTransactionEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMethodTransaction_TransactionAttribute() { - return (EAttribute)methodTransactionEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMethodTransaction_Description() { - return (EAttribute)methodTransactionEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getMethodTransaction_AssemblyDescriptor() { - return (EReference)methodTransactionEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getMethodTransaction_MethodElements() { - return (EReference)methodTransactionEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMethodTransaction_Descriptions() { - return (EReference)methodTransactionEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEnterpriseBean() { - return enterpriseBeanEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getEnterpriseBean_Name() { - return (EAttribute)enterpriseBeanEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEnterpriseBean_SecurityRoleRefs() { - return (EReference)enterpriseBeanEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEnterpriseBean_EjbClass() { - return (EReference)enterpriseBeanEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEnterpriseBean_HomeInterface() { - return (EReference)enterpriseBeanEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEnterpriseBean_RemoteInterface() { - return (EReference)enterpriseBeanEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEnterpriseBean_EjbJar() { - return (EReference)enterpriseBeanEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEnterpriseBean_SecurityIdentity() { - return (EReference)enterpriseBeanEClass.getEStructuralFeatures().get(6); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEnterpriseBean_LocalHomeInterface() { - return (EReference)enterpriseBeanEClass.getEStructuralFeatures().get(7); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEnterpriseBean_LocalInterface() { - return (EReference)enterpriseBeanEClass.getEStructuralFeatures().get(8); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEntity() { - return entityEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getEntity_Reentrant() { - return (EAttribute)entityEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEntity_PrimaryKey() { - return (EReference)entityEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getContainerManagedEntity() { - return containerManagedEntityEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getContainerManagedEntity_Version() { - return (EAttribute)containerManagedEntityEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getContainerManagedEntity_AbstractSchemaName() { - return (EAttribute)containerManagedEntityEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getContainerManagedEntity_PersistentAttributes() { - return (EReference)containerManagedEntityEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getContainerManagedEntity_KeyAttributes() { - return (EReference)containerManagedEntityEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getContainerManagedEntity_Queries() { - return (EReference)containerManagedEntityEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getContainerManagedEntity_CMPAttribute() { - return (EReference)containerManagedEntityEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getContainerManagedEntity_PrimKeyField() { - return (EReference)containerManagedEntityEClass.getEStructuralFeatures().get(6); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getCMPAttribute() { - return cmpAttributeEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getCMPAttribute_Description() { - return (EAttribute)cmpAttributeEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getCMPAttribute_Descriptions() { - return (EReference)cmpAttributeEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getCMRField() { - return cmrFieldEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getCMRField_Role() { - return (EReference)cmrFieldEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getCMRField_CollectionType() { - return (EReference)cmrFieldEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEJBRelationshipRole() { - return ejbRelationshipRoleEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEJBRelationshipRole_Description() { - return (EAttribute)ejbRelationshipRoleEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEJBRelationshipRole_RoleName() { - return (EAttribute)ejbRelationshipRoleEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEJBRelationshipRole_Multiplicity() { - return (EAttribute)ejbRelationshipRoleEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEJBRelationshipRole_CascadeDelete() { - return (EAttribute)ejbRelationshipRoleEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEJBRelationshipRole_Relationship() { - return (EReference)ejbRelationshipRoleEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEJBRelationshipRole_Source() { - return (EReference)ejbRelationshipRoleEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEJBRelationshipRole_CmrField() { - return (EReference)ejbRelationshipRoleEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getEJBRelationshipRole_Descriptions() { - return (EReference)ejbRelationshipRoleEClass.getEStructuralFeatures().get(7); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEJBRelation() { - return ejbRelationEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEJBRelation_Description() { - return (EAttribute)ejbRelationEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEJBRelation_Name() { - return (EAttribute)ejbRelationEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEJBRelation_RelationshipList() { - return (EReference)ejbRelationEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEJBRelation_RelationshipRoles() { - return (EReference)ejbRelationEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getEJBRelation_Descriptions() { - return (EReference)ejbRelationEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getRelationships() { - return relationshipsEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getRelationships_Description() { - return (EAttribute)relationshipsEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getRelationships_EjbJar() { - return (EReference)relationshipsEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getRelationships_EjbRelations() { - return (EReference)relationshipsEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getRelationships_Descriptions() { - return (EReference)relationshipsEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEJBJar() { - return ejbJarEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getEJBJar_EjbClientJar() { - return (EAttribute)ejbJarEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getEJBJar_Version() { - return (EAttribute)ejbJarEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEJBJar_AssemblyDescriptor() { - return (EReference)ejbJarEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEJBJar_EnterpriseBeans() { - return (EReference)ejbJarEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getEJBJar_RelationshipList() { - return (EReference)ejbJarEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getRoleSource() { - return roleSourceEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getRoleSource_Description() { - return (EAttribute)roleSourceEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getRoleSource_Role() { - return (EReference)roleSourceEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getRoleSource_EntityBean() { - return (EReference)roleSourceEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getRoleSource_Descriptions() { - return (EReference)roleSourceEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getQuery() { - return queryEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getQuery_Description() { - return (EAttribute)queryEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getQuery_EjbQL() { - return (EAttribute)queryEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getQuery_ReturnTypeMapping() { - return (EAttribute)queryEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getQuery_QueryMethod() { - return (EReference)queryEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getQuery_Entity() { - return (EReference)queryEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getQuery_Descriptions() { - return (EReference)queryEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getQueryMethod() { - return queryMethodEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getQueryMethod_Query() { - return (EReference)queryMethodEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getActivationConfigProperty() { - return activationConfigPropertyEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getActivationConfigProperty_Value() { - return (EAttribute)activationConfigPropertyEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getActivationConfigProperty_Name() { - return (EAttribute)activationConfigPropertyEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getActivationConfig() { - return activationConfigEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getActivationConfig_ConfigProperties() { - return (EReference)activationConfigEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getActivationConfig_Descriptions() { - return (EReference)activationConfigEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getMethodElement() { - return methodElementEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMethodElement_Name() { - return (EAttribute)methodElementEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMethodElement_Parms() { - return (EAttribute)methodElementEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMethodElement_Type() { - return (EAttribute)methodElementEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMethodElement_Description() { - return (EAttribute)methodElementEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getMethodElement_EnterpriseBean() { - return (EReference)methodElementEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMethodElement_Descriptions() { - return (EReference)methodElementEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getExcludeList() { - return excludeListEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getExcludeList_Description() { - return (EAttribute)excludeListEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getExcludeList_MethodElements() { - return (EReference)excludeListEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getExcludeList_Descriptions() { - return (EReference)excludeListEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getSession() { - return sessionEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSession_TransactionType() { - return (EAttribute)sessionEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSession_SessionType() { - return (EAttribute)sessionEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSession_ServiceEndpoint() { - return (EReference)sessionEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getMessageDriven() { - return messageDrivenEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMessageDriven_TransactionType() { - return (EAttribute)messageDrivenEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMessageDriven_MessageSelector() { - return (EAttribute)messageDrivenEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMessageDriven_AcknowledgeMode() { - return (EAttribute)messageDrivenEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getMessageDriven_Destination() { - return (EReference)messageDrivenEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMessageDriven_ActivationConfig() { - return (EReference)messageDrivenEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMessageDriven_MessageDestination() { - return (EReference)messageDrivenEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMessageDriven_Link() { - return (EAttribute)messageDrivenEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMessageDriven_MessagingType() { - return (EReference)messageDrivenEClass.getEStructuralFeatures().get(7); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getMessageDrivenDestination() { - return messageDrivenDestinationEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMessageDrivenDestination_Type() { - return (EAttribute)messageDrivenDestinationEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMessageDrivenDestination_SubscriptionDurability() { - return (EAttribute)messageDrivenDestinationEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getMessageDrivenDestination_Bean() { - return (EReference)messageDrivenDestinationEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getEJBMethodCategory() { - return ejbMethodCategoryEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getTransactionAttributeType() { - return transactionAttributeTypeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getMultiplicityKind() { - return multiplicityKindEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getReturnTypeMapping() { - return returnTypeMappingEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getMethodElementKind() { - return methodElementKindEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getTransactionType() { - return transactionTypeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getAcknowledgeMode() { - return acknowledgeModeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getDestinationType() { - return destinationTypeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getSubscriptionDurabilityKind() { - return subscriptionDurabilityKindEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getSessionType() { - return sessionTypeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EjbFactory getEjbFactory() { - return (EjbFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - containerManagedEntityEClass = createEClass(CONTAINER_MANAGED_ENTITY); - createEAttribute(containerManagedEntityEClass, CONTAINER_MANAGED_ENTITY__VERSION); - createEAttribute(containerManagedEntityEClass, CONTAINER_MANAGED_ENTITY__ABSTRACT_SCHEMA_NAME); - createEReference(containerManagedEntityEClass, CONTAINER_MANAGED_ENTITY__PERSISTENT_ATTRIBUTES); - createEReference(containerManagedEntityEClass, CONTAINER_MANAGED_ENTITY__KEY_ATTRIBUTES); - createEReference(containerManagedEntityEClass, CONTAINER_MANAGED_ENTITY__QUERIES); - createEReference(containerManagedEntityEClass, CONTAINER_MANAGED_ENTITY__CMP_ATTRIBUTE); - createEReference(containerManagedEntityEClass, CONTAINER_MANAGED_ENTITY__PRIM_KEY_FIELD); - - methodPermissionEClass = createEClass(METHOD_PERMISSION); - createEAttribute(methodPermissionEClass, METHOD_PERMISSION__DESCRIPTION); - createEAttribute(methodPermissionEClass, METHOD_PERMISSION__UNCHECKED); - createEReference(methodPermissionEClass, METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR); - createEReference(methodPermissionEClass, METHOD_PERMISSION__ROLES); - createEReference(methodPermissionEClass, METHOD_PERMISSION__METHOD_ELEMENTS); - createEReference(methodPermissionEClass, METHOD_PERMISSION__DESCRIPTIONS); - - assemblyDescriptorEClass = createEClass(ASSEMBLY_DESCRIPTOR); - createEReference(assemblyDescriptorEClass, ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS); - createEReference(assemblyDescriptorEClass, ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS); - createEReference(assemblyDescriptorEClass, ASSEMBLY_DESCRIPTOR__EJB_JAR); - createEReference(assemblyDescriptorEClass, ASSEMBLY_DESCRIPTOR__SECURITY_ROLES); - createEReference(assemblyDescriptorEClass, ASSEMBLY_DESCRIPTOR__EXCLUDE_LIST); - createEReference(assemblyDescriptorEClass, ASSEMBLY_DESCRIPTOR__MESSAGE_DESTINATIONS); - - methodTransactionEClass = createEClass(METHOD_TRANSACTION); - createEAttribute(methodTransactionEClass, METHOD_TRANSACTION__TRANSACTION_ATTRIBUTE); - createEAttribute(methodTransactionEClass, METHOD_TRANSACTION__DESCRIPTION); - createEReference(methodTransactionEClass, METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR); - createEReference(methodTransactionEClass, METHOD_TRANSACTION__METHOD_ELEMENTS); - createEReference(methodTransactionEClass, METHOD_TRANSACTION__DESCRIPTIONS); - - sessionEClass = createEClass(SESSION); - createEAttribute(sessionEClass, SESSION__TRANSACTION_TYPE); - createEAttribute(sessionEClass, SESSION__SESSION_TYPE); - createEReference(sessionEClass, SESSION__SERVICE_ENDPOINT); - - entityEClass = createEClass(ENTITY); - createEAttribute(entityEClass, ENTITY__REENTRANT); - createEReference(entityEClass, ENTITY__PRIMARY_KEY); - - enterpriseBeanEClass = createEClass(ENTERPRISE_BEAN); - createEAttribute(enterpriseBeanEClass, ENTERPRISE_BEAN__NAME); - createEReference(enterpriseBeanEClass, ENTERPRISE_BEAN__SECURITY_ROLE_REFS); - createEReference(enterpriseBeanEClass, ENTERPRISE_BEAN__EJB_CLASS); - createEReference(enterpriseBeanEClass, ENTERPRISE_BEAN__HOME_INTERFACE); - createEReference(enterpriseBeanEClass, ENTERPRISE_BEAN__REMOTE_INTERFACE); - createEReference(enterpriseBeanEClass, ENTERPRISE_BEAN__EJB_JAR); - createEReference(enterpriseBeanEClass, ENTERPRISE_BEAN__SECURITY_IDENTITY); - createEReference(enterpriseBeanEClass, ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE); - createEReference(enterpriseBeanEClass, ENTERPRISE_BEAN__LOCAL_INTERFACE); - - ejbMethodCategoryEClass = createEClass(EJB_METHOD_CATEGORY); - - ejbJarEClass = createEClass(EJB_JAR); - createEAttribute(ejbJarEClass, EJB_JAR__EJB_CLIENT_JAR); - createEAttribute(ejbJarEClass, EJB_JAR__VERSION); - createEReference(ejbJarEClass, EJB_JAR__ASSEMBLY_DESCRIPTOR); - createEReference(ejbJarEClass, EJB_JAR__ENTERPRISE_BEANS); - createEReference(ejbJarEClass, EJB_JAR__RELATIONSHIP_LIST); - - methodElementEClass = createEClass(METHOD_ELEMENT); - createEAttribute(methodElementEClass, METHOD_ELEMENT__NAME); - createEAttribute(methodElementEClass, METHOD_ELEMENT__PARMS); - createEAttribute(methodElementEClass, METHOD_ELEMENT__TYPE); - createEAttribute(methodElementEClass, METHOD_ELEMENT__DESCRIPTION); - createEReference(methodElementEClass, METHOD_ELEMENT__ENTERPRISE_BEAN); - createEReference(methodElementEClass, METHOD_ELEMENT__DESCRIPTIONS); - - cmpAttributeEClass = createEClass(CMP_ATTRIBUTE); - createEAttribute(cmpAttributeEClass, CMP_ATTRIBUTE__DESCRIPTION); - createEReference(cmpAttributeEClass, CMP_ATTRIBUTE__DESCRIPTIONS); - - relationshipsEClass = createEClass(RELATIONSHIPS); - createEAttribute(relationshipsEClass, RELATIONSHIPS__DESCRIPTION); - createEReference(relationshipsEClass, RELATIONSHIPS__EJB_JAR); - createEReference(relationshipsEClass, RELATIONSHIPS__EJB_RELATIONS); - createEReference(relationshipsEClass, RELATIONSHIPS__DESCRIPTIONS); - - queryEClass = createEClass(QUERY); - createEAttribute(queryEClass, QUERY__DESCRIPTION); - createEAttribute(queryEClass, QUERY__EJB_QL); - createEAttribute(queryEClass, QUERY__RETURN_TYPE_MAPPING); - createEReference(queryEClass, QUERY__QUERY_METHOD); - createEReference(queryEClass, QUERY__ENTITY); - createEReference(queryEClass, QUERY__DESCRIPTIONS); - - ejbRelationEClass = createEClass(EJB_RELATION); - createEAttribute(ejbRelationEClass, EJB_RELATION__DESCRIPTION); - createEAttribute(ejbRelationEClass, EJB_RELATION__NAME); - createEReference(ejbRelationEClass, EJB_RELATION__RELATIONSHIP_LIST); - createEReference(ejbRelationEClass, EJB_RELATION__RELATIONSHIP_ROLES); - createEReference(ejbRelationEClass, EJB_RELATION__DESCRIPTIONS); - - ejbRelationshipRoleEClass = createEClass(EJB_RELATIONSHIP_ROLE); - createEAttribute(ejbRelationshipRoleEClass, EJB_RELATIONSHIP_ROLE__DESCRIPTION); - createEAttribute(ejbRelationshipRoleEClass, EJB_RELATIONSHIP_ROLE__ROLE_NAME); - createEAttribute(ejbRelationshipRoleEClass, EJB_RELATIONSHIP_ROLE__MULTIPLICITY); - createEAttribute(ejbRelationshipRoleEClass, EJB_RELATIONSHIP_ROLE__CASCADE_DELETE); - createEReference(ejbRelationshipRoleEClass, EJB_RELATIONSHIP_ROLE__RELATIONSHIP); - createEReference(ejbRelationshipRoleEClass, EJB_RELATIONSHIP_ROLE__SOURCE); - createEReference(ejbRelationshipRoleEClass, EJB_RELATIONSHIP_ROLE__CMR_FIELD); - createEReference(ejbRelationshipRoleEClass, EJB_RELATIONSHIP_ROLE__DESCRIPTIONS); - - roleSourceEClass = createEClass(ROLE_SOURCE); - createEAttribute(roleSourceEClass, ROLE_SOURCE__DESCRIPTION); - createEReference(roleSourceEClass, ROLE_SOURCE__ROLE); - createEReference(roleSourceEClass, ROLE_SOURCE__ENTITY_BEAN); - createEReference(roleSourceEClass, ROLE_SOURCE__DESCRIPTIONS); - - cmrFieldEClass = createEClass(CMR_FIELD); - createEReference(cmrFieldEClass, CMR_FIELD__ROLE); - createEReference(cmrFieldEClass, CMR_FIELD__COLLECTION_TYPE); - - messageDrivenEClass = createEClass(MESSAGE_DRIVEN); - createEAttribute(messageDrivenEClass, MESSAGE_DRIVEN__TRANSACTION_TYPE); - createEAttribute(messageDrivenEClass, MESSAGE_DRIVEN__MESSAGE_SELECTOR); - createEAttribute(messageDrivenEClass, MESSAGE_DRIVEN__ACKNOWLEDGE_MODE); - createEAttribute(messageDrivenEClass, MESSAGE_DRIVEN__LINK); - createEReference(messageDrivenEClass, MESSAGE_DRIVEN__DESTINATION); - createEReference(messageDrivenEClass, MESSAGE_DRIVEN__ACTIVATION_CONFIG); - createEReference(messageDrivenEClass, MESSAGE_DRIVEN__MESSAGE_DESTINATION); - createEReference(messageDrivenEClass, MESSAGE_DRIVEN__MESSAGING_TYPE); - - messageDrivenDestinationEClass = createEClass(MESSAGE_DRIVEN_DESTINATION); - createEAttribute(messageDrivenDestinationEClass, MESSAGE_DRIVEN_DESTINATION__TYPE); - createEAttribute(messageDrivenDestinationEClass, MESSAGE_DRIVEN_DESTINATION__SUBSCRIPTION_DURABILITY); - createEReference(messageDrivenDestinationEClass, MESSAGE_DRIVEN_DESTINATION__BEAN); - - excludeListEClass = createEClass(EXCLUDE_LIST); - createEAttribute(excludeListEClass, EXCLUDE_LIST__DESCRIPTION); - createEReference(excludeListEClass, EXCLUDE_LIST__METHOD_ELEMENTS); - createEReference(excludeListEClass, EXCLUDE_LIST__DESCRIPTIONS); - - queryMethodEClass = createEClass(QUERY_METHOD); - createEReference(queryMethodEClass, QUERY_METHOD__QUERY); - - activationConfigPropertyEClass = createEClass(ACTIVATION_CONFIG_PROPERTY); - createEAttribute(activationConfigPropertyEClass, ACTIVATION_CONFIG_PROPERTY__VALUE); - createEAttribute(activationConfigPropertyEClass, ACTIVATION_CONFIG_PROPERTY__NAME); - - activationConfigEClass = createEClass(ACTIVATION_CONFIG); - createEReference(activationConfigEClass, ACTIVATION_CONFIG__CONFIG_PROPERTIES); - createEReference(activationConfigEClass, ACTIVATION_CONFIG__DESCRIPTIONS); - - // Create enums - transactionAttributeTypeEEnum = createEEnum(TRANSACTION_ATTRIBUTE_TYPE); - transactionTypeEEnum = createEEnum(TRANSACTION_TYPE); - sessionTypeEEnum = createEEnum(SESSION_TYPE); - methodElementKindEEnum = createEEnum(METHOD_ELEMENT_KIND); - acknowledgeModeEEnum = createEEnum(ACKNOWLEDGE_MODE); - subscriptionDurabilityKindEEnum = createEEnum(SUBSCRIPTION_DURABILITY_KIND); - returnTypeMappingEEnum = createEEnum(RETURN_TYPE_MAPPING); - destinationTypeEEnum = createEEnum(DESTINATION_TYPE); - multiplicityKindEEnum = createEEnum(MULTIPLICITY_KIND); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - JavaRefPackageImpl theJavaRefPackage = (JavaRefPackageImpl)EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI); - EcorePackageImpl theEcorePackage = (EcorePackageImpl)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - - // Add supertypes to classes - containerManagedEntityEClass.getESuperTypes().add(this.getEntity()); - sessionEClass.getESuperTypes().add(this.getEnterpriseBean()); - entityEClass.getESuperTypes().add(this.getEnterpriseBean()); - enterpriseBeanEClass.getESuperTypes().add(theCommonPackage.getJNDIEnvRefsGroup()); - ejbJarEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - cmpAttributeEClass.getESuperTypes().add(theEcorePackage.getEAttribute()); - cmrFieldEClass.getESuperTypes().add(this.getCMPAttribute()); - messageDrivenEClass.getESuperTypes().add(this.getEnterpriseBean()); - queryMethodEClass.getESuperTypes().add(this.getMethodElement()); - - // Initialize classes and features; add operations and parameters - initEClass(containerManagedEntityEClass, ContainerManagedEntity.class, "ContainerManagedEntity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getContainerManagedEntity_Version(), ecorePackage.getEString(), "version", "2.x", 0, 1, ContainerManagedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getContainerManagedEntity_AbstractSchemaName(), ecorePackage.getEString(), "abstractSchemaName", null, 0, 1, ContainerManagedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContainerManagedEntity_PersistentAttributes(), this.getCMPAttribute(), null, "persistentAttributes", null, 0, -1, ContainerManagedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContainerManagedEntity_KeyAttributes(), this.getCMPAttribute(), null, "keyAttributes", null, 0, -1, ContainerManagedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContainerManagedEntity_Queries(), this.getQuery(), this.getQuery_Entity(), "queries", null, 0, -1, ContainerManagedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContainerManagedEntity_CMPAttribute(), this.getCMPAttribute(), null, "CMPAttribute", null, 0, -1, ContainerManagedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContainerManagedEntity_PrimKeyField(), this.getCMPAttribute(), null, "primKeyField", null, 0, 1, ContainerManagedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(methodPermissionEClass, MethodPermission.class, "MethodPermission", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMethodPermission_Description(), ecorePackage.getEString(), "description", null, 0, 1, MethodPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMethodPermission_Unchecked(), ecorePackage.getEBoolean(), "unchecked", null, 0, 1, MethodPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMethodPermission_AssemblyDescriptor(), this.getAssemblyDescriptor(), this.getAssemblyDescriptor_MethodPermissions(), "assemblyDescriptor", null, 1, 1, MethodPermission.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMethodPermission_Roles(), theCommonPackage.getSecurityRole(), null, "roles", null, 1, -1, MethodPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMethodPermission_MethodElements(), this.getMethodElement(), null, "methodElements", null, 1, -1, MethodPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMethodPermission_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, MethodPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(assemblyDescriptorEClass, AssemblyDescriptor.class, "AssemblyDescriptor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAssemblyDescriptor_MethodPermissions(), this.getMethodPermission(), this.getMethodPermission_AssemblyDescriptor(), "methodPermissions", null, 0, -1, AssemblyDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAssemblyDescriptor_MethodTransactions(), this.getMethodTransaction(), this.getMethodTransaction_AssemblyDescriptor(), "methodTransactions", null, 0, -1, AssemblyDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAssemblyDescriptor_EjbJar(), this.getEJBJar(), this.getEJBJar_AssemblyDescriptor(), "ejbJar", null, 0, 1, AssemblyDescriptor.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAssemblyDescriptor_SecurityRoles(), theCommonPackage.getSecurityRole(), null, "securityRoles", null, 0, -1, AssemblyDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAssemblyDescriptor_ExcludeList(), this.getExcludeList(), null, "excludeList", null, 0, 1, AssemblyDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAssemblyDescriptor_MessageDestinations(), theCommonPackage.getMessageDestination(), null, "messageDestinations", null, 0, -1, AssemblyDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(methodTransactionEClass, MethodTransaction.class, "MethodTransaction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMethodTransaction_TransactionAttribute(), this.getTransactionAttributeType(), "transactionAttribute", null, 0, 1, MethodTransaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMethodTransaction_Description(), ecorePackage.getEString(), "description", null, 0, 1, MethodTransaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMethodTransaction_AssemblyDescriptor(), this.getAssemblyDescriptor(), this.getAssemblyDescriptor_MethodTransactions(), "assemblyDescriptor", null, 1, 1, MethodTransaction.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMethodTransaction_MethodElements(), this.getMethodElement(), null, "methodElements", null, 1, -1, MethodTransaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMethodTransaction_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, MethodTransaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(sessionEClass, Session.class, "Session", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSession_TransactionType(), this.getTransactionType(), "transactionType", null, 0, 1, Session.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getSession_SessionType(), this.getSessionType(), "sessionType", null, 0, 1, Session.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSession_ServiceEndpoint(), theJavaRefPackage.getJavaClass(), null, "serviceEndpoint", null, 0, 1, Session.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(entityEClass, Entity.class, "Entity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEntity_Reentrant(), ecorePackage.getEBoolean(), "reentrant", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEntity_PrimaryKey(), theJavaRefPackage.getJavaClass(), null, "primaryKey", null, 1, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(enterpriseBeanEClass, EnterpriseBean.class, "EnterpriseBean", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEnterpriseBean_Name(), ecorePackage.getEString(), "name", null, 0, 1, EnterpriseBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEnterpriseBean_SecurityRoleRefs(), theCommonPackage.getSecurityRoleRef(), null, "securityRoleRefs", null, 0, -1, EnterpriseBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEnterpriseBean_EjbClass(), theJavaRefPackage.getJavaClass(), null, "ejbClass", null, 1, 1, EnterpriseBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEnterpriseBean_HomeInterface(), theJavaRefPackage.getJavaClass(), null, "homeInterface", null, 1, 1, EnterpriseBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEnterpriseBean_RemoteInterface(), theJavaRefPackage.getJavaClass(), null, "remoteInterface", null, 1, 1, EnterpriseBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEnterpriseBean_EjbJar(), this.getEJBJar(), this.getEJBJar_EnterpriseBeans(), "ejbJar", null, 1, 1, EnterpriseBean.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEnterpriseBean_SecurityIdentity(), theCommonPackage.getSecurityIdentity(), null, "securityIdentity", null, 0, 1, EnterpriseBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEnterpriseBean_LocalHomeInterface(), theJavaRefPackage.getJavaClass(), null, "localHomeInterface", null, 0, 1, EnterpriseBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEnterpriseBean_LocalInterface(), theJavaRefPackage.getJavaClass(), null, "localInterface", null, 0, 1, EnterpriseBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(ejbMethodCategoryEClass, EJBMethodCategory.class, "EJBMethodCategory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(ejbJarEClass, EJBJar.class, "EJBJar", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEJBJar_EjbClientJar(), ecorePackage.getEString(), "ejbClientJar", null, 0, 1, EJBJar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEJBJar_Version(), ecorePackage.getEString(), "version", null, 0, 1, EJBJar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEJBJar_AssemblyDescriptor(), this.getAssemblyDescriptor(), this.getAssemblyDescriptor_EjbJar(), "assemblyDescriptor", null, 0, 1, EJBJar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEJBJar_EnterpriseBeans(), this.getEnterpriseBean(), this.getEnterpriseBean_EjbJar(), "enterpriseBeans", null, 1, -1, EJBJar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEJBJar_RelationshipList(), this.getRelationships(), this.getRelationships_EjbJar(), "relationshipList", null, 0, 1, EJBJar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(methodElementEClass, MethodElement.class, "MethodElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMethodElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, MethodElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMethodElement_Parms(), ecorePackage.getEString(), "parms", null, 0, 1, MethodElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMethodElement_Type(), this.getMethodElementKind(), "type", null, 0, 1, MethodElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMethodElement_Description(), ecorePackage.getEString(), "description", null, 0, 1, MethodElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMethodElement_EnterpriseBean(), this.getEnterpriseBean(), null, "enterpriseBean", null, 1, 1, MethodElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMethodElement_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, MethodElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cmpAttributeEClass, CMPAttribute.class, "CMPAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getCMPAttribute_Description(), ecorePackage.getEString(), "description", null, 0, 1, CMPAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getCMPAttribute_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, CMPAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(relationshipsEClass, Relationships.class, "Relationships", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getRelationships_Description(), ecorePackage.getEString(), "description", null, 0, 1, Relationships.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRelationships_EjbJar(), this.getEJBJar(), this.getEJBJar_RelationshipList(), "ejbJar", null, 1, 1, Relationships.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRelationships_EjbRelations(), this.getEJBRelation(), this.getEJBRelation_RelationshipList(), "ejbRelations", null, 0, -1, Relationships.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRelationships_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, Relationships.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(queryEClass, Query.class, "Query", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getQuery_Description(), ecorePackage.getEString(), "description", null, 0, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getQuery_EjbQL(), ecorePackage.getEString(), "ejbQL", null, 0, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getQuery_ReturnTypeMapping(), this.getReturnTypeMapping(), "returnTypeMapping", null, 0, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getQuery_QueryMethod(), this.getQueryMethod(), this.getQueryMethod_Query(), "queryMethod", null, 1, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getQuery_Entity(), this.getContainerManagedEntity(), this.getContainerManagedEntity_Queries(), "entity", null, 0, 1, Query.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getQuery_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(ejbRelationEClass, EJBRelation.class, "EJBRelation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEJBRelation_Description(), ecorePackage.getEString(), "description", null, 0, 1, EJBRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEJBRelation_Name(), ecorePackage.getEString(), "name", null, 0, 1, EJBRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEJBRelation_RelationshipList(), this.getRelationships(), this.getRelationships_EjbRelations(), "relationshipList", null, 0, 1, EJBRelation.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEJBRelation_RelationshipRoles(), this.getEJBRelationshipRole(), this.getEJBRelationshipRole_Relationship(), "relationshipRoles", null, 2, 2, EJBRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEJBRelation_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, EJBRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(ejbRelationshipRoleEClass, EJBRelationshipRole.class, "EJBRelationshipRole", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEJBRelationshipRole_Description(), ecorePackage.getEString(), "description", null, 0, 1, EJBRelationshipRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEJBRelationshipRole_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, EJBRelationshipRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEJBRelationshipRole_Multiplicity(), this.getMultiplicityKind(), "multiplicity", null, 0, 1, EJBRelationshipRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEJBRelationshipRole_CascadeDelete(), ecorePackage.getEBoolean(), "cascadeDelete", null, 0, 1, EJBRelationshipRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEJBRelationshipRole_Relationship(), this.getEJBRelation(), this.getEJBRelation_RelationshipRoles(), "relationship", null, 1, 1, EJBRelationshipRole.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEJBRelationshipRole_Source(), this.getRoleSource(), this.getRoleSource_Role(), "source", null, 1, 1, EJBRelationshipRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEJBRelationshipRole_CmrField(), this.getCMRField(), this.getCMRField_Role(), "cmrField", null, 1, 1, EJBRelationshipRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEJBRelationshipRole_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, EJBRelationshipRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(roleSourceEClass, RoleSource.class, "RoleSource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getRoleSource_Description(), ecorePackage.getEString(), "description", null, 0, 1, RoleSource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRoleSource_Role(), this.getEJBRelationshipRole(), this.getEJBRelationshipRole_Source(), "role", null, 1, 1, RoleSource.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRoleSource_EntityBean(), this.getContainerManagedEntity(), null, "entityBean", null, 1, 1, RoleSource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRoleSource_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, RoleSource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cmrFieldEClass, CMRField.class, "CMRField", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCMRField_Role(), this.getEJBRelationshipRole(), this.getEJBRelationshipRole_CmrField(), "role", null, 0, 1, CMRField.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getCMRField_CollectionType(), theJavaRefPackage.getJavaClass(), null, "collectionType", null, 0, 1, CMRField.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(messageDrivenEClass, MessageDriven.class, "MessageDriven", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMessageDriven_TransactionType(), this.getTransactionType(), "transactionType", null, 0, 1, MessageDriven.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMessageDriven_MessageSelector(), ecorePackage.getEString(), "messageSelector", null, 0, 1, MessageDriven.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMessageDriven_AcknowledgeMode(), this.getAcknowledgeMode(), "acknowledgeMode", null, 0, 1, MessageDriven.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMessageDriven_Link(), ecorePackage.getEString(), "link", null, 0, 1, MessageDriven.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMessageDriven_Destination(), this.getMessageDrivenDestination(), this.getMessageDrivenDestination_Bean(), "destination", null, 0, 1, MessageDriven.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMessageDriven_ActivationConfig(), this.getActivationConfig(), null, "activationConfig", null, 0, 1, MessageDriven.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMessageDriven_MessageDestination(), theJavaRefPackage.getJavaClass(), null, "messageDestination", null, 0, 1, MessageDriven.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMessageDriven_MessagingType(), theJavaRefPackage.getJavaClass(), null, "messagingType", null, 0, 1, MessageDriven.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(messageDrivenDestinationEClass, MessageDrivenDestination.class, "MessageDrivenDestination", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMessageDrivenDestination_Type(), this.getDestinationType(), "type", null, 0, 1, MessageDrivenDestination.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMessageDrivenDestination_SubscriptionDurability(), this.getSubscriptionDurabilityKind(), "subscriptionDurability", null, 0, 1, MessageDrivenDestination.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMessageDrivenDestination_Bean(), this.getMessageDriven(), this.getMessageDriven_Destination(), "bean", null, 1, 1, MessageDrivenDestination.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(excludeListEClass, ExcludeList.class, "ExcludeList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getExcludeList_Description(), ecorePackage.getEString(), "description", null, 0, 1, ExcludeList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getExcludeList_MethodElements(), this.getMethodElement(), null, "methodElements", null, 1, -1, ExcludeList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getExcludeList_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, ExcludeList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(queryMethodEClass, QueryMethod.class, "QueryMethod", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getQueryMethod_Query(), this.getQuery(), this.getQuery_QueryMethod(), "query", null, 1, 1, QueryMethod.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(activationConfigPropertyEClass, ActivationConfigProperty.class, "ActivationConfigProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getActivationConfigProperty_Value(), ecorePackage.getEString(), "value", null, 0, 1, ActivationConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getActivationConfigProperty_Name(), ecorePackage.getEString(), "name", null, 0, 1, ActivationConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(activationConfigEClass, ActivationConfig.class, "ActivationConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getActivationConfig_ConfigProperties(), this.getActivationConfigProperty(), null, "configProperties", null, 1, -1, ActivationConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getActivationConfig_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, ActivationConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(transactionAttributeTypeEEnum, TransactionAttributeType.class, "TransactionAttributeType"); - addEEnumLiteral(transactionAttributeTypeEEnum, TransactionAttributeType.NOT_SUPPORTED_LITERAL); - addEEnumLiteral(transactionAttributeTypeEEnum, TransactionAttributeType.SUPPORTS_LITERAL); - addEEnumLiteral(transactionAttributeTypeEEnum, TransactionAttributeType.REQUIRED_LITERAL); - addEEnumLiteral(transactionAttributeTypeEEnum, TransactionAttributeType.REQUIRES_NEW_LITERAL); - addEEnumLiteral(transactionAttributeTypeEEnum, TransactionAttributeType.MANDATORY_LITERAL); - addEEnumLiteral(transactionAttributeTypeEEnum, TransactionAttributeType.NEVER_LITERAL); - - initEEnum(transactionTypeEEnum, TransactionType.class, "TransactionType"); - addEEnumLiteral(transactionTypeEEnum, TransactionType.BEAN_LITERAL); - addEEnumLiteral(transactionTypeEEnum, TransactionType.CONTAINER_LITERAL); - - initEEnum(sessionTypeEEnum, SessionType.class, "SessionType"); - addEEnumLiteral(sessionTypeEEnum, SessionType.STATEFUL_LITERAL); - addEEnumLiteral(sessionTypeEEnum, SessionType.STATELESS_LITERAL); - - initEEnum(methodElementKindEEnum, MethodElementKind.class, "MethodElementKind"); - addEEnumLiteral(methodElementKindEEnum, MethodElementKind.UNSPECIFIED_LITERAL); - addEEnumLiteral(methodElementKindEEnum, MethodElementKind.REMOTE_LITERAL); - addEEnumLiteral(methodElementKindEEnum, MethodElementKind.HOME_LITERAL); - addEEnumLiteral(methodElementKindEEnum, MethodElementKind.LOCAL_LITERAL); - addEEnumLiteral(methodElementKindEEnum, MethodElementKind.LOCAL_HOME_LITERAL); - addEEnumLiteral(methodElementKindEEnum, MethodElementKind.SERVICE_ENDPOINT_LITERAL); - - initEEnum(acknowledgeModeEEnum, AcknowledgeMode.class, "AcknowledgeMode"); - addEEnumLiteral(acknowledgeModeEEnum, AcknowledgeMode.AUTO_ACKNOWLEDGE_LITERAL); - addEEnumLiteral(acknowledgeModeEEnum, AcknowledgeMode.DUPS_OK_ACKNOWLEDGE_LITERAL); - - initEEnum(subscriptionDurabilityKindEEnum, SubscriptionDurabilityKind.class, "SubscriptionDurabilityKind"); - addEEnumLiteral(subscriptionDurabilityKindEEnum, SubscriptionDurabilityKind.DURABLE_LITERAL); - addEEnumLiteral(subscriptionDurabilityKindEEnum, SubscriptionDurabilityKind.NON_DURABLE_LITERAL); - - initEEnum(returnTypeMappingEEnum, ReturnTypeMapping.class, "ReturnTypeMapping"); - addEEnumLiteral(returnTypeMappingEEnum, ReturnTypeMapping.LOCAL_LITERAL); - addEEnumLiteral(returnTypeMappingEEnum, ReturnTypeMapping.REMOTE_LITERAL); - - initEEnum(destinationTypeEEnum, DestinationType.class, "DestinationType"); - addEEnumLiteral(destinationTypeEEnum, DestinationType.QUEUE_LITERAL); - addEEnumLiteral(destinationTypeEEnum, DestinationType.TOPIC_LITERAL); - - initEEnum(multiplicityKindEEnum, MultiplicityKind.class, "MultiplicityKind"); - addEEnumLiteral(multiplicityKindEEnum, MultiplicityKind.ONE_LITERAL); - addEEnumLiteral(multiplicityKindEEnum, MultiplicityKind.MANY_LITERAL); - - // Create resource - createResource(eNS_URI); - } - -} //EjbPackageImpl - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EnterpriseBeanImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EnterpriseBeanImpl.java deleted file mode 100644 index 95870b108..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EnterpriseBeanImpl.java +++ /dev/null @@ -1,1460 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.Enumerator; -import org.eclipse.emf.ecore.EAnnotation; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.common.EJBLocalRef; -import org.eclipse.jst.j2ee.common.EjbRef; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.jst.j2ee.ejb.EjbMethodElementComparator; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodElementKind; -import org.eclipse.jst.j2ee.ejb.MethodPermission; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; -import org.eclipse.wst.common.internal.emf.utilities.Revisit; - -/** - * @generated - * EnterpriseJavaBean is a class. It can have instances, someone could write an instance document containing Departments and Employees. It also has attributes, operations, and associations. These are actually derived//filtered from its implementation classes and interfaces. For mapping and browsing purposes, though, you would like the EJB to appear as a class. - * - * In this light, even Session Beans can have associations and properties implemented by their bean. For example, it would be meaningful to describe associations from a Session to the Entities which it uses to perform its work. - */ -public abstract class EnterpriseBeanImpl extends JNDIEnvRefsGroupImpl implements EnterpriseBean { - - protected final static Method[] EMPTY_METHOD_ARRAY = new Method[0]; - protected static final String METHOD_ELEMENT_NAME = "MethodElement"; //$NON-NLS-1$ - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList securityRoleRefs = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass ejbClass = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass homeInterface = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass remoteInterface = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected SecurityIdentity securityIdentity = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass localHomeInterface = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass localInterface = null; - protected EjbMethodElementComparator defaultMethodElementComparator; - public EnterpriseBeanImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getEnterpriseBean(); - } - - /** - * createClassRef - return a JavaURL reference to the named Java class - */ - public JavaClass createClassRef(String targetName) { - return getJavaRefFactory().createClassRef(targetName); - } - - protected List createMethodElements(List signatures, Enumerator aType) { - return createMethodElements(METHOD_ELEMENT_NAME, signatures, aType); - } - - protected List createMethodElements(String meTypeName, List signatures, Enumerator aType) { - int size = signatures.size(); - List methodElements = new ArrayList(size); - String signature; - MethodElement me; - for (int i = 0; i < size; i++) { - signature = (String) signatures.get(i); - me = (MethodElement) getEjbFactory().create((EClass)getEjbPackage().getEClassifier(meTypeName)); - me.initializeFromSignature(signature); - me.setEnterpriseBean(this); - me.setType((MethodElementKind)aType); - methodElements.add(me); - } - return methodElements; - } - - public List createMethodElements(List someMethods, JavaClass anInterface) { - return createMethodElements(METHOD_ELEMENT_NAME, someMethods, anInterface); - } - - public List createMethodElements(String meTypeName, List someMethods, JavaClass anInterface) { - if (anInterface == null) - return Collections.EMPTY_LIST; - List signatures = getMethodElementSignatures(someMethods); - Collections.sort(signatures); - Enumerator enumerator = getMethodElementKindLiteral(anInterface); - return createMethodElements(meTypeName, signatures, enumerator); - } - - protected Enumerator getMethodElementKindLiteral(JavaClass anInterface) { - Enumerator enumerator = MethodElementKind.UNSPECIFIED_LITERAL; - if (anInterface == getHomeInterface()) - enumerator = MethodElementKind.HOME_LITERAL; - else if (anInterface == getRemoteInterface()) - enumerator = MethodElementKind.REMOTE_LITERAL; - else if (anInterface == getLocalHomeInterface()) - enumerator = MethodElementKind.LOCAL_HOME_LITERAL; - else if (anInterface == getLocalInterface()) - enumerator = MethodElementKind.LOCAL_LITERAL; - return enumerator; - } - - protected List getMethodElementSignatures(List someMethods) { - int size = someMethods.size(); - List signatures = new ArrayList(size); - Method method; - for (int i = 0; i < size; i++) { - method = (Method) someMethods.get(i); - signatures.add(method.getMethodElementSignature()); - } - return signatures; - } - /** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * and are common to both the Home and Remote interfaces. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - * @deprecated use getAvailableUnspecifiedMethodElements(); - */ - public List getAvailableCommonMethodElements() { - return getAvailableUnspecifiedMethodElements(); - } - /** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * and are common to both the Home and Remote interfaces. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - */ - public List getAvailableUnspecifiedMethodElements() { - List commonSigs = getAvailableUnspecifiedMethodElementSignatures(); - return createMethodElements(commonSigs, MethodElementKind.UNSPECIFIED_LITERAL); - } - protected List gatherCommonSignatures(List sigCollections) { - if (sigCollections.isEmpty()) return sigCollections; - List first = (List)sigCollections.get(0); - if (sigCollections.size() == 1) return first; - List result = new ArrayList(first.size()); - sigCollections.remove(0); - String sig = null; - boolean contains = false; - for (int i = 0; i < first.size(); i++) { - contains = false; - sig = (String) first.get(i); - List list = null; - for (int j = 0; j < sigCollections.size(); j++) { - list = (List) sigCollections.get(j); - if (list.contains(sig)) - contains = true; - } - if (contains) - result.add(sig); - } - return result; - } - /** - * Return a List of MethodElements that are set for a particular EObject - * which can be a MethodTransaction or a MethodPermission. - */ - protected List getExistingMethodElements(EObject refObject) { - if (refObject != null) { - EjbPackage pack = getEjbPackage(); - if (refObject.eClass() == pack.getMethodTransaction()) - return ((MethodTransaction)refObject).getMethodElements(this); - if (refObject.eClass() == pack.getMethodPermission()) - return ((MethodPermission)refObject).getMethodElements(this); - } - return Collections.EMPTY_LIST; - } - /** - * This method will return a List of MethodElements signatures - * that represent all the possible MethodElements that can be created - * and are common to both the Home and Remote interfaces. - * @deprecated use getAvailableUnspecifiedMethodElementSignatures(); - */ - public List getAvailableCommonMethodElementSignatures() { - return getAvailableUnspecifiedMethodElementSignatures(); - } - /** - * This method will return a List of MethodElements signatures - * that represent all the possible MethodElements that can be created - * and are common to both the Home and Remote interfaces. - */ - public List getAvailableUnspecifiedMethodElementSignatures() { - List sigCollections = new ArrayList(); - if (getHomeInterface() != null) - sigCollections.add(getHomeInterface().getMethodElementSignatures()); - if (getRemoteInterface() != null) - sigCollections.add(getRemoteInterface().getMethodElementSignatures()); - if (getLocalHomeInterface() != null) - sigCollections.add(getLocalHomeInterface().getMethodElementSignatures()); - if (getLocalInterface() != null) - sigCollections.add(getLocalInterface().getMethodElementSignatures()); - return gatherCommonSignatures(sigCollections); - } - /** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * for the Home interface. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - */ - public List getAvailableHomeMethodElements() { - return getAvailableMethodElements(getHomeInterface(), MethodElementKind.HOME_LITERAL); - } - /** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * for the Local Home interface. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - */ - public List getAvailableLocalHomeMethodElements() { - return getAvailableMethodElements(getLocalHomeInterface(), MethodElementKind.LOCAL_HOME_LITERAL); - } - /** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * for the Local interface. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - */ - public List getAvailableLocalMethodElements() { - return getAvailableMethodElements(getLocalInterface(), MethodElementKind.LOCAL_LITERAL); - } - - public List getAvailableServiceEndpointMethodElements(){ - return getAvailableMethodElements(getServiceEndpoint(), MethodElementKind.SERVICE_ENDPOINT_LITERAL); - } - - protected List getAvailableMethodElements(JavaClass anInterface, Enumerator aType) { - if (anInterface == null) - return Collections.EMPTY_LIST; - List signatures = anInterface.getMethodElementSignatures(); - return createMethodElements(signatures, aType); - } - /** - * This method will return a List of newly created MethodElements - * that represent all the possible MethodElements that can be created - * for the Remote interface. These MethodElements are not contained and will - * not be serialized and should not be added to the model. Their intention is - * solely for comparing with actual MethodElements contained in the model. - */ - public List getAvailableRemoteMethodElements() { - return getAvailableMethodElements(getRemoteInterface(), MethodElementKind.REMOTE_LITERAL); - } - - /* - * See EnterpriseBean#getExistingOrAvailableMethodElements(EObject, Comparator); - */ - public List getExistingOrAvailableMethodElements(EObject refObject, Comparator comparator) { - List result = new ArrayList(); - result.addAll(getAvailableHomeMethodElements()); - result.addAll(getAvailableRemoteMethodElements()); - result.addAll(getAvailableLocalHomeMethodElements()); - result.addAll(getAvailableLocalMethodElements()); - result.addAll(getAvailableServiceEndpointMethodElements()); - result.addAll(getAvailableUnspecifiedMethodElements()); - - List list = getEjbClass().getImplementsInterfaces(); - Iterator it = list.iterator(); - while( it.hasNext()){ - JavaClass interfaceClass = (JavaClass)it.next(); - String interfaceName = interfaceClass.getQualifiedName(); - if( !interfaceName.equals("javax.ejb.MessageDrivenBean") && - !interfaceName.equals("javax.ejb.EntityBean")&& - !interfaceName.equals("javax.ejb.SessionBean")){ - result.addAll( getAvailableMethodElements(interfaceClass, MethodElementKind.UNSPECIFIED_LITERAL)); - } - } - - unionMethodElements(result, getExistingMethodElements(refObject)); - Collections.sort(result, comparator); - return result; - } - /* - * See EnterpriseBean#getExistingOrAvailableMethodElements(EObject); - */ - public List getExistingOrAvailableMethodElements(EObject refObject) { - return getExistingOrAvailableMethodElements(refObject, getDefaultMethodElementComparator()); - } - - protected EjbMethodElementComparator getDefaultMethodElementComparator() { - if (defaultMethodElementComparator == null) - defaultMethodElementComparator = new EjbMethodElementComparator(); - return defaultMethodElementComparator; - } - protected void unionMethodElements(List sourceMethodElements, List additionalMethodElements) { - MethodElement sourceME, additionalME; - int sourceSize, addSize; - sourceSize = sourceMethodElements.size(); - addSize = additionalMethodElements.size(); - List foundElements = new ArrayList(addSize); - boolean found = false; - for (int i = 0; i < addSize; i++){ - found = false; - additionalME = (MethodElement) additionalMethodElements.get(i); - sourceME = null; - for (int ii = 0; ii < sourceSize; ii++){ - sourceME = (MethodElement) sourceMethodElements.get(ii); - if (sourceME.isEquivalent(additionalME)) { - found = true; - break; - } - } - if (found) - foundElements.add(sourceME); - } - sourceMethodElements.removeAll(foundElements); - sourceMethodElements.addAll(additionalMethodElements); - } - public String getEjbClassName() { - getEjbClass(); - return (ejbClass == null) ? null : ejbClass.getQualifiedName(); - } - protected EjbPackage getEjbPackage() { - return EjbFactoryImpl.getPackage(); - } - protected EjbFactory getEjbFactory() { - return ((EjbPackage)EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI)).getEjbFactory(); - } - public EjbRef getEquivalentEjbRef(EjbRef anEjbRef) { - return getEquivalentEjbRef(anEjbRef, getEjbRefs()); - } - public EJBLocalRef getEquivalentEJBLocalRef(EJBLocalRef anEjbLocalRef) { - return (EJBLocalRef) getEquivalentEjbRef(anEjbLocalRef, getEjbLocalRefs()); - } - private EjbRef getEquivalentEjbRef(EjbRef anEjbRef, List someRefs) { - if (anEjbRef == null) - return null; - int size = someRefs.size(); - EjbRef ref; - for (int i = 0; i < size; i++) { - ref = (EjbRef) someRefs.get(i); - if (ref.isEquivalent(anEjbRef)) - return ref; - } - return null; - } - public String getHomeInterfaceName() { - getHomeInterface(); - return homeInterface == null ? null : homeInterface.getQualifiedName(); - } - /** - * See <code>getMethods<code> for comment - */ - public Method[] getHomeMethodsForDeployment() { - return (getHomeInterface() != null ? getMethods(getHomeInterface()) : EMPTY_METHOD_ARRAY); - } - private JavaRefFactory getJavaRefFactory() { - return ((JavaRefPackage)EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI)).getJavaRefFactory(); - } - public EjbRef getLinkedEJBReference(EnterpriseBean anEJB) { - return getLinkedEJBReference(anEJB, getEjbRefs()); - } - public EJBLocalRef getLinkedEJBLocalReference(EnterpriseBean anEJB) { - return (EJBLocalRef) getLinkedEJBReference(anEJB, getEjbLocalRefs()); - } - private EjbRef getLinkedEJBReference(EnterpriseBean anEJB, List someRefs) { - if (anEJB == null) - return null; - int size = someRefs.size(); - EjbRef ref; - for (int i = 0; i < size; i++) { - ref = (EjbRef) someRefs.get(i); - if (ref.isLinked(anEJB)) - return ref; - } - return null; - } - public String getLocalHomeInterfaceName() { - getLocalHomeInterface(); - return localHomeInterface == null ? null : localHomeInterface.getQualifiedName(); - } - /** - * See <code>getMethods<code> for comment - */ - public Method[] getLocalHomeMethodsForDeployment() { - return (getLocalHomeInterface() != null ? getMethods(getLocalHomeInterface()) : EMPTY_METHOD_ARRAY); - } - public String getLocalInterfaceName() { - getLocalInterface(); - return localInterface == null ? null : localInterface.getQualifiedName(); - } - /** - * Retrieve an ordered list of methods for the given JavaClass. - * The list should include all non-static, public methods that are - * not inherited from javax.ejb.EJBObject - * This uses the algorithm that web sphere currently uses, and could - * be subject to change - * Creation date: (8/21/00 1:41:03 PM) - * @param intf JavaClass - */ - public static Method[] getMethods(JavaClass intf) { - Method[] allMethods = intf.listMethodExtended(); - java.util.Vector resultVector = new java.util.Vector(allMethods.length); - java.util.Hashtable methodNameTable = new java.util.Hashtable(); - - //---------------------------------------------------------------- - // Iterate over the list returned by "listMethodExtended" and - // filter out methods belonging to the EJBObject interface - // and method synonyms. - // - // Method synonyms correspond to overrides. For all synonyms - // keep the method instance declared on the most specific class. - // How do you determine the most specific class? Don't know. - // For now, if the method is declared on the interface class - // it always overrides others. - //---------------------------------------------------------------- - - Method[] result = null; - - for (int i = 0; i < allMethods.length; i++) { - Method m = allMethods[i]; - - //--------------------------- - // Filter out static methods - //--------------------------- - - if (m.isStatic()) { - continue; - } - - String mKey = methodKey(m); - - String interfaceName = m.getContainingJavaClass().getJavaName(); - if (!interfaceName.equals("javax.ejb.EJBObject")) { //$NON-NLS-1$ - Method synonym = (Method) methodNameTable.get(mKey); - if (synonym == null) { - methodNameTable.put(mKey, m); - resultVector.addElement(m); - } else { - //--------------------------------------------- - // Method declared on most specific class wins - //--------------------------------------------- - JavaClass mClass = m.getContainingJavaClass(); - JavaClass sClass = synonym.getContainingJavaClass(); - if (sClass.implementsInterface(mClass)) { - resultVector.removeElement(synonym); - methodNameTable.put(mKey, m); - resultVector.addElement(m); - } - } - } - } - - result = new Method[resultVector.size()]; - resultVector.copyInto(result); - return sortMethods(result); - } - public String getRemoteInterfaceName() { - getRemoteInterface(); - return remoteInterface == null ? null : remoteInterface.getQualifiedName(); - } - /** - * See <code>getMethods<code> for comment - */ - public Method[] getRemoteMethodsForDeployment() { - return getMethods(getRemoteInterface()); - } - /** - * Return true if @aJavaClass as equal to the - * home, remote, bean class, or key class. - */ - public boolean hasJavaReference(JavaClass aJavaClass) { - if (aJavaClass != null) { - return aJavaClass.equals(getEjbClass())|| - aJavaClass.equals(getRemoteInterface()) || - aJavaClass.equals(getHomeInterface()) || - aJavaClass.equals(getLocalInterface()) || - aJavaClass.equals(getLocalHomeInterface()); - } - return false; - } - /** - * Return true if this ejb has BeanManagedPersistance. - */ - public boolean isBeanManagedEntity() { - return isEntity() && !isContainerManagedEntity(); - } - /** - * isContainerManagedEntity method comment. - */ - public boolean isContainerManagedEntity() { - return false; - } - //Return false by default - public boolean isEntity() { - return false; - } - //Return false by default - public boolean isMessageDriven() { - return false; - } - //Return false by default - public boolean isSession() { - return false; - } - /** - * @deprecated - Use getEjbJar().getVersionID() - * isVersion1_X method comment. - */ - public boolean isVersion1_X() { - if (getEjbJar() != null) - return getEjbJar().getVersionID() <= J2EEVersionConstants.EJB_1_1_ID; - Revisit.revisit(); //jsholl this should throw an exception. if there is not JAR then the version is undefined - return false; - } - /** - * @deprecated - Use getEjbJar().getVersionID() - * isVersion2_X method comment. - */ - public boolean isVersion2_X() { - if (getEjbJar() != null) { - return getEjbJar().getVersionID() >= J2EEVersionConstants.EJB_1_1_ID; - } - Revisit.revisit(); //jsholl this should throw an exception. if there is not JAR then the version is undefined - return false; - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.ejb.EnterpriseBean#getVersionID() - */ - public int getVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) throw new IllegalStateException(); - return res.getModuleVersionID(); - } - - - /* - * @see EnterpriseBean#hasLocalClient() - */ - public boolean hasLocalClient() { - return getLocalInterface() != null && getLocalHomeInterface() != null; - } - - /* - * @see EnterpriseBean#hasRemoteClient() - */ - public boolean hasRemoteClient() { - return getRemoteInterface() != null && getHomeInterface() != null; - } - - /** - * Get method name string of form: - * methodName(class name of arg1,class name of arg2,...) - * Creation date: (8/24/00 1:21:10 PM) - * @return String - * @param m Method - */ - private static String methodKey(Method m) { - StringBuffer result = new StringBuffer(m.getName()); - - result.append("("); //$NON-NLS-1$ - - java.util.List args = m.getParameters(); - JavaParameter arg; - for (int i = 0; i < args.size(); i++) { - arg = (JavaParameter) args.get(i); - result.append(((JavaHelpers) arg.getEType()).getJavaName()); - result.append(","); //$NON-NLS-1$ - } - result.append(")"); //$NON-NLS-1$ - return result.toString(); - } - public Object primRefValue(EObject feature) { - switch (eDerivedStructuralFeatureID(((EStructuralFeature)feature).getFeatureID(), ((EStructuralFeature)feature).getContainerClass())) { - case EjbPackage.ENTERPRISE_BEAN__DESCRIPTION : - return getDescription(); - case EjbPackage.ENTERPRISE_BEAN__DISPLAY_NAME : - return getDisplayName(); - case EjbPackage.ENTERPRISE_BEAN__SMALL_ICON : - return getSmallIcon(); - case EjbPackage.ENTERPRISE_BEAN__LARGE_ICON : - return getLargeIcon(); - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_REFS : - return getResourceRefs(); - case EjbPackage.ENTERPRISE_BEAN__EJB_CLASS : - return getEjbClass(); - case EjbPackage.ENTERPRISE_BEAN__HOME_INTERFACE : - return getHomeInterface(); - case EjbPackage.ENTERPRISE_BEAN__REMOTE_INTERFACE : - return getRemoteInterface(); - case EjbPackage.ENTERPRISE_BEAN__ENVIRONMENT_PROPERTIES : - return getEnvironmentProperties(); - case EjbPackage.ENTERPRISE_BEAN__SECURITY_ROLE_REFS : - return getSecurityRoleRefs(); - case EjbPackage.ENTERPRISE_BEAN__EJB_REFS : - return getEjbRefs(); - case EjbPackage.ENTERPRISE_BEAN__EJB_LOCAL_REFS : - return getEjbLocalRefs(); - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_ENV_REFS : - return getResourceEnvRefs(); - case EjbPackage.ENTERPRISE_BEAN__SECURITY_IDENTITY : - return getSecurityIdentity(); - case EjbPackage.ENTERPRISE_BEAN__NAME : - return getName(); - } - return null; - } - /** - * @see org.eclipse.jst.j2ee.internal.ejb.EnterpriseBean - */ - public void reSyncSecurityRoleRef(java.lang.String existingRoleName, java.lang.String newRoleName) { - List roleRefs = getSecurityRoleRefs(); - for (int i = 0; i < roleRefs.size(); i++) { - SecurityRoleRef roleRef = (SecurityRoleRef) roleRefs.get(i); - if (roleRef.getLink() != null && roleRef.getLink().equals(existingRoleName)) - roleRef.setLink(newRoleName); - } - } - public void setEjbClassName(String ejbClassName) { - eSet(EjbPackage.eINSTANCE.getEnterpriseBean_EjbClass(), createClassRef(ejbClassName)); - } - public void setHomeInterfaceName(String homeInterfaceName) { - eSet(EjbPackage.eINSTANCE.getEnterpriseBean_HomeInterface(), createClassRef(homeInterfaceName)); - } - public void setLocalHomeInterfaceName(String localHomeInterfaceName) { - eSet(EjbPackage.eINSTANCE.getEnterpriseBean_LocalHomeInterface(), createClassRef(localHomeInterfaceName)); - } - public void setLocalInterfaceName(String localInterfaceName) { - eSet(EjbPackage.eINSTANCE.getEnterpriseBean_LocalInterface(), createClassRef(localInterfaceName)); - } - public void setRemoteInterfaceName(String remoteInterfaceName) { - eSet(EjbPackage.eINSTANCE.getEnterpriseBean_RemoteInterface(), createClassRef(remoteInterfaceName)); - } - /** - * Insert the method's description here. - * Creation date: (8/24/00 1:32:13 PM) - * @return Method[] - * @param methods Method[] - */ - private static Method[] sortMethods(Method[] methods) { - Method result[] = new Method[methods.length]; - - /** - * Insert each element of given list of methods into result - * arary in sorted order - */ - - for (int i = 0; i < methods.length; i++) { - Method currMethod = methods[i]; - String currMethodName = currMethod.getSignature(); - int insertIndex = 0; - while (insertIndex < i) { - if (currMethodName.compareTo(result[insertIndex].getSignature()) <= 0) { - break; - } - insertIndex++; - } - - for (int j = insertIndex; j <= i; j++) { - Method tmpMethod = result[j]; - result[j] = currMethod; - currMethod = tmpMethod; - } - } - return result; - } - public String toString() { - return getClass().getName() + "(" + getName() + ")"; //$NON-NLS-1$ //$NON-NLS-2$ - } - /** - * - */ - public void setDisplayName(String newDisplayName) { - super.setDisplayName(newDisplayName); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ENTERPRISE_BEAN__NAME, oldName, name)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getSecurityRoleRefs() { - if (securityRoleRefs == null) { - securityRoleRefs = new EObjectContainmentEList(SecurityRoleRef.class, this, EjbPackage.ENTERPRISE_BEAN__SECURITY_ROLE_REFS); - } - return securityRoleRefs; - } - - /** - * Handwritten version of getEjbClass(): - */ - - - public JavaClass getEjbClass() { - if (ejbClass != null && ejbClass.eIsProxy()) { - JavaClass oldEjbClass = ejbClass; - JavaClass resolved = (JavaClass)EcoreUtil.resolve(ejbClass, this); - resolved(this.ejbClass, resolved); - this.ejbClass = resolved; - if (ejbClass != oldEjbClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.ENTERPRISE_BEAN__EJB_CLASS, oldEjbClass, ejbClass)); - } - } - return ejbClass; - } - - - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setEjbClass(JavaClass newEjbClass) { - JavaClass oldEjbClass = ejbClass; - ejbClass = newEjbClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ENTERPRISE_BEAN__EJB_CLASS, oldEjbClass, ejbClass)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public JavaClass getHomeInterface() { - if (homeInterface != null && homeInterface.eIsProxy()) { - JavaClass oldHomeInterface = homeInterface; - homeInterface = (JavaClass)eResolveProxy((InternalEObject)homeInterface); - if (homeInterface != oldHomeInterface) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.ENTERPRISE_BEAN__HOME_INTERFACE, oldHomeInterface, homeInterface)); - } - } - return homeInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetHomeInterface() { - return homeInterface; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setHomeInterface(JavaClass newHomeInterface) { - JavaClass oldHomeInterface = homeInterface; - homeInterface = newHomeInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ENTERPRISE_BEAN__HOME_INTERFACE, oldHomeInterface, homeInterface)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public JavaClass getRemoteInterface() { - if (remoteInterface != null && remoteInterface.eIsProxy()) { - JavaClass oldRemoteInterface = remoteInterface; - remoteInterface = (JavaClass)eResolveProxy((InternalEObject)remoteInterface); - if (remoteInterface != oldRemoteInterface) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.ENTERPRISE_BEAN__REMOTE_INTERFACE, oldRemoteInterface, remoteInterface)); - } - } - return remoteInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetRemoteInterface() { - return remoteInterface; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRemoteInterface(JavaClass newRemoteInterface) { - JavaClass oldRemoteInterface = remoteInterface; - remoteInterface = newRemoteInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ENTERPRISE_BEAN__REMOTE_INTERFACE, oldRemoteInterface, remoteInterface)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EJBJar getEjbJar() { - if (eContainerFeatureID != EjbPackage.ENTERPRISE_BEAN__EJB_JAR) return null; - return (EJBJar)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setEjbJar(EJBJar newEjbJar) { - if (newEjbJar != eContainer || (eContainerFeatureID != EjbPackage.ENTERPRISE_BEAN__EJB_JAR && newEjbJar != null)) { - if (EcoreUtil.isAncestor(this, newEjbJar)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newEjbJar != null) - msgs = ((InternalEObject)newEjbJar).eInverseAdd(this, EjbPackage.EJB_JAR__ENTERPRISE_BEANS, EJBJar.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newEjbJar, EjbPackage.ENTERPRISE_BEAN__EJB_JAR, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ENTERPRISE_BEAN__EJB_JAR, newEjbJar, newEjbJar)); - } - - /** - * @generated This field/method will be replaced during code generation - * The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It - * contains an optional description and a specification of the security identity to be used. - */ - public SecurityIdentity getSecurityIdentity() { - return securityIdentity; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetSecurityIdentity(SecurityIdentity newSecurityIdentity, NotificationChain msgs) { - SecurityIdentity oldSecurityIdentity = securityIdentity; - securityIdentity = newSecurityIdentity; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EjbPackage.ENTERPRISE_BEAN__SECURITY_IDENTITY, oldSecurityIdentity, newSecurityIdentity); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setSecurityIdentity(SecurityIdentity newSecurityIdentity) { - if (newSecurityIdentity != securityIdentity) { - NotificationChain msgs = null; - if (securityIdentity != null) - msgs = ((InternalEObject)securityIdentity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EjbPackage.ENTERPRISE_BEAN__SECURITY_IDENTITY, null, msgs); - if (newSecurityIdentity != null) - msgs = ((InternalEObject)newSecurityIdentity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EjbPackage.ENTERPRISE_BEAN__SECURITY_IDENTITY, null, msgs); - msgs = basicSetSecurityIdentity(newSecurityIdentity, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ENTERPRISE_BEAN__SECURITY_IDENTITY, newSecurityIdentity, newSecurityIdentity)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public JavaClass getLocalHomeInterface() { - if (localHomeInterface != null && localHomeInterface.eIsProxy()) { - JavaClass oldLocalHomeInterface = localHomeInterface; - localHomeInterface = (JavaClass)eResolveProxy((InternalEObject)localHomeInterface); - if (localHomeInterface != oldLocalHomeInterface) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE, oldLocalHomeInterface, localHomeInterface)); - } - } - return localHomeInterface; - } - - public JavaClass getServiceEndpoint() { - return null; - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetLocalHomeInterface() { - return localHomeInterface; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLocalHomeInterface(JavaClass newLocalHomeInterface) { - JavaClass oldLocalHomeInterface = localHomeInterface; - localHomeInterface = newLocalHomeInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE, oldLocalHomeInterface, localHomeInterface)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public JavaClass getLocalInterface() { - if (localInterface != null && localInterface.eIsProxy()) { - JavaClass oldLocalInterface = localInterface; - localInterface = (JavaClass)eResolveProxy((InternalEObject)localInterface); - if (localInterface != oldLocalInterface) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.ENTERPRISE_BEAN__LOCAL_INTERFACE, oldLocalInterface, localInterface)); - } - } - return localInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetLocalInterface() { - return localInterface; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLocalInterface(JavaClass newLocalInterface) { - JavaClass oldLocalInterface = localInterface; - localInterface = newLocalInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ENTERPRISE_BEAN__LOCAL_INTERFACE, oldLocalInterface, localInterface)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.ENTERPRISE_BEAN__EJB_JAR: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.ENTERPRISE_BEAN__EJB_JAR, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.ENTERPRISE_BEAN__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__ENVIRONMENT_PROPERTIES: - return ((InternalEList)getEnvironmentProperties()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_REFS: - return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__EJB_REFS: - return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_ENV_REFS: - return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__EJB_LOCAL_REFS: - return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__MESSAGE_DESTINATION_REFS: - return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__SECURITY_ROLE_REFS: - return ((InternalEList)getSecurityRoleRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTERPRISE_BEAN__EJB_JAR: - return eBasicSetContainer(null, EjbPackage.ENTERPRISE_BEAN__EJB_JAR, msgs); - case EjbPackage.ENTERPRISE_BEAN__SECURITY_IDENTITY: - return basicSetSecurityIdentity(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.ENTERPRISE_BEAN__EJB_JAR: - return eContainer.eInverseRemove(this, EjbPackage.EJB_JAR__ENTERPRISE_BEANS, EJBJar.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ENTERPRISE_BEAN__ICONS: - return getIcons(); - case EjbPackage.ENTERPRISE_BEAN__DISPLAY_NAMES: - return getDisplayNames(); - case EjbPackage.ENTERPRISE_BEAN__DESCRIPTIONS: - return getDescriptions(); - case EjbPackage.ENTERPRISE_BEAN__SMALL_ICON: - return getSmallIcon(); - case EjbPackage.ENTERPRISE_BEAN__LARGE_ICON: - return getLargeIcon(); - case EjbPackage.ENTERPRISE_BEAN__DESCRIPTION: - return getDescription(); - case EjbPackage.ENTERPRISE_BEAN__DISPLAY_NAME: - return getDisplayName(); - case EjbPackage.ENTERPRISE_BEAN__ENVIRONMENT_PROPERTIES: - return getEnvironmentProperties(); - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_REFS: - return getResourceRefs(); - case EjbPackage.ENTERPRISE_BEAN__EJB_REFS: - return getEjbRefs(); - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_ENV_REFS: - return getResourceEnvRefs(); - case EjbPackage.ENTERPRISE_BEAN__EJB_LOCAL_REFS: - return getEjbLocalRefs(); - case EjbPackage.ENTERPRISE_BEAN__MESSAGE_DESTINATION_REFS: - return getMessageDestinationRefs(); - case EjbPackage.ENTERPRISE_BEAN__SERVICE_REFS: - return getServiceRefs(); - case EjbPackage.ENTERPRISE_BEAN__NAME: - return getName(); - case EjbPackage.ENTERPRISE_BEAN__SECURITY_ROLE_REFS: - return getSecurityRoleRefs(); - case EjbPackage.ENTERPRISE_BEAN__EJB_CLASS: - if (resolve) return getEjbClass(); - return basicGetEjbClass(); - case EjbPackage.ENTERPRISE_BEAN__HOME_INTERFACE: - if (resolve) return getHomeInterface(); - return basicGetHomeInterface(); - case EjbPackage.ENTERPRISE_BEAN__REMOTE_INTERFACE: - if (resolve) return getRemoteInterface(); - return basicGetRemoteInterface(); - case EjbPackage.ENTERPRISE_BEAN__EJB_JAR: - return getEjbJar(); - case EjbPackage.ENTERPRISE_BEAN__SECURITY_IDENTITY: - return getSecurityIdentity(); - case EjbPackage.ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE: - if (resolve) return getLocalHomeInterface(); - return basicGetLocalHomeInterface(); - case EjbPackage.ENTERPRISE_BEAN__LOCAL_INTERFACE: - if (resolve) return getLocalInterface(); - return basicGetLocalInterface(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ENTERPRISE_BEAN__ICONS: - return icons != null && !icons.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case EjbPackage.ENTERPRISE_BEAN__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case EjbPackage.ENTERPRISE_BEAN__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.ENTERPRISE_BEAN__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case EjbPackage.ENTERPRISE_BEAN__ENVIRONMENT_PROPERTIES: - return environmentProperties != null && !environmentProperties.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_REFS: - return resourceRefs != null && !resourceRefs.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__EJB_REFS: - return ejbRefs != null && !ejbRefs.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_ENV_REFS: - return resourceEnvRefs != null && !resourceEnvRefs.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__EJB_LOCAL_REFS: - return ejbLocalRefs != null && !ejbLocalRefs.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__MESSAGE_DESTINATION_REFS: - return messageDestinationRefs != null && !messageDestinationRefs.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__SERVICE_REFS: - return serviceRefs != null && !serviceRefs.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EjbPackage.ENTERPRISE_BEAN__SECURITY_ROLE_REFS: - return securityRoleRefs != null && !securityRoleRefs.isEmpty(); - case EjbPackage.ENTERPRISE_BEAN__EJB_CLASS: - return ejbClass != null; - case EjbPackage.ENTERPRISE_BEAN__HOME_INTERFACE: - return homeInterface != null; - case EjbPackage.ENTERPRISE_BEAN__REMOTE_INTERFACE: - return remoteInterface != null; - case EjbPackage.ENTERPRISE_BEAN__EJB_JAR: - return getEjbJar() != null; - case EjbPackage.ENTERPRISE_BEAN__SECURITY_IDENTITY: - return securityIdentity != null; - case EjbPackage.ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE: - return localHomeInterface != null; - case EjbPackage.ENTERPRISE_BEAN__LOCAL_INTERFACE: - return localInterface != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ENTERPRISE_BEAN__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - getEnvironmentProperties().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_REFS: - getResourceRefs().clear(); - getResourceRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__EJB_REFS: - getEjbRefs().clear(); - getEjbRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - getResourceEnvRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - getEjbLocalRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - getMessageDestinationRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__NAME: - setName((String)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - getSecurityRoleRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__EJB_CLASS: - setEjbClass((JavaClass)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__HOME_INTERFACE: - setHomeInterface((JavaClass)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__REMOTE_INTERFACE: - setRemoteInterface((JavaClass)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__EJB_JAR: - setEjbJar((EJBJar)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__SECURITY_IDENTITY: - setSecurityIdentity((SecurityIdentity)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE: - setLocalHomeInterface((JavaClass)newValue); - return; - case EjbPackage.ENTERPRISE_BEAN__LOCAL_INTERFACE: - setLocalInterface((JavaClass)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ENTERPRISE_BEAN__ICONS: - getIcons().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__DESCRIPTIONS: - getDescriptions().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case EjbPackage.ENTERPRISE_BEAN__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case EjbPackage.ENTERPRISE_BEAN__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.ENTERPRISE_BEAN__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case EjbPackage.ENTERPRISE_BEAN__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_REFS: - getResourceRefs().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__EJB_REFS: - getEjbRefs().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__SERVICE_REFS: - getServiceRefs().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__NAME: - setName(NAME_EDEFAULT); - return; - case EjbPackage.ENTERPRISE_BEAN__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - return; - case EjbPackage.ENTERPRISE_BEAN__EJB_CLASS: - setEjbClass((JavaClass)null); - return; - case EjbPackage.ENTERPRISE_BEAN__HOME_INTERFACE: - setHomeInterface((JavaClass)null); - return; - case EjbPackage.ENTERPRISE_BEAN__REMOTE_INTERFACE: - setRemoteInterface((JavaClass)null); - return; - case EjbPackage.ENTERPRISE_BEAN__EJB_JAR: - setEjbJar((EJBJar)null); - return; - case EjbPackage.ENTERPRISE_BEAN__SECURITY_IDENTITY: - setSecurityIdentity((SecurityIdentity)null); - return; - case EjbPackage.ENTERPRISE_BEAN__LOCAL_HOME_INTERFACE: - setLocalHomeInterface((JavaClass)null); - return; - case EjbPackage.ENTERPRISE_BEAN__LOCAL_INTERFACE: - setLocalInterface((JavaClass)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toStringGen() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - - /** - * Preserve adapters when object is resolved. - */ - protected void resolved(EObject originalObject, EObject resolvedObject) { - if (originalObject != null && resolvedObject != null && originalObject != resolvedObject) { - Collection col = originalObject.eAdapters(); - if (!col.isEmpty()) { - Iterator it = col.iterator(); - Adapter a; - while (it.hasNext()) { - a = (Adapter) it.next(); - if (a == null) continue; - resolvedObject.eAdapters().add(a); - } - } - } - } - /** - * @generated This field/method will be replaced during code generation - */ - public JavaClass getEjbClassGen() { - if (ejbClass != null && ejbClass.eIsProxy()) { - JavaClass oldEjbClass = ejbClass; - ejbClass = (JavaClass)eResolveProxy((InternalEObject)ejbClass); - if (ejbClass != oldEjbClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.ENTERPRISE_BEAN__EJB_CLASS, oldEjbClass, ejbClass)); - } - } - return ejbClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetEjbClass() { - return ejbClass; - } - - /* (non-Javadoc) - * @see org.eclipse.emf.ecore.EModelElement#getEAnnotation(java.lang.String) - */ - public EAnnotation getEAnnotation(String source) { - // TODO Auto-generated method stub - return null; - } - - /* (non-Javadoc) - * @see org.eclipse.emf.ecore.EModelElement#getEAnnotations() - */ - public EList getEAnnotations() { - // TODO Auto-generated method stub - return null; - } - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EntityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EntityImpl.java deleted file mode 100644 index 21b6cb3c8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/EntityImpl.java +++ /dev/null @@ -1,642 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; - -/** - * The entity element declares an entity bean. The declaration consists of: an optional description; optional display name; optional small icon file name; optional large icon file name; a unique name assigned to the enterprise bean in the deployment descriptor; the names of the entity bean's home and remote interfaces, if any; the names of the entity bean's local home and local interface, if any; the entity bean's implementation class; the entity bean's persistence management type; the entity bean's primary key class name; an indication of the entity bean's reentrancy; an optional specification of the entity bean's cmp-version; an optional specification of the entity bean's abstract schema name; an optional list of container-managed fields; an optional specification of the primary key field; an optional declaration of the bean's environment entries; an optional declaration of the bean's EJB references; an optional declaration of the bean's local EJB references; an optional declaration of the security role references; an optional declaration of the security identity to be used for the execution of the bean's methods; an optional declaration of the bean's resource manager connection factory references; an optional declaration of the bean's resource environment references; an optional set of query declarations for finder and select methods for an entity bean with cmp-version 2.x. - * The optional abstract-schema-name element must be specified for an entity bean with container managed persistence and cmp-version 2.x. The optional primkey-field may be present in the descriptor if the entity's persistence-type is Container. The optional cmp-version element may be present in the descriptor if the entity's persistence-type is Container. If the persistence-type is Container and the cmp-version element is not specified, its value defaults to 2.x. - * The optional home and remote elements must be specified if the entity bean cmp-version is 1.x. - * The optional local-home and local elements must be specified if the entity bean has a local home and local interface. - * The optional query elements must be present if the persistence-type is Container and the cmp-version is 2.x and query methods other than findByPrimaryKey have been defined for the entity bean. - * The other elements that are optional are "optional" in the sense that they are omitted if the lists represented by them are empty. At least one cmp-field element must be present in the descriptor if - * the entity's persistence-type is Container and the cmp-version is 1.x, and none must not be present if the entity's persistence-type is Bean. - */ -public class EntityImpl extends EnterpriseBeanImpl implements Entity, EnterpriseBean { - - /** - * The default value of the '{@link #isReentrant() <em>Reentrant</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isReentrant() - * @generated - * @ordered - */ - protected static final boolean REENTRANT_EDEFAULT = false; - - /** - * The cached value of the '{@link #isReentrant() <em>Reentrant</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isReentrant() - * @generated - * @ordered - */ - protected boolean reentrant = REENTRANT_EDEFAULT; - - /** - * This is true if the Reentrant attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean reentrantESet = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass primaryKey = null; - public EntityImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getEntity(); - } - -public String getPrimaryKeyName() { - getPrimaryKey(); - return primaryKey == null ? null : primaryKey.getQualifiedName(); -} -/** - * Return true if @aJavaClass as equal to the - * home, remote, bean class, or key class. - */ -public boolean hasJavaReference(JavaClass aJavaClass) { - boolean result = super.hasJavaReference(aJavaClass); - if (!result && aJavaClass != null) - result = aJavaClass.equals(getPrimaryKey()); - return result; -} -//Return false by default -public boolean isContainerManagedEntity() { - return false; -} -public boolean isEntity() { - return true; -} -protected boolean primGetIsReentrant() { - return isReentrant(); -} -protected JavaClass primGetPrimaryKey() { - return getPrimaryKey(); -} - -public java.lang.Object primRefValue(EObject feature) { - switch (eDerivedStructuralFeatureID(((EStructuralFeature)feature).getFeatureID(), ((EStructuralFeature)feature).getContainerClass())) { - case EjbPackage.ENTITY__REENTRANT: return new Boolean(isReentrant()); - case EjbPackage.ENTITY__PRIMARY_KEY: return getPrimaryKey(); - } - return super.primRefValue(feature); -} -public void setPrimaryKeyName(String primaryKeyName) { - eSet(EjbPackage.eINSTANCE.getEntity_PrimaryKey(), createClassRef(primaryKeyName)); -} - /** - * @generated This field/method will be replaced during code generation - * The reentrant element specifies whether an entity bean is reentrant or not. - - */ - public boolean isReentrant() { - return reentrant; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setReentrant(boolean newReentrant) { - boolean oldReentrant = reentrant; - reentrant = newReentrant; - boolean oldReentrantESet = reentrantESet; - reentrantESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ENTITY__REENTRANT, oldReentrant, reentrant, !oldReentrantESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetReentrant() { - boolean oldReentrant = reentrant; - boolean oldReentrantESet = reentrantESet; - reentrant = REENTRANT_EDEFAULT; - reentrantESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.ENTITY__REENTRANT, oldReentrant, REENTRANT_EDEFAULT, oldReentrantESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetReentrant() { - return reentrantESet; - } - - /** - * Handwritten version of getPrimaryKey(): - */ - - - public JavaClass getPrimaryKey() { - if (primaryKey != null && primaryKey.eIsProxy()) { - JavaClass oldPrimaryKey = primaryKey; - JavaClass resolved = (JavaClass)EcoreUtil.resolve(primaryKey, this); - resolved(this.primaryKey, resolved); - this.primaryKey = resolved; - if (primaryKey != oldPrimaryKey) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.ENTERPRISE_BEAN__EJB_CLASS, oldPrimaryKey, primaryKey)); - } - } - return primaryKey; - } - - - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setPrimaryKey(JavaClass newPrimaryKey) { - JavaClass oldPrimaryKey = primaryKey; - primaryKey = newPrimaryKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ENTITY__PRIMARY_KEY, oldPrimaryKey, primaryKey)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.ENTITY__EJB_JAR: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.ENTITY__EJB_JAR, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.ENTITY__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__ENVIRONMENT_PROPERTIES: - return ((InternalEList)getEnvironmentProperties()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__RESOURCE_REFS: - return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__EJB_REFS: - return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__RESOURCE_ENV_REFS: - return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__EJB_LOCAL_REFS: - return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__MESSAGE_DESTINATION_REFS: - return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__SECURITY_ROLE_REFS: - return ((InternalEList)getSecurityRoleRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.ENTITY__EJB_JAR: - return eBasicSetContainer(null, EjbPackage.ENTITY__EJB_JAR, msgs); - case EjbPackage.ENTITY__SECURITY_IDENTITY: - return basicSetSecurityIdentity(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.ENTITY__EJB_JAR: - return eContainer.eInverseRemove(this, EjbPackage.EJB_JAR__ENTERPRISE_BEANS, EJBJar.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ENTITY__ICONS: - return getIcons(); - case EjbPackage.ENTITY__DISPLAY_NAMES: - return getDisplayNames(); - case EjbPackage.ENTITY__DESCRIPTIONS: - return getDescriptions(); - case EjbPackage.ENTITY__SMALL_ICON: - return getSmallIcon(); - case EjbPackage.ENTITY__LARGE_ICON: - return getLargeIcon(); - case EjbPackage.ENTITY__DESCRIPTION: - return getDescription(); - case EjbPackage.ENTITY__DISPLAY_NAME: - return getDisplayName(); - case EjbPackage.ENTITY__ENVIRONMENT_PROPERTIES: - return getEnvironmentProperties(); - case EjbPackage.ENTITY__RESOURCE_REFS: - return getResourceRefs(); - case EjbPackage.ENTITY__EJB_REFS: - return getEjbRefs(); - case EjbPackage.ENTITY__RESOURCE_ENV_REFS: - return getResourceEnvRefs(); - case EjbPackage.ENTITY__EJB_LOCAL_REFS: - return getEjbLocalRefs(); - case EjbPackage.ENTITY__MESSAGE_DESTINATION_REFS: - return getMessageDestinationRefs(); - case EjbPackage.ENTITY__SERVICE_REFS: - return getServiceRefs(); - case EjbPackage.ENTITY__NAME: - return getName(); - case EjbPackage.ENTITY__SECURITY_ROLE_REFS: - return getSecurityRoleRefs(); - case EjbPackage.ENTITY__EJB_CLASS: - if (resolve) return getEjbClass(); - return basicGetEjbClass(); - case EjbPackage.ENTITY__HOME_INTERFACE: - if (resolve) return getHomeInterface(); - return basicGetHomeInterface(); - case EjbPackage.ENTITY__REMOTE_INTERFACE: - if (resolve) return getRemoteInterface(); - return basicGetRemoteInterface(); - case EjbPackage.ENTITY__EJB_JAR: - return getEjbJar(); - case EjbPackage.ENTITY__SECURITY_IDENTITY: - return getSecurityIdentity(); - case EjbPackage.ENTITY__LOCAL_HOME_INTERFACE: - if (resolve) return getLocalHomeInterface(); - return basicGetLocalHomeInterface(); - case EjbPackage.ENTITY__LOCAL_INTERFACE: - if (resolve) return getLocalInterface(); - return basicGetLocalInterface(); - case EjbPackage.ENTITY__REENTRANT: - return isReentrant() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.ENTITY__PRIMARY_KEY: - if (resolve) return getPrimaryKey(); - return basicGetPrimaryKey(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ENTITY__ICONS: - return icons != null && !icons.isEmpty(); - case EjbPackage.ENTITY__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case EjbPackage.ENTITY__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case EjbPackage.ENTITY__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case EjbPackage.ENTITY__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case EjbPackage.ENTITY__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.ENTITY__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case EjbPackage.ENTITY__ENVIRONMENT_PROPERTIES: - return environmentProperties != null && !environmentProperties.isEmpty(); - case EjbPackage.ENTITY__RESOURCE_REFS: - return resourceRefs != null && !resourceRefs.isEmpty(); - case EjbPackage.ENTITY__EJB_REFS: - return ejbRefs != null && !ejbRefs.isEmpty(); - case EjbPackage.ENTITY__RESOURCE_ENV_REFS: - return resourceEnvRefs != null && !resourceEnvRefs.isEmpty(); - case EjbPackage.ENTITY__EJB_LOCAL_REFS: - return ejbLocalRefs != null && !ejbLocalRefs.isEmpty(); - case EjbPackage.ENTITY__MESSAGE_DESTINATION_REFS: - return messageDestinationRefs != null && !messageDestinationRefs.isEmpty(); - case EjbPackage.ENTITY__SERVICE_REFS: - return serviceRefs != null && !serviceRefs.isEmpty(); - case EjbPackage.ENTITY__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EjbPackage.ENTITY__SECURITY_ROLE_REFS: - return securityRoleRefs != null && !securityRoleRefs.isEmpty(); - case EjbPackage.ENTITY__EJB_CLASS: - return ejbClass != null; - case EjbPackage.ENTITY__HOME_INTERFACE: - return homeInterface != null; - case EjbPackage.ENTITY__REMOTE_INTERFACE: - return remoteInterface != null; - case EjbPackage.ENTITY__EJB_JAR: - return getEjbJar() != null; - case EjbPackage.ENTITY__SECURITY_IDENTITY: - return securityIdentity != null; - case EjbPackage.ENTITY__LOCAL_HOME_INTERFACE: - return localHomeInterface != null; - case EjbPackage.ENTITY__LOCAL_INTERFACE: - return localInterface != null; - case EjbPackage.ENTITY__REENTRANT: - return isSetReentrant(); - case EjbPackage.ENTITY__PRIMARY_KEY: - return primaryKey != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ENTITY__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case EjbPackage.ENTITY__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case EjbPackage.ENTITY__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.ENTITY__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case EjbPackage.ENTITY__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - getEnvironmentProperties().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__RESOURCE_REFS: - getResourceRefs().clear(); - getResourceRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__EJB_REFS: - getEjbRefs().clear(); - getEjbRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - getResourceEnvRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - getEjbLocalRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - getMessageDestinationRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__NAME: - setName((String)newValue); - return; - case EjbPackage.ENTITY__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - getSecurityRoleRefs().addAll((Collection)newValue); - return; - case EjbPackage.ENTITY__EJB_CLASS: - setEjbClass((JavaClass)newValue); - return; - case EjbPackage.ENTITY__HOME_INTERFACE: - setHomeInterface((JavaClass)newValue); - return; - case EjbPackage.ENTITY__REMOTE_INTERFACE: - setRemoteInterface((JavaClass)newValue); - return; - case EjbPackage.ENTITY__EJB_JAR: - setEjbJar((EJBJar)newValue); - return; - case EjbPackage.ENTITY__SECURITY_IDENTITY: - setSecurityIdentity((SecurityIdentity)newValue); - return; - case EjbPackage.ENTITY__LOCAL_HOME_INTERFACE: - setLocalHomeInterface((JavaClass)newValue); - return; - case EjbPackage.ENTITY__LOCAL_INTERFACE: - setLocalInterface((JavaClass)newValue); - return; - case EjbPackage.ENTITY__REENTRANT: - setReentrant(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.ENTITY__PRIMARY_KEY: - setPrimaryKey((JavaClass)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ENTITY__ICONS: - getIcons().clear(); - return; - case EjbPackage.ENTITY__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case EjbPackage.ENTITY__DESCRIPTIONS: - getDescriptions().clear(); - return; - case EjbPackage.ENTITY__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case EjbPackage.ENTITY__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case EjbPackage.ENTITY__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.ENTITY__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case EjbPackage.ENTITY__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - return; - case EjbPackage.ENTITY__RESOURCE_REFS: - getResourceRefs().clear(); - return; - case EjbPackage.ENTITY__EJB_REFS: - getEjbRefs().clear(); - return; - case EjbPackage.ENTITY__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - return; - case EjbPackage.ENTITY__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - return; - case EjbPackage.ENTITY__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - return; - case EjbPackage.ENTITY__SERVICE_REFS: - getServiceRefs().clear(); - return; - case EjbPackage.ENTITY__NAME: - setName(NAME_EDEFAULT); - return; - case EjbPackage.ENTITY__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - return; - case EjbPackage.ENTITY__EJB_CLASS: - setEjbClass((JavaClass)null); - return; - case EjbPackage.ENTITY__HOME_INTERFACE: - setHomeInterface((JavaClass)null); - return; - case EjbPackage.ENTITY__REMOTE_INTERFACE: - setRemoteInterface((JavaClass)null); - return; - case EjbPackage.ENTITY__EJB_JAR: - setEjbJar((EJBJar)null); - return; - case EjbPackage.ENTITY__SECURITY_IDENTITY: - setSecurityIdentity((SecurityIdentity)null); - return; - case EjbPackage.ENTITY__LOCAL_HOME_INTERFACE: - setLocalHomeInterface((JavaClass)null); - return; - case EjbPackage.ENTITY__LOCAL_INTERFACE: - setLocalInterface((JavaClass)null); - return; - case EjbPackage.ENTITY__REENTRANT: - unsetReentrant(); - return; - case EjbPackage.ENTITY__PRIMARY_KEY: - setPrimaryKey((JavaClass)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (reentrant: "); - if (reentrantESet) result.append(reentrant); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - - /** - * @generated This field/method will be replaced during code generation - * The primkey-field element is used to specify the name of the primary key field - * for an entity with container-managed persistence. The primkey-field must be - * one of the fields declared in the cmp-field - * element, and the type of the field must be the same as the primary key type. - * The primkey-field element is not used if the primary key maps to multiple - * container-managed fields (i.e. the key is a compound key). In this case, the - * fields of the primary key class must be public, and their names must correspond - * to the field names of the entity bean class that comprise the key. - * Examples:<prim-key-class>java.lang.String<//prim-key-class> - * <prim-key-class>com.wombat.empl.EmployeeID<//prim-key-class> - * <prim-key-class>java.lang.Object<//prim-key-class> - - */ - public JavaClass getPrimaryKeyGen() { - if (primaryKey != null && primaryKey.eIsProxy()) { - JavaClass oldPrimaryKey = primaryKey; - primaryKey = (JavaClass)eResolveProxy((InternalEObject)primaryKey); - if (primaryKey != oldPrimaryKey) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.ENTITY__PRIMARY_KEY, oldPrimaryKey, primaryKey)); - } - } - return primaryKey; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetPrimaryKey() { - return primaryKey; - } - -} - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ExcludeListImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ExcludeListImpl.java deleted file mode 100644 index 0877ac778..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ExcludeListImpl.java +++ /dev/null @@ -1,244 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.ExcludeList; -import org.eclipse.jst.j2ee.ejb.MethodElement; - -/** - * The exclude list element defines a set of methods which the Assembler marks to be uncallable. It contains one or more methods. - * - * If the method permission relation contains methods that are in the exclude list, the Deployer must consider those methods to be uncallable. - - */ -public class ExcludeListImpl extends EObjectImpl implements ExcludeList, EObject { - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList methodElements = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public ExcludeListImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getExcludeList(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.EXCLUDE_LIST__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getMethodElements() { - if (methodElements == null) { - methodElements = new EObjectContainmentEList(MethodElement.class, this, EjbPackage.EXCLUDE_LIST__METHOD_ELEMENTS); - } - return methodElements; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.EXCLUDE_LIST__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.EXCLUDE_LIST__METHOD_ELEMENTS: - return ((InternalEList)getMethodElements()).basicRemove(otherEnd, msgs); - case EjbPackage.EXCLUDE_LIST__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EXCLUDE_LIST__DESCRIPTION: - return getDescription(); - case EjbPackage.EXCLUDE_LIST__METHOD_ELEMENTS: - return getMethodElements(); - case EjbPackage.EXCLUDE_LIST__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EXCLUDE_LIST__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.EXCLUDE_LIST__METHOD_ELEMENTS: - return methodElements != null && !methodElements.isEmpty(); - case EjbPackage.EXCLUDE_LIST__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EXCLUDE_LIST__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.EXCLUDE_LIST__METHOD_ELEMENTS: - getMethodElements().clear(); - getMethodElements().addAll((Collection)newValue); - return; - case EjbPackage.EXCLUDE_LIST__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.EXCLUDE_LIST__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.EXCLUDE_LIST__METHOD_ELEMENTS: - getMethodElements().clear(); - return; - case EjbPackage.EXCLUDE_LIST__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - - public List getMethodElements(EnterpriseBean anEJB) { - if (anEJB == null) - return Collections.EMPTY_LIST; - List result = new ArrayList(); - List elements = getMethodElements(); - MethodElement me; - for (int i = 0; i < elements.size(); i++) { - me = (MethodElement) elements.get(i); - if (anEJB.equals(me.getEnterpriseBean())) - result.add(me); - } - return result; - } -} - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/KeyRelationshipRoleAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/KeyRelationshipRoleAttributeFilter.java deleted file mode 100644 index 19436c1a6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/KeyRelationshipRoleAttributeFilter.java +++ /dev/null @@ -1,93 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - - -/** - * This filter will return a subset of the keyAttributes (this includes inherited - * key attributes) from the ContainerManagedEntityExtension that is passed as an - * argument to the filter method. - * It will remove any key attribute that is not pointed to by an EjbRelationshipRole. - * Thus, the returned list will contain key attributes (including inherited key attributes) that only - * belong to roles. - * Creation date: (11/28/2000 7:23:22 PM) - * @author: Administrator - */ -public class KeyRelationshipRoleAttributeFilter extends AbstractRelationshipRoleAttributeFilter { - private static KeyRelationshipRoleAttributeFilter singleton; -/** - * Return the proper list of attributes from cmpExt. - */ -protected java.util.List getSourceRoles(ContainerManagedEntity cmp) { - return cmp.getFilteredFeatures(KeyRelationshipRoleFilter.singleton()); -} -/** - * Insert the method's description here. - * Creation date: (11/28/2000 5:36:00 PM) - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.KeyRelationshipRoleAttributeFilter - */ -public static KeyRelationshipRoleAttributeFilter singleton() { - if (singleton == null) - singleton = new KeyRelationshipRoleAttributeFilter(); - return singleton; -} -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/KeyRelationshipRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/KeyRelationshipRoleFilter.java deleted file mode 100644 index 01b7beada..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/KeyRelationshipRoleFilter.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - - -/** - * This filter will return a subset of the relationshipRoles (this includes - * inherited EjbRelationshipRoles) from the ContainerManagedEntityExtension - * that is passed as an argument to the filter method. It will remove any - * EjbRelationshipRole that is not part of the key. Creation date: (11/28/2000 - * 7:14:57 PM) @author: Administrator - */ -public class KeyRelationshipRoleFilter extends ContainerManagedEntityFilter { - - private static KeyRelationshipRoleFilter singleton; - - /** - * filter method comment. - */ - public java.util.List filter(ContainerManagedEntity cmp) { - List keyRoles = new ArrayList(); - Iterator it = getRelationshipRoles(cmp).iterator(); - CommonRelationshipRole role; - while (it.hasNext()) { - role = (CommonRelationshipRole) it.next(); - if (role.isKey()) keyRoles.add(role); - } - return keyRoles; - } - - /** - * Insert the method's description here. Creation date: (11/28/2000 7:15:37 - * PM) - * - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.KeyRelationshipRoleFilter - */ - public static KeyRelationshipRoleFilter singleton() { - if (singleton == null) singleton = new KeyRelationshipRoleFilter(); - return singleton; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalKeyAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalKeyAttributeFilter.java deleted file mode 100644 index 6d80bfc8b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalKeyAttributeFilter.java +++ /dev/null @@ -1,102 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; -import java.util.ArrayList; - -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - -/** - * This filter will return a subset of the keyAttributes from the - * ContainerManagedEntityExtension that is passed as an argument to the filter method. - * It will remove any keyPersistentAttributes that are inherited by any supertypes. - * That means the returned list of CMPAttributes will be key attributes that were defined locally - * for the ContainerManagedEntity held by the ContainerManagedEntityExtension plus key attributes - * that were added from EjbRelationshipRoles that are held by the ContainerManagedEntityExtension. - * Creation date: (11/28/2000 6:24:33 PM) - * @author: Administrator - */ -public class LocalKeyAttributeFilter extends SupertypeCMPAttributeFilter { - private static LocalKeyAttributeFilter singleton; -/** - * Return the proper list of attributes from cmpExt. - */ -protected java.util.List getSourceAttributes(ContainerManagedEntity cmp) { - return new ArrayList(cmp.getKeyAttributes()); -} -/** - * Return a boolean indicating whether anAttribute also exists in the superEntity. - * For this filter, only the name has to be the same. - */ -protected boolean isSupertypeAttribute(ContainerManagedEntity superEntity, CMPAttribute anAttribute) { - CMPAttribute found = superEntity.getKeyAttribute(anAttribute.getName()); - return found != null; -} -/** - * Insert the method's description here. - * Creation date: (11/28/2000 5:36:00 PM) - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.LocalKeyAttributeFilter - */ -public static LocalKeyAttributeFilter singleton() { - if (singleton == null) - singleton = new LocalKeyAttributeFilter(); - return singleton; -} -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalModelledPersistentAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalModelledPersistentAttributeFilter.java deleted file mode 100644 index 189535da1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalModelledPersistentAttributeFilter.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -/** - * This filter will return a subset of the persistentAttributes from the - * ContainerManagedEntityExtension that is passed as an argument to the filter - * method. It will remove any inherited persistentAttributes and any - * persistentAttributes that are held by EjbRelationshipRole objects (including - * inherited EjbRelationshipRole attributes). That means the returned list of - * CMPAttributes will be attributes that were defined locally minus all - * inherited attributes and minus any attributes pointed to by - * EjbRelationshipRoles, thus the attributes will only be attributes that were - * defined locally by the user. Creation date: (11/28/2000 7:31:42 PM) @author: - * Administrator - */ -public class LocalModelledPersistentAttributeFilter extends SupertypeCMPAttributeFilter { - private static LocalModelledPersistentAttributeFilter singleton; - /** - * Return the proper list of attributes from cmpExt. Return local - * attributes minus those added due to Relationship Roles. - */ - protected java.util.List getSourceAttributes(ContainerManagedEntity cmp) { - java.util.List local = null, localRoleAttributes; - local = cmp.getFilteredFeatures(LocalPersistentAttributeFilter.singleton()); - localRoleAttributes = cmp.getFilteredFeatures(LocalRelationshipRoleAttributeFilter.singleton()); - if(local != null) - local.removeAll(localRoleAttributes); - return local; - } - /** - * Return a boolean indicating whether anAttribute also exists in the - * superEntity. For this filter, only the name has to be the same. - */ - protected boolean isSupertypeAttribute(ContainerManagedEntity superEntity, CMPAttribute anAttribute) { - CMPAttribute found = superEntity.getPersistentAttribute(anAttribute.getName()); - return found != null; - } - /** - * Insert the method's description here. Creation date: (11/28/2000 5:36:00 - * PM) - * - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.LocalModelledPersistentAttributeFilter - */ - public static LocalModelledPersistentAttributeFilter singleton() { - if (singleton == null) - singleton = new LocalModelledPersistentAttributeFilter(); - return singleton; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalOppositeRelationshipRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalOppositeRelationshipRoleFilter.java deleted file mode 100644 index 034835798..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalOppositeRelationshipRoleFilter.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - - -/** - * This filter will return a subset of the relationshipRoles (this includes - * inherited EjbRelationshipRoles) from the ContainerManagedEntityExtension - * that is passed as an argument to the filter method. It will remove any - * EjbRelationshipRole that is inherited and it will return the opposite role. - * Creation date: (11/28/2000 7:14:57 PM) @author: Administrator - */ -public class LocalOppositeRelationshipRoleFilter extends ContainerManagedEntityFilter { - - private static LocalOppositeRelationshipRoleFilter singleton; - - /** - * Return a List with the opposite roles for the local relationship roles. - */ - public List filter(ContainerManagedEntity cmp) { - List oppositeRoles = new ArrayList(); - Iterator it = getLocalRelationshipRoles(cmp).iterator(); - CommonRelationshipRole role, opposite; - while (it != null && it.hasNext()) { - role = (CommonRelationshipRole) it.next(); - opposite = role.getOppositeAsCommonRole(); - if (opposite != null) oppositeRoles.add(opposite); - } - return oppositeRoles; - } - - /** - * Insert the method's description here. Creation date: (11/28/2000 7:15:37 - * PM) - * - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.LocalOppositeRelationshipRoleFilter - */ - public static LocalOppositeRelationshipRoleFilter singleton() { - if (singleton == null) singleton = new LocalOppositeRelationshipRoleFilter(); - return singleton; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalPersistentAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalPersistentAttributeFilter.java deleted file mode 100644 index b1c55bab2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalPersistentAttributeFilter.java +++ /dev/null @@ -1,103 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; -import java.util.ArrayList; - -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - - -/** - * This filter will return a subset of the persistentAttributes from the - * ContainerManagedEntityExtension that is passed as an argument to the filter method. - * It will remove any persistentAttributes that are inherited by any supertypes. - * That means the returned list of CMPAttributes will be attributes that were defined locally - * for the ContainerManagedEntity held by the ContainerManagedEntityExtension plus attributes - * that were added from EjbRelationshipRoles that are held by the ContainerManagedEntityExtension. - * Creation date: (11/28/2000 5:35:03 PM) - * @author: Administrator - */ -public class LocalPersistentAttributeFilter extends SupertypeCMPAttributeFilter { - private static LocalPersistentAttributeFilter singleton; -/** - * Return the proper list of attributes from cmpExt. - */ -protected java.util.List getSourceAttributes(ContainerManagedEntity cmp) { - return new ArrayList(cmp.getPersistentAttributes()); -} -/** - * Return a boolean indicating whether anAttribute also exists in the superEntity. - * For this filter, only the name has to be the same. - */ -protected boolean isSupertypeAttribute(ContainerManagedEntity superEntity, CMPAttribute anAttribute) { - CMPAttribute found = superEntity.getPersistentAttribute(anAttribute.getName()); - return found != null; -} -/** - * Insert the method's description here. - * Creation date: (11/28/2000 5:36:00 PM) - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.LocalPersistentAttributeFilter - */ -public static LocalPersistentAttributeFilter singleton() { - if (singleton == null) - singleton = new LocalPersistentAttributeFilter(); - return singleton; -} -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalRelationshipRoleAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalRelationshipRoleAttributeFilter.java deleted file mode 100644 index 79ee21431..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalRelationshipRoleAttributeFilter.java +++ /dev/null @@ -1,92 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - -/** - * This filter will return a subset of the persistentAttributes from the - * ContainerManagedEntityExtension that is passed as an argument to the filter method. - * It will remove any attribute that is not pointed to by an EjbRelationshipRole and - * it will further remove attributes pointed to by inherited EjbRelationshipRoles. - * Thus, the returned list will contain attributes that only belong to local - * EjbRelationshipRoles (not including iherited roles). - * Creation date: (11/28/2000 6:46:08 PM) - * @author: Administrator - */ -public class LocalRelationshipRoleAttributeFilter extends AbstractRelationshipRoleAttributeFilter { - private static LocalRelationshipRoleAttributeFilter singleton; -/** - * Return the proper list of roles from cmpExt. - */ -protected java.util.List getSourceRoles(ContainerManagedEntity cmp) { - return getRelationshipRoles(cmp); -} -/** - * Insert the method's description here. - * Creation date: (11/28/2000 5:36:00 PM) - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.LocalRelationshipRoleAttributeFilter - */ -public static LocalRelationshipRoleAttributeFilter singleton() { - if (singleton == null) - singleton = new LocalRelationshipRoleAttributeFilter(); - return singleton; -} -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalRelationshipRoleKeyAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalRelationshipRoleKeyAttributeFilter.java deleted file mode 100644 index b9a5b7d94..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/LocalRelationshipRoleKeyAttributeFilter.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - - -/** - * @author jlanuti - * - * To change this generated comment edit the template variable "typecomment": - * Window>Preferences>Java>Templates. - * To enable and disable the creation of type comments go to - * Window>Preferences>Java>Code Generation. - */ -public class LocalRelationshipRoleKeyAttributeFilter extends LocalRelationshipRoleAttributeFilter { - - private static LocalRelationshipRoleKeyAttributeFilter singleton; - -public static LocalRelationshipRoleAttributeFilter singleton() { - if (singleton == null) - singleton = new LocalRelationshipRoleKeyAttributeFilter(); - return singleton; -} - -/** - * filter method comment. - */ -public List filter(ContainerManagedEntity cmp) { - List attributes = new ArrayList(); - Iterator it = getSourceRoles(cmp).iterator(); - CommonRelationshipRole role; - while (it.hasNext()) { - role = (CommonRelationshipRole) it.next(); - if (role.isKey()) - attributes.addAll(role.getAttributes()); - } - return attributes; -} -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MessageDrivenDestinationImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MessageDrivenDestinationImpl.java deleted file mode 100644 index bcacca821..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MessageDrivenDestinationImpl.java +++ /dev/null @@ -1,359 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.ejb.DestinationType; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.MessageDriven; -import org.eclipse.jst.j2ee.ejb.MessageDrivenDestination; -import org.eclipse.jst.j2ee.ejb.SubscriptionDurabilityKind; - -/** - * The message-driven-destination element provides advice to the Deployer as to whether a message-driven bean is intended for a Queue or a Topic. The declaration consists of: the type of the message-driven bean's intended destination and an optional declaration of whether a durable or non-durable subscription should be used if the destination-type is javax.jms.Topic. - */ -public class MessageDrivenDestinationImpl extends EObjectImpl implements MessageDrivenDestination, EObject{ - - /** - * The default value of the '{@link #getType() <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected static final DestinationType TYPE_EDEFAULT = DestinationType.QUEUE_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected DestinationType type = TYPE_EDEFAULT; - /** - * This is true if the Type attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean typeESet = false; - - /** - * The default value of the '{@link #getSubscriptionDurability() <em>Subscription Durability</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSubscriptionDurability() - * @generated - * @ordered - */ - protected static final SubscriptionDurabilityKind SUBSCRIPTION_DURABILITY_EDEFAULT = SubscriptionDurabilityKind.DURABLE_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected SubscriptionDurabilityKind subscriptionDurability = SUBSCRIPTION_DURABILITY_EDEFAULT; - /** - * This is true if the Subscription Durability attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean subscriptionDurabilityESet = false; - - public MessageDrivenDestinationImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getMessageDrivenDestination(); - } - - /** - * @generated This field/method will be replaced during code generation - * The destination-type element specifies the type of the JMS destination. The type is specified by the Java interface expected to be implemented by the destination. - * - * The destination-type element must be one of the two following: javax.jms.Queue, javax.jms.Topic - */ - public DestinationType getType() { - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setType(DestinationType newType) { - DestinationType oldType = type; - type = newType == null ? TYPE_EDEFAULT : newType; - boolean oldTypeESet = typeESet; - typeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN_DESTINATION__TYPE, oldType, type, !oldTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetType() { - DestinationType oldType = type; - boolean oldTypeESet = typeESet; - type = TYPE_EDEFAULT; - typeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.MESSAGE_DRIVEN_DESTINATION__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetType() { - return typeESet; - } - - /** - * @generated This field/method will be replaced during code generation - * The subscription-durability element specifies whether a JMS topic subscription is intended to be durable or nondurable. - * - * The subscription-durability element must be one of the two following: Durable, NonDurable - - */ - public SubscriptionDurabilityKind getSubscriptionDurability() { - return subscriptionDurability; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSubscriptionDurability(SubscriptionDurabilityKind newSubscriptionDurability) { - SubscriptionDurabilityKind oldSubscriptionDurability = subscriptionDurability; - subscriptionDurability = newSubscriptionDurability == null ? null : newSubscriptionDurability; - boolean oldSubscriptionDurabilityESet = subscriptionDurabilityESet; - subscriptionDurabilityESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN_DESTINATION__SUBSCRIPTION_DURABILITY, oldSubscriptionDurability, subscriptionDurability, !oldSubscriptionDurabilityESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetSubscriptionDurability() { - SubscriptionDurabilityKind oldSubscriptionDurability = subscriptionDurability; - boolean oldSubscriptionDurabilityESet = subscriptionDurabilityESet; - subscriptionDurability = SUBSCRIPTION_DURABILITY_EDEFAULT; - subscriptionDurabilityESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.MESSAGE_DRIVEN_DESTINATION__SUBSCRIPTION_DURABILITY, oldSubscriptionDurability, SUBSCRIPTION_DURABILITY_EDEFAULT, oldSubscriptionDurabilityESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetSubscriptionDurability() { - return subscriptionDurabilityESet; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public MessageDriven getBean() { - if (eContainerFeatureID != EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN) return null; - return (MessageDriven)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setBean(MessageDriven newBean) { - if (newBean != eContainer || (eContainerFeatureID != EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN && newBean != null)) { - if (EcoreUtil.isAncestor(this, newBean)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newBean != null) - msgs = ((InternalEObject)newBean).eInverseAdd(this, EjbPackage.MESSAGE_DRIVEN__DESTINATION, MessageDriven.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newBean, EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN, newBean, newBean)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN: - return eBasicSetContainer(null, EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN: - return eContainer.eInverseRemove(this, EjbPackage.MESSAGE_DRIVEN__DESTINATION, MessageDriven.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__TYPE: - return getType(); - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__SUBSCRIPTION_DURABILITY: - return getSubscriptionDurability(); - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN: - return getBean(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__TYPE: - return isSetType(); - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__SUBSCRIPTION_DURABILITY: - return isSetSubscriptionDurability(); - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN: - return getBean() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__TYPE: - setType((DestinationType)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__SUBSCRIPTION_DURABILITY: - setSubscriptionDurability((SubscriptionDurabilityKind)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN: - setBean((MessageDriven)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__TYPE: - unsetType(); - return; - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__SUBSCRIPTION_DURABILITY: - unsetSubscriptionDurability(); - return; - case EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN: - setBean((MessageDriven)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (type: "); - if (typeESet) result.append(type); else result.append("<unset>"); - result.append(", subscriptionDurability: "); - if (subscriptionDurabilityESet) result.append(subscriptionDurability); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MessageDrivenImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MessageDrivenImpl.java deleted file mode 100644 index ef457313c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MessageDrivenImpl.java +++ /dev/null @@ -1,981 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.ejb.AcknowledgeMode; -import org.eclipse.jst.j2ee.ejb.ActivationConfig; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.MessageDriven; -import org.eclipse.jst.j2ee.ejb.MessageDrivenDestination; -import org.eclipse.jst.j2ee.ejb.TransactionType; - -/** - * @generated - */ -public class MessageDrivenImpl extends EnterpriseBeanImpl implements MessageDriven{ - - /** - * The default value of the '{@link #getTransactionType() <em>Transaction Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTransactionType() - * @generated - * @ordered - */ - protected static final TransactionType TRANSACTION_TYPE_EDEFAULT = TransactionType.BEAN_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected TransactionType transactionType = TRANSACTION_TYPE_EDEFAULT; - /** - * This is true if the Transaction Type attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean transactionTypeESet = false; - - /** - * The default value of the '{@link #getMessageSelector() <em>Message Selector</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageSelector() - * @generated - * @ordered - */ - protected static final String MESSAGE_SELECTOR_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String messageSelector = MESSAGE_SELECTOR_EDEFAULT; - /** - * The default value of the '{@link #getAcknowledgeMode() <em>Acknowledge Mode</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAcknowledgeMode() - * @generated - * @ordered - */ - protected static final AcknowledgeMode ACKNOWLEDGE_MODE_EDEFAULT = AcknowledgeMode.AUTO_ACKNOWLEDGE_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected AcknowledgeMode acknowledgeMode = ACKNOWLEDGE_MODE_EDEFAULT; - /** - * This is true if the Acknowledge Mode attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean acknowledgeModeESet = false; - - /** - * The default value of the '{@link #getLink() <em>Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLink() - * @generated - * @ordered - */ - protected static final String LINK_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLink() <em>Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLink() - * @generated - * @ordered - */ - protected String link = LINK_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected MessageDrivenDestination destination = null; - /** - * The cached value of the '{@link #getActivationConfig() <em>Activation Config</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getActivationConfig() - * @generated - * @ordered - */ - protected ActivationConfig activationConfig = null; - - /** - * The cached value of the '{@link #getMessageDestination() <em>Message Destination</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageDestination() - * @generated - * @ordered - */ - protected JavaClass messageDestination = null; - - /** - * The cached value of the '{@link #getMessagingType() <em>Messaging Type</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessagingType() - * @generated - * @ordered - */ - protected JavaClass messagingType = null; - - public MessageDrivenImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getMessageDriven(); - } - -public boolean isMessageDriven() { - return true; -} - /** - * @generated This field/method will be replaced during code generation - * The transaction-type element specifies an enterprise bean's transaction management type. - * - * The transaction-type element must be one of the two following: Bean, Container - */ - public TransactionType getTransactionType() { - return transactionType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTransactionType(TransactionType newTransactionType) { - TransactionType oldTransactionType = transactionType; - transactionType = newTransactionType == null ? TRANSACTION_TYPE_EDEFAULT : newTransactionType; - boolean oldTransactionTypeESet = transactionTypeESet; - transactionTypeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN__TRANSACTION_TYPE, oldTransactionType, transactionType, !oldTransactionTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetTransactionType() { - TransactionType oldTransactionType = transactionType; - boolean oldTransactionTypeESet = transactionTypeESet; - transactionType = TRANSACTION_TYPE_EDEFAULT; - transactionTypeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.MESSAGE_DRIVEN__TRANSACTION_TYPE, oldTransactionType, TRANSACTION_TYPE_EDEFAULT, oldTransactionTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetTransactionType() { - return transactionTypeESet; - } - - /** - * @generated This field/method will be replaced during code generation - * The message-selector element is used to specify the JMS message - * selector to be used in determining which messages a message-driven - * bean is to receive. - * - * Example value: - * JMSType = `car' AND color = `blue' AND weight > 2500 - - */ - public String getMessageSelector() { - return messageSelector; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setMessageSelector(String newMessageSelector) { - String oldMessageSelector = messageSelector; - messageSelector = newMessageSelector; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN__MESSAGE_SELECTOR, oldMessageSelector, messageSelector)); - } - - /** - * @generated This field/method will be replaced during code generation - * an optional declaration of the acknowledgment mode for the message-driven bean if bean-managed transaction demarcation is used (ie. self.transactionType = Bean) - * - * The acknowledge-mode specifies whether JMS AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE message acknowledgment semantics should be used for the onMessage message of a message-driven bean that uses bean managed transaction demarcation. - * - * The acknowledge-mode must be one of the two following: Auto-acknowledge, Dups-ok-acknowledge - - */ - public AcknowledgeMode getAcknowledgeMode() { - return acknowledgeMode; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAcknowledgeMode(AcknowledgeMode newAcknowledgeMode) { - AcknowledgeMode oldAcknowledgeMode = acknowledgeMode; - acknowledgeMode = newAcknowledgeMode == null ? ACKNOWLEDGE_MODE_EDEFAULT : newAcknowledgeMode; - boolean oldAcknowledgeModeESet = acknowledgeModeESet; - acknowledgeModeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN__ACKNOWLEDGE_MODE, oldAcknowledgeMode, acknowledgeMode, !oldAcknowledgeModeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetAcknowledgeMode() { - AcknowledgeMode oldAcknowledgeMode = acknowledgeMode; - boolean oldAcknowledgeModeESet = acknowledgeModeESet; - acknowledgeMode = ACKNOWLEDGE_MODE_EDEFAULT; - acknowledgeModeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.MESSAGE_DRIVEN__ACKNOWLEDGE_MODE, oldAcknowledgeMode, ACKNOWLEDGE_MODE_EDEFAULT, oldAcknowledgeModeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetAcknowledgeMode() { - return acknowledgeModeESet; - } - - /** - * @generated This field/method will be replaced during code generation - * An optional declaration of the intended destination type of the message-driven bean - */ - public MessageDrivenDestination getDestination() { - return destination; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetDestination(MessageDrivenDestination newDestination, NotificationChain msgs) { - MessageDrivenDestination oldDestination = destination; - destination = newDestination; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN__DESTINATION, oldDestination, newDestination); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDestination(MessageDrivenDestination newDestination) { - if (newDestination != destination) { - NotificationChain msgs = null; - if (destination != null) - msgs = ((InternalEObject)destination).eInverseRemove(this, EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN, MessageDrivenDestination.class, msgs); - if (newDestination != null) - msgs = ((InternalEObject)newDestination).eInverseAdd(this, EjbPackage.MESSAGE_DRIVEN_DESTINATION__BEAN, MessageDrivenDestination.class, msgs); - msgs = basicSetDestination(newDestination, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN__DESTINATION, newDestination, newDestination)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ActivationConfig getActivationConfig() { - return activationConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetActivationConfig(ActivationConfig newActivationConfig, NotificationChain msgs) { - ActivationConfig oldActivationConfig = activationConfig; - activationConfig = newActivationConfig; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN__ACTIVATION_CONFIG, oldActivationConfig, newActivationConfig); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setActivationConfig(ActivationConfig newActivationConfig) { - if (newActivationConfig != activationConfig) { - NotificationChain msgs = null; - if (activationConfig != null) - msgs = ((InternalEObject)activationConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EjbPackage.MESSAGE_DRIVEN__ACTIVATION_CONFIG, null, msgs); - if (newActivationConfig != null) - msgs = ((InternalEObject)newActivationConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EjbPackage.MESSAGE_DRIVEN__ACTIVATION_CONFIG, null, msgs); - msgs = basicSetActivationConfig(newActivationConfig, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN__ACTIVATION_CONFIG, newActivationConfig, newActivationConfig)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass getMessageDestination() { - if (messageDestination != null && messageDestination.eIsProxy()) { - JavaClass oldMessageDestination = messageDestination; - messageDestination = (JavaClass)eResolveProxy((InternalEObject)messageDestination); - if (messageDestination != oldMessageDestination) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION, oldMessageDestination, messageDestination)); - } - } - return messageDestination; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetMessageDestination() { - return messageDestination; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMessageDestination(JavaClass newMessageDestination) { - JavaClass oldMessageDestination = messageDestination; - messageDestination = newMessageDestination; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION, oldMessageDestination, messageDestination)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLink() { - return link; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLink(String newLink) { - String oldLink = link; - link = newLink; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN__LINK, oldLink, link)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass getMessagingType() { - if (messagingType != null && messagingType.eIsProxy()) { - JavaClass oldMessagingType = messagingType; - messagingType = (JavaClass)eResolveProxy((InternalEObject)messagingType); - if (messagingType != oldMessagingType) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.MESSAGE_DRIVEN__MESSAGING_TYPE, oldMessagingType, messagingType)); - } - } - return messagingType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetMessagingType() { - return messagingType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMessagingType(JavaClass newMessagingType) { - JavaClass oldMessagingType = messagingType; - messagingType = newMessagingType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.MESSAGE_DRIVEN__MESSAGING_TYPE, oldMessagingType, messagingType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.MESSAGE_DRIVEN__EJB_JAR: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.MESSAGE_DRIVEN__EJB_JAR, msgs); - case EjbPackage.MESSAGE_DRIVEN__DESTINATION: - if (destination != null) - msgs = ((InternalEObject)destination).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EjbPackage.MESSAGE_DRIVEN__DESTINATION, null, msgs); - return basicSetDestination((MessageDrivenDestination)otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.MESSAGE_DRIVEN__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__ENVIRONMENT_PROPERTIES: - return ((InternalEList)getEnvironmentProperties()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__RESOURCE_REFS: - return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__EJB_REFS: - return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__RESOURCE_ENV_REFS: - return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__EJB_LOCAL_REFS: - return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION_REFS: - return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__SECURITY_ROLE_REFS: - return ((InternalEList)getSecurityRoleRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.MESSAGE_DRIVEN__EJB_JAR: - return eBasicSetContainer(null, EjbPackage.MESSAGE_DRIVEN__EJB_JAR, msgs); - case EjbPackage.MESSAGE_DRIVEN__SECURITY_IDENTITY: - return basicSetSecurityIdentity(null, msgs); - case EjbPackage.MESSAGE_DRIVEN__DESTINATION: - return basicSetDestination(null, msgs); - case EjbPackage.MESSAGE_DRIVEN__ACTIVATION_CONFIG: - return basicSetActivationConfig(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.MESSAGE_DRIVEN__EJB_JAR: - return eContainer.eInverseRemove(this, EjbPackage.EJB_JAR__ENTERPRISE_BEANS, EJBJar.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.MESSAGE_DRIVEN__ICONS: - return getIcons(); - case EjbPackage.MESSAGE_DRIVEN__DISPLAY_NAMES: - return getDisplayNames(); - case EjbPackage.MESSAGE_DRIVEN__DESCRIPTIONS: - return getDescriptions(); - case EjbPackage.MESSAGE_DRIVEN__SMALL_ICON: - return getSmallIcon(); - case EjbPackage.MESSAGE_DRIVEN__LARGE_ICON: - return getLargeIcon(); - case EjbPackage.MESSAGE_DRIVEN__DESCRIPTION: - return getDescription(); - case EjbPackage.MESSAGE_DRIVEN__DISPLAY_NAME: - return getDisplayName(); - case EjbPackage.MESSAGE_DRIVEN__ENVIRONMENT_PROPERTIES: - return getEnvironmentProperties(); - case EjbPackage.MESSAGE_DRIVEN__RESOURCE_REFS: - return getResourceRefs(); - case EjbPackage.MESSAGE_DRIVEN__EJB_REFS: - return getEjbRefs(); - case EjbPackage.MESSAGE_DRIVEN__RESOURCE_ENV_REFS: - return getResourceEnvRefs(); - case EjbPackage.MESSAGE_DRIVEN__EJB_LOCAL_REFS: - return getEjbLocalRefs(); - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION_REFS: - return getMessageDestinationRefs(); - case EjbPackage.MESSAGE_DRIVEN__SERVICE_REFS: - return getServiceRefs(); - case EjbPackage.MESSAGE_DRIVEN__NAME: - return getName(); - case EjbPackage.MESSAGE_DRIVEN__SECURITY_ROLE_REFS: - return getSecurityRoleRefs(); - case EjbPackage.MESSAGE_DRIVEN__EJB_CLASS: - if (resolve) return getEjbClass(); - return basicGetEjbClass(); - case EjbPackage.MESSAGE_DRIVEN__HOME_INTERFACE: - if (resolve) return getHomeInterface(); - return basicGetHomeInterface(); - case EjbPackage.MESSAGE_DRIVEN__REMOTE_INTERFACE: - if (resolve) return getRemoteInterface(); - return basicGetRemoteInterface(); - case EjbPackage.MESSAGE_DRIVEN__EJB_JAR: - return getEjbJar(); - case EjbPackage.MESSAGE_DRIVEN__SECURITY_IDENTITY: - return getSecurityIdentity(); - case EjbPackage.MESSAGE_DRIVEN__LOCAL_HOME_INTERFACE: - if (resolve) return getLocalHomeInterface(); - return basicGetLocalHomeInterface(); - case EjbPackage.MESSAGE_DRIVEN__LOCAL_INTERFACE: - if (resolve) return getLocalInterface(); - return basicGetLocalInterface(); - case EjbPackage.MESSAGE_DRIVEN__TRANSACTION_TYPE: - return getTransactionType(); - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_SELECTOR: - return getMessageSelector(); - case EjbPackage.MESSAGE_DRIVEN__ACKNOWLEDGE_MODE: - return getAcknowledgeMode(); - case EjbPackage.MESSAGE_DRIVEN__LINK: - return getLink(); - case EjbPackage.MESSAGE_DRIVEN__DESTINATION: - return getDestination(); - case EjbPackage.MESSAGE_DRIVEN__ACTIVATION_CONFIG: - return getActivationConfig(); - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION: - if (resolve) return getMessageDestination(); - return basicGetMessageDestination(); - case EjbPackage.MESSAGE_DRIVEN__MESSAGING_TYPE: - if (resolve) return getMessagingType(); - return basicGetMessagingType(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.MESSAGE_DRIVEN__ICONS: - return icons != null && !icons.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case EjbPackage.MESSAGE_DRIVEN__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case EjbPackage.MESSAGE_DRIVEN__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.MESSAGE_DRIVEN__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case EjbPackage.MESSAGE_DRIVEN__ENVIRONMENT_PROPERTIES: - return environmentProperties != null && !environmentProperties.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__RESOURCE_REFS: - return resourceRefs != null && !resourceRefs.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__EJB_REFS: - return ejbRefs != null && !ejbRefs.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__RESOURCE_ENV_REFS: - return resourceEnvRefs != null && !resourceEnvRefs.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__EJB_LOCAL_REFS: - return ejbLocalRefs != null && !ejbLocalRefs.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION_REFS: - return messageDestinationRefs != null && !messageDestinationRefs.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__SERVICE_REFS: - return serviceRefs != null && !serviceRefs.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EjbPackage.MESSAGE_DRIVEN__SECURITY_ROLE_REFS: - return securityRoleRefs != null && !securityRoleRefs.isEmpty(); - case EjbPackage.MESSAGE_DRIVEN__EJB_CLASS: - return ejbClass != null; - case EjbPackage.MESSAGE_DRIVEN__HOME_INTERFACE: - return homeInterface != null; - case EjbPackage.MESSAGE_DRIVEN__REMOTE_INTERFACE: - return remoteInterface != null; - case EjbPackage.MESSAGE_DRIVEN__EJB_JAR: - return getEjbJar() != null; - case EjbPackage.MESSAGE_DRIVEN__SECURITY_IDENTITY: - return securityIdentity != null; - case EjbPackage.MESSAGE_DRIVEN__LOCAL_HOME_INTERFACE: - return localHomeInterface != null; - case EjbPackage.MESSAGE_DRIVEN__LOCAL_INTERFACE: - return localInterface != null; - case EjbPackage.MESSAGE_DRIVEN__TRANSACTION_TYPE: - return isSetTransactionType(); - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_SELECTOR: - return MESSAGE_SELECTOR_EDEFAULT == null ? messageSelector != null : !MESSAGE_SELECTOR_EDEFAULT.equals(messageSelector); - case EjbPackage.MESSAGE_DRIVEN__ACKNOWLEDGE_MODE: - return isSetAcknowledgeMode(); - case EjbPackage.MESSAGE_DRIVEN__LINK: - return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link); - case EjbPackage.MESSAGE_DRIVEN__DESTINATION: - return destination != null; - case EjbPackage.MESSAGE_DRIVEN__ACTIVATION_CONFIG: - return activationConfig != null; - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION: - return messageDestination != null; - case EjbPackage.MESSAGE_DRIVEN__MESSAGING_TYPE: - return messagingType != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.MESSAGE_DRIVEN__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - getEnvironmentProperties().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__RESOURCE_REFS: - getResourceRefs().clear(); - getResourceRefs().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__EJB_REFS: - getEjbRefs().clear(); - getEjbRefs().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - getResourceEnvRefs().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - getEjbLocalRefs().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - getMessageDestinationRefs().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__NAME: - setName((String)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - getSecurityRoleRefs().addAll((Collection)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__EJB_CLASS: - setEjbClass((JavaClass)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__HOME_INTERFACE: - setHomeInterface((JavaClass)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__REMOTE_INTERFACE: - setRemoteInterface((JavaClass)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__EJB_JAR: - setEjbJar((EJBJar)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__SECURITY_IDENTITY: - setSecurityIdentity((SecurityIdentity)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__LOCAL_HOME_INTERFACE: - setLocalHomeInterface((JavaClass)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__LOCAL_INTERFACE: - setLocalInterface((JavaClass)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__TRANSACTION_TYPE: - setTransactionType((TransactionType)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_SELECTOR: - setMessageSelector((String)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__ACKNOWLEDGE_MODE: - setAcknowledgeMode((AcknowledgeMode)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__LINK: - setLink((String)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__DESTINATION: - setDestination((MessageDrivenDestination)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__ACTIVATION_CONFIG: - setActivationConfig((ActivationConfig)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION: - setMessageDestination((JavaClass)newValue); - return; - case EjbPackage.MESSAGE_DRIVEN__MESSAGING_TYPE: - setMessagingType((JavaClass)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.MESSAGE_DRIVEN__ICONS: - getIcons().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__DESCRIPTIONS: - getDescriptions().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case EjbPackage.MESSAGE_DRIVEN__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case EjbPackage.MESSAGE_DRIVEN__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.MESSAGE_DRIVEN__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case EjbPackage.MESSAGE_DRIVEN__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__RESOURCE_REFS: - getResourceRefs().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__EJB_REFS: - getEjbRefs().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__SERVICE_REFS: - getServiceRefs().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__NAME: - setName(NAME_EDEFAULT); - return; - case EjbPackage.MESSAGE_DRIVEN__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - return; - case EjbPackage.MESSAGE_DRIVEN__EJB_CLASS: - setEjbClass((JavaClass)null); - return; - case EjbPackage.MESSAGE_DRIVEN__HOME_INTERFACE: - setHomeInterface((JavaClass)null); - return; - case EjbPackage.MESSAGE_DRIVEN__REMOTE_INTERFACE: - setRemoteInterface((JavaClass)null); - return; - case EjbPackage.MESSAGE_DRIVEN__EJB_JAR: - setEjbJar((EJBJar)null); - return; - case EjbPackage.MESSAGE_DRIVEN__SECURITY_IDENTITY: - setSecurityIdentity((SecurityIdentity)null); - return; - case EjbPackage.MESSAGE_DRIVEN__LOCAL_HOME_INTERFACE: - setLocalHomeInterface((JavaClass)null); - return; - case EjbPackage.MESSAGE_DRIVEN__LOCAL_INTERFACE: - setLocalInterface((JavaClass)null); - return; - case EjbPackage.MESSAGE_DRIVEN__TRANSACTION_TYPE: - unsetTransactionType(); - return; - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_SELECTOR: - setMessageSelector(MESSAGE_SELECTOR_EDEFAULT); - return; - case EjbPackage.MESSAGE_DRIVEN__ACKNOWLEDGE_MODE: - unsetAcknowledgeMode(); - return; - case EjbPackage.MESSAGE_DRIVEN__LINK: - setLink(LINK_EDEFAULT); - return; - case EjbPackage.MESSAGE_DRIVEN__DESTINATION: - setDestination((MessageDrivenDestination)null); - return; - case EjbPackage.MESSAGE_DRIVEN__ACTIVATION_CONFIG: - setActivationConfig((ActivationConfig)null); - return; - case EjbPackage.MESSAGE_DRIVEN__MESSAGE_DESTINATION: - setMessageDestination((JavaClass)null); - return; - case EjbPackage.MESSAGE_DRIVEN__MESSAGING_TYPE: - setMessagingType((JavaClass)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (transactionType: "); - if (transactionTypeESet) result.append(transactionType); else result.append("<unset>"); - result.append(", messageSelector: "); - result.append(messageSelector); - result.append(", acknowledgeMode: "); - if (acknowledgeModeESet) result.append(acknowledgeMode); else result.append("<unset>"); - result.append(", link: "); - result.append(link); - result.append(')'); - return result.toString(); - } - - /* - * @see EnterpriseBean#getAvailableLocalHomeMethodElements() - */ - public List getAvailableLocalHomeMethodElements() { - return Collections.EMPTY_LIST; - } - - /* - * @see EnterpriseBean#getAvailableLocalMethodElements() - */ - public List getAvailableLocalMethodElements() { - return Collections.EMPTY_LIST; - } - - /* - * @see EnterpriseBean#getAvailableRemoteMethodElements() - */ - public List getAvailableRemoteMethodElements() { - return Collections.EMPTY_LIST; - } - - /* - * @see EnterpriseBeanImpl#getAvailableUnspecifiedMethodElementSignatures() - */ - public List getAvailableUnspecifiedMethodElementSignatures() { - //There is only the onMessage method - List sigs = new ArrayList(1); - sigs.add("onMessage(javax.jms.Message)"); //$NON-NLS-1$ - return sigs; - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl.java deleted file mode 100644 index aa86e1789..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl.java +++ /dev/null @@ -1,1039 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import com.ibm.icu.util.StringTokenizer; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.emf.ecore.xmi.XMIResource; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodElementKind; -import org.eclipse.jst.j2ee.ejb.Session; -import org.eclipse.jst.j2ee.ejb.internal.util.MethodElementHelper; - - -/** - * The method element is used to denote a method of an enterprise bean's - * home or remote interface, or a set of methods. The ejb-name element - * must be the name of one of the enterprise beans in declared in the - * deployment descriptor; the optional method-intf element allows to - * distinguish between a method with the same signature that is defined in - * both the home and remote interface; the method-name element specifies - * the method name; and the optional method-params elements identify a - * single method among multiple methods with an overloaded method name. - * - * There are three possible styles of the method element syntax: - * - * 1. <method> - * <ejb-name>EJBNAME<//ejb-name> - * <method-name>*<//method-name> - * <//method> - * - * This style is used to refer to all the methods of the specified - * enterprise bean's home and remote interfaces. - * - * 2. <method> - * <ejb-name>EJBNAME<//ejb-name> - * <method-name>METHOD<//method-name> - * <//method>> - * - * This style is used to refer to the specified method of the - * specified enterprise bean. If there are multiple methods with - * the same overloaded name, the element of this style refers to - * all the methods with the overloaded name. - * - * - * - * - * - * 3. <method> - * <ejb-name>EJBNAME<//ejb-name> - * <method-name>METHOD<//method-name> - * <method-params> - * <method-param>PARAM-1<//method-param> - * <method-param>PARAM-2<//method-param> - * ... - * <method-param>PARAM-n<//method-param> - * <//method-params> - * <method> - * - * This style is used to refer to a single method within a set of - * methods with an overloaded name. PARAM-1 through PARAM-n are the - * fully-qualified Java types of the method's input parameters (if - * the method has no input arguments, the method-params element - * contains no method-param elements). Arrays are specified by the - * array element's type, followed by one or more pair of square - * brackets (e.g. int[][]). - * - * - * Used in: method-permission and container-transaction - * - * Examples: - * - * Style 1: The following method element refers to all the methods of - * the EmployeeService bean's home and remote interfaces: - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-name>*<//method-name> - * <//method> - * - * Style 2: The following method element refers to all the create - * methods of the EmployeeService bean's home interface: - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-name>create<//method-name> - * <//method> - * - * Style 3: The following method element refers to the - * create(String firstName, String LastName) method of the - * EmployeeService bean's home interface. - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-name>create<//method-name> - * <method-params> - * <method-param>java.lang.String<//method-param> - * <method-param>java.lang.String<//method-param> - * <//method-params> - * <//method> - * - * - * The following example illustrates a Style 3 element with - * more complex parameter types. The method - * foobar(char s, int i, int[] iar, mypackage.MyClass mycl, - * mypackage.MyClass[][] myclaar) - * would be specified as: - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-name>foobar<//method-name> - * <method-params> - * <method-param>char<//method-param> - * <method-param>int<//method-param> - * <method-param>int[]<//method-param> - * <method-param>mypackage.MyClass<//method-param> - * <method-param>mypackage.MyClass[][]<//method-param> - * <//method-params> - * <//method> - * - * The optional method-intf element can be used when it becomes - * necessary to differentiate between a method defined in the home - * interface and a method with the same name and signature that is - * defined in the remote interface. - * - * For example, the method element - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-intf>Remote<//method-intf> - * <method-name>create<//method-name> - * <method-params> - * <method-param>java.lang.String<//method-param> - * <method-param>java.lang.String<//method-param> - * <//method-params> - * <//method> - * - * can be used to differentiate the create(String, String) method - * defined in the remote interface from the create(String, String) - * method defined in the home interface, which would be defined as - * - * <method> - * <ejb-name>EmployeeService<//ejb-name> - * <method-intf>Home<//method-intf> - * <method-name>create<//method-name> - * <method-params> - * <method-param>java.lang.String<//method-param> - * <method-param>java.lang.String<//method-param> - * <//method-params> - * <//method> - - */ -public class MethodElementImpl extends EObjectImpl implements MethodElement { - - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String name = NAME_EDEFAULT; - /** - * The default value of the '{@link #getParms() <em>Parms</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParms() - * @generated - * @ordered - */ - protected static final String PARMS_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String parms = PARMS_EDEFAULT; - - /** - * The default value of the '{@link #getType() <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected static final MethodElementKind TYPE_EDEFAULT = MethodElementKind.UNSPECIFIED_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected MethodElementKind type = TYPE_EDEFAULT; - /** - * This is true if the Type attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean typeESet = false; - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EnterpriseBean enterpriseBean = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public MethodElementImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getMethodElement(); - } - -public void addMethodParams(String param) { - String oldParms = getParms(); - if (oldParms == null) { - setParms(param); - } else { - setParms(oldParms.concat(" ").concat(param)); //$NON-NLS-1$ - } -} -/** - * Set the params for this method element to an empty array, as opposed - * to null. - */ -public void applyZeroParams() { - setParms(""); //$NON-NLS-1$ -} -public boolean equalSignature(MethodElement anotherMethodElement) { - boolean equal = getName().equals(anotherMethodElement.getName()); - if (equal) { - equal = parmsEqual(anotherMethodElement); - if (equal) { - if (getType() == null) - equal = anotherMethodElement.getType() == null; - else - equal = getType().equals(anotherMethodElement.getType()); - } - } - return equal; -} -public java.util.List getMethodParams() { - StringTokenizer tok = getMethodParamsTokenizer(); - java.util.List v = new ArrayList(); - java.util.List paramsList = new ArrayList(); - String current = null; - if (tok != null) { - while (current != null || tok.hasMoreTokens()) { - String peek = null; - if (current == null) - current = tok.nextToken(); - if (tok.hasMoreTokens()) { - peek = tok.nextToken(); - if (peek.startsWith("[")) { //$NON-NLS-1$ - current += peek; - peek = null; - } - } - v.add(current); - if (peek != null) - current = peek; - else - current = null; - } - - } - - /* - * This is a hack to make sure that for old XMI generated files, that ven if there was ',' separated - * params, it parses them back out right. To support 4.0.X AAT generated XMI files with runAs roles - * for methods. - */ - for (int i = 0; i < v.size(); i++) - { - tok = new StringTokenizer((String)v.get(i),","); //$NON-NLS-1$ - if (tok != null) - { - while (tok.hasMoreTokens()) - { - paramsList.add(tok.nextToken()); - } - } - } - return paramsList; -} -private StringTokenizer getMethodParamsTokenizer() { - //This method is a hack for now; the cardinality is wrong for the params - String aParms = getParms(); - if (aParms == null || aParms.length() == 0) { - return null; - } - return new StringTokenizer(getParms()); -} -/** - * Answer a list of all the methods for which this method element applies. The following rules are used: - * - * 1) If the method element type is unspecified, the methods are obtained from the remote interface of the ejb; - * If it is specified, then the appropriate interface is used - * - * 2) If the method name = "*", then all the PUBLIC methods for that interface are returned - * - * 3) If the method name is specified, and no method params are specified, then all public methods for the interface - * having the same name are returned. - * - * 4) If the method name and params are specified, then a zero or one element array is returned, containing the one and only method - * on the interface with the appropriate signature, if it exists - */ -public Method[] getMethods() { - EnterpriseBean ejb = getEnterpriseBean(); - if(ejb == null) - return new Method[0]; - List result = null; - switch (getType().getValue()) { - case MethodElementKind.HOME : - { - result = getMethods(ejb.getHomeInterface()); - break; - } - case MethodElementKind.REMOTE : - { - result = getMethods(ejb.getRemoteInterface()); - break; - } - case MethodElementKind.LOCAL_HOME : - { - result = getMethods(ejb.getLocalHomeInterface()); - break; - } - case MethodElementKind.LOCAL : - { - result = getMethods(ejb.getLocalInterface()); - break; - } - case MethodElementKind.SERVICE_ENDPOINT : - { - if(ejb.isSession()) { - result = getMethods(((Session)ejb).getServiceEndpoint()); - break; - } - } - case MethodElementKind.UNSPECIFIED : - { - if (ejb.isMessageDriven()) - result = getMethods(ejb.getEjbClass()); - else { - result = new ArrayList(); - result.addAll(getMethods(ejb.getHomeInterface())); - result.addAll(getMethods(ejb.getRemoteInterface())); - result.addAll(getMethods(ejb.getLocalHomeInterface())); - result.addAll(getMethods(ejb.getLocalInterface())); - } - break; - } - } - return (Method[]) result.toArray(new Method[result.size()]); -} -/** - * Answer a list of all the methods for which this method element applies. The following rules are used: - * - * 1) If the method element type is unspecified, the methods are obtained from the remote interface of the ejb; - * If it is specified, then the appropriate interface is used - * - * 2) If the method name = "*", then all the PUBLIC methods for that interface are returned - * - * 3) If the method name is specified, and no method params are specified, then all public methods for the interface - * having the same name are returned. - * - * 4) If the method name and params are specified, then a zero or one element array is returned, containing the one and only method - * on the interface with the appropriate signature, if it exists - */ -private List getMethods(JavaClass javaClass) { - if (javaClass == null) return Collections.EMPTY_LIST; - List result = null; - String methodName = getName().trim(); - if (name.equals("*")) //$NON-NLS-1$ - result = javaClass.getPublicMethodsExtended(); - else if (hasMethodParams()) { - result = new ArrayList(); - Method method = javaClass.getPublicMethodExtended(name, getMethodParams()); - if (method != null) - result.add(method); - } else - result = javaClass.getPublicMethodsExtendedNamed(methodName); - - return result; -} -/** - * Return the MethodElement that is most specific. - */ -public MethodElement getMostSpecific(MethodElement aMethodElement, JavaClass aClass) { - if (aMethodElement == null) return this; - if (aMethodElement.isDefault() && !isDefault()) - return this; - if (!aMethodElement.isDefault() && isDefault()) - return aMethodElement; - if (aMethodElement.hasMethodParams() && !hasMethodParams()) - return aMethodElement; - if (!aMethodElement.hasMethodParams() && hasMethodParams()) - return this; - if (isUnspecified() && !aMethodElement.isUnspecified()) - return aMethodElement; - return this; -} -public static MethodElement getMostSpecificMethodElement(List methodElements, Method aMethod) { - MethodElement specificME = null; - if (aMethod != null) { - Iterator it = methodElements.iterator(); - MethodElement me; - while (it.hasNext()) { - me = (MethodElement) it.next(); - if (me.represents(aMethod)) { - if (me.uniquelyIdentifies(aMethod)) - return me; - else if (specificME == null) - specificME = me; - else - specificME = specificME.getMostSpecific(me, aMethod.getJavaClass()); - } - } - } - return specificME; -} -protected String getParmsString() { - String parmString = getParms(); - if (parmString == null) - parmString = ""; //$NON-NLS-1$ - return parmString; -} -/** - * Return a String array for the possible MethodElement type names. - */ -public static String[] getPossibleTypeNames() { - EjbPackage pack = EjbFactoryImpl.getPackage(); - List literals = pack.getMethodElementKind().getELiterals(); - String[] names = new String[literals.size()]; - for (int i = 0; i < literals.size(); i++) - names[i] = literals.get(i).toString(); - return names; -} -/** - * Return the signature. - * For example: setTwoParamMethod(java.lang.String, java.lang.String) - */ -public String getSignature() { - if (isDefault()) - return getName(); - StringBuffer buf = new StringBuffer(); - buf.append(getName()); - if (hasMethodParams()){ - buf.append(RIGHT_PAREN); - StringTokenizer tok = getMethodParamsTokenizer(); - if (tok != null) { - while (tok.hasMoreTokens()) { - buf.append(tok.nextToken()); - if (tok.hasMoreTokens()) - buf.append(COMMA); - } - } - buf.append(LEFT_PAREN); - } - return buf.toString(); -} -// Returns null if the EEnum is UNSPECIFIED -// unless it is a MessageDriven bean. -public JavaClass getTypeJavaClass() { - if (isHome()) - return getEnterpriseBean().getHomeInterface(); - else if (isRemote()) - return getEnterpriseBean().getRemoteInterface(); - else if (isLocalHome()) - return getEnterpriseBean().getLocalHomeInterface(); - else if (isLocal()) - return getEnterpriseBean().getLocalInterface(); - else if (isUnspecified() && getEnterpriseBean().isMessageDriven()) - return getEnterpriseBean().getEjbClass(); - else - return null; -} - /** - * Answer whether method params apply to this method, e.g., it is specific to one - * overloaded method, even if the method is a zero parameter method. Answer false if no - * parameters apply, that is, the method element applies to all overloaded methods with this name - */ -public boolean hasMethodParams() { - return getParms() != null; -} -/** - * Parse @aSignature setting the name and the params. - * A signature example: setTwoParamMethod(java.lang.String, java.lang.String) - */ -public void initializeFromSignature(String aSignature) { - parseSignature(aSignature); -} -public boolean isDefault() { - return JavaClass.DEFAULT_METHOD_NAME.equals(getName()); -} -/** - * Return true if this MethodElement and @anotherMethodElement - * represent the same exact methods. - */ -public boolean isEquivalent(MethodElement anotherMethodElement) { - boolean equal = equalSignature(anotherMethodElement); - if (equal) - equal = getEnterpriseBean() == anotherMethodElement.getEnterpriseBean(); - return equal; -} -public boolean isHome() { - return getType().getValue() == MethodElementKind.HOME; -} -public boolean isRemote() { - return getType().getValue() == MethodElementKind.REMOTE; -} -public boolean isUnspecified() { - return getType().getValue() == MethodElementKind.UNSPECIFIED; -} -public boolean isLocalHome() { - return getType().getValue() == MethodElementKind.LOCAL_HOME; -} -public boolean isLocal() { - return getType().getValue() == MethodElementKind.LOCAL; -} -/** - * Return true if this MethodElement represents one or more - * methods. - */ -public boolean isValid() { - return getMethods().length > 0; -} -/** - * Return true only if all the parameters for @aMethod - * matches the names in the list of parameters. - */ -public boolean matchesParams(Method aMethod) { - if (aMethod == null) return false; - List params = getMethodParams(); - JavaParameter[] methodParams = aMethod.listParametersWithoutReturn(); - if (params.size() != methodParams.length) - return false; - for (int i = 0; i < methodParams.length; i++){ - String parameterType = ((JavaHelpers)methodParams[i].getEType()).getQualifiedName(); - if (!params.get(i).equals(parameterType)) - return false; - } - return true; -} -/** - * Return true if this MethodElement has the same basic signature as - * @aMethod, ignoring the return type, thrown exceptions, and declaring class of - * this instance or @aMethod. Return false, if params is null - */ -public boolean nameAndParamsEquals(Method aMethod) { - if (aMethod != null) { - if (getName().equals(aMethod.getName())) { - if (hasMethodParams()) - return matchesParams(aMethod); - return false; - } - } - return false; -} -protected boolean parmsEqual(MethodElement me) { - if (me == null) return false; - List myParms, otherParms; - myParms = getMethodParams(); - otherParms = me.getMethodParams(); - if (myParms.size() != otherParms.size()) return false; - for (int i = 0; i < myParms.size(); i++){ - if (!myParms.get(i).equals(otherParms.get(i))) - return false; - } - return true; -} -/** - * Parse @aSignature setting the name and the params. - * A signature example: setTwoParamMethod(java.lang.String, java.lang.String) - */ -protected void parseSignature(String aSignature) { - int index = aSignature.indexOf(RIGHT_PAREN); - - int endIndex = aSignature.indexOf(LEFT_PAREN); - if (endIndex < 0) - { - endIndex = aSignature.length() - 1; - } - - if (index < 0){ - setName(aSignature); - setParms(null); //There are no parameters in the sig so set to null - } - else { - String sigName = aSignature.substring(0, index); - - setName(sigName); - String sigParms = aSignature.substring(index + 1, endIndex); - - if (sigParms.length() > 0) { - char commaChar = COMMA.charAt(0); - char[] sigParmsChars = sigParms.toCharArray(); - StringBuffer buf = new StringBuffer(); - for (int i = 0; i < sigParmsChars.length; i++) { - if (sigParmsChars[i] != commaChar) { - buf.append(sigParmsChars[i]); - } else { - addMethodParams(buf.toString()); - buf = new StringBuffer(); - } - } - addMethodParams(buf.toString()); - } else - applyZeroParams(); - } -} -public void removeMethodParams(String param) { - String myParams = getParms(); - if (myParams == null || myParams.length() == 0) { - return; - } - StringTokenizer tok = new StringTokenizer(myParams); - StringBuffer newParms = new StringBuffer(); - while (tok.hasMoreElements()) { - String token = tok.nextToken(); - if (!token.equals(param)) { - newParms.append(token); - newParms.append(" "); //$NON-NLS-1$ - } - } - setParms(newParms.toString().trim()); -} -/** - * represents method comment. - */ -public boolean represents(Method aMethod) { - if (aMethod != null) { - if (isUnspecified() || typeClassImplementsInterface(aMethod.getJavaClass())) { - if (isDefault()) - return true; - else - if (getName().equals(aMethod.getName())) { - if (hasMethodParams()) - return matchesParams(aMethod); - return true; - } - } - } - return false; -} -/** - * Sets the id to be [MethodTransactionID| MethodPermissionID]_EJBNAME_MethodName, - * or [MethodTransactionID| MethodPermissionID]_EJBNAME_MethodName_Parms, if parms exist - */ -public void setIdToReadableString() { - String aParms = getParms() == null ? "" : "_"+getParms().replace(' ', '_'); //$NON-NLS-1$ //$NON-NLS-2$ - String prefix = ""; //$NON-NLS-1$ - switch (MethodElementHelper.getContainedType(this)) { - case MethodElementHelper.METHOD_PERMISSION : - prefix = ((XMIResource)eContainer.eResource()).getID(eContainer); - break; - case MethodElementHelper.METHOD_TRANSACTION : - prefix = ((XMIResource)eContainer.eResource()).getID(eContainer); - break; - } - ((XMIResource)eResource()).setID(this,prefix + "_" + getEnterpriseBean().getName() + "_" + getName() + aParms); //$NON-NLS-1$ //$NON-NLS-2$ -} -protected boolean typeClassImplementsInterface(JavaClass anInterface) { - if (getTypeJavaClass() == null || anInterface == null) return false; - return getTypeJavaClass().implementsInterface(anInterface); -} -/** - * Return true if this MethodElement uniquely identifies - * @aMethod. Return false, even if the MethodElement represents - * @aMethod (i.e., @aMethod is contained in its list of methods). - */ -public boolean uniquelyIdentifies(Method aMethod) { - if (aMethod != null) { - if (getTypeJavaClass() != null && - typeClassImplementsInterface(aMethod.getJavaClass()) && - getName().equals(aMethod.getName())) { - if (hasMethodParams()) - return matchesParams(aMethod); - return aMethod.listParametersWithoutReturn().length==0; - } - } - return false; -} - /** - * @generated This field/method will be replaced during code generation - * The method-name element contains a name of an enterprise bean method, - * or the asterisk (*) character. The asterisk is used when the element - * denotes all the methods of an enterprise bean's remote and home - * interfaces. - - */ - public String getName() { - return name; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_ELEMENT__NAME, oldName, name)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getParms() { - return parms; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setParms(String newParms) { - String oldParms = parms; - parms = newParms; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_ELEMENT__PARMS, oldParms, parms)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public MethodElementKind getType() { - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setType(MethodElementKind newType) { - MethodElementKind oldType = type; - type = newType == null ? TYPE_EDEFAULT : newType; - boolean oldTypeESet = typeESet; - typeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_ELEMENT__TYPE, oldType, type, !oldTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetType() { - MethodElementKind oldType = type; - boolean oldTypeESet = typeESet; - type = TYPE_EDEFAULT; - typeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.METHOD_ELEMENT__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetType() { - return typeESet; - } - - /** - * @generated This field/method will be replaced during code generation - * The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_ELEMENT__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EnterpriseBean getEnterpriseBean() { - if (enterpriseBean != null && enterpriseBean.eIsProxy()) { - EnterpriseBean oldEnterpriseBean = enterpriseBean; - enterpriseBean = (EnterpriseBean)eResolveProxy((InternalEObject)enterpriseBean); - if (enterpriseBean != oldEnterpriseBean) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.METHOD_ELEMENT__ENTERPRISE_BEAN, oldEnterpriseBean, enterpriseBean)); - } - } - return enterpriseBean; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EnterpriseBean basicGetEnterpriseBean() { - return enterpriseBean; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setEnterpriseBean(EnterpriseBean newEnterpriseBean) { - EnterpriseBean oldEnterpriseBean = enterpriseBean; - enterpriseBean = newEnterpriseBean; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_ELEMENT__ENTERPRISE_BEAN, oldEnterpriseBean, enterpriseBean)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.METHOD_ELEMENT__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.METHOD_ELEMENT__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_ELEMENT__NAME: - return getName(); - case EjbPackage.METHOD_ELEMENT__PARMS: - return getParms(); - case EjbPackage.METHOD_ELEMENT__TYPE: - return getType(); - case EjbPackage.METHOD_ELEMENT__DESCRIPTION: - return getDescription(); - case EjbPackage.METHOD_ELEMENT__ENTERPRISE_BEAN: - if (resolve) return getEnterpriseBean(); - return basicGetEnterpriseBean(); - case EjbPackage.METHOD_ELEMENT__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EjbPackage.METHOD_ELEMENT__PARMS: - return PARMS_EDEFAULT == null ? parms != null : !PARMS_EDEFAULT.equals(parms); - case EjbPackage.METHOD_ELEMENT__TYPE: - return isSetType(); - case EjbPackage.METHOD_ELEMENT__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.METHOD_ELEMENT__ENTERPRISE_BEAN: - return enterpriseBean != null; - case EjbPackage.METHOD_ELEMENT__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_ELEMENT__NAME: - setName((String)newValue); - return; - case EjbPackage.METHOD_ELEMENT__PARMS: - setParms((String)newValue); - return; - case EjbPackage.METHOD_ELEMENT__TYPE: - setType((MethodElementKind)newValue); - return; - case EjbPackage.METHOD_ELEMENT__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.METHOD_ELEMENT__ENTERPRISE_BEAN: - setEnterpriseBean((EnterpriseBean)newValue); - return; - case EjbPackage.METHOD_ELEMENT__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - case EjbPackage.METHOD_ELEMENT__PARMS: - setParms(PARMS_EDEFAULT); - return; - case EjbPackage.METHOD_ELEMENT__TYPE: - unsetType(); - return; - case EjbPackage.METHOD_ELEMENT__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.METHOD_ELEMENT__ENTERPRISE_BEAN: - setEnterpriseBean((EnterpriseBean)null); - return; - case EjbPackage.METHOD_ELEMENT__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(", parms: "); - result.append(parms); - result.append(", type: "); - if (typeESet) result.append(type); else result.append("<unset>"); - result.append(", description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MethodPermissionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MethodPermissionImpl.java deleted file mode 100644 index 5107e44ef..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MethodPermissionImpl.java +++ /dev/null @@ -1,464 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodPermission; - -/** - * The method-permission element specifies that one or more security roles are allowed to invoke one or more enterprise bean methods. The method-permission element consists of an optional description, a list of security role names, and a list of method elements. The security roles used in the method-permission element must be defined in the security-role element of the deployment descriptor, and the methods must be methods defined in the enterprise bean's remote and//or home interfaces. - */ -public class MethodPermissionImpl extends EObjectImpl implements MethodPermission, EObject { - - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #isUnchecked() <em>Unchecked</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isUnchecked() - * @generated - * @ordered - */ - protected static final boolean UNCHECKED_EDEFAULT = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected boolean unchecked = UNCHECKED_EDEFAULT; - /** - * This is true if the Unchecked attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean uncheckedESet = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList roles = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList methodElements = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public MethodPermissionImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getMethodPermission(); - } - -public List getMethodElements(EnterpriseBean anEJB) { - if (anEJB == null) return Collections.EMPTY_LIST; - List result = new ArrayList(); - List elements = getMethodElements(); - MethodElement me; - for (int i = 0; i < elements.size(); i++){ - me = (MethodElement) elements.get(i); - if (anEJB.equals(me.getEnterpriseBean())) - result.add(me); - } - return result; -} -public SecurityRole getSecurityRole(String aRoleName) { - if (aRoleName == null) return null; - List myRoles = getRoles(); - int size = myRoles.size(); - SecurityRole role; - for (int i = 0; i < size; i++){ - role = (SecurityRole) myRoles.get(i); - if (aRoleName.equals(role.getRoleName())) - return role; - } - return null; -} -/** - * Return true if this permission contains @aSecurityRole - */ -public boolean hasSecurityRole(SecurityRole aSecurityRole) { - if (aSecurityRole == null) - return false; - List myRoles = getRoles(); - int size = myRoles.size(); - for (int i = 0; i < size; i++) { - if (aSecurityRole == myRoles.get(i)) - return true; - } - return false; -} -public boolean hasSecurityRole(String aRoleName) { - return getSecurityRole(aRoleName) != null; -} -/** - * Return true if this MethodPermission and @anotherMethodPermission - * have the same roles. - */ -public boolean isEquivalent(MethodPermission anotherMethodPermission) { - if (anotherMethodPermission == null) return false; - return getRoles().size() == anotherMethodPermission.getRoles().size() && - getRoles().containsAll(anotherMethodPermission.getRoles()); -} - /** - * @generated This field/method will be replaced during code generation - * The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_PERMISSION__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public boolean isUnchecked() { - return unchecked; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setUnchecked(boolean newUnchecked) { - boolean oldUnchecked = unchecked; - unchecked = newUnchecked; - boolean oldUncheckedESet = uncheckedESet; - uncheckedESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_PERMISSION__UNCHECKED, oldUnchecked, unchecked, !oldUncheckedESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetUnchecked() { - boolean oldUnchecked = unchecked; - boolean oldUncheckedESet = uncheckedESet; - unchecked = UNCHECKED_EDEFAULT; - uncheckedESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.METHOD_PERMISSION__UNCHECKED, oldUnchecked, UNCHECKED_EDEFAULT, oldUncheckedESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetUnchecked() { - return uncheckedESet; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public AssemblyDescriptor getAssemblyDescriptor() { - if (eContainerFeatureID != EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR) return null; - return (AssemblyDescriptor)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setAssemblyDescriptor(AssemblyDescriptor newAssemblyDescriptor) { - if (newAssemblyDescriptor != eContainer || (eContainerFeatureID != EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR && newAssemblyDescriptor != null)) { - if (EcoreUtil.isAncestor(this, newAssemblyDescriptor)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newAssemblyDescriptor != null) - msgs = ((InternalEObject)newAssemblyDescriptor).eInverseAdd(this, EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS, AssemblyDescriptor.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newAssemblyDescriptor, EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR, newAssemblyDescriptor, newAssemblyDescriptor)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getRoles() { - if (roles == null) { - roles = new EObjectResolvingEList(SecurityRole.class, this, EjbPackage.METHOD_PERMISSION__ROLES); - } - return roles; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getMethodElements() { - if (methodElements == null) { - methodElements = new EObjectContainmentEList(MethodElement.class, this, EjbPackage.METHOD_PERMISSION__METHOD_ELEMENTS); - } - return methodElements; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.METHOD_PERMISSION__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR: - return eBasicSetContainer(null, EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR, msgs); - case EjbPackage.METHOD_PERMISSION__METHOD_ELEMENTS: - return ((InternalEList)getMethodElements()).basicRemove(otherEnd, msgs); - case EjbPackage.METHOD_PERMISSION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR: - return eContainer.eInverseRemove(this, EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_PERMISSIONS, AssemblyDescriptor.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_PERMISSION__DESCRIPTION: - return getDescription(); - case EjbPackage.METHOD_PERMISSION__UNCHECKED: - return isUnchecked() ? Boolean.TRUE : Boolean.FALSE; - case EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR: - return getAssemblyDescriptor(); - case EjbPackage.METHOD_PERMISSION__ROLES: - return getRoles(); - case EjbPackage.METHOD_PERMISSION__METHOD_ELEMENTS: - return getMethodElements(); - case EjbPackage.METHOD_PERMISSION__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_PERMISSION__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.METHOD_PERMISSION__UNCHECKED: - return isSetUnchecked(); - case EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR: - return getAssemblyDescriptor() != null; - case EjbPackage.METHOD_PERMISSION__ROLES: - return roles != null && !roles.isEmpty(); - case EjbPackage.METHOD_PERMISSION__METHOD_ELEMENTS: - return methodElements != null && !methodElements.isEmpty(); - case EjbPackage.METHOD_PERMISSION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_PERMISSION__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.METHOD_PERMISSION__UNCHECKED: - setUnchecked(((Boolean)newValue).booleanValue()); - return; - case EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR: - setAssemblyDescriptor((AssemblyDescriptor)newValue); - return; - case EjbPackage.METHOD_PERMISSION__ROLES: - getRoles().clear(); - getRoles().addAll((Collection)newValue); - return; - case EjbPackage.METHOD_PERMISSION__METHOD_ELEMENTS: - getMethodElements().clear(); - getMethodElements().addAll((Collection)newValue); - return; - case EjbPackage.METHOD_PERMISSION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_PERMISSION__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.METHOD_PERMISSION__UNCHECKED: - unsetUnchecked(); - return; - case EjbPackage.METHOD_PERMISSION__ASSEMBLY_DESCRIPTOR: - setAssemblyDescriptor((AssemblyDescriptor)null); - return; - case EjbPackage.METHOD_PERMISSION__ROLES: - getRoles().clear(); - return; - case EjbPackage.METHOD_PERMISSION__METHOD_ELEMENTS: - getMethodElements().clear(); - return; - case EjbPackage.METHOD_PERMISSION__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", unchecked: "); - if (uncheckedESet) result.append(unchecked); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MethodTransactionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MethodTransactionImpl.java deleted file mode 100644 index a730458a2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/MethodTransactionImpl.java +++ /dev/null @@ -1,431 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnumLiteral; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; -import org.eclipse.jst.j2ee.ejb.TransactionAttributeType; - -/** - * Specifies how the container must manage transaction scopes for the enterprise bean's method invocations. It consists of an optional description, a list of method elements, and a transaction attribute.The transaction attribute is to be applied to all the specified methods. - */ -public class MethodTransactionImpl extends EObjectImpl implements MethodTransaction, EObject { - - /** - * The default value of the '{@link #getTransactionAttribute() <em>Transaction Attribute</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTransactionAttribute() - * @generated - * @ordered - */ - protected static final TransactionAttributeType TRANSACTION_ATTRIBUTE_EDEFAULT = TransactionAttributeType.NOT_SUPPORTED_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected TransactionAttributeType transactionAttribute = TRANSACTION_ATTRIBUTE_EDEFAULT; - /** - * This is true if the Transaction Attribute attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean transactionAttributeESet = false; - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList methodElements = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public MethodTransactionImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getMethodTransaction(); - } - -/** - * Return an array of Strings for all the EEnumLiteral values - * for the transactionAttribute enumeration. - */ -public static String[] getAvailableTransactionAttributeNames() { - List l = getAvailableTransactionAttributes(); - String[] names = new String[l.size()]; - for (int i = 0; i < l.size(); i++) - names[i] = ((EEnumLiteral)l.get(i)).toString(); - return names; -} -/** - * Return a List of the all the EEnumLiteral values - * for the transactionAttribute enumeration. - * The toString() method for a EEnumLiteral will display - * the String value for the enumeration value. - */ -public static List getAvailableTransactionAttributes() { - EjbPackage pack = (EjbPackage)EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI); - return pack.getTransactionAttributeType().getELiterals(); -} -public List getMethodElements(EnterpriseBean anEJB) { - List result = new ArrayList(); - List elements = getMethodElements(); - MethodElement me; - for (int i = 0; i < elements.size(); i++){ - me = (MethodElement) elements.get(i); - if (me.getEnterpriseBean() != null && me.getEnterpriseBean().equals(anEJB)) - result.add(me); - } - return result; -} -public MethodElement getMostSpecificMethodElement(Method aMethod) { - return MethodElementImpl.getMostSpecificMethodElement(getMethodElements(), aMethod); -} -public boolean isEquivalent(MethodTransaction anotherMethodTransaction) { - return getTransactionAttribute() == anotherMethodTransaction.getTransactionAttribute(); -} - /** - * @generated This field/method will be replaced during code generation - * The trans-attribute element specifies how the container must manage the transaction boundaries when delegating a method invocation to an enterprise bean's business method. - - */ - public TransactionAttributeType getTransactionAttribute() { - return transactionAttribute; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTransactionAttribute(TransactionAttributeType newTransactionAttribute) { - TransactionAttributeType oldTransactionAttribute = transactionAttribute; - transactionAttribute = newTransactionAttribute == null ? TRANSACTION_ATTRIBUTE_EDEFAULT : newTransactionAttribute; - boolean oldTransactionAttributeESet = transactionAttributeESet; - transactionAttributeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_TRANSACTION__TRANSACTION_ATTRIBUTE, oldTransactionAttribute, transactionAttribute, !oldTransactionAttributeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetTransactionAttribute() { - TransactionAttributeType oldTransactionAttribute = transactionAttribute; - boolean oldTransactionAttributeESet = transactionAttributeESet; - transactionAttribute = TRANSACTION_ATTRIBUTE_EDEFAULT; - transactionAttributeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.METHOD_TRANSACTION__TRANSACTION_ATTRIBUTE, oldTransactionAttribute, TRANSACTION_ATTRIBUTE_EDEFAULT, oldTransactionAttributeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetTransactionAttribute() { - return transactionAttributeESet; - } - - /** - * @generated This field/method will be replaced during code generation - * The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_TRANSACTION__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public AssemblyDescriptor getAssemblyDescriptor() { - if (eContainerFeatureID != EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR) return null; - return (AssemblyDescriptor)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setAssemblyDescriptor(AssemblyDescriptor newAssemblyDescriptor) { - if (newAssemblyDescriptor != eContainer || (eContainerFeatureID != EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR && newAssemblyDescriptor != null)) { - if (EcoreUtil.isAncestor(this, newAssemblyDescriptor)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newAssemblyDescriptor != null) - msgs = ((InternalEObject)newAssemblyDescriptor).eInverseAdd(this, EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS, AssemblyDescriptor.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newAssemblyDescriptor, EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR, newAssemblyDescriptor, newAssemblyDescriptor)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getMethodElements() { - if (methodElements == null) { - methodElements = new EObjectContainmentEList(MethodElement.class, this, EjbPackage.METHOD_TRANSACTION__METHOD_ELEMENTS); - } - return methodElements; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.METHOD_TRANSACTION__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR: - return eBasicSetContainer(null, EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR, msgs); - case EjbPackage.METHOD_TRANSACTION__METHOD_ELEMENTS: - return ((InternalEList)getMethodElements()).basicRemove(otherEnd, msgs); - case EjbPackage.METHOD_TRANSACTION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR: - return eContainer.eInverseRemove(this, EjbPackage.ASSEMBLY_DESCRIPTOR__METHOD_TRANSACTIONS, AssemblyDescriptor.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_TRANSACTION__TRANSACTION_ATTRIBUTE: - return getTransactionAttribute(); - case EjbPackage.METHOD_TRANSACTION__DESCRIPTION: - return getDescription(); - case EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR: - return getAssemblyDescriptor(); - case EjbPackage.METHOD_TRANSACTION__METHOD_ELEMENTS: - return getMethodElements(); - case EjbPackage.METHOD_TRANSACTION__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_TRANSACTION__TRANSACTION_ATTRIBUTE: - return isSetTransactionAttribute(); - case EjbPackage.METHOD_TRANSACTION__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR: - return getAssemblyDescriptor() != null; - case EjbPackage.METHOD_TRANSACTION__METHOD_ELEMENTS: - return methodElements != null && !methodElements.isEmpty(); - case EjbPackage.METHOD_TRANSACTION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_TRANSACTION__TRANSACTION_ATTRIBUTE: - setTransactionAttribute((TransactionAttributeType)newValue); - return; - case EjbPackage.METHOD_TRANSACTION__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR: - setAssemblyDescriptor((AssemblyDescriptor)newValue); - return; - case EjbPackage.METHOD_TRANSACTION__METHOD_ELEMENTS: - getMethodElements().clear(); - getMethodElements().addAll((Collection)newValue); - return; - case EjbPackage.METHOD_TRANSACTION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.METHOD_TRANSACTION__TRANSACTION_ATTRIBUTE: - unsetTransactionAttribute(); - return; - case EjbPackage.METHOD_TRANSACTION__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.METHOD_TRANSACTION__ASSEMBLY_DESCRIPTOR: - setAssemblyDescriptor((AssemblyDescriptor)null); - return; - case EjbPackage.METHOD_TRANSACTION__METHOD_ELEMENTS: - getMethodElements().clear(); - return; - case EjbPackage.METHOD_TRANSACTION__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (transactionAttribute: "); - if (transactionAttributeESet) result.append(transactionAttribute); else result.append("<unset>"); - result.append(", description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ModelledKeyAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ModelledKeyAttributeFilter.java deleted file mode 100644 index aef838df3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ModelledKeyAttributeFilter.java +++ /dev/null @@ -1,105 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - -/** - * This filter will return a subset of the keyAttributes from the - * ContainerManagedEntityExtension that is passed as an argument to the filter method. - * It will remove any keyAttributes that are held by EjbRelationshipRole objects (including - * inherited EjbRelationshipRole attributes). - * That means the returned list of CMPAttributes will be key attributes that were defined locally - * and all inherited key attributes minus any key attributes pointed to by EjbRelationshipRoles, thus the - * key attributes will only be key attributes that were defined by the user. - * Creation date: (11/28/2000 8:09:10 PM) - * @author: Administrator - */ -public class ModelledKeyAttributeFilter extends ContainerManagedEntityFilter { - private static ModelledKeyAttributeFilter singleton; -/** - * filter method comment. - */ -public List filter(ContainerManagedEntity cmp) { - return getSourceAttributes(cmp); -} -/** - * Return the proper list of attributes from cmpExt. - * Return all attributes minus those added due to Relationship Roles. - */ -protected java.util.List getSourceAttributes(ContainerManagedEntity cmp) { - java.util.List all, localRoleKeyAttributes; - all = new java.util.ArrayList(cmp.getKeyAttributes()); - localRoleKeyAttributes = cmp.getFilteredFeatures(KeyRelationshipRoleAttributeFilter.singleton()); - filterRoleAttributesByName(all, localRoleKeyAttributes); - return all; -} -/** - * Insert the method's description here. - * Creation date: (11/28/2000 5:36:00 PM) - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.ModelledKeyAttributeFilter - */ -public static ModelledKeyAttributeFilter singleton() { - if (singleton == null) - singleton = new ModelledKeyAttributeFilter(); - return singleton; -} -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ModelledPersistentAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ModelledPersistentAttributeFilter.java deleted file mode 100644 index e68e8d0cb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/ModelledPersistentAttributeFilter.java +++ /dev/null @@ -1,105 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - -/** - * This filter will return a subset of the persistentAttributes from the - * ContainerManagedEntityExtension that is passed as an argument to the filter method. - * It will remove any persistentAttributes that are held by EjbRelationshipRole objects (including - * inherited EjbRelationshipRole attributes). - * That means the returned list of CMPAttributes will be attributes that were defined locally - * and all inherited attributes minus any attributes pointed to by EjbRelationshipRoles, thus the - * attributes will only be attributes that were defined by the user. - * Creation date: (11/28/2000 7:31:42 PM) - * @author: Administrator - */ -public class ModelledPersistentAttributeFilter extends ContainerManagedEntityFilter { - private static ModelledPersistentAttributeFilter singleton; -/** - * filter method comment. - */ -public List filter(ContainerManagedEntity cmp) { - return getSourceAttributes(cmp); -} -/** - * Return the proper list of attributes from cmpExt. - * Return all attributes minus those added due to Relationship Roles. - */ -protected java.util.List getSourceAttributes(ContainerManagedEntity cmp) { - java.util.List all, roleAttributes; - all = new java.util.ArrayList(cmp.getPersistentAttributes()); - roleAttributes = cmp.getFilteredFeatures(RelationshipRoleAttributeFilter.singleton()); - filterRoleAttributesByName(all, roleAttributes); - return all; -} -/** - * Insert the method's description here. - * Creation date: (11/28/2000 5:36:00 PM) - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.ModelledPersistentAttributeFilter - */ -public static ModelledPersistentAttributeFilter singleton() { - if (singleton == null) - singleton = new ModelledPersistentAttributeFilter(); - return singleton; -} -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/NonKeyRequiredRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/NonKeyRequiredRoleFilter.java deleted file mode 100644 index e31f73c08..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/NonKeyRequiredRoleFilter.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on May 5, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - - -/** - * @author jlanuti - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class NonKeyRequiredRoleFilter extends ContainerManagedEntityFilter { - - private static NonKeyRequiredRoleFilter singleton; - - /** - * filter method comment. - */ - public List filter(ContainerManagedEntity cmp) { - List roles = new ArrayList(); - Iterator it = getRelationshipRoles(cmp).iterator(); - CommonRelationshipRole role; - while (it.hasNext()) { - role = (CommonRelationshipRole) it.next(); - if (!role.isKey() && role.isRequired()) roles.add(role); - } - return roles; - } - - /** - * Insert the method's description here. Creation date: (11/28/2000 7:15:37 - * PM) - * - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.KeyRelationshipRoleFilter - */ - public static NonKeyRequiredRoleFilter singleton() { - if (singleton == null) singleton = new NonKeyRequiredRoleFilter(); - return singleton; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/QueryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/QueryImpl.java deleted file mode 100644 index b447f79da..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/QueryImpl.java +++ /dev/null @@ -1,512 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.Query; -import org.eclipse.jst.j2ee.ejb.QueryMethod; -import org.eclipse.jst.j2ee.ejb.ReturnTypeMapping; - -/** - * The query element is used to specify a finder or select query. It contains an optional description of the query; the specification of the finder or select method it is used by; a specification of the return type mapping, if any, if the query is for a select method; and the EJB QL query string that defines the query. Queries that are expressible in EJB QL must use the ejb-ql element to specify the query. If a query - * is not expressible in EJB QL, the description element should be used to describe the semantics of the query and the ejb-ql element should be empty. - */ -public class QueryImpl extends EObjectImpl implements Query, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getEjbQL() <em>Ejb QL</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEjbQL() - * @generated - * @ordered - */ - protected static final String EJB_QL_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String ejbQL = EJB_QL_EDEFAULT; - /** - * The default value of the '{@link #getReturnTypeMapping() <em>Return Type Mapping</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getReturnTypeMapping() - * @generated - * @ordered - */ - protected static final ReturnTypeMapping RETURN_TYPE_MAPPING_EDEFAULT = ReturnTypeMapping.LOCAL_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected ReturnTypeMapping returnTypeMapping = RETURN_TYPE_MAPPING_EDEFAULT; - /** - * This is true if the Return Type Mapping attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean returnTypeMappingESet = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected QueryMethod queryMethod = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public QueryImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getQuery(); - } - -public boolean isLocalResultMapping() { - // override bug in the model which made Remote the default - return getReturnTypeMapping().getValue() == ReturnTypeMapping.LOCAL; -} -public boolean isRemoteResultMapping() { - return getReturnTypeMapping().getValue() == ReturnTypeMapping.REMOTE; -} - /** - * @generated This field/method will be replaced during code generation - * The description is used by the ejb-jar file producer to provide text describing the query. - * - * The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.QUERY__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - * Contains the EJB QL query string that defines a finder or select query. This element is defined within the scope of a query element whose contents specify the finder or the select method that uses the query. The content must be a valid EJB QL query string for the entity bean for which the query is specified. The ejb-ql element must be specified for all queries that are expressible in EJB QL. - * - * @invariant The value must be a valid EJB QL query string for the entity bean or dependent object class for which the query is specified. - * @invariant The ejb-ql element must be specified for all queries that are expressible in EJB QL. - * - * Example: - * <query> - * <query-method> - * <method-name>ejbSelectPendingLineitems<//method-name> - * <method-params//> - * <//query-method> - * <ejb-ql>SELECT ENTITY(l) - * FROM LineItems l - * WHERE l.shipped is FALSE - * <//ejb-ql> - * <//query> - */ - public String getEjbQL() { - return ejbQL; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setEjbQL(String newEjbQL) { - String oldEjbQL = ejbQL; - ejbQL = newEjbQL; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.QUERY__EJB_QL, oldEjbQL, ejbQL)); - } - - /** - * @generated This field/method will be replaced during code generation - * The return-type-mapping element is used in the query element to specify whether an abstract schema type that is returned by a query for a select method is to be mapped to an EJBLocalObject or EJBObject type. The value of the return-type-mapping element, if specified must be one of the following. - */ - public ReturnTypeMapping getReturnTypeMapping() { - return returnTypeMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setReturnTypeMapping(ReturnTypeMapping newReturnTypeMapping) { - ReturnTypeMapping oldReturnTypeMapping = returnTypeMapping; - returnTypeMapping = newReturnTypeMapping == null ? RETURN_TYPE_MAPPING_EDEFAULT : newReturnTypeMapping; - boolean oldReturnTypeMappingESet = returnTypeMappingESet; - returnTypeMappingESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.QUERY__RETURN_TYPE_MAPPING, oldReturnTypeMapping, returnTypeMapping, !oldReturnTypeMappingESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetReturnTypeMapping() { - ReturnTypeMapping oldReturnTypeMapping = returnTypeMapping; - boolean oldReturnTypeMappingESet = returnTypeMappingESet; - returnTypeMapping = RETURN_TYPE_MAPPING_EDEFAULT; - returnTypeMappingESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.QUERY__RETURN_TYPE_MAPPING, oldReturnTypeMapping, RETURN_TYPE_MAPPING_EDEFAULT, oldReturnTypeMappingESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetReturnTypeMapping() { - return returnTypeMappingESet; - } - - /** - * @generated This field/method will be replaced during code generation - * The query-method element is used to specify the method (DB//SR//CM-"on the home") for a finder or - * select query. - * - * The method-name element specifies the name of a finder or select - * method in the entity bean's implementation class or a select method in - * the dependent object class. - * - * Each method-param must be defined for a query-method using the - * method-params element. - * - * Used in: query - * - * Example: - * - * Example: - * <query> - * <description>Method finds large orders<//description> - * <query-method> - * <method-name>findLargeOrders<//method-name> - * <method-params><//method-params> - * <//query-method> - * <ejb-ql>SELECT ENTITY(o) FROM Order o WHERE o.amount > 1000<//ejb-ql> - * <//query> - */ - public QueryMethod getQueryMethod() { - return queryMethod; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetQueryMethod(QueryMethod newQueryMethod, NotificationChain msgs) { - QueryMethod oldQueryMethod = queryMethod; - queryMethod = newQueryMethod; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EjbPackage.QUERY__QUERY_METHOD, oldQueryMethod, newQueryMethod); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setQueryMethod(QueryMethod newQueryMethod) { - if (newQueryMethod != queryMethod) { - NotificationChain msgs = null; - if (queryMethod != null) - msgs = ((InternalEObject)queryMethod).eInverseRemove(this, EjbPackage.QUERY_METHOD__QUERY, QueryMethod.class, msgs); - if (newQueryMethod != null) - msgs = ((InternalEObject)newQueryMethod).eInverseAdd(this, EjbPackage.QUERY_METHOD__QUERY, QueryMethod.class, msgs); - msgs = basicSetQueryMethod(newQueryMethod, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.QUERY__QUERY_METHOD, newQueryMethod, newQueryMethod)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public ContainerManagedEntity getEntity() { - if (eContainerFeatureID != EjbPackage.QUERY__ENTITY) return null; - return (ContainerManagedEntity)eContainer; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setEntity(ContainerManagedEntity newEntity) { - if (newEntity != eContainer || (eContainerFeatureID != EjbPackage.QUERY__ENTITY && newEntity != null)) { - if (EcoreUtil.isAncestor(this, newEntity)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newEntity != null) - msgs = ((InternalEObject)newEntity).eInverseAdd(this, EjbPackage.CONTAINER_MANAGED_ENTITY__QUERIES, ContainerManagedEntity.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newEntity, EjbPackage.QUERY__ENTITY, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.QUERY__ENTITY, newEntity, newEntity)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.QUERY__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.QUERY__QUERY_METHOD: - if (queryMethod != null) - msgs = ((InternalEObject)queryMethod).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EjbPackage.QUERY__QUERY_METHOD, null, msgs); - return basicSetQueryMethod((QueryMethod)otherEnd, msgs); - case EjbPackage.QUERY__ENTITY: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.QUERY__ENTITY, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.QUERY__QUERY_METHOD: - return basicSetQueryMethod(null, msgs); - case EjbPackage.QUERY__ENTITY: - return eBasicSetContainer(null, EjbPackage.QUERY__ENTITY, msgs); - case EjbPackage.QUERY__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.QUERY__ENTITY: - return eContainer.eInverseRemove(this, EjbPackage.CONTAINER_MANAGED_ENTITY__QUERIES, ContainerManagedEntity.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.QUERY__DESCRIPTION: - return getDescription(); - case EjbPackage.QUERY__EJB_QL: - return getEjbQL(); - case EjbPackage.QUERY__RETURN_TYPE_MAPPING: - return getReturnTypeMapping(); - case EjbPackage.QUERY__QUERY_METHOD: - return getQueryMethod(); - case EjbPackage.QUERY__ENTITY: - return getEntity(); - case EjbPackage.QUERY__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.QUERY__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.QUERY__EJB_QL: - return EJB_QL_EDEFAULT == null ? ejbQL != null : !EJB_QL_EDEFAULT.equals(ejbQL); - case EjbPackage.QUERY__RETURN_TYPE_MAPPING: - return isSetReturnTypeMapping(); - case EjbPackage.QUERY__QUERY_METHOD: - return queryMethod != null; - case EjbPackage.QUERY__ENTITY: - return getEntity() != null; - case EjbPackage.QUERY__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.QUERY__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.QUERY__EJB_QL: - setEjbQL((String)newValue); - return; - case EjbPackage.QUERY__RETURN_TYPE_MAPPING: - setReturnTypeMapping((ReturnTypeMapping)newValue); - return; - case EjbPackage.QUERY__QUERY_METHOD: - setQueryMethod((QueryMethod)newValue); - return; - case EjbPackage.QUERY__ENTITY: - setEntity((ContainerManagedEntity)newValue); - return; - case EjbPackage.QUERY__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.QUERY__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.QUERY__EJB_QL: - setEjbQL(EJB_QL_EDEFAULT); - return; - case EjbPackage.QUERY__RETURN_TYPE_MAPPING: - unsetReturnTypeMapping(); - return; - case EjbPackage.QUERY__QUERY_METHOD: - setQueryMethod((QueryMethod)null); - return; - case EjbPackage.QUERY__ENTITY: - setEntity((ContainerManagedEntity)null); - return; - case EjbPackage.QUERY__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", ejbQL: "); - result.append(ejbQL); - result.append(", returnTypeMapping: "); - if (returnTypeMappingESet) result.append(returnTypeMapping); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/QueryMethodImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/QueryMethodImpl.java deleted file mode 100644 index 51ca365da..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/QueryMethodImpl.java +++ /dev/null @@ -1,373 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.MethodElementKind; -import org.eclipse.jst.j2ee.ejb.Query; -import org.eclipse.jst.j2ee.ejb.QueryMethod; - -/** - * @generated - */ -public class QueryMethodImpl extends MethodElementImpl implements QueryMethod{ - - public QueryMethodImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getQueryMethod(); - } - -/** - * For Query methods, their enterprise bean must be derived. - * It is the Entity which contains the Query. - */ -public EnterpriseBean getEnterpriseBean() { - if (enterpriseBean == null) { - if (getQuery() != null) - enterpriseBean = getQuery().getEntity(); - } - return enterpriseBean; -} -/** - * Answer the method for which this method element applies in the HOME INTERFACE. - */ -protected Method getHomeMethod() { - Method result = null; - JavaClass javaClass = getEnterpriseBean().getHomeInterface(); - if (javaClass != null) { - String methodName = getName().trim(); - if (hasMethodParams()) - result = javaClass.getPublicMethodExtended(methodName, getMethodParams()); - else { - List methods = javaClass.getPublicMethodsExtendedNamed(methodName); - if (!methods.isEmpty()) - result = (Method) methods.get(0); - } - } - return result; -} -/** - * Answer the method for which this method element applies in the LOCAL HOME INTERFACE. - */ -protected Method getLocalHomeMethod() { - Method result = null; - JavaClass javaClass = getEnterpriseBean().getLocalHomeInterface(); - if (javaClass != null) { - String methodName = getName().trim(); - if (hasMethodParams()) - result = javaClass.getPublicMethodExtended(methodName, getMethodParams()); - else { - List methods = javaClass.getPublicMethodsExtendedNamed(methodName); - if (!methods.isEmpty()) - result = (Method) methods.get(0); - } - } - return result; -} - - - -protected void addMethodIfNotNull(List aList, Method aMethod) { - if (aMethod != null) - aList.add(aMethod); -} -/** - * This method will return a zero-length Method[] if there is no matching method - * on the home, local home, or bean class. It will return exactly one method - * for ejbSelect, and one or two methods for finders. The two method case occurs - * when the same method with the same signature exists on both the home and - * local home. - */ -public Method[] getMethods() { - List result = new ArrayList(2); - if (getName().startsWith("ejbSelect")) { //$NON-NLS-1$ - addMethodIfNotNull(result, getSelectMethod()); - } else { - addMethodIfNotNull(result, getHomeMethod()); - addMethodIfNotNull(result, getLocalHomeMethod()); - } - return (Method[])result.toArray(new Method[result.size()]); -} -/** - * Answer the method for which this method element applies in the HOME INTERFACE. - */ -protected Method getSelectMethod() { - Method result = null; - JavaClass javaClass = getEnterpriseBean().getEjbClass(); - String methodName = getName().trim(); - if (hasMethodParams()) - result = javaClass.getPublicMethodExtended(name, getMethodParams()); - else { - List methods = javaClass.getPublicMethodsExtendedNamed(methodName); - if (!methods.isEmpty()) - result = (Method) methods.iterator().next(); - } - return result; -} - /** - * @generated This field/method will be replaced during code generation - */ - public Query getQuery() { - if (eContainerFeatureID != EjbPackage.QUERY_METHOD__QUERY) return null; - return (Query)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setQuery(Query newQuery) { - if (newQuery != eContainer || (eContainerFeatureID != EjbPackage.QUERY_METHOD__QUERY && newQuery != null)) { - if (EcoreUtil.isAncestor(this, newQuery)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newQuery != null) - msgs = ((InternalEObject)newQuery).eInverseAdd(this, EjbPackage.QUERY__QUERY_METHOD, Query.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newQuery, EjbPackage.QUERY_METHOD__QUERY, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.QUERY_METHOD__QUERY, newQuery, newQuery)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.QUERY_METHOD__QUERY: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.QUERY_METHOD__QUERY, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.QUERY_METHOD__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case EjbPackage.QUERY_METHOD__QUERY: - return eBasicSetContainer(null, EjbPackage.QUERY_METHOD__QUERY, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.QUERY_METHOD__QUERY: - return eContainer.eInverseRemove(this, EjbPackage.QUERY__QUERY_METHOD, Query.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.QUERY_METHOD__NAME: - return getName(); - case EjbPackage.QUERY_METHOD__PARMS: - return getParms(); - case EjbPackage.QUERY_METHOD__TYPE: - return getType(); - case EjbPackage.QUERY_METHOD__DESCRIPTION: - return getDescription(); - case EjbPackage.QUERY_METHOD__ENTERPRISE_BEAN: - if (resolve) return getEnterpriseBean(); - return basicGetEnterpriseBean(); - case EjbPackage.QUERY_METHOD__DESCRIPTIONS: - return getDescriptions(); - case EjbPackage.QUERY_METHOD__QUERY: - return getQuery(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.QUERY_METHOD__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EjbPackage.QUERY_METHOD__PARMS: - return PARMS_EDEFAULT == null ? parms != null : !PARMS_EDEFAULT.equals(parms); - case EjbPackage.QUERY_METHOD__TYPE: - return isSetType(); - case EjbPackage.QUERY_METHOD__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.QUERY_METHOD__ENTERPRISE_BEAN: - return enterpriseBean != null; - case EjbPackage.QUERY_METHOD__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case EjbPackage.QUERY_METHOD__QUERY: - return getQuery() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.QUERY_METHOD__NAME: - setName((String)newValue); - return; - case EjbPackage.QUERY_METHOD__PARMS: - setParms((String)newValue); - return; - case EjbPackage.QUERY_METHOD__TYPE: - setType((MethodElementKind)newValue); - return; - case EjbPackage.QUERY_METHOD__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.QUERY_METHOD__ENTERPRISE_BEAN: - setEnterpriseBean((EnterpriseBean)newValue); - return; - case EjbPackage.QUERY_METHOD__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case EjbPackage.QUERY_METHOD__QUERY: - setQuery((Query)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.QUERY_METHOD__NAME: - setName(NAME_EDEFAULT); - return; - case EjbPackage.QUERY_METHOD__PARMS: - setParms(PARMS_EDEFAULT); - return; - case EjbPackage.QUERY_METHOD__TYPE: - unsetType(); - return; - case EjbPackage.QUERY_METHOD__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.QUERY_METHOD__ENTERPRISE_BEAN: - setEnterpriseBean((EnterpriseBean)null); - return; - case EjbPackage.QUERY_METHOD__DESCRIPTIONS: - getDescriptions().clear(); - return; - case EjbPackage.QUERY_METHOD__QUERY: - setQuery((Query)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * You should use getClientTypeJavaClasses to ensure you pick up both home interfaces - * if they exist. - */ - public JavaClass getTypeJavaClass() { - JavaClass[] result = getClientTypeJavaClasses(); - if (result != null && result.length > 0) - return result[0]; - return null; - } - - /** - * Return an array of JavaClasses of all the interfaces or bean class that this method is presented - * to a client. If it is an ejbSelect... on the bean class will be returned and if - * it if a find both home interfaces will be returned if they exist. - * - * May return null. - */ - public JavaClass[] getClientTypeJavaClasses() { - if (getName() == null || getEnterpriseBean() == null) return null; - EnterpriseBean ejb = getEnterpriseBean(); - if (getName().startsWith(SELECT_PREFIX)) - return new JavaClass[]{ejb.getEjbClass()}; - //Next case is tougher since you could have both a remove and local client - //We want to return the home interface in this case. - if (getName().startsWith(FIND_PREFIX)) { - if (ejb.hasLocalClient() && !ejb.hasRemoteClient()) - return new JavaClass[]{getEnterpriseBean().getLocalHomeInterface()}; - if (ejb.hasRemoteClient() && !ejb.hasLocalClient()) - return new JavaClass[]{ejb.getHomeInterface()}; - if (ejb.hasRemoteClient() && ejb.hasLocalClient()) - return new JavaClass[]{ejb.getLocalHomeInterface(), ejb.getHomeInterface()}; - } - return null; - } -} - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RelationshipRoleAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RelationshipRoleAttributeFilter.java deleted file mode 100644 index c6fb84d29..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RelationshipRoleAttributeFilter.java +++ /dev/null @@ -1,92 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - -/** - * This filter will return a subset of the persistentAttributes (this includes inherited - * attributes) from the ContainerManagedEntityExtension that is passed as an - * argument to the filter method. - * It will remove any attribute that is not pointed to by an EjbRelationshipRole. - * Thus, the returned list will contain attributes (including inherited attributes) that only - * belong to roles. - * Creation date: (11/28/2000 6:46:08 PM) - * @author: Administrator - */ -public class RelationshipRoleAttributeFilter extends AbstractRelationshipRoleAttributeFilter { - private static RelationshipRoleAttributeFilter singleton; -/** - * Return the proper list of roles from cmpExt. - */ -protected java.util.List getSourceRoles(ContainerManagedEntity cmp) { - return getRelationshipRoles(cmp); -} -/** - * Insert the method's description here. - * Creation date: (11/28/2000 5:36:00 PM) - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.RelationshipRoleAttributeFilter - */ -public static RelationshipRoleAttributeFilter singleton() { - if (singleton == null) - singleton = new RelationshipRoleAttributeFilter(); - return singleton; -} -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RelationshipsImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RelationshipsImpl.java deleted file mode 100644 index cb40d597b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RelationshipsImpl.java +++ /dev/null @@ -1,312 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.Relationships; - -/** - * The relationships describes the relationships in which entity beans with container managed persistence participate. The relationships element contains an optional description; and a list of ejb-relation elements, which specify the container managed relationships. - */ -public class RelationshipsImpl extends EObjectImpl implements Relationships, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList ejbRelations = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public RelationshipsImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getRelationships(); - } - - /** - * @generated This field/method will be replaced during code generation - * The description is used by the ejb-jar file producer to provide text describing the collection of relationships. - * - * The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.RELATIONSHIPS__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EJBJar getEjbJar() { - if (eContainerFeatureID != EjbPackage.RELATIONSHIPS__EJB_JAR) return null; - return (EJBJar)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setEjbJar(EJBJar newEjbJar) { - if (newEjbJar != eContainer || (eContainerFeatureID != EjbPackage.RELATIONSHIPS__EJB_JAR && newEjbJar != null)) { - if (EcoreUtil.isAncestor(this, newEjbJar)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newEjbJar != null) - msgs = ((InternalEObject)newEjbJar).eInverseAdd(this, EjbPackage.EJB_JAR__RELATIONSHIP_LIST, EJBJar.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newEjbJar, EjbPackage.RELATIONSHIPS__EJB_JAR, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.RELATIONSHIPS__EJB_JAR, newEjbJar, newEjbJar)); - } - - /** - * @generated This field/method will be replaced during code generation - * A list of ejb-relation elements, which specify the container managed - * relationships. - */ - public EList getEjbRelations() { - if (ejbRelations == null) { - ejbRelations = new EObjectContainmentWithInverseEList(EJBRelation.class, this, EjbPackage.RELATIONSHIPS__EJB_RELATIONS, EjbPackage.EJB_RELATION__RELATIONSHIP_LIST); - } - return ejbRelations; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.RELATIONSHIPS__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.RELATIONSHIPS__EJB_JAR: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.RELATIONSHIPS__EJB_JAR, msgs); - case EjbPackage.RELATIONSHIPS__EJB_RELATIONS: - return ((InternalEList)getEjbRelations()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.RELATIONSHIPS__EJB_JAR: - return eBasicSetContainer(null, EjbPackage.RELATIONSHIPS__EJB_JAR, msgs); - case EjbPackage.RELATIONSHIPS__EJB_RELATIONS: - return ((InternalEList)getEjbRelations()).basicRemove(otherEnd, msgs); - case EjbPackage.RELATIONSHIPS__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.RELATIONSHIPS__EJB_JAR: - return eContainer.eInverseRemove(this, EjbPackage.EJB_JAR__RELATIONSHIP_LIST, EJBJar.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.RELATIONSHIPS__DESCRIPTION: - return getDescription(); - case EjbPackage.RELATIONSHIPS__EJB_JAR: - return getEjbJar(); - case EjbPackage.RELATIONSHIPS__EJB_RELATIONS: - return getEjbRelations(); - case EjbPackage.RELATIONSHIPS__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.RELATIONSHIPS__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.RELATIONSHIPS__EJB_JAR: - return getEjbJar() != null; - case EjbPackage.RELATIONSHIPS__EJB_RELATIONS: - return ejbRelations != null && !ejbRelations.isEmpty(); - case EjbPackage.RELATIONSHIPS__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.RELATIONSHIPS__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.RELATIONSHIPS__EJB_JAR: - setEjbJar((EJBJar)newValue); - return; - case EjbPackage.RELATIONSHIPS__EJB_RELATIONS: - getEjbRelations().clear(); - getEjbRelations().addAll((Collection)newValue); - return; - case EjbPackage.RELATIONSHIPS__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.RELATIONSHIPS__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.RELATIONSHIPS__EJB_JAR: - setEjbJar((EJBJar)null); - return; - case EjbPackage.RELATIONSHIPS__EJB_RELATIONS: - getEjbRelations().clear(); - return; - case EjbPackage.RELATIONSHIPS__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RequiredLocalRelationshipRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RequiredLocalRelationshipRoleFilter.java deleted file mode 100644 index f67cb999b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RequiredLocalRelationshipRoleFilter.java +++ /dev/null @@ -1,91 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.Collections; - -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.internal.EjbModuleExtensionHelper; - - -/** - * Insert the type's description here. - * Creation date: (10/15/2001 11:35:00 AM) - * @author: Administrator - */ -public class RequiredLocalRelationshipRoleFilter extends AbstractRequiredRelationshipRoleFilter { - private static RequiredLocalRelationshipRoleFilter singleton; -protected java.util.List getRolesToFilter(ContainerManagedEntity cmp) { - EjbModuleExtensionHelper modHelper = getEjbModuleExtHelper(cmp); - if(modHelper != null) - return modHelper.getLocalRelationshipRoles_cmp11(cmp); - return Collections.EMPTY_LIST; -} -/** - * Insert the method's description here. - * Creation date: (8/6/2001 11:27:25 AM) - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.RequiredLocalRelationshipRoleFilter - */ -public static RequiredLocalRelationshipRoleFilter singleton() { - if (singleton == null) - singleton = new RequiredLocalRelationshipRoleFilter(); - return singleton; -} -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RequiredRelationshipRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RequiredRelationshipRoleFilter.java deleted file mode 100644 index 1404f3c75..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RequiredRelationshipRoleFilter.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; - - -/** - * Insert the type's description here. Creation date: (8/6/2001 11:26:10 AM) - * @author: Administrator - */ -public class RequiredRelationshipRoleFilter extends ContainerManagedEntityFilter { - - private static RequiredRelationshipRoleFilter singleton; - - /** - * filter method comment. - */ - public List filter(ContainerManagedEntity cmp) { - List roles = new ArrayList(); - Iterator it = getRelationshipRoles(cmp).iterator(); - CommonRelationshipRole role; - while (it.hasNext()) { - role = (CommonRelationshipRole) it.next(); - if (shouldAddFilteredResult(role)) roles.add(role); - } - return roles; - } - - /** - * Return true if the multiplicity for @aRole is required. - */ - protected boolean shouldAddFilteredResult(CommonRelationshipRole aRole) { - return aRole.isRequired(); - } - - /** - * Insert the method's description here. Creation date: (8/6/2001 11:27:25 - * AM) - * - * @return com.ibm.ejs.models.base.extensions.ejbext.impl.RequiredRelationshipRoleFilter - */ - public static RequiredRelationshipRoleFilter singleton() { - if (singleton == null) singleton = new RequiredRelationshipRoleFilter(); - return singleton; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RoleShapeStrategy.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RoleShapeStrategy.java deleted file mode 100644 index 4195c1c30..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RoleShapeStrategy.java +++ /dev/null @@ -1,171 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.IRoleShapeStrategy; - - -/** - * Insert the type's description here. - * Creation date: (11/6/2000 11:41:33 AM) - * @author: Administrator - */ -public abstract class RoleShapeStrategy implements IRoleShapeStrategy { - protected boolean busy = false; - protected CommonRelationshipRole role; - protected ArrayList visitedKeyTypes = new ArrayList(5); -/** - * FlattenedRoleShapeStrategy constructor comment. - */ -public RoleShapeStrategy(CommonRelationshipRole aRole) { - super(); - setRole(aRole); -} -protected String appendName(String fullName, String additionalName) { - return fullName + ATTRIBUTE_NAME_JOINER + additionalName; -} -protected boolean canContinue() { - return !busy && role.isForward() && role.getName() != null; -} -protected boolean canComputeNames() { - //return getRole().getOpposite() != null; - return true; -} -/** - * Insert the method's description here. - * Creation date: (11/16/00 9:19:27 PM) - * @return CommonRelationshipRole - */ -public CommonRelationshipRole getRole() { - return role; -} -/** - * Insert the method's description here. - * Creation date: (11/16/00 9:19:27 PM) - * @return CommonRelationshipRole - */ - -public boolean isFlat () { - return false; -} -public boolean isRound () { - return false; -} -/** - * Creates an appended name while uppercasing the first letter of the secondName. - */ -public static String makeJavaName(String firstName, String secondName) { - StringBuffer nameBuffer = new StringBuffer(firstName); - nameBuffer.append(Character.toUpperCase(secondName.charAt(0))); - for (int i = 1; i < secondName.length(); i++) - nameBuffer.append(secondName.charAt(i)); - return nameBuffer.toString(); -} -public void reconcileAttributes(List roleAttributes) { - if (canContinue()) { - busy = true; - String attributeName = getRole().getName(); - List computedNames = new ArrayList(); - if (canComputeNames()){ - visitedKeyTypes.clear(); - reconcileAttributes(getRole(), attributeName, roleAttributes, computedNames); - } - removeExtraAttributes(computedNames); - busy = false; - } -} -/** - * getFields method comment. - */ -protected abstract void reconcileAttributes(CommonRelationshipRole aRole, String attributeName, List aList, List computedNames); -/** - * Remove attributes from our role whose name is not contained in the list of - * @computedNames. Also, remove from the role's source EJB. - */ -protected void removeExtraAttributes(List computedNames) { - if (!getRole().getAttributes().isEmpty()) { - java.util.Iterator it = getRole().getAttributes().iterator(); - ContainerManagedEntity cmp = getRole().getSourceEntity(); - CMPAttribute attribute; - while (it.hasNext()) { - attribute = (CMPAttribute) it.next(); - if (computedNames.contains(attribute.getName())) - continue; - it.remove(); - cmp.getKeyAttributes().remove(attribute); - cmp.getPersistentAttributes().remove(attribute); - } - } -} -/** - * Insert the method's description here. - * Creation date: (11/16/00 9:19:27 PM) - * @param newRole com.ibm.ejs.models.base.extensions.ejbext.EjbRelationshipRole - */ -public void setRole(CommonRelationshipRole newRole) { - role = newRole; -} -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RoleSourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RoleSourceImpl.java deleted file mode 100644 index 7008bc476..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/RoleSourceImpl.java +++ /dev/null @@ -1,329 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.RoleSource; - -/** - * Designates the source of a role that participates in a relationship. A relationship-role-source element uniquely identifies an entity bean. - * @invariant The content of each role-source element shall refer to an existing entity bean, entity bean reference. - */ -public class RoleSourceImpl extends EObjectImpl implements RoleSource, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected ContainerManagedEntity entityBean = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public RoleSourceImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getRoleSource(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ROLE_SOURCE__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EJBRelationshipRole getRole() { - if (eContainerFeatureID != EjbPackage.ROLE_SOURCE__ROLE) return null; - return (EJBRelationshipRole)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRole(EJBRelationshipRole newRole) { - if (newRole != eContainer || (eContainerFeatureID != EjbPackage.ROLE_SOURCE__ROLE && newRole != null)) { - if (EcoreUtil.isAncestor(this, newRole)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newRole != null) - msgs = ((InternalEObject)newRole).eInverseAdd(this, EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE, EJBRelationshipRole.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newRole, EjbPackage.ROLE_SOURCE__ROLE, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ROLE_SOURCE__ROLE, newRole, newRole)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public ContainerManagedEntity getEntityBean() { - if (entityBean != null && entityBean.eIsProxy()) { - ContainerManagedEntity oldEntityBean = entityBean; - entityBean = (ContainerManagedEntity)eResolveProxy((InternalEObject)entityBean); - if (entityBean != oldEntityBean) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.ROLE_SOURCE__ENTITY_BEAN, oldEntityBean, entityBean)); - } - } - return entityBean; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ContainerManagedEntity basicGetEntityBean() { - return entityBean; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setEntityBean(ContainerManagedEntity newEntityBean) { - ContainerManagedEntity oldEntityBean = entityBean; - entityBean = newEntityBean; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.ROLE_SOURCE__ENTITY_BEAN, oldEntityBean, entityBean)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, EjbPackage.ROLE_SOURCE__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.ROLE_SOURCE__ROLE: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.ROLE_SOURCE__ROLE, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.ROLE_SOURCE__ROLE: - return eBasicSetContainer(null, EjbPackage.ROLE_SOURCE__ROLE, msgs); - case EjbPackage.ROLE_SOURCE__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.ROLE_SOURCE__ROLE: - return eContainer.eInverseRemove(this, EjbPackage.EJB_RELATIONSHIP_ROLE__SOURCE, EJBRelationshipRole.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ROLE_SOURCE__DESCRIPTION: - return getDescription(); - case EjbPackage.ROLE_SOURCE__ROLE: - return getRole(); - case EjbPackage.ROLE_SOURCE__ENTITY_BEAN: - if (resolve) return getEntityBean(); - return basicGetEntityBean(); - case EjbPackage.ROLE_SOURCE__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ROLE_SOURCE__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.ROLE_SOURCE__ROLE: - return getRole() != null; - case EjbPackage.ROLE_SOURCE__ENTITY_BEAN: - return entityBean != null; - case EjbPackage.ROLE_SOURCE__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ROLE_SOURCE__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.ROLE_SOURCE__ROLE: - setRole((EJBRelationshipRole)newValue); - return; - case EjbPackage.ROLE_SOURCE__ENTITY_BEAN: - setEntityBean((ContainerManagedEntity)newValue); - return; - case EjbPackage.ROLE_SOURCE__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.ROLE_SOURCE__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.ROLE_SOURCE__ROLE: - setRole((EJBRelationshipRole)null); - return; - case EjbPackage.ROLE_SOURCE__ENTITY_BEAN: - setEntityBean((ContainerManagedEntity)null); - return; - case EjbPackage.ROLE_SOURCE__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/SessionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/SessionImpl.java deleted file mode 100644 index dbdc4cc39..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/SessionImpl.java +++ /dev/null @@ -1,670 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Session; -import org.eclipse.jst.j2ee.ejb.SessionType; -import org.eclipse.jst.j2ee.ejb.TransactionType; - -/** - * The session element declares an session bean. The declaration consists of: an optional description; optional display name; optional small icon file name; optional large icon file name; a name assigned - * to the enterprise bean in the deployment description; the names of the session bean's home and remote interfaces, if any; the names of the session bean's local home and local interfaces, if any; the session bean's implementation class; the session bean's state management type; the session bean's transaction management type; an optional declaration of the bean's environment entries; an optional declaration of the bean's EJB references; an optional declaration of the bean's local EJB references; an optional declaration of the security role references; an optional declaration of the security identity to be used for the execution of the bean's methods; an optional declaration of the bean's resource manager connection factory references; and an optional declaration of the bean's resource environment references. The elements that are optional are "optional" in the sense that they are omitted when if lists represented by them are empty. - */ -public class SessionImpl extends EnterpriseBeanImpl implements Session, EnterpriseBean { - - /** - * The default value of the '{@link #getTransactionType() <em>Transaction Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTransactionType() - * @generated - * @ordered - */ - protected static final TransactionType TRANSACTION_TYPE_EDEFAULT = TransactionType.BEAN_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected TransactionType transactionType = TRANSACTION_TYPE_EDEFAULT; - /** - * This is true if the Transaction Type attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean transactionTypeESet = false; - - /** - * The default value of the '{@link #getSessionType() <em>Session Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSessionType() - * @generated - * @ordered - */ - protected static final SessionType SESSION_TYPE_EDEFAULT = SessionType.STATEFUL_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected SessionType sessionType = SESSION_TYPE_EDEFAULT; - /** - * This is true if the Session Type attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean sessionTypeESet = false; - - /** - * The cached value of the '{@link #getServiceEndpoint() <em>Service Endpoint</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceEndpoint() - * @generated - * @ordered - */ - protected JavaClass serviceEndpoint = null; - - public SessionImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return EjbPackage.eINSTANCE.getSession(); - } - - public boolean isSession() { - return true; - } - /** - * @generated This field/method will be replaced during code generation - * The transaction-type element specifies an enterprise bean's transaction management type. - * - - */ - public TransactionType getTransactionType() { - return transactionType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTransactionType(TransactionType newTransactionType) { - TransactionType oldTransactionType = transactionType; - transactionType = newTransactionType == null ? TRANSACTION_TYPE_EDEFAULT : newTransactionType; - boolean oldTransactionTypeESet = transactionTypeESet; - transactionTypeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.SESSION__TRANSACTION_TYPE, oldTransactionType, transactionType, !oldTransactionTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetTransactionType() { - TransactionType oldTransactionType = transactionType; - boolean oldTransactionTypeESet = transactionTypeESet; - transactionType = TRANSACTION_TYPE_EDEFAULT; - transactionTypeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.SESSION__TRANSACTION_TYPE, oldTransactionType, TRANSACTION_TYPE_EDEFAULT, oldTransactionTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetTransactionType() { - return transactionTypeESet; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public SessionType getSessionType() { - return sessionType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSessionType(SessionType newSessionType) { - SessionType oldSessionType = sessionType; - sessionType = newSessionType == null ? SESSION_TYPE_EDEFAULT : newSessionType; - boolean oldSessionTypeESet = sessionTypeESet; - sessionTypeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.SESSION__SESSION_TYPE, oldSessionType, sessionType, !oldSessionTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetSessionType() { - SessionType oldSessionType = sessionType; - boolean oldSessionTypeESet = sessionTypeESet; - sessionType = SESSION_TYPE_EDEFAULT; - sessionTypeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EjbPackage.SESSION__SESSION_TYPE, oldSessionType, SESSION_TYPE_EDEFAULT, oldSessionTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetSessionType() { - return sessionTypeESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass getServiceEndpoint() { - if (serviceEndpoint != null && serviceEndpoint.eIsProxy()) { - JavaClass oldServiceEndpoint = serviceEndpoint; - serviceEndpoint = (JavaClass)eResolveProxy((InternalEObject)serviceEndpoint); - if (serviceEndpoint != oldServiceEndpoint) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EjbPackage.SESSION__SERVICE_ENDPOINT, oldServiceEndpoint, serviceEndpoint)); - } - } - return serviceEndpoint; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetServiceEndpoint() { - return serviceEndpoint; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServiceEndpoint(JavaClass newServiceEndpoint) { - JavaClass oldServiceEndpoint = serviceEndpoint; - serviceEndpoint = newServiceEndpoint; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EjbPackage.SESSION__SERVICE_ENDPOINT, oldServiceEndpoint, serviceEndpoint)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.SESSION__EJB_JAR: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, EjbPackage.SESSION__EJB_JAR, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case EjbPackage.SESSION__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__ENVIRONMENT_PROPERTIES: - return ((InternalEList)getEnvironmentProperties()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__RESOURCE_REFS: - return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__EJB_REFS: - return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__RESOURCE_ENV_REFS: - return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__EJB_LOCAL_REFS: - return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__MESSAGE_DESTINATION_REFS: - return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__SECURITY_ROLE_REFS: - return ((InternalEList)getSecurityRoleRefs()).basicRemove(otherEnd, msgs); - case EjbPackage.SESSION__EJB_JAR: - return eBasicSetContainer(null, EjbPackage.SESSION__EJB_JAR, msgs); - case EjbPackage.SESSION__SECURITY_IDENTITY: - return basicSetSecurityIdentity(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case EjbPackage.SESSION__EJB_JAR: - return eContainer.eInverseRemove(this, EjbPackage.EJB_JAR__ENTERPRISE_BEANS, EJBJar.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.SESSION__ICONS: - return getIcons(); - case EjbPackage.SESSION__DISPLAY_NAMES: - return getDisplayNames(); - case EjbPackage.SESSION__DESCRIPTIONS: - return getDescriptions(); - case EjbPackage.SESSION__SMALL_ICON: - return getSmallIcon(); - case EjbPackage.SESSION__LARGE_ICON: - return getLargeIcon(); - case EjbPackage.SESSION__DESCRIPTION: - return getDescription(); - case EjbPackage.SESSION__DISPLAY_NAME: - return getDisplayName(); - case EjbPackage.SESSION__ENVIRONMENT_PROPERTIES: - return getEnvironmentProperties(); - case EjbPackage.SESSION__RESOURCE_REFS: - return getResourceRefs(); - case EjbPackage.SESSION__EJB_REFS: - return getEjbRefs(); - case EjbPackage.SESSION__RESOURCE_ENV_REFS: - return getResourceEnvRefs(); - case EjbPackage.SESSION__EJB_LOCAL_REFS: - return getEjbLocalRefs(); - case EjbPackage.SESSION__MESSAGE_DESTINATION_REFS: - return getMessageDestinationRefs(); - case EjbPackage.SESSION__SERVICE_REFS: - return getServiceRefs(); - case EjbPackage.SESSION__NAME: - return getName(); - case EjbPackage.SESSION__SECURITY_ROLE_REFS: - return getSecurityRoleRefs(); - case EjbPackage.SESSION__EJB_CLASS: - if (resolve) return getEjbClass(); - return basicGetEjbClass(); - case EjbPackage.SESSION__HOME_INTERFACE: - if (resolve) return getHomeInterface(); - return basicGetHomeInterface(); - case EjbPackage.SESSION__REMOTE_INTERFACE: - if (resolve) return getRemoteInterface(); - return basicGetRemoteInterface(); - case EjbPackage.SESSION__EJB_JAR: - return getEjbJar(); - case EjbPackage.SESSION__SECURITY_IDENTITY: - return getSecurityIdentity(); - case EjbPackage.SESSION__LOCAL_HOME_INTERFACE: - if (resolve) return getLocalHomeInterface(); - return basicGetLocalHomeInterface(); - case EjbPackage.SESSION__LOCAL_INTERFACE: - if (resolve) return getLocalInterface(); - return basicGetLocalInterface(); - case EjbPackage.SESSION__TRANSACTION_TYPE: - return getTransactionType(); - case EjbPackage.SESSION__SESSION_TYPE: - return getSessionType(); - case EjbPackage.SESSION__SERVICE_ENDPOINT: - if (resolve) return getServiceEndpoint(); - return basicGetServiceEndpoint(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.SESSION__ICONS: - return icons != null && !icons.isEmpty(); - case EjbPackage.SESSION__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case EjbPackage.SESSION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case EjbPackage.SESSION__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case EjbPackage.SESSION__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case EjbPackage.SESSION__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case EjbPackage.SESSION__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case EjbPackage.SESSION__ENVIRONMENT_PROPERTIES: - return environmentProperties != null && !environmentProperties.isEmpty(); - case EjbPackage.SESSION__RESOURCE_REFS: - return resourceRefs != null && !resourceRefs.isEmpty(); - case EjbPackage.SESSION__EJB_REFS: - return ejbRefs != null && !ejbRefs.isEmpty(); - case EjbPackage.SESSION__RESOURCE_ENV_REFS: - return resourceEnvRefs != null && !resourceEnvRefs.isEmpty(); - case EjbPackage.SESSION__EJB_LOCAL_REFS: - return ejbLocalRefs != null && !ejbLocalRefs.isEmpty(); - case EjbPackage.SESSION__MESSAGE_DESTINATION_REFS: - return messageDestinationRefs != null && !messageDestinationRefs.isEmpty(); - case EjbPackage.SESSION__SERVICE_REFS: - return serviceRefs != null && !serviceRefs.isEmpty(); - case EjbPackage.SESSION__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EjbPackage.SESSION__SECURITY_ROLE_REFS: - return securityRoleRefs != null && !securityRoleRefs.isEmpty(); - case EjbPackage.SESSION__EJB_CLASS: - return ejbClass != null; - case EjbPackage.SESSION__HOME_INTERFACE: - return homeInterface != null; - case EjbPackage.SESSION__REMOTE_INTERFACE: - return remoteInterface != null; - case EjbPackage.SESSION__EJB_JAR: - return getEjbJar() != null; - case EjbPackage.SESSION__SECURITY_IDENTITY: - return securityIdentity != null; - case EjbPackage.SESSION__LOCAL_HOME_INTERFACE: - return localHomeInterface != null; - case EjbPackage.SESSION__LOCAL_INTERFACE: - return localInterface != null; - case EjbPackage.SESSION__TRANSACTION_TYPE: - return isSetTransactionType(); - case EjbPackage.SESSION__SESSION_TYPE: - return isSetSessionType(); - case EjbPackage.SESSION__SERVICE_ENDPOINT: - return serviceEndpoint != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.SESSION__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case EjbPackage.SESSION__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case EjbPackage.SESSION__DESCRIPTION: - setDescription((String)newValue); - return; - case EjbPackage.SESSION__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case EjbPackage.SESSION__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - getEnvironmentProperties().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__RESOURCE_REFS: - getResourceRefs().clear(); - getResourceRefs().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__EJB_REFS: - getEjbRefs().clear(); - getEjbRefs().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - getResourceEnvRefs().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - getEjbLocalRefs().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - getMessageDestinationRefs().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__NAME: - setName((String)newValue); - return; - case EjbPackage.SESSION__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - getSecurityRoleRefs().addAll((Collection)newValue); - return; - case EjbPackage.SESSION__EJB_CLASS: - setEjbClass((JavaClass)newValue); - return; - case EjbPackage.SESSION__HOME_INTERFACE: - setHomeInterface((JavaClass)newValue); - return; - case EjbPackage.SESSION__REMOTE_INTERFACE: - setRemoteInterface((JavaClass)newValue); - return; - case EjbPackage.SESSION__EJB_JAR: - setEjbJar((EJBJar)newValue); - return; - case EjbPackage.SESSION__SECURITY_IDENTITY: - setSecurityIdentity((SecurityIdentity)newValue); - return; - case EjbPackage.SESSION__LOCAL_HOME_INTERFACE: - setLocalHomeInterface((JavaClass)newValue); - return; - case EjbPackage.SESSION__LOCAL_INTERFACE: - setLocalInterface((JavaClass)newValue); - return; - case EjbPackage.SESSION__TRANSACTION_TYPE: - setTransactionType((TransactionType)newValue); - return; - case EjbPackage.SESSION__SESSION_TYPE: - setSessionType((SessionType)newValue); - return; - case EjbPackage.SESSION__SERVICE_ENDPOINT: - setServiceEndpoint((JavaClass)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case EjbPackage.SESSION__ICONS: - getIcons().clear(); - return; - case EjbPackage.SESSION__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case EjbPackage.SESSION__DESCRIPTIONS: - getDescriptions().clear(); - return; - case EjbPackage.SESSION__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case EjbPackage.SESSION__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case EjbPackage.SESSION__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case EjbPackage.SESSION__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case EjbPackage.SESSION__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - return; - case EjbPackage.SESSION__RESOURCE_REFS: - getResourceRefs().clear(); - return; - case EjbPackage.SESSION__EJB_REFS: - getEjbRefs().clear(); - return; - case EjbPackage.SESSION__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - return; - case EjbPackage.SESSION__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - return; - case EjbPackage.SESSION__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - return; - case EjbPackage.SESSION__SERVICE_REFS: - getServiceRefs().clear(); - return; - case EjbPackage.SESSION__NAME: - setName(NAME_EDEFAULT); - return; - case EjbPackage.SESSION__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - return; - case EjbPackage.SESSION__EJB_CLASS: - setEjbClass((JavaClass)null); - return; - case EjbPackage.SESSION__HOME_INTERFACE: - setHomeInterface((JavaClass)null); - return; - case EjbPackage.SESSION__REMOTE_INTERFACE: - setRemoteInterface((JavaClass)null); - return; - case EjbPackage.SESSION__EJB_JAR: - setEjbJar((EJBJar)null); - return; - case EjbPackage.SESSION__SECURITY_IDENTITY: - setSecurityIdentity((SecurityIdentity)null); - return; - case EjbPackage.SESSION__LOCAL_HOME_INTERFACE: - setLocalHomeInterface((JavaClass)null); - return; - case EjbPackage.SESSION__LOCAL_INTERFACE: - setLocalInterface((JavaClass)null); - return; - case EjbPackage.SESSION__TRANSACTION_TYPE: - unsetTransactionType(); - return; - case EjbPackage.SESSION__SESSION_TYPE: - unsetSessionType(); - return; - case EjbPackage.SESSION__SERVICE_ENDPOINT: - setServiceEndpoint((JavaClass)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (transactionType: "); - if (transactionTypeESet) result.append(transactionType); else result.append("<unset>"); - result.append(", sessionType: "); - if (sessionTypeESet) result.append(sessionType); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.ejb.Session#setServiceEndpointName(java.lang.String) - */ - public void setServiceEndpointName(String serviceEndpointName) { - eSet(EjbPackage.eINSTANCE.getSession_ServiceEndpoint(), createClassRef(serviceEndpointName)); - } - /* - * @see EnterpriseBean#hasLocalClient() - */ - public boolean hasServiceEndpoint() { - return getServiceEndpoint() != null; - } - public String getServiceEndpointName() { - getServiceEndpoint(); - return serviceEndpoint == null ? null : serviceEndpoint.getQualifiedName(); - } -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/SupertypeCMPAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/SupertypeCMPAttributeFilter.java deleted file mode 100644 index 7e203cdfa..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/impl/SupertypeCMPAttributeFilter.java +++ /dev/null @@ -1,117 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.impl; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.internal.EjbModuleExtensionHelper; - - -/** - * Insert the type's description here. - * Creation date: (11/28/2000 6:54:26 PM) - * @author: Administrator - */ -public abstract class SupertypeCMPAttributeFilter extends ContainerManagedEntityFilter { -/** - * SupertypeCMPAttributeFilter constructor comment. - */ -public SupertypeCMPAttributeFilter() { - super(); -} -/** - * filter method comment. - */ -public List filter(ContainerManagedEntity cmp) { - ContainerManagedEntity supertype = null; - EjbModuleExtensionHelper extensionHelper = getEjbModuleExtHelper(cmp); - if(extensionHelper != null) - supertype = (ContainerManagedEntity)extensionHelper.getSuperType(cmp); - if (supertype == null) - return getSourceAttributes(cmp); - return filterUsingSupertype(cmp, supertype); -} -/** - * filter method comment. - */ -protected java.util.List filterUsingSupertype(ContainerManagedEntity cmp, ContainerManagedEntity supertype) { - ContainerManagedEntity superEntity = supertype; - List result = new ArrayList(); - Iterator it = getSourceAttributes(cmp).iterator(); - CMPAttribute attribute; - while (it.hasNext()) { - attribute = (CMPAttribute) it.next(); - if (!isSupertypeAttribute(superEntity, attribute)) - result.add(attribute); - } - return result; -} -/** - * Return the proper list of attributes from cmpExt. - */ -protected abstract java.util.List getSourceAttributes(ContainerManagedEntity cmp) ; -/** - * Return a boolean indicating whether anAttribute also exists in the superEntity. - */ -protected abstract boolean isSupertypeAttribute(ContainerManagedEntity superEntity, CMPAttribute anAttribute) ; -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CMPFieldDescriptor.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CMPFieldDescriptor.java deleted file mode 100644 index 8c6d067de..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CMPFieldDescriptor.java +++ /dev/null @@ -1,66 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.util; - -/** - * A parameter descriptor is used to describe a method parameter. - * It holds the parameter name and type. The type is held in - * Java readable form (not a signature). - */ -public class CMPFieldDescriptor { - private String fType = null; - private String fName = null; -/** - * JavaParameterDescriptor default constructor. - */ -public CMPFieldDescriptor() { - super(); -} -/** - * @return the parameter name. - */ -public String getName() { - return fName; -} -/** - * Returns the parameter type. - * @return The parameter type in Java readable form (not a signature) - */ -public String getType() { - return fType; -} -/** - * Sets the parameter name. - */ -public void setName(String newName) { - fName = (newName == null) ? null : newName.trim(); -} -/** - * Sets the parameter type. - * @param newType The parameter name in Java readable form (not a signature) - */ -public void setType(String newType) { - fType = (newType == null) ? null : newType.trim(); -} -/** - * Returns "type name". The {@link JavaParameterDescriptor#getType()} - * and {@link JavaParameterDescriptor#getName()} methods are used - * to build the result. - */ -public String toString() { - StringBuffer sb = new StringBuffer(100); - sb.append(getType()); - sb.append(' '); - sb.append(getName()); - return sb.toString(); -} -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CMPHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CMPHelper.java deleted file mode 100644 index 06c45af2e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CMPHelper.java +++ /dev/null @@ -1,263 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.util; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaHelpers; -import org.eclipse.jem.java.JavaParameter; -import org.eclipse.jem.java.JavaVisibilityKind; -import org.eclipse.jem.java.Method; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; - - -public class CMPHelper { - - public static final String GET = "get"; //$NON-NLS-1$ - public static final String SET = "set"; //$NON-NLS-1$ - protected static Comparator methodComparator = new Comparator() { - /** - * @see Comparator#compare(Object, Object) - */ - public int compare(Object o1, Object o2) { - Method m1 = (Method) o1; - Method m2 = (Method) o2; - String s1 = m1.getName(); - String s2 = m2.getName(); - if (s1 == null) - return "".compareTo(s2); //$NON-NLS-1$ - return s1.compareTo(s2); - } - }; - - public interface CMPFieldExistTester { - boolean isExisting(Field aField); - boolean isExisting(Method aMethod); - } - - protected CMPHelper() { - super(); - } - - /** - * For CMP 2.0 beans, the bean class is abstract and - * contains abstract get/set methods for the fields - * This infers the those fields based on the get/set methods - * - * @return java.util.List of {@link CMPFieldDescriptor} - */ - public static List getAvailableCMP20FieldDescriptors(JavaClass beanClass) { - return getAvailableCMP20FieldDescriptors(beanClass, null); - } - - /** - * For CMP 2.0 beans, the bean class is abstract and - * contains abstract get/set methods for the fields - * This infers the those fields based on the get/set methods - * - * @return java.util.List of {@link CMPFieldDescriptor} - */ - public static List getAvailableCMP20FieldDescriptors(JavaClass beanClass, CMPHelper.CMPFieldExistTester fieldTester) { - if (beanClass == null) - return Collections.EMPTY_LIST; - List result = new ArrayList(); - Map getters = new HashMap(); - List methods = beanClass.getPublicMethodsExtended(); - Collections.sort(methods, methodComparator); - for (int i = 0; i < methods.size(); i++) { - Method aMethod = (Method) methods.get(i); - if (isGetter(aMethod) && aMethod.isAbstract() && !aMethod.isStatic() && - (fieldTester == null || fieldTester.isExisting(aMethod))) - getters.put(getFieldName(aMethod), aMethod); - else if (isSetter(aMethod) && aMethod.isAbstract() && !aMethod.isStatic()) { - String fieldName = getFieldName(aMethod); - Method getter = (Method) getters.get(fieldName); - if (typesAgree(getter, aMethod)) { - String typeName = getReturnTypeName(getter); - if (typeName != null && (fieldTester == null || fieldTester.isExisting(getter))) - result.add(createFieldDescriptor(fieldName, typeName)); - } - } - } - return result; - } - - /** - * For CMP 1.1 beans, the list is simply the fields, extended, - * on the bean class - * - * @return java.util.List of {@link CMPFieldDescriptor} - */ - public static List getAvailableCMP11FieldDescriptors(JavaClass beanClass) { - return getAvailableCMP11FieldDescriptors(beanClass, null); - } - - /** - * For CMP 1.1 beans, the list is simply the fields, extended, - * on the bean class - * - * @return java.util.List of {@link CMPFieldDescriptor} - */ - public static List getAvailableCMP11FieldDescriptors(JavaClass beanClass, CMPHelper.CMPFieldExistTester fieldTester) { - if (beanClass == null) - return Collections.EMPTY_LIST; - List fields = beanClass.getFieldsExtended(); - List result = new ArrayList(); - for (int i = 0; i < fields.size(); i++) { - Field aField = (Field) fields.get(i); - if (!isPublic(aField) || aField.isStatic() || aField.isTransient() || - (fieldTester != null && !fieldTester.isExisting(aField))) - continue; - String name = aField.getName(); - String typeName = getTypeName(aField); - if (typeName != null && name != null) - result.add(createFieldDescriptor(name, typeName)); - } - return result; - } - - /** - * Get a list of available cmp fields for the CMP bean; if the bean - * is v1.1, this is the fields on the bean class; if it is 2.0, this - * is defined by the abstract get/set methods on the bean class - * - * @return java.util.List of {@link CMPFieldDescriptor} - */ - public static List getAvailableCMPFieldDescriptors(ContainerManagedEntity cmpBean) { - return getAvailableCMPFieldDescriptors(cmpBean, null); - } - - /** - * Get a list of available cmp fields for the CMP bean; if the bean - * is v1.1, this is the fields on the bean class; if it is 2.0, this - * is defined by the abstract get/set methods on the bean class - * - * @return java.util.List of {@link CMPFieldDescriptor} - */ - public static List getAvailableCMPFieldDescriptors(ContainerManagedEntity cmpBean, CMPHelper.CMPFieldExistTester fieldTester) { - JavaClass beanClass = cmpBean.getEjbClass(); - if (beanClass == null) - return Collections.EMPTY_LIST; - switch(cmpBean.getVersionID()) { - case J2EEVersionConstants.EJB_1_0_ID: - case J2EEVersionConstants.EJB_1_1_ID: - return getAvailableCMP11FieldDescriptors(beanClass, fieldTester); - case J2EEVersionConstants.EJB_2_0_ID: - case J2EEVersionConstants.EJB_2_1_ID: default: - return getAvailableCMP20FieldDescriptors(beanClass, fieldTester); - } - } - - /** - * Does the method name start with "get", and is the method a zero arg - * method, that does not return void? - */ - protected static boolean isGetter(Method aMethod) { - String name = aMethod.getName(); - return name != null && - name.startsWith(GET) && - name.length() > 3 && - aMethod.listParametersWithoutReturn().length==0 && - !aMethod.isVoid(); - } - - - /** - * Does the method name start with "get", and is the method a one arg - * method, that is void - */ - protected static boolean isSetter(Method aMethod) { - String name = aMethod.getName(); - return name != null && - name.startsWith(SET) && - name.length() > 3 && - aMethod.listParametersWithoutReturn().length == 1 && - aMethod.isVoid(); - } - - protected static String getFieldName(Method aMethod) { - if (aMethod == null) - return null; - - return getFieldName(aMethod.getName()); - } - - public static String getFieldName(String methodName) { - if (methodName == null) - return null; - StringBuffer sb = new StringBuffer(methodName); - sb.delete(0, 3); - char lower = Character.toLowerCase(sb.charAt(0)); - sb.setCharAt(0, lower); - return sb.toString(); - } - - protected static String getReturnTypeName(Method getter) { - if (getter == null) - return null; - JavaHelpers retType = getter.getReturnType(); - return getTypeName(retType); - } - - protected static String getTypeName(Field aField) { - if (aField == null) - return null; - JavaHelpers type = (JavaHelpers)aField.getEType(); - return getTypeName(type); - } - - protected static String getTypeName(JavaHelpers helpers) { - if (helpers == null) - return null; - return helpers.getQualifiedName(); - } - /** - * Precondition: setter must take one parameter, and getter must return - * a type, not void - */ - protected static boolean typesAgree(Method getter, Method setter) { - if (getter == null || getter.isVoid() || setter == null) - return false; - - JavaParameter[] parameters = setter.listParametersWithoutReturn(); - if (parameters.length != 1) - return false; - - JavaParameter param = parameters[0]; - return param.getEType() != null && - param.getEType() == getter.getReturnType(); - } - - protected static CMPFieldDescriptor createFieldDescriptor(String name, String typeName) { - CMPFieldDescriptor desc = new CMPFieldDescriptor(); - desc.setName(name); - desc.setType(typeName); - return desc; - } - - protected static boolean isPublic(Field field) { - if (field == null) - return false; - return (JavaVisibilityKind.PUBLIC_LITERAL.getValue() == field.getJavaVisibility().getValue()); - } - - - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CMPKeySynchronizationAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CMPKeySynchronizationAdapter.java deleted file mode 100644 index 8332dde68..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CMPKeySynchronizationAdapter.java +++ /dev/null @@ -1,399 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Oct 24, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.ejb.internal.util; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jem.java.Field; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaVisibilityKind; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.ContainerManagedEntityImpl; - - -/** - * @author jlanuti - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class CMPKeySynchronizationAdapter extends AdapterImpl { - - public static final String ADAPTER_TYPE = CMPKeySynchronizationAdapter.class.getName(); - - private boolean initialized = false; - - protected ContainerManagedEntity cmp = null; - private boolean isUpdating = false; - private boolean isEnabled = true; - - /** - * Default constructor - */ - public CMPKeySynchronizationAdapter(ContainerManagedEntity cmp) { - super(); - this.cmp = cmp; - } - - /** - * If the keyAttributes list is empty, try to reflect - * the keyAttributes from the fields of the primaryKey class. - */ - public void initializeKeyAttributes() { - if(cmp == null || initialized) - return; - //Disable notifications while we initialize - cmp.eSetDeliver(false); - try { - Resource res = cmp.eResource(); - if(res == null) - return; - boolean cachedIsModified = res.isModified(); - try { - // Handle primkeyfield scenario - if (cmp.getPrimKeyField()!=null) - initializeForPrimKey(); - // Handle compound key scenario - else - initializeForCompoundKey(); - } finally { - res.setModified(cachedIsModified); - } - } finally { - cmp.eSetDeliver(true); - initialized = true; - } - } - - protected void initializeForPrimKey() { - // Ensure the key attributes list contains only the primKeyField attribute - if (!(getKeyAttributes().size()==1 && getKeyAttributes().contains(cmp.getPrimKeyField()))) - primKeyFieldChanged(cmp.getPrimKeyField()); - } - - protected void initializeForCompoundKey() { - List keys = getKeyAttributes(); - // clear key list - keys.clear(); - //ensure the key class is not null - JavaClass keyClass = cmp.getPrimaryKey(); - if (keyClass == null) - return; - keyClass.eAdapters().add(this); - - // reflect key fields into key attributes list - List keyFields = keyClass.getFieldsExtended(); - for (int i = 0; i < keyFields.size(); i++) { - Field field = (Field) keyFields.get(i); - if (field.getJavaVisibility() == JavaVisibilityKind.PUBLIC_LITERAL) { //only public fields - CMPAttribute keyAttribute = cmp.getPersistentAttribute(field.getName()); - if (keyAttribute != null) - keys.add(keyAttribute); - } - } - } - - public void notifyChanged(Notification notification) { - if (isUpdating || !isEnabled) return; //we don't want to react to our own changes - try { - isUpdating = true; - EClass featureClass = ((EObject)notification.getNotifier()).eClass(); - if (EjbPackage.eINSTANCE.getContainerManagedEntity().equals(featureClass)) { - switch (notification.getFeatureID(ContainerManagedEntity.class)) { - // handle if cmp attribute is updated, added, removed - case EjbPackage.CONTAINER_MANAGED_ENTITY__PERSISTENT_ATTRIBUTES : { - handleCMPAttributeEvent(notification); - break; - } - // handle the key attributes list is updated programatically - case EjbPackage.CONTAINER_MANAGED_ENTITY__KEY_ATTRIBUTES : { - handleCMPAttributeEvent(notification); - break; - } - // handle if the key class is changed,added, removed - case EjbPackage.CONTAINER_MANAGED_ENTITY__PRIMARY_KEY : { - handleKeyClassEvent(notification); - break; - } - // handle prim key field sets, adds, removes - case EjbPackage.CONTAINER_MANAGED_ENTITY__PRIM_KEY_FIELD : { - handlePrimKeyFieldEvent(notification); - break; - } - } - } else if (EjbPackage.eINSTANCE.getCMPAttribute().equals(featureClass)) { - switch (notification.getFeatureID(CMPAttribute.class)) { - // handle a set or change of an attribute name - case (EjbPackage.CMP_ATTRIBUTE__NAME) : { - handleCMPAttributeRenameEvent((CMPAttribute)notification.getNotifier(), notification.getOldValue()); - break; - } - } - } - } finally { - // restore initial notification state - isUpdating = false; - } - } - - /** - * @param attribute - */ - private void handleCMPAttributeRenameEvent(CMPAttribute attribute, Object oldValue) { - // if renamed attribute was in key and is not anymore, remove it from key list - if (getKeyAttributes().contains(attribute)) { - if (!isAttributeKeyClassField(attribute.getName())) - removeKeyAttribute(attribute,(String)oldValue); - } - // if renamed attribute is now part of the key, add it to the key list - else - attributeAdded(attribute); - } - - /** - * @param notification - */ - private void handlePrimKeyFieldEvent(Notification notification) { - EObject newPrimKeyField = (EObject)notification.getNewValue(); - cmp.setPrimKeyField((CMPAttribute)newPrimKeyField); - // if primKeyField is removed or a proxy, recompute key attributes based on key class - if (newPrimKeyField == null || newPrimKeyField.eIsProxy()) { - CMPAttribute primField = (CMPAttribute)newPrimKeyField; - if (primField!=null && primField.getName() == null) { - primField.setName(((InternalEObject)primField).eProxyURI().toString()); - makePrimKeyFieldProxy(primField.getName()); - } - removeAllKeyAttributes(); - initialized = false; - initializeKeyAttributes(); - } - // Ensure the key attributes list contains only the primKeyField attribute - else if (!(getKeyAttributes().size()==1 && getKeyAttributes().contains(newPrimKeyField))) { - primKeyFieldChanged(newPrimKeyField); - } - - } - - /** - * @param notification - */ - private void handleKeyClassEvent(Notification notification) { - // if primkey null or proxy, clear key fields and reinitialize if key class not null - if (cmp.getPrimKeyField()==null || cmp.getPrimKeyField().eIsProxy()) { - keyClassChanged(); - } - // if primkey is not null, then do nothing - - } - - /** - * @param notification - */ - private void handleCMPAttributeEvent(Notification notification) { - int eventType = notification.getEventType(); - // handle a CMPAttribute added - if (eventType == Notification.ADD) { - attributeAdded((CMPAttribute)notification.getNewValue()); - } - // handle a CMPAttribute removed - else if (eventType == Notification.REMOVE) { - CMPAttribute attribute = (CMPAttribute)notification.getOldValue(); - // remove this adapter from the deleted attribute - attribute.eAdapters().remove(this); - removeKeyAttribute(attribute, attribute.getName()); - - } - } - - protected void removeKeyAttribute(CMPAttribute attribute, String oldName) { - - // if attribute was a key attribute it will be removed, otherwise do nothing - getKeyAttributes().remove(attribute); - - // if it is the prim key attribute, then make the prim key attribute a proxy - if (cmp.getPrimKeyField()!=null && cmp.getPrimKeyField().equals(attribute)) { - makePrimKeyFieldProxy(oldName); - } - - } - - public void makePrimKeyFieldProxy(String oldName) { - if (cmp.getPrimKeyField() == null) return; - cmp.setPrimKeyField(EjbFactory.eINSTANCE.createCMPAttribute()); - cmp.getPrimKeyField().setName(oldName); - ((InternalEObject)cmp.getPrimKeyField()).eSetProxyURI(URI.createURI(oldName)); - - } - - protected void removeAllKeyAttributes() { - // clear key attributes list on cmp - getKeyAttributes().clear(); - } - - protected void addKeyAttribute(CMPAttribute attribute) { - - CMPAttribute primKeyField = cmp.getPrimKeyField(); - // if prim key is null add attribute to key list - if (primKeyField==null || primKeyField.eIsProxy()) { - if (!getKeyAttributes().contains(attribute)) - getKeyAttributes().add(attribute); - // if att is only key att, and type is the key class type, set the prim key field - if (getKeyAttributes().size()==1 && attribute.getType().equals(cmp.getPrimaryKey())) - cmp.setPrimKeyField(attribute); - } - // if primkey set + primkeyfield is the new attribute ensure its the only one - else if (primKeyField.equals(attribute)) { - if (!(getKeyAttributes().size()==1 && getKeyAttributes().contains(attribute))) { - getKeyAttributes().clear(); - getKeyAttributes().add(attribute); - } - } - // if primkey set,new attribute not prim key, key atts > 1, remove primkey field - else { - cmp.setPrimKeyField(null); - if (!getKeyAttributes().contains(attribute)) - getKeyAttributes().add(attribute); - } - } - - protected void attributeAdded(CMPAttribute attribute) { - //Make sure cmp key adapters are initialized if needed - cmp.getKeyAttributes(); - - // add this as a listener to name changes on this attribute - if (!attribute.eAdapters().contains(this)) - attribute.eAdapters().add(this); - - if (attribute.getName() ==null) return; - // add it to the key list if applicable and sort the key list - if (isAttributeKeyClassField(attribute.getName())) { - addKeyAttribute(attribute); - sortKeyAttributeList(); - } - // if new attribute name is now prim key name, fix up prim key field - else if (cmp.getPrimKeyField()!=null && cmp.getPrimKeyField().eIsProxy() && attribute.getName().equals(cmp.getPrimKeyField().getName())) { - cmp.setPrimKeyField(attribute); - primKeyFieldChanged(attribute); - } - } - - - /** - * Is the cmp attribute also a field in the key class? - */ - protected boolean isAttributeKeyClassField(String attributeName) { - // ensure key class is not null - JavaClass keyClass = cmp.getPrimaryKey(); - if (keyClass == null) - return false; - // see if the attribute name matchs any of the reflected key class public field names - List keyFields = keyClass.getFieldsExtended(); - for (int i = 0; i < keyFields.size(); i++) { - Field field = (Field) keyFields.get(i); - if (field.getJavaVisibility() == JavaVisibilityKind.PUBLIC_LITERAL) { - if (field.getName().equals(attributeName)) - return true; - } - } - return false; - } - - /** - * Sort the list of the key attributes to match the order of the key class - */ - private void sortKeyAttributeList() { - - List result = new ArrayList(); - JavaClass keyClass = cmp.getPrimaryKey(); - if (keyClass == null) return; - List keyFields = keyClass.getFieldsExtended(); - List currentKeys = getKeyAttributes(); - - // create a new list of the attributes in order of key class fields. - for (int i = 0; i < keyFields.size(); i++) { - Field field = (Field) keyFields.get(i); - if (field.getJavaVisibility() == JavaVisibilityKind.PUBLIC_LITERAL) { //only public fields - for (int j=0; j<currentKeys.size(); j++) { - CMPAttribute attribute = (CMPAttribute) currentKeys.get(j); - if (field.getName().equals(attribute.getName())) - result.add(attribute); - } - } - } - //clear list and set the new key attribute order on the cmp - getKeyAttributes().clear(); - getKeyAttributes().addAll(result); - } - - protected void keyClassChanged() { - JavaClass key = cmp.getPrimaryKey(); - if (key !=null) - key.eAdapters().remove(this); - // if not prim key class, clear key attribute list - removeAllKeyAttributes(); - initialized = false; - initializeKeyAttributes(); - } - - protected void primKeyFieldChanged(EObject primKeyField) { - // if a primKeyField is added, do a remove all and an add - removeAllKeyAttributes(); - - if (primKeyField != null && !primKeyField.eIsProxy()) { - if (!primKeyField.eAdapters().contains(this)) - primKeyField.eAdapters().add(this); - getKeyAttributes().add(primKeyField); - } - } - - private EList getKeyAttributes() { - return ((ContainerManagedEntityImpl)cmp).getKeyAttributesGen(); - } - - /* (non-Javadoc) - * @see org.eclipse.emf.common.notify.impl.AdapterImpl#setTarget(org.eclipse.emf.common.notify.Notifier) - */ - public void setTarget(Notifier newTarget) { - super.setTarget(newTarget); - } - - - /* (non-Javadoc) - * @see org.eclipse.emf.common.notify.impl.AdapterImpl#isAdapterForType(java.lang.Object) - */ - public boolean isAdapterForType(Object type) { - return ADAPTER_TYPE.equals(type); - } - //To turn sync on or off - public void setEnabled(boolean enabled){ - isEnabled = enabled; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CommonRelationshipAttributeMaintenanceAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CommonRelationshipAttributeMaintenanceAdapter.java deleted file mode 100644 index 4ad56a3bb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/CommonRelationshipAttributeMaintenanceAdapter.java +++ /dev/null @@ -1,173 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.util; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CommonRelationship; -import org.eclipse.jst.j2ee.ejb.CommonRelationshipRole; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbFactoryImpl; - -public abstract class CommonRelationshipAttributeMaintenanceAdapter extends AdapterImpl { - protected static EjbPackage EJB_PACK = EjbFactoryImpl.getPackage(); - /** - * Constructor for CommonRelationshipAttributeMaintenanceAdapter. - */ - public CommonRelationshipAttributeMaintenanceAdapter() { - super(); - } - /** - * @see org.eclipse.emf.common.notify.impl.AdapterImpl#notifyChanged(Notification) - */ - public void notifyChanged(Notification msg) { - switch (msg.getEventType()) { - case Notification.ADD : - addedNotification(msg); - break; - case Notification.REMOVE : - removedNotification(msg); - break; - } - } - protected void addedNotification(Notification msg) { - if ((EStructuralFeature)msg.getFeature() == EJB_PACK.getContainerManagedEntity_KeyAttributes()) - addedKeyAttribute((ContainerManagedEntity) msg.getNotifier(), (CMPAttribute) msg.getNewValue()); - else if (isRelationshipsSF((EStructuralFeature)msg.getFeature())) - added(); - else if (isRelationshipRolesSF((EStructuralFeature)msg.getFeature())) - addedRole((CommonRelationshipRole) msg.getNewValue()); - } - protected void removedNotification(Notification msg) { - if ((EStructuralFeature)msg.getFeature() == EJB_PACK.getContainerManagedEntity_KeyAttributes()) - removedKeyAttribute((ContainerManagedEntity) msg.getNotifier(), (CMPAttribute) msg.getOldValue()); - else if (isRelationshipsSF((EStructuralFeature)msg.getFeature())) - removed(); - else if (isRelationshipRolesSF((EStructuralFeature)msg.getFeature())) - removedRole((CommonRelationshipRole) msg.getOldValue()); - } - protected abstract boolean isRelationshipRolesSF(EObject sf); - protected abstract boolean isRelationshipsSF(EObject sf); - //Same as the add - private void removedKeyAttribute(ContainerManagedEntity aCMPEntity, CMPAttribute cmpAttribute) { - addedKeyAttribute(aCMPEntity, cmpAttribute); - } - protected void addedKeyAttribute(ContainerManagedEntity aCMPEntity, CMPAttribute newAttribute) { - CommonRelationshipRole role, inverse; - role = getRole(aCMPEntity); - if (role != null && !role.isForward()) { - inverse = role.getOppositeAsCommonRole(); - if (inverse != null) - inverse.reconcileAttributes(); - } - } - protected CommonRelationshipRole getRole(ContainerManagedEntity aCMPEntity) { - CommonRelationship relation = getRelationship(); - if (relation == null) return null; - List roles = relation.getCommonRoles(); - if (roles.isEmpty()) - return null; - CommonRelationshipRole role = null; - for (int i = 0; i < roles.size(); i++) { - role = (CommonRelationshipRole) roles.get(i); - if (role.getSourceEntity() == aCMPEntity) - return role; - } - return role; - } - protected CommonRelationship getRelationship() { - return (CommonRelationship) getTarget(); - } - protected void reconcileRoleAttributes() { - List roles = getRelationship().getCommonRoles(); - if (roles.isEmpty()) - return; - CommonRelationshipRole role = null; - for (int i = 0; i < roles.size(); i++) { - role = (CommonRelationshipRole) roles.get(i); - role.reconcileAttributes(); - } - } - protected void added() { - reconcileRoleAttributes(); - } - protected void removed() { - if (getRelationship().getCommonRoles().size() > 1) { - //remove one force a disconnect - getRelationship().getCommonRoles().remove(0); - } - } - /** - * Add this Adapter to @aRole and the ContainerManagedEntity - * that the ContainerManagedEntityExtension container is pointing to. - * This only works if @aRole is contained. - */ - protected void addAdaptors(CommonRelationshipRole aRole) { - removeAdaptors(aRole); //to ensure this adapter is not added twice - aRole.eAdapters().add(this); - ContainerManagedEntity cmp = aRole.getSourceEntity(); - if (cmp != null) - cmp.eAdapters().add(this); - } - /** - * Remove this Adapter from @aRole and the ContainerManagedEntity - * that the ContainerManagedEntityExtension container is pointing to. - * This only works if @aRole is contained. - */ - protected void removeAdaptors(CommonRelationshipRole aRole) { - aRole.eAdapters().remove(this); - ContainerManagedEntity cmp = aRole.getSourceEntity(); - if (cmp != null) - cmp.eAdapters().remove(this); - } - protected void addedRole(CommonRelationshipRole aRole) { - addAdaptors(aRole); - if ((getRelationship().eContainer() != null) && rolesFullyReflected()) - reconcileRoleAttributes(); - } - protected boolean rolesFullyReflected() { - List roles = getRelationship().getCommonRoles(); - if (roles.isEmpty()) - return false; - CommonRelationshipRole role = null; - for (int i = 0; i < roles.size(); i++) { - role = (CommonRelationshipRole) roles.get(i); - if (role.getSourceEntity() == null) - return false; - } - return true; - } - - protected void removedRole(CommonRelationshipRole aRole) { - removeAdaptors(aRole); - if (getRelationship().eContainer() != null) { - aRole.reconcileAttributes(); - reconcileRoleAttributes(); - } - } - - /* (non-Javadoc) - * @see org.eclipse.emf.common.notify.impl.AdapterImpl#setTarget(org.eclipse.emf.common.notify.Notifier) - */ - public void setTarget(Notifier notifier) { - //Only set the target if it is a CommonRelationship - if (notifier == null || notifier instanceof CommonRelationship) - super.setTarget(notifier); - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/ConvertedEJBAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/ConvertedEJBAdapter.java deleted file mode 100644 index d2ac77f2f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/ConvertedEJBAdapter.java +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.util; - -import org.eclipse.emf.common.notify.impl.AdapterImpl; - -public class ConvertedEJBAdapter extends AdapterImpl { - - public static final String ADAPTER_KEY = "ConvertedEJBAdpater"; //$NON-NLS-1$ - public static final int VERSION_1_0 = 1; - - protected int version = -1; - protected boolean readOnly = false; - - - /** - * Constructor for ConvertedEJBAdapter. - */ - public ConvertedEJBAdapter() { - super(); - } - - /** - * Gets the version. This will be one of the static constants. - * @return Returns a int - */ - public int getVersion() { - return version; - } - - /** - * Sets the version. This should be one of the static constants. - * @param version The version to set - */ - public void setVersion(int version) { - this.version = version; - } - - /** - * Gets the readOnly. - * @return Returns a boolean - */ - public boolean isReadOnly() { - return readOnly; - } - - /** - * Sets the readOnly. - * @param readOnly The readOnly to set - */ - public void setReadOnly(boolean readOnly) { - this.readOnly = readOnly; - } - - public boolean isFromVersion1_0() { - return version == VERSION_1_0; - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EJBAttributeMaintenanceFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EJBAttributeMaintenanceFactoryImpl.java deleted file mode 100644 index ca5559108..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EJBAttributeMaintenanceFactoryImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.wst.common.internal.emf.utilities.ExtendedEcoreUtil; - - -public class EJBAttributeMaintenanceFactoryImpl extends EjbAdapterFactory { - public static final String ADAPTER_KEY = "EJBAttributeMaintenance"; //$NON-NLS-1$ - - public EJBAttributeMaintenanceFactoryImpl() { - super(); - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.ejb.util.EjbAdapterFactory#createAdapter(org.eclipse.emf.common.notify.Notifier) - */ - public Adapter createAdapter(Notifier target) { - Adapter targetAdapter = (Adapter) modelSwitch.doSwitch((EObject)target); - return ExtendedEcoreUtil.createAdapterForLoading(targetAdapter, (EObject) target); - } - - - public Adapter createEJBRelationAdapter() { - return new EJBRelationAttributeMaintenanceAdapter(); - } - - public Adapter createRelationshipsAdapter() { - return new RelationshipsAttributeMaintenanceAdapter(); - } - - public boolean isFactoryForType(Object type) { - return ADAPTER_KEY == type; - } -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EJBRelationAttributeMaintenanceAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EJBRelationAttributeMaintenanceAdapter.java deleted file mode 100644 index ebcf71844..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EJBRelationAttributeMaintenanceAdapter.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.util; - -import org.eclipse.emf.ecore.EObject; - -public class EJBRelationAttributeMaintenanceAdapter extends CommonRelationshipAttributeMaintenanceAdapter { - /** - * Constructor for EJBRelationAttributeMaintenanceAdapter. - * @param aRelationship - */ - public EJBRelationAttributeMaintenanceAdapter() { - super(); - } - - /** - * @see org.eclipse.jst.j2ee.ejb.internal.util.CommonRelationshipAttributeMaintenanceAdapter#isRelationshipRolesSF(EObject) - */ - protected boolean isRelationshipRolesSF(EObject sf) { - return sf == EJB_PACK.getEJBRelation_RelationshipRoles(); - } - - /** - * @see org.eclipse.jst.j2ee.ejb.internal.util.CommonRelationshipAttributeMaintenanceAdapter#isRelationshipsSF(EObject) - */ - protected boolean isRelationshipsSF(EObject sf) { - return sf == EJB_PACK.getRelationships_EjbRelations(); - } - - /** - * @see org.eclipse.emf.common.notify.Adapter#isAdapterForType(Object) - */ - public boolean isAdapterForType(Object type) { - return EJBAttributeMaintenanceFactoryImpl.ADAPTER_KEY == type; - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EjbAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EjbAdapterFactory.java deleted file mode 100644 index 43614fe4b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EjbAdapterFactory.java +++ /dev/null @@ -1,634 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.util; -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EModelElement; -import org.eclipse.emf.ecore.ENamedElement; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.ETypedElement; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup; -import org.eclipse.jst.j2ee.ejb.ActivationConfig; -import org.eclipse.jst.j2ee.ejb.ActivationConfigProperty; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBMethodCategory; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.ExcludeList; -import org.eclipse.jst.j2ee.ejb.MessageDriven; -import org.eclipse.jst.j2ee.ejb.MessageDrivenDestination; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodPermission; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; -import org.eclipse.jst.j2ee.ejb.Query; -import org.eclipse.jst.j2ee.ejb.QueryMethod; -import org.eclipse.jst.j2ee.ejb.Relationships; -import org.eclipse.jst.j2ee.ejb.RoleSource; -import org.eclipse.jst.j2ee.ejb.Session; - -public class EjbAdapterFactory extends AdapterFactoryImpl { - protected static EjbPackage modelPackage; - public EjbAdapterFactory() { - if (modelPackage == null) { - modelPackage = (EjbPackage) EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI); - } - } - public boolean isFactoryForType(Object type) { - if (type == modelPackage) { - return true; - } - if (type instanceof EObject) { - return ((EObject) type).eClass().eContainer() == modelPackage; - } - return false; - } - protected EjbSwitch sw = new EjbSwitch() { - public Object caseMethodPermission(MethodPermission object) { - return createMethodPermissionAdapter(); - } - public Object caseAssemblyDescriptor(AssemblyDescriptor object) { - return createAssemblyDescriptorAdapter(); - } - public Object caseMethodTransaction(MethodTransaction object) { - return createMethodTransactionAdapter(); - } - public Object caseEnterpriseBean(EnterpriseBean object) { - return createEnterpriseBeanAdapter(); - } - public Object caseEntity(Entity object) { - return createEntityAdapter(); - } - public Object caseContainerManagedEntity(ContainerManagedEntity object) { - return createContainerManagedEntityAdapter(); - } - public Object caseCMPAttribute(CMPAttribute object) { - return createCMPAttributeAdapter(); - } - public Object caseCMRField(CMRField object) { - return createCMRFieldAdapter(); - } - public Object caseEJBRelationshipRole(EJBRelationshipRole object) { - return createEJBRelationshipRoleAdapter(); - } - public Object caseEJBRelation(EJBRelation object) { - return createEJBRelationAdapter(); - } - public Object caseRelationships(Relationships object) { - return createRelationshipsAdapter(); - } - public Object caseEJBJar(EJBJar object) { - return createEJBJarAdapter(); - } - public Object caseRoleSource(RoleSource object) { - return createRoleSourceAdapter(); - } - public Object caseQuery(Query object) { - return createQueryAdapter(); - } - public Object caseQueryMethod(QueryMethod object) { - return createQueryMethodAdapter(); - } - public Object caseMethodElement(MethodElement object) { - return createMethodElementAdapter(); - } - public Object caseExcludeList(ExcludeList object) { - return createExcludeListAdapter(); - } - public Object caseSession(Session object) { - return createSessionAdapter(); - } - public Object caseMessageDriven(MessageDriven object) { - return createMessageDrivenAdapter(); - } - public Object caseMessageDrivenDestination(MessageDrivenDestination object) { - return createMessageDrivenDestinationAdapter(); - } - public Object caseActivationConfig(ActivationConfig object) { - return createActivationConfigAdapter(); - } - public Object caseActivationConfigProperty(ActivationConfigProperty object) { - return createActivationConfigPropertyAdapter(); - } - public Object caseEJBMethodCategory(EJBMethodCategory object) { - return createEJBMethodCategoryAdapter(); - } - public Object caseEAttribute(EAttribute object) { - return createEAttributeAdapter(); - } - public Object caseEStructuralFeature(EStructuralFeature object) { - return createEStructuralFeatureAdapter(); - } - public Object caseEModelElement(EModelElement object) { - return createEModelElementAdapter(); - } - public Object caseENamedElement(ENamedElement object) { - return createENamedElementAdapter(); - } - }; - public Adapter createAdapter(Notifier target) { - return (Adapter) sw.doSwitch((EObject) target); - } - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases - * anyway. - */ - public Adapter createMethodPermissionAdapter() { - return null; - } - public Adapter createAssemblyDescriptorAdapter() { - return null; - } - public Adapter createMethodTransactionAdapter() { - return null; - } - public Adapter createEnterpriseBeanAdapter() { - return null; - } - public Adapter createEntityAdapter() { - return null; - } - public Adapter createContainerManagedEntityAdapter() { - return null; - } - public Adapter createCMPAttributeAdapter() { - return null; - } - public Adapter createCMRFieldAdapter() { - return null; - } - public Adapter createEJBRelationshipRoleAdapter() { - return null; - } - public Adapter createEJBRelationAdapter() { - return null; - } - public Adapter createRelationshipsAdapter() { - return null; - } - public Adapter createEJBJarAdapter() { - return null; - } - public Adapter createRoleSourceAdapter() { - return null; - } - public Adapter createQueryAdapter() { - return null; - } - public Adapter createQueryMethodAdapter() { - return null; - } - public Adapter createMethodElementAdapter() { - return null; - } - public Adapter createExcludeListAdapter() { - return null; - } - public Adapter createSessionAdapter() { - return null; - } - public Adapter createMessageDrivenAdapter() { - return null; - } - public Adapter createMessageDrivenDestinationAdapter() { - return null; - } - public Adapter createEJBMethodCategoryAdapter() { - return null; - } - public Adapter createEClassAdapter() { - return null; - } - public Adapter createEAttributeAdapter() { - return null; - } - public Adapter createEStructuralFeatureAdapter() { - return null; - } - public Adapter createEClassifierAdapter() { - return null; - } - public Adapter createEModelElementAdapter() { - return null; - } - public Adapter createENamedElementAdapter() { - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEObjectAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean isFactoryForTypeGen(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EjbSwitch modelSwitch = - new EjbSwitch() { - public Object caseContainerManagedEntity(ContainerManagedEntity object) { - return createContainerManagedEntityAdapter(); - } - public Object caseMethodPermission(MethodPermission object) { - return createMethodPermissionAdapter(); - } - public Object caseAssemblyDescriptor(AssemblyDescriptor object) { - return createAssemblyDescriptorAdapter(); - } - public Object caseMethodTransaction(MethodTransaction object) { - return createMethodTransactionAdapter(); - } - public Object caseSession(Session object) { - return createSessionAdapter(); - } - public Object caseEntity(Entity object) { - return createEntityAdapter(); - } - public Object caseEnterpriseBean(EnterpriseBean object) { - return createEnterpriseBeanAdapter(); - } - public Object caseEJBMethodCategory(EJBMethodCategory object) { - return createEJBMethodCategoryAdapter(); - } - public Object caseEJBJar(EJBJar object) { - return createEJBJarAdapter(); - } - public Object caseMethodElement(MethodElement object) { - return createMethodElementAdapter(); - } - public Object caseCMPAttribute(CMPAttribute object) { - return createCMPAttributeAdapter(); - } - public Object caseRelationships(Relationships object) { - return createRelationshipsAdapter(); - } - public Object caseQuery(Query object) { - return createQueryAdapter(); - } - public Object caseEJBRelation(EJBRelation object) { - return createEJBRelationAdapter(); - } - public Object caseEJBRelationshipRole(EJBRelationshipRole object) { - return createEJBRelationshipRoleAdapter(); - } - public Object caseRoleSource(RoleSource object) { - return createRoleSourceAdapter(); - } - public Object caseCMRField(CMRField object) { - return createCMRFieldAdapter(); - } - public Object caseMessageDriven(MessageDriven object) { - return createMessageDrivenAdapter(); - } - public Object caseMessageDrivenDestination(MessageDrivenDestination object) { - return createMessageDrivenDestinationAdapter(); - } - public Object caseExcludeList(ExcludeList object) { - return createExcludeListAdapter(); - } - public Object caseQueryMethod(QueryMethod object) { - return createQueryMethodAdapter(); - } - public Object caseActivationConfigProperty(ActivationConfigProperty object) { - return createActivationConfigPropertyAdapter(); - } - public Object caseActivationConfig(ActivationConfig object) { - return createActivationConfigAdapter(); - } - public Object caseDescriptionGroup(DescriptionGroup object) { - return createDescriptionGroupAdapter(); - } - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return createCompatibilityDescriptionGroupAdapter(); - } - public Object caseJNDIEnvRefsGroup(JNDIEnvRefsGroup object) { - return createJNDIEnvRefsGroupAdapter(); - } - public Object caseEModelElement(EModelElement object) { - return createEModelElementAdapter(); - } - public Object caseENamedElement(ENamedElement object) { - return createENamedElementAdapter(); - } - public Object caseETypedElement(ETypedElement object) { - return createETypedElementAdapter(); - } - public Object caseEStructuralFeature(EStructuralFeature object) { - return createEStructuralFeatureAdapter(); - } - public Object caseEAttribute(EAttribute object) { - return createEAttributeAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAdapterGen(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases - * anyway. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createMethodPermissionAdapterGen() { - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAssemblyDescriptorAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createMethodTransactionAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEnterpriseBeanAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEntityAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createContainerManagedEntityAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createCMPAttributeAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createCMRFieldAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEJBRelationshipRoleAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEJBRelationAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createRelationshipsAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEJBJarAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createRoleSourceAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createQueryAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createQueryMethodAdapterGen() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.ejb.ActivationConfigProperty <em>Activation Config Property</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.ejb.ActivationConfigProperty - * @generated - */ - public Adapter createActivationConfigPropertyAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.ejb.ActivationConfig <em>Activation Config</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.ejb.ActivationConfig - * @generated - */ - public Adapter createActivationConfigAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - public Adapter createDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - public Adapter createCompatibilityDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup <em>JNDI Env Refs Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup - * @generated - */ - public Adapter createJNDIEnvRefsGroupAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createMethodElementAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createExcludeListAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createSessionAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createMessageDrivenAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createMessageDrivenDestinationAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEJBMethodCategoryAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEAttributeAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEStructuralFeatureAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createEModelElementAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createENamedElementAdapterGen() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.ETypedElement <em>ETyped Element</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.emf.ecore.ETypedElement - * @generated - */ - public Adapter createETypedElementAdapter() { - return null; - } - -} //EjbAdapterFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EjbSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EjbSwitch.java deleted file mode 100644 index 4ea702ae6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/EjbSwitch.java +++ /dev/null @@ -1,781 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EModelElement; -import org.eclipse.emf.ecore.ENamedElement; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.ETypedElement; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup; -import org.eclipse.jst.j2ee.ejb.ActivationConfig; -import org.eclipse.jst.j2ee.ejb.ActivationConfigProperty; -import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.CMRField; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EJBMethodCategory; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.EJBRelationshipRole; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; -import org.eclipse.jst.j2ee.ejb.Entity; -import org.eclipse.jst.j2ee.ejb.ExcludeList; -import org.eclipse.jst.j2ee.ejb.MessageDriven; -import org.eclipse.jst.j2ee.ejb.MessageDrivenDestination; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodPermission; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; -import org.eclipse.jst.j2ee.ejb.Query; -import org.eclipse.jst.j2ee.ejb.QueryMethod; -import org.eclipse.jst.j2ee.ejb.Relationships; -import org.eclipse.jst.j2ee.ejb.RoleSource; -import org.eclipse.jst.j2ee.ejb.Session; - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.ejb.EjbPackage - * @generated - */ -public class EjbSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static EjbPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EjbSwitch() { - if (modelPackage == null) { - modelPackage = EjbPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case EjbPackage.CONTAINER_MANAGED_ENTITY: { - ContainerManagedEntity containerManagedEntity = (ContainerManagedEntity)theEObject; - Object result = caseContainerManagedEntity(containerManagedEntity); - if (result == null) result = caseEntity(containerManagedEntity); - if (result == null) result = caseEnterpriseBean(containerManagedEntity); - if (result == null) result = caseJNDIEnvRefsGroup(containerManagedEntity); - if (result == null) result = caseCompatibilityDescriptionGroup(containerManagedEntity); - if (result == null) result = caseDescriptionGroup(containerManagedEntity); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.METHOD_PERMISSION: { - MethodPermission methodPermission = (MethodPermission)theEObject; - Object result = caseMethodPermission(methodPermission); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.ASSEMBLY_DESCRIPTOR: { - AssemblyDescriptor assemblyDescriptor = (AssemblyDescriptor)theEObject; - Object result = caseAssemblyDescriptor(assemblyDescriptor); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.METHOD_TRANSACTION: { - MethodTransaction methodTransaction = (MethodTransaction)theEObject; - Object result = caseMethodTransaction(methodTransaction); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.SESSION: { - Session session = (Session)theEObject; - Object result = caseSession(session); - if (result == null) result = caseEnterpriseBean(session); - if (result == null) result = caseJNDIEnvRefsGroup(session); - if (result == null) result = caseCompatibilityDescriptionGroup(session); - if (result == null) result = caseDescriptionGroup(session); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.ENTITY: { - Entity entity = (Entity)theEObject; - Object result = caseEntity(entity); - if (result == null) result = caseEnterpriseBean(entity); - if (result == null) result = caseJNDIEnvRefsGroup(entity); - if (result == null) result = caseCompatibilityDescriptionGroup(entity); - if (result == null) result = caseDescriptionGroup(entity); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.ENTERPRISE_BEAN: { - EnterpriseBean enterpriseBean = (EnterpriseBean)theEObject; - Object result = caseEnterpriseBean(enterpriseBean); - if (result == null) result = caseJNDIEnvRefsGroup(enterpriseBean); - if (result == null) result = caseCompatibilityDescriptionGroup(enterpriseBean); - if (result == null) result = caseDescriptionGroup(enterpriseBean); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.EJB_METHOD_CATEGORY: { - EJBMethodCategory ejbMethodCategory = (EJBMethodCategory)theEObject; - Object result = caseEJBMethodCategory(ejbMethodCategory); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.EJB_JAR: { - EJBJar ejbJar = (EJBJar)theEObject; - Object result = caseEJBJar(ejbJar); - if (result == null) result = caseCompatibilityDescriptionGroup(ejbJar); - if (result == null) result = caseDescriptionGroup(ejbJar); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.METHOD_ELEMENT: { - MethodElement methodElement = (MethodElement)theEObject; - Object result = caseMethodElement(methodElement); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.CMP_ATTRIBUTE: { - CMPAttribute cmpAttribute = (CMPAttribute)theEObject; - Object result = caseCMPAttribute(cmpAttribute); - if (result == null) result = caseEAttribute(cmpAttribute); - if (result == null) result = caseEStructuralFeature(cmpAttribute); - if (result == null) result = caseETypedElement(cmpAttribute); - if (result == null) result = caseENamedElement(cmpAttribute); - if (result == null) result = caseEModelElement(cmpAttribute); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.RELATIONSHIPS: { - Relationships relationships = (Relationships)theEObject; - Object result = caseRelationships(relationships); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.QUERY: { - Query query = (Query)theEObject; - Object result = caseQuery(query); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.EJB_RELATION: { - EJBRelation ejbRelation = (EJBRelation)theEObject; - Object result = caseEJBRelation(ejbRelation); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.EJB_RELATIONSHIP_ROLE: { - EJBRelationshipRole ejbRelationshipRole = (EJBRelationshipRole)theEObject; - Object result = caseEJBRelationshipRole(ejbRelationshipRole); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.ROLE_SOURCE: { - RoleSource roleSource = (RoleSource)theEObject; - Object result = caseRoleSource(roleSource); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.CMR_FIELD: { - CMRField cmrField = (CMRField)theEObject; - Object result = caseCMRField(cmrField); - if (result == null) result = caseCMPAttribute(cmrField); - if (result == null) result = caseEAttribute(cmrField); - if (result == null) result = caseEStructuralFeature(cmrField); - if (result == null) result = caseETypedElement(cmrField); - if (result == null) result = caseENamedElement(cmrField); - if (result == null) result = caseEModelElement(cmrField); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.MESSAGE_DRIVEN: { - MessageDriven messageDriven = (MessageDriven)theEObject; - Object result = caseMessageDriven(messageDriven); - if (result == null) result = caseEnterpriseBean(messageDriven); - if (result == null) result = caseJNDIEnvRefsGroup(messageDriven); - if (result == null) result = caseCompatibilityDescriptionGroup(messageDriven); - if (result == null) result = caseDescriptionGroup(messageDriven); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.MESSAGE_DRIVEN_DESTINATION: { - MessageDrivenDestination messageDrivenDestination = (MessageDrivenDestination)theEObject; - Object result = caseMessageDrivenDestination(messageDrivenDestination); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.EXCLUDE_LIST: { - ExcludeList excludeList = (ExcludeList)theEObject; - Object result = caseExcludeList(excludeList); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.QUERY_METHOD: { - QueryMethod queryMethod = (QueryMethod)theEObject; - Object result = caseQueryMethod(queryMethod); - if (result == null) result = caseMethodElement(queryMethod); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.ACTIVATION_CONFIG_PROPERTY: { - ActivationConfigProperty activationConfigProperty = (ActivationConfigProperty)theEObject; - Object result = caseActivationConfigProperty(activationConfigProperty); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EjbPackage.ACTIVATION_CONFIG: { - ActivationConfig activationConfig = (ActivationConfig)theEObject; - Object result = caseActivationConfig(activationConfig); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Container Managed Entity</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Container Managed Entity</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseContainerManagedEntity(ContainerManagedEntity object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Method Permission</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Method Permission</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMethodPermission(MethodPermission object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Assembly Descriptor</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Assembly Descriptor</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseAssemblyDescriptor(AssemblyDescriptor object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Method Transaction</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Method Transaction</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMethodTransaction(MethodTransaction object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Session</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Session</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseSession(Session object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Entity</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Entity</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEntity(Entity object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Enterprise Bean</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Enterprise Bean</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEnterpriseBean(EnterpriseBean object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EJB Method Category</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EJB Method Category</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEJBMethodCategory(EJBMethodCategory object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EJB Jar</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EJB Jar</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEJBJar(EJBJar object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Method Element</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Method Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMethodElement(MethodElement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>CMP Attribute</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>CMP Attribute</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCMPAttribute(CMPAttribute object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Relationships</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Relationships</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseRelationships(Relationships object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Query</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Query</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseQuery(Query object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EJB Relation</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EJB Relation</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEJBRelation(EJBRelation object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EJB Relationship Role</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EJB Relationship Role</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEJBRelationshipRole(EJBRelationshipRole object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Role Source</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Role Source</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseRoleSource(RoleSource object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>CMR Field</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>CMR Field</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCMRField(CMRField object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Message Driven</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Message Driven</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMessageDriven(MessageDriven object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Message Driven Destination</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Message Driven Destination</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMessageDrivenDestination(MessageDrivenDestination object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Exclude List</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Exclude List</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseExcludeList(ExcludeList object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Query Method</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Query Method</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseQueryMethod(QueryMethod object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Activation Config Property</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Activation Config Property</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseActivationConfigProperty(ActivationConfigProperty object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Activation Config</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Activation Config</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseActivationConfig(ActivationConfig object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionGroup(DescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>JNDI Env Refs Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>JNDI Env Refs Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseJNDIEnvRefsGroup(JNDIEnvRefsGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EModel Element</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EModel Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEModelElement(EModelElement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>ENamed Element</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>ENamed Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseENamedElement(ENamedElement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>ETyped Element</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>ETyped Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseETypedElement(ETypedElement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EStructural Feature</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EStructural Feature</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEStructuralFeature(EStructuralFeature object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EAttribute</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EAttribute</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEAttribute(EAttribute object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //EjbSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/MDBActivationConfigModelUtil.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/MDBActivationConfigModelUtil.java deleted file mode 100644 index 52451520f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/MDBActivationConfigModelUtil.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Created on Jan 30, 2005 - * - * TODO To change the template for this generated file go to - * Window - Preferences - Java - Code Style - Code Templates - */ -package org.eclipse.jst.j2ee.ejb.internal.util; - -import java.util.HashMap; - -/** - * @author vijayb - * - * TODO To change the template for this generated type comment go to - * Window - Preferences - Java - Code Style - Code Templates - */ -public class MDBActivationConfigModelUtil { - - public static HashMap activationConfigMap; - - public static final String ackModeKey = "acknowledgeMode"; //$NON-NLS-1$ - - public static final String destinationTypeKey = "destinationType";//$NON-NLS-1$ - - public static final String durabilityKey = "subscriptionDurability";//$NON-NLS-1$ - - public static final String messageSelectorKey = "messageSelector";//$NON-NLS-1$ - - public static final String[] ackModeValues = new String[] { "Auto-acknowledge", "Dups-ok-acknowledge" }; //$NON-NLS-1$ //$NON-NLS-2$ - - public static final String[] destinationTypeValues = new String[] { "javax.jms.Queue", "javax.jms.Topic" };//$NON-NLS-1$ //$NON-NLS-2$ - - public static final String[] durabilityValue = new String[] { "Durable", "NonDurable" };//$NON-NLS-1$ //$NON-NLS-2$ - - /** - * - */ - public MDBActivationConfigModelUtil() { - super(); - // TODO Auto-generated constructor stub - } - - public static HashMap createStandardActivationConfigMap() { - activationConfigMap = new HashMap(); - activationConfigMap.put(ackModeKey, ackModeValues); - activationConfigMap.put(destinationTypeKey, destinationTypeValues); - activationConfigMap.put(durabilityKey, durabilityValue); - activationConfigMap.put(messageSelectorKey, ""); //$NON-NLS-1$ - return activationConfigMap; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/MethodElementHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/MethodElementHelper.java deleted file mode 100644 index 768ec9c5e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/MethodElementHelper.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.ExcludeList; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodPermission; -import org.eclipse.jst.j2ee.ejb.MethodTransaction; - - -/** - * @author cbridgha - * - * To change this generated comment edit the template variable "typecomment": - * Window>Preferences>Java>Templates. - * To enable and disable the creation of type comments go to - * Window>Preferences>Java>Code Generation. - */ -public class MethodElementHelper { - public static final int NONE = 0; - public static final int METHOD_PERMISSION = 1; - public static final int METHOD_TRANSACTION = 2; - public static final int EXCLUDE_LIST = 3; - public static int getContainedType(MethodElement me) { - EObject container = me.eContainer(); - if (container == null) - return NONE; - if (container instanceof MethodPermission) - return METHOD_PERMISSION; - if (container instanceof MethodTransaction) - return METHOD_TRANSACTION; - if (container instanceof ExcludeList) - return EXCLUDE_LIST; - return NONE; - } - public static MethodPermission getMethodPermission(MethodElement me) { - if (METHOD_PERMISSION == getContainedType(me)) - return (MethodPermission) me.eContainer(); - return null; - } - public static MethodTransaction getMethodTransaction(MethodElement me) { - if (METHOD_TRANSACTION == getContainedType(me)) - return (MethodTransaction) me.eContainer(); - return null; - } - public static ExcludeList getExcludeList(MethodElement me) { - if (EXCLUDE_LIST == getContainedType(me)) - return (ExcludeList) me.eContainer(); - return null; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/RelationshipsAttributeMaintenanceAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/RelationshipsAttributeMaintenanceAdapter.java deleted file mode 100644 index 2a0ae8826..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/internal/util/RelationshipsAttributeMaintenanceAdapter.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.ejb.internal.util; -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.ejb.EJBRelation; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbFactoryImpl; - -public class RelationshipsAttributeMaintenanceAdapter extends AdapterImpl { - /** - * @see org.eclipse.emf.common.notify.impl.AdapterImpl#notifyChanged(Notification) - */ - public void notifyChanged(Notification msg) { - if ((EStructuralFeature)msg.getFeature() == EjbFactoryImpl.getPackage().getRelationships_EjbRelations()) { - switch (msg.getEventType()) { - case Notification.ADD : - addedEJBRelation((EJBRelation) msg.getNewValue(), (EStructuralFeature)msg.getFeature()); - break; - case Notification.REMOVE : - removedEJBRelation((EJBRelation) msg.getOldValue(), (EStructuralFeature)msg.getFeature()); - break; - } - } - } - private void removedEJBRelation(EJBRelation aRelation, EObject sf) { - Adapter a = getAdapter(aRelation); - if (a != null) { - Notification not = new ENotificationImpl((InternalEObject)aRelation, Notification.REMOVE,(EStructuralFeature) sf, aRelation, null, Notification.NO_INDEX); - a.notifyChanged(not); - } - } - private void addedEJBRelation(EJBRelation aRelation, EObject sf) { - Adapter a = getAdapter(aRelation); - if (a != null) { - Notification not = new ENotificationImpl((InternalEObject)aRelation, Notification.ADD,(EStructuralFeature) sf, null, aRelation, Notification.NO_INDEX); - a.notifyChanged(not); - } - } - private Adapter getAdapter(EObject anObject) { - return EcoreUtil.getAdapter(anObject.eAdapters(),EJBAttributeMaintenanceFactoryImpl.ADAPTER_KEY); - } -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/package.xml b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/package.xml deleted file mode 100644 index 5cca7958d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/package.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<html> - <head> - <meta - name="root" - content="../../../../../../../" /> - <title>EJB Artifact Edit api overview</title> - </head> - - <body> - <abstract> - This package includes the enterprise bean module model api. Using this api the artifacts of an enterprise bean app - can be created and accessed. - </abstract> - - <a href="#top">top</a> - </body> -</html> -
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/DefaultEJBModelExtenderProvider.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/DefaultEJBModelExtenderProvider.java deleted file mode 100644 index f921460a5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/DefaultEJBModelExtenderProvider.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Nov 25, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal; - -/** - * @author mdelder - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class DefaultEJBModelExtenderProvider implements IEJBModelExtenderProvider { - - /** - * - */ - public DefaultEJBModelExtenderProvider() { - super(); - - } - - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.core.moduleextension.helper.IEJBModelExtenderProvider#getEJBModuleExtension(java.lang.Object) - */ - public EjbModuleExtensionHelper getEJBModuleExtension(Object context) { - return null; - } - - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.core.moduleextension.helper.IEJBModelExtenderProvider#hasEJBModuleExtension(java.lang.Object) - */ - public boolean hasEJBModuleExtension(Object context) { - return getEJBModuleExtension(context) != null; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/EJBModelExtenderManager.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/EJBModelExtenderManager.java deleted file mode 100644 index 616e889ee..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/EJBModelExtenderManager.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Sep 19, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal; - - -/** - * @author cbridgha - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class EJBModelExtenderManager implements IEJBModelExtenderManager { - - private IEJBModelExtenderProvider provider = new DefaultEJBModelExtenderProvider(); - - /** - * @deprecated Should use IEJBModelExtenderManager.INSTANCE.getEJBModuleExtension(null); - */ - public static EjbModuleExtensionHelper getEJBModuleExtension() { - return IEJBModelExtenderManager.INSTANCE.getEJBModuleExtension(null); - } - - public EjbModuleExtensionHelper getEJBModuleExtension(Object context) { - return provider.getEJBModuleExtension(context); - } - - public boolean hasEJBModuleExtension(Object context) { - return getEJBModuleExtension(context) != null; - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.core.moduleextension.helper.IEJBModelExtenderManager#setProvider(org.eclipse.jst.j2ee.internal.core.moduleextension.helper.IEJBModelExtenderProvider) - */ - public void setProvider(IEJBModelExtenderProvider provider) { - this.provider = provider; - } - - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.core.moduleextension.helper.IEJBModelExtenderManager#isProviderSet() - */ - public boolean isProviderSet() { - return !(this.provider instanceof DefaultEJBModelExtenderProvider); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/EjbModuleExtensionHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/EjbModuleExtensionHelper.java deleted file mode 100644 index 0002f56eb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/EjbModuleExtensionHelper.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Sep 19, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal; - -import java.util.List; - -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EnterpriseBean; - - - -/** - * This is a helper used for deriving the JNDI name of enterprise beans, - * and for inheritance support. The helper can be plugged in by application - * server vendors. - */ - -public interface EjbModuleExtensionHelper extends J2EEModuleExtensionHelper { - List getSubtypes(EnterpriseBean anEJB); - EnterpriseBean getSuperType(EnterpriseBean anEJB); - List getRoleMethodNamesExtended(ContainerManagedEntity cmp); - String getEJBInheritanceFileName(); - String getJNDIName(EJBJar jar, EnterpriseBean bean); - List getRelationships_cmp11(EJBJar jar); - List getLocalRelationshipRoles_cmp11(ContainerManagedEntity cmp); - boolean isEJBInheritanceSupported(); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/ExceptionHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/ExceptionHelper.java deleted file mode 100644 index cdd7d065d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/ExceptionHelper.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - - - -import java.util.ArrayList; -import java.util.List; -/** - * Utility class to factor common code for implementers of IWrappedException - */ -public class ExceptionHelper { -/** - * Utility class; cannot be instantiated - */ -private ExceptionHelper() { - super(); -} -/** - * Return the messages from @exception and all nested exceptions, in order from outermost to innermost - */ -public static java.lang.String[] getAllMessages(IWrappedException exception) { - List messages = new ArrayList(4); - messages.add(exception.getMessage()); - Exception nested = exception.getNestedException(); - while (nested != null) { - messages.add(nested.getMessage()); - if (nested instanceof IWrappedException) - nested = ((IWrappedException)nested).getNestedException(); - else - nested = null; - } - return (String[])messages.toArray(new String[messages.size()]); -} -/** - * Return the messages from @exception and all nested exceptions, in order from outermost to innermost, - * concatenated as one - */ -public static String getConcatenatedMessages(IWrappedException exception) { - String[] messages = getAllMessages(exception); - StringBuffer sb = new StringBuffer(256); - for (int i = 0; i < messages.length; i++){ - sb.append(messages[i]); - if (i < messages.length-1) - sb.append('\n'); - } - return sb.toString(); -} -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IEJBModelExtenderManager.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IEJBModelExtenderManager.java deleted file mode 100644 index f72b2f95b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IEJBModelExtenderManager.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - -/** - * The IEJBModelExtenderManager replaces the former J2EEModuleExtensionManager and acts - * as a facade for a single IEJBModelExtenderProvider. The IEJBModelExtenderProvider will - * provide the correct extension helper based on a given context (@see IEJBModelExtenderProvider). - * - * @author mdelder - * - */ -public interface IEJBModelExtenderManager extends IEJBModelExtenderProvider { - - IEJBModelExtenderManager INSTANCE = new EJBModelExtenderManager(); - - /** - * - * @return true if the provider for which the manager is a facade has been set - */ - boolean isProviderSet(); - - /** - * - * @param provider the manager will act as a facade to the given provider - */ - void setProvider(IEJBModelExtenderProvider provider); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IEJBModelExtenderProvider.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IEJBModelExtenderProvider.java deleted file mode 100644 index 28f285bfc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IEJBModelExtenderProvider.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Nov 25, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal; - -/** - * @author mdelder - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public interface IEJBModelExtenderProvider { - - /** - * - * @param context a supplied object to determine the context (e.g. IProject if available) - * @return the appropriate EjbModuleExtensionHelper or <b>null</b> if none exists - */ - EjbModuleExtensionHelper getEJBModuleExtension(Object context); - - /** - * - * @param context a supplied object to determine the context (e.g. IProject if available) - * @return true if the given context has an extension - */ - boolean hasEJBModuleExtension(Object context); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IWrappedException.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IWrappedException.java deleted file mode 100644 index cce0218be..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IWrappedException.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - - - -/** - * Common interface for WrappedRuntime and Wrapped exceptions, which can contain nested exceptions - */ -public interface IWrappedException { -/** - * Return the messages from this and all nested exceptions, in order from outermost to innermost - */ -public String[] getAllMessages(); -/** - * Return the messages from this and all nested exceptions, in order from outermost to innermost, - * concatenated as one - */ -public String getConcatenatedMessages(); -public String getMessage(); -public java.lang.Exception getNestedException(); -public void printStackTrace(); -public void printStackTrace(java.io.PrintStream s); -public void printStackTrace(java.io.PrintWriter s); -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEConstants.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEConstants.java deleted file mode 100644 index 670a7da85..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEConstants.java +++ /dev/null @@ -1,176 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - -import org.eclipse.emf.common.util.URI; - - - -/** - * This is a catalog of useful constants for the archive support. Can be used to - * store relative paths to specific xml and xmi resources. - */ -public interface J2EEConstants extends J2EEVersionConstants { - //Standard Jar info - /** "META-INF/MANIFEST.MF" */ - String MANIFEST_URI = "META-INF/MANIFEST.MF"; //$NON-NLS-1$ - URI MANIFEST_URI_OBJ = URI.createURI(MANIFEST_URI); - String MANIFEST_SHORT_NAME = "MANIFEST.MF"; //$NON-NLS-1$ - - /** "META-INF" */ - String META_INF = "META-INF"; //$NON-NLS-1$ - /** "WEB-INF" */ - String WEB_INF = "WEB-INF"; //$NON-NLS-1$ - String WEB_INF_CLASSES = "WEB-INF/classes"; //$NON-NLS-1$ - /** "ALT-INF" */ - String ALT_INF = "ALT-INF"; //$NON-NLS-1$ - //Application client info - /** "Application-client_ID" */ - String APP_CLIENT_ID = "Application-client_ID"; //$NON-NLS-1$ - /** "META-INF/application-client.xml" */ - String APP_CLIENT_DD_URI = "META-INF/application-client.xml"; //$NON-NLS-1$ - URI APP_CLIENT_DD_URI_OBJ = URI.createURI(APP_CLIENT_DD_URI); - /** "application-client.xml" */ - String APP_CLIENT_DD_SHORT_NAME = "application-client.xml"; //$NON-NLS-1$ - /** Doc type for app client deployment descriptors */ - String APP_CLIENT_DOCTYPE = "application-client"; //$NON-NLS-1$ - String APP_CLIENT_PUBLICID_1_2 = "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN"; //$NON-NLS-1$ - String APP_CLIENT_PUBLICID_1_3 = "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.3//EN"; //$NON-NLS-1$ - String APP_CLIENT_SYSTEMID_1_2 = "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd"; //$NON-NLS-1$ - String APP_CLIENT_ALT_SYSTEMID_1_2 = "http://java.sun.com/j2ee/dtds/application-client_1.2.dtd"; //$NON-NLS-1$ - String APP_CLIENT_SYSTEMID_1_3 = "http://java.sun.com/dtd/application-client_1_3.dtd"; //$NON-NLS-1$ - String APP_CLIENT_ALT_SYSTEMID_1_3 = "http://java.sun.com/dtd/application-client_1.3.dtd"; //$NON-NLS-1$ - String APP_CLIENT_SCHEMA_1_4 = "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd";//$NON-NLS-1$ - - - //Application constants - /** "Application_ID" */ - String APPL_ID = "Application_ID"; //$NON-NLS-1$ - /** "META-INF/application.xml" */ - String APPLICATION_DD_URI = "META-INF/application.xml"; //$NON-NLS-1$ - URI APPLICATION_DD_URI_OBJ = URI.createURI(APPLICATION_DD_URI); - /** "application.xml" */ - String APPLICATION_DD_SHORT_NAME = "application.xml"; //$NON-NLS-1$ - String EAR_FILE_EXT = ".ear"; ////$NON-NLS-1$ - /** Doc type for application deployment descriptors */ - String APPLICATION_DOCTYPE = "application"; //$NON-NLS-1$ - String APPLICATION_PUBLICID_1_2 = "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN"; //$NON-NLS-1$ - String APPLICATION_PUBLICID_1_3 = "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"; //$NON-NLS-1$ - String APPLICATION_PUBLICID_1_4 = "-//Sun Microsystems, Inc.//DTD J2EE Application 1.4//EN"; //$NON-NLS-1$ - String APPLICATION_SYSTEMID_1_2 = "http://java.sun.com/j2ee/dtds/application_1_2.dtd"; //$NON-NLS-1$ - String APPLICATION_ALT_SYSTEMID_1_2 = "http://java.sun.com/j2ee/dtds/application_1.2.dtd"; //$NON-NLS-1$ - String APPLICATION_SYSTEMID_1_3 = "http://java.sun.com/dtd/application_1_3.dtd"; //$NON-NLS-1$ - String APPLICATION_ALT_SYSTEMID_1_3 = "http://java.sun.com/dtd/application_1.3.dtd"; //$NON-NLS-1$ - String APPLICATION_SYSTEMID_1_4 = "http://java.sun.com/dtd/application_1_4.dtd"; //$NON-NLS-1$ - String APPLICATION_SCHEMA_1_4 = "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd";//$NON-NLS-1$ - - //EJB Jar Constants - /** "ejb-jar_ID" */ - String EJBJAR_ID = "ejb-jar_ID"; //$NON-NLS-1$ - /** "AssemblyDescriptor_ID" */ - String ASSEMBLYDESCRIPTOR_ID = "AssemblyDescriptor_ID"; //$NON-NLS-1$ - /** "ejb-jar.xml" */ - String EJBJAR_DD_SHORT_NAME = "ejb-jar.xml"; //$NON-NLS-1$ - /** "META-INF/ejb-jar.xml" */ - String EJBJAR_DD_URI = "META-INF/ejb-jar.xml"; //$NON-NLS-1$ - URI EJBJAR_DD_URI_OBJ = URI.createURI(EJBJAR_DD_URI); - /** "META-INF/ibm-ejb-jar-bnd.xmi" */ - String EJBJAR_DOCTYPE = "ejb-jar"; //$NON-NLS-1$ - String EJBJAR_PUBLICID_1_1 = "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"; //$NON-NLS-1$ - String EJBJAR_PUBLICID_2_0 = "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"; //$NON-NLS-1$ - String EJBJAR_SYSTEMID_1_1 = "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd"; //$NON-NLS-1$ - String EJBJAR_ALT_SYSTEMID_1_1 = "http://java.sun.com/j2ee/dtds/ejb-jar_1.1.dtd"; //$NON-NLS-1$ - String EJBJAR_SYSTEMID_2_0 = "http://java.sun.com/dtd/ejb-jar_2_0.dtd"; //$NON-NLS-1$ - String EJBJAR_ALT_SYSTEMID_2_0 = "http://java.sun.com/dtd/ejb-jar_2.0.dtd"; //$NON-NLS-1$ - String EJBJAR_SCHEMA_2_1 = "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd";//$NON-NLS-1$ - String EJBJAR_SCHEMA_2_1_NS = "http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd";//$NON-NLS-1$ - - //Web app Constants - /** "WebApp_ID" */ - String WEBAPP_ID = "WebApp_ID"; //$NON-NLS-1$ - /** "WEB-INF/web.xml" */ - String WEBAPP_DD_URI = "WEB-INF/web.xml"; //$NON-NLS-1$ - URI WEBAPP_DD_URI_OBJ = URI.createURI(WEBAPP_DD_URI); - /** "web.xml" */ - String WEBAPP_DD_SHORT_NAME = "web.xml"; //$NON-NLS-1$ - /** "WEB-INF/ibm-web-bnd.xmi" */ - /** Doc type for web app deployment descriptors */ - String WEBAPP_DOCTYPE = "web-app"; //$NON-NLS-1$ - String CONTEXTROOT = "context-root"; //$NON-NLS-1$ - String WEBAPP_PUBLICID_2_2 = "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"; //$NON-NLS-1$ - String WEBAPP_PUBLICID_2_3 = "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"; //$NON-NLS-1$ - String WEBAPP_SYSTEMID_2_2 = "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"; //$NON-NLS-1$ - String WEBAPP_ALT_SYSTEMID_2_2 = "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"; //$NON-NLS-1$ - String WEBAPP_SYSTEMID_2_3 = "http://java.sun.com/dtd/web-app_2_3.dtd"; //$NON-NLS-1$ - String WEBAPP_ALT_SYSTEMID_2_3 = "http://java.sun.com/dtd/web-app_2.3.dtd"; //$NON-NLS-1$ - String WEBAPP_SCHEMA_2_4 = "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";//$NON-NLS-1$ - //J2C Resource Adapter Constants - /** "J2CResourceAdapter_ID" */ - String RAR_ID = "J2CResourceAdapter_ID"; //$NON-NLS-1$ - /** "META-INF/ra.xml" */ - String RAR_DD_URI = "META-INF/ra.xml"; //$NON-NLS-1$ - URI RAR_DD_URI_OBJ = URI.createURI(RAR_DD_URI); - String RAR_SHORT_NAME = "ra.xml"; //$NON-NLS-1$ - //Need connector constant. - String CONNECTOR_ID = "Connector_ID"; //$NON-NLS-1$ - /** Doc type for connector deployment descriptors */ - String CONNECTOR_DOCTYPE = "connector"; //$NON-NLS-1$ - String CONNECTOR_PUBLICID_1_0 = "-//Sun Microsystems, Inc.//DTD Connector 1.0//EN"; //$NON-NLS-1$ - String CONNECTOR_SYSTEMID_1_0 = "http://java.sun.com/dtd/connector_1_0.dtd"; //$NON-NLS-1$ - String CONNECTOR_ALT_SYSTEMID_1_0 = "http://java.sun.com/dtd/connector_1.0.dtd"; //$NON-NLS-1$ - String CONNECTOR_SCHEMA_1_5 = "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd";//$NON-NLS-1$ - - //Web Services Constants - /** Doc type for webservices deployment descriptors */ - String WEB_SERVICES_CLIENT_DOCTYPE = "webservicesclient"; //$NON-NLS-1$ - String WEB_SERVICES_CLIENT_PUBLICID_1_0 = "-//IBM Corporation, Inc.//DTD J2EE Web services client 1.0//EN"; //$NON-NLS-1$ - String WEB_SERVICES_CLIENT_SYSTEMID_1_0 = "http://www.ibm.com/webservices/dtd/j2ee_web_services_client_1_0.dtd"; //$NON-NLS-1$ - String WEB_SERVICES_CLIENT_LOC_1_1 = "http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd"; //$NON-NLS-1$ - String WEB_SERVICES_CLIENT_SHORTNAME = "webservicesclient.xml"; //$NON-NLS-1$ - String WEB_SERVICES_CLIENT_DD_URI = "webservicesclient.xml"; //$NON-NLS-1$ - String WEB_SERVICES_CLIENT_META_INF_DD_URI = "META-INF/webservicesclient.xml"; //$NON-NLS-1$ - String WEB_SERVICES_CLIENT_WEB_INF_DD_URI = "WEB-INF/webservicesclient.xml"; //$NON-NLS-1$ - URI WEB_SERVICES_CLIENT_DD_URI_OBJ = URI.createURI(WEB_SERVICES_CLIENT_DD_URI); - URI WEB_SERVICES_CLIENT_META_INF_DD_URI_OBJ = URI.createURI(WEB_SERVICES_CLIENT_META_INF_DD_URI); - URI WEB_SERVICES_CLIENT_WEB_INF_DD_URI_OBJ = URI.createURI(WEB_SERVICES_CLIENT_WEB_INF_DD_URI); - - String WEB_SERVICES_DD_URI = "webservices.xml"; //$NON-NLS-1$ - String WEB_SERVICES_META_INF_DD_URI = "META-INF/webservices.xml"; //$NON-NLS-1$ - String WEB_SERVICES_WEB_INF_DD_URI = "WEB-INF/webservices.xml"; //$NON-NLS-1$ - URI WEB_SERVICES_DD_URI_OBJ = URI.createURI(WEB_SERVICES_DD_URI); - URI WEB_SERVICES_META_INF_DD_URI_OBJ = URI.createURI(WEB_SERVICES_META_INF_DD_URI); - URI WEB_SERVICES_WEB_INF_DD_URI_OBJ = URI.createURI(WEB_SERVICES_WEB_INF_DD_URI); - - //Miscellaneous constants - /** "UTF-8" */ - String DEFAULT_XML_ENCODING = "UTF-8"; //$NON-NLS-1$ - /** "1.0" */ - String DEFAULT_XML_VERSION = "1.0"; //$NON-NLS-1$ - String JAVA_SUN_COM_URL = "http://java.sun.com"; //$NON-NLS-1$ - String WWW_W3_ORG_URL = "http://www.w3.org"; //$NON-NLS-1$ - String WWW_IBM_COM_URL = "http://www.ibm.com"; //$NON-NLS-1$ - - String J2EE_NS_URL = "http://java.sun.com/xml/ns/j2ee"; //$NON-NLS-1$ - String J2EE_1_4_XSD_SHORT_NAME = "j2ee_1_4.xsd"; //$NON-NLS-1$ - String XSI_NS_URL = "http://www.w3.org/2001/XMLSchema-instance"; //$NON-NLS-1$ - String APPLICATION_SCHEMA_LOC_1_4 = "http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; //$NON-NLS-1$ - String APP_CLIENT_SCHEMA_LOC_1_4 = "http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd"; //$NON-NLS-1$ - String EJB_JAR_SCHEMA_LOC_2_1 = "http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"; //$NON-NLS-1$ - String CONNECTOR_SCHEMA_LOC_1_5 = "http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"; //$NON-NLS-1$ - String WEB_APP_SCHEMA_LOC_2_4 = "http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; //$NON-NLS-1$ - String WEB_SERVICES_CLIENT_SCHEMA_LOC_1_1 = "http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd"; //$NON-NLS-1$ - String JSP_SCHEMA_LOC_2_0 = "http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd"; //$NON-NLS-1$ - - public static final String EAR_MODEL_NAME = "EAR_VALIDATION"; //$NON-NLS-1$ -} - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEInit.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEInit.java deleted file mode 100644 index f2ca49188..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEInit.java +++ /dev/null @@ -1,275 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - -import java.lang.reflect.Method; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.application.ApplicationFactory; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationResourceFactory; -import org.eclipse.jst.j2ee.client.ClientFactory; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ApplicationClientResourceFactory; -import org.eclipse.jst.j2ee.common.CommonFactory; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EJBJarResourceFactory; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbFactoryImpl; -import org.eclipse.jst.j2ee.ejb.internal.util.EJBAttributeMaintenanceFactoryImpl; -import org.eclipse.jst.j2ee.internal.common.J2EEXMIResourceFactory; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.jst.j2ee.jca.JcaFactory; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.ConnectorResourceFactory; -import org.eclipse.jst.j2ee.jsp.JspFactory; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.taglib.internal.TaglibFactory; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppResourceFactory; -import org.eclipse.jst.j2ee.webservice.internal.wsdd.WsddResourceFactory; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapResourceFactory; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.WebServicesClientResourceFactory; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.wst.common.internal.emf.utilities.AdapterFactoryDescriptor; -import org.eclipse.wst.common.internal.emf.utilities.DOMUtilities; -import org.eclipse.wst.common.internal.emf.utilities.EncoderDecoderRegistry; -import org.eclipse.wst.common.internal.emf.utilities.ExtendedEcoreUtil; -import org.eclipse.wst.common.internal.emf.utilities.PasswordEncoderDecoder; -import org.eclipse.wst.common.internal.emf.utilities.Revisit; - -/** - * Insert the type's description here. - * Creation date: (10/3/2000 3:07:37 PM) - * @author: Administrator - */ -public class J2EEInit { - - - static { - try { - if(Boolean.getBoolean("LOG_XERCES_VERSION")) { //$NON-NLS-1$ - Class clz = ClassLoader.getSystemClassLoader().loadClass("org.apache.xerces.impl.Version"); //$NON-NLS-1$ - Method main = clz.getDeclaredMethod("main", new Class[] { String[].class } ); //$NON-NLS-1$ - Object version = clz.newInstance(); - main.invoke(version, new Object[] { new String[] {} }); - System.out.println(clz.getResource("Version.class")); //$NON-NLS-1$ - } - } catch(Throwable t) { - System.out.println("Problem while logging version " + t); - t.printStackTrace(); - } - } - - protected static boolean initialized = false; - protected static boolean plugin_initialized = false; - public static void init() { - init(true); - } - - public static void init(boolean shouldPreRegisterPackages) { - if (!initialized) { - initialized = true; - setDefaultEncoderDecoder(); - DOMUtilities.setDefaultEntityResolver(J2EEXmlDtDEntityResolver.INSTANCE); - org.eclipse.jem.internal.java.init.JavaInit.init(shouldPreRegisterPackages); - if (shouldPreRegisterPackages) - preRegisterPackages(); - initResourceFactories(); - EjbFactoryImpl.internalRegisterEJBRelationAdapterFactory(new AdapterFactoryDescriptor() { - public AdapterFactory createAdapterFactory() { - return new EJBAttributeMaintenanceFactoryImpl(); - } - }); - EjbFactoryImpl.internalRegisterRelationshipsAdapterFactory(new AdapterFactoryDescriptor() { - public AdapterFactory createAdapterFactory() { - return new EJBAttributeMaintenanceFactoryImpl(); - } - }); - - } - } - - /** - * If the currently defaulted encoder is the initial pass thru encoder, - * then register a Password encoder for security; otherwise if a more sophisticated - * encoder is already registered, then do nothing. - */ - private static void setDefaultEncoderDecoder() { - EncoderDecoderRegistry reg = EncoderDecoderRegistry.getDefaultRegistry(); - if (reg.getDefaultEncoderDecoder() == EncoderDecoderRegistry.INITIAL_DEFAULT_ENCODER) { - reg.setDefaultEncoderDecoder(new PasswordEncoderDecoder()); - } - } - - private static void preRegisterPackages() { - //common - ExtendedEcoreUtil.preRegisterPackage("common.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return CommonPackage.eINSTANCE; - } - public EFactory getEFactory() { - return CommonFactory.eINSTANCE; - } - }); - //application - ExtendedEcoreUtil.preRegisterPackage("application.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return ApplicationPackage.eINSTANCE; - } - public EFactory getEFactory() { - return ApplicationFactory.eINSTANCE; - } - }); - //client - ExtendedEcoreUtil.preRegisterPackage("client.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return ClientPackage.eINSTANCE; - } - public EFactory getEFactory() { - return ClientFactory.eINSTANCE; - } - }); - //webapplication - ExtendedEcoreUtil.preRegisterPackage("webapplication.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return WebapplicationPackage.eINSTANCE; - } - public EFactory getEFactory() { - return WebapplicationFactory.eINSTANCE; - } - }); - //ejb - ExtendedEcoreUtil.preRegisterPackage("ejb.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return EjbPackage.eINSTANCE; - } - public EFactory getEFactory() { - return EjbFactory.eINSTANCE; - } - }); - //jca - ExtendedEcoreUtil.preRegisterPackage("jca.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return JcaPackage.eINSTANCE; - } - public EFactory getEFactory() { - return JcaFactory.eINSTANCE; - } - }); - //webservicesclient - ExtendedEcoreUtil.preRegisterPackage("webservice_client.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return Webservice_clientPackage.eINSTANCE; - } - public EFactory getEFactory() { - return Webservice_clientFactory.eINSTANCE; - } - }); - //webservicescommon - ExtendedEcoreUtil.preRegisterPackage("wscommon.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return WscommonPackage.eINSTANCE; - } - public EFactory getEFactory() { - return WscommonFactory.eINSTANCE; - } - }); - //webservicesdd - ExtendedEcoreUtil.preRegisterPackage("wsdd.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return WsddPackage.eINSTANCE; - } - public EFactory getEFactory() { - return WsddFactory.eINSTANCE; - } - }); - //jaxrpcmap - ExtendedEcoreUtil.preRegisterPackage("jaxrpcmap.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return JaxrpcmapPackage.eINSTANCE; - } - public EFactory getEFactory() { - return JaxrpcmapFactory.eINSTANCE; - } - }); -// jsp - ExtendedEcoreUtil.preRegisterPackage("jsp.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return JspPackage.eINSTANCE; - } - public EFactory getEFactory() { - return JspFactory.eINSTANCE; - } - }); - //taglib - ExtendedEcoreUtil.preRegisterPackage("taglib.xmi", new EPackage.Descriptor() { //$NON-NLS-1$ - public EPackage getEPackage() { - return TaglibPackage.eINSTANCE; - } - public EFactory getEFactory() { - return TaglibFactory.eINSTANCE; - } - }); - - } - - public static void initResourceFactories() { - //Make protected - Revisit.revisit(); - - // Only register the default factories if another set has not - // already been registered. - - Resource.Factory j2ee = J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.EJBJAR_DD_URI_OBJ); - Resource.Factory defaultFact = J2EEResourceFactoryRegistry.INSTANCE.getFactory(URI.createURI(Resource.Factory.Registry.DEFAULT_EXTENSION)); - if (j2ee == defaultFact) { - EJBJarResourceFactory.register(); - WebAppResourceFactory.register(); - ApplicationClientResourceFactory.register(); - ApplicationResourceFactory.register(); - ConnectorResourceFactory.register(); - WebServicesClientResourceFactory.register(); - WsddResourceFactory.register(); - //register() is not called on the JaxrpcmapResourceFactory because - //the jaxprc-mapping descriptor does not have a standard short name. - //The short names have to be registered once they are known. - J2EEXMIResourceFactory.register(); - } - EJBJarResourceFactory.registerDtds(); - WebAppResourceFactory.registerDtds(); - ApplicationClientResourceFactory.registerDtds(); - ApplicationResourceFactory.registerDtds(); - ConnectorResourceFactory.registerDtds(); - WebServicesClientResourceFactory.registerDtds(); - WsddResourceFactory.registerDtds(); - JaxrpcmapResourceFactory.registerDtds(); - } - public static void setPluginInit(boolean bPluginInit) { - // Here's where the configuration file would be read. - plugin_initialized = bPluginInit; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEModuleExtensionHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEModuleExtensionHelper.java deleted file mode 100644 index 2b8b84d1c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEModuleExtensionHelper.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Sep 19, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal; - - - -/** - * @author cbridgha - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public interface J2EEModuleExtensionHelper { - String getDocType(); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEMultiStatus.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEMultiStatus.java deleted file mode 100644 index 11f91db1f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEMultiStatus.java +++ /dev/null @@ -1,114 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - -/** - * @author DABERG - */ -public class J2EEMultiStatus extends J2EEStatus { - private J2EEStatus[] children = new J2EEStatus[0]; - - public void add(J2EEStatus status) { - J2EEStatus[] result = - new J2EEStatus[children.length + 1]; - System.arraycopy(children, 0, result, 0, children.length); - result[result.length - 1] = status; - children = result; - int newSev = status.getSeverity(); - int currentSev = getSeverity(); - /* If all the statuses are NOT_NEEDED OR NOT_POSSIBLE, you want the combined status to be the highest severity - * however, if all but one status are NOT_NEEDED or NOT_POSSIBLE, and one status completed, then the combined status - * should be OK. If there is a warning or error, then they take precedence - */ - if (children.length == 1) - setSeverity(newSev); - else if (currentSev > COMPLETED_OK && currentSev < WARNING && newSev == COMPLETED_OK) - setSeverity(newSev); - else if (newSev > currentSev && (currentSev != COMPLETED_OK || newSev >= WARNING) ) - setSeverity(newSev); - - } - /** - * Adds all of the children of the given status to this multi-status. - * Does nothing if the given status has no children (which includes - * the case where it is not a multi-status). - * - * @param status the status whose children are to be added to this one - */ - public void addAll(J2EEStatus status) { - if (status == null) - return; - J2EEStatus[] statuses = status.getChildren(); - for (int i = 0; i < statuses.length; i++) { - add(statuses[i]); - } - } - - public J2EEStatus[] getChildren() { - return children; - } - - public boolean isMultiStatus() { - return true; - } - /** - * Merges the given status into this multi-status. - * Equivalent to <code>add(status)</code> if the - * given status is not a multi-status. - * Equivalent to <code>addAll(status)</code> if the - * given status is a multi-status. - * - * @param status the status to merge into this one - * @see #add - * @see #addAll - */ - public void merge(J2EEStatus status) { - if (status == null) - return; - if (!status.isMultiStatus()) { - add(status); - } else { - addAll(status); - } - } - /** - * Returns a string representation of the status, suitable - * for debugging purposes only. - */ - public String toString() { - StringBuffer buf = new StringBuffer(super.toString()); - buf.append(" children={"); //$NON-NLS-1$ - for (int i = 0; i < children.length; i++) { - if (i != 0) { - buf.append("\n"); //$NON-NLS-1$ - } - buf.append(children[i].toString()); - } - buf.append("}"); //$NON-NLS-1$ - return buf.toString(); - } - - /** - * @see com.ibm.ejs.models.base.extensions.helper.J2EEStatus#append(J2EEStatus) - */ - public J2EEStatus append(J2EEStatus aStatus) { - if (aStatus != null) - merge(aStatus); - return this; - } - - public boolean isEmpty() { - return children.length == 0; - } - - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EESpecificationConstants.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EESpecificationConstants.java deleted file mode 100644 index 6136035ab..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EESpecificationConstants.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - - - -public interface J2EESpecificationConstants { - String J2EE_VERSION_1_2 = "J2EE_1.2"; //$NON-NLS-1$ - String J2EE_VERSION_1_3 = "J2EE_1.3"; //$NON-NLS-1$ - String J2EE_VERSION_1_4 = "J2EE_1.4"; //$NON-NLS-1$ - - String DEFAULT_COMPLETED_STATUS_MSG = MOFJ2EEResourceHandler.DEFAULT_COMPLETED_STATUS_MSG; - String DEFAULT_NOT_NEEDED_STATUS_MSG = MOFJ2EEResourceHandler.DEFAULT_NOT_NEEDED_STATUS_MSG; - String DEFAULT_NOT_POSSIBLE_STATUS_MSG = MOFJ2EEResourceHandler.DEFAULT_NOT_POSSIBLE_STATUS_MSG; - String DEFAULT_ERROR_STATUS_MSG = MOFJ2EEResourceHandler.DEFAULT_ERROR_STATUS_MSG; - - String REMOVED_LOCAL_CLIENT_MSG = MOFJ2EEResourceHandler.REMOVED_LOCAL_CLIENT_MSG; - String REMOVED_ACCESS_INTENTS_MSG = MOFJ2EEResourceHandler.REMOVED_ACCESS_INTENTS_MSG; - String REMOVED_ISOLATION_LEVELS_MSG = MOFJ2EEResourceHandler.REMOVED_ISOLATION_LEVELS_MSG; - String CONVERTED_FINDER_MSG = MOFJ2EEResourceHandler.CONVERTED_FINDER_MSG; - String UNNAMED_EJB = MOFJ2EEResourceHandler.UNNAMED_EJB; - String CONVERTED_QUERY_DESCRIPTION = MOFJ2EEResourceHandler.CONVERTED_QUERY_DESCRIPTION; - String MIGRATED_DEFAULT_DATASOURCE_JAR_MSG = MOFJ2EEResourceHandler.MIGRATED_DEFAULT_DATASOURCE_JAR_MSG; - String MIGRATED_DEFAULT_DATASOURCE_MSG = MOFJ2EEResourceHandler.MIGRATED_DEFAULT_DATASOURCE_MSG; - String ERROR_TEXT = MOFJ2EEResourceHandler.ERROR; - String WARNING_TEXT = MOFJ2EEResourceHandler.WARNING; - String INFO_TEXT = MOFJ2EEResourceHandler.INFO; -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEStatus.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEStatus.java deleted file mode 100644 index 3b9b2bde6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEStatus.java +++ /dev/null @@ -1,233 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - -import java.text.MessageFormat; - -import org.eclipse.emf.ecore.ENamedElement; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.internal.common.XMLResource; - - -/** - * @author DABERG - * - */ -public class J2EEStatus implements J2EESpecificationConstants { - - public static final int COMPLETED_OK = 0; - public static final int NOT_NEEDED = 1; - public static final int NOT_POSSIBLE = 2; - public static final int WARNING = 3; - public static final int ERROR = 4; - - public static final J2EEStatus OK_STATUS = new J2EEStatus(COMPLETED_OK, ""); //$NON-NLS-1$ - - private static final J2EEStatus[] EmptyStatusArray = new J2EEStatus[0]; - - private int severity; - private String message; - private XMLResource resource; - private EObject targetObject; - - public J2EEStatus() { - //Default - } - - public J2EEStatus(int aSeverity, String aMessage) { - this(aSeverity, (EObject)null, aMessage); - } - public J2EEStatus(int aSeverity, XMLResource xmlResource) { - this(aSeverity, xmlResource, null); - } - - public J2EEStatus(int aSeverity, EObject anObject) { - this(aSeverity, anObject, null); - } - - public J2EEStatus(int aSeverity, XMLResource xmlResource, String aMessage) { - severity = aSeverity; - resource = xmlResource; - message = aMessage; - } - - public J2EEStatus(int aSeverity, EObject anObject, String aMessage) { - severity = aSeverity; - targetObject = anObject; - message = aMessage; - } - - public String format(String aPattern, String arg1) { - return MessageFormat.format(aPattern, new String[]{arg1}); - } - - /** - * Returns the message. - * @return String - */ - public String getMessage() { - if (message == null) - message = createDefaultMessage(); - return message; - } - - public String getMessageForDisplay() { - return getSeverityText()+" "+getMessage(); //$NON-NLS-1$ - } - - protected String getSeverityText() { - switch (severity) { - case ERROR: - return ERROR_TEXT; - case WARNING: - return WARNING_TEXT; - case NOT_NEEDED: - case NOT_POSSIBLE: - return INFO_TEXT; - default: - return ""; //$NON-NLS-1$ - } - } - - /** - * Method createDefaultMessage. - * @return String - */ - private String createDefaultMessage() { - String objDesc; - if (getResource() != null) - objDesc = getResource().getURI().toString(); - else if (getTargetObject() != null && getTargetObject() instanceof ENamedElement) - objDesc = ((ENamedElement) getTargetObject()).getName(); - else - return null; - switch (getSeverity()) { - case COMPLETED_OK : - return format(DEFAULT_COMPLETED_STATUS_MSG, objDesc); - case NOT_NEEDED : - return format(DEFAULT_NOT_NEEDED_STATUS_MSG, objDesc); - case NOT_POSSIBLE : - return format(DEFAULT_NOT_POSSIBLE_STATUS_MSG, objDesc); - case ERROR : - return format(DEFAULT_ERROR_STATUS_MSG, objDesc); - } - return null; - } - - - /** - * Sets the message. - * @param message The message to set - */ - public void setMessage(String message) { - this.message = message; - } - - /** - * The migration was completed fine or was not needed. - */ - public boolean isOK() { - return severity == COMPLETED_OK || severity == NOT_NEEDED; - } - - /** - * An error ocurred during migration. - */ - public boolean isError() { - return severity == ERROR; - } - - /** - * A warning ocurred during migration. - */ - public boolean isWarning() { - return severity == WARNING; - } - - /** - * The migration was not required. - */ - public boolean isNotNeeded() { - return severity == NOT_NEEDED; - } - /** - * The migration was not possible. - */ - public boolean isNotPossible() { - return severity == NOT_POSSIBLE; - } - /** - * Returns the severity. - * @return int - */ - public int getSeverity() { - return severity; - } - - /** - * Sets the severity. - * @param severity The severity to set - */ - public void setSeverity(int severity) { - this.severity = severity; - } - - public J2EEStatus[] getChildren() { - return EmptyStatusArray; - } - - public boolean isMultiStatus() { - return false; - } - public XMLResource getResource() { - return resource; - } - public EObject getTargetObject() { - return targetObject; - } - - public String toString() { - StringBuffer buf = new StringBuffer(); - buf.append("MigrationStatus "); //$NON-NLS-1$ - if (severity == COMPLETED_OK) { - buf.append("Completed OK"); //$NON-NLS-1$ - } else if (severity == ERROR) { - buf.append("ERROR"); //$NON-NLS-1$ - } else if (severity == WARNING) { - buf.append("WARNING"); //$NON-NLS-1$ - } else if (severity == NOT_NEEDED) { - buf.append("Not Needed"); //$NON-NLS-1$ - } else if (severity == NOT_POSSIBLE) { - buf.append("Not Possible"); //$NON-NLS-1$ - } else { - buf.append("severity="); //$NON-NLS-1$ - buf.append(severity); - } - buf.append(' '); - buf.append(message); - return buf.toString(); - } - - /** - * Append the paramater to this status, and return the resultant status; - * clients must be careful to set their cached status to the return value, - * as it may be a new instance. - */ - public J2EEStatus append(J2EEStatus aStatus) { - if (aStatus == null) - return this; - J2EEMultiStatus multi = new J2EEMultiStatus(); - multi.merge(this); - multi.merge(aStatus); - return multi; - } -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEVersionConstants.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEVersionConstants.java deleted file mode 100644 index ed8bfd331..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEVersionConstants.java +++ /dev/null @@ -1,73 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 16, 2003 - * - */ -package org.eclipse.jst.j2ee.internal; - -/** - * These constants are used with the XMLResource - */ -public interface J2EEVersionConstants { - public int J2EE_1_2_ID = 12; - public int J2EE_1_3_ID = 13; - public int J2EE_1_4_ID = 14; - public int EJB_1_0_ID = 10; - public int EJB_1_1_ID = 11; - public int EJB_2_0_ID = 20; - public int EJB_2_1_ID = 21; - public int WEB_2_2_ID = 22; - public int WEB_2_3_ID = 23; - public int WEB_2_4_ID = 24; - public int TAGLIB_1_1_ID = 11; - public int TAGLIB_1_2_ID = 12; - public int TAGLIB_2_0_ID = 20; - public int JSP_1_1_ID = 11; - public int JSP_1_2_ID = 12; - public int JSP_2_0_ID = 20; - public int SERVLET_2_2 = 22; - public int SERVLET_2_3 = 23; - public int SERVLET_2_4 = 24; - public int JCA_1_0_ID = 10; - public int JCA_1_5_ID = 15; - public int WEBSERVICES_1_0_ID = 10; - public int WEBSERVICES_1_1_ID = 11; - public String J2EE_1_4_TEXT = "1.4"; //$NON-NLS-1$ - - - public int VERSION_1_0 = 10; - public int VERSION_1_1 = 11; - public int VERSION_1_2 = 12; - public int VERSION_1_3 = 13; - public int VERSION_1_4 = 14; - public int VERSION_1_5 = 15; - public int VERSION_2_0 = 20; - public int VERSION_2_1 = 21; - public int VERSION_2_2 = 22; - public int VERSION_2_3 = 23; - public int VERSION_2_4 = 24; - public int VERSION_2_5 = 25; - - public String VERSION_1_0_TEXT = "1.0"; //$NON-NLS-1$ - public String VERSION_1_1_TEXT = "1.1"; //$NON-NLS-1$ - public String VERSION_1_2_TEXT = "1.2"; //$NON-NLS-1$ - public String VERSION_1_3_TEXT = "1.3"; //$NON-NLS-1$ - public String VERSION_1_4_TEXT = "1.4"; //$NON-NLS-1$ - public String VERSION_1_5_TEXT = "1.5"; //$NON-NLS-1$ - public String VERSION_2_0_TEXT = "2.0"; //$NON-NLS-1$ - public String VERSION_2_1_TEXT = "2.1"; //$NON-NLS-1$ - public String VERSION_2_2_TEXT = "2.2"; //$NON-NLS-1$ - public String VERSION_2_3_TEXT = "2.3"; //$NON-NLS-1$ - public String VERSION_2_4_TEXT = "2.4"; //$NON-NLS-1$ - public String VERSION_2_5_TEXT = "2.5"; //$NON-NLS-1$ - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/MOFJ2EEResourceHandler.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/MOFJ2EEResourceHandler.java deleted file mode 100644 index 41d839a6d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/MOFJ2EEResourceHandler.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - -import org.eclipse.osgi.util.NLS; - -public final class MOFJ2EEResourceHandler extends NLS { - - private static final String BUNDLE_NAME = "mofj2ee";//$NON-NLS-1$ - - private MOFJ2EEResourceHandler() { - // Do not instantiate - } - - public static String Stack_trace_of_nested_exce; - public static String ERROR; - public static String WARNING; - public static String INFO; - public static String DEFAULT_COMPLETED_STATUS_MSG; - public static String DEFAULT_NOT_NEEDED_STATUS_MSG; - public static String DEFAULT_NOT_POSSIBLE_STATUS_MSG; - public static String DEFAULT_ERROR_STATUS_MSG; - public static String REMOVED_LOCAL_CLIENT_MSG; - public static String REMOVED_ACCESS_INTENTS_MSG; - public static String REMOVED_ISOLATION_LEVELS_MSG; - public static String CONVERTED_FINDER_MSG; - public static String UNNAMED_EJB; - public static String CONVERTED_QUERY_DESCRIPTION; - public static String MIGRATED_DEFAULT_DATASOURCE_JAR_MSG; - public static String MIGRATED_DEFAULT_DATASOURCE_MSG; - public static String J2EE_VERSION_NULL_ERROR; - public static String J2EE_VERSION_PROXY_ERROR; - - static { - NLS.initializeMessages(BUNDLE_NAME, MOFJ2EEResourceHandler.class); - } - - public static String getString(String key, Object[] args) { - return NLS.bind(key, args); - } -}
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/WrappedException.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/WrappedException.java deleted file mode 100644 index 9748f440a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/WrappedException.java +++ /dev/null @@ -1,91 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - - - -/** - * Base exception class for non-runtime exceptions, where a caught exception - * causes this exception to be thrown - */ -public abstract class WrappedException extends Exception implements IWrappedException { - /** The exception which necessitated this exception */ - protected Exception nestedException; - -public WrappedException() { - super(); -} -public WrappedException(Exception e) { - super(); - setNestedException(e); -} -public WrappedException(String s) { - super(s); -} -public WrappedException(String s, Exception e) { - super(s); - setNestedException(e); -} -/** - * Return the messages from this and all nested exceptions, in order from outermost to innermost - */ -public java.lang.String[] getAllMessages() { - return ExceptionHelper.getAllMessages(this); -} -/** - * Return the messages from this and all nested exceptions, in order from outermost to innermost, - * concatenated as one - */ -public java.lang.String getConcatenatedMessages() { - return ExceptionHelper.getConcatenatedMessages(this); -} -public java.lang.Exception getNestedException() { - return nestedException; -} -/** - * Print out a stack trace to the system err. - */ -public void printStackTrace() { - printStackTrace(System.err); -} -/** -* Prints the exception to System.err. -* If we have a nested exception, print its stack. -*/ -public void printStackTrace(java.io.PrintStream s) { - if (nestedException != null) { - s.println(this); - s.println(MOFJ2EEResourceHandler.Stack_trace_of_nested_exce); // = "Stack trace of nested exception:" - nestedException.printStackTrace(s); - } else { - super.printStackTrace(s); - } -} -/** -* Prints the exception to System.err. -* If we have a nested exception, print its stack. -*/ -public void printStackTrace(java.io.PrintWriter s) { - if (nestedException != null) { - s.println(this); - s.println(MOFJ2EEResourceHandler.Stack_trace_of_nested_exce); // = "Stack trace of nested exception:" - nestedException.printStackTrace(s); - } else { - super.printStackTrace(s); - } -} -public void setNestedException(java.lang.Exception newNestedException) { - nestedException = newNestedException; - initCause(newNestedException); -} -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/WrappedRuntimeException.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/WrappedRuntimeException.java deleted file mode 100644 index 59495056b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/WrappedRuntimeException.java +++ /dev/null @@ -1,97 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal; - - - - - -public class WrappedRuntimeException extends RuntimeException implements IWrappedException { - /** - * - */ - private static final long serialVersionUID = -8926753082721271021L; - /** The exception which necessitated this runtime exception, if one exists */ - protected Exception nestedException; -public WrappedRuntimeException() { - super(); -} -public WrappedRuntimeException(Exception e) { - super(); - setNestedException(e); -} -public WrappedRuntimeException(String s) { - super(s); -} -public WrappedRuntimeException(String s, Exception e) { - super(s); - setNestedException(e); -} -/** - * Return the messages from this and all nested exceptions, in order from outermost to innermost - */ -public java.lang.String[] getAllMessages() { - return ExceptionHelper.getAllMessages(this); -} -/** - * Return the messages from this and all nested exceptions, in order from outermost to innermost, - * concatenated as one - */ -public java.lang.String getConcatenatedMessages() { - return ExceptionHelper.getConcatenatedMessages(this); -} -/** - * @return java.lang.Exception - */ -public java.lang.Exception getNestedException() { - return nestedException; -} -/** - * Print out a stack trace to the system err. - */ -public void printStackTrace() { - printStackTrace(System.err); -} -/** -* Prints the exception to System.err. -* If we have a nested exception, print its stack. -*/ -public void printStackTrace(java.io.PrintStream s) { - if (nestedException != null) { - s.println(this); - s.println(MOFJ2EEResourceHandler.Stack_trace_of_nested_exce); // = "Stack trace of nested exception:" - nestedException.printStackTrace(s); - } else { - super.printStackTrace(s); - } -} -/** -* Prints the exception to System.err. -* If we have a nested exception, print its stack. -*/ -public void printStackTrace(java.io.PrintWriter s) { - if (nestedException != null) { - s.println(this); - s.println(MOFJ2EEResourceHandler.Stack_trace_of_nested_exce); // = "Stack trace of nested exception:" - nestedException.printStackTrace(s); - } else { - super.printStackTrace(s); - } -} -/** - * @param newNestedException java.lang.Exception - */ -public void setNestedException(java.lang.Exception newNestedException) { - nestedException = newNestedException; -} -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/J2EEVersionResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/J2EEVersionResource.java deleted file mode 100644 index b791f56dc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/J2EEVersionResource.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Common Interface used to check version of J2EE model resources - */ -package org.eclipse.jst.j2ee.internal.common; - -/** - * @author cbridgha - * - * To change the template for this generated type comment go to - * Window - Preferences - Java - Code Generation - Code and Comments - */ -public interface J2EEVersionResource { - public int getJ2EEVersionID(); - public int getModuleVersionID(); - public int getVersionID(); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/J2EEXMIResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/J2EEXMIResource.java deleted file mode 100644 index 600158abe..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/J2EEXMIResource.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.common; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl; - - -/** - * @deprecated No longer required - change to extend CompatibilityXMIResourceImpl - */ -public class J2EEXMIResource extends CompatibilityXMIResourceImpl implements J2EEVersionResource{ - - /** - * Constructor for J2EEXMIResource. - */ - public J2EEXMIResource() { - super(); - } - - /** - * Constructor for J2EEXMIResource. - * @param uri - */ - public J2EEXMIResource(URI uri) { - super(uri); - } - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.J2EEVersionResource#getJ2EEVersionID() - */ - public int getJ2EEVersionID() { - // TODO Auto-generated method stub - return J2EEVersionConstants.J2EE_1_3_ID; - } - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.J2EEVersionResource#getModuleVersionID() - */ - public int getModuleVersionID() { - // TODO Auto-generated method stub - return 0; - } - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.J2EEVersionResource#getVersionID() - */ - public int getVersionID() { - // TODO Auto-generated method stub - return 0; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/J2EEXMIResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/J2EEXMIResourceFactory.java deleted file mode 100644 index c3562d208..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/J2EEXMIResourceFactory.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.common; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry; -import org.eclipse.wst.common.internal.emf.resource.CompatibilityResourceFactory; - - - - -/** - * @author nssheth - * - * To change this generated comment edit the template variable "typecomment": - * Window>Preferences>Java>Templates. - * To enable and disable the creation of type comments go to - * Window>Preferences>Java>Code Generation. - */ -public class J2EEXMIResourceFactory extends CompatibilityResourceFactory { - - public static J2EEXMIResourceFactory INSTANCE = new J2EEXMIResourceFactory(); - - public static void register() { - J2EEResourceFactoryRegistry.INSTANCE.getExtensionToFactoryMap().put(Resource.Factory.Registry.DEFAULT_EXTENSION, INSTANCE); - } - - /** - * Constructor for J2EEXMIResourceFactory. - */ - public J2EEXMIResourceFactory() { - super(); - } - - /** - * @see org.eclipse.emf.ecore.resource.Resource.Factory#createResource(URI) - */ - public Resource createResource(URI uri) { - J2EEXMIResource resource = new J2EEXMIResource(uri); - return resource; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/XMLResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/XMLResource.java deleted file mode 100644 index d0cb95b29..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/common/XMLResource.java +++ /dev/null @@ -1,88 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.common; - -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; - - -public interface XMLResource extends TranslatorResource, J2EEVersionConstants { - public static final int APP_CLIENT_TYPE = 1; - public static final int APPLICATION_TYPE = 2; - public static final int EJB_TYPE = 3; - public static final int WEB_APP_TYPE = 4; - public static final int RAR_TYPE = 5; - public static final int WEB_SERVICES_CLIENT_TYPE = 6; - - public static final String DELETED_ERROR_MSG = "This resource has been deleted and can no longer be used."; /** - * Is this a resource loaded as an alternate deployment descriptor? - */ - boolean isAlt(); - public int getJ2EEVersionID(); - public int getModuleVersionID(); - public void setJ2EEVersionID(int id); - public void setModuleVersionID(int id); - /** - * Used only if this resource is an alt; return the application which declares it - */ - Application getApplication(); - - void setApplication(Application newApplication); - /** - * @deprecated use {@link #getVersionID()} - * @see J2EEVersionConstants - */ - boolean isJ2EE1_3(); - - /** - * Returns the type of this J2EE XMLResource. - * You can use this method instead of using instanceof. - * @see XMLResource#APP_CLIENT_TYPE - * @see XMLResource#APPLICATION_TYPE - * @see XMLResource#EJB_TYPE - * @see XMLResource#WEB_APP_TYPE - * @see XMLResource#RAR_TYPE - */ - int getType(); - /** - * Is this a resource loaded as an alternate deployment descriptor? - */ - void setIsAlt(boolean isAlternateDD); - /** - * @deprecated use {@link TranslatorResource#setVersionID(int)}, - * {@link TranslatorResource#setDoctypeValues(String, String)} - * Sets the system id of the XML document. - * @see J2EEVersionConstants - */ - void setSystemId(String id); - /** - * @deprecated use {@link TranslatorResource#setVersionID(int)}, - * {@link TranslatorResource#setDoctypeValues(String, String)} - * Sets the public id of the XML document. - * @see J2EEVersionConstants - */ - void setPublicId(String id); - - //The following methods are to support ReferencedResource without having an actual - //This may be just a subset of what is available in ReferencedResource - void saveIfNecessary() throws Exception; - void releaseFromWrite(); - void releaseFromRead(); - void preDelete(); - boolean isSharedForWrite(); - boolean isShared(); - boolean isReadOnly(); - boolean isNew(); - void accessForWrite(); - void accessForRead(); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/application/ApplicationTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/application/ApplicationTranslator.java deleted file mode 100644 index 6385efc2e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/application/ApplicationTranslator.java +++ /dev/null @@ -1,90 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 1, 2003 - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal.model.translator.application; - -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.xml.EarDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.ConstantAttributeTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.RootTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author dfholttp - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class ApplicationTranslator extends RootTranslator implements EarDeploymentDescriptorXmlMapperI, J2EEConstants { - public static ApplicationTranslator INSTANCE = new ApplicationTranslator(); - private static Translator[] children13; - private static Translator[] children14; - private static ApplicationPackage APPLICATION_PKG = ApplicationPackage.eINSTANCE; - private static CommonPackage COMMON_PKG = CommonPackage.eINSTANCE; - - public ApplicationTranslator() { - super(APPLICATION, ApplicationPackage.eINSTANCE.getApplication()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children13 == null) - children13 = create13Children(); - return children13; - default : - if (children14 == null) - children14 = create14Children(); - return children14; - } - } - - protected Translator[] create13Children() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(ICON+"/"+SMALL_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), //$NON-NLS-1$ - new Translator(ICON+"/"+LARGE_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), //$NON-NLS-1$ - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new ModuleTranslator(), - CommonTranslators.createSecurityRoleTranslator13(APPLICATION_PKG.getApplication_SecurityRoles()), - }; - } - - protected Translator[] create14Children() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(VERSION, APPLICATION_PKG.getApplication_Version(), DOM_ATTRIBUTE), - new ConstantAttributeTranslator(XML_NS, J2EE_NS_URL), - new ConstantAttributeTranslator(XML_NS_XSI, XSI_NS_URL), - new ConstantAttributeTranslator(XSI_SCHEMA_LOCATION, J2EE_NS_URL+' '+APPLICATION_SCHEMA_LOC_1_4), - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - new ModuleTranslator(), - CommonTranslators.createSecurityRoleTranslator14(APPLICATION_PKG.getApplication_SecurityRoles()), - }; - - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/application/ModuleTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/application/ModuleTranslator.java deleted file mode 100644 index 1ffd1e923..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/application/ModuleTranslator.java +++ /dev/null @@ -1,144 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 1, 2003 - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal.model.translator.application; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.application.ApplicationFactory; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.xml.EarDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.ReadAheadHelper; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class ModuleTranslator extends Translator implements EarDeploymentDescriptorXmlMapperI { - private static final ApplicationPackage APPLICATION_PKG = ApplicationPackage.eINSTANCE; - - private static final Translator ALT_DD_TRANSLATOR = createAltDDTranslator(); - private static final Translator[] WEB_TRANSLATORS = createWebModuleTranslators(); - private static final Translator[] EJB_TRANSLATORS = createEJBModuleTranslators(); - private static final Translator[] JAVA_TRANSLATORS = createJavaModuleTranslators(); - private static final Translator[] CONNECTOR_TRANSLATORS = createConnectorModuleTranslators(); - //private static final - - /** - * @param domNameAndPath - * @param eClass - */ - public ModuleTranslator() { - super(MODULE, APPLICATION_PKG.getApplication_Modules()); - addReadAheadHelper(new ReadAheadHelper(MODULE, new String[] { EJB, JAVA, WEB, CONNECTOR }, null)); - } - - /** - * @return - */ - private static Translator[] createConnectorModuleTranslators() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(CONNECTOR, APPLICATION_PKG.getModule_Uri()), - ALT_DD_TRANSLATOR, - // CommonTranslators.createDeploymentExtensionTranslator(APPLICATION_PKG.getModule_Extensions()) - }; - } - - /** - * @return - */ - private static Translator[] createJavaModuleTranslators() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(JAVA, APPLICATION_PKG.getModule_Uri()), - ALT_DD_TRANSLATOR, - // CommonTranslators.createDeploymentExtensionTranslator(APPLICATION_PKG.getModule_Extensions()) - }; - } - - /** - * @return - */ - private static Translator[] createEJBModuleTranslators() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(EJB, APPLICATION_PKG.getModule_Uri()), - ALT_DD_TRANSLATOR, - // CommonTranslators.createDeploymentExtensionTranslator(APPLICATION_PKG.getModule_Extensions()) - }; - } - - /** - * @return - */ - private static Translator[] createWebModuleTranslators() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(WEB + "/" + WEB_URI, APPLICATION_PKG.getModule_Uri()), //$NON-NLS-1$ - new Translator(WEB + "/" + CONTEXT_ROOT, APPLICATION_PKG.getWebModule_ContextRoot()), //$NON-NLS-1$ - ALT_DD_TRANSLATOR, - // CommonTranslators.createDeploymentExtensionTranslator(APPLICATION_PKG.getModule_Extensions()) - }; - - } - - private static Translator createAltDDTranslator() { - return new Translator(ALT_DD, ApplicationPackage.eINSTANCE.getModule_AltDD()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - if (o == null) - return CommonTranslators.EMPTY_CHILDREN; - else if (((Module) o).isEjbModule()) - return EJB_TRANSLATORS; - else if (((Module) o).isConnectorModule()) - return CONNECTOR_TRANSLATORS; - else if (((Module) o).isWebModule()) - return WEB_TRANSLATORS; - else if (((Module) o).isJavaModule()) - return JAVA_TRANSLATORS; - else - throw new IllegalStateException("Internal error: Module Type excepted"); //$NON-NLS-1$ - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - ApplicationFactory fact = ApplicationFactory.eINSTANCE; - if (EJB.equals(readAheadName)) - return fact.createEjbModule(); - else if (WEB.equals(readAheadName)) - return fact.createWebModule(); - else if (JAVA.equals(readAheadName)) - return fact.createJavaClientModule(); - else if (CONNECTOR.equals(readAheadName)) - return fact.createConnectorModule(); - else - return fact.createModule(); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#isManagedByParent() - */ - public boolean isManagedByParent() { - return false; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/client/ApplicationClientTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/client/ApplicationClientTranslator.java deleted file mode 100644 index 76f1f6e3c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/client/ApplicationClientTranslator.java +++ /dev/null @@ -1,94 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.client; - -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.model.translator.common.EnvEntryTranslator; -import org.eclipse.jst.j2ee.internal.model.translator.common.JavaClassTranslator; -import org.eclipse.jst.j2ee.internal.xml.DeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.ConstantAttributeTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.RootTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class ApplicationClientTranslator extends RootTranslator implements DeploymentDescriptorXmlMapperI, J2EEConstants { - public static ApplicationClientTranslator INSTANCE = new ApplicationClientTranslator(); - public static final String CALLBACK_HANDLER = "callback-handler"; //$NON-NLS-1$ - public static final String APPLICATION_CLIENT = "application-client"; //$NON-NLS-1$ - private static CommonPackage COMMON_PKG = CommonPackage.eINSTANCE; - private static Translator[] children13; - private static Translator[] children14; - - protected ApplicationClientTranslator() { - super(APPLICATION_CLIENT, ClientPackage.eINSTANCE.getApplicationClient()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children13 == null) - children13 = create13Children(); - return children13; - default : - if (children14 == null) - children14 = create14Children(); - return children14; - } - } - - protected Translator[] create13Children() { - ClientPackage ePackageClient=ClientPackage.eINSTANCE; - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(SMALL_ICON_PATH, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), - new Translator(LARGE_ICON_PATH, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new EnvEntryTranslator(ePackageClient.getApplicationClient_EnvironmentProps(), true, false), - CommonTranslators.createEJBRefTranslator13(ePackageClient.getApplicationClient_EjbReferences()), - CommonTranslators.createResourceRefTranslator13(ePackageClient.getApplicationClient_ResourceRefs()), - //J2EE 1.3 - CommonTranslators.createResourceEnvRefTranslator13(ePackageClient.getApplicationClient_ResourceEnvRefs()), - new JavaClassTranslator(CALLBACK_HANDLER, ePackageClient.getApplicationClient_CallbackHandler()), - }; - } - - protected Translator[] create14Children() { - ClientPackage ePackageClient=ClientPackage.eINSTANCE; - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(VERSION, ePackageClient.getApplicationClient_Version(), DOM_ATTRIBUTE), - new ConstantAttributeTranslator(XML_NS, J2EE_NS_URL), - new ConstantAttributeTranslator(XML_NS_XSI, XSI_NS_URL), - new ConstantAttributeTranslator(XSI_SCHEMA_LOCATION, J2EE_NS_URL+' '+APP_CLIENT_SCHEMA_LOC_1_4), - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - new EnvEntryTranslator(ePackageClient.getApplicationClient_EnvironmentProps(), true, true), - CommonTranslators.createEJBRefTranslator14(ePackageClient.getApplicationClient_EjbReferences()), - CommonTranslators.createServiceRefGroupTranslator(ePackageClient.getApplicationClient_ServiceRefs()), - CommonTranslators.createResourceRefTranslator14(ePackageClient.getApplicationClient_ResourceRefs()), - CommonTranslators.createResourceEnvRefTranslator14(ePackageClient.getApplicationClient_ResourceEnvRefs()), - CommonTranslators.createMessageDestinationRefTranslator(ePackageClient.getApplicationClient_MessageDestinationRefs()), - new JavaClassTranslator(CALLBACK_HANDLER, ePackageClient.getApplicationClient_CallbackHandler()), - CommonTranslators.createMessageDestinationTranslator(ePackageClient.getApplicationClient_MessageDestinations()), - // CommonTranslators.createDeploymentExtensionTranslator(ePackageClient.getApplicationClient_DeploymentExtensions()) - }; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java deleted file mode 100644 index 27885a25e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 21, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal.model.translator.common; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author administrator - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class BooleanTranslator extends Translator { - - - /** - * @param domNameAndPath - * @param aFeature - */ - public BooleanTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, BOOLEAN_LOWERCASE); - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#convertStringToValue(java.lang.String, org.eclipse.emf.ecore.EObject) - */ - public Object convertStringToValue(String strValue, EObject owner) { - if (strValue == null) - return Boolean.FALSE; - else if (strValue.toUpperCase().equals("1") || strValue.toUpperCase().equals("YES")) //$NON-NLS-1$ //$NON-NLS-2$ - return Boolean.TRUE; - else - return Boolean.valueOf(strValue); - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/CommonTranslators.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/CommonTranslators.java deleted file mode 100644 index f2f723359..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/CommonTranslators.java +++ /dev/null @@ -1,423 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 20, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.common; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.xml.DeploymentDescriptorXmlMapperI; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.wst.common.internal.emf.resource.DependencyTranslator; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * A static helper for creating Generic common J2EE translators - */ -public class CommonTranslators implements DeploymentDescriptorXmlMapperI { - - private static CommonPackage COMMON_PKG = CommonPackage.eINSTANCE; - private static Webservice_clientPackage WEBSERVICE_PKG = Webservice_clientPackage.eINSTANCE; - public static final Translator[] EMPTY_CHILDREN = new Translator[] {}; - private static final Translator EJB_REF_NAME_TRANSLATOR = new Translator(EJB_REF_NAME, COMMON_PKG.getEjbRef_Name()); - private static final Translator EJB_REF_TYPE_TRANSLATOR = new Translator(EJB_REF_TYPE, COMMON_PKG.getEjbRef_Type()); //Enumeration - private static final Translator EJB_LINK_TRANSLATOR = new Translator(EJB_LINK, COMMON_PKG.getEjbRef_Link()); - - private static final Translator RES_REF_NAME_TRANSLATOR = new Translator(RES_REF_NAME, COMMON_PKG.getResourceRef_Name()); - private static final Translator RES_TYPE_TRANSLATOR = new Translator(RES_TYPE, COMMON_PKG.getResourceRef_Type()); - private static final Translator RES_AUTH_TRANSLATOR = new ResAuthTranslator(); - private static final Translator RES_SHARING_SCOPE_TRANSLATOR = new Translator(RES_SHARING_SCOPE, COMMON_PKG.getResourceRef_ResSharingScope()); - - private static final Translator RES_ENV_REF_NAME_TRANSLATOR = new Translator(RESOURCE_ENV_REF_NAME, COMMON_PKG.getResourceEnvRef_Name()); - private static final Translator RES_ENV_REF_TYPE_TRANSLATOR = new JavaClassTranslator(RESOURCE_ENV_REF_TYPE, COMMON_PKG.getResourceEnvRef_Type()); - - private static final Translator SEC_REF_ROLE_NAME_TRANSALTOR = new Translator(ROLE_NAME, COMMON_PKG.getSecurityRoleRef_Name()); - private static final Translator SEC_REF_ROLE_LINK_TRANSLATOR = new Translator(ROLE_LINK, COMMON_PKG.getSecurityRoleRef_Link()); - - private static final Translator RUNAS_ROLE_NAME_TRANSLATOR = new DependencyTranslator(ROLE_NAME, COMMON_PKG.getIdentity_RoleName(), COMMON_PKG.getRunAsSpecifiedIdentity_Identity()); - - private static final Translator SECURITY_ROLE_NAME_TRANSLATOR = new Translator(ROLE_NAME, COMMON_PKG.getSecurityRole_RoleName()); - - public static final Translator DESCRIPTIONS_TRANSLATOR = createDescriptionTranslator(COMMON_PKG.getDescriptionGroup_Descriptions()); - public static final Translator DISPLAYNAMES_TRANSLATOR = createDisplayNameTranslator(COMMON_PKG.getDescriptionGroup_DisplayNames()); - public static final Translator ICONS_TRANSLATOR = createIconTranslator(); - - //The Official Concept of JNDIEnvRefGroup FOR J2EE 1.4 - public static final Translator JNDI_REF_GROUP_ENV_ENTRY_1_4 = new EnvEntryTranslator(COMMON_PKG.getJNDIEnvRefsGroup_EnvironmentProperties(), true, true); - public static final Translator JNDI_REF_GROUP_EJB_REF_1_4 = CommonTranslators.createEJBRefTranslator14(COMMON_PKG.getJNDIEnvRefsGroup_EjbRefs()); - public static final Translator JNDI_REF_GROUP_EJB_LOCAL_REF_1_4 = CommonTranslators.createEJBLocalRefTranslator14(COMMON_PKG.getJNDIEnvRefsGroup_EjbLocalRefs()); - public static final Translator JNDI_REF_GROUP_SERVICE_REF_1_4 = CommonTranslators.createServiceRefGroupTranslator(COMMON_PKG.getJNDIEnvRefsGroup_ServiceRefs()); - public static final Translator JNDI_REF_GROUP_RESOURCE_REF_1_4 = CommonTranslators.createResourceRefTranslator14(COMMON_PKG.getJNDIEnvRefsGroup_ResourceRefs()); - public static final Translator JNDI_REF_GROUP_RESOURCE_ENV_REF_1_4 = CommonTranslators.createResourceEnvRefTranslator14(COMMON_PKG.getJNDIEnvRefsGroup_ResourceEnvRefs()); - public static final Translator JNDI_REF_GROUP_MESSAGE_DEST_REF_1_4 = CommonTranslators.createMessageDestinationRefTranslator(COMMON_PKG.getJNDIEnvRefsGroup_MessageDestinationRefs()); - - //The unofficial concept of JNDIEnvRefGroup FOR J2EE 1.3 - public static final Translator JNDI_REF_GROUP_ENV_ENTRY_1_3 = new EnvEntryTranslator(COMMON_PKG.getJNDIEnvRefsGroup_EnvironmentProperties(), true, false); - public static final Translator JNDI_REF_GROUP_EJB_REF_1_3 = CommonTranslators.createEJBRefTranslator13(COMMON_PKG.getJNDIEnvRefsGroup_EjbRefs()); - public static final Translator JNDI_REF_GROUP_EJB_LOCAL_REF_1_3 = CommonTranslators.createEJBLocalRefTranslator13(COMMON_PKG.getJNDIEnvRefsGroup_EjbLocalRefs()); - public static final Translator JNDI_REF_GROUP_RESOURCE_REF_1_3 = CommonTranslators.createResourceRefTranslator13(COMMON_PKG.getJNDIEnvRefsGroup_ResourceRefs()); - public static final Translator JNDI_REF_GROUP_RESOURCE_ENV_REF_1_3 = CommonTranslators.createResourceEnvRefTranslator13(COMMON_PKG.getJNDIEnvRefsGroup_ResourceEnvRefs()); - - public static final Translator LISTENER_CLASS_TRANSLATOR = new JavaClassTranslator(LISTENER_CLASS, COMMON_PKG.getListener_ListenerClass()); - - private CommonTranslators() { - super(); - } - - public static Translator createSecurityRoleRefTranslator13(EStructuralFeature feature) { - - GenericTranslator result = new GenericTranslator(SECURITY_ROLE_REF, feature); - result.setChildren(new Translator[] { - new Translator(DESCRIPTION, COMMON_PKG.getSecurityRoleRef_Description()), - SEC_REF_ROLE_NAME_TRANSALTOR, - SEC_REF_ROLE_LINK_TRANSLATOR - }); - return result; - } - - public static Translator createSecurityRoleRefTranslator14(EStructuralFeature feature) { - - GenericTranslator result = new GenericTranslator(SECURITY_ROLE_REF, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createDescriptionTranslator(COMMON_PKG.getSecurityRoleRef_Descriptions()), - SEC_REF_ROLE_NAME_TRANSALTOR, - SEC_REF_ROLE_LINK_TRANSLATOR - }); - return result; - } - - public static Translator createResourceEnvRefTranslator13(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(RESOURCE_ENV_REF, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getResourceEnvRef_Description()), - RES_ENV_REF_NAME_TRANSLATOR, - RES_ENV_REF_TYPE_TRANSLATOR - }); - return result; - } - - public static Translator createResourceEnvRefTranslator14(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(RESOURCE_ENV_REF, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createDescriptionTranslator(COMMON_PKG.getResourceEnvRef_Descriptions()), - RES_ENV_REF_NAME_TRANSLATOR, - RES_ENV_REF_TYPE_TRANSLATOR, - //J2EE1.4 Added - // createDeploymentExtensionTranslator(COMMON_PKG.getResourceEnvRef_Extensions()) - }); - return result; - } - - public static Translator createResourceRefTranslator13(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(RESOURCE_REF, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getResourceRef_Description()), - RES_REF_NAME_TRANSLATOR, - RES_TYPE_TRANSLATOR, - RES_AUTH_TRANSLATOR, - //EJB 2.0 Added - RES_SHARING_SCOPE_TRANSLATOR, - }); - return result; - } - - public static Translator createResourceRefTranslator14(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(RESOURCE_REF, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createDescriptionTranslator(COMMON_PKG.getResourceRef_Descriptions()), - RES_REF_NAME_TRANSLATOR, - RES_TYPE_TRANSLATOR, - RES_AUTH_TRANSLATOR, - //EJB 2.0 Added - RES_SHARING_SCOPE_TRANSLATOR, - - //J2EE1.4 Added - // createDeploymentExtensionTranslator(COMMON_PKG.getResourceRef_Extensions()) - }); - return result; - } - - public static Translator createSecurityRoleTranslator13(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(SECURITY_ROLE, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getSecurityRole_Description()), - SECURITY_ROLE_NAME_TRANSLATOR - }); - return result; - } - - public static Translator createSecurityRoleTranslator14(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(SECURITY_ROLE, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createDescriptionTranslator(COMMON_PKG.getSecurityRole_Descriptions()), - SECURITY_ROLE_NAME_TRANSLATOR - }); - return result; - } - - public static Translator createEJBRefTranslator13(EStructuralFeature feature) { - return createEJBRefTranslator13(feature, false); - } - - public static Translator createEJBLocalRefTranslator13(EStructuralFeature feature) { - return createEJBRefTranslator13(feature, true); - } - private static Translator createEJBRefTranslator13(EStructuralFeature feature, boolean local) { - String nodeName = local ? EJB_LOCAL_REF : EJB_REF; - String homeTag = local ? LOCAL_HOME : HOME; - String remoteTag = local ? LOCAL : REMOTE; - EStructuralFeature homeFeature = local ? COMMON_PKG.getEJBLocalRef_LocalHome() : COMMON_PKG.getEjbRef_Home(); - EStructuralFeature remoteFeature = local ? COMMON_PKG.getEJBLocalRef_Local() : COMMON_PKG.getEjbRef_Remote(); - - GenericTranslator result = new GenericTranslator(nodeName, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getEjbRef_Description()), - EJB_REF_NAME_TRANSLATOR, - EJB_REF_TYPE_TRANSLATOR, - new Translator(homeTag, homeFeature), - new Translator(remoteTag, remoteFeature), - EJB_LINK_TRANSLATOR - }); - return result; - } - - public static Translator createEJBRefTranslator14(EStructuralFeature feature) { - return createEJBRefTranslator14(feature, false); - } - - public static Translator createEJBLocalRefTranslator14(EStructuralFeature feature) { - return createEJBRefTranslator14(feature, true); - } - private static Translator createEJBRefTranslator14(EStructuralFeature feature, boolean local) { - String nodeName = local ? EJB_LOCAL_REF : EJB_REF; - String homeTag = local ? LOCAL_HOME : HOME; - String remoteTag = local ? LOCAL : REMOTE; - EStructuralFeature homeFeature = local ? COMMON_PKG.getEJBLocalRef_LocalHome() : COMMON_PKG.getEjbRef_Home(); - EStructuralFeature remoteFeature = local ? COMMON_PKG.getEJBLocalRef_Local() : COMMON_PKG.getEjbRef_Remote(); - - GenericTranslator result = new GenericTranslator(nodeName, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createDescriptionTranslator(COMMON_PKG.getEjbRef_Descriptions()), - EJB_REF_NAME_TRANSLATOR, - EJB_REF_TYPE_TRANSLATOR, - new Translator(homeTag, homeFeature), - new Translator(remoteTag, remoteFeature), - EJB_LINK_TRANSLATOR, - // createDeploymentExtensionTranslator(COMMON_PKG.getEjbRef_Extensions()) - }); - return result; - } - - - public static Translator createRunAsTranslator13(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(RUN_AS, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getSecurityIdentity_Description()), - //new DependencyTranslator(DES,) - RUNAS_ROLE_NAME_TRANSLATOR - }); - return result; - } - - - public static Translator createRunAsTranslator14(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(RUN_AS, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createDescriptionTranslator(COMMON_PKG.getSecurityIdentity_Descriptions()), - RUNAS_ROLE_NAME_TRANSLATOR - }); - return result; - } - - - - public static Translator createMessageDestinationRefTranslator(EStructuralFeature feature){ - GenericTranslator result = new GenericTranslator(MESSAGE_DEST_REF,feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createDescriptionTranslator(COMMON_PKG.getMessageDestinationRef_Descriptions()), - new Translator(MESSAGE_DEST_REF_NAME,COMMON_PKG.getMessageDestinationRef_Name()), - new Translator(MESSAGE_DEST_TYPE,COMMON_PKG.getMessageDestinationRef_Type()), - new Translator(MESSAGE_DEST_USAGE,COMMON_PKG.getMessageDestinationRef_Usage()), - new Translator(MESSAGE_DEST_LINK,COMMON_PKG.getMessageDestinationRef_Link()), - //createDeploymentExtensionTranslator(COMMON_PKG.getMessageDestinationRef_Extensions()) - }); - - return result; - } - - public static Translator createMessageDestinationTranslator(EStructuralFeature feature){ - GenericTranslator result = new GenericTranslator(MESSAGE_DEST,feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - DESCRIPTIONS_TRANSLATOR, - DISPLAYNAMES_TRANSLATOR, - ICONS_TRANSLATOR, - new Translator(MESSAGE_DEST_NAME,COMMON_PKG.getMessageDestination_Name()), - //createDeploymentExtensionTranslator(COMMON_PKG.getMessageDestination_Extensions()) - }); - - return result; - } - - /** - * This model was model from Websphere Webservices - * @param reference - * @return - */ - public static Translator createServiceRefGroupTranslator(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(SERVICE_REF, feature); - result.setChildren( new Translator[] { - IDTranslator.INSTANCE, - DESCRIPTIONS_TRANSLATOR, - DISPLAYNAMES_TRANSLATOR, - ICONS_TRANSLATOR, - new Translator(SERVICE_REF_NAME, WEBSERVICE_PKG.getServiceRef_ServiceRefName()), - new JavaClassTranslator(SERVICE_INTERFACE, WEBSERVICE_PKG.getServiceRef_ServiceInterface()), - new Translator(WSDL_FILE, WEBSERVICE_PKG.getServiceRef_WsdlFile()), - new Translator(JAXRPC_MAPPING_FILE, WEBSERVICE_PKG.getServiceRef_JaxrpcMappingFile()), - createQNameTranslator(SERVICE_QNAME, WEBSERVICE_PKG.getServiceRef_ServiceQname()), - createPortComponentRefTranslator(), - createServiceRefHandlerTranslator(), - }); - - - return result; - } - - public static Translator createQNameTranslator(String domName, EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(domName, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(Translator.TEXT_ATTRIBUTE_VALUE, CommonPackage.eINSTANCE.getQName_CombinedQName()) - }); - return result; - } - - /** - * This model was model from Websphere Webservices - * @return - */ - public static Translator createServiceRefHandlerTranslator() { - GenericTranslator result = new GenericTranslator(HANDLER, WEBSERVICE_PKG.getServiceRef_Handlers()); - result.setChildren(new Translator[]{ - IDTranslator.INSTANCE, - DESCRIPTIONS_TRANSLATOR, - DISPLAYNAMES_TRANSLATOR, - ICONS_TRANSLATOR, - new Translator(HANDLER_NAME, WEBSERVICE_PKG.getHandler_HandlerName()), - new JavaClassTranslator(HANDLER_CLASS, WEBSERVICE_PKG.getHandler_HandlerClass()), - createParamValueType(HANDLER_INIT_PARAM, WEBSERVICE_PKG.getHandler_InitParams()), - createQNameTranslator(SOAP_HEADER, WEBSERVICE_PKG.getHandler_SoapHeaders()), - new Translator(SOAP_ROLE, WEBSERVICE_PKG.getHandler_SoapRoles()), - new Translator(PORT_NAME, WEBSERVICE_PKG.getHandler_PortNames()) - }); - - return result; - } - - /** - * @return - */ - public static Translator createPortComponentRefTranslator() { - GenericTranslator result = new GenericTranslator(PORT_COMPONENT_REF, WEBSERVICE_PKG.getServiceRef_PortComponentRefs()); - result.setChildren( new Translator[]{ - IDTranslator.INSTANCE, - new JavaClassTranslator(SERVICE_ENPOINT_INTERFACE, WEBSERVICE_PKG.getPortComponentRef_ServiceEndpointInterface()), - new Translator(PORT_COMPONENT_LINK , WEBSERVICE_PKG.getPortComponentRef_PortComponentLink()) - }); - return result; - } - - /** - * @return - */ - public static Translator createDescriptionTranslator(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(DESCRIPTION, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(LANG, COMMON_PKG.getDescription_Lang(), Translator.DOM_ATTRIBUTE), - new Translator(Translator.TEXT_ATTRIBUTE_VALUE, COMMON_PKG.getDescription_Value()) - }); - return result; - } - - /** - * @return - */ - public static Translator createDisplayNameTranslator(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(DISPLAY_NAME, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(LANG, COMMON_PKG.getDisplayName_Lang(), Translator.DOM_ATTRIBUTE), - new Translator(Translator.TEXT_ATTRIBUTE_VALUE, COMMON_PKG.getDisplayName_Value()) - }); - return result; - } - - - /** - * @return - */ - public static Translator createIconTranslator() { - GenericTranslator result = new GenericTranslator(ICON, COMMON_PKG.getDescriptionGroup_Icons()); - result.setChildren(new Translator[] { - new Translator(LANG, COMMON_PKG.getIconType_Lang(), Translator.DOM_ATTRIBUTE), - IDTranslator.INSTANCE, - new Translator(SMALL_ICON, COMMON_PKG.getIconType_SmallIcon()), - new Translator(LARGE_ICON, COMMON_PKG.getIconType_LargeIcon()) - }); - return result; - } - -// public static Translator createDeploymentExtensionTranslator(EStructuralFeature feature) { -// return createDeploymentExtensionTranslator(DEPLOY_EXT, feature); -// } -// -// public static Translator createDeploymentExtensionTranslator(String domName, EStructuralFeature feature) { -// GenericTranslator result = new GenericTranslator(domName, feature); -// result.setChildren(new Translator[] { -// new Translator(NAMESPACE, COMMON_PKG.getDeploymentExtension_Namespace(), Translator.DOM_ATTRIBUTE), -// new Translator(MUSTUNDERSTAND, COMMON_PKG.getDeploymentExtension_MustUnderstand(), Translator.DOM_ATTRIBUTE), -// IDTranslator.INSTANCE, -// Translator.createParentAndTextAttributeTranslator(EXT_ELEMENT, COMMON_PKG.getDeploymentExtension_ExtensionElements(), COMMON_PKG.getExtensibleType_Value()) -// }); -// return result; -// } - - public static Translator createParamValueType(String domName, EStructuralFeature feature){ - GenericTranslator result = new GenericTranslator(domName, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createDescriptionTranslator(COMMON_PKG.getParamValue_Descriptions()), - new Translator(PARAM_NAME, COMMON_PKG.getParamValue_Name()), - new Translator(PARAM_VALUE, COMMON_PKG.getParamValue_Value()), - }); - return result; - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/EnvEntryTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/EnvEntryTranslator.java deleted file mode 100644 index cf6ec6206..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/EnvEntryTranslator.java +++ /dev/null @@ -1,77 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.common; - - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.xml.DeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class EnvEntryTranslator extends Translator implements DeploymentDescriptorXmlMapperI { - private boolean isJ2EE14; - private static Translator[] children; - private static Translator[] reorderedChildren; - //Hacks because of inconsistencies in the servlet spec - boolean typeBeforeValue = true; - /** - * Constructor for EnvEntryTranslator. - * @param domNameAndPath - * @param aFeature - */ - public EnvEntryTranslator(EStructuralFeature aFeature, boolean writeTypeBeforeValue, boolean isJ2EE14) { - super(ENV_ENTRY, aFeature); - typeBeforeValue = writeTypeBeforeValue; - this.isJ2EE14 = isJ2EE14; - } - - /** - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren() - */ - public Translator[] getChildren(Object obj, int versionID) { - //Hava to you create a different one each time - children = createChildren(); - setReorderedChildren(); - - if (typeBeforeValue) - return children; - - return reorderedChildren; - } - - protected Translator[] createChildren() { - CommonPackage ePackageCommon = CommonPackage.eINSTANCE; - Translator descriptionTranslator; - if (isJ2EE14) - descriptionTranslator = CommonTranslators.createDescriptionTranslator(ePackageCommon.getEnvEntry_Descriptions()); - else - descriptionTranslator = new Translator(DESCRIPTION, ePackageCommon.getEnvEntry_Description()); - - return new Translator[] { - IDTranslator.INSTANCE, - descriptionTranslator, - new Translator(ENV_ENTRY_NAME, ePackageCommon.getEnvEntry_Name()), - new EnvEntryTypeTranslator(), - new Translator(ENV_ENTRY_VALUE, ePackageCommon.getEnvEntry_Value()) - }; - } - - protected void setReorderedChildren() { - reorderedChildren = new Translator[children.length]; - System.arraycopy(children, 0, reorderedChildren, 0, children.length); - Translator temp = reorderedChildren[3]; - reorderedChildren[3] = reorderedChildren[4]; - reorderedChildren[4] = temp; - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/EnvEntryTypeTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/EnvEntryTypeTranslator.java deleted file mode 100644 index afecd56ad..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/EnvEntryTypeTranslator.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.common; - -import org.eclipse.emf.common.util.Enumerator; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.xml.DeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class EnvEntryTypeTranslator extends Translator implements DeploymentDescriptorXmlMapperI { - private static final String JAVA_LANG= "java.lang."; //$NON-NLS-1$ - private static final int SUBSTRING_LENGTH = JAVA_LANG.length(); - public EnvEntryTypeTranslator() { - super(ENV_ENTRY_TYPE, CommonPackage.eINSTANCE.getEnvEntry_Type()); - } - - /** - * @see com.ibm.etools.emf2xml.impl.Translator#convertStringToValue(String) - */ - public Object convertStringToValue(String strValue, EObject owner) { - if (strValue != null && strValue.startsWith(JAVA_LANG)) - return super.convertStringToValue(strValue.substring(SUBSTRING_LENGTH), owner); - - return null; - } - - /** - * @see com.ibm.etools.emf2xml.impl.Translator#convertValueToString(Object) - */ - public String convertValueToString(Object value, EObject owner) { - if (value != null) - return JAVA_LANG + ((Enumerator)value).getName(); - return null; - } - - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/JavaClassTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/JavaClassTranslator.java deleted file mode 100644 index e8d24f9fb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/JavaClassTranslator.java +++ /dev/null @@ -1,122 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.common; - -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.wst.common.internal.emf.resource.Translator; -import org.eclipse.wst.common.internal.emf.resource.TranslatorPath; - -public class JavaClassTranslator extends Translator { - - /** - * Constructor for JavaClassTranslator. - * @param domNameAndPath - * @param aFeature - */ - public JavaClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /** - * Constructor for JavaClassTranslator. - * @param domNameAndPath - * @param aFeature - * @param path - */ - public JavaClassTranslator(String domNameAndPath, EStructuralFeature aFeature, TranslatorPath path) { - super(domNameAndPath, aFeature, path); - } - - /** - * Constructor for JavaClassTranslator. - * @param domNameAndPath - * @param aFeature - * @param paths - */ - public JavaClassTranslator(String domNameAndPath, EStructuralFeature aFeature, TranslatorPath[] paths) { - super(domNameAndPath, aFeature, paths); - } - - /** - * Constructor for JavaClassTranslator. - * @param domNameAndPath - * @param aFeature - * @param style - */ - public JavaClassTranslator(String domNameAndPath, EStructuralFeature aFeature, int style) { - super(domNameAndPath, aFeature, style); - } - - public Object convertStringToValue(String nodeName, String readAheadName, String value, Notifier owner) { - Object result = null; - if (value != null) { - result = convertStringToValue(value, (EObject) owner); - } - - return result; - } - - /** - * @see com.ibm.etools.emf2xml.impl.Translator#convertStringToValue(String) - */ - public Object convertStringToValue(String strValue, EObject owner) { - if (strValue != null) { - String qualifiedName = removePreceedingAndTrailingPeriods(strValue.trim()); - if (owner != null) { - Resource ownerRes = owner.eResource(); - if (ownerRes != null) { - ResourceSet rs = ownerRes.getResourceSet(); - if (rs != null) { - //Try to reflect the type directly. If nothing is returned - //or an error occurs, return a proxy. - Object javaClass = null; - try { - javaClass = JavaRefFactory.eINSTANCE.reflectType(qualifiedName, rs); - } catch (Exception e) { - //Ignore - } - if (javaClass != null) - return javaClass; - } - } - } - return JavaRefFactory.eINSTANCE.createClassRef(qualifiedName); - } - return null; - } - private String removePreceedingAndTrailingPeriods(String qualifiedName) { - char[] characters = qualifiedName.toCharArray(); - int startIndex = 0; - for (; startIndex < characters.length && characters[startIndex] == '.'; startIndex++); - int qualifiedNameEnd = qualifiedName.length() - 1; - int endIndex = qualifiedNameEnd; - for (; endIndex > -1 && characters[endIndex] == '.'; endIndex--) - if (startIndex == 0 && endIndex == qualifiedNameEnd) - return qualifiedName; - return qualifiedName.substring(startIndex, endIndex + 1); - } - - /** - * @see com.ibm.etools.emf2xml.impl.Translator#convertValueToString(Object) - */ - public String convertValueToString(Object value, EObject owner) { - if (value != null) - return ((JavaClass) value).getQualifiedName(); - return null; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/ResAuthTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/ResAuthTranslator.java deleted file mode 100644 index fdf8b9898..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/ResAuthTranslator.java +++ /dev/null @@ -1,92 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 30, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.common; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.ResAuthTypeBase; -import org.eclipse.jst.j2ee.common.ResourceRef; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.xml.DeploymentDescriptorXmlMapperI; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.wst.common.internal.emf.resource.Translator; -/** - * @author schacher - */ -public class ResAuthTranslator extends Translator implements DeploymentDescriptorXmlMapperI { - - private static final String CONTAINER_AUTH = "CONTAINER"; //$NON-NLS-1$ - private static final String SERVLET_AUTH = "SERVLET"; //$NON-NLS-1$ - public ResAuthTranslator() { - super(RES_AUTH, CommonPackage.eINSTANCE.getResourceRef_Auth()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#convertStringToValue(java.lang.String, org.eclipse.emf.ecore.EObject) - */ - public Object convertStringToValue(String strValue, EObject owner) { - if (isWeb((ResourceRef)owner)) - return convertWebStringToValue(strValue, owner); - - return super.convertStringToValue(strValue, owner); - } - - /** - * @param strValue - * @param owner - * @return - */ - private Object convertWebStringToValue(String strValue, EObject owner) { - if (SERVLET_AUTH.equals(strValue)) - return ResAuthTypeBase.APPLICATION_LITERAL; - else if (CONTAINER_AUTH.equals(strValue)) - return ResAuthTypeBase.CONTAINER_LITERAL; - else - return super.convertStringToValue(strValue, owner); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#convertValueToString(java.lang.Object, org.eclipse.emf.ecore.EObject) - */ - public String convertValueToString(Object value, EObject owner) { - if (isWeb22(((ResourceRef)owner))) - return convertWebValueToString(value, owner); - - return super.convertValueToString(value, owner); - } - - /** - * @param value - * @param owner - */ - private String convertWebValueToString(Object value, EObject owner) { - if (ResAuthTypeBase.APPLICATION_LITERAL == value) - return SERVLET_AUTH; - else if (ResAuthTypeBase.CONTAINER_LITERAL == value) - return CONTAINER_AUTH; - else - return super.convertValueToString(value, owner); - } - - protected boolean isWeb(ResourceRef ref) { - EObject owner = ref.eContainer(); - return (owner instanceof WebApp); - } - protected boolean isWeb22(ResourceRef ref) { - return isWeb(ref) && ((WebApp)ref.eContainer()).getVersionID() <= J2EEVersionConstants.WEB_2_2_ID; - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/connector/ConnectorTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/connector/ConnectorTranslator.java deleted file mode 100644 index 82616b81e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/connector/ConnectorTranslator.java +++ /dev/null @@ -1,300 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.connector; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.model.translator.common.BooleanTranslator; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.xml.RarDeploymentDescriptorXmlMapperI; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.wst.common.internal.emf.resource.ConstantAttributeTranslator; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.RootTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - - -public class ConnectorTranslator extends RootTranslator implements RarDeploymentDescriptorXmlMapperI, J2EEConstants { - public static ConnectorTranslator INSTANCE = new ConnectorTranslator(); - public static final String CONNECTOR = "connector"; //$NON-NLS-1$ - private static JcaPackage CONNECTOR_PKG = JcaPackage.eINSTANCE; - private static CommonPackage COMMON_PKG = CommonPackage.eINSTANCE; - private static Translator[] children13; - private static Translator[] children14; - - private static final Translator VENDOR_NAME_TRANSLATOR = new Translator(VENDOR_NAME, CONNECTOR_PKG.getConnector_VendorName()); - private static final Translator EIS_TYPE_TRANSLATOR = new Translator(EIS_TYPE, CONNECTOR_PKG.getConnector_EisType()); - - private static final Translator CONFIG_PROPERTY_NAME_TRANSLATOR= new Translator(CONFIG_PROPERTY_NAME, CONNECTOR_PKG.getConfigProperty_Name()); - private static final Translator CONFIG_PROPERTY_TYPE_TRANSLATOR= new Translator(CONFIG_PROPERTY_TYPE, CONNECTOR_PKG.getConfigProperty_Type()); - private static final Translator CONFIG_PROPERTY_VALUE_TRANSLATOR= new Translator(CONFIG_PROPERTY_VALUE, CONNECTOR_PKG.getConfigProperty_Value()); - - private static final Translator SECURITY_PERMISSION_SPEC_TRANSLATOR = new Translator(SECURITY_PERMISSION_SPEC, CONNECTOR_PKG.getSecurityPermission_Specification()); - - private static final Translator AUTH_MECH_TYPE_TRANSLATOR = new Translator(AUTH_MECH_TYPE, CONNECTOR_PKG.getAuthenticationMechanism_AuthenticationMechanismType()); - private static final Translator CREDENTIAL_INTERFACE_TRANSLATOR = new Translator(CREDENTIAL_INTERFACE, CONNECTOR_PKG.getAuthenticationMechanism_CredentialInterface()); - - private static final BooleanTranslator LICENSE_REQUIRED_TRANSLATOR = new BooleanTranslator(LICENSE_REQUIRED, CONNECTOR_PKG.getLicense_Required()); - - public ConnectorTranslator() { - super(CONNECTOR, JcaPackage.eINSTANCE.getConnector()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children13 == null) - children13 = create13Children(); - return children13; - default : - if (children14 == null) - children14 = create14Children(); - return children14; - } - } - - protected Translator[] create13Children() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName() ), - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new Translator(ICON+"/"+SMALL_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon() ), //$NON-NLS-1$ - new Translator(ICON+"/"+LARGE_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon() ), //$NON-NLS-1$ - VENDOR_NAME_TRANSLATOR, - new Translator(SPEC_VERSION, CONNECTOR_PKG.getConnector_SpecVersion() ), - EIS_TYPE_TRANSLATOR, - new Translator(VERSION, CONNECTOR_PKG.getConnector_Version() ), - createLicenseTranslator13(), - createResourceAdapterTranslator13() - }; - } - - protected Translator[] create14Children() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(VERSION, CONNECTOR_PKG.getConnector_SpecVersion(), DOM_ATTRIBUTE), - new ConstantAttributeTranslator(XML_NS, J2EE_NS_URL), - new ConstantAttributeTranslator(XML_NS_XSI, XSI_NS_URL), - new ConstantAttributeTranslator(XSI_SCHEMA_LOCATION, J2EE_NS_URL+' '+CONNECTOR_SCHEMA_LOC_1_5), - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - VENDOR_NAME_TRANSLATOR, - EIS_TYPE_TRANSLATOR, - new Translator(RESOURCEADAPTER_VERSION, CONNECTOR_PKG.getConnector_Version()), - createLicenseTranslator14(), - createResourceAdapterTranslator14(), - }; - } - - private Translator createResourceAdapterTranslator14() { - GenericTranslator result = new GenericTranslator(RESOURCEADAPTER, CONNECTOR_PKG.getConnector_ResourceAdapter()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(RESOURCEADAPTER_CLASS,CONNECTOR_PKG.getResourceAdapter_ResourceAdapterClass()), - createConfigurationPropertyTranslator14(CONNECTOR_PKG.getResourceAdapter_ConfigProperties()), - createOutboundTranslator(), - createInboundTranslator(), - createAdminObjectTranslator(), - createSecurityPermissionsTranslator() - }); - return result; - } - - private Translator createOutboundTranslator() { - GenericTranslator result = new GenericTranslator(OUTBOUND_RESOURCEADAPTER, CONNECTOR_PKG.getResourceAdapter_OutboundResourceAdapter()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createConnectionDefinationTranslator(), - new Translator(TRANSACTION_SUPPORT, CONNECTOR_PKG.getOutboundResourceAdapter_TransactionSupport()), - createAuthMechanismTranslator14(CONNECTOR_PKG.getOutboundResourceAdapter_AuthenticationMechanisms()), - new BooleanTranslator(REAUTHENTICATION_SUPPORT, CONNECTOR_PKG.getOutboundResourceAdapter_ReauthenticationSupport()), - }); - return result; - } - - private Translator createInboundTranslator() { - GenericTranslator result = new GenericTranslator(INBOUND_RESOURCEADAPTER, CONNECTOR_PKG.getResourceAdapter_InboundResourceAdapter()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createMessageAdapterTranslator() - }); - - return result; - } - - private Translator createMessageAdapterTranslator() { - GenericTranslator result = new GenericTranslator(MESSAGEADAPTER, CONNECTOR_PKG.getInboundResourceAdapter_MessageAdapter()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createMessageListenerTranslator(), - }); - - return result; - } - - private Translator createMessageListenerTranslator() { - GenericTranslator result = new GenericTranslator(MESSAGELISTENER, CONNECTOR_PKG.getMessageAdapter_MessageListeners()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(MESSAGELISTENER_TYPE, CONNECTOR_PKG.getMessageListener_MessageListenerType()), - createActivationSpecTranslator() - }); - return result; - } - - private Translator createActivationSpecTranslator() { - GenericTranslator result = new GenericTranslator(ACTIVATIONSPEC, CONNECTOR_PKG.getMessageListener_ActivationSpec()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(ACTIVATIONSPEC_CLASS, CONNECTOR_PKG.getActivationSpec_ActivationSpecClass()), - createRequiredConfigPropertyTranslator() - }); - return result; - } - - private Translator createRequiredConfigPropertyTranslator() { - GenericTranslator result = new GenericTranslator(REQUIRED_CONFIG_PROPERTY, CONNECTOR_PKG.getActivationSpec_RequiredConfigProperties()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(CONNECTOR_PKG.getRequiredConfigPropertyType_Descriptions()), - new Translator(CONFIG_PROPERTY_NAME, CONNECTOR_PKG.getRequiredConfigPropertyType_Name()) - }); - return result; - } - - private Translator createAdminObjectTranslator() { - GenericTranslator result = new GenericTranslator(ADMINOBJECT, CONNECTOR_PKG.getResourceAdapter_AdminObjects()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(ADMINOBJECT_INTERFACE, CONNECTOR_PKG.getAdminObject_AdminObjectInterface()), - new Translator(ADMINOBJECT_CLASS, CONNECTOR_PKG.getAdminObject_AdminObjectClass()), - createConfigurationPropertyTranslator14(CONNECTOR_PKG.getAdminObject_ConfigProperties()) - - }); - return result; - } - - private Translator createConnectionDefinationTranslator() { - GenericTranslator result = new GenericTranslator(CONNECTION_DEFINITION, CONNECTOR_PKG.getOutboundResourceAdapter_ConnectionDefinitions()); - result.setChildren(new Translator[] { - new Translator(MANAGEDCONNECTIONFACTORY_CLASS, CONNECTOR_PKG.getConnectionDefinition_ManagedConnectionFactoryClass()), - createConfigurationPropertyTranslator14(CONNECTOR_PKG.getConnectionDefinition_ConfigProperties()), - new Translator(CONNECTIONFACTORY_INTERFACE, CONNECTOR_PKG.getConnectionDefinition_ConnectionFactoryInterface()), - new Translator(CONNECTIONFACTORY_IMPL_CLASS, CONNECTOR_PKG.getConnectionDefinition_ConnectionFactoryImplClass()), - new Translator(CONNECTION_INTERFACE, CONNECTOR_PKG.getConnectionDefinition_ConnectionInterface()), - new Translator(CONNECTION_IMPL_CLASS, CONNECTOR_PKG.getConnectionDefinition_ConnectionImplClass()), - }); - return result; - } - - public Translator createResourceAdapterTranslator13() { - GenericTranslator result = new GenericTranslator(RESOURCEADAPTER, CONNECTOR_PKG.getConnector_ResourceAdapter()); - result.setChildren(new Translator[] { - new Translator(MANAGEDCONNECTIONFACTORY_CLASS, CONNECTOR_PKG.getResourceAdapter_ManagedConnectionFactoryClass() ), - new Translator(CONNECTIONFACTORY_INTERFACE, CONNECTOR_PKG.getResourceAdapter_ConnectionFactoryInterface() ), - new Translator(CONNECTIONFACTORY_IMPL_CLASS, CONNECTOR_PKG.getResourceAdapter_ConnectionFactoryImplClass() ), - new Translator(CONNECTION_INTERFACE, CONNECTOR_PKG.getResourceAdapter_ConnectionInterface()), - new Translator(CONNECTION_IMPL_CLASS, CONNECTOR_PKG.getResourceAdapter_ConnectionImplClass()), - new Translator(TRANSACTION_SUPPORT, CONNECTOR_PKG.getResourceAdapter_TransactionSupport() ), - createConfigurationPropertyTranslator13(CONNECTOR_PKG.getResourceAdapter_ConfigProperties()), - createAuthMechanismTranslator13(CONNECTOR_PKG.getResourceAdapter_AuthenticationMechanisms()), - new BooleanTranslator(REAUTHENTICATION_SUPPORT, CONNECTOR_PKG.getResourceAdapter_ReauthenticationSupport()), - createSecurityPermissionsTranslator() - - - }); - return result; - } - - public Translator createSecurityPermissionsTranslator() { - GenericTranslator result = new GenericTranslator(SECURITY_PERMISSION, CONNECTOR_PKG.getResourceAdapter_SecurityPermissions()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, CONNECTOR_PKG.getSecurityPermission_Description()), - SECURITY_PERMISSION_SPEC_TRANSLATOR - }); - return result; - } - - public Translator createAuthMechanismTranslator13(EStructuralFeature afeature) { - GenericTranslator result = new GenericTranslator(AUTH_MECHANISM, afeature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, CONNECTOR_PKG.getAuthenticationMechanism_Description()), - AUTH_MECH_TYPE_TRANSLATOR, - CREDENTIAL_INTERFACE_TRANSLATOR - }); - return result; - } - - public Translator createAuthMechanismTranslator14(EStructuralFeature afeature) { - GenericTranslator result = new GenericTranslator(AUTH_MECHANISM, afeature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(CONNECTOR_PKG.getAuthenticationMechanism_Descriptions()), - AUTH_MECH_TYPE_TRANSLATOR, - CREDENTIAL_INTERFACE_TRANSLATOR - }); - return result; - } - - - public Translator createConfigurationPropertyTranslator13(EStructuralFeature afeature) { - GenericTranslator result = new GenericTranslator(CONFIG_PROPERTY, afeature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, CONNECTOR_PKG.getConfigProperty_Description()), - CONFIG_PROPERTY_NAME_TRANSLATOR, - CONFIG_PROPERTY_TYPE_TRANSLATOR, - CONFIG_PROPERTY_VALUE_TRANSLATOR - }); - return result; - } - - public Translator createConfigurationPropertyTranslator14(EStructuralFeature afeature) { - GenericTranslator result = new GenericTranslator(CONFIG_PROPERTY, afeature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(CONNECTOR_PKG.getConfigProperty_Descriptions()), - CONFIG_PROPERTY_NAME_TRANSLATOR, - CONFIG_PROPERTY_TYPE_TRANSLATOR, - CONFIG_PROPERTY_VALUE_TRANSLATOR - }); - return result; - } - - public Translator createLicenseTranslator13() { - GenericTranslator result = new GenericTranslator(LICENSE, CONNECTOR_PKG.getConnector_License()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, CONNECTOR_PKG.getLicense_Description()), - LICENSE_REQUIRED_TRANSLATOR - }); - return result; - } - - public Translator createLicenseTranslator14() { - GenericTranslator result = new GenericTranslator(LICENSE, CONNECTOR_PKG.getConnector_License()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(CONNECTOR_PKG.getLicense_Descriptions()), - LICENSE_REQUIRED_TRANSLATOR - }); - return result; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/AbstractEJBTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/AbstractEJBTranslator.java deleted file mode 100644 index 896d4acf8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/AbstractEJBTranslator.java +++ /dev/null @@ -1,146 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 31, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.model.translator.common.JavaClassTranslator; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public abstract class AbstractEJBTranslator extends Translator implements EjbDeploymentDescriptorXmlMapperI, J2EEVersionConstants { - protected static final EjbPackage EJB_PKG = EjbPackage.eINSTANCE; - protected static final CommonPackage COMMON_PKG = CommonPackage.eINSTANCE; - - - /** - * @param domNameAndPath - * @param aFeature - */ - public AbstractEJBTranslator(String domNameAndPath) { - super(domNameAndPath, EJB_PKG.getEJBJar_EnterpriseBeans()); - } - - - protected Translator[] create13Children() { - Translator[] start = getCommonBeginMaps13(); - Translator[] middle = getSpecificMaps(J2EE_1_3_ID); - Translator[] end = getEndMaps13(); - return (Translator[]) concat(start, concat(middle, end)); - } - - protected Translator[] create14Children() { - Translator[] start = getCommonBeginMaps14(); - Translator[] middle = getSpecificMaps(J2EE_1_4_ID); - Translator[] end = getEndMaps14(); - //Translator[] deploymentExt = getDeploymentExtensionMaps(); - return (Translator[]) concat(start, concat(middle, end)); - } - - protected Translator[] getCommonBeginMaps13() { - - Translator[] beginMaps = new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(SMALL_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), - new Translator(LARGE_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), - new Translator(EJB_NAME, EJB_PKG.getEnterpriseBean_Name()) - }; - - if (usesHomeRemoteAttributes()) - return (Translator[])concat(concat(beginMaps, getHomeRemoteMaps()), getEJBClassMap()); - return (Translator[])concat(beginMaps, getEJBClassMap()); - } - - - protected Translator[] getCommonBeginMaps14() { - - Translator[] beginMaps = new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - new Translator(EJB_NAME, EJB_PKG.getEnterpriseBean_Name()) - }; - if (usesHomeRemoteAttributes()) - return (Translator[])concat(concat(beginMaps, getHomeRemoteMaps()), getEJBClassMap()); - return (Translator[])concat(beginMaps, getEJBClassMap()); - } - - protected Translator[] getHomeRemoteMaps() { - return new Translator[] { - new JavaClassTranslator(HOME, EJB_PKG.getEnterpriseBean_HomeInterface()), - new JavaClassTranslator(REMOTE, EJB_PKG.getEnterpriseBean_RemoteInterface()), - //Begin EJB 2.0 - new JavaClassTranslator(LOCAL_HOME, EJB_PKG.getEnterpriseBean_LocalHomeInterface()), - new JavaClassTranslator(LOCAL, EJB_PKG.getEnterpriseBean_LocalInterface()) - //End EJB 2.0 - }; - } - - protected Translator[] getEJBClassMap() { - return new Translator[] { - new JavaClassTranslator(EJB_CLASS, EJB_PKG.getEnterpriseBean_EjbClass()) - }; - } - - protected boolean usesHomeRemoteAttributes() { - return true; - } - - - protected Translator[] getEndMaps13() { - return new Translator[] { - CommonTranslators.JNDI_REF_GROUP_ENV_ENTRY_1_3, - CommonTranslators.JNDI_REF_GROUP_EJB_REF_1_3, - CommonTranslators.JNDI_REF_GROUP_EJB_LOCAL_REF_1_3, - CommonTranslators.createSecurityRoleRefTranslator13(EJB_PKG.getEnterpriseBean_SecurityRoleRefs()), - new SecurityIdentityTranslator(), - CommonTranslators.JNDI_REF_GROUP_RESOURCE_REF_1_3, - CommonTranslators.JNDI_REF_GROUP_RESOURCE_ENV_REF_1_3 - }; - - } - - protected Translator[] getEndMaps14() { - return new Translator[] { - CommonTranslators.JNDI_REF_GROUP_ENV_ENTRY_1_4, - CommonTranslators.JNDI_REF_GROUP_EJB_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_EJB_LOCAL_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_SERVICE_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_RESOURCE_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_RESOURCE_ENV_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_MESSAGE_DEST_REF_1_4, - CommonTranslators.createSecurityRoleRefTranslator14(EJB_PKG.getEnterpriseBean_SecurityRoleRefs()), - new SecurityIdentityTranslator(), - }; - - } - - protected abstract Translator[] getSpecificMaps(int versionID); - -// protected Translator[] getDeploymentExtensionMaps(){ -// return new Translator[] { -// CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getEnterpriseBean_Extensions()) -// }; -// } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/AcknowledgeModeTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/AcknowledgeModeTranslator.java deleted file mode 100644 index c8fef2562..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/AcknowledgeModeTranslator.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 31, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.AcknowledgeMode; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public class AcknowledgeModeTranslator extends Translator implements EjbDeploymentDescriptorXmlMapperI { - - public static final String AUTO_ACKNOWLEDGE = "Auto-acknowledge"; //$NON-NLS-1$ - public static final String DUPS_OK_ACKNOWLEDGE = "Dups-ok-acknowledge"; //$NON-NLS-1$ - /** - * @param domNameAndPath - * @param aFeature - */ - public AcknowledgeModeTranslator() { - super(ACKNOWLEDGE_MODE, EjbPackage.eINSTANCE.getMessageDriven_AcknowledgeMode()); - } - - - public Object convertStringToValue(String strValue, EObject owner) { - if (AUTO_ACKNOWLEDGE.equalsIgnoreCase(strValue)) - return AcknowledgeMode.AUTO_ACKNOWLEDGE_LITERAL; - else if (DUPS_OK_ACKNOWLEDGE.equalsIgnoreCase(strValue)) - return AcknowledgeMode.DUPS_OK_ACKNOWLEDGE_LITERAL; - else - return super.convertStringToValue(strValue, owner); - } - - public String convertValueToString(Object value, EObject owner) { - if (AcknowledgeMode.AUTO_ACKNOWLEDGE_LITERAL.equals(value)) - return AUTO_ACKNOWLEDGE; - else if (AcknowledgeMode.DUPS_OK_ACKNOWLEDGE_LITERAL.equals(value)) - return DUPS_OK_ACKNOWLEDGE; - else - return super.convertValueToString(value, owner); - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/CMPFieldTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/CMPFieldTranslator.java deleted file mode 100644 index 7861a6fe2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/CMPFieldTranslator.java +++ /dev/null @@ -1,103 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 2, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.jst.j2ee.ejb.CMPAttribute; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author administrator - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class CMPFieldTranslator extends Translator implements EjbDeploymentDescriptorXmlMapperI { - public static EjbPackage EJB_PKG = EjbPackage.eINSTANCE; - public static Translator[] children; - public CMPFieldTranslator(){ - super(CMP_FIELD, EJB_PKG.getContainerManagedEntity_PersistentAttributes()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren() - */ - protected Translator[] getChildren() { - if (children == null) - children = createChildren(); - return children; - } - - protected Translator[] createChildren(){ - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION,EJB_PKG.getCMPAttribute_Description()), - new Translator(FIELD_NAME, EcorePackage.eINSTANCE.getENamedElement_Name()) - }; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getMOFChildren(org.eclipse.emf.ecore.EObject) - */ - public List getMOFChildren(EObject mofObject) { - switch(((ContainerManagedEntity)mofObject).getVersionID()) { - - case J2EEVersionConstants.EJB_1_0_ID: - case J2EEVersionConstants.EJB_1_1_ID: - - return super.getMOFChildren(mofObject); - - case J2EEVersionConstants.EJB_2_0_ID: - case J2EEVersionConstants.EJB_2_1_ID: default: - - return get20CMPAttributes((ContainerManagedEntity)mofObject); - } - } - - public List get20CMPAttributes(ContainerManagedEntity cmp) { - List allAttributes, removed, result; - removed = null; - allAttributes = cmp.getPersistentAttributes(); - int size = allAttributes.size(); - CMPAttribute att = null; - for (int i = 0; i < size; i++) { - att = (CMPAttribute) allAttributes.get(i); - if (att.isDerived()) { - if (removed == null) - removed = new ArrayList(); - removed.add(att); - } - } - if (removed != null) { - result = new ArrayList(size); - result.addAll(allAttributes); - result.removeAll(removed); - } else - result = allAttributes; - return result; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/CMPVersionTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/CMPVersionTranslator.java deleted file mode 100644 index f1743cd16..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/CMPVersionTranslator.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 3, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EJBJar; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public class CMPVersionTranslator extends Translator implements EjbDeploymentDescriptorXmlMapperI { - - /** - * @param domNameAndPath - * @param eClass - */ - public CMPVersionTranslator() { - super(CMP_VERSION, EjbPackage.eINSTANCE.getContainerManagedEntity_Version()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getMOFValue(org.eclipse.emf.ecore.EObject) - */ - public Object getMOFValue(EObject mofObject) { - EJBJar parent = ((ContainerManagedEntity)mofObject).getEjbJar(); - if (parent.getVersionID() >= J2EEVersionConstants.EJB_2_0_ID) - return super.getMOFValue(mofObject); - return null; - } - - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/ContainerManagedEntityTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/ContainerManagedEntityTranslator.java deleted file mode 100644 index ce47a35e9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/ContainerManagedEntityTranslator.java +++ /dev/null @@ -1,447 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 31, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public class ContainerManagedEntityTranslator extends EntityTranslator { - - private static Translator[] children13; - private static Translator[] children14; - /** - * @param domNameAndPath - * @param aFeature - */ - public ContainerManagedEntityTranslator() { - super(); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - return EjbFactory.eINSTANCE.createContainerManagedEntity(); - } - //TODO Uncomment all commented code and fix - /* - protected String extractStringValue(MapInfo map, EObject mofObject) { - if (map.getDOMName().equals(PRIMKEY_FIELD)) { - CMPAttribute attr = getContainerManagedEntity().getPrimaryKeyAttribute(); - return attr == null ? getSpecifiedPrimKeyFieldName() : attr.getName(); - } else - return super.extractStringValue(map, mofObject); - - } - - protected String getSpecifiedPrimKeyFieldName() { - return CMPSpecAdapter.getSpecifiedPrimKeyFieldName(getContainerManagedEntity()); - } - */ - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children13 == null) - children13 = create13Children(); - return children13; - default : - if (children14 == null) - children14 = create14Children(); - return children14; - } - } - - protected String getPersistenceType() { - return CONTAINER; - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.internal.model.translator.ejb.EntityTranslator#getSpecificMaps() - */ - protected Translator[] getSpecificMaps(int versionID) { - Translator[] cmpTranslators = new Translator[] { - //Begin EJB 2.0 added - new CMPVersionTranslator(), - new Translator(ABSTRACT_SCHEMA_NAME, EJB_PKG.getContainerManagedEntity_AbstractSchemaName()), - //End EJB 2.0 added - - new CMPFieldTranslator(), - new PrimKeyFieldTranslator(), - }; - return (Translator[]) concat(super.getSpecificMaps(versionID), cmpTranslators); - } - - - protected Translator[] getEndMaps13() { - //Added for EJB 2.0 - Translator[] queryT = new Translator[] { - createQueryTranslators() - }; - return (Translator[]) concat(super.getEndMaps13(), queryT); - } - - protected Translator[] getEndMaps14() { - //Added for EJB 2.0 - Translator[] queryT = new Translator[] { - createQueryTranslators() - }; - return (Translator[]) concat(super.getEndMaps14(), queryT); - } - - public static Translator createQueryTranslators() { - GenericTranslator result = new GenericTranslator(QUERY, EJB_PKG.getContainerManagedEntity_Queries()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, EJB_PKG.getQuery_Description()), - createQueryMethodTranslators(), - new Translator(RESULT_TYPE_MAPPING, EJB_PKG.getQuery_ReturnTypeMapping()), - new Translator(EJB_QL, EJB_PKG.getQuery_EjbQL()) - }); - return result; - } - - public static Translator createQueryMethodTranslators() { - GenericTranslator result = new GenericTranslator(QUERY_METHOD, EJB_PKG.getQuery_QueryMethod()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(METHOD_NAME, EJB_PKG.getMethodElement_Name()), - new MethodParamsTranslator(EJB_PKG.getMethodElement_Parms()) - }); - return result; - } - - /* - protected void primUpdateDOMFeature(MapInfo map, Node node, EObject mofObject) { - if (map == noFeaturePrimKeyMapInfo) - return; - if (map.getDOMName().equals(CMP_VERSION)) { - updateDOMCmpVersionIfNecessary(map, node, mofObject); - return; - } - super.primUpdateDOMFeature(map, node, mofObject); - //If the primary key class has changed, this will impact the primary key field - if (map.getDOMName().equals(PRIM_KEY_CLASS)) { - String specifiedPrimKeyField = CMPSpecAdapter.getSpecifiedPrimKeyFieldName(getContainerManagedEntity()); - try { - super.primUpdateDOMFeature(noFeaturePrimKeyMapInfo, node, mofObject); - } finally { - CMPSpecAdapter.setPrimKeyFieldFromXml(specifiedPrimKeyField, getContainerManagedEntity()); - } - } - } - - - protected void updateDOMCmpVersionIfNecessary(MapInfo map, Node node, EObject mofObject) { - if (!(mofObject instanceof ContainerManagedEntity)) - return; - - EJBJar parent = ((ContainerManagedEntity)mofObject).getEjbJar(); - if (parent.isVersion2_0Descriptor()) - super.primUpdateDOMFeature(map, node, mofObject); - } - protected void primUpdateDOMMultiFeature(MapInfo map, Node node, EObject mofObject) { - if (map == featurePrimKeyMapInfo) - super.primUpdateDOMFeature(noFeaturePrimKeyMapInfo, node, mofObject); - else - super.primUpdateDOMMultiFeature(map, node, mofObject); - } - protected boolean primUpdateMOFFeature(MapInfo map, Node node, EObject mofObject) { - boolean hasChanged = super.primUpdateMOFFeature(map, node, mofObject); - //If the key class has changed, from the xml side, then we need to make sure we stamp the primkey field - //as being specified from xml, since we will not automatically remove that node - if (map.getDOMName().equals(PRIM_KEY_CLASS)) { - updateXmlKeyField(noFeaturePrimKeyMapInfo, node); - if (hasChanged) - updateMOFPrimKeyFieldFeature(featurePrimKeyMapInfo, getNode(), true); - } - return hasChanged; - } - protected void primUpdateMOFMultiFeature(MapInfo map, Node node, EObject mofObject) { - if (map == noFeaturePrimKeyMapInfo) - return; - if (map.getDOMName().equals(PRIMKEY_FIELD)) { - updateMOFPrimKeyFieldFeature(map, node, false); - } else if (map.getDOMName().equals(CMP_FIELD)) { - //cache the old list of cmp attributes before update - List cmpAttributesListCOPY = new ArrayList(); - cmpAttributesListCOPY.addAll(getContainerManagedEntity().getPersistentAttributes()); - - //do the update - super.primUpdateMOFMultiFeature(map, node, mofObject); - - List newCmpAttributeList = getContainerManagedEntity().getPersistentAttributes(); - //key the cmp attribute list and the key attribute list. - performKeySynchronization(cmpAttributesListCOPY, newCmpAttributeList); - } else - super.primUpdateMOFMultiFeature(map, node, mofObject); - } - /** - * Method that synchronizies the list of cmp attributes that are keys with the key attribute list. - * When keys are added and deleted from the cmp attribute list. - * - * @param List cmpAttributesListCOPY - Copy of the cmp attribute list before any attributes where added - * or removed. - * @param List newCmpAttributeList - List of cmp attributes after a modification has occured. - */ - /* - protected void performKeySynchronization( List cmpAttributesListCOPY, List newCmpAttributeList ) { - if( cmpAttributesListCOPY != null && newCmpAttributeList != null ) { - - //add and removes keys based on what the adapters give back - - List addedCmpAttributeList = getCmpAttributesDeltaList( cmpAttributesListCOPY, newCmpAttributeList ); - if( addedCmpAttributeList != null && !addedCmpAttributeList.isEmpty() ) { - //determine if any of the added attributes are keys, if so get a list of them. - List addedKeyAttributeList = getKeyAttributesFromList( addedCmpAttributeList, getContainerManagedEntity().getPrimaryKey() ); - //now, add the keys to the list. - addKeysToKeyAttributeList( addedKeyAttributeList, getContainerManagedEntity() ); - }// if - - List subtractedCmpAttributeList = getCmpAttributesDeltaList( newCmpAttributeList, cmpAttributesListCOPY ); - if( subtractedCmpAttributeList != null && !subtractedCmpAttributeList.isEmpty() ) { - //determine if any of the subtracted attributes are keys, if so get a list of them. - List subtractedKeyAttributeList = getKeyAttributesFromList( subtractedCmpAttributeList, getContainerManagedEntity().getPrimaryKey() ); - //now, subtract the keys from the list. - removeKeysFromKeyAttributeList( subtractedKeyAttributeList, getContainerManagedEntity() ); - }// if - - }// if - }// performKeySynchronization - - /** - * Remove a bunch of keys from the current key attribute list. - * - * @param List subtractedKeyAttributeList - The list of keys to subtract from the key attributes list. - * @param ContainerManagedEntity cmp - The current container managed entity. - */ - - /* - public static void removeKeysFromKeyAttributeList( List subtractedKeyAttributeList, ContainerManagedEntity cmp ) { - if( subtractedKeyAttributeList != null && !subtractedKeyAttributeList.isEmpty() ) { - //Subtract the key attributes from the container managed entity - Iterator kli = subtractedKeyAttributeList.iterator(); - - while( kli.hasNext() ) { - CMPAttribute cmpAttribute = (CMPAttribute)kli.next(); - String cmpAttributeName = cmpAttribute.getName(); - if( cmpAttributeName != null ) { - if( cmp != null && cmp.getKeyAttributes() != null ) { - List keyAttributeList = cmp.getKeyAttributes(); - keyAttributeList.remove( cmpAttribute ); - }// if - }// if - }// while - }// if - }// performKeySynchronization - - /** - * Adds a bunch of keys to the current key attribute list. - * - * @param List addedCmpAttributeList - The list of keys to add to the key attributes list. - * @param ContainerManagedEntity cmp - The current container managed entity. - */ - - /* - public static void addKeysToKeyAttributeList( List addedKeyAttributeList, ContainerManagedEntity cmp ) { - if( addedKeyAttributeList != null && !addedKeyAttributeList.isEmpty() ) { - //Add the key attributes to the container managed entity - Iterator kli = addedKeyAttributeList.iterator(); - - while( kli.hasNext() ) { - CMPAttribute cmpAttribute = (CMPAttribute)kli.next(); - String cmpAttributeName = cmpAttribute.getName(); - if( cmpAttributeName != null ) { - if( cmp != null && cmp.getKeyAttributes() != null ) - cmp.addKeyAttributeName( cmpAttributeName ); - }// if - }// while - }// if - }// addKeysToKeyAttributeList - - /** - * Gets the key attributes contained in the list. - * - * @param List attributeList - List of attributes. - * @param JavaClass primaryKey - The primary key of the cmp. - * @return List - */ - - /* - public static List getKeyAttributesFromList( List attributeList, JavaClass primaryKey ) { - if (primaryKey == null || attributeList == null || attributeList.isEmpty()) - return Collections.EMPTY_LIST; - - List foundKeyAttributeList = new ArrayList(); - Iterator it = attributeList.iterator(); - while( it.hasNext() ) { - CMPAttribute cmpAttr = (CMPAttribute)it.next(); - if( cmpAttr != null ) { - String cmpAttributeName = cmpAttr.getName(); - if (cmpAttributeName != null) { - Field keyField = primaryKey.getField(cmpAttributeName); - if (keyField != null) - foundKeyAttributeList.add(cmpAttr); - }// if - } //if - }// while - return foundKeyAttributeList; - }// getKeyAttributesFromList - - /** - * Gets the delta elements of two lists - * - * @param List firstList - The list that is being compared too. - * @param List secondList - The list to check the difference of. - * @return List - */ - - /* - protected List getCmpAttributesDeltaList( List firstList, List secondList ) { - List diffAttributeList = new ArrayList(); - - if( firstList != null && secondList != null ) { - Iterator it = secondList.iterator(); - while( it.hasNext() ) { - CMPAttribute cmpAttribute = (CMPAttribute)it.next(); - if( cmpAttribute != null && !firstList.contains( cmpAttribute ) ) { - diffAttributeList.add( cmpAttribute ); - }// if - }// while - return diffAttributeList; - }// if - return java.util.Collections.EMPTY_LIST; - }// getCmpAttributesDeltaList - - protected void updateMOFPrimKeyFieldFeature(MapInfo map, Node node, boolean force) { - Resource res = getEObject().eResource(); - boolean modFlag = res == null ? false : res.isModified(); - String keyField = getDOMText(map, node); - //Determine if the prim-key field has changed. If so, then recompute the keys; otherwise leave - //it alone - if (keyField != null) - keyField = keyField.trim(); - CMPAttribute existingKeyAtt = getContainerManagedEntity().getPrimaryKeyAttribute(); - String existingKeyField = existingKeyAtt == null ? null : existingKeyAtt.getName(); - if (!force - && ((keyField == null && existingKeyField == null) - || (keyField != null && keyField.equals(existingKeyField)) - || (existingKeyField != null && existingKeyField.equals(keyField)))) - return; - - try { - getContainerManagedEntity().clearKeyAttributes(); //necessary to clear reflected flag - CMPAttribute keyAtt = null; - CMPSpecAdapter.setPrimKeyFieldFromXml(keyField, getContainerManagedEntity()); - if (keyField != null) { - keyAtt = getContainerManagedEntity().addKeyAttributeName(keyField, false); - if (keyAtt != null) { - //This is an invalid state. - String className = getContainerManagedEntity().getPrimaryKeyName(); - JavaClass ref = null; - if (className != null) - ref = JavaClassImpl.createClassRef(className); - keyAtt.setEType(ref); - } - } else { - //Hack to force the UI to refresh - EList keys = getContainerManagedEntity().getKeyAttributes(); - if (!keys.isEmpty()) - keys.set(0, keys.get(0)); - } - } finally { - if (res != null && res.isTrackingModification()) - res.setModified(modFlag); - } - } - protected void updateXmlKeyField(MapInfo map, Node node) { - String keyField = getDOMText(map, node); - CMPSpecAdapter.setPrimKeyFieldFromXml(keyField, getContainerManagedEntity()); - } - - /** - * @see AbstractDOMNodeAdapter#getMOFChildren(EObject, MapInfo) - */ - /* - protected List getMOFChildren(EObject mofObject, MapInfo map) { - if (getContainerManagedEntity().isVersion2_X() && CMP_FIELD.equals(map.getDOMName())) - return get20CMPAttributes((ContainerManagedEntity)mofObject); - else - return super.getMOFChildren(mofObject, map); - } - - /** - * Method get20CMPAttributes. - * @param containerManagedEntity - * @return List - */ - - /* - private List get20CMPAttributes(ContainerManagedEntity cmp) { - List allAttributes, removed, result; - removed = null; - allAttributes = cmp.getPersistentAttributes(); - int size = allAttributes.size(); - CMPAttribute att = null; - for (int i = 0; i < size; i++) { - att = (CMPAttribute) allAttributes.get(i); - if (att.isDerived()) { - if (removed == null) - removed = new ArrayList(); - removed.add(att); - } - } - if (removed != null) { - result = new ArrayList(size); - result.addAll(allAttributes); - result.removeAll(removed); - } else - result = allAttributes; - return result; - } - - /** - * @see com.ibm.etools.mof2dom.AbstractDOMNodeAdapter#notifyChanged(new ENotificationImpl((InternalEObject)Notifier, int,(EStructuralFeature) EObject, Object, Object, int)) - */ - - /* - public void notifyChanged(Notification notification) { - if (notification.getEventType() == ContainerManagedEntity.DERIVED_FLAG_CHANGE) - updateDOMFeature(getMap(CMP_FIELD), getNode(), getEObject()); - else - super.notifyChanged(notification); - } - - private MapInfo getMap(String aNodeName) { - for (int i = 0; i < fMaps.length; i++) { - if (aNodeName.equals(fMaps[i].getDOMName())) - return fMaps[i]; - } - return null; - } - */ - } - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EJBJarTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EJBJarTranslator.java deleted file mode 100644 index 49afd53cc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EJBJarTranslator.java +++ /dev/null @@ -1,426 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 27, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.model.translator.common.JavaClassTranslator; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.ConstantAttributeTranslator; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.RootTranslator; -import org.eclipse.wst.common.internal.emf.resource.SourceLinkTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; -import org.eclipse.wst.common.internal.emf.resource.TranslatorPath; - -/** - * @author schacher - */ -public class EJBJarTranslator extends RootTranslator implements EjbDeploymentDescriptorXmlMapperI, J2EEConstants { - private static final EjbPackage EJB_PKG = EjbPackage.eINSTANCE; - private static CommonPackage COMMON_PKG = CommonPackage.eINSTANCE; - public static EJBJarTranslator INSTANCE = new EJBJarTranslator(); - private static Translator[] children13; - private static Translator[] children14; - - public static TranslatorPath ENTERPRISE_BEAN_NAME_TRANSLATOR_PATH = - new TranslatorPath( - new Translator[] { - new Translator(EJB_JAR, ROOT_FEATURE), - new Translator(EnterpriseBeansTranslator.ENTERPRISE_BEANS_PATH, EJB_PKG.getEJBJar_EnterpriseBeans()), - new Translator(EJB_NAME, EJB_PKG.getEnterpriseBean_Name())}); - - - private static final Translator CMR_FIELD_NAME_TRANSLATOR = new Translator(CMR_FIELD_NAME, EcorePackage.eINSTANCE.getENamedElement_Name()); - private static final Translator CMR_FIELD_TYPE_TRANSLATOR = new JavaClassTranslator(CMR_FIELD_TYPE, EJB_PKG.getCMRField_CollectionType()); - private static final Translator ROLE_SOURCE_EJB_NAME_SOURCELINK_TRANSLATOR = new SourceLinkTranslator(EJB_NAME, EJB_PKG.getRoleSource_EntityBean(), ENTERPRISE_BEAN_NAME_TRANSLATOR_PATH); - private static final Translator EJB_RELATIONSHIP_ROLE_NAME_TRANSLATOR = new Translator(EJB_RELATIONSHIP_ROLE_NAME, EJB_PKG.getEJBRelationshipRole_RoleName()); - private static final Translator MULTIPLICITY_TRANSLATOR = new MultiplicityTranslator(); - private static final Translator CASCADE_DELETE_TRANSLATOR = new Translator(CASCADE_DELETE, EJB_PKG.getEJBRelationshipRole_CascadeDelete(), Translator.EMPTY_TAG); - private static final Translator EJB_RELATION_NAME_TRANSLATOR = new Translator(EJB_RELATION_NAME, EJB_PKG.getEJBRelation_Name()); - private static final Translator UNCHECKED_TRANSLATOR = new Translator(UNCHECKED, EJB_PKG.getMethodPermission_Unchecked(), Translator.EMPTY_TAG); - private static final Translator METHOD_PERMISSION_ROLE_NAME_SOURCELINK_TRANSLATOR = new SourceLinkTranslator(ROLE_NAME,EJB_PKG.getMethodPermission_Roles(),new TranslatorPath( - new Translator[] { - new Translator(ASSEMBLY_DESCRIPTOR, CONTAINER_FEATURE), - new Translator(SECURITY_ROLE, EJB_PKG.getAssemblyDescriptor_SecurityRoles()), - new Translator(ROLE_NAME, CommonPackage.eINSTANCE.getSecurityRole_RoleName()) - })); - private static final Translator SEC_ROLE_NAME_TRANSLATOR = new Translator(ROLE_NAME, CommonPackage.eINSTANCE.getSecurityRole_RoleName(), new TranslatorPath( - new Translator[] { - new Translator(ASSEMBLY_DESCRIPTOR, CONTAINER_FEATURE), - new Translator(METHOD_PERMISSION, EJB_PKG.getAssemblyDescriptor_MethodPermissions()), - new Translator(SECURITY_ROLE, EJB_PKG.getMethodPermission_Roles()), - new Translator(ROLE_NAME, CommonPackage.eINSTANCE.getSecurityRole_RoleName()) - })); - - private static final Translator TRANS_ATTRIBUTE_TRANSLATOR = new Translator(TRANS_ATTRIBUTE, EJB_PKG.getMethodTransaction_TransactionAttribute()); - private static final Translator METHOD_ELEMENT_EJB_NAME_SOURCELINK_TRANSLATOR = new SourceLinkTranslator(EJB_NAME, EJB_PKG.getMethodElement_EnterpriseBean(), EJBJarTranslator.ENTERPRISE_BEAN_NAME_TRANSLATOR_PATH); - private static final Translator METHOD_NAME_TRANSLATOR = new Translator(METHOD_NAME, EJB_PKG.getMethodElement_Name()); - private static final Translator METHOD_PARAM_TRANSLATOR = new MethodParamsTranslator(EJB_PKG.getMethodElement_Parms()); - private static final Translator METHOD_ELEMENT_KIND_TRANSLATOR = new MethodElementKindTranslator(); - - public EJBJarTranslator() { - super(EJB_JAR, EJB_PKG.getEJBJar()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children13 == null) - children13 = create13Children(); - return children13; - default : - if (children14 == null) - children14 = create14Children(); - return children14; - } - } - - protected Translator[] create13Children() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(SMALL_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), - new Translator(LARGE_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), - new EnterpriseBeansTranslator(), - createRelationshipsTranslator13(), - createAssemblyDescriptorTranslator13(), - new Translator(EJB_CLIENT_JAR, EJB_PKG.getEJBJar_EjbClientJar()), - }; - } - - protected Translator[] create14Children() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(VERSION, EJB_PKG.getEJBJar_Version(), DOM_ATTRIBUTE), - new ConstantAttributeTranslator(XML_NS, J2EE_NS_URL), - new ConstantAttributeTranslator(XML_NS_XSI, XSI_NS_URL), - new ConstantAttributeTranslator(XSI_SCHEMA_LOCATION, J2EE_NS_URL+' '+EJB_JAR_SCHEMA_LOC_2_1), - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - new EnterpriseBeansTranslator(), - createRelationshipsTranslator14(), - createAssemblyDescriptorTranslator14(), - new Translator(EJB_CLIENT_JAR, EJB_PKG.getEJBJar_EjbClientJar()), - // CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getEJBJar_Extensions()) - }; - } - - public static Translator createRelationshipsTranslator13() { - GenericTranslator result = new GenericTranslator(RELATIONSHIPS, EJB_PKG.getEJBJar_RelationshipList()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, EJB_PKG.getRelationships_Description()), - createEJBRelationsTranslator13(), - }); - return result; - } - - private static Translator createEJBRelationsTranslator13() { - GenericTranslator result = new GenericTranslator(EJB_RELATION, EJB_PKG.getRelationships_EjbRelations()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, EJB_PKG.getEJBRelation_Description()), - EJB_RELATION_NAME_TRANSLATOR, - createEJBRelationshipRoleTranslator13(), - }); - return result; - } - - private static Translator createEJBRelationshipRoleTranslator13() { - GenericTranslator result = new GenericTranslator(EJB_RELATIONSHIP_ROLE, EJB_PKG.getEJBRelation_RelationshipRoles()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, EJB_PKG.getEJBRelationshipRole_Description()), - EJB_RELATIONSHIP_ROLE_NAME_TRANSLATOR, - MULTIPLICITY_TRANSLATOR, - CASCADE_DELETE_TRANSLATOR, - createRelationshipRoleSourceTranslator13(), - createCMRFieldTranslator13(), - }); - return result; - } - - private static Translator createRelationshipRoleSourceTranslator13() { - GenericTranslator result = new GenericTranslator(RELATIONSHIP_ROLE_SOURCE, EJB_PKG.getEJBRelationshipRole_Source()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, EJB_PKG.getRoleSource_Description()), - ROLE_SOURCE_EJB_NAME_SOURCELINK_TRANSLATOR, - }); - return result; - } - - private static Translator createCMRFieldTranslator13() { - GenericTranslator result = new GenericTranslator(CMR_FIELD, EJB_PKG.getEJBRelationshipRole_CmrField()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, EJB_PKG.getCMPAttribute_Description()), - CMR_FIELD_NAME_TRANSLATOR, - CMR_FIELD_TYPE_TRANSLATOR - }); - return result; - } - - - /** - * J2EE 1.4 Relationship - * - */ - public static Translator createRelationshipsTranslator14() { - GenericTranslator result = new GenericTranslator(RELATIONSHIPS, EJB_PKG.getEJBJar_RelationshipList()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(EJB_PKG.getRelationships_Descriptions()), - createEJBRelationsTranslator14(), - // CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getRelationships_Extensions()) - }); - return result; - } - - private static Translator createEJBRelationsTranslator14() { - GenericTranslator result = new GenericTranslator(EJB_RELATION, EJB_PKG.getRelationships_EjbRelations()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(EJB_PKG.getEJBRelation_Descriptions()), - EJB_RELATION_NAME_TRANSLATOR, - createEJBRelationshipRoleTranslator14(), - // CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getEJBRelation_Extensions()) - }); - return result; - } - - private static Translator createEJBRelationshipRoleTranslator14() { - GenericTranslator result = new GenericTranslator(EJB_RELATIONSHIP_ROLE, EJB_PKG.getEJBRelation_RelationshipRoles()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(EJB_PKG.getEJBRelationshipRole_Descriptions()), - EJB_RELATIONSHIP_ROLE_NAME_TRANSLATOR, - MULTIPLICITY_TRANSLATOR, - CASCADE_DELETE_TRANSLATOR, - createRelationshipRoleSourceTranslator14(), - createCMRFieldTranslator14(), - // CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getEJBRelationshipRole_Extensions()) - }); - return result; - } - - private static Translator createRelationshipRoleSourceTranslator14() { - GenericTranslator result = new GenericTranslator(RELATIONSHIP_ROLE_SOURCE, EJB_PKG.getEJBRelationshipRole_Source()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(EJB_PKG.getRoleSource_Descriptions()), - ROLE_SOURCE_EJB_NAME_SOURCELINK_TRANSLATOR - }); - return result; - } - - private static Translator createCMRFieldTranslator14() { - GenericTranslator result = new GenericTranslator(CMR_FIELD, EJB_PKG.getEJBRelationshipRole_CmrField()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(EJB_PKG.getCMPAttribute_Descriptions()), - CMR_FIELD_NAME_TRANSLATOR, - CMR_FIELD_TYPE_TRANSLATOR, - // CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getCMPAttribute_Extensions()) - }); - return result; - } - - /* - * <= J2EE 1.3 Assembly Descriptor - */ - public static Translator createAssemblyDescriptorTranslator13() { - GenericTranslator result = new GenericTranslator(ASSEMBLY_DESCRIPTOR, EJB_PKG.getEJBJar_AssemblyDescriptor()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - createSecurityRoleTranslator13(), - createMethodPermissionTranslator13(), - createMethodTransactionTranslator13(), - createExcludesListTranslator13(), - }); - return result; - } - - public static Translator createMethodPermissionTranslator13() { - GenericTranslator result = new GenericTranslator(METHOD_PERMISSION, EJB_PKG.getAssemblyDescriptor_MethodPermissions()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, EJB_PKG.getMethodPermission_Description()), - UNCHECKED_TRANSLATOR, - METHOD_PERMISSION_ROLE_NAME_SOURCELINK_TRANSLATOR, - createMethodElementTranslators13(EJB_PKG.getMethodPermission_MethodElements()) - }); - - return result; - } - - //TODO: NEED TO FIGURE OUT SECURITY PATH - public static Translator createSecurityRoleTranslator13() { - GenericTranslator result = new GenericTranslator(SECURITY_ROLE, EJB_PKG.getAssemblyDescriptor_SecurityRoles()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, CommonPackage.eINSTANCE.getSecurityRole_Description()), - SEC_ROLE_NAME_TRANSLATOR - }); - - return result; - } - - public static Translator createMethodTransactionTranslator13() { - GenericTranslator result = new GenericTranslator(CONTAINER_TRANSACTION, EJB_PKG.getAssemblyDescriptor_MethodTransactions()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, EJB_PKG.getMethodTransaction_Description()), - createMethodElementTranslators13(EJB_PKG.getMethodTransaction_MethodElements()), - TRANS_ATTRIBUTE_TRANSLATOR - }); - - return result; - } - - public static Translator createExcludesListTranslator13() { - GenericTranslator result = new GenericTranslator(EXCLUDE_LIST, EJB_PKG.getAssemblyDescriptor_ExcludeList()); - result.setChildren( new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, EJB_PKG.getExcludeList_Description()), - createMethodElementTranslators13(EJB_PKG.getExcludeList_MethodElements()) - }); - return result; - } - - public static Translator createMethodElementTranslators13(EStructuralFeature eFeature) { - GenericTranslator result = new GenericTranslator(METHOD, eFeature); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, EJB_PKG.getMethodElement_Description()), - METHOD_ELEMENT_EJB_NAME_SOURCELINK_TRANSLATOR, - METHOD_ELEMENT_KIND_TRANSLATOR, - METHOD_NAME_TRANSLATOR, - METHOD_PARAM_TRANSLATOR - }); - return result; - } - - - /* - * J2EE 1.4 Assembly Descriptor - */ - public static Translator createAssemblyDescriptorTranslator14() { - GenericTranslator result = new GenericTranslator(ASSEMBLY_DESCRIPTOR, EJB_PKG.getEJBJar_AssemblyDescriptor()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - createSecurityRoleTranslator14(), - createMethodPermissionTranslator14(), - createMethodTransactionTranslator14(), - CommonTranslators.createMessageDestinationTranslator(EJB_PKG.getAssemblyDescriptor_MessageDestinations()), - createExcludesListTranslator14(), - // CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getAssemblyDescriptor_Extensions()) - }); - return result; - } - - public static Translator createMethodPermissionTranslator14() { - GenericTranslator result = new GenericTranslator(METHOD_PERMISSION, EJB_PKG.getAssemblyDescriptor_MethodPermissions()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(EJB_PKG.getMethodPermission_Descriptions()), - UNCHECKED_TRANSLATOR, - METHOD_PERMISSION_ROLE_NAME_SOURCELINK_TRANSLATOR, - createMethodElementTranslators14(EJB_PKG.getMethodPermission_MethodElements()) - }); - - return result; - } - - //TODO: NEED TO FIGURE OUT SECURITY PATH - public static Translator createSecurityRoleTranslator14() { - GenericTranslator result = new GenericTranslator(SECURITY_ROLE, EJB_PKG.getAssemblyDescriptor_SecurityRoles()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(CommonPackage.eINSTANCE.getSecurityRole_Descriptions()), - SEC_ROLE_NAME_TRANSLATOR - }); - - return result; - } - - public static Translator createMethodTransactionTranslator14() { - GenericTranslator result = new GenericTranslator(CONTAINER_TRANSACTION, EJB_PKG.getAssemblyDescriptor_MethodTransactions()); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(EJB_PKG.getMethodTransaction_Descriptions()), - createMethodElementTranslators14(EJB_PKG.getMethodTransaction_MethodElements()), - TRANS_ATTRIBUTE_TRANSLATOR - }); - - return result; - } - - public static Translator createExcludesListTranslator14() { - GenericTranslator result = new GenericTranslator(EXCLUDE_LIST, EJB_PKG.getAssemblyDescriptor_ExcludeList()); - result.setChildren( new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(EJB_PKG.getExcludeList_Descriptions()), - createMethodElementTranslators14(EJB_PKG.getExcludeList_MethodElements()) - }); - return result; - } - - public static Translator createMethodElementTranslators14(EStructuralFeature eFeature) { - GenericTranslator result = new GenericTranslator(METHOD, eFeature); - result.setChildren( - new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createDescriptionTranslator(EJB_PKG.getMethodElement_Descriptions()), - METHOD_ELEMENT_EJB_NAME_SOURCELINK_TRANSLATOR, - METHOD_ELEMENT_KIND_TRANSLATOR, - METHOD_NAME_TRANSLATOR, - METHOD_PARAM_TRANSLATOR - }); - return result; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EnterpriseBeansTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EnterpriseBeansTranslator.java deleted file mode 100644 index eba27c161..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EnterpriseBeansTranslator.java +++ /dev/null @@ -1,87 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 27, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.MultiObjectTranslator; -import org.eclipse.wst.common.internal.emf.resource.ReadAheadHelper; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public class EnterpriseBeansTranslator extends MultiObjectTranslator implements EjbDeploymentDescriptorXmlMapperI { - public static final String ENTERPRISE_BEANS_PATH = ENTERPRISE_BEANS+'/'+ENTITY+','+SESSION+','+MESSAGE_DRIVEN; - private static final EjbPackage EJB_PKG = EjbPackage.eINSTANCE; - private static final SessionTranslator SESSION_TRANSLATOR = new SessionTranslator(); - private static final EntityTranslator BMP_TRANSLATOR = new EntityTranslator(); - private static final ContainerManagedEntityTranslator CMP_TRANSLATOR= new ContainerManagedEntityTranslator(); - private static final MessageDrivenTranslator MESSAGE_DRIVEN_TRANSLATOR = new MessageDrivenTranslator(); - private static Map delegates; - static { - delegates = new HashMap(7); - delegates.put(SESSION, SESSION_TRANSLATOR); - delegates.put(BEAN, BMP_TRANSLATOR); - delegates.put(CONTAINER, CMP_TRANSLATOR); - delegates.put(MESSAGE_DRIVEN, MESSAGE_DRIVEN_TRANSLATOR); - } - - /** - * @param domNameAndPath - * @param eClass - */ - public EnterpriseBeansTranslator() { - super(ENTERPRISE_BEANS_PATH, EJB_PKG.getEJBJar_EnterpriseBeans()); - addReadAheadHelper(new ReadAheadHelper(ENTITY, new String[] {BEAN, CONTAINER}, PERSISTENCE_TYPE )); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.MultiObjectTranslator#getDelegateFor(org.eclipse.emf.ecore.EObject) - */ - public Translator getDelegateFor(EObject o) { - switch (o.eClass().getClassifierID()) { - case EjbPackage.SESSION : - return SESSION_TRANSLATOR; - case EjbPackage.ENTITY: - return BMP_TRANSLATOR; - case EjbPackage.CONTAINER_MANAGED_ENTITY: - return CMP_TRANSLATOR; - case EjbPackage.MESSAGE_DRIVEN: - return MESSAGE_DRIVEN_TRANSLATOR; - } - throw new IllegalStateException("Bean type delegate expected"); //$NON-NLS-1$ - } - - public Translator getDelegateFor(String domName, String readAheadName) { - Translator result = null; - if (readAheadName != null) - result = (Translator) delegates.get(readAheadName); - else - result = (Translator) delegates.get(domName); - - if (result == null) - throw new IllegalStateException("Bean type delegate expected"); //$NON-NLS-1$ - - return result; - } - - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EntityTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EntityTranslator.java deleted file mode 100644 index ef05ac4a9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EntityTranslator.java +++ /dev/null @@ -1,118 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 31, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.jst.j2ee.internal.model.translator.common.BooleanTranslator; -import org.eclipse.jst.j2ee.internal.model.translator.common.JavaClassTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public class EntityTranslator extends AbstractEJBTranslator { - - private static Translator[] children13; - private static Translator[] children14; - - private class PersistenceTypeTranslator extends Translator { - - public PersistenceTypeTranslator() { - super(PERSISTENCE_TYPE, (EStructuralFeature) null); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#extractStringValue(org.eclipse.emf.ecore.EObject) - */ - public String extractStringValue(EObject emfObject) { - return getPersistenceType(); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#convertValueToString(java.lang.Object, org.eclipse.emf.ecore.EObject) - */ - public String convertValueToString(Object value, EObject owner) { - return getPersistenceType(); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getMOFChildren(org.eclipse.emf.ecore.EObject) - */ - public List getMOFChildren(EObject mofObject) { - return Collections.singletonList(getPersistenceType()); - } - - - } - - protected String getPersistenceType() { - return BEAN; - } - /** - * @param domNameAndPath - * @param aFeature - */ - public EntityTranslator() { - super(ENTERPRISE_BEANS + '/' + ENTITY); - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.internal.model.translator.ejb.AbstractEJBTranslator#getSpecificMaps() - */ - protected Translator[] getSpecificMaps(int versionID) { - Translator reentrantTranslator = null; - switch (versionID) { - case J2EE_1_2_ID : - case J2EE_1_3_ID : - reentrantTranslator = new Translator(REENTRANT, EJB_PKG.getEntity_Reentrant(), UNSET_IF_NULL); - break; - case J2EE_1_4_ID : - reentrantTranslator = new BooleanTranslator(REENTRANT, EJB_PKG.getEntity_Reentrant()); - default : - break; - } - return new Translator[] { new PersistenceTypeTranslator(), new JavaClassTranslator(PRIM_KEY_CLASS, EJB_PKG.getEntity_PrimaryKey()), reentrantTranslator }; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - return EjbFactory.eINSTANCE.createEntity(); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children13 == null) - children13 = create13Children(); - return children13; - default : - if (children14 == null) - children14 = create14Children(); - return children14; - } - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MessageDrivenDestinationTypeTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MessageDrivenDestinationTypeTranslator.java deleted file mode 100644 index 724902835..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MessageDrivenDestinationTypeTranslator.java +++ /dev/null @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 3, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import org.eclipse.emf.common.util.Enumerator; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author administrator - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class MessageDrivenDestinationTypeTranslator extends Translator implements EjbDeploymentDescriptorXmlMapperI { - protected static final EjbPackage EJB_PKG = EjbPackage.eINSTANCE; - public static final String JAVAX_JMS = "javax.jms."; //$NON-NLS-1$ - - - public MessageDrivenDestinationTypeTranslator() { - super(DESTINATION_TYPE, EJB_PKG.getMessageDrivenDestination_Type()); - } - - /** - * @see com.ibm.etools.emf2xml.impl.Translator#convertValueToString(java.lang.Object, org.eclipse.emf.ecore.EObject) - */ - public String convertValueToString(Object value, EObject owner) { - if (value != null){ - Enumerator enumerator = (Enumerator) value; - if (enumerator != null) - return JAVAX_JMS + enumerator.toString(); - } - return super.convertValueToString(value, owner); - } - - /** - * @see com.ibm.etools.emf2xml.impl.Translator#convertStringToValue(java.lang.String, org.eclipse.emf.ecore.EObject) - */ - public Object convertStringToValue(String strValue, EObject owner) { - String correct = strValue; - if (strValue != null) - correct = strValue.substring(JAVAX_JMS.length()); - return super.convertStringToValue(correct, owner); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MessageDrivenTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MessageDrivenTranslator.java deleted file mode 100644 index 8d9c762b7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MessageDrivenTranslator.java +++ /dev/null @@ -1,179 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 31, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.model.translator.common.JavaClassTranslator; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class MessageDrivenTranslator extends AbstractEJBTranslator { - private static Translator[] children13; - private static Translator[] children14; - - private static Translator TRANSACTION_TYPE_XLATOR = new Translator(TRANSACTION_TYPE, EJB_PKG.getMessageDriven_TransactionType()); - - /** - * @param domNameAndPath - * @param aFeature - */ - public MessageDrivenTranslator() { - super(ENTERPRISE_BEANS+'/'+MESSAGE_DRIVEN); - } - - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.internal.model.translator.ejb.AbstractEJBTranslator#getSpecificMaps() - */ - protected Translator[] getSpecificMaps(int versionID) { - switch (versionID) { - case J2EE_1_4_ID: - return getSpecificMaps14(); - default: - return getSpecificMaps13(); - } - } - - protected Translator[] getSpecificMaps13() { - - return new Translator[] { - TRANSACTION_TYPE_XLATOR, - - //EJB 2.0 PATH - new Translator(MESSAGE_SELECTOR, EJB_PKG.getMessageDriven_MessageSelector()), - new AcknowledgeModeTranslator(), - createMessageDrivenDestinationTranslator(), - - }; - } - - protected Translator[] getSpecificMaps14() { - - return new Translator[] { - //EJB 2.1 Only - new JavaClassTranslator(MESSAGING_TYPE, EJB_PKG.getMessageDriven_MessagingType()), - //Both - TRANSACTION_TYPE_XLATOR, - //EJB 2.1 PATH - new JavaClassTranslator(MESSAGE_DEST_TYPE, EJB_PKG.getMessageDriven_MessageDestination()), - new Translator(MESSAGE_DEST_LINK, EJB_PKG.getMessageDriven_Link()), - createActivationConfigurationMaps(), - }; - } - - - /** - * @return - */ - private Translator createActivationConfigurationMaps() { - GenericTranslator result = new GenericTranslator(ACTIVATION_CONF, EJB_PKG.getMessageDriven_ActivationConfig()); - result.setChildren(new Translator[]{ - CommonTranslators.createDescriptionTranslator(EJB_PKG.getActivationConfig_Descriptions()), - createActivationConfigPropertiesMap(), - // CommonTranslators.createDeploymentExtensionTranslator(EJB_PKG.getActivationConfig_Extensions()) - }); - - return result; - } - - - /** - * @return - */ - private Translator createActivationConfigPropertiesMap() { - GenericTranslator result = new GenericTranslator(ACTIVATION_CONF_PROPERTY, EJB_PKG.getActivationConfig_ConfigProperties()); - result.setChildren(new Translator[] { - new Translator(ACTIVATION_CONF_PROPERTY_NAME, EJB_PKG.getActivationConfigProperty_Name()), - new Translator(ACTIVATION_CONF_PROPERTY_VALUE, EJB_PKG.getActivationConfigProperty_Value()) - }); - return result; - } - - - /** - * @return - */ - protected Translator createMessageDrivenDestinationTranslator() { - GenericTranslator result = new GenericTranslator(MESSAGE_DRIVEN_DESTINATION,EJB_PKG.getMessageDriven_Destination()); - result.setChildren( new Translator[]{ - new MessageDrivenDestinationTypeTranslator(), - new Translator(SUBSCRIPTION_DURABILITY, EJB_PKG.getMessageDrivenDestination_SubscriptionDurability()) - }); - return result; - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children13 == null) - children13 = create13Children(); - return children13; - default : - if (children14 == null) - children14 = create14Children(); - return children14; - } - } - - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - return EjbFactory.eINSTANCE.createMessageDriven(); - } - - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.internal.model.translator.ejb.AbstractEJBTranslator#getEndMaps13() - */ - protected Translator[] getEndMaps13() { - return new Translator[] { - CommonTranslators.JNDI_REF_GROUP_ENV_ENTRY_1_3, - CommonTranslators.JNDI_REF_GROUP_EJB_REF_1_3, - CommonTranslators.JNDI_REF_GROUP_EJB_LOCAL_REF_1_3, - new SecurityIdentityTranslator(), - CommonTranslators.JNDI_REF_GROUP_RESOURCE_REF_1_3, - CommonTranslators.JNDI_REF_GROUP_RESOURCE_ENV_REF_1_3 - }; - } - - protected Translator[] getEndMaps14() { - return new Translator[] { - CommonTranslators.JNDI_REF_GROUP_ENV_ENTRY_1_4, - CommonTranslators.JNDI_REF_GROUP_EJB_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_EJB_LOCAL_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_SERVICE_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_RESOURCE_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_RESOURCE_ENV_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_MESSAGE_DEST_REF_1_4, - new SecurityIdentityTranslator(), - }; - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.internal.model.translator.ejb.AbstractEJBTranslator#usesHomeRemoteAttributes() - */ - protected boolean usesHomeRemoteAttributes() { - return false; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MethodElementKindTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MethodElementKindTranslator.java deleted file mode 100644 index 668735ab5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MethodElementKindTranslator.java +++ /dev/null @@ -1,74 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.ejb.MethodElementKind; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class MethodElementKindTranslator extends Translator implements EjbDeploymentDescriptorXmlMapperI { - private static final EjbPackage EJB_PKG = EjbPackage.eINSTANCE; - /** - * @param domNameAndPath - * @param eClass - */ - public MethodElementKindTranslator(){ - super(METHOD_INTF, EJB_PKG.getMethodElement_Type()); - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#convertStringToValue(java.lang.String, org.eclipse.emf.ecore.EObject) - */ - public Object convertStringToValue(String strValue, EObject owner) { - Object obj = super.convertStringToValue(strValue, owner); - if(obj != null) - return obj; - String correct = strValue; - if (strValue.equalsIgnoreCase("HOME")) //$NON-NLS-1$ - correct = "Home"; //$NON-NLS-1$ - else if (strValue.equalsIgnoreCase("REMOTE")) //$NON-NLS-1$ - correct = "Remote"; //$NON-NLS-1$ - else if (strValue.equalsIgnoreCase("LOCALHOME")) //$NON-NLS-1$ - correct = "LocalHome"; //$NON-NLS-1$ - else if (strValue.equalsIgnoreCase("LOCAL")) //$NON-NLS-1$ - correct = "Local"; //$NON-NLS-1$ - return super.convertStringToValue(correct, owner); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#isSetMOFValue(org.eclipse.emf.ecore.EObject) - */ - public boolean isSetMOFValue(EObject emfObject) { - if (((MethodElement)emfObject).getType() == MethodElementKind.UNSPECIFIED_LITERAL) - return false; - return super.isSetMOFValue(emfObject); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getMOFChildren(org.eclipse.emf.ecore.EObject) - */ - public List getMOFChildren(EObject mofObject) { - List result = super.getMOFChildren(mofObject); - if(result != null && result.size() > 0) { - MethodElementKind methodIntf = (MethodElementKind) result.get(0); - if(methodIntf.getValue() == MethodElementKind.UNSPECIFIED) - result = Collections.EMPTY_LIST; - } - return result; - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MethodParamsTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MethodParamsTranslator.java deleted file mode 100644 index 988252fb8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MethodParamsTranslator.java +++ /dev/null @@ -1,103 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 2, 2003 - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import java.util.List; - -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.MethodElement; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author dfholttp - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class MethodParamsTranslator extends Translator implements EjbDeploymentDescriptorXmlMapperI{ - protected static final EjbPackage EJB_PKG = EjbPackage.eINSTANCE; - - //private EStructuralFeature eFeature; - - public MethodParamsTranslator(EStructuralFeature eFeature) { - super(METHOD_PARAMS+'/'+METHOD_PARAM , eFeature); - //this.eFeature = eFeature; - this.fStyle |= Translator.EMPTY_CONTENT_IS_SIGNIFICANT; - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#isMultiValued() - */ - public boolean isMultiValued() { - return true; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getMOFChildren(org.eclipse.emf.ecore.EObject) - */ - public List getMOFChildren(EObject mofObject) { - return ((MethodElement)mofObject).getMethodParams(); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#setMOFValue(org.eclipse.emf.ecore.EObject, java.lang.Object) - */ - public void setMOFValue(EObject mofObject, Object value) { - List methodParams = ((MethodElement)mofObject).getMethodParams(); - - if(value == null || value.toString().length() == 0) { - if(methodParams == null || methodParams.size() == 0 ) { - setMOFValueFromEmptyDOMPath(mofObject); - } - } else { - ((MethodElement)mofObject).addMethodParams((String)value); - } - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#setMOFValue(org.eclipse.emf.common.notify.Notifier, java.lang.Object, int) - */ - public void setMOFValue(Notifier owner, Object value, int newIndex) { - ((MethodElement)owner).addMethodParams((String)value); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#clearList(org.eclipse.emf.ecore.EObject) - */ - public void clearList(EObject mofObject) { - ((MethodElement)mofObject).eUnset(feature); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#shouldRenderEmptyDOMPath(org.eclipse.emf.ecore.EObject) - */ - public boolean shouldRenderEmptyDOMPath(EObject eObject) { - MethodElement me = ((MethodElement)eObject); - return me.hasMethodParams() && me.getMethodParams().isEmpty(); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#setMOFValueFromEmptyDOMPath(org.eclipse.emf.ecore.EObject) - */ - public void setMOFValueFromEmptyDOMPath(EObject eObject) { - ((MethodElement)eObject).applyZeroParams(); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MultiplicityTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MultiplicityTranslator.java deleted file mode 100644 index ddd1b5bf3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MultiplicityTranslator.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 2, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author administrator - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class MultiplicityTranslator extends Translator implements EjbDeploymentDescriptorXmlMapperI{ - - public MultiplicityTranslator(){ - super(MULTIPLICITY,EjbPackage.eINSTANCE.getEJBRelationshipRole_Multiplicity()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#convertStringToValue(java.lang.String, org.eclipse.emf.ecore.EObject) - */ - public Object convertStringToValue(String strValue, EObject owner) { - String correct = strValue; - if (strValue.toUpperCase().equals("ONE")) //$NON-NLS-1$ - correct = "One"; //$NON-NLS-1$ - else if (strValue.toUpperCase().equals("MANY")) //$NON-NLS-1$ - correct = "Many"; //$NON-NLS-1$ - - return super.convertStringToValue(correct, owner); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/PrimKeyFieldTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/PrimKeyFieldTranslator.java deleted file mode 100644 index 20d3124e6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/PrimKeyFieldTranslator.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 3, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.SourceLinkTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; -import org.eclipse.wst.common.internal.emf.resource.TranslatorPath; - -/** - * @author jlanuti - */ -public class PrimKeyFieldTranslator extends SourceLinkTranslator implements EjbDeploymentDescriptorXmlMapperI { - - /** - * @param domNameAndPath - * @param eClass - * @param TranslatorPath - */ - public PrimKeyFieldTranslator() { - super(PRIMKEY_FIELD, EjbPackage.eINSTANCE.getContainerManagedEntity_PrimKeyField(),new TranslatorPath( - new Translator[] { - new Translator(CMP_FIELD, EjbPackage.eINSTANCE.getContainerManagedEntity_PersistentAttributes()), - new Translator(FIELD_NAME, EcorePackage.eINSTANCE.getENamedElement_Name()) - })); - } - - protected String getSpecifiedPrimKeyFieldName(ContainerManagedEntity cmp) { - return cmp.getPrimKeyField().getName(); - } - - /** - * @see com.ibm.etools.emf2xml.impl.Translator#convertStringToValue(java.lang.String, org.eclipse.emf.ecore.EObject) - */ - public Object convertStringToValue(String strValue, EObject owner) { - // try and convert the string to a cmp attribute, otherwise create a proxy - Object result = super.convertStringToValue(strValue, owner); - if (result == null || result == strValue /*reference check is valid here*/) { - result = EjbFactory.eINSTANCE.createCMPAttribute(); - if (strValue == null) strValue = "";//$NON-NLS-1$ - ((InternalEObject)result).eSetProxyURI(URI.createURI(strValue)); - } - return result; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/SecurityIdentityTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/SecurityIdentityTranslator.java deleted file mode 100644 index c219b7700..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/SecurityIdentityTranslator.java +++ /dev/null @@ -1,106 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Apr 1, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CommonFactory; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity; -import org.eclipse.jst.j2ee.common.SecurityIdentity; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.xml.EjbDeploymentDescriptorXmlMapperI; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.ReadAheadHelper; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public class SecurityIdentityTranslator extends Translator implements EjbDeploymentDescriptorXmlMapperI { - private static final CommonPackage COMMON_PKG = CommonPackage.eINSTANCE; - - private static final Translator[] RUN_AS_TRANSLATORS = createRunAsTranslators(); - - private static final Translator[] USE_CALLER_TRANSLATORS = createUseCallerTranslators(); - - - private static Translator[] createRunAsTranslators() { - GenericTranslator runAsTranslator = new GenericTranslator(RUN_AS, COMMON_PKG.getRunAsSpecifiedIdentity_Identity()); - runAsTranslator.setChildren(new Translator[] { - new Translator(DESCRIPTION, COMMON_PKG.getIdentity_Description()), - new Translator(ROLE_NAME, COMMON_PKG.getIdentity_RoleName()) - }); - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getSecurityIdentity_Description()), - runAsTranslator - }; - } - - private static Translator[] createUseCallerTranslators() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getSecurityIdentity_Description()), - new Translator(USE_CALLER_IDENTITY, null, EMPTY_TAG) - }; - } - - /** - * @param domNameAndPath - * @param aFeature - */ - public SecurityIdentityTranslator() { - super(SECURITY_IDENTITY, EjbPackage.eINSTANCE.getEnterpriseBean_SecurityIdentity()); - addReadAheadHelper(new ReadAheadHelper(SECURITY_IDENTITY, new String[] {RUN_AS, USE_CALLER_IDENTITY}, null)); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - if (o == null) - return CommonTranslators.EMPTY_CHILDREN; - if (((SecurityIdentity)o).isRunAsSpecifiedIdentity()) - return RUN_AS_TRANSLATORS; - else if (((SecurityIdentity)o).isUseCallerIdentity()) - return USE_CALLER_TRANSLATORS; - else - throw new IllegalStateException("Internal error: Security Identity Type expected"); //$NON-NLS-1$ - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - CommonFactory fact = CommonFactory.eINSTANCE; - if (RUN_AS.equals(readAheadName)) { - RunAsSpecifiedIdentity result = fact.createRunAsSpecifiedIdentity(); - result.setIdentity(fact.createIdentity()); - return result; - } else if (USE_CALLER_IDENTITY.equals(readAheadName)) - return fact.createUseCallerIdentity(); - else - return null; - } - - public boolean isManagedByParent() { - return false; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/SessionTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/SessionTranslator.java deleted file mode 100644 index 853d4c372..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/SessionTranslator.java +++ /dev/null @@ -1,92 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 31, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.ejb; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.ejb.EjbFactory; -import org.eclipse.jst.j2ee.internal.model.translator.common.JavaClassTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public class SessionTranslator extends AbstractEJBTranslator { - - private static Translator[] children13; - private static Translator[] children14; - /** - * @param domNameAndPath - * @param aFeature - */ - public SessionTranslator() { - super(ENTERPRISE_BEANS+'/'+SESSION); - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.internal.model.translator.ejb.AbstractEJBTranslator#getSpecificMaps() - */ - protected Translator[] getSpecificMaps(int versionID) { - return new Translator[] { - new Translator(SESSION_TYPE, EJB_PKG.getSession_SessionType(), UNSET_IF_NULL), //Enumeration - new Translator(TRANSACTION_TYPE, EJB_PKG.getSession_TransactionType(), UNSET_IF_NULL) //Enumeration - }; - } - - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.internal.model.translator.ejb.AbstractEJBTranslator#getEJBClassMap() - * - * Support 1.4 and 1.3 - */ - protected Translator[] getEJBClassMap() { - return new Translator[] { - //J2EE 1.4 - new JavaClassTranslator(SERVICE_ENDPOINT,EJB_PKG.getSession_ServiceEndpoint()), - //J2EE 1.3 - new JavaClassTranslator(EJB_CLASS, EJB_PKG.getEnterpriseBean_EjbClass()) - }; - - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - return EjbFactory.eINSTANCE.createSession(); - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children13 == null) - children13 = create13Children(); - return children13; - default : - if (children14 == null) - children14 = create14Children(); - return children14; - } - } - - - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/ErrorPageTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/ErrorPageTranslator.java deleted file mode 100644 index 45c05770f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/ErrorPageTranslator.java +++ /dev/null @@ -1,76 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 21, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.webapplication; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.model.translator.common.JavaClassTranslator; -import org.eclipse.jst.j2ee.internal.xml.WarDeploymentDescriptorXmlMapperI; -import org.eclipse.jst.j2ee.webapplication.ErrorPage; -import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.wst.common.internal.emf.resource.ReadAheadHelper; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public class ErrorPageTranslator extends Translator implements WarDeploymentDescriptorXmlMapperI { - private static Translator[] ERROR_CODE_XLATORS = new Translator[] { - new Translator(ERROR_CODE, WebapplicationPackage.eINSTANCE.getErrorCodeErrorPage_ErrorCode()), - new Translator(LOCATION, WebapplicationPackage.eINSTANCE.getErrorPage_Location()) - }; - private static Translator[] EXCEPTION_TYPE_XLATORS = new Translator[] { - new JavaClassTranslator(EXCEPTION_TYPE, WebapplicationPackage.eINSTANCE.getExceptionTypeErrorPage_ExceptionType()), - new Translator(LOCATION, WebapplicationPackage.eINSTANCE.getErrorPage_Location()) - }; - - public ErrorPageTranslator() { - super(ERROR_PAGE, WebapplicationPackage.eINSTANCE.getWebApp_ErrorPages()); - addReadAheadHelper(new ReadAheadHelper(ERROR_PAGE, new String[] {ERROR_CODE, EXCEPTION_TYPE}, null)); - - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - WebapplicationFactory fact = WebapplicationPackage.eINSTANCE.getWebapplicationFactory(); - if (ERROR_CODE.equals(readAheadName)) - return fact.createErrorCodeErrorPage(); - else if (EXCEPTION_TYPE.equals(readAheadName)) - return fact.createExceptionTypeErrorPage(); - else - return null; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - if (o == null) - return CommonTranslators.EMPTY_CHILDREN; - if (((ErrorPage)o).isErrorCode()) - return ERROR_CODE_XLATORS; - else if (((ErrorPage)o).isExceptionType()) - return EXCEPTION_TYPE_XLATORS; - else - throw new IllegalStateException("Internal error: ErrorCode expected"); //$NON-NLS-1$ - } - - public boolean isManagedByParent() { - return false; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/WebAppTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/WebAppTranslator.java deleted file mode 100644 index 86a64527c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/WebAppTranslator.java +++ /dev/null @@ -1,548 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 18, 2003 - */ -package org.eclipse.jst.j2ee.internal.model.translator.webapplication; - - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.model.translator.common.BooleanTranslator; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.model.translator.common.EnvEntryTranslator; -import org.eclipse.jst.j2ee.internal.model.translator.common.JavaClassTranslator; -import org.eclipse.jst.j2ee.internal.xml.WarDeploymentDescriptorXmlMapperI; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.wst.common.internal.emf.resource.ConstantAttributeTranslator; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.RootTranslator; -import org.eclipse.wst.common.internal.emf.resource.SourceLinkTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; -import org.eclipse.wst.common.internal.emf.resource.TranslatorPath; - - -/** - * @author schacher - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class WebAppTranslator extends RootTranslator implements WarDeploymentDescriptorXmlMapperI, J2EEConstants { - private static WebapplicationPackage WEBAPP_PKG = WebapplicationPackage.eINSTANCE; - private static CommonPackage COMMON_PKG = CommonPackage.eINSTANCE; - private static JspPackage JSP_PKG = JspPackage.eINSTANCE; - public static WebAppTranslator INSTANCE = new WebAppTranslator(); - private static Translator[] children13; - private static Translator[] children14; - - private static final Translator SERVLET_MAPPING_TRANSLATOR = createServletMappingTranslator(); - private static final Translator SESSION_CONFIG_TRANSLATOR = createSessionConfigTranslator(); - private static final Translator WELCOMEFILE_TRANSLATOR = createFileListTranslator(); - private static final Translator MIME_MAPPING_TRANSLATOR = createMimeMappingTranslator(); - private static final Translator ERROR_PAGE_TRANSLATOR = new ErrorPageTranslator(); - private static final Translator LOGIN_CONFIG_TRANSLATOR = createLoginConfigTranslator(); - private static final Translator DISTRIBUTABLE_TRANSLATOR = new Translator(DISTRIBUTABLE, WEBAPP_PKG.getWebApp_Distributable(), EMPTY_TAG); - - private static final Translator WEB_RESOURCE_NAME_TRANSLATOR = new Translator(WEB_RESOURCE_NAME, WEBAPP_PKG.getWebResourceCollection_WebResourceName()); - private static final Translator URL_PATTERN_TRANSLATOR = new Translator(URL_PATTERN, WEBAPP_PKG.getWebResourceCollection_UrlPattern()); - private static final Translator HTTP_METHOD_TRANSLATOR = new Translator(HTTP_METHOD, WEBAPP_PKG.getWebResourceCollection_HttpMethod()); - - private static final Translator ROLE_NAME_TRANSLATOR = new Translator(ROLE_NAME, WEBAPP_PKG.getAuthConstraint_Roles()); - private static final Translator TRANSPORT_GUARANTEE_TRANSLATOR = new Translator(TRANSPORT_GUARANTEE, WEBAPP_PKG.getUserDataConstraint_TransportGuarantee()); - - - protected WebAppTranslator() { - super(WEB_APP, WEBAPP_PKG.getWebApp()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children13 == null) - children13 = create13Children(); - return children13; - default : - if (children14 == null) - children14 = create14Children(); - return children14; - } - } - - - protected Translator[] create13Children() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(SMALL_ICON_PATH, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), - new Translator(LARGE_ICON_PATH, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - DISTRIBUTABLE_TRANSLATOR, - createContextParam13Translator(), - createFilter13Translator(), - createFilterMapping13Translator(), - createListener13Translator(), - createServlet13Translator(), - SERVLET_MAPPING_TRANSLATOR, - SESSION_CONFIG_TRANSLATOR, - MIME_MAPPING_TRANSLATOR, - WELCOMEFILE_TRANSLATOR, - ERROR_PAGE_TRANSLATOR, - createTagLibTranslator13(WEBAPP_PKG.getWebApp_TagLibs()), - CommonTranslators.JNDI_REF_GROUP_RESOURCE_ENV_REF_1_3, - CommonTranslators.JNDI_REF_GROUP_RESOURCE_REF_1_3, - createSecurityConstraintTranslator13(), - LOGIN_CONFIG_TRANSLATOR, - CommonTranslators.createSecurityRoleTranslator13(WEBAPP_PKG.getWebApp_SecurityRoles()), - new EnvEntryTranslator(COMMON_PKG.getJNDIEnvRefsGroup_EnvironmentProperties(), false, false), - CommonTranslators.JNDI_REF_GROUP_EJB_REF_1_3, - CommonTranslators.JNDI_REF_GROUP_EJB_LOCAL_REF_1_3 - }; - } - - - protected Translator[] create14Children() { - Translator[] begin = new Translator[] { - IDTranslator.INSTANCE, - new Translator(VERSION, WEBAPP_PKG.getWebApp_Version(), DOM_ATTRIBUTE), - new ConstantAttributeTranslator(XML_NS, J2EE_NS_URL), - new ConstantAttributeTranslator(XML_NS_XSI, XSI_NS_URL), - new ConstantAttributeTranslator(XSI_SCHEMA_LOCATION, J2EE_NS_URL+' '+WEB_APP_SCHEMA_LOC_2_4), - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - DISTRIBUTABLE_TRANSLATOR, - CommonTranslators.createParamValueType(CONTEXT_PARAM, WEBAPP_PKG.getWebApp_ContextParams()), - createFilter14Translator(), - createFilterMapping14Translator(), - createListener14Translator(), - createServlet14Translator(), - SERVLET_MAPPING_TRANSLATOR, - SESSION_CONFIG_TRANSLATOR, - MIME_MAPPING_TRANSLATOR, - WELCOMEFILE_TRANSLATOR, - ERROR_PAGE_TRANSLATOR, - createJSPConfigTranslators(), - createSecurityConstraintTranslators14(), - LOGIN_CONFIG_TRANSLATOR, - CommonTranslators.createSecurityRoleTranslator14(WEBAPP_PKG.getWebApp_SecurityRoles()) - }; - Translator[] end = new Translator[] { - CommonTranslators.createMessageDestinationTranslator(WEBAPP_PKG.getWebApp_MessageDestinations()), - createLocaleEncodingMappingListTranslator(), - // CommonTranslators.createDeploymentExtensionTranslator(WEBAPP_PKG.getWebApp_Extensions()) - }; - - - return (Translator[])concat(begin,concat(createJNDIEnvironmentRefsGroupTranslator(), end)); - } - - public static Translator createSecurityConstraintTranslators14() { - GenericTranslator result = new GenericTranslator(SECURITY_CONSTRAINT, WEBAPP_PKG.getWebApp_Constraints()); - result.setChildren(new Translator[] { - CommonTranslators.createDisplayNameTranslator(WEBAPP_PKG.getSecurityConstraint_DisplayNames()), - createWebResourceCollectionTranslator14(), - createAuthConstraintTranslator14(), - createUserDataConstraintTranslator14(), - }); - return result; - } - - private static Translator createWebResourceCollectionTranslator14() { - GenericTranslator result = new GenericTranslator(WEB_RESOURCE_COLLECTION, WEBAPP_PKG.getSecurityConstraint_WebResourceCollections()); - result.setChildren(new Translator[] { - WEB_RESOURCE_NAME_TRANSLATOR, - CommonTranslators.createDescriptionTranslator(WEBAPP_PKG.getWebResourceCollection_Descriptions()), - URL_PATTERN_TRANSLATOR, - HTTP_METHOD_TRANSLATOR - }); - return result; - } - - private static Translator createAuthConstraintTranslator14() { - GenericTranslator result = new GenericTranslator(AUTH_CONSTRAINT, WEBAPP_PKG.getSecurityConstraint_AuthConstraint()); - result.setChildren(new Translator[] { - CommonTranslators.createDescriptionTranslator(WEBAPP_PKG.getAuthConstraint_Descriptions()), - ROLE_NAME_TRANSLATOR - }); - return result; - } - - private static Translator createUserDataConstraintTranslator14() { - GenericTranslator result = new GenericTranslator(USER_DATA_CONSTRAINT, WEBAPP_PKG.getSecurityConstraint_UserDataConstraint()); - result.setChildren(new Translator[] { - CommonTranslators.createDescriptionTranslator(WEBAPP_PKG.getUserDataConstraint_Descriptions()), - TRANSPORT_GUARANTEE_TRANSLATOR - }); - return result; - } - - - private Translator createJSPConfigTranslators() { - GenericTranslator result = new GenericTranslator(JSP_CONFIG, WEBAPP_PKG.getWebApp_JspConfig()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createTagLibTranslator14(JSP_PKG.getJSPConfig_TagLibs()), - createJSPPropertyGroupTranslator() - }); - - return result; - } - - - /** - * @return - */ - private Translator createJSPPropertyGroupTranslator() { - GenericTranslator result = new GenericTranslator(JSP_PROPERTY_GROUP, JSP_PKG.getJSPConfig_PropertyGroups()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - new Translator(URL_PATTERN, JSP_PKG.getJSPPropertyGroup_UrlPattern()), - new BooleanTranslator(EL_IGNORED, JSP_PKG.getJSPPropertyGroup_ElIgnored()), - new Translator(PAGE_ENCODING, JSP_PKG.getJSPPropertyGroup_PageEncoding()), - new BooleanTranslator(SCRIPTING_INVALID, JSP_PKG.getJSPPropertyGroup_ScriptingInvalid()), - new BooleanTranslator(IS_XML,JSP_PKG.getJSPPropertyGroup_IsXML()), - new Translator(INCLUDE_PRELUDE, JSP_PKG.getJSPPropertyGroup_IncludePreludes()), - new Translator(INCLUDE_CODA, JSP_PKG.getJSPPropertyGroup_IncludeCodas()) - }); - return result; - } - - - private Translator createLocaleEncodingMappingListTranslator() { - GenericTranslator result = new GenericTranslator(LOCALE_ENCODING_MAPPING_LIST, WEBAPP_PKG.getWebApp_LocalEncodingMappingList()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - createLocaleEncodingMapping() - }); - return result; - - } - - - /** - * @return - */ - private Translator createLocaleEncodingMapping() { - GenericTranslator result = new GenericTranslator(LOCALE_ENCODING_MAPPING, WEBAPP_PKG.getLocalEncodingMappingList_LocalEncodingMappings()); - result.setChildren(new Translator[] { - new Translator(LOCALE, WEBAPP_PKG.getLocalEncodingMapping_Locale()), - new Translator(ENCODING, WEBAPP_PKG.getLocalEncodingMapping_Encoding()) - }); - return result; - - } - - - /** - * @return - */ - private Translator[] createJNDIEnvironmentRefsGroupTranslator() { - return new Translator[] { - CommonTranslators.JNDI_REF_GROUP_ENV_ENTRY_1_4, - CommonTranslators.JNDI_REF_GROUP_EJB_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_EJB_LOCAL_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_SERVICE_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_RESOURCE_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_RESOURCE_ENV_REF_1_4, - CommonTranslators.JNDI_REF_GROUP_MESSAGE_DEST_REF_1_4 - }; - } - - - /** - * @return - */ - private Translator createFilterMapping14Translator() { - Translator dispatcher = new Translator(DISPATCHER, WEBAPP_PKG.getFilterMapping_DispatcherType()); - return GenericTranslator.appendChild((GenericTranslator)createFilterMapping13Translator(),dispatcher); - } - - public static Translator createContextParam13Translator() { - GenericTranslator result = new GenericTranslator(CONTEXT_PARAM, WEBAPP_PKG.getWebApp_Contexts()); - result.setChildren(new Translator[] { - new Translator(PARAM_NAME, WEBAPP_PKG.getContextParam_ParamName()), - new Translator(PARAM_VALUE, WEBAPP_PKG.getContextParam_ParamValue()), - new Translator(DESCRIPTION, WEBAPP_PKG.getContextParam_Description()), - }); - return result; - } - - public static Translator createFilter13Translator() { - GenericTranslator result = new GenericTranslator(FILTER, WEBAPP_PKG.getWebApp_Filters()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(SMALL_ICON_PATH, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), - new Translator(LARGE_ICON_PATH, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), - new Translator(FILTER_NAME, WEBAPP_PKG.getFilter_Name(), - new TranslatorPath(new Translator[] { - new Translator(WEB_APP, Translator.CONTAINER_FEATURE), - new Translator(FILTER_MAPPING, WEBAPP_PKG.getWebApp_FilterMappings()), - })), - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new JavaClassTranslator(FILTER_CLASS, WEBAPP_PKG.getFilter_FilterClass()), - createInitParamTranslator(WEBAPP_PKG.getFilter_InitParams()) - }); - return result; - } - - - public static Translator createFilter14Translator() { - GenericTranslator result = new GenericTranslator(FILTER, WEBAPP_PKG.getWebApp_Filters()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - new Translator(FILTER_NAME, WEBAPP_PKG.getFilter_Name(), - //TODO: Make sure the path is still valid - new TranslatorPath(new Translator[] { - new Translator(WEB_APP, Translator.CONTAINER_FEATURE), - new Translator(FILTER_MAPPING, WEBAPP_PKG.getWebApp_FilterMappings()), - })), - new JavaClassTranslator(FILTER_CLASS, WEBAPP_PKG.getFilter_FilterClass()), - CommonTranslators.createParamValueType(INIT_PARAM,WEBAPP_PKG.getFilter_InitParamValues()) - }); - return result; - } - - public static Translator createFilterMapping13Translator() { - GenericTranslator result = new GenericTranslator(FILTER_MAPPING, WEBAPP_PKG.getWebApp_FilterMappings()); - result.setChildren(new Translator[] { - new SourceLinkTranslator(FILTER_NAME, WEBAPP_PKG.getFilterMapping_Filter(), - new TranslatorPath(new Translator[] { - new Translator(WEB_APP, Translator.CONTAINER_FEATURE), - new Translator(FILTER, WEBAPP_PKG.getWebApp_Filters()), - new Translator(FILTER_MAPPING, WEBAPP_PKG.getFilter_Name()) - })), - new Translator(URL_PATTERN, WEBAPP_PKG.getFilterMapping_UrlPattern()), - new SourceLinkTranslator(SERVLET_NAME, WEBAPP_PKG.getFilterMapping_Servlet(), - new TranslatorPath(new Translator[] { - new Translator(WEB_APP, Translator.CONTAINER_FEATURE), - new Translator(SERVLET, WEBAPP_PKG.getWebApp_Servlets()), - new Translator(SERVLET_NAME, WEBAPP_PKG.getServlet_ServletName()) - }), Translator.STRING_RESULT_OK), - }); - return result; - } - - public static Translator createInitParamTranslator(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(INIT_PARAM, feature); - result.setChildren(new Translator[] { - new Translator(PARAM_NAME, WEBAPP_PKG.getInitParam_ParamName()), - new Translator(PARAM_VALUE, WEBAPP_PKG.getInitParam_ParamValue()), - new Translator(DESCRIPTION, WEBAPP_PKG.getInitParam_Description()), - }); - return result; - } - - public static Translator createListener13Translator() { - GenericTranslator result = new GenericTranslator(LISTENER, WEBAPP_PKG.getWebApp_Listeners()); - result.setChildren(new Translator[] { - CommonTranslators.LISTENER_CLASS_TRANSLATOR - }); - return result; - } - - public static Translator createListener14Translator() { - GenericTranslator result = new GenericTranslator(LISTENER, WEBAPP_PKG.getWebApp_Listeners()); - result.setChildren(new Translator[] { - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - CommonTranslators.LISTENER_CLASS_TRANSLATOR - }); - return result; - } - - public static Translator createServlet13Translator() { - GenericTranslator result = new GenericTranslator(SERVLET, WEBAPP_PKG.getWebApp_Servlets()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(SMALL_ICON_PATH, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), - new Translator(LARGE_ICON_PATH, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), - new Translator(SERVLET_NAME, WEBAPP_PKG.getServlet_ServletName(), - new TranslatorPath[] { - new TranslatorPath(new Translator[] { - new Translator(WEB_APP, WEBAPP_PKG.getServlet_WebApp()), - new Translator(SERVLET_MAPPING, WEBAPP_PKG.getWebApp_ServletMappings()), - }), - new TranslatorPath(new Translator[] { - new Translator(WEB_APP, WEBAPP_PKG.getServlet_WebApp()), - new Translator(FILTER_MAPPING, WEBAPP_PKG.getWebApp_FilterMappings()), - }), - }), - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new WebTypeTranslator(), //servlet-class or jsp-file - createInitParamTranslator(WEBAPP_PKG.getServlet_Params()), - new Translator(LOAD_ON_STARTUP, WEBAPP_PKG.getServlet_LoadOnStartup()), - CommonTranslators.createRunAsTranslator13(WEBAPP_PKG.getServlet_RunAs()), - CommonTranslators.createSecurityRoleRefTranslator13(WEBAPP_PKG.getServlet_SecurityRoleRefs()) - }); - return result; - } - - public static Translator createServlet14Translator() { - GenericTranslator result = new GenericTranslator(SERVLET, WEBAPP_PKG.getWebApp_Servlets()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - new Translator(SERVLET_NAME, WEBAPP_PKG.getServlet_ServletName(), - new TranslatorPath[] { - new TranslatorPath(new Translator[] { - new Translator(WEB_APP, WEBAPP_PKG.getServlet_WebApp()), - new Translator(SERVLET_MAPPING, WEBAPP_PKG.getWebApp_ServletMappings()), - }), - new TranslatorPath(new Translator[] { - new Translator(WEB_APP, WEBAPP_PKG.getServlet_WebApp()), - new Translator(FILTER_MAPPING, WEBAPP_PKG.getWebApp_FilterMappings()), - }), - }), - new WebTypeTranslator(), //servlet-class or jsp-file - CommonTranslators.createParamValueType(INIT_PARAM,WEBAPP_PKG.getServlet_InitParams()), - new Translator(LOAD_ON_STARTUP, WEBAPP_PKG.getServlet_LoadOnStartup()), - CommonTranslators.createRunAsTranslator14(WEBAPP_PKG.getServlet_RunAs()), - CommonTranslators.createSecurityRoleRefTranslator14(WEBAPP_PKG.getServlet_SecurityRoleRefs()), - // CommonTranslators.createDeploymentExtensionTranslator(WEBAPP_PKG.getServlet_Extensions()) - }); - return result; - } - - public static Translator createServletMappingTranslator() { - GenericTranslator result = new GenericTranslator(SERVLET_MAPPING, WEBAPP_PKG.getWebApp_ServletMappings()); - result.setChildren(new Translator[] { - new SourceLinkTranslator(SERVLET_NAME, WEBAPP_PKG.getServletMapping_Servlet(), - new TranslatorPath(new Translator[] { - new Translator(WEB_APP, CONTAINER_FEATURE), - new Translator(SERVLET, WEBAPP_PKG.getWebApp_Servlets()), - new Translator(SERVLET_NAME, WEBAPP_PKG.getServlet_ServletName()) - })), - new Translator(URL_PATTERN, WEBAPP_PKG.getServletMapping_UrlPattern()) - }); - return result; - } - - public static Translator createSessionConfigTranslator() { - GenericTranslator result = new GenericTranslator(SESSION_CONFIG, WEBAPP_PKG.getWebApp_SessionConfig()); - result.setChildren(new Translator[] { - new Translator(SESSION_TIMEOUT, WebapplicationPackage.eINSTANCE.getSessionConfig_SessionTimeout()), - }); - return result; - } - - public static Translator createMimeMappingTranslator() { - GenericTranslator result = new GenericTranslator(MIME_MAPPING, WEBAPP_PKG.getWebApp_MimeMappings()); - result.setChildren(new Translator[] { - new Translator(EXTENSION, WEBAPP_PKG.getMimeMapping_Extension()), - new Translator(MIME_TYPE, WEBAPP_PKG.getMimeMapping_MimeType()), - - }); - return result; - } - - public static Translator createFileListTranslator() { - GenericTranslator result = new GenericTranslator(WELCOME_FILE_LIST, WEBAPP_PKG.getWebApp_FileList()); - result.setChildren(new Translator[] { - createParentAndTextAttributeTranslator(WELCOME_FILE, WEBAPP_PKG.getWelcomeFileList_File(), WEBAPP_PKG.getWelcomeFile_WelcomeFile()) - }); - return result; - } - - public static Translator createTagLibTranslator14(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(TAGLIB, feature); - result.setChildren(new Translator[] { - new Translator(TAGLIB_URI, JSP_PKG.getTagLibRefType_TaglibURI()), - new Translator(TAGLIB_LOCATION, JSP_PKG.getTagLibRefType_TaglibLocation()) - }); - return result; - } - public static Translator createTagLibTranslator13(EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(TAGLIB, feature); - result.setChildren(new Translator[] { - new Translator(TAGLIB_URI, WEBAPP_PKG.getTagLibRef_TaglibURI()), - new Translator(TAGLIB_LOCATION, WEBAPP_PKG.getTagLibRef_TaglibLocation()) - }); - return result; - } - public static Translator createSecurityConstraintTranslator13() { - GenericTranslator result = new GenericTranslator(SECURITY_CONSTRAINT, WEBAPP_PKG.getWebApp_Constraints()); - result.setChildren(new Translator[] { - new Translator(DISPLAY_NAME, WEBAPP_PKG.getSecurityConstraint_DisplayName()), - createWebResourceCollectionTranslator13(), - createAuthConstraintTranslator13(), - createUserDataConstraintTranslator13(), - }); - return result; - } - - private static Translator createWebResourceCollectionTranslator13() { - GenericTranslator result = new GenericTranslator(WEB_RESOURCE_COLLECTION, WEBAPP_PKG.getSecurityConstraint_WebResourceCollections()); - result.setChildren(new Translator[] { - WEB_RESOURCE_NAME_TRANSLATOR, - new Translator(DESCRIPTION,WEBAPP_PKG.getWebResourceCollection_Description()), - URL_PATTERN_TRANSLATOR, - HTTP_METHOD_TRANSLATOR - }); - return result; - } - - private static Translator createAuthConstraintTranslator13() { - GenericTranslator result = new GenericTranslator(AUTH_CONSTRAINT, WEBAPP_PKG.getSecurityConstraint_AuthConstraint()); - result.setChildren(new Translator[] { - new Translator(DESCRIPTION, WEBAPP_PKG.getAuthConstraint_Description()), - ROLE_NAME_TRANSLATOR - }); - return result; - } - - private static Translator createUserDataConstraintTranslator13() { - GenericTranslator result = new GenericTranslator(USER_DATA_CONSTRAINT, WEBAPP_PKG.getSecurityConstraint_UserDataConstraint()); - result.setChildren(new Translator[] { - new Translator(DESCRIPTION, WEBAPP_PKG.getUserDataConstraint_Description()), - TRANSPORT_GUARANTEE_TRANSLATOR - }); - return result; - } - - public static Translator createLoginConfigTranslator() { - GenericTranslator result = new GenericTranslator(LOGIN_CONFIG, WEBAPP_PKG.getWebApp_LoginConfig()); - result.setChildren(new Translator[] { - new Translator(AUTH_METHOD, WEBAPP_PKG.getLoginConfig_AuthMethod(), Translator.ENUM_FEATURE_WITH_HYPHENS), - new Translator(REALM_NAME, WEBAPP_PKG.getLoginConfig_RealmName()), - createFormLoginConfigTranslator() - }); - return result; - } - - public static Translator createFormLoginConfigTranslator() { - GenericTranslator result = new GenericTranslator(FORM_LOGIN_CONFIG, WEBAPP_PKG.getLoginConfig_FormLoginConfig()); - result.setChildren(new Translator[] { - new Translator(FORM_LOGIN_PAGE, WEBAPP_PKG.getFormLoginConfig_FormLoginPage()), - new Translator(FORM_ERROR_PAGE, WEBAPP_PKG.getFormLoginConfig_FormErrorPage()), - }); - return result; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/WebTypeTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/WebTypeTranslator.java deleted file mode 100644 index 22027b2c8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/WebTypeTranslator.java +++ /dev/null @@ -1,86 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 20, 2003 - * - */ -package org.eclipse.jst.j2ee.internal.model.translator.webapplication; - - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.xml.WarDeploymentDescriptorXmlMapperI; -import org.eclipse.jst.j2ee.webapplication.WebType; -import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - */ -public class WebTypeTranslator extends Translator implements WarDeploymentDescriptorXmlMapperI { - - private static Translator[] SERVLET_XLATORS = new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, WebapplicationPackage.eINSTANCE.getServletType_ClassName()) - }; - private static Translator[] JSP_XLATORS = new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, WebapplicationPackage.eINSTANCE.getJSPType_JspFile()) - }; - - public WebTypeTranslator() { - super(SERVLET_CLASS+','+JSP_FILE, WebapplicationPackage.eINSTANCE.getServlet_WebType()); - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - if (o == null) - return CommonTranslators.EMPTY_CHILDREN; - if (((WebType)o).isJspType()) - return JSP_XLATORS; - else if (((WebType)o).isServletType()) - return SERVLET_XLATORS; - else - throw new IllegalStateException("Internal error: Web Type expected"); //$NON-NLS-1$ - } - - - public String getDOMName(Object value) { - if (((WebType)value).isJspType()) - return JSP_FILE; - else if (((WebType)value).isServletType()) - return SERVLET_CLASS; - else - throw new IllegalStateException("Internal error: Web Type expected"); //$NON-NLS-1$ - } - - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - WebapplicationFactory fact = WebapplicationPackage.eINSTANCE.getWebapplicationFactory(); - if (SERVLET_CLASS.equals(nodeName)) - return fact.createServletType(); - else if (JSP_FILE.equals(nodeName)) - return fact.createJSPType(); - else - return null; - } - - public boolean isManagedByParent() { - return false; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/EJBLinkTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/EJBLinkTranslator.java deleted file mode 100644 index 8fe6d8d81..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/EJBLinkTranslator.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - - - -public class EJBLinkTranslator extends Translator implements WsddXmlMapperI { - - private static Translator[] EJB_LINK_XLATORS = new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, WsddPackage.eINSTANCE.getEJBLink_EjbLink()) - }; - - public EJBLinkTranslator() { - super(EJB_LINK, WsddPackage.eINSTANCE.getServiceImplBean_EEJBLink()); - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - if (o == null) - return CommonTranslators.EMPTY_CHILDREN; - - return EJB_LINK_XLATORS; - } - - - public String getDOMName(Object value) { - return EJB_LINK; - } - - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - WsddFactory fact = WsddPackage.eINSTANCE.getWsddFactory(); - return fact.createEJBLink(); - - } - - public boolean isManagedByParent() { - return false; - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/ElementNameTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/ElementNameTranslator.java deleted file mode 100644 index dd3913ecc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/ElementNameTranslator.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class ElementNameTranslator extends Translator implements JaxrpcmapXmlMapperI { - - private static Translator[] ELEMENT_NAME_XLATORS = new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, JaxrpcmapPackage.eINSTANCE.getElementName_Text()) - }; - - public ElementNameTranslator() { - super(ELEMENT_NAME, JaxrpcmapPackage.eINSTANCE.getConstructorParameterOrder_ElementNames()); - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - if (o == null) - return CommonTranslators.EMPTY_CHILDREN; - - return ELEMENT_NAME_XLATORS; - } - - - public String getDOMName(Object value) { - return ELEMENT_NAME; - } - - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - JaxrpcmapFactory fact = JaxrpcmapPackage.eINSTANCE.getJaxrpcmapFactory(); - return fact.createElementName(); - - } - - public boolean isManagedByParent() { - return false; - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/InterfaceMappingTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/InterfaceMappingTranslator.java deleted file mode 100644 index 15bd4a1f3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/InterfaceMappingTranslator.java +++ /dev/null @@ -1,301 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class InterfaceMappingTranslator extends Translator implements JaxrpcmapXmlMapperI { - - - private static Translator[] SERVICE_INTERFACE_10XLATORS = new Translator[] { - new Translator(SERVICE_INTERFACE, JaxrpcmapPackage.eINSTANCE.getServiceInterfaceMapping_ServiceInterface()), - create10WSDLServiceNameTranslator(), - createPortMappingTranslator() - }; - - private static Translator[] SERVICE_INTERFACE_11XLATORS = new Translator[] { - new Translator(SERVICE_INTERFACE, JaxrpcmapPackage.eINSTANCE.getServiceInterfaceMapping_ServiceInterface()), - CommonTranslators.createQNameTranslator(WSDL_SERVICE_NAME, JaxrpcmapPackage.eINSTANCE.getServiceInterfaceMapping_WsdlServiceName()), - createPortMappingTranslator() - }; - - private static Translator[] SEI_10XLATORS = new Translator[] { - new Translator(SERVICE_ENDPOINT_INTERFACE, JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_ServiceEndpointInterface()), - create10WSDLPortTypeTranslator(), - create10WSDLBindingTranslator(), - create10SEMethodMappingTranslator() - }; - - private static Translator[] SEI_11XLATORS = new Translator[] { - new Translator(SERVICE_ENDPOINT_INTERFACE, JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_ServiceEndpointInterface()), - CommonTranslators.createQNameTranslator(WSDL_PORT_TYPE, JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_WsdlPortType()), - CommonTranslators.createQNameTranslator(WSDL_BINDING, JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_WsdlBinding()), - create11SEMethodMappingTranslator() - }; - - public InterfaceMappingTranslator() { - super(SERVICE_INTERFACE_MAPPING+','+SERVICE_ENDPOINT_INTERFACE_MAPPING, JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_InterfaceMappings()); - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - if (o == null) - return CommonTranslators.EMPTY_CHILDREN; - if (o instanceof ServiceInterfaceMapping) - return getServiceInterfaceTranslator(versionID); - else if (o instanceof ServiceEndpointInterfaceMapping) - return getSEITranslator(versionID); - else - throw new IllegalStateException("Internal error: InterfaceMapping expected"); //$NON-NLS-1$ - } - - - public String getDOMName(Object value) { - if (value instanceof ServiceInterfaceMapping) - return SERVICE_INTERFACE_MAPPING; - else if (value instanceof ServiceEndpointInterfaceMapping) - return SERVICE_ENDPOINT_INTERFACE_MAPPING; - else - throw new IllegalStateException("Internal error: InterfaceMapping expected"); //$NON-NLS-1$ - } - - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - JaxrpcmapFactory fact = JaxrpcmapPackage.eINSTANCE.getJaxrpcmapFactory(); - if (SERVICE_INTERFACE_MAPPING.equals(nodeName)) - return fact.createServiceInterfaceMapping(); - else if (SERVICE_ENDPOINT_INTERFACE_MAPPING.equals(nodeName)) - return fact.createServiceEndpointInterfaceMapping(); - else - return null; - } - - public boolean isManagedByParent() { - return false; - } - - private Translator[] getServiceInterfaceTranslator(int versionID) - { - switch (versionID) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - return SERVICE_INTERFACE_10XLATORS; - default : - return SERVICE_INTERFACE_11XLATORS; - } - - } - - private Translator[] getSEITranslator(int versionID) - { - switch (versionID) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - return SEI_10XLATORS; - default : - return SEI_11XLATORS; - } - - } - private static Translator create10WSDLServiceNameTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - CommonPackage commonPackage = CommonPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(WSDL_SERVICE_NAME, jaxrpcmapPackage.getServiceInterfaceMapping_WsdlServiceName()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(NAMESPACEURI, commonPackage.getQName_NamespaceURI()), - new Translator(LOCALPART, commonPackage.getQName_LocalPart()) - }); - return result; - } - - private static Translator createPortMappingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(PORT_MAPPING, jaxrpcmapPackage.getServiceInterfaceMapping_PortMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(PORT_NAME, jaxrpcmapPackage.getPortMapping_PortName()), - new Translator(JAVA_PORT_NAME, jaxrpcmapPackage.getPortMapping_JavaPortName()) - }); - return result; - } - /* - private static Translator create10PortMappingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(PORT_MAPPING, jaxrpcmapPackage.getServiceInterfaceMapping_PortMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(PORT_NAME, jaxrpcmapPackage.getPortMapping_PortName()), - new Translator(JAVA_PORT_NAME, jaxrpcmapPackage.getPortMapping_JavaPortName()) - }); - return result; - } - */ - - private static Translator create10WSDLPortTypeTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - CommonPackage commonPackage = CommonPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(WSDL_PORT_TYPE, jaxrpcmapPackage.getServiceEndpointInterfaceMapping_WsdlPortType()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(NAMESPACEURI, commonPackage.getQName_NamespaceURI()), - new Translator(LOCALPART, commonPackage.getQName_LocalPart()) - }); - return result; - } - - private static Translator create10WSDLBindingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - CommonPackage commonPackage = CommonPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(WSDL_BINDING, jaxrpcmapPackage.getServiceEndpointInterfaceMapping_WsdlBinding()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(NAMESPACEURI, commonPackage.getQName_NamespaceURI()), - new Translator(LOCALPART, commonPackage.getQName_LocalPart()) - }); - return result; - } - - private static Translator create10SEMethodMappingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(SERVICE_ENDPOINT_METHOD_MAPPING, jaxrpcmapPackage.getServiceEndpointInterfaceMapping_ServiceEndpointMethodMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(JAVA_METHOD_NAME, jaxrpcmapPackage.getServiceEndpointMethodMapping_JavaMethodName()), - new Translator(WSDL_OPERATION, jaxrpcmapPackage.getServiceEndpointMethodMapping_WsdlOperation()), - new Translator(WRAPPED_ELEMENT, jaxrpcmapPackage.getServiceEndpointMethodMapping_WrappedElement(), Translator.EMPTY_TAG), - create10MethodParamPartsMappingTranslator(), - create10WSDLReturnValueMappingTranslator() - }); - return result; - } - - private static Translator create11SEMethodMappingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(SERVICE_ENDPOINT_METHOD_MAPPING, jaxrpcmapPackage.getServiceEndpointInterfaceMapping_ServiceEndpointMethodMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(JAVA_METHOD_NAME, jaxrpcmapPackage.getServiceEndpointMethodMapping_JavaMethodName()), - new Translator(WSDL_OPERATION, jaxrpcmapPackage.getServiceEndpointMethodMapping_WsdlOperation()), - new Translator(WRAPPED_ELEMENT, jaxrpcmapPackage.getServiceEndpointMethodMapping_WrappedElement(), Translator.EMPTY_TAG), - create11MethodParamPartsMappingTranslator(), - create11WSDLReturnValueMappingTranslator() - }); - return result; - } - - private static Translator create10MethodParamPartsMappingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(METHOD_PARAM_PARTS_MAPPING, jaxrpcmapPackage.getServiceEndpointMethodMapping_MethodParamPartsMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(PARAM_POSITION, jaxrpcmapPackage.getMethodParamPartsMapping_ParamPosition()), - new Translator(PARAM_TYPE, jaxrpcmapPackage.getMethodParamPartsMapping_ParamType()), - create10WSDLMessageMappingTranslator() - }); - return result; - } - - private static Translator create11MethodParamPartsMappingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(METHOD_PARAM_PARTS_MAPPING, jaxrpcmapPackage.getServiceEndpointMethodMapping_MethodParamPartsMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(PARAM_POSITION, jaxrpcmapPackage.getMethodParamPartsMapping_ParamPosition()), - new Translator(PARAM_TYPE, jaxrpcmapPackage.getMethodParamPartsMapping_ParamType()), - create11WSDLMessageMappingTranslator() - }); - return result; - } - - private static Translator create10WSDLMessageMappingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(WSDL_MESSAGE_MAPPING, jaxrpcmapPackage.getMethodParamPartsMapping_WsdlMessageMapping()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - create10WSDLMessageTranslator(jaxrpcmapPackage.getWSDLMessageMapping_WsdlMessage()), - new Translator(WSDL_MESSAGE_PART_NAME, jaxrpcmapPackage.getWSDLMessageMapping_WsdlMessagePartName()), - new Translator(PARAMETER_MODE, jaxrpcmapPackage.getWSDLMessageMapping_ParameterMode()), - new Translator(SOAP_HEADER, jaxrpcmapPackage.getWSDLMessageMapping_SoapHeader(), Translator.EMPTY_TAG), - }); - return result; - } - - private static Translator create11WSDLMessageMappingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(WSDL_MESSAGE_MAPPING, jaxrpcmapPackage.getMethodParamPartsMapping_WsdlMessageMapping()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.createQNameTranslator(WSDL_MESSAGE, jaxrpcmapPackage.getWSDLMessageMapping_WsdlMessage()), - new Translator(WSDL_MESSAGE_PART_NAME, jaxrpcmapPackage.getWSDLMessageMapping_WsdlMessagePartName()), - new Translator(PARAMETER_MODE, jaxrpcmapPackage.getWSDLMessageMapping_ParameterMode()), - new Translator(SOAP_HEADER, jaxrpcmapPackage.getWSDLMessageMapping_SoapHeader(), Translator.EMPTY_TAG), - }); - return result; - } - - private static Translator create10WSDLMessageTranslator(EStructuralFeature feature) { - //JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - CommonPackage commonPackage = CommonPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(WSDL_MESSAGE, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(NAMESPACEURI, commonPackage.getQName_NamespaceURI()), - new Translator(LOCALPART, commonPackage.getQName_LocalPart()) - }); - return result; - } - - private static Translator create10WSDLReturnValueMappingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(WSDL_RETURN_VALUE_MAPPING, jaxrpcmapPackage.getServiceEndpointMethodMapping_WsdlReturnValueMapping()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(METHOD_RETURN_VALUE, jaxrpcmapPackage.getWSDLReturnValueMapping_MethodReturnValue()), - create10WSDLMessageTranslator(jaxrpcmapPackage.getWSDLReturnValueMapping_WsdlMessage()), - new Translator(WSDL_MESSAGE_PART_NAME, jaxrpcmapPackage.getWSDLReturnValueMapping_WsdlMessagePartName()) - }); - return result; - } - - private static Translator create11WSDLReturnValueMappingTranslator() { - JaxrpcmapPackage jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - GenericTranslator result = new GenericTranslator(WSDL_RETURN_VALUE_MAPPING, jaxrpcmapPackage.getServiceEndpointMethodMapping_WsdlReturnValueMapping()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(METHOD_RETURN_VALUE, jaxrpcmapPackage.getWSDLReturnValueMapping_MethodReturnValue()), - CommonTranslators.createQNameTranslator(WSDL_MESSAGE, jaxrpcmapPackage.getWSDLReturnValueMapping_WsdlMessage()), - new Translator(WSDL_MESSAGE_PART_NAME, jaxrpcmapPackage.getWSDLReturnValueMapping_WsdlMessagePartName()) - }); - return result; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/JaxrpcmapTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/JaxrpcmapTranslator.java deleted file mode 100644 index 2a383776e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/JaxrpcmapTranslator.java +++ /dev/null @@ -1,225 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.wst.common.internal.emf.resource.ConstantAttributeTranslator; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.RootTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - - - - -public class JaxrpcmapTranslator extends RootTranslator implements JaxrpcmapXmlMapperI, J2EEConstants{ - public static JaxrpcmapTranslator INSTANCE = new JaxrpcmapTranslator(); - private static Translator[] children10; - private static Translator[] children11; - private JaxrpcmapPackage jaxrpcmapPackage; - private CommonPackage commonPackage; - - - protected JaxrpcmapTranslator() { - super(JAVA_WSDL_MAPPING, JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - jaxrpcmapPackage = JaxrpcmapPackage.eINSTANCE; - commonPackage = CommonPackage.eINSTANCE; - - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children10 == null) - { - children10 = create10Children(); - } - return children10; - default : - if (children11 == null) - { - children11 = create11Children(); - } - return children11; - } - } - - - protected Translator[] create10Children() { - - return new Translator[] { - IDTranslator.INSTANCE, - createPackageMappingTranslator(), - create10JavaXMLTypeMappingTranslator(), - create10ExceptionMappingTranslator(), - new InterfaceMappingTranslator() - }; - } - - protected Translator[] create11Children() { - - return new Translator[] { - IDTranslator.INSTANCE, - new ConstantAttributeTranslator(XML_NS, J2EE_NS_URL), - new ConstantAttributeTranslator(XML_NS_XSI, XSI_NS_URL), - new ConstantAttributeTranslator(XSI_SCHEMA_LOCATION, J2EE_NS_URL+' '+WebServiceConstants.JAXRPCMAP_SCHEMA_LOC), - new ConstantAttributeTranslator(VERSION, WebServiceConstants.WEBSERVICE_SCHEMA_VERSION), - createPackageMappingTranslator(), - create11JavaXMLTypeMappingTranslator(), - create11ExceptionMappingTranslator(), - new InterfaceMappingTranslator() - }; - } - - public Translator createPackageMappingTranslator() { - - GenericTranslator result = new GenericTranslator(PACKAGE_MAPPING, jaxrpcmapPackage.getJavaWSDLMapping_PackageMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(PACKAGE_TYPE, jaxrpcmapPackage.getPackageMapping_PackageType()), - new Translator(NAMESPACEURI, jaxrpcmapPackage.getPackageMapping_NamespaceURI()) - }); - return result; - } - - public Translator create10JavaXMLTypeMappingTranslator() { - - GenericTranslator result = new GenericTranslator(JAVA_XML_TYPE_MAPPING, jaxrpcmapPackage.getJavaWSDLMapping_JavaXMLTypeMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(CLASS_TYPE, jaxrpcmapPackage.getJavaXMLTypeMapping_ClassType()), - create10RootTypeQnameTranslator(), - new Translator(QNAME_SCOPE, jaxrpcmapPackage.getJavaXMLTypeMapping_QnameScope()), - create10VariableMappingTranslator() - }); - return result; - } - - public Translator create11JavaXMLTypeMappingTranslator() { - - GenericTranslator result = new GenericTranslator(JAVA_XML_TYPE_MAPPING, jaxrpcmapPackage.getJavaWSDLMapping_JavaXMLTypeMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(JAVA_TYPE, jaxrpcmapPackage.getJavaXMLTypeMapping_ClassType()), - new Translator(ANONYMOUS_TYPE_QNAME, jaxrpcmapPackage.getJavaXMLTypeMapping_AnonymousTypeQname()), - CommonTranslators.createQNameTranslator(ROOT_TYPE_QNAME, jaxrpcmapPackage.getJavaXMLTypeMapping_RootTypeQname()), - //create10RootTypeQnameTranslator(), //RootTypeQName is still going to work the old (1.3) way because of anonymous types. - new Translator(QNAME_SCOPE, jaxrpcmapPackage.getJavaXMLTypeMapping_QnameScope()), - create11VariableMappingTranslator() - }); - return result; - } - - public Translator create10ExceptionMappingTranslator() { - - GenericTranslator result = new GenericTranslator(EXCEPTION_MAPPING, jaxrpcmapPackage.getJavaWSDLMapping_ExceptionMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(EXCEPTION_TYPE, jaxrpcmapPackage.getExceptionMapping_ExceptionType()), - create10WSDLMessageTranslator(), - createConstructorParamOrderTranslator() - }); - return result; - } - - public Translator create11ExceptionMappingTranslator() { - - GenericTranslator result = new GenericTranslator(EXCEPTION_MAPPING, jaxrpcmapPackage.getJavaWSDLMapping_ExceptionMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(EXCEPTION_TYPE, jaxrpcmapPackage.getExceptionMapping_ExceptionType()), - CommonTranslators.createQNameTranslator(WSDL_MESSAGE, jaxrpcmapPackage.getExceptionMapping_WsdlMessage()), - new Translator(WSDL_MESSAGE_PART_NAME, jaxrpcmapPackage.getExceptionMapping_WsdlMessagePartName()), - createConstructorParamOrderTranslator() - }); - return result; - } - - public Translator createInterfaceMappingTranslator() { - - GenericTranslator result = new GenericTranslator(SERVICE_INTERFACE_MAPPING, jaxrpcmapPackage.getJavaWSDLMapping()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(PACKAGE_TYPE, jaxrpcmapPackage.getPackageMapping_PackageType()), - new Translator(NAMESPACEURI, jaxrpcmapPackage.getPackageMapping_NamespaceURI()) - }); - return result; - } - - - public Translator create10RootTypeQnameTranslator() { - - GenericTranslator result = new GenericTranslator(ROOT_TYPE_QNAME, jaxrpcmapPackage.getJavaXMLTypeMapping_RootTypeQname()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(NAMESPACEURI, commonPackage.getQName_NamespaceURI()), - new Translator(LOCALPART, commonPackage.getQName_LocalPart()) - }); - return result; - } - - public Translator create10VariableMappingTranslator() { - - GenericTranslator result = new GenericTranslator(VARIABLE_MAPPING, jaxrpcmapPackage.getJavaXMLTypeMapping_VariableMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(JAVA_VARIABLE_NAME, jaxrpcmapPackage.getVariableMapping_JavaVariableName()), - new Translator(DATA_MEMBER, jaxrpcmapPackage.getVariableMapping_DataMember(), Translator.EMPTY_TAG), - new Translator(XML_ELEMENT_NAME, jaxrpcmapPackage.getVariableMapping_XmlElementName()) - }); - return result; - } - - public Translator create11VariableMappingTranslator() { - - GenericTranslator result = new GenericTranslator(VARIABLE_MAPPING, jaxrpcmapPackage.getJavaXMLTypeMapping_VariableMappings()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(JAVA_VARIABLE_NAME, jaxrpcmapPackage.getVariableMapping_JavaVariableName()), - new Translator(DATA_MEMBER, jaxrpcmapPackage.getVariableMapping_DataMember(), Translator.EMPTY_TAG), - new Translator(XML_ATTRIBUTE_NAME, jaxrpcmapPackage.getVariableMapping_XmlAttributeName()), - new Translator(XML_ELEMENT_NAME, jaxrpcmapPackage.getVariableMapping_XmlElementName()), - new Translator(XML_WILDCARD, jaxrpcmapPackage.getVariableMapping_XmlWildcard(), Translator.EMPTY_TAG) - }); - return result; - } - - public Translator create10WSDLMessageTranslator() { - - GenericTranslator result = new GenericTranslator(WSDL_MESSAGE, jaxrpcmapPackage.getExceptionMapping_WsdlMessage()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(NAMESPACEURI, commonPackage.getQName_NamespaceURI()), - new Translator(LOCALPART, commonPackage.getQName_LocalPart()) - }); - return result; - } - - public Translator createConstructorParamOrderTranslator() { - GenericTranslator result = new GenericTranslator(CONSTRUCTOR_PARAMETER_ORDER, jaxrpcmapPackage.getExceptionMapping_ConstructorParameterOrder()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new ElementNameTranslator() - }); - return result; - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/JaxrpcmapXmlMapperI.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/JaxrpcmapXmlMapperI.java deleted file mode 100644 index 4bfc870dc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/JaxrpcmapXmlMapperI.java +++ /dev/null @@ -1,66 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - -//imports for J2EE core classes -//import org.eclipse.jst.j2ee.internal.xml.DeploymentDescriptorXmlMapperI; - -/** - * This interface represents a catalog of all the tag names which occur in - * an web service deployment descriptor. Interface shared by readers and - * writers to have access to common constants - */ -public interface JaxrpcmapXmlMapperI extends WebServiceCommonXmlMapperI -{ - public String JAVA_WSDL_MAPPING ="java-wsdl-mapping"; //$NON-NLS-1$ - public String CLASS_TYPE ="class-type";//$NON-NLS-1$ - public String JAVA_TYPE ="java-type"; //$NON-NLS-1$ - public String CONSTRUCTOR_PARAMETER_ORDER ="constructor-parameter-order";//$NON-NLS-1$ - public String DATA_MEMBER ="data-member";//$NON-NLS-1$ - public String ELEMENT_NAME ="element-name";//$NON-NLS-1$ - public String EXCEPTION_MAPPING ="exception-mapping";//$NON-NLS-1$ - public String EXCEPTION_TYPE ="exception-type";//$NON-NLS-1$ - public String JAVA_METHOD_NAME ="java-method-name";//$NON-NLS-1$ - public String JAVA_PORT_NAME ="java-port-name";//$NON-NLS-1$ - public String JAVA_VARIABLE_NAME ="java-variable-name";//$NON-NLS-1$ - public String JAVA_XML_TYPE_MAPPING ="java-xml-type-mapping";//$NON-NLS-1$ - public String METHOD_PARAM_PARTS_MAPPING ="method-param-parts-mapping";//$NON-NLS-1$ - public String METHOD_RETURN_VALUE ="method-return-value";//$NON-NLS-1$ - public String PACKAGE_MAPPING ="package-mapping";//$NON-NLS-1$ - public String PACKAGE_TYPE ="package-type";//$NON-NLS-1$ - public String PARAMETER_MODE ="parameter-mode";//$NON-NLS-1$ - public String PARAM_POSITION ="param-position";//$NON-NLS-1$ - public String PARAM_TYPE ="param-type";//$NON-NLS-1$ - public String PORT_MAPPING ="port-mapping";//$NON-NLS-1$ - public String QNAME_SCOPE ="qname-scope";//$NON-NLS-1$ - public String ANONYMOUS_TYPE_QNAME = "anonymous-type-qname";//$NON-NLS-1$ - public String ROOT_TYPE_QNAME ="root-type-qname";//$NON-NLS-1$ - //public String SERVICE_ENDPOINT_INTERFACE ="service-endpoint-interface"; - public String SERVICE_ENDPOINT_INTERFACE_MAPPING ="service-endpoint-interface-mapping";//$NON-NLS-1$ - public String SERVICE_ENDPOINT_METHOD_MAPPING ="service-endpoint-method-mapping";//$NON-NLS-1$ - //public String SERVICE_INTERFACE ="service-interface"; - public String SERVICE_INTERFACE_MAPPING ="service-interface-mapping";//$NON-NLS-1$ - //public String SOAP_HEADER ="soap_header"; - public String VARIABLE_MAPPING ="variable-mapping";//$NON-NLS-1$ - public String WRAPPED_ELEMENT ="wrapped-element";//$NON-NLS-1$ - public String WSDL_BINDING ="wsdl-binding";//$NON-NLS-1$ - public String WSDL_MESSAGE ="wsdl-message";//$NON-NLS-1$ - public String WSDL_MESSAGE_MAPPING ="wsdl-message-mapping";//$NON-NLS-1$ - public String WSDL_MESSAGE_PART_NAME ="wsdl-message-part-name";//$NON-NLS-1$ - public String WSDL_OPERATION ="wsdl-operation";//$NON-NLS-1$ - public String WSDL_PORT_TYPE ="wsdl-port-type";//$NON-NLS-1$ - public String WSDL_RETURN_VALUE_MAPPING ="wsdl-return-value-mapping";//$NON-NLS-1$ - public String WSDL_SERVICE_NAME ="wsdl-service-name";//$NON-NLS-1$ - public String XML_ATTRIBUTE_NAME ="xml-attribute-name";//$NON-NLS-1$ - public String XML_ELEMENT_NAME ="xml-element-name";//$NON-NLS-1$ - public String XML_WILDCARD ="xml-wildcard";//$NON-NLS-1$ -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/SOAPRoleTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/SOAPRoleTranslator.java deleted file mode 100644 index fd0a35aa6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/SOAPRoleTranslator.java +++ /dev/null @@ -1,66 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - - - -public class SOAPRoleTranslator extends Translator implements WsddXmlMapperI { - - private static Translator[] SOAP_ROLE_XLATORS = new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, WscommonPackage.eINSTANCE.getSOAPRole_SoapRole()) - }; - - public SOAPRoleTranslator() { - super(SOAP_ROLE, WsddPackage.eINSTANCE.getHandler_SoapRoles()); - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - if (o == null) - return CommonTranslators.EMPTY_CHILDREN; - - return SOAP_ROLE_XLATORS; - } - - - public String getDOMName(Object value) { - return SOAP_ROLE; - } - - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - WscommonFactory fact = WscommonPackage.eINSTANCE.getWscommonFactory(); - return fact.createSOAPRole(); - - } - - public boolean isManagedByParent() { - return false; - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/ServletLinkTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/ServletLinkTranslator.java deleted file mode 100644 index cf3abda0e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/ServletLinkTranslator.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - - - -public class ServletLinkTranslator extends Translator implements WsddXmlMapperI { - - private static Translator[] SERVLET_LINK_XLATORS = new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, WsddPackage.eINSTANCE.getServletLink_ServletLink()) - }; - - public ServletLinkTranslator() { - super(SERVLET_LINK, WsddPackage.eINSTANCE.getServiceImplBean_EServletLink()); - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - if (o == null) - return CommonTranslators.EMPTY_CHILDREN; - - return SERVLET_LINK_XLATORS; - } - - - public String getDOMName(Object value) { - return SERVLET_LINK; - } - - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#createEMFObject(java.lang.String, java.lang.String) - */ - public EObject createEMFObject(String nodeName, String readAheadName) { - WsddFactory fact = WsddPackage.eINSTANCE.getWsddFactory(); - return fact.createServletLink(); - - } - - public boolean isManagedByParent() { - return false; - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WebServiceCommonXmlMapperI.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WebServiceCommonXmlMapperI.java deleted file mode 100644 index 9bf68c74c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WebServiceCommonXmlMapperI.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - -//imports for J2EE core classes -import org.eclipse.jst.j2ee.internal.xml.DeploymentDescriptorXmlMapperI; - -/** - * This interface represents a catalog of all the tag names which occur in - * an web service deployment descriptor. Interface shared by readers and - * writers to have access to common constants - */ -public interface WebServiceCommonXmlMapperI extends DeploymentDescriptorXmlMapperI -{ -// public String WSDL_FILE = "wsdl-file"; -// public String JAXRPC_MAPPING_FILE = "jaxrpc-mapping-file"; - public String NAMESPACEURI = "namespaceURI";//$NON-NLS-1$ - public String LOCALPART = "localpart";//$NON-NLS-1$ -// public String SERVICE_INTERFACE = "service-interface"; - public String SERVICE_ENDPOINT_INTERFACE = "service-endpoint-interface";//$NON-NLS-1$ -// public String HANDLER = "handler"; -// public String HANDLER_NAME = "handler-name"; -// public String HANDLER_CLASS = "handler-class"; - public String INIT_PARAM = "init-param";//$NON-NLS-1$ -// public String PARAM_NAME = "param-name"; -// public String PARAM_VALUE = "param-value"; -// public String SOAP_HEADER = "soap-header"; -// public String SOAP_ROLE = "soap-role"; -// public String PORT_NAME = "port-name"; - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WebServicesTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WebServicesTranslator.java deleted file mode 100644 index cd9b6a6dd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WebServicesTranslator.java +++ /dev/null @@ -1,135 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.internal.model.translator.common.JavaClassTranslator; -import org.eclipse.jst.j2ee.internal.xml.WebServicesDeploymentDescriptorXmlMapperI; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.RootTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class WebServicesTranslator extends RootTranslator implements WebServicesDeploymentDescriptorXmlMapperI{ - public static WebServicesTranslator INSTANCE = new WebServicesTranslator(); - public static final String WEBSERVICESCLIENT = WEB_SERVICES_CLIENT; - private static CommonPackage COMMON_PKG = CommonPackage.eINSTANCE; - - private static Webservice_clientPackage WEBSERVICECLIENT_PKG = Webservice_clientPackage.eINSTANCE; - - private static Translator[] children13; - - public WebServicesTranslator() { - super(WEBSERVICESCLIENT, Webservice_clientPackage.eINSTANCE.getWebServicesClient()); - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - if (children13 == null) - children13 = create13Children(); - return children13; - } - - protected Translator[] create13Children() { - return new Translator[] { - IDTranslator.INSTANCE, - createServiceRefGroupTranslator13(null), - createComponentScopedRefs13() - }; - } - /** - * This model was model from Websphere Webservices - * @param reference - * @return - */ - public static Translator createServiceRefGroupTranslator13(EStructuralFeature feature) { - if (feature == null) - feature = WEBSERVICECLIENT_PKG.getWebServicesClient_ServiceRefs(); - GenericTranslator result = new GenericTranslator(SERVICE_REF, feature); - result.setChildren( new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(SMALL_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), - new Translator(LARGE_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), - new Translator(SERVICE_REF_NAME, WEBSERVICECLIENT_PKG.getServiceRef_ServiceRefName()), - new JavaClassTranslator(SERVICE_INTERFACE, WEBSERVICECLIENT_PKG.getServiceRef_ServiceInterface()), - new Translator(WSDL_FILE, WEBSERVICECLIENT_PKG.getServiceRef_WsdlFile()), - new Translator(JAXRPC_MAPPING_FILE, WEBSERVICECLIENT_PKG.getServiceRef_JaxrpcMappingFile()), - createQNameTranslator10(SERVICE_QNAME, WEBSERVICECLIENT_PKG.getServiceRef_ServiceQname()), - CommonTranslators.createPortComponentRefTranslator(), - createServiceRefHandlerTranslator13(), - }); - - - return result; - } - /** - * This model was model from Websphere Webservices - * @return - */ - public static Translator createServiceRefHandlerTranslator13() { - GenericTranslator result = new GenericTranslator(HANDLER, WEBSERVICECLIENT_PKG.getServiceRef_Handlers()); - result.setChildren(new Translator[]{ - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(SMALL_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), - new Translator(LARGE_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), - new Translator(HANDLER_NAME, WEBSERVICECLIENT_PKG.getHandler_HandlerName()), - new JavaClassTranslator(HANDLER_CLASS, WEBSERVICECLIENT_PKG.getHandler_HandlerClass()), - createParamValueType13(HANDLER_INIT_PARAM, WEBSERVICECLIENT_PKG.getHandler_InitParams()), - createQNameTranslator10(SOAP_HEADER, WEBSERVICECLIENT_PKG.getHandler_SoapHeaders()), - new Translator(SOAP_ROLE, WEBSERVICECLIENT_PKG.getHandler_SoapRoles()), - new Translator(PORT_NAME, WEBSERVICECLIENT_PKG.getHandler_PortNames()) - }); - - return result; - } - /** - * @return - */ - private Translator createComponentScopedRefs13() { - GenericTranslator result = new GenericTranslator(COMP_SCOPED_REFS, WEBSERVICECLIENT_PKG.getWebServicesClient_ComponentScopedRefs()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(COMP_COMPONENT_NAME, WEBSERVICECLIENT_PKG.getComponentScopedRefs_ComponentName()), - createServiceRefGroupTranslator13(WEBSERVICECLIENT_PKG.getComponentScopedRefs_ServiceRefs()) - }); - return result; - } - - public static Translator createQNameTranslator10(String domName, EStructuralFeature feature) { - GenericTranslator result = new GenericTranslator(domName, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(NAMESPACEURI, COMMON_PKG.getQName_NamespaceURI()), - new Translator(LOCALPART, COMMON_PKG.getQName_LocalPart()) - }); - return result; - } - - public static Translator createParamValueType13(String domName, EStructuralFeature feature){ - GenericTranslator result = new GenericTranslator(domName, feature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(PARAM_NAME, COMMON_PKG.getParamValue_Name()), - new Translator(PARAM_VALUE, COMMON_PKG.getParamValue_Value()), - new Translator(DESCRIPTION, COMMON_PKG.getParamValue_Description()) - }); - return result; - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WsddTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WsddTranslator.java deleted file mode 100644 index 1ffa29a36..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WsddTranslator.java +++ /dev/null @@ -1,281 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.model.translator.common.CommonTranslators; -import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.wst.common.internal.emf.resource.ConstantAttributeTranslator; -import org.eclipse.wst.common.internal.emf.resource.GenericTranslator; -import org.eclipse.wst.common.internal.emf.resource.IDTranslator; -import org.eclipse.wst.common.internal.emf.resource.RootTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - - - - -public class WsddTranslator extends RootTranslator implements WsddXmlMapperI, J2EEConstants{ - public static WsddTranslator INSTANCE = new WsddTranslator(); - private static Translator[] children10; - private static Translator[] children11; - - private static WsddPackage WSDD_PKG = WsddPackage.eINSTANCE; - private static WscommonPackage WSCOMMON_PKG = WscommonPackage.eINSTANCE; - private static CommonPackage COMMON_PKG = CommonPackage.eINSTANCE; - - protected WsddTranslator() { - super(WEBSERVICES, WsddPackage.eINSTANCE.getWebServices()); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#getChildren(java.lang.Object, int) - */ - public Translator[] getChildren(Object o, int versionID) { - - - - switch (versionID) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - if (children10 == null) - { - children10 = create10Children(); - } - return children10; - default : - if (children11 == null) - { - children11 = create11Children(); - } - return children11; - } - } - - - protected Translator[] create10Children() { - return new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(SMALL_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), - new Translator(LARGE_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), - create10WebServiceDescTranslator() - }; - } - - protected Translator[] create11Children() { - - return new Translator[] { - IDTranslator.INSTANCE, - new ConstantAttributeTranslator(XML_NS, J2EE_NS_URL), - new ConstantAttributeTranslator(XML_NS_XSI, XSI_NS_URL), - new ConstantAttributeTranslator(XSI_SCHEMA_LOCATION, J2EE_NS_URL+' '+WebServiceConstants.WEBSERVICE_SCHEMA_LOC), - new ConstantAttributeTranslator(VERSION, WebServiceConstants.WEBSERVICE_SCHEMA_VERSION), - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - create11WebServiceDescTranslator() - }; - } - - public Translator create10WebServiceDescTranslator() { - GenericTranslator result = new GenericTranslator(WEBSERVICE_DESCRIPTION, WSDD_PKG.getWebServices_WebServiceDescriptions()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, WSDD_PKG.getWebServiceDescription_Description()), - new Translator(DISPLAY_NAME, WSDD_PKG.getWebServiceDescription_DisplayName()), - new Translator(SMALL_ICON, WSDD_PKG.getWebServiceDescription_SmallIcon()), - new Translator(LARGE_ICON, WSDD_PKG.getWebServiceDescription_LargeIcon()), - new Translator(WEBSERVICE_DESCRIPTION_NAME, WSDD_PKG.getWebServiceDescription_WebServiceDescriptionName()), - new Translator(WSDL_FILE, WSDD_PKG.getWebServiceDescription_WsdlFile()), - new Translator(JAXRPC_MAPPING_FILE, WSDD_PKG.getWebServiceDescription_JaxrpcMappingFile()), - create10PortComponentTranslator() - }); - return result; - } - - public Translator create11WebServiceDescTranslator() { - - GenericTranslator result = new GenericTranslator(WEBSERVICE_DESCRIPTION, WSDD_PKG.getWebServices_WebServiceDescriptions()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - create11DescriptionTranslator(WSDD_PKG.getWebServiceDescription_DescriptionType()), - create11DisplayNameTranslator(WSDD_PKG.getWebServiceDescription_DisplayNameType()), - create11IconTranslator(WSDD_PKG.getWebServiceDescription_IconType()), - new Translator(WEBSERVICE_DESCRIPTION_NAME, WSDD_PKG.getWebServiceDescription_WebServiceDescriptionName()), - new Translator(WSDL_FILE, WSDD_PKG.getWebServiceDescription_WsdlFile()), - new Translator(JAXRPC_MAPPING_FILE, WSDD_PKG.getWebServiceDescription_JaxrpcMappingFile()), - create11PortComponentTranslator() - }); - return result; - } - - - - public Translator create10PortComponentTranslator() { - GenericTranslator result = new GenericTranslator(PORT_COMPONENT, WSDD_PKG.getWebServiceDescription_PortComponents()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, WSDD_PKG.getPortComponent_Description()), - new Translator(DISPLAY_NAME, WSDD_PKG.getPortComponent_DisplayName()), - new Translator(SMALL_ICON, WSDD_PKG.getPortComponent_SmallIcon()), - new Translator(LARGE_ICON, WSDD_PKG.getPortComponent_LargeIcon()), - new Translator(PORT_COMPONENT_NAME, WSDD_PKG.getPortComponent_PortComponentName()), - create10WsdlPortTranslator(), - new Translator(SERVICE_ENPOINT_INTERFACE, WSDD_PKG.getPortComponent_ServiceEndpointInterface()), - createServiceImplBeanTranslator(), - createHandler10Translator() - }); - return result; - } - - public Translator create11PortComponentTranslator() { - GenericTranslator result = new GenericTranslator(PORT_COMPONENT, WSDD_PKG.getWebServiceDescription_PortComponents()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, WSDD_PKG.getPortComponent_Description()), - new Translator(DISPLAY_NAME, WSDD_PKG.getPortComponent_DisplayName()), - new Translator(SMALL_ICON, WSDD_PKG.getPortComponent_SmallIcon()), - new Translator(LARGE_ICON, WSDD_PKG.getPortComponent_LargeIcon()), - new Translator(PORT_COMPONENT_NAME, WSDD_PKG.getPortComponent_PortComponentName()), - CommonTranslators.createQNameTranslator(WSDL_PORT, WSDD_PKG.getPortComponent_WsdlPort()), - new Translator(SERVICE_ENPOINT_INTERFACE, WSDD_PKG.getPortComponent_ServiceEndpointInterface()), - createServiceImplBeanTranslator(), - createHandler11Translator() - }); - return result; - } - - public Translator create10WsdlPortTranslator() { - GenericTranslator result = new GenericTranslator(WSDL_PORT, WSDD_PKG.getPortComponent_WsdlPort()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(NAMESPACEURI, COMMON_PKG.getQName_NamespaceURI()), - new Translator(LOCALPART, COMMON_PKG.getQName_LocalPart()) - }); - return result; - } - - - public Translator createServiceImplBeanTranslator() { - GenericTranslator result = new GenericTranslator(SERVICE_IMPL_BEAN, WSDD_PKG.getPortComponent_ServiceImplBean()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new ServletLinkTranslator(), - new EJBLinkTranslator() - }); - return result; - } - - - public Translator createHandler10Translator() { - GenericTranslator result = new GenericTranslator(HANDLER, WSDD_PKG.getPortComponent_Handlers()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(DESCRIPTION, COMMON_PKG.getCompatibilityDescriptionGroup_Description()), - new Translator(DISPLAY_NAME, COMMON_PKG.getCompatibilityDescriptionGroup_DisplayName()), - new Translator(SMALL_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_SmallIcon()), - new Translator(LARGE_ICON, COMMON_PKG.getCompatibilityDescriptionGroup_LargeIcon()), - new Translator(HANDLER_NAME, WSDD_PKG.getHandler_HandlerName()), - new Translator(HANDLER_CLASS, WSDD_PKG.getHandler_HandlerClass()), - create10InitParamTranslator(), - create10SOAPHeaderTranslator(), - new SOAPRoleTranslator() - }); - return result; - } - - public Translator createHandler11Translator() { - GenericTranslator result = new GenericTranslator(HANDLER, WSDD_PKG.getPortComponent_Handlers()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - CommonTranslators.DESCRIPTIONS_TRANSLATOR, - CommonTranslators.DISPLAYNAMES_TRANSLATOR, - CommonTranslators.ICONS_TRANSLATOR, - new Translator(HANDLER_NAME, WSDD_PKG.getHandler_HandlerName()), - new Translator(HANDLER_CLASS, WSDD_PKG.getHandler_HandlerClass()), - create11InitParamTranslator(), - CommonTranslators.createQNameTranslator(SOAP_HEADER, WSDD_PKG.getHandler_SoapHeaders()), - new SOAPRoleTranslator() - }); - return result; - } - - public Translator create10InitParamTranslator() { - GenericTranslator result = new GenericTranslator(INIT_PARAM, WSDD_PKG.getHandler_InitParams()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(PARAM_NAME, WSCOMMON_PKG.getInitParam_ParamName()), - new Translator(PARAM_VALUE, WSCOMMON_PKG.getInitParam_ParamValue()), - new Translator(DESCRIPTION, WSCOMMON_PKG.getInitParam_Description()) - }); - return result; - } - - public Translator create11InitParamTranslator() { - GenericTranslator result = new GenericTranslator(INIT_PARAM, WSDD_PKG.getHandler_InitParams()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - create11DescriptionTranslator(WSCOMMON_PKG.getInitParam_DescriptionTypes()), - new Translator(PARAM_NAME, WSCOMMON_PKG.getInitParam_ParamName()), - new Translator(PARAM_VALUE, WSCOMMON_PKG.getInitParam_ParamValue()) - }); - return result; - } - - - public Translator create10SOAPHeaderTranslator() { - GenericTranslator result = new GenericTranslator(SOAP_HEADER, WSDD_PKG.getHandler_SoapHeaders()); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(NAMESPACEURI, COMMON_PKG.getQName_NamespaceURI()), - new Translator(LOCALPART, COMMON_PKG.getQName_LocalPart()) - }); - return result; - } - - public Translator create11DescriptionTranslator(EStructuralFeature afeature) { - GenericTranslator result = new GenericTranslator(DESCRIPTION, afeature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(LANG, COMMON_PKG.getDescription_Lang(), Translator.DOM_ATTRIBUTE), - new Translator(Translator.TEXT_ATTRIBUTE_VALUE, COMMON_PKG.getDescription_Value()) - }); - return result; - } - public Translator create11DisplayNameTranslator(EStructuralFeature afeature) { - GenericTranslator result = new GenericTranslator(DISPLAY_NAME, afeature); - result.setChildren(new Translator[] { - IDTranslator.INSTANCE, - new Translator(LANG, COMMON_PKG.getDisplayName_Lang(), Translator.DOM_ATTRIBUTE), - new Translator(Translator.TEXT_ATTRIBUTE_VALUE, COMMON_PKG.getDisplayName_Value()) - }); - return result; - } - - private Translator create11IconTranslator(EStructuralFeature afeature) { - GenericTranslator result = new GenericTranslator(ICON, afeature); - result.setChildren(new Translator[] { - new Translator(LANG, COMMON_PKG.getIconType_Lang(), Translator.DOM_ATTRIBUTE), - IDTranslator.INSTANCE, - new Translator(SMALL_ICON, COMMON_PKG.getIconType_SmallIcon()), - new Translator(LARGE_ICON, COMMON_PKG.getIconType_LargeIcon()) - }); - return result; - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WsddXmlMapperI.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WsddXmlMapperI.java deleted file mode 100644 index a435cb5d2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WsddXmlMapperI.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.model.translator.webservices; - -//imports for J2EE core classes -//import org.eclipse.jst.j2ee.internal.xml.DeploymentDescriptorXmlMapperI; - -/** - * This interface represents a catalog of all the tag names which occur in - * an web service deployment descriptor. Interface shared by readers and - * writers to have access to common constants - */ -public interface WsddXmlMapperI extends WebServiceCommonXmlMapperI -{ - public String WEBSERVICES = "webservices";//$NON-NLS-1$ - public String WEBSERVICE_DESCRIPTION = "webservice-description";//$NON-NLS-1$ - public String WEBSERVICE_DESCRIPTION_NAME = "webservice-description-name";//$NON-NLS-1$ - public String PORT_COMPONENT = "port-component";//$NON-NLS-1$ - public String PORT_COMPONENT_NAME = "port-component-name";//$NON-NLS-1$ - public String WSDL_PORT = "wsdl-port";//$NON-NLS-1$ - public String SERVICE_IMPL_BEAN = "service-impl-bean";//$NON-NLS-1$ - public String SERVLET_LINK = "servlet-link";//$NON-NLS-1$ - //EJB_LINK is defined in DeploymentDescriptorXmlMapperI - //public String EJB_LINK = "ejb-link"; - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/CollectingErrorHandler.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/CollectingErrorHandler.java deleted file mode 100644 index 31337e73b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/CollectingErrorHandler.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - - - -import java.util.ArrayList; -import java.util.List; - -import org.xml.sax.ErrorHandler; -import org.xml.sax.SAXException; -import org.xml.sax.SAXParseException; -/** - * Insert the type's description here. - * Creation date: (03/19/01 11:10:38 AM) - * @author: Administrator - */ -public class CollectingErrorHandler implements ErrorHandler { - protected List caughtExceptions; -/** - * CollectingErrorHandler constructor comment. - */ -public CollectingErrorHandler() { - super(); -} -/** - * @see org.xml.sax.ErrorHandler - */ -public void error(SAXParseException exception) throws SAXException { - getCaughtExceptions().add(exception); -} -/** - * @see org.xml.sax.ErrorHandler - */ -public void fatalError(SAXParseException exception) throws SAXException { - getCaughtExceptions().add(exception); -} -public List getCaughtExceptions() { - if (caughtExceptions == null) { - caughtExceptions = new ArrayList(); - } - return caughtExceptions; -} - -/** - * @see org.xml.sax.ErrorHandler - */ -public void warning(SAXParseException exception) throws SAXException { - getCaughtExceptions().add(exception); -} -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/DeploymentDescriptorXmlMapperI.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/DeploymentDescriptorXmlMapperI.java deleted file mode 100644 index 63218d104..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/DeploymentDescriptorXmlMapperI.java +++ /dev/null @@ -1,102 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - - - - -/** - * This interface represents a catalog of all the tag names which may be shared in - * a deployment descriptor for EJBJars, ears, and wars. Interface shared by readers and - * writers to have access to common constants - */ - -public interface DeploymentDescriptorXmlMapperI { - String DESCRIPTION = "description";//$NON-NLS-1$ - String DISPLAY_NAME = "display-name";//$NON-NLS-1$ - String EJB_LINK = "ejb-link";//$NON-NLS-1$ - String ENV_ENTRY = "env-entry";//$NON-NLS-1$ - String ENV_ENTRY_NAME = "env-entry-name";//$NON-NLS-1$ - String ENV_ENTRY_TYPE = "env-entry-type";//$NON-NLS-1$ - String ENV_ENTRY_VALUE = "env-entry-value";//$NON-NLS-1$ - String EJB_LOCAL_REF = "ejb-local-ref"; //$NON-NLS-1$ // J2EE1.3 - String EJB_REF = "ejb-ref";//$NON-NLS-1$ - String EJB_REF_NAME = "ejb-ref-name";//$NON-NLS-1$ - String EJB_REF_TYPE = "ejb-ref-type";//$NON-NLS-1$ - String HOME = "home";//$NON-NLS-1$ - String ICON = "icon";//$NON-NLS-1$ - String ID = "id";//$NON-NLS-1$ - String LARGE_ICON = "large-icon";//$NON-NLS-1$ - String LARGE_ICON_PATH = "icon/large-icon";//$NON-NLS-1$ - String LOCAL = "local";//$NON-NLS-1$ // J2EE1.3 - String LOCAL_HOME = "local-home";//$NON-NLS-1$ // J2EE1.3 - String REMOTE = "remote";//$NON-NLS-1$ - String RES_AUTH = "res-auth";//$NON-NLS-1$ - String RES_REF_NAME = "res-ref-name";//$NON-NLS-1$ - String RES_SHARING_SCOPE = "res-sharing-scope";//$NON-NLS-1$ // J2EE1.3 - String RES_TYPE = "res-type";//$NON-NLS-1$ - String RESOURCE_ENV_REF = "resource-env-ref"; //$NON-NLS-1$ // J2EE1.3 - String RESOURCE_ENV_REF_NAME = "resource-env-ref-name";//$NON-NLS-1$ // J2EE1.3 - String RESOURCE_ENV_REF_TYPE = "resource-env-ref-type";//$NON-NLS-1$ // J2EE1.3 - String RESOURCE_REF = "resource-ref";//$NON-NLS-1$ - String ROLE_LINK = "role-link";//$NON-NLS-1$ - String ROLE_NAME = "role-name";//$NON-NLS-1$ - String RUN_AS = "run-as"; //$NON-NLS-1$ // J2EE1.3 - String SECURITY_IDENTITY = "security-identity"; //$NON-NLS-1$ // J2EE1.3 - String SECURITY_ROLE = "security-role";//$NON-NLS-1$ - String SECURITY_ROLE_REF = "security-role-ref";//$NON-NLS-1$ - String SMALL_ICON = "small-icon";//$NON-NLS-1$ - String SMALL_ICON_PATH = "icon/small-icon";//$NON-NLS-1$ - String USE_CALLER_IDENTITY = "use-caller-identity";//$NON-NLS-1$ // J2EE1.3 - - - // J2EE 1.4 - String LANG = "xml:lang";//$NON-NLS-1$ - String DEPLOY_EXT = "deployment-extension"; //$NON-NLS-1$ // J2EE1.4 - String EXT_ELEMENT = "extension-element"; //$NON-NLS-1$ // J2EE1.4 - String MESSAGE_DEST_REF = "message-destination-ref";//$NON-NLS-1$ // J2EE1.4 - String MESSAGE_DEST_REF_NAME = "message-destination-ref-name";//$NON-NLS-1$ // J2EE1.4 - String MESSAGE_DEST_TYPE = "message-destination-type";//$NON-NLS-1$ // J2EE1.4 - String MESSAGE_DEST_LINK = "message-destination-link"; //$NON-NLS-1$ // J2EE1.4 - String MESSAGE_DEST_USAGE = "message-destination-usage";//$NON-NLS-1$ // J2EE1.4 - String MESSAGE_DEST = "message-destination"; //$NON-NLS-1$ // J2EE1.4 - String MESSAGE_DEST_NAME = "message-destination-name"; //$NON-NLS-1$ // J2EE1.4 - String SERVICE_REF = "service-ref";//$NON-NLS-1$ - String SERVICE_REF_NAME = "service-ref-name";//$NON-NLS-1$ - String SERVICE_INTERFACE = "service-interface";//$NON-NLS-1$ - String WSDL_FILE = "wsdl-file";//$NON-NLS-1$ - String JAXRPC_MAPPING_FILE = "jaxrpc-mapping-file";//$NON-NLS-1$ - String SERVICE_QNAME = "service-qname";//$NON-NLS-1$ - String PORT_COMPONENT_REF = "port-component-ref";//$NON-NLS-1$ - String HANDLER = "handler";//$NON-NLS-1$ - String SERVICE_ENPOINT_INTERFACE = "service-endpoint-interface";//$NON-NLS-1$ - String PORT_COMPONENT_LINK = "port-component-link";//$NON-NLS-1$ - String HANDLER_NAME = "handler-name";//$NON-NLS-1$ - String HANDLER_CLASS = "handler-class";//$NON-NLS-1$ - String HANDLER_INIT_PARAM = "init-param";//$NON-NLS-1$ - String SOAP_HEADER = "soap-header";//$NON-NLS-1$ - String SOAP_ROLE = "soap-role";//$NON-NLS-1$ - String PORT_NAME = "port-name";//$NON-NLS-1$ - String VERSION = "version";//$NON-NLS-1$ - String XML_NS = "xmlns";//$NON-NLS-1$ - String XML_NS_XSI = "xmlns:xsi";//$NON-NLS-1$ - String XSI_SCHEMA_LOCATION = "xsi:schemaLocation";//$NON-NLS-1$ - String NAMESPACE = "namespace";//$NON-NLS-1$ - String MUSTUNDERSTAND = "mustUnderstand";//$NON-NLS-1$ - String PARAM_NAME = "param-name";//$NON-NLS-1$ - String PARAM_VALUE = "param-value";//$NON-NLS-1$ - String LISTENER_CLASS = "listener-class";//$NON-NLS-1$ // Servlet2.3 - - - -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/EarDeploymentDescriptorXmlMapperI.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/EarDeploymentDescriptorXmlMapperI.java deleted file mode 100644 index 45c82e298..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/EarDeploymentDescriptorXmlMapperI.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - - - -/** - * This interface represents a catalog of all the tag names which occur in - * an EAR deployment descriptor. Interface shared by readers and - * writers to have access to common constants - */ -public interface EarDeploymentDescriptorXmlMapperI extends DeploymentDescriptorXmlMapperI { - String ALT_DD = "alt-dd";//$NON-NLS-1$ - String APPLICATION = "application";//$NON-NLS-1$ - String CONTEXT_ROOT = "context-root";//$NON-NLS-1$ - String EJB = "ejb";//$NON-NLS-1$ - String JAVA = "java";//$NON-NLS-1$ - String MODULE = "module";//$NON-NLS-1$ - String WEB = "web";//$NON-NLS-1$ - String WEB_URI = "web-uri";//$NON-NLS-1$ - String CONNECTOR = "connector";//$NON-NLS-1$ -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/EjbDeploymentDescriptorXmlMapperI.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/EjbDeploymentDescriptorXmlMapperI.java deleted file mode 100644 index b57ecb14c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/EjbDeploymentDescriptorXmlMapperI.java +++ /dev/null @@ -1,85 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - - - -/** - * This interface represents a catalog of all the tag names which occur in - * an EJB Jar deployment descriptor. Interface shared by readers and - * writers to have access to common constants - */ - -public interface EjbDeploymentDescriptorXmlMapperI extends DeploymentDescriptorXmlMapperI { - String ABSTRACT_SCHEMA_NAME = "abstract-schema-name"; //$NON-NLS-1$ // EJB2.0 - String ACKNOWLEDGE_MODE = "acknowledge-mode";//$NON-NLS-1$ // EJB2.0 - String ASSEMBLY_DESCRIPTOR = "assembly-descriptor";//$NON-NLS-1$ - String BEAN = "Bean";//$NON-NLS-1$ - String CASCADE_DELETE = "cascade-delete";//$NON-NLS-1$ // EJB2.0 - String CMP_FIELD = "cmp-field";//$NON-NLS-1$ - String CMP_VERSION = "cmp-version"; //$NON-NLS-1$ // EJB2.0 - String CMR_FIELD = "cmr-field"; //$NON-NLS-1$ // EJB2.0 - String CMR_FIELD_NAME = "cmr-field-name";//$NON-NLS-1$ // EJB2.0 - String CMR_FIELD_TYPE = "cmr-field-type";//$NON-NLS-1$ // EJB2.0 - String CONTAINER = "Container";//$NON-NLS-1$ - String CONTAINER_TRANSACTION = "container-transaction";//$NON-NLS-1$ - String DESTINATION_TYPE = "destination-type"; //$NON-NLS-1$ // EJB2.0 - String EJB_CLASS = "ejb-class";//$NON-NLS-1$ - String EJB_CLIENT_JAR = "ejb-client-jar";//$NON-NLS-1$ - String EJB_JAR = "ejb-jar";//$NON-NLS-1$ - String EJB_NAME = "ejb-name";//$NON-NLS-1$ - String EJB_QL = "ejb-ql"; //$NON-NLS-1$ // EJB2.0 - String EJB_RELATION = "ejb-relation";//$NON-NLS-1$ // EJB2.0 - String EJB_RELATION_NAME = "ejb-relation-name"; //$NON-NLS-1$ // EJB2.0 - String EJB_RELATIONSHIP_ROLE = "ejb-relationship-role";//$NON-NLS-1$ // EJB2.0 - String EJB_RELATIONSHIP_ROLE_NAME = "ejb-relationship-role-name";//$NON-NLS-1$ // EJB2.0 - String ENTERPRISE_BEANS = "enterprise-beans";//$NON-NLS-1$ - String ENTITY = "entity";//$NON-NLS-1$ - String EXCLUDE_LIST = "exclude-list"; //$NON-NLS-1$// EJB2.0 - MODELED??? - String FIELD_NAME = "field-name";//$NON-NLS-1$ - String MESSAGE_DRIVEN = "message-driven"; //$NON-NLS-1$ // EJB2.0 - String MESSAGE_DRIVEN_DESTINATION = "message-driven-destination"; //$NON-NLS-1$// EJB2.0 - String MESSAGE_SELECTOR = "message-selector"; //$NON-NLS-1$ // EJB2.0 - String METHOD = "method";//$NON-NLS-1$ - String METHOD_INTF = "method-intf";//$NON-NLS-1$ - String METHOD_NAME = "method-name";//$NON-NLS-1$ - String METHOD_PARAM = "method-param";//$NON-NLS-1$ - String METHOD_PARAMS = "method-params";//$NON-NLS-1$ - String METHOD_PERMISSION = "method-permission";//$NON-NLS-1$ - String MULTIPLICITY = "multiplicity";//$NON-NLS-1$ // EJB2.0 - String PERSISTENCE_TYPE = "persistence-type";//$NON-NLS-1$ - String PRIM_KEY_CLASS = "prim-key-class";//$NON-NLS-1$ - String PRIMKEY_FIELD = "primkey-field";//$NON-NLS-1$ - String REENTRANT = "reentrant";//$NON-NLS-1$ - String RELATIONSHIP_ROLE_SOURCE = "relationship-role-source";//$NON-NLS-1$ // EJB2.0 - String RELATIONSHIPS = "relationships"; //$NON-NLS-1$ // EJB2.0 - String RESULT_TYPE_MAPPING = "result-type-mapping"; //$NON-NLS-1$ // EJB2.0 - String QUERY = "query"; //$NON-NLS-1$ // EJB2.0 - String QUERY_METHOD = "query-method"; //$NON-NLS-1$ // EJB2.0 - String SESSION = "session";//$NON-NLS-1$ - String SESSION_TYPE = "session-type";//$NON-NLS-1$ - String SUBSCRIPTION_DURABILITY = "subscription-durability";//$NON-NLS-1$ // EJB2.0 - String TRANS_ATTRIBUTE = "trans-attribute";//$NON-NLS-1$ - String TRANSACTION_TYPE = "transaction-type";//$NON-NLS-1$ - String UNCHECKED = "unchecked"; //$NON-NLS-1$ // EJB2.0 - - //EJB 2.1 - String SERVICE_ENDPOINT = "service-endpoint";//$NON-NLS-1$ - String MESSAGING_TYPE = "messaging-type";//$NON-NLS-1$ - String MESSAGE_DEST_TYPE = "message-destination-type";//$NON-NLS-1$ - String MESSAGE_DEST_LINK = "message-destination-link";//$NON-NLS-1$ - String ACTIVATION_CONF = "activation-config";//$NON-NLS-1$ - String ACTIVATION_CONF_PROPERTY = "activation-config-property";//$NON-NLS-1$ - String ACTIVATION_CONF_PROPERTY_NAME = "activation-config-property-name";//$NON-NLS-1$ - String ACTIVATION_CONF_PROPERTY_VALUE = "activation-config-property-value";//$NON-NLS-1$ -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/GeneralXmlDocumentReader.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/GeneralXmlDocumentReader.java deleted file mode 100644 index 4cba97aff..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/GeneralXmlDocumentReader.java +++ /dev/null @@ -1,329 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - -import java.lang.reflect.InvocationTargetException; - -import org.eclipse.jem.util.logger.proxy.Logger; -import org.w3c.dom.Document; -import org.xml.sax.EntityResolver; -import org.xml.sax.ErrorHandler; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; -import org.xml.sax.SAXParseException; -/** - * Insert the type's description here. - * Creation date: (4/11/2001 11:58:50 AM) - * @author: Administrator - */ -public class GeneralXmlDocumentReader -{ - protected InputSource inputSource; - protected EntityResolver entityResolver; - protected ErrorHandler errorHandler; - protected boolean doValidate = false; - protected boolean doAllowJavaEncodings = false; - -/** - * GeneralXmlDocumentReader constructor comment. - */ - public GeneralXmlDocumentReader() - { - super(); - } -/** - * GeneralXmlDocumentReader constructor comment. - */ - public GeneralXmlDocumentReader(InputSource source) - { - super(); - setInputSource(source); - } -/** - * GeneralXmlDocumentReader constructor comment. - */ - public GeneralXmlDocumentReader(InputSource source, EntityResolver resolver, ErrorHandler handler) - { - super(); - setInputSource(source); - setEntityResolver(resolver); - setErrorHandler(handler); - } -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:04:18 PM) - * @return org.xml.sax.EntityResolver - */ - protected org.xml.sax.EntityResolver createDefaultEntityResolver() - { - return null; - } -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:04:18 PM) - * @return org.xml.sax.ErrorHandler - */ - protected org.xml.sax.ErrorHandler createDefaultErrorHandler() - { - return new ErrorHandler() { - /* (non-Javadoc) - * @see org.xml.sax.ErrorHandler#error(org.xml.sax.SAXParseException) - */ - public void error(SAXParseException exception) throws SAXException { - throw exception; - } - /* (non-Javadoc) - * @see org.xml.sax.ErrorHandler#fatalError(org.xml.sax.SAXParseException) - */ - public void fatalError(SAXParseException exception) throws SAXException { - throw exception; - } - /* (non-Javadoc) - * @see org.xml.sax.ErrorHandler#warning(org.xml.sax.SAXParseException) - */ - public void warning(SAXParseException exception) throws SAXException { - Logger.getLogger().logWarning(exception); - } - }; - } - protected javax.xml.parsers.DocumentBuilder createNewDOMParser() - { - try - { - javax.xml.parsers.DocumentBuilderFactory dbf = javax.xml.parsers.DocumentBuilderFactory.newInstance(); - setFeatures(dbf); - return dbf.newDocumentBuilder(); - - } - catch (Exception ie) - { - handleException(J2EEXMLResourceHandler.getString(XMLParseResourceHandler.failed_instantiating_EXC_, (new Object[] {"Failed to instantiate parser"})), ie); //$NON-NLS-1$ // = "Failed instantiating: " - } - return null; - } -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:01:34 PM) - * @return boolean - */ - public boolean doAllowJavaEncodings() - { - return doAllowJavaEncodings; - } -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:01:34 PM) - * @return boolean - */ - public boolean doValidate() - { - return doValidate; - } -/** - * Insert the method's description here. - * Creation date: (4/11/2001 1:34:14 PM) - * @return java.lang.ClassLoader - */ - public java.lang.ClassLoader getClassLoader() - { - ClassLoader cl = getClass().getClassLoader(); - if (cl == null) - cl = Thread.currentThread().getContextClassLoader(); - if (cl == null) - cl = ClassLoader.getSystemClassLoader(); - - return cl; - } - public Document getDocument() - { - return parseDocument(); - } - - protected Document getDocument(javax.xml.parsers.DocumentBuilder domParser) - { - return domParser.newDocument(); - } - - -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:04:18 PM) - * @return org.xml.sax.EntityResolver - */ - public org.xml.sax.EntityResolver getEntityResolver() - { - if (entityResolver == null) - entityResolver = createDefaultEntityResolver(); - return entityResolver; - } -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:04:18 PM) - * @return org.xml.sax.ErrorHandler - */ - public org.xml.sax.ErrorHandler getErrorHandler() - { - if (errorHandler == null) - { - errorHandler = createDefaultErrorHandler(); - } - return errorHandler; - } - -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:04:18 PM) - * @return org.xml.sax.InputSource - */ - public org.xml.sax.InputSource getInputSource() - { - return inputSource; - } - - protected void handleException(String aMessage, Throwable anException) - { - if (anException instanceof InvocationTargetException) - { - InvocationTargetException invocationEx = - (InvocationTargetException) anException; - if (invocationEx.getTargetException() != null) - handleException(aMessage, invocationEx.getTargetException()); - } - else - primHandleException(aMessage, anException); - } - - protected Document parse(javax.xml.parsers.DocumentBuilder domParser, InputSource is) - { - try - { - return domParser.parse(is); - } - catch (org.xml.sax.SAXException ex) - { - handleException(J2EEXMLResourceHandler.getString(XMLParseResourceHandler.failed_instantiating_EXC_, (new Object[] {"SAX Parser error"})), ex); //$NON-NLS-1$ // = "Failed instantiating: " - - } - catch (java.io.IOException ex) - { - handleException(J2EEXMLResourceHandler.getString(XMLParseResourceHandler.failed_instantiating_EXC_, (new Object[] {"IO Exception on input stream"})), ex); //$NON-NLS-1$ // = "Failed instantiating: " - } - return null; - } - - - public Document parseDocument() - { - ClassLoader prevClassLoader = Thread.currentThread().getContextClassLoader(); - try { - Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); - javax.xml.parsers.DocumentBuilder parser = createNewDOMParser(); - setEntityResolver(parser); - setErrorHandler(parser); - return parse(parser, getInputSource()); - } finally { - Thread.currentThread().setContextClassLoader(prevClassLoader); - } - - - - - - } - - protected void primHandleException(String aMessage, Throwable anException) - { - org.eclipse.jem.util.logger.proxy.Logger.getLogger().logError(anException); - throw new RuntimeException(aMessage); - - } -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:01:34 PM) - * @param newAllowJavaEncodings boolean - */ - public void setAllowJavaEncodings(boolean newAllowJavaEncodings) - { - doAllowJavaEncodings = newAllowJavaEncodings; - } - - protected void setEntityResolver(javax.xml.parsers.DocumentBuilder domParser) - { - if (getEntityResolver() != null) - { - domParser.setEntityResolver(getEntityResolver()); - } - } - - -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:04:18 PM) - * @param newEntityResolver org.xml.sax.EntityResolver - */ - public void setEntityResolver(org.xml.sax.EntityResolver newEntityResolver) - { - entityResolver = newEntityResolver; - } - - - protected void setErrorHandler(javax.xml.parsers.DocumentBuilder domParser) - { - if (getErrorHandler() != null) - { - domParser.setErrorHandler(getErrorHandler()); - } - } - - -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:04:18 PM) - * @param newErrorHandler org.xml.sax.ErrorHandler - */ - public void setErrorHandler(org.xml.sax.ErrorHandler newErrorHandler) - { - errorHandler = newErrorHandler; - } - - protected void setFeatures(javax.xml.parsers.DocumentBuilderFactory domParser) - { - try { - domParser.setValidating(doValidate()); - domParser.setAttribute("http://apache.org/xml/features/allow-java-encodings", new Boolean(doAllowJavaEncodings())); //$NON-NLS-1$ - domParser.setExpandEntityReferences(true); - } catch(IllegalArgumentException e) { - //Ignore - } - } - - -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:04:18 PM) - * @param newInputSource org.xml.sax.InputSource - */ - public void setInputSource(org.xml.sax.InputSource newInputSource) - { - inputSource = newInputSource; - } -/** - * Insert the method's description here. - * Creation date: (4/11/2001 12:01:34 PM) - * @param newValidate boolean - */ - public void setValidate(boolean newValidate) - { - doValidate = newValidate; - } -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/J2EEXMLResourceHandler.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/J2EEXMLResourceHandler.java deleted file mode 100644 index 92f8095fd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/J2EEXMLResourceHandler.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - -import org.eclipse.osgi.util.NLS; - -public class J2EEXMLResourceHandler extends NLS { - private static final String BUNDLE_NAME = "j2eexml";//$NON-NLS-1$ - - private J2EEXMLResourceHandler() { - // Do not instantiate - } - - public static String Valid_values_are___EXC_; - public static String RAR_file_support__IO_excep_EXC_; - public static String Failure_occurred_reading_x_EXC_; - public static String missing_req_field_EXC_; - public static String An_IO_Exception_occurred_w_EXC_; - public static String must_be_boolean_EXC_; - public static String unsupported_encoding_EXC_; - public static String rar_dtd_not_found_EXC_; - public static String empty_collection_EXC_; - public static String must_be_int_EXC_; - public static String Invalid_value_for__EXC_; - public static String An_Exception_occurred_whil_EXC_; - public static String dtd_not_found_EXC_; - public static String Not_supported_in_this_rele_EXC_; - public static String io_ex_saving_EXC_; - public static String could_not_create_file_EXC_; - public static String unsupported_type_EXC_; - public static String Key1; - - static { - NLS.initializeMessages(BUNDLE_NAME, J2EEXMLResourceHandler.class); - } - - public static String getString(String key, Object[] args) { - return NLS.bind(key, args); - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/J2EEXmlDtDEntityResolver.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/J2EEXmlDtDEntityResolver.java deleted file mode 100644 index ec6b64d93..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/J2EEXmlDtDEntityResolver.java +++ /dev/null @@ -1,135 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - - - -import java.io.FileNotFoundException; -import java.net.URL; -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; - - -public class J2EEXmlDtDEntityResolver implements org.xml.sax.EntityResolver { - - /** All the dtds that this resolver knows about; import strategies register these - * at startup */ - protected static Map supportedDtDs; - static { - registerDtD("http://www.w3.org/2001/xml.xsd", "xml.xsd"); //$NON-NLS-1$ //$NON-NLS-2$ - registerDtD("XMLSchema.dtd", "XMLSchema.dtd"); //$NON-NLS-1$ //$NON-NLS-2$ - registerDtD("datatypes.dtd", "datatypes.dtd"); //$NON-NLS-1$ //$NON-NLS-2$ - } - public static J2EEXmlDtDEntityResolver INSTANCE = new J2EEXmlDtDEntityResolver(); -/** - * EjbXmlEntityResolver constructor comment. - */ -public J2EEXmlDtDEntityResolver() { - super(); -} -public static Map getSupportedDtDs() { - if (supportedDtDs == null) - supportedDtDs = new HashMap(); - return supportedDtDs; -} -/** - * Maps the system id for the dtd to a local id to be retrieved loaded from the class path - */ -public static void registerDtD(String systemID, String localID) { - //Make sure local file exists on classpath first. - - ClassLoader loader = J2EEXmlDtDEntityResolver.class.getClassLoader(); - URL url = null; - if (loader == null) { - url = ClassLoader.getSystemResource(localID); - } else { - url = loader.getResource(localID); - } - if (url == null) { - return; - } - getSupportedDtDs().put(systemID, localID); - getSupportedDtDs().put(getShortName(systemID), localID); -} -/** - * for a system id with a URL that begins with "http://java.sun.com/", check to see if that is a recognized dtd; - * if so, load the dtd from the class path using the value of the registered dtd. - * - * @return an Input source on a locally resolved dtd, or null of the systemid does not start with "http://java.sun.com/" - * - * @throws SAXException with a nested NotSupportedException if the dtd is not recognized - * @throws FileNotFoundException if the resolved dtd cannot be loaded from the classpath - */ -public org.xml.sax.InputSource resolveEntity(String publicId, String systemId) throws java.io.IOException, org.xml.sax.SAXException { - String localResourceName = null; - //boolean isJavaSytemId = false; - if (shouldBeRegistered(systemId)) { - localResourceName = (String)getSupportedDtDs().get(systemId); - //isJavaSytemId = true; - } else { - String shortName = getShortName(systemId); - localResourceName = (String)getSupportedDtDs().get(shortName); - if (localResourceName != null) - systemId = localResourceName; - } - - if (localResourceName == null) { - return null; - } - ClassLoader loader = getClass().getClassLoader(); - URL url = null; - if (loader == null) { - url = ClassLoader.getSystemResource(localResourceName); - } else { - url = loader.getResource(localResourceName); - } - - - if (url == null) { - String message = J2EEXMLResourceHandler.getString(J2EEXMLResourceHandler.dtd_not_found_EXC_, (new Object[] {localResourceName}));// = "Could not parse xml because the resolved resource "{0}" could not be found in classpath" - throw new java.io.FileNotFoundException(message); - } - - InputSource result = new InputSource(url.toString()); - result.setPublicId(publicId); - // force the encoding to be UTF8 - result.setEncoding("UTF-8"); //$NON-NLS-1$ - - return result; -} -protected boolean shouldBeRegistered(String systemId) { - - return systemId.startsWith(J2EEConstants.JAVA_SUN_COM_URL) - || systemId.startsWith(J2EEConstants.WWW_W3_ORG_URL) - || systemId.startsWith(J2EEConstants.WWW_IBM_COM_URL); -} - -/** - * Returns the filename from the uri, or the segment after the last occurrence of a separator - */ -private static String getShortName(String uri) { - String tempURI = uri.replace('\\', '/'); - while (tempURI.endsWith("/")) //$NON-NLS-1$ - tempURI = tempURI.substring(0, tempURI.length()-1); - int lastIndex = tempURI.lastIndexOf('/'); - if (lastIndex == -1) - return uri; - return uri.substring(lastIndex+1, tempURI.length()); -} -} - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/MissingRequiredDataException.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/MissingRequiredDataException.java deleted file mode 100644 index 4d1f229a8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/MissingRequiredDataException.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - - - -public class MissingRequiredDataException extends RuntimeException { - -private static final long serialVersionUID = -301039854542561304L; -/** - * MissingRequiredDataException constructor comment. - */ -public MissingRequiredDataException() { - super(); -} -/** - * MissingRequiredDataException constructor comment. - * @param s java.lang.String - */ -public MissingRequiredDataException(String s) { - super(s); -} -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/NotSupportedException.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/NotSupportedException.java deleted file mode 100644 index dbb5d1a2f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/NotSupportedException.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - -import org.eclipse.jst.j2ee.internal.WrappedRuntimeException; - - - - -public class NotSupportedException extends WrappedRuntimeException { -private static final long serialVersionUID = -3535594720987598196L; -/** - * NotSupportedException constructor comment. - */ -public NotSupportedException() { - super(); -} -/** - * NotSupportedException constructor comment. - * @param e java.lang.Exception - */ -public NotSupportedException(Exception e) { - super(e); -} -/** - * NotSupportedException constructor comment. - * @param s java.lang.String - */ -public NotSupportedException(String s) { - super(s); -} -/** - * NotSupportedException constructor comment. - * @param s java.lang.String - * @param e java.lang.Exception - */ -public NotSupportedException(String s, Exception e) { - super(s, e); -} -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/RarDeploymentDescriptorXmlMapperI.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/RarDeploymentDescriptorXmlMapperI.java deleted file mode 100644 index 78993cebb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/RarDeploymentDescriptorXmlMapperI.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - - - -/** - * This interface represents a catalog of all the tag names which occur in - * an RAR deployment descriptor. Interface shared by readers and - * writers to have access to common constants - */ -public interface RarDeploymentDescriptorXmlMapperI extends DeploymentDescriptorXmlMapperI { - public String AUTH_MECHANISM = "authentication-mechanism";//$NON-NLS-1$ - public String AUTH_MECH_TYPE = "authentication-mechanism-type";//$NON-NLS-1$ - public String CONFIG_PROPERTY = "config-property";//$NON-NLS-1$ - public String CONFIG_PROPERTY_NAME = "config-property-name";//$NON-NLS-1$ - public String CONFIG_PROPERTY_VALUE = "config-property-value";//$NON-NLS-1$ - public String CONFIG_PROPERTY_TYPE = "config-property-type";//$NON-NLS-1$ - public String CONNECTOR = "connector";//$NON-NLS-1$ - public String CONNECTIONFACTORY_INTERFACE = "connectionfactory-interface";//$NON-NLS-1$ - public String CONNECTIONFACTORY_IMPL_CLASS = "connectionfactory-impl-class";//$NON-NLS-1$ - public String CONNECTION_INTERFACE = "connection-interface";//$NON-NLS-1$ - public String CONNECTION_IMPL_CLASS = "connection-impl-class";//$NON-NLS-1$ - public String CREDENTIAL_INTERFACE = "credential-interface";//$NON-NLS-1$ - public String EIS_TYPE = "eis-type";//$NON-NLS-1$ - public String LICENSE = "license";//$NON-NLS-1$ - public String LICENSE_REQUIRED = "license-required";//$NON-NLS-1$ - public String MANAGEDCONNECTIONFACTORY_CLASS = "managedconnectionfactory-class";//$NON-NLS-1$ - public String REAUTHENTICATION_SUPPORT = "reauthentication-support";//$NON-NLS-1$ - public String RESOURCEADAPTER = "resourceadapter";//$NON-NLS-1$ - public String SECURITY_PERMISSION = "security-permission";//$NON-NLS-1$ - public String SECURITY_PERMISSION_SPEC = "security-permission-spec";//$NON-NLS-1$ - public String SPEC_VERSION = "spec-version";//$NON-NLS-1$ - public String TRANSACTION_SUPPORT = "transaction-support";//$NON-NLS-1$ - public String VENDOR_NAME = "vendor-name";//$NON-NLS-1$ - //JCA 1.5 - public String RESOURCEADAPTER_VERSION = "resourceadapter-version";//$NON-NLS-1$ - public String RESOURCEADAPTER_CLASS = "resourceadapter-class";//$NON-NLS-1$ - public String OUTBOUND_RESOURCEADAPTER = "outbound-resourceadapter";//$NON-NLS-1$ - public String INBOUND_RESOURCEADAPTER = "inbound-resourceadapter";//$NON-NLS-1$ - - public String CONNECTION_DEFINITION = "connection-definition";//$NON-NLS-1$ - public String MESSAGEADAPTER = "messageadapter";//$NON-NLS-1$ - public String MESSAGELISTENER = "messagelistener";//$NON-NLS-1$ - public String MESSAGELISTENER_TYPE = "messagelistener-type";//$NON-NLS-1$ - public String ACTIVATIONSPEC = "activationspec";//$NON-NLS-1$ - public String ACTIVATIONSPEC_CLASS = "activationspec-class";//$NON-NLS-1$ - public String REQUIRED_CONFIG_PROPERTY = "required-config-property";//$NON-NLS-1$ - - public String ADMINOBJECT = "adminobject";//$NON-NLS-1$ - public String ADMINOBJECT_CLASS = "adminobject-class";//$NON-NLS-1$ - public String ADMINOBJECT_INTERFACE = "adminobject-interface"; //$NON-NLS-1$ -} - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/WarDeploymentDescriptorXmlMapperI.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/WarDeploymentDescriptorXmlMapperI.java deleted file mode 100644 index acf0eaee3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/WarDeploymentDescriptorXmlMapperI.java +++ /dev/null @@ -1,81 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - - - -/** - * This interface represents a catalog of all the tag names which occur in - * an WAR deployment descriptor. Interface shared by readers and - * writers to have access to common constants - */ -public interface WarDeploymentDescriptorXmlMapperI extends DeploymentDescriptorXmlMapperI { - public String AUTH_CONSTRAINT = "auth-constraint";//$NON-NLS-1$ - public String AUTH_METHOD = "auth-method";//$NON-NLS-1$ - public String CONTEXT_PARAM = "context-param";//$NON-NLS-1$ - public String DISTRIBUTABLE = "distributable";//$NON-NLS-1$ - public String ERROR_CODE = "error-code";//$NON-NLS-1$ - public String ERROR_PAGE = "error-page";//$NON-NLS-1$ - public String EXCEPTION_TYPE = "exception-type";//$NON-NLS-1$ - public String EXTENSION = "extension";//$NON-NLS-1$ - public String FILTER = "filter"; //$NON-NLS-1$ // Servlet2.3 - public String FILTER_MAPPING = "filter-mapping";//$NON-NLS-1$ // Servlet2.3 - public String FILTER_NAME = "filter-name"; //$NON-NLS-1$ // Servlet2.3 - public String FILTER_CLASS = "filter-class";//$NON-NLS-1$ // Servlet2.3 - public String FORM_ERROR_PAGE = "form-error-page";//$NON-NLS-1$ - public String FORM_LOGIN_CONFIG = "form-login-config";//$NON-NLS-1$ - public String FORM_LOGIN_PAGE = "form-login-page";//$NON-NLS-1$ - public String HTTP_METHOD = "http-method";//$NON-NLS-1$ - public String INIT_PARAM = "init-param";//$NON-NLS-1$ - public String JSP_FILE = "jsp-file";//$NON-NLS-1$ - public String LISTENER = "listener"; //$NON-NLS-1$ // Servlet2.3 - public String LOAD_ON_STARTUP = "load-on-startup";//$NON-NLS-1$ - public String LOCATION = "location";//$NON-NLS-1$ - public String LOGIN_CONFIG = "login-config";//$NON-NLS-1$ - public String MIME_MAPPING = "mime-mapping";//$NON-NLS-1$ - public String MIME_TYPE = "mime-type";//$NON-NLS-1$ - public String REALM_NAME = "realm-name";//$NON-NLS-1$ - public String SECURITY_CONSTRAINT = "security-constraint";//$NON-NLS-1$ - public String SERVLET = "servlet";//$NON-NLS-1$ - public String SERVLET_CLASS = "servlet-class";//$NON-NLS-1$ - public String SERVLET_MAPPING = "servlet-mapping";//$NON-NLS-1$ - public String SERVLET_NAME = "servlet-name";//$NON-NLS-1$ - public String SESSION_CONFIG = "session-config";//$NON-NLS-1$ - public String SESSION_TIMEOUT = "session-timeout";//$NON-NLS-1$ - public String TAGLIB = "taglib";//$NON-NLS-1$ - public String TAGLIB_LOCATION = "taglib-location";//$NON-NLS-1$ - public String TAGLIB_URI = "taglib-uri";//$NON-NLS-1$ - public String TRANSPORT_GUARANTEE = "transport-guarantee";//$NON-NLS-1$ - public String URL_PATTERN = "url-pattern";//$NON-NLS-1$ - public String USER_DATA_CONSTRAINT = "user-data-constraint";//$NON-NLS-1$ - public String WEB_APP = "web-app";//$NON-NLS-1$ - public String WEB_RESOURCE_COLLECTION = "web-resource-collection";//$NON-NLS-1$ - public String WEB_RESOURCE_NAME = "web-resource-name";//$NON-NLS-1$ - public String WELCOME_FILE = "welcome-file";//$NON-NLS-1$ - public String WELCOME_FILE_LIST = "welcome-file-list";//$NON-NLS-1$ - - public String DISPATCHER = "dispatcher";//$NON-NLS-1$ - public String LOCALE_ENCODING_MAPPING_LIST = "locale-encoding-mapping-list";//$NON-NLS-1$ - public String LOCALE_ENCODING_MAPPING = "locale-encoding-mapping";//$NON-NLS-1$ - public String LOCALE = "locale";//$NON-NLS-1$ - public String ENCODING = "encoding";//$NON-NLS-1$ - public String JSP_CONFIG = "jsp-config";//$NON-NLS-1$ - public String JSP_PROPERTY_GROUP = "jsp-property-group";//$NON-NLS-1$ - public String EL_IGNORED = "el-ignored";//$NON-NLS-1$ - public String PAGE_ENCODING = "page-encoding";//$NON-NLS-1$ - public String SCRIPTING_INVALID = "scripting-invalid";//$NON-NLS-1$ - public String IS_XML = "is-xml";//$NON-NLS-1$ - public String INCLUDE_PRELUDE = "include-prelude";//$NON-NLS-1$ - public String INCLUDE_CODA = "include-coda";//$NON-NLS-1$ - -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/WebServicesDeploymentDescriptorXmlMapperI.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/WebServicesDeploymentDescriptorXmlMapperI.java deleted file mode 100644 index 49868b6a9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/WebServicesDeploymentDescriptorXmlMapperI.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Aug 5, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal.xml; - -/** - * @author dfholttp - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public interface WebServicesDeploymentDescriptorXmlMapperI extends DeploymentDescriptorXmlMapperI{ - //1.3 specific WebServices DD - public String COMP_SCOPED_REFS = "component-scoped-refs";//$NON-NLS-1$ - public String COMP_COMPONENT_NAME = "component-name";//$NON-NLS-1$ - public String WEB_SERVICES_CLIENT = "webservicesclient";//$NON-NLS-1$ - public String LOCALPART = "localpart";//$NON-NLS-1$ - public String NAMESPACEURI = "namespaceURI";//$NON-NLS-1$ -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/XMLParseResourceHandler.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/XMLParseResourceHandler.java deleted file mode 100644 index e7ef7b772..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/XMLParseResourceHandler.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - -import org.eclipse.osgi.util.NLS; - -public final class XMLParseResourceHandler extends NLS { - - private static final String BUNDLE_NAME = "xmlparse";//$NON-NLS-1$ - - private XMLParseResourceHandler() { - // Do not instantiate - } - - public static String method_invoke_failed_EXC_; - public static String failed_to_load_EXC_; - public static String method_not_found_EXC_; - public static String failed_instantiating_EXC_; - public static String parse_exception_occured_EXC_; - - static { - NLS.initializeMessages(BUNDLE_NAME, XMLParseResourceHandler.class); - } -}
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/XmlDocumentReader.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/XmlDocumentReader.java deleted file mode 100644 index 9a75760da..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/XmlDocumentReader.java +++ /dev/null @@ -1,85 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.internal.xml; - - - -import java.io.InputStream; - -import org.eclipse.jst.j2ee.internal.WrappedRuntimeException; -import org.w3c.dom.Document; -import org.w3c.dom.DocumentType; -import org.xml.sax.EntityResolver; -import org.xml.sax.ErrorHandler; -import org.xml.sax.InputSource; -import org.xml.sax.SAXParseException; - -/** - * Insert the type's description here. - * Creation date: (02/21/01 4:34:13 PM) - * @author: Administrator - */ -public class XmlDocumentReader extends GeneralXmlDocumentReader { -/** - * XmlDocumentReader constructor comment. - */ -public XmlDocumentReader(InputSource source) { - super(source); - setFlagDefaults(); -} -/** - * XmlDocumentReader constructor comment. - */ -public XmlDocumentReader(InputSource source, EntityResolver resolver, ErrorHandler handler) { - super(source, resolver, handler); - setFlagDefaults(); -} -/** - * Insert the method's description here. - * Creation date: (03/19/01 10:13:26 AM) - * @return org.xml.sax.EntityResolver - */ -public org.xml.sax.EntityResolver createDefaultEntityResolver() { - return J2EEXmlDtDEntityResolver.INSTANCE; -} - -protected void handleException(String aMessage, Throwable anException) { - if (anException instanceof SAXParseException) - handleException(aMessage, (SAXParseException) anException); - else - super.handleException(aMessage, anException); -} -protected void handleException(String aMessage, SAXParseException parseException) { - primHandleException(J2EEXMLResourceHandler.getString(XMLParseResourceHandler.parse_exception_occured_EXC_, (new Object[] {new Integer(parseException.getLineNumber()), new Integer(parseException.getColumnNumber()) })), parseException); - //$NON-NLS-1$ = "An Exception occurred while parsing xml: {0} Line #: {1} :Column #: " -} -protected void primHandleException(String aMessage, Throwable anException) { - if (anException instanceof Exception) - throw new WrappedRuntimeException(aMessage, (Exception)anException); - super.primHandleException(aMessage, anException); -} -protected void setFlagDefaults() { - setAllowJavaEncodings(true); - setValidate(true); -} - public static DocumentType readDocumentType(InputStream in, String uri) { - InputSource source = new InputSource(in); - GeneralXmlDocumentReader aReader = new XmlDocumentReader(source); - aReader.setValidate(false); - Document aDocument = aReader.parseDocument(); - if (aDocument != null) - return aDocument.getDoctype(); - return null; - } - -} - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ActivationSpec.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ActivationSpec.java deleted file mode 100644 index a7e54f043..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ActivationSpec.java +++ /dev/null @@ -1,96 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Activation Spec</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The activationspecType specifies an activation - * specification. The information includes fully qualified - * Java class name of an activation specification and a set of - * required configuration property names. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.ActivationSpec#getActivationSpecClass <em>Activation Spec Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.ActivationSpec#getRequiredConfigProperties <em>Required Config Properties</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getActivationSpec() - * @model - * @generated - * @since 1.0 */ -public interface ActivationSpec extends EObject{ - /** - * Returns the value of the '<em><b>Activation Spec Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Activation Spec Class</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The element activationspec-class specifies the fully - * qualified Java class name of the activation - * specification class. This class must implement the - * javax.resource.spi.ActivationSpec interface. The - * implementation of this class is required to be a - * JavaBean. - * - * Example: - * <activationspec-class>com.wombat.ActivationSpecImpl - * </activationspec-class> - * <!-- end-model-doc --> - * @return the value of the '<em>Activation Spec Class</em>' attribute. - * @see #setActivationSpecClass(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getActivationSpec_ActivationSpecClass() - * @model - * @generated - */ - String getActivationSpecClass(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.ActivationSpec#getActivationSpecClass <em>Activation Spec Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Activation Spec Class</em>' attribute. - * @see #getActivationSpecClass() - * @generated - */ - void setActivationSpecClass(String value); - - /** - * Returns the value of the '<em><b>Required Config Properties</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Required Config Properties</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Required Config Properties</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getActivationSpec_RequiredConfigProperties() - * @model type="org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType" containment="true" - * @generated - */ - EList getRequiredConfigProperties(); - -} // ActivationSpec diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AdminObject.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AdminObject.java deleted file mode 100644 index 376ac13c9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AdminObject.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Admin Object</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The adminobjectType specifies information about an - * administered object. Administered objects are specific to a - * messaging style or message provider. This contains - * information on the Java type of the interface implemented by - * an administered object, its Java class name and its - * configuration properties. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.AdminObject#getAdminObjectInterface <em>Admin Object Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.AdminObject#getAdminObjectClass <em>Admin Object Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.AdminObject#getConfigProperties <em>Config Properties</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getAdminObject() - * @model - * @generated - * @since 1.0 */ -public interface AdminObject extends EObject{ - /** - * Returns the value of the '<em><b>Admin Object Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Admin Object Interface</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The element adminobject-interface specifies the - * fully qualified name of the Java type of the - * interface implemented by an administered object. - * - * Example: - * <adminobject-interface>javax.jms.Destination - * </adminobject-interface> - * <!-- end-model-doc --> - * @return the value of the '<em>Admin Object Interface</em>' attribute. - * @see #setAdminObjectInterface(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getAdminObject_AdminObjectInterface() - * @model - * @generated - */ - String getAdminObjectInterface(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.AdminObject#getAdminObjectInterface <em>Admin Object Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Admin Object Interface</em>' attribute. - * @see #getAdminObjectInterface() - * @generated - */ - void setAdminObjectInterface(String value); - - /** - * Returns the value of the '<em><b>Admin Object Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Admin Object Class</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The element adminobject-class specifies the fully - * qualified Java class name of an administered object. - * - * Example: - * <adminobject-class>com.wombat.DestinationImpl - * </adminobject-class> - * <!-- end-model-doc --> - * @return the value of the '<em>Admin Object Class</em>' attribute. - * @see #setAdminObjectClass(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getAdminObject_AdminObjectClass() - * @model - * @generated - */ - String getAdminObjectClass(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.AdminObject#getAdminObjectClass <em>Admin Object Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Admin Object Class</em>' attribute. - * @see #getAdminObjectClass() - * @generated - */ - void setAdminObjectClass(String value); - - /** - * Returns the value of the '<em><b>Config Properties</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.jca.ConfigProperty}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Config Properties</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Config Properties</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getAdminObject_ConfigProperties() - * @model type="org.eclipse.jst.j2ee.jca.ConfigProperty" containment="true" - * @generated - */ - EList getConfigProperties(); - -} // AdminObject diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AuthenticationMechanism.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AuthenticationMechanism.java deleted file mode 100644 index 82b8988a0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AuthenticationMechanism.java +++ /dev/null @@ -1,463 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * The element authentication-mechanism specifies an authentication mechanism supported by the resource adapter. Note that this support is for the resource adapter and not for the underlying EIS instance. The optional description specifies any resource adapter specific requirement for the support of security contract and authentication mechanism. - * - * Note that BasicPassword mechanism type should support the - * javax.resource.spi.security.PasswordCredential interface. - * The Kerbv5 mechanism type should support the - * javax.resource.spi.security.GenericCredential interface. - - * @since 1.0 */ -public interface AuthenticationMechanism extends EObject{ - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * Returns the value of the '<em><b>Authentication Mechanism</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Authentication Mechanism</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Authentication Mechanism</em>' attribute. - * @see #setAuthenticationMechanism(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getAuthenticationMechanism_AuthenticationMechanism() - * @model - * @generated - */ - String getAuthenticationMechanism(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.AuthenticationMechanism#getAuthenticationMechanism <em>Authentication Mechanism</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Authentication Mechanism</em>' attribute. - * @see #getAuthenticationMechanism() - * @generated - */ - void setAuthenticationMechanism(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the AuthenticationMechanismType attribute - * The authentication-mechanism-type specifies type of an authentication mechanism. - * - * The example values are: - * - BasicPassword - * - Kerbv5 - * - * Any additional security mechanisms are outside the scope of the - * Connector architecture specification. - - */ - AuthenticationMechanismType getAuthenticationMechanismType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.AuthenticationMechanism#getAuthenticationMechanismType <em>Authentication Mechanism Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Authentication Mechanism Type</em>' attribute. - * @see org.eclipse.jst.j2ee.jca.AuthenticationMechanismType - * @see #isSetAuthenticationMechanismType() - * @see #unsetAuthenticationMechanismType() - * @see #getAuthenticationMechanismType() - * @generated - */ - void setAuthenticationMechanismType(AuthenticationMechanismType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.jca.AuthenticationMechanism#getAuthenticationMechanismType <em>Authentication Mechanism Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetAuthenticationMechanismType() - * @see #getAuthenticationMechanismType() - * @see #setAuthenticationMechanismType(AuthenticationMechanismType) - * @generated - */ - void unsetAuthenticationMechanismType(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.jca.AuthenticationMechanism#getAuthenticationMechanismType <em>Authentication Mechanism Type</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Authentication Mechanism Type</em>' attribute is set. - * @see #unsetAuthenticationMechanismType() - * @see #getAuthenticationMechanismType() - * @see #setAuthenticationMechanismType(AuthenticationMechanismType) - * @generated - */ - boolean isSetAuthenticationMechanismType(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the CredentialInterface attribute - * Specifies the interface that the resource adapter implementation supports for - * the representation of the credentials. This element should be used by - * application server to find out the Credential interface it should use as part - * of the security contract. - * - * The possible values are: - * javax.resource.spi.security.PasswordCredential - * javax.resource.spi.security.GenericCredential - - */ - String getCredentialInterface(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the CredentialInterface attribute - */ - void setCredentialInterface(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the CustomAuthMechType attribute - * This is an internal variable used to store the AthenticationMechanismType when - * it is something other than BasicPassword or Kerbv5. AuthenticationMecanismType - * is set to 'Custom' in those cases. This attribute should not be used by - * runtime. It is only used by the writer to write back out the custom - * AuthenticationMechanismType string in the case of custom - * AuthenticationMechanismType's. - * This variable is internal, used only by the reader//writer classes, and can - * change or disappear without notice. - */ - String getCustomAuthMechType(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the CustomAuthMechType attribute - */ - void setCustomAuthMechType(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getAuthenticationMechanism_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AuthenticationMechanismType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AuthenticationMechanismType.java deleted file mode 100644 index 0d96e05d1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AuthenticationMechanismType.java +++ /dev/null @@ -1,131 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface AuthenticationMechanismType {} - * @since 1.0 - */ -public final class AuthenticationMechanismType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int BASIC_PASSWORD= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int KERBV5= 1; - - /** - * The '<em><b>Basic Password</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Basic Password</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #BASIC_PASSWORD - * @generated - * @ordered - */ - public static final AuthenticationMechanismType BASIC_PASSWORD_LITERAL = new AuthenticationMechanismType(BASIC_PASSWORD, "BasicPassword");//$NON-NLS-1$ - - /** - * The '<em><b>Kerbv5</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Kerbv5</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #KERBV5 - * @generated - * @ordered - */ - public static final AuthenticationMechanismType KERBV5_LITERAL = new AuthenticationMechanismType(KERBV5, "Kerbv5");//$NON-NLS-1$ - - /** - * An array of all the '<em><b>Authentication Mechanism Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final AuthenticationMechanismType[] VALUES_ARRAY = - new AuthenticationMechanismType[] { - BASIC_PASSWORD_LITERAL, - KERBV5_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Authentication Mechanism Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Authentication Mechanism Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static AuthenticationMechanismType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - AuthenticationMechanismType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Authentication Mechanism Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @param value passes literal value - * @return literal instance - */ - public static AuthenticationMechanismType get(int value) { - switch (value) { - case BASIC_PASSWORD: return BASIC_PASSWORD_LITERAL; - case KERBV5: return KERBV5_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private AuthenticationMechanismType(int value, String name) { - super(value, name); - } - -} //AuthenticationMechanismType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConfigProperty.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConfigProperty.java deleted file mode 100644 index eff06d1d5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConfigProperty.java +++ /dev/null @@ -1,125 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * The config property contains a declaration of a single - * configuration property for a ManagedConnectionFactory instance. - * - * Each ManagedConnectionFactory instance creates connections to a specific EIS instance based on the properties configured on the ManagedConnectionFactory instance. The configurable properties are specified only once in the deployment descriptor, even though a resource adapter can be used to configure multiple ManagedConnnection-Factory instances (that create connections to different instances of the same EIS). - * - * The declaration consists of an optional description, name, type - * and an optional value of the configuration property. If the resource - * adapter provider does not specify a value than the deployer is - * responsible for providing a valid value for a configuration property. - * - * Any bounds or well-defined values of properties should be described in the description. - - * @since 1.0 */ -public interface ConfigProperty extends EObject{ - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Name attribute - * Contains the name of a configuration property. - * - * The connector architecture defines a set of well-defined properties all of type - * java.lang.String. These are as follows: - * - * ServerName - * PortNumber - * UserName - * Password - * ConnectionURL - * - * A resource adapter provider can extend this property set to include properties - * specific to the resource adapter and its underlying EIS. - - */ - String getName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Name attribute - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Type attribute - * Contains the fully qualified Java type of a configuration property as required - * by ManagedConnection-Factory instance. - * - * The following are the legal values of config-property-type: - * java.lang.Boolean, java.lang.String, java.lang.Integer, - * java.lang.Double, java.lang.Byte, java.lang.Short, - * java.lang.Long, java.lang.Float, java.lang.Character - */ - String getType(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Type attribute - */ - void setType(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Value attribute - * Contains the value of a configuration entry. - */ - String getValue(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Value attribute - */ - void setValue(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getConfigProperty_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConnectionDefinition.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConnectionDefinition.java deleted file mode 100644 index b510a44a1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConnectionDefinition.java +++ /dev/null @@ -1,255 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Connection Definition</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The connection-definitionType defines a set of connection - * interfaces and classes pertaining to a particular connection - * type. This also includes configurable properties for - * ManagedConnectionFactory instances that may be produced out - * of this set. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getManagedConnectionFactoryClass <em>Managed Connection Factory Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionFactoryInterface <em>Connection Factory Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionFactoryImplClass <em>Connection Factory Impl Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionInterface <em>Connection Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionImplClass <em>Connection Impl Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConfigProperties <em>Config Properties</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getConnectionDefinition() - * @model - * @generated - * @since 1.0 */ -public interface ConnectionDefinition extends EObject{ - /** - * Returns the value of the '<em><b>Managed Connection Factory Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Managed Connection Factory Class</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The element managedconnectionfactory-class specifies - * the fully qualified name of the Java class that - * implements the - * javax.resource.spi.ManagedConnectionFactory interface. - * This Java class is provided as part of resource - * adapter's implementation of connector architecture - * specified contracts. The implementation of this - * class is required to be a JavaBean. - * - * Example: - * <managedconnectionfactory-class> - * com.wombat.ManagedConnectionFactoryImpl - * </managedconnectionfactory-class> - * <!-- end-model-doc --> - * @return the value of the '<em>Managed Connection Factory Class</em>' attribute. - * @see #setManagedConnectionFactoryClass(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getConnectionDefinition_ManagedConnectionFactoryClass() - * @model - * @generated - */ - String getManagedConnectionFactoryClass(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getManagedConnectionFactoryClass <em>Managed Connection Factory Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Managed Connection Factory Class</em>' attribute. - * @see #getManagedConnectionFactoryClass() - * @generated - */ - void setManagedConnectionFactoryClass(String value); - - /** - * Returns the value of the '<em><b>Connection Factory Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Connection Factory Interface</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The element connectionfactory-interface specifies - * the fully qualified name of the ConnectionFactory - * interface supported by the resource adapter. - * - * Example: - * <connectionfactory-interface>com.wombat.ConnectionFactory - * </connectionfactory-interface> - * - * OR - * - * <connectionfactory-interface>javax.resource.cci.ConnectionFactory - * </connectionfactory-interface> - * <!-- end-model-doc --> - * @return the value of the '<em>Connection Factory Interface</em>' attribute. - * @see #setConnectionFactoryInterface(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getConnectionDefinition_ConnectionFactoryInterface() - * @model - * @generated - */ - String getConnectionFactoryInterface(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionFactoryInterface <em>Connection Factory Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Connection Factory Interface</em>' attribute. - * @see #getConnectionFactoryInterface() - * @generated - */ - void setConnectionFactoryInterface(String value); - - /** - * Returns the value of the '<em><b>Connection Factory Impl Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Connection Factory Impl Class</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The element connectionfactory-impl-class specifies - * the fully qualified name of the ConnectionFactory - * class that implements resource adapter - * specific ConnectionFactory interface. - * - * Example: - * - * <connectionfactory-impl-class>com.wombat.ConnectionFactoryImpl - * </connectionfactory-impl-class> - * <!-- end-model-doc --> - * @return the value of the '<em>Connection Factory Impl Class</em>' attribute. - * @see #setConnectionFactoryImplClass(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getConnectionDefinition_ConnectionFactoryImplClass() - * @model - * @generated - */ - String getConnectionFactoryImplClass(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionFactoryImplClass <em>Connection Factory Impl Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Connection Factory Impl Class</em>' attribute. - * @see #getConnectionFactoryImplClass() - * @generated - */ - void setConnectionFactoryImplClass(String value); - - /** - * Returns the value of the '<em><b>Connection Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Connection Interface</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The connection-interface element specifies the fully - * qualified name of the Connection interface supported - * by the resource adapter. - * - * Example: - * - * <connection-interface>javax.resource.cci.Connection - * </connection-interface> - * <!-- end-model-doc --> - * @return the value of the '<em>Connection Interface</em>' attribute. - * @see #setConnectionInterface(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getConnectionDefinition_ConnectionInterface() - * @model - * @generated - */ - String getConnectionInterface(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionInterface <em>Connection Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Connection Interface</em>' attribute. - * @see #getConnectionInterface() - * @generated - */ - void setConnectionInterface(String value); - - /** - * Returns the value of the '<em><b>Connection Impl Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Connection Impl Class</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The connection-impl-classType specifies the fully - * qualified name of the Connection class that - * implements resource adapter specific Connection - * interface. It is used by the connection-impl-class - * elements. - * - * Example: - * - * <connection-impl-class>com.wombat.ConnectionImpl - * </connection-impl-class> - * <!-- end-model-doc --> - * @return the value of the '<em>Connection Impl Class</em>' attribute. - * @see #setConnectionImplClass(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getConnectionDefinition_ConnectionImplClass() - * @model - * @generated - */ - String getConnectionImplClass(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionImplClass <em>Connection Impl Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Connection Impl Class</em>' attribute. - * @see #getConnectionImplClass() - * @generated - */ - void setConnectionImplClass(String value); - - /** - * Returns the value of the '<em><b>Config Properties</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.jca.ConfigProperty}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Config Properties</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Config Properties</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getConnectionDefinition_ConfigProperties() - * @model type="org.eclipse.jst.j2ee.jca.ConfigProperty" containment="true" - * @generated - */ - EList getConfigProperties(); - -} // ConnectionDefinition diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/Connector.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/Connector.java deleted file mode 100644 index 9e1586df4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/Connector.java +++ /dev/null @@ -1,128 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -/** - * The connector element is the root element of the deployment descriptor for the resource adapter. This element includes general information - vendor name, version, specification version supported, icon - about the resource adapter module. It also includes information specific to the implementation of the resource adapter library as specified through the element resourceadapter. - - * @since 1.0 */ -public interface Connector extends CompatibilityDescriptionGroup{ - - - /** - * This returns the module version id. Compare with J2EEVersionConstants to determine module level - * @throws IllegalStateException if calling this function fails - * @return the version of the J2C module - */ - public int getVersionID() throws IllegalStateException ; - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the VendorName attribute - * Specifies the name of resource adapter provider vendor. - * Example: Wombat Corp. - */ - String getVendorName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the VendorName attribute - */ - void setVendorName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the SpecVersion attribute - * Specifies the version of the connector architecture specification that is - * supported by this resource adapter. This information enables deployer to - * configure the resource adapter to support deployment and runtime requirements - * of the corresponding connector architecture specification. - - */ - String getSpecVersion(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the SpecVersion attribute - */ - void setSpecVersion(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the EisType attribute - * Contains information about the type of the EIS. For example, the type of an EIS - * can be product name of EIS independent of any version info. - * - * This helps in identifying EIS instances that can be used with - * this resource adapter. - - */ - String getEisType(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the EisType attribute - */ - void setEisType(String value); - - /** - * These values are used in the deployment descriptor, use getVersionID() to determine module versions - * @generated This field/method will be replaced during code generation - * @return The value of the Version attribute - * Specifies a string-based version of the resource adapter from the resource - * adapter provider. - * - * Example: 1.0 - */ - String getVersion(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Version attribute - */ - void setVersion(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The License reference - * Specifies licensing requirements for the resource adapter module. This element - * specifies whether a license is required to deploy and use this resource - * adapter, and an optional description of the licensing terms (examples: duration - * of license, number of - * connection restrictions). - */ - License getLicense(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the License reference - */ - void setLicense(License value); - - /** - * @generated This field/method will be replaced during code generation - * @return The ResourceAdapter reference - */ - ResourceAdapter getResourceAdapter(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ResourceAdapter reference - */ - void setResourceAdapter(ResourceAdapter value); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConnectorResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConnectorResource.java deleted file mode 100644 index 510e5691c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConnectorResource.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 31, 2003 - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.jst.j2ee.internal.common.XMLResource; - -/** - *@since 1.0 - */ -public interface ConnectorResource extends XMLResource { - - /** - * Returns the deployment descriptor model - * @return Connector - */ - public Connector getConnector() ; -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/InboundResourceAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/InboundResourceAdapter.java deleted file mode 100644 index 1aeb24655..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/InboundResourceAdapter.java +++ /dev/null @@ -1,71 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Inbound Resource Adapter</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The inbound-resourceadapterType specifies information - * about an inbound resource adapter. This contains information - * specific to the implementation of the resource adapter - * library as specified through the messageadapter element. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.InboundResourceAdapter#getMessageAdapter <em>Message Adapter</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getInboundResourceAdapter() - * @model - * @generated - * @since 1.0 */ -public interface InboundResourceAdapter extends EObject{ - /** - * Returns the value of the '<em><b>Message Adapter</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Message Adapter</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The messagelistener-type element content must be - * unique in the messageadapter. Several messagelisteners - * can not use the same messagelistener-type. - * <!-- end-model-doc --> - * @return the value of the '<em>Message Adapter</em>' containment reference. - * @see #setMessageAdapter(MessageAdapter) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getInboundResourceAdapter_MessageAdapter() - * @model containment="true" - * @generated - */ - MessageAdapter getMessageAdapter(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.InboundResourceAdapter#getMessageAdapter <em>Message Adapter</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Message Adapter</em>' containment reference. - * @see #getMessageAdapter() - * @generated - */ - void setMessageAdapter(MessageAdapter value); - -} // InboundResourceAdapter diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/JcaFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/JcaFactory.java deleted file mode 100644 index 5d00f3179..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/JcaFactory.java +++ /dev/null @@ -1,292 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.ecore.EFactory; -/** - * @generated - * @since 1.0 */ -public interface JcaFactory extends EFactory{ - - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - JcaFactory eINSTANCE = new org.eclipse.jst.j2ee.jca.internal.impl.JcaFactoryImpl(); - - - /** - * @generated This field/method will be replaced during code generation - * @return Connector value - */ - Connector createConnector(); - - /** - * @generated This field/method will be replaced during code generation - * @return License value - */ - License createLicense(); - - /** - * Returns a new object of class '<em>Inbound Resource Adapter</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Inbound Resource Adapter</em>'. - * @generated - */ - InboundResourceAdapter createInboundResourceAdapter(); - - /** - * Returns a new object of class '<em>Outbound Resource Adapter</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Outbound Resource Adapter</em>'. - * @generated - */ - OutboundResourceAdapter createOutboundResourceAdapter(); - - /** - * Returns a new object of class '<em>Message Adapter</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Message Adapter</em>'. - * @generated - */ - MessageAdapter createMessageAdapter(); - - /** - * Returns a new object of class '<em>Connection Definition</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Connection Definition</em>'. - * @generated - */ - ConnectionDefinition createConnectionDefinition(); - - /** - * Returns a new object of class '<em>Admin Object</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Admin Object</em>'. - * @generated - */ - AdminObject createAdminObject(); - - /** - * Returns a new object of class '<em>Message Listener</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Message Listener</em>'. - * @generated - */ - MessageListener createMessageListener(); - - /** - * Returns a new object of class '<em>Activation Spec</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Activation Spec</em>'. - * @generated - */ - ActivationSpec createActivationSpec(); - - /** - * Returns a new object of class '<em>Required Config Property Type</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Required Config Property Type</em>'. - * @generated - */ - RequiredConfigPropertyType createRequiredConfigPropertyType(); - - /** - * @generated This field/method will be replaced during code generation - * @return ResourceAdapter value - */ - ResourceAdapter createResourceAdapter(); - - /** - * @generated This field/method will be replaced during code generation - * @return SecurityPermission value - */ - SecurityPermission createSecurityPermission(); - - /** - * @generated This field/method will be replaced during code generation - * @return AuthenticationMechanism value - */ - AuthenticationMechanism createAuthenticationMechanism(); - - /** - * @generated This field/method will be replaced during code generation - * @return ConfigProperty value - */ - ConfigProperty createConfigProperty(); - - /** - * <!-- begin-user-doc --> - * This method is NOT api, and may change in future releases. - * EMF package classes should be access via their "eINSTANCE" static fields - * <!-- end-user-doc --> - * @generated This field/method will be replaced during code generation. - */ - JcaPackage getJcaPackage(); - -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/JcaPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/JcaPackage.java deleted file mode 100644 index c2c76827f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/JcaPackage.java +++ /dev/null @@ -1,2095 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jst.j2ee.common.CommonPackage; - - -/** - * <p> - * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. - * </p> - * @since 1.0 - */ -public interface JcaPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "jca";//$NON-NLS-1$ - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR = 0; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTOR__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTOR__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTOR__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR__VENDOR_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR__SPEC_VERSION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR__EIS_TYPE = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR__VERSION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR__LICENSE = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONNECTOR__RESOURCE_ADAPTER = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 5; - /** - * The number of structural features of the the '<em>Connector</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTOR_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 6; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LICENSE = 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER__CONNECTION_INTERFACE = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER__TRANSACTION_SUPPORT = 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT = 6; - /** - * The feature id for the '<em><b>Resource Adapter Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS = 7; - - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER__SECURITY_PERMISSIONS = 8; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS = 9; - /** - * @generated This field/method will be replaced during code generation. - */ - int RESOURCE_ADAPTER__CONFIG_PROPERTIES = 10; - /** - * The feature id for the '<em><b>Outbound Resource Adapter</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER = 11; - - /** - * The feature id for the '<em><b>Inbound Resource Adapter</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER = 12; - - /** - * The feature id for the '<em><b>Admin Objects</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RESOURCE_ADAPTER__ADMIN_OBJECTS = 13; - - /** - * The number of structural features of the the '<em>Resource Adapter</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int RESOURCE_ADAPTER_FEATURE_COUNT = 14; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_PERMISSION = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - - - /** - * @generated This field/method will be replaced during code generation. - */ - int AUTHENTICATION_MECHANISM = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int AUTHENTICATION_MECHANISM__DESCRIPTION = 0; - /** - * The feature id for the '<em><b>Authentication Mechanism</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM = 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONFIG_PROPERTY = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int TRANSACTION_SUPPORT_KIND = 15; - /** - * @generated This field/method will be replaced during code generation. - */ - int AUTHENTICATION_MECHANISM_TYPE = 14; - /** - * @generated This field/method will be replaced during code generation. - */ - String eNS_URI = "jca.xmi";//$NON-NLS-1$ - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.jca";//$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - JcaPackage eINSTANCE = org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl.init(); - - /** - * @generated This field/method will be replaced during code generation. - */ - int AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE = 4; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUTHENTICATION_MECHANISM__DESCRIPTIONS = 5; - - /** - * The number of structural features of the the '<em>Authentication Mechanism</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUTHENTICATION_MECHANISM_FEATURE_COUNT = 6; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONFIG_PROPERTY__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONFIG_PROPERTY__NAME = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONFIG_PROPERTY__TYPE = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONFIG_PROPERTY__VALUE = 3; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONFIG_PROPERTY__DESCRIPTIONS = 4; - - /** - * The number of structural features of the the '<em>Config Property</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONFIG_PROPERTY_FEATURE_COUNT = 5; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_PERMISSION__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_PERMISSION__SPECIFICATION = 1; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_PERMISSION__DESCRIPTIONS = 2; - - /** - * The number of structural features of the the '<em>Security Permission</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_PERMISSION_FEATURE_COUNT = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LICENSE__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int LICENSE__REQUIRED = 1; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LICENSE__DESCRIPTIONS = 2; - - /** - * The number of structural features of the the '<em>License</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LICENSE_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jca.internal.impl.InboundResourceAdapterImpl <em>Inbound Resource Adapter</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jca.internal.impl.InboundResourceAdapterImpl - * @see org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl#getInboundResourceAdapter() - * @generated - */ - int INBOUND_RESOURCE_ADAPTER = 6; - - /** - * The feature id for the '<em><b>Message Adapter</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER = 0; - - /** - * The number of structural features of the the '<em>Inbound Resource Adapter</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INBOUND_RESOURCE_ADAPTER_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jca.internal.impl.OutboundResourceAdapterImpl <em>Outbound Resource Adapter</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jca.internal.impl.OutboundResourceAdapterImpl - * @see org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl#getOutboundResourceAdapter() - * @generated - */ - int OUTBOUND_RESOURCE_ADAPTER = 7; - - /** - * The feature id for the '<em><b>Reauthentication Support</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT = 0; - - /** - * The feature id for the '<em><b>Transaction Support</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT = 1; - - /** - * The feature id for the '<em><b>Connection Definitions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS = 2; - - /** - * The feature id for the '<em><b>Authentication Mechanisms</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS = 3; - - /** - * The number of structural features of the the '<em>Outbound Resource Adapter</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int OUTBOUND_RESOURCE_ADAPTER_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jca.internal.impl.MessageAdapterImpl <em>Message Adapter</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jca.internal.impl.MessageAdapterImpl - * @see org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl#getMessageAdapter() - * @generated - */ - int MESSAGE_ADAPTER = 8; - - /** - * The feature id for the '<em><b>Message Listeners</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_ADAPTER__MESSAGE_LISTENERS = 0; - - /** - * The number of structural features of the the '<em>Message Adapter</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_ADAPTER_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl <em>Connection Definition</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl - * @see org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl#getConnectionDefinition() - * @generated - */ - int CONNECTION_DEFINITION = 9; - - /** - * The feature id for the '<em><b>Managed Connection Factory Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS = 0; - - /** - * The feature id for the '<em><b>Connection Factory Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE = 1; - - /** - * The feature id for the '<em><b>Connection Factory Impl Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS = 2; - - /** - * The feature id for the '<em><b>Connection Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTION_DEFINITION__CONNECTION_INTERFACE = 3; - - /** - * The feature id for the '<em><b>Connection Impl Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS = 4; - - /** - * The feature id for the '<em><b>Config Properties</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTION_DEFINITION__CONFIG_PROPERTIES = 5; - - /** - * The number of structural features of the the '<em>Connection Definition</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONNECTION_DEFINITION_FEATURE_COUNT = 6; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jca.internal.impl.AdminObjectImpl <em>Admin Object</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jca.internal.impl.AdminObjectImpl - * @see org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl#getAdminObject() - * @generated - */ - int ADMIN_OBJECT = 10; - - /** - * The feature id for the '<em><b>Admin Object Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE = 0; - - /** - * The feature id for the '<em><b>Admin Object Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADMIN_OBJECT__ADMIN_OBJECT_CLASS = 1; - - /** - * The feature id for the '<em><b>Config Properties</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADMIN_OBJECT__CONFIG_PROPERTIES = 2; - - /** - * The number of structural features of the the '<em>Admin Object</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADMIN_OBJECT_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jca.internal.impl.MessageListenerImpl <em>Message Listener</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jca.internal.impl.MessageListenerImpl - * @see org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl#getMessageListener() - * @generated - */ - int MESSAGE_LISTENER = 11; - - /** - * The feature id for the '<em><b>Message Listener Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE = 0; - - /** - * The feature id for the '<em><b>Activation Spec</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_LISTENER__ACTIVATION_SPEC = 1; - - /** - * The number of structural features of the the '<em>Message Listener</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MESSAGE_LISTENER_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jca.internal.impl.ActivationSpecImpl <em>Activation Spec</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jca.internal.impl.ActivationSpecImpl - * @see org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl#getActivationSpec() - * @generated - */ - int ACTIVATION_SPEC = 12; - - /** - * The feature id for the '<em><b>Activation Spec Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS = 0; - - /** - * The feature id for the '<em><b>Required Config Properties</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES = 1; - - /** - * The number of structural features of the the '<em>Activation Spec</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ACTIVATION_SPEC_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jca.internal.impl.RequiredConfigPropertyTypeImpl <em>Required Config Property Type</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jca.internal.impl.RequiredConfigPropertyTypeImpl - * @see org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl#getRequiredConfigPropertyType() - * @generated - */ - int REQUIRED_CONFIG_PROPERTY_TYPE = 13; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int REQUIRED_CONFIG_PROPERTY_TYPE__NAME = 0; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS = 1; - - /** - * The number of structural features of the the '<em>Required Config Property Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int REQUIRED_CONFIG_PROPERTY_TYPE_FEATURE_COUNT = 2; - - /** - * @generated This field/method will be replaced during code generation - * @return Connector object - */ - EClass getConnector(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getConnector_VendorName(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getConnector_SpecVersion(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getConnector_EisType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getConnector_Version(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getConnector_License(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getConnector_ResourceAdapter(); - - /** - * @generated This field/method will be replaced during code generation - * @return License object - */ - EClass getLicense(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getLicense_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getLicense_Required(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.License#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.jca.License#getDescriptions() - * @see #getLicense() - * @generated - */ - EReference getLicense_Descriptions(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jca.InboundResourceAdapter <em>Inbound Resource Adapter</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Inbound Resource Adapter</em>'. - * @see org.eclipse.jst.j2ee.jca.InboundResourceAdapter - * @generated - */ - EClass getInboundResourceAdapter(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.jca.InboundResourceAdapter#getMessageAdapter <em>Message Adapter</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Message Adapter</em>'. - * @see org.eclipse.jst.j2ee.jca.InboundResourceAdapter#getMessageAdapter() - * @see #getInboundResourceAdapter() - * @generated - */ - EReference getInboundResourceAdapter_MessageAdapter(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter <em>Outbound Resource Adapter</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Outbound Resource Adapter</em>'. - * @see org.eclipse.jst.j2ee.jca.OutboundResourceAdapter - * @generated - */ - EClass getOutboundResourceAdapter(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#isReauthenticationSupport <em>Reauthentication Support</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Reauthentication Support</em>'. - * @see org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#isReauthenticationSupport() - * @see #getOutboundResourceAdapter() - * @generated - */ - EAttribute getOutboundResourceAdapter_ReauthenticationSupport(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getTransactionSupport <em>Transaction Support</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Transaction Support</em>'. - * @see org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getTransactionSupport() - * @see #getOutboundResourceAdapter() - * @generated - */ - EAttribute getOutboundResourceAdapter_TransactionSupport(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getConnectionDefinitions <em>Connection Definitions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Connection Definitions</em>'. - * @see org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getConnectionDefinitions() - * @see #getOutboundResourceAdapter() - * @generated - */ - EReference getOutboundResourceAdapter_ConnectionDefinitions(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getAuthenticationMechanisms <em>Authentication Mechanisms</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Authentication Mechanisms</em>'. - * @see org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getAuthenticationMechanisms() - * @see #getOutboundResourceAdapter() - * @generated - */ - EReference getOutboundResourceAdapter_AuthenticationMechanisms(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jca.MessageAdapter <em>Message Adapter</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Message Adapter</em>'. - * @see org.eclipse.jst.j2ee.jca.MessageAdapter - * @generated - */ - EClass getMessageAdapter(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.MessageAdapter#getMessageListeners <em>Message Listeners</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Message Listeners</em>'. - * @see org.eclipse.jst.j2ee.jca.MessageAdapter#getMessageListeners() - * @see #getMessageAdapter() - * @generated - */ - EReference getMessageAdapter_MessageListeners(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition <em>Connection Definition</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Connection Definition</em>'. - * @see org.eclipse.jst.j2ee.jca.ConnectionDefinition - * @generated - */ - EClass getConnectionDefinition(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getManagedConnectionFactoryClass <em>Managed Connection Factory Class</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Managed Connection Factory Class</em>'. - * @see org.eclipse.jst.j2ee.jca.ConnectionDefinition#getManagedConnectionFactoryClass() - * @see #getConnectionDefinition() - * @generated - */ - EAttribute getConnectionDefinition_ManagedConnectionFactoryClass(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionFactoryInterface <em>Connection Factory Interface</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Connection Factory Interface</em>'. - * @see org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionFactoryInterface() - * @see #getConnectionDefinition() - * @generated - */ - EAttribute getConnectionDefinition_ConnectionFactoryInterface(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionFactoryImplClass <em>Connection Factory Impl Class</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Connection Factory Impl Class</em>'. - * @see org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionFactoryImplClass() - * @see #getConnectionDefinition() - * @generated - */ - EAttribute getConnectionDefinition_ConnectionFactoryImplClass(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionInterface <em>Connection Interface</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Connection Interface</em>'. - * @see org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionInterface() - * @see #getConnectionDefinition() - * @generated - */ - EAttribute getConnectionDefinition_ConnectionInterface(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionImplClass <em>Connection Impl Class</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Connection Impl Class</em>'. - * @see org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConnectionImplClass() - * @see #getConnectionDefinition() - * @generated - */ - EAttribute getConnectionDefinition_ConnectionImplClass(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConfigProperties <em>Config Properties</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Config Properties</em>'. - * @see org.eclipse.jst.j2ee.jca.ConnectionDefinition#getConfigProperties() - * @see #getConnectionDefinition() - * @generated - */ - EReference getConnectionDefinition_ConfigProperties(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jca.AdminObject <em>Admin Object</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Admin Object</em>'. - * @see org.eclipse.jst.j2ee.jca.AdminObject - * @generated - */ - EClass getAdminObject(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.AdminObject#getAdminObjectInterface <em>Admin Object Interface</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Admin Object Interface</em>'. - * @see org.eclipse.jst.j2ee.jca.AdminObject#getAdminObjectInterface() - * @see #getAdminObject() - * @generated - */ - EAttribute getAdminObject_AdminObjectInterface(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.AdminObject#getAdminObjectClass <em>Admin Object Class</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Admin Object Class</em>'. - * @see org.eclipse.jst.j2ee.jca.AdminObject#getAdminObjectClass() - * @see #getAdminObject() - * @generated - */ - EAttribute getAdminObject_AdminObjectClass(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.AdminObject#getConfigProperties <em>Config Properties</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Config Properties</em>'. - * @see org.eclipse.jst.j2ee.jca.AdminObject#getConfigProperties() - * @see #getAdminObject() - * @generated - */ - EReference getAdminObject_ConfigProperties(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jca.MessageListener <em>Message Listener</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Message Listener</em>'. - * @see org.eclipse.jst.j2ee.jca.MessageListener - * @generated - */ - EClass getMessageListener(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.MessageListener#getMessageListenerType <em>Message Listener Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Message Listener Type</em>'. - * @see org.eclipse.jst.j2ee.jca.MessageListener#getMessageListenerType() - * @see #getMessageListener() - * @generated - */ - EAttribute getMessageListener_MessageListenerType(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.jca.MessageListener#getActivationSpec <em>Activation Spec</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Activation Spec</em>'. - * @see org.eclipse.jst.j2ee.jca.MessageListener#getActivationSpec() - * @see #getMessageListener() - * @generated - */ - EReference getMessageListener_ActivationSpec(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jca.ActivationSpec <em>Activation Spec</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Activation Spec</em>'. - * @see org.eclipse.jst.j2ee.jca.ActivationSpec - * @generated - */ - EClass getActivationSpec(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.ActivationSpec#getActivationSpecClass <em>Activation Spec Class</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Activation Spec Class</em>'. - * @see org.eclipse.jst.j2ee.jca.ActivationSpec#getActivationSpecClass() - * @see #getActivationSpec() - * @generated - */ - EAttribute getActivationSpec_ActivationSpecClass(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.ActivationSpec#getRequiredConfigProperties <em>Required Config Properties</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Required Config Properties</em>'. - * @see org.eclipse.jst.j2ee.jca.ActivationSpec#getRequiredConfigProperties() - * @see #getActivationSpec() - * @generated - */ - EReference getActivationSpec_RequiredConfigProperties(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType <em>Required Config Property Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Required Config Property Type</em>'. - * @see org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType - * @generated - */ - EClass getRequiredConfigPropertyType(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType#getName() - * @see #getRequiredConfigPropertyType() - * @generated - */ - EAttribute getRequiredConfigPropertyType_Name(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType#getDescriptions() - * @see #getRequiredConfigPropertyType() - * @generated - */ - EReference getRequiredConfigPropertyType_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return ResourceAdapter object - */ - EClass getResourceAdapter(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceAdapter_ManagedConnectionFactoryClass(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceAdapter_ConnectionFactoryInterface(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceAdapter_ConnectionFactoryImplClass(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceAdapter_ConnectionInterface(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceAdapter_ConnectionImplClass(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceAdapter_TransactionSupport(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getResourceAdapter_ReauthenticationSupport(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#getResourceAdapterClass <em>Resource Adapter Class</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Resource Adapter Class</em>'. - * @see org.eclipse.jst.j2ee.jca.ResourceAdapter#getResourceAdapterClass() - * @see #getResourceAdapter() - * @generated - */ - EAttribute getResourceAdapter_ResourceAdapterClass(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getResourceAdapter_SecurityPermissions(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getResourceAdapter_AuthenticationMechanisms(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getResourceAdapter_ConfigProperties(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#getOutboundResourceAdapter <em>Outbound Resource Adapter</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Outbound Resource Adapter</em>'. - * @see org.eclipse.jst.j2ee.jca.ResourceAdapter#getOutboundResourceAdapter() - * @see #getResourceAdapter() - * @generated - */ - EReference getResourceAdapter_OutboundResourceAdapter(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#getInboundResourceAdapter <em>Inbound Resource Adapter</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Inbound Resource Adapter</em>'. - * @see org.eclipse.jst.j2ee.jca.ResourceAdapter#getInboundResourceAdapter() - * @see #getResourceAdapter() - * @generated - */ - EReference getResourceAdapter_InboundResourceAdapter(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#getAdminObjects <em>Admin Objects</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Admin Objects</em>'. - * @see org.eclipse.jst.j2ee.jca.ResourceAdapter#getAdminObjects() - * @see #getResourceAdapter() - * @generated - */ - EReference getResourceAdapter_AdminObjects(); - - /** - * @generated This field/method will be replaced during code generation - * @return SecurityPermission object - */ - EClass getSecurityPermission(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSecurityPermission_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSecurityPermission_Specification(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.SecurityPermission#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.jca.SecurityPermission#getDescriptions() - * @see #getSecurityPermission() - * @generated - */ - EReference getSecurityPermission_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return AuthenticationMechanism object - */ - EClass getAuthenticationMechanism(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getAuthenticationMechanism_Description(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jca.AuthenticationMechanism#getAuthenticationMechanism <em>Authentication Mechanism</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Authentication Mechanism</em>'. - * @see org.eclipse.jst.j2ee.jca.AuthenticationMechanism#getAuthenticationMechanism() - * @see #getAuthenticationMechanism() - * @generated - */ - EAttribute getAuthenticationMechanism_AuthenticationMechanism(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getAuthenticationMechanism_AuthenticationMechanismType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getAuthenticationMechanism_CredentialInterface(); - - /** - * @generated This field/method will be replaced during code generation - * @return ConfigProperty object - */ - EClass getConfigProperty(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getConfigProperty_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getConfigProperty_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getConfigProperty_Type(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getConfigProperty_Value(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.ConfigProperty#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.jca.ConfigProperty#getDescriptions() - * @see #getConfigProperty() - * @generated - */ - EReference getConfigProperty_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return TransactionSupportKind object - */ - EEnum getTransactionSupportKind(); - - /** - * @generated This field/method will be replaced during code generation - * @return AuthenticationMechanismType object - */ - EEnum getAuthenticationMechanismType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - JcaFactory getJcaFactory(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getAuthenticationMechanism_CustomAuthMechType(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jca.AuthenticationMechanism#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.jca.AuthenticationMechanism#getDescriptions() - * @see #getAuthenticationMechanism() - * @generated - */ - EReference getAuthenticationMechanism_Descriptions(); - -} //JcaPackage - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/License.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/License.java deleted file mode 100644 index dbb20a7a4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/License.java +++ /dev/null @@ -1,89 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * Specifies licensing requirements for the resource adapter module. Specifies whether a license is required to deploy and use this resource adapter, and an optional description of the licensing terms (examples: duration of license, number of connection restrictions). - * @since 1.0 */ -public interface License extends EObject{ - - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Required attribute - */ - boolean isRequired(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Required attribute - */ - void setRequired(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.jca.License#isRequired <em>Required</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetRequired() - * @see #isRequired() - * @see #setRequired(boolean) - * @generated - */ - void unsetRequired(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.jca.License#isRequired <em>Required</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Required</em>' attribute is set. - * @see #unsetRequired() - * @see #isRequired() - * @see #setRequired(boolean) - * @generated - */ - boolean isSetRequired(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getLicense_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/MessageAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/MessageAdapter.java deleted file mode 100644 index 2af4e0314..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/MessageAdapter.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Message Adapter</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The messageadapterType specifies information about the - * messaging capabilities of the resource adapter. This - * contains information specific to the implementation of the - * resource adapter library as specified through the - * messagelistener element. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.MessageAdapter#getMessageListeners <em>Message Listeners</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getMessageAdapter() - * @model - * @generated - * @since 1.0 */ -public interface MessageAdapter extends EObject{ - /** - * Returns the value of the '<em><b>Message Listeners</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.jca.MessageListener}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Message Listeners</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Message Listeners</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getMessageAdapter_MessageListeners() - * @model type="org.eclipse.jst.j2ee.jca.MessageListener" containment="true" required="true" - * @generated - */ - EList getMessageListeners(); - -} // MessageAdapter diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/MessageListener.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/MessageListener.java deleted file mode 100644 index 082ebf845..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/MessageListener.java +++ /dev/null @@ -1,104 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Message Listener</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The messagelistenerType specifies information about a - * specific message listener supported by the messaging - * resource adapter. It contains information on the Java type - * of the message listener interface and an activation - * specification. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.MessageListener#getMessageListenerType <em>Message Listener Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.MessageListener#getActivationSpec <em>Activation Spec</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getMessageListener() - * @model - * @generated - * @since 1.0 */ -public interface MessageListener extends EObject{ - /** - * Returns the value of the '<em><b>Message Listener Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Message Listener Type</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The element messagelistener-type specifies the fully - * qualified name of the Java type of a message - * listener interface. - * - * Example: - * - * <messagelistener-type>javax.jms.MessageListener - * </messagelistener-type> - * <!-- end-model-doc --> - * @return the value of the '<em>Message Listener Type</em>' attribute. - * @see #setMessageListenerType(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getMessageListener_MessageListenerType() - * @model - * @generated - */ - String getMessageListenerType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.MessageListener#getMessageListenerType <em>Message Listener Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Message Listener Type</em>' attribute. - * @see #getMessageListenerType() - * @generated - */ - void setMessageListenerType(String value); - - /** - * Returns the value of the '<em><b>Activation Spec</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Activation Spec</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Activation Spec</em>' containment reference. - * @see #setActivationSpec(ActivationSpec) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getMessageListener_ActivationSpec() - * @model containment="true" required="true" - * @generated - */ - ActivationSpec getActivationSpec(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.MessageListener#getActivationSpec <em>Activation Spec</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Activation Spec</em>' containment reference. - * @see #getActivationSpec() - * @generated - */ - void setActivationSpec(ActivationSpec value); - -} // MessageListener diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/OutboundResourceAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/OutboundResourceAdapter.java deleted file mode 100644 index 14884364f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/OutboundResourceAdapter.java +++ /dev/null @@ -1,203 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Outbound Resource Adapter</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The outbound-resourceadapterType specifies information about - * an outbound resource adapter. The information includes fully - * qualified names of classes/interfaces required as part of - * the connector architecture specified contracts for - * connection management, level of transaction support - * provided, one or more authentication mechanisms supported - * and additional required security permissions. - * - * If there is no authentication-mechanism specified as part of - * resource adapter element then the resource adapter does not - * support any standard security authentication mechanisms as - * part of security contract. The application server ignores - * the security part of the system contracts in this case. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#isReauthenticationSupport <em>Reauthentication Support</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getTransactionSupport <em>Transaction Support</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getConnectionDefinitions <em>Connection Definitions</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getAuthenticationMechanisms <em>Authentication Mechanisms</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getOutboundResourceAdapter() - * @model - * @generated - * @since 1.0 */ -public interface OutboundResourceAdapter extends EObject{ - /** - * Returns the value of the '<em><b>Reauthentication Support</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Reauthentication Support</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The element reauthentication-support specifies - * whether the resource adapter implementation supports - * re-authentication of existing Managed- Connection - * instance. Note that this information is for the - * resource adapter implementation and not for the - * underlying EIS instance. This element must have - * either a "true" or "false" value. - * <!-- end-model-doc --> - * @return the value of the '<em>Reauthentication Support</em>' attribute. - * @see #isSetReauthenticationSupport() - * @see #unsetReauthenticationSupport() - * @see #setReauthenticationSupport(boolean) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getOutboundResourceAdapter_ReauthenticationSupport() - * @model unsettable="true" - * @generated - */ - boolean isReauthenticationSupport(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#isReauthenticationSupport <em>Reauthentication Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Reauthentication Support</em>' attribute. - * @see #isSetReauthenticationSupport() - * @see #unsetReauthenticationSupport() - * @see #isReauthenticationSupport() - * @generated - */ - void setReauthenticationSupport(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#isReauthenticationSupport <em>Reauthentication Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetReauthenticationSupport() - * @see #isReauthenticationSupport() - * @see #setReauthenticationSupport(boolean) - * @generated - */ - void unsetReauthenticationSupport(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#isReauthenticationSupport <em>Reauthentication Support</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Reauthentication Support</em>' attribute is set. - * @see #unsetReauthenticationSupport() - * @see #isReauthenticationSupport() - * @see #setReauthenticationSupport(boolean) - * @generated - */ - boolean isSetReauthenticationSupport(); - - /** - * Returns the value of the '<em><b>Transaction Support</b></em>' attribute. - * The literals are from the enumeration {@link org.eclipse.jst.j2ee.jca.TransactionSupportKind}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Transaction Support</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Transaction Support</em>' attribute. - * @see org.eclipse.jst.j2ee.jca.TransactionSupportKind - * @see #isSetTransactionSupport() - * @see #unsetTransactionSupport() - * @see #setTransactionSupport(TransactionSupportKind) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getOutboundResourceAdapter_TransactionSupport() - * @model unsettable="true" - * @generated - */ - TransactionSupportKind getTransactionSupport(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getTransactionSupport <em>Transaction Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Transaction Support</em>' attribute. - * @see org.eclipse.jst.j2ee.jca.TransactionSupportKind - * @see #isSetTransactionSupport() - * @see #unsetTransactionSupport() - * @see #getTransactionSupport() - * @generated - */ - void setTransactionSupport(TransactionSupportKind value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getTransactionSupport <em>Transaction Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetTransactionSupport() - * @see #getTransactionSupport() - * @see #setTransactionSupport(TransactionSupportKind) - * @generated - */ - void unsetTransactionSupport(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter#getTransactionSupport <em>Transaction Support</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Transaction Support</em>' attribute is set. - * @see #unsetTransactionSupport() - * @see #getTransactionSupport() - * @see #setTransactionSupport(TransactionSupportKind) - * @generated - */ - boolean isSetTransactionSupport(); - - /** - * Returns the value of the '<em><b>Connection Definitions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.jca.ConnectionDefinition}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Connection Definitions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Connection Definitions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getOutboundResourceAdapter_ConnectionDefinitions() - * @model type="org.eclipse.jst.j2ee.jca.ConnectionDefinition" containment="true" - * @generated - */ - EList getConnectionDefinitions(); - - /** - * Returns the value of the '<em><b>Authentication Mechanisms</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.jca.AuthenticationMechanism}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Authentication Mechanisms</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Authentication Mechanisms</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getOutboundResourceAdapter_AuthenticationMechanisms() - * @model type="org.eclipse.jst.j2ee.jca.AuthenticationMechanism" containment="true" - * @generated - */ - EList getAuthenticationMechanisms(); - -} // OutboundResourceAdapter diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/RequiredConfigPropertyType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/RequiredConfigPropertyType.java deleted file mode 100644 index 6e1a97c41..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/RequiredConfigPropertyType.java +++ /dev/null @@ -1,88 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Required Config Property Type</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The required-config-propertyType contains a declaration - * of a single configuration property used for specifying a - * required configuration property name. It is used - * by required-config-property elements. - * - * Example: - * - * <required-config-property>Destination</required-config-property> - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType#getDescriptions <em>Descriptions</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getRequiredConfigPropertyType() - * @model - * @generated - * @since 1.0 */ -public interface RequiredConfigPropertyType extends EObject{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getRequiredConfigPropertyType_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getRequiredConfigPropertyType_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} // RequiredConfigPropertyType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ResourceAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ResourceAdapter.java deleted file mode 100644 index 43cabeeba..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ResourceAdapter.java +++ /dev/null @@ -1,326 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * Specifies information about the resource adapter. The information includes fully-qualified names of class//interfaces required as part of the connector architecture specified contracts, level of transaction support provided, configurable properties for ManagedConnectionFactory instances, one or more authentication mechanisms supported and additional - * required security permissions. - * - * If there is no authentication-mechanism specified as part of - * resource adapter element then the resource adapter does not - * support any standard security authentication mechanisms as part - * of security contract. The application server ignores the security - * part of the system contracts in this case. - - * @since 1.0 */ -public interface ResourceAdapter extends EObject{ - - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ManagedConnectionFactoryClass attribute - * Specifies the fully qualified name of the Java class that implements the - * javax.resource.spi.Managed-ConnectionFactory interface. This Java class is - * provided as part of resource adapter's implementation of connector architecture - * specified contracts. - - */ - String getManagedConnectionFactoryClass(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ManagedConnectionFactoryClass attribute - */ - void setManagedConnectionFactoryClass(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ConnectionFactoryInterface attribute - * Specifies the fully-qualified name of the ConnectionFactory interface supported - * by the resource adapter. - - */ - String getConnectionFactoryInterface(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ConnectionFactoryInterface attribute - */ - void setConnectionFactoryInterface(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ConnectionFactoryImplClass attribute - * Specifies the fully-qualified name of the ConnectionFactory class that - * implements resource adapter specific ConnectionFactory interface. - */ - String getConnectionFactoryImplClass(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ConnectionFactoryImplClass attribute - */ - void setConnectionFactoryImplClass(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ConnectionInterface attribute - */ - String getConnectionInterface(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ConnectionInterface attribute - */ - void setConnectionInterface(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ConnectionImplClass attribute - * Specifies the fully-qualified name of the Connection interface supported by the - * resource adapter. - */ - String getConnectionImplClass(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ConnectionImplClass attribute - */ - void setConnectionImplClass(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the TransactionSupport attribute - * The transaction-support element specifies the level of transaction - * support provided by the resource adapter. - * The value of transaction-support must be one of the following: - * NoTransaction - * LocalTransaction - * XATransaction - */ - TransactionSupportKind getTransactionSupport(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#getTransactionSupport <em>Transaction Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Transaction Support</em>' attribute. - * @see org.eclipse.jst.j2ee.jca.TransactionSupportKind - * @see #isSetTransactionSupport() - * @see #unsetTransactionSupport() - * @see #getTransactionSupport() - * @generated - */ - void setTransactionSupport(TransactionSupportKind value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#getTransactionSupport <em>Transaction Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetTransactionSupport() - * @see #getTransactionSupport() - * @see #setTransactionSupport(TransactionSupportKind) - * @generated - */ - void unsetTransactionSupport(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#getTransactionSupport <em>Transaction Support</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Transaction Support</em>' attribute is set. - * @see #unsetTransactionSupport() - * @see #getTransactionSupport() - * @see #setTransactionSupport(TransactionSupportKind) - * @generated - */ - boolean isSetTransactionSupport(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ReauthenticationSupport attribute - * Specifies whether the resource adapter implementation supports - * re-authentication of existing Managed-Connection instance. Note that this - * information is for the resource adapter implementation and not for the - * underlying EIS instance. - */ - boolean isReauthenticationSupport(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ReauthenticationSupport attribute - */ - void setReauthenticationSupport(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#isReauthenticationSupport <em>Reauthentication Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetReauthenticationSupport() - * @see #isReauthenticationSupport() - * @see #setReauthenticationSupport(boolean) - * @generated - */ - void unsetReauthenticationSupport(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#isReauthenticationSupport <em>Reauthentication Support</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Reauthentication Support</em>' attribute is set. - * @see #unsetReauthenticationSupport() - * @see #isReauthenticationSupport() - * @see #setReauthenticationSupport(boolean) - * @generated - */ - boolean isSetReauthenticationSupport(); - - /** - * Returns the value of the '<em><b>Resource Adapter Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Resource Adapter Class</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The element resourceadapter-class specifies the - * fully qualified name of a Java class that implements - * the javax.resource.spi.ResourceAdapter - * interface. This Java class is provided as part of - * resource adapter's implementation of connector - * architecture specified contracts. The implementation - * of this class is required to be a JavaBean. - * <!-- end-model-doc --> - * @return the value of the '<em>Resource Adapter Class</em>' attribute. - * @see #setResourceAdapterClass(String) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getResourceAdapter_ResourceAdapterClass() - * @model - * @generated - */ - String getResourceAdapterClass(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#getResourceAdapterClass <em>Resource Adapter Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Resource Adapter Class</em>' attribute. - * @see #getResourceAdapterClass() - * @generated - */ - void setResourceAdapterClass(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of SecurityPermissions references - */ - EList getSecurityPermissions(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of AuthenticationMechanisms references - */ - EList getAuthenticationMechanisms(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of ConfigProperties references - */ - EList getConfigProperties(); - - /** - * Returns the value of the '<em><b>Outbound Resource Adapter</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Outbound Resource Adapter</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The connectionfactory-interface element content must be - * unique in the outbound-resourceadapter. Multiple connection-definitions - * can not use the same connectionfactory-type. - * <!-- end-model-doc --> - * @return the value of the '<em>Outbound Resource Adapter</em>' containment reference. - * @see #setOutboundResourceAdapter(OutboundResourceAdapter) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getResourceAdapter_OutboundResourceAdapter() - * @model containment="true" - * @generated - */ - OutboundResourceAdapter getOutboundResourceAdapter(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#getOutboundResourceAdapter <em>Outbound Resource Adapter</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Outbound Resource Adapter</em>' containment reference. - * @see #getOutboundResourceAdapter() - * @generated - */ - void setOutboundResourceAdapter(OutboundResourceAdapter value); - - /** - * Returns the value of the '<em><b>Inbound Resource Adapter</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Inbound Resource Adapter</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Inbound Resource Adapter</em>' containment reference. - * @see #setInboundResourceAdapter(InboundResourceAdapter) - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getResourceAdapter_InboundResourceAdapter() - * @model containment="true" - * @generated - */ - InboundResourceAdapter getInboundResourceAdapter(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jca.ResourceAdapter#getInboundResourceAdapter <em>Inbound Resource Adapter</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Inbound Resource Adapter</em>' containment reference. - * @see #getInboundResourceAdapter() - * @generated - */ - void setInboundResourceAdapter(InboundResourceAdapter value); - - /** - * Returns the value of the '<em><b>Admin Objects</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.jca.AdminObject}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Admin Objects</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Admin Objects</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getResourceAdapter_AdminObjects() - * @model type="org.eclipse.jst.j2ee.jca.AdminObject" containment="true" - * @generated - */ - EList getAdminObjects(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/SecurityPermission.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/SecurityPermission.java deleted file mode 100644 index 3bd82bd21..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/SecurityPermission.java +++ /dev/null @@ -1,75 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * Specifies a security permission that is required by the resource adapter code. - * - * The security permission listed in the deployment descriptor are ones that are different from those required by the default permission set as specified in the connector specification. The optional description can mention specific reason that resource adapter requires a given security permission. - - * @since 1.0 */ -public interface SecurityPermission extends EObject{ - - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Specification attribute - * The element permission-spec specifies a security permission based on the - * Security policy file syntax. - - */ - String getSpecification(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Specification attribute - */ - void setSpecification(String value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jca.JcaPackage#getSecurityPermission_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/TransactionSupportKind.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/TransactionSupportKind.java deleted file mode 100644 index 402585668..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/TransactionSupportKind.java +++ /dev/null @@ -1,151 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -/** - * @lastgen interface TransactionSupportKind {} - * @since 1.0 - */ -public final class TransactionSupportKind extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int NO_TRANSACTION= 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int LOCAL_TRANSACTION= 1; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int XA_TRANSACTION= 2; - - /** - * The '<em><b>No Transaction</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>No Transaction</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #NO_TRANSACTION - * @generated - * @ordered - */ - public static final TransactionSupportKind NO_TRANSACTION_LITERAL = new TransactionSupportKind(NO_TRANSACTION, "NoTransaction");//$NON-NLS-1$ - - /** - * The '<em><b>Local Transaction</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Local Transaction</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #LOCAL_TRANSACTION - * @generated - * @ordered - */ - public static final TransactionSupportKind LOCAL_TRANSACTION_LITERAL = new TransactionSupportKind(LOCAL_TRANSACTION, "LocalTransaction");//$NON-NLS-1$ - - /** - * The '<em><b>XA Transaction</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>XA Transaction</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #XA_TRANSACTION - * @generated - * @ordered - */ - public static final TransactionSupportKind XA_TRANSACTION_LITERAL = new TransactionSupportKind(XA_TRANSACTION, "XATransaction");//$NON-NLS-1$ - - /** - * An array of all the '<em><b>Transaction Support Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final TransactionSupportKind[] VALUES_ARRAY = - new TransactionSupportKind[] { - NO_TRANSACTION_LITERAL, - LOCAL_TRANSACTION_LITERAL, - XA_TRANSACTION_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Transaction Support Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Transaction Support Kind</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static TransactionSupportKind get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - TransactionSupportKind result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Transaction Support Kind</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static TransactionSupportKind get(int value) { - switch (value) { - case NO_TRANSACTION: return NO_TRANSACTION_LITERAL; - case LOCAL_TRANSACTION: return LOCAL_TRANSACTION_LITERAL; - case XA_TRANSACTION: return XA_TRANSACTION_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private TransactionSupportKind(int value, String name) { - super(value, name); - } - -} //TransactionSupportKind diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ActivationSpecImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ActivationSpecImpl.java deleted file mode 100644 index b4baa30aa..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ActivationSpecImpl.java +++ /dev/null @@ -1,223 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.jca.ActivationSpec; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Activation Spec</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ActivationSpecImpl#getActivationSpecClass <em>Activation Spec Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ActivationSpecImpl#getRequiredConfigProperties <em>Required Config Properties</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ActivationSpecImpl extends EObjectImpl implements ActivationSpec { - /** - * The default value of the '{@link #getActivationSpecClass() <em>Activation Spec Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getActivationSpecClass() - * @generated - * @ordered - */ - protected static final String ACTIVATION_SPEC_CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getActivationSpecClass() <em>Activation Spec Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getActivationSpecClass() - * @generated - * @ordered - */ - protected String activationSpecClass = ACTIVATION_SPEC_CLASS_EDEFAULT; - - /** - * The cached value of the '{@link #getRequiredConfigProperties() <em>Required Config Properties</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRequiredConfigProperties() - * @generated - * @ordered - */ - protected EList requiredConfigProperties = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ActivationSpecImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getActivationSpec(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getActivationSpecClass() { - return activationSpecClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setActivationSpecClass(String newActivationSpecClass) { - String oldActivationSpecClass = activationSpecClass; - activationSpecClass = newActivationSpecClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS, oldActivationSpecClass, activationSpecClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getRequiredConfigProperties() { - if (requiredConfigProperties == null) { - requiredConfigProperties = new EObjectContainmentEList(RequiredConfigPropertyType.class, this, JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES); - } - return requiredConfigProperties; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES: - return ((InternalEList)getRequiredConfigProperties()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS: - return getActivationSpecClass(); - case JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES: - return getRequiredConfigProperties(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS: - setActivationSpecClass((String)newValue); - return; - case JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES: - getRequiredConfigProperties().clear(); - getRequiredConfigProperties().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS: - setActivationSpecClass(ACTIVATION_SPEC_CLASS_EDEFAULT); - return; - case JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES: - getRequiredConfigProperties().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS: - return ACTIVATION_SPEC_CLASS_EDEFAULT == null ? activationSpecClass != null : !ACTIVATION_SPEC_CLASS_EDEFAULT.equals(activationSpecClass); - case JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES: - return requiredConfigProperties != null && !requiredConfigProperties.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (activationSpecClass: "); - result.append(activationSpecClass); - result.append(')'); - return result.toString(); - } - -} //ActivationSpecImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AdminObjectImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AdminObjectImpl.java deleted file mode 100644 index d40d43019..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AdminObjectImpl.java +++ /dev/null @@ -1,277 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.jca.AdminObject; -import org.eclipse.jst.j2ee.jca.ConfigProperty; -import org.eclipse.jst.j2ee.jca.JcaPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Admin Object</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.AdminObjectImpl#getAdminObjectInterface <em>Admin Object Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.AdminObjectImpl#getAdminObjectClass <em>Admin Object Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.AdminObjectImpl#getConfigProperties <em>Config Properties</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class AdminObjectImpl extends EObjectImpl implements AdminObject { - /** - * The default value of the '{@link #getAdminObjectInterface() <em>Admin Object Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAdminObjectInterface() - * @generated - * @ordered - */ - protected static final String ADMIN_OBJECT_INTERFACE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAdminObjectInterface() <em>Admin Object Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAdminObjectInterface() - * @generated - * @ordered - */ - protected String adminObjectInterface = ADMIN_OBJECT_INTERFACE_EDEFAULT; - - /** - * The default value of the '{@link #getAdminObjectClass() <em>Admin Object Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAdminObjectClass() - * @generated - * @ordered - */ - protected static final String ADMIN_OBJECT_CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAdminObjectClass() <em>Admin Object Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAdminObjectClass() - * @generated - * @ordered - */ - protected String adminObjectClass = ADMIN_OBJECT_CLASS_EDEFAULT; - - /** - * The cached value of the '{@link #getConfigProperties() <em>Config Properties</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConfigProperties() - * @generated - * @ordered - */ - protected EList configProperties = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected AdminObjectImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getAdminObject(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getAdminObjectInterface() { - return adminObjectInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAdminObjectInterface(String newAdminObjectInterface) { - String oldAdminObjectInterface = adminObjectInterface; - adminObjectInterface = newAdminObjectInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE, oldAdminObjectInterface, adminObjectInterface)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getAdminObjectClass() { - return adminObjectClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAdminObjectClass(String newAdminObjectClass) { - String oldAdminObjectClass = adminObjectClass; - adminObjectClass = newAdminObjectClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_CLASS, oldAdminObjectClass, adminObjectClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getConfigProperties() { - if (configProperties == null) { - configProperties = new EObjectContainmentEList(ConfigProperty.class, this, JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES); - } - return configProperties; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES: - return ((InternalEList)getConfigProperties()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE: - return getAdminObjectInterface(); - case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_CLASS: - return getAdminObjectClass(); - case JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES: - return getConfigProperties(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE: - setAdminObjectInterface((String)newValue); - return; - case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_CLASS: - setAdminObjectClass((String)newValue); - return; - case JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES: - getConfigProperties().clear(); - getConfigProperties().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE: - setAdminObjectInterface(ADMIN_OBJECT_INTERFACE_EDEFAULT); - return; - case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_CLASS: - setAdminObjectClass(ADMIN_OBJECT_CLASS_EDEFAULT); - return; - case JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES: - getConfigProperties().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE: - return ADMIN_OBJECT_INTERFACE_EDEFAULT == null ? adminObjectInterface != null : !ADMIN_OBJECT_INTERFACE_EDEFAULT.equals(adminObjectInterface); - case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_CLASS: - return ADMIN_OBJECT_CLASS_EDEFAULT == null ? adminObjectClass != null : !ADMIN_OBJECT_CLASS_EDEFAULT.equals(adminObjectClass); - case JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES: - return configProperties != null && !configProperties.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (adminObjectInterface: "); - result.append(adminObjectInterface); - result.append(", adminObjectClass: "); - result.append(adminObjectClass); - result.append(')'); - return result.toString(); - } - -} //AdminObjectImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AuthenticationMechanismImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AuthenticationMechanismImpl.java deleted file mode 100644 index ff3246765..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AuthenticationMechanismImpl.java +++ /dev/null @@ -1,866 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanism; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanismType; -import org.eclipse.jst.j2ee.jca.JcaPackage; - - -/** - * The element authentication-mechanism specifies an authentication mechanism supported by the resource adapter. Note that this support is for the resource adapter and not for the underlying EIS instance. The optional description specifies any resource adapter specific requirement for the support of security contract and authentication mechanism. - * - * Note that BasicPassword mechanism type should support the - * javax.resource.spi.security.PasswordCredential interface. - * The Kerbv5 mechanism type should support the - * javax.resource.spi.security.GenericCredential interface. - - */ -public class AuthenticationMechanismImpl extends EObjectImpl implements AuthenticationMechanism, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getAuthenticationMechanism() <em>Authentication Mechanism</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthenticationMechanism() - * @generated - * @ordered - */ - protected static final String AUTHENTICATION_MECHANISM_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAuthenticationMechanism() <em>Authentication Mechanism</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthenticationMechanism() - * @generated - * @ordered - */ - protected String authenticationMechanism = AUTHENTICATION_MECHANISM_EDEFAULT; - - /** - * The default value of the '{@link #getAuthenticationMechanismType() <em>Authentication Mechanism Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthenticationMechanismType() - * @generated - * @ordered - */ - protected static final AuthenticationMechanismType AUTHENTICATION_MECHANISM_TYPE_EDEFAULT = AuthenticationMechanismType.BASIC_PASSWORD_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected AuthenticationMechanismType authenticationMechanismType = AUTHENTICATION_MECHANISM_TYPE_EDEFAULT; - /** - * This is true if the Authentication Mechanism Type attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean authenticationMechanismTypeESet = false; - - /** - * The default value of the '{@link #getCredentialInterface() <em>Credential Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCredentialInterface() - * @generated - * @ordered - */ - protected static final String CREDENTIAL_INTERFACE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String credentialInterface = CREDENTIAL_INTERFACE_EDEFAULT; - /** - * The default value of the '{@link #getCustomAuthMechType() <em>Custom Auth Mech Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCustomAuthMechType() - * @generated - * @ordered - */ - protected static final String CUSTOM_AUTH_MECH_TYPE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String customAuthMechType = CUSTOM_AUTH_MECH_TYPE_EDEFAULT; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - protected AuthenticationMechanismImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getAuthenticationMechanism(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTION, oldDescription, description)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getAuthenticationMechanism() { - return authenticationMechanism; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAuthenticationMechanism(String newAuthenticationMechanism) { - String oldAuthenticationMechanism = authenticationMechanism; - authenticationMechanism = newAuthenticationMechanism; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM, oldAuthenticationMechanism, authenticationMechanism)); - } - - /** - * @generated This field/method will be replaced during code generation - * The authentication-mechanism-type specifies type of an authentication mechanism. - * - * The example values are: - * - BasicPassword - * - Kerbv5 - * - * Any additional security mechanisms are outside the scope of the - * Connector architecture specification. - - */ - public AuthenticationMechanismType getAuthenticationMechanismType() { - return authenticationMechanismType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAuthenticationMechanismType(AuthenticationMechanismType newAuthenticationMechanismType) { - AuthenticationMechanismType oldAuthenticationMechanismType = authenticationMechanismType; - authenticationMechanismType = newAuthenticationMechanismType == null ? AUTHENTICATION_MECHANISM_TYPE_EDEFAULT : newAuthenticationMechanismType; - boolean oldAuthenticationMechanismTypeESet = authenticationMechanismTypeESet; - authenticationMechanismTypeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE, oldAuthenticationMechanismType, authenticationMechanismType, !oldAuthenticationMechanismTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetAuthenticationMechanismType() { - AuthenticationMechanismType oldAuthenticationMechanismType = authenticationMechanismType; - boolean oldAuthenticationMechanismTypeESet = authenticationMechanismTypeESet; - authenticationMechanismType = AUTHENTICATION_MECHANISM_TYPE_EDEFAULT; - authenticationMechanismTypeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE, oldAuthenticationMechanismType, AUTHENTICATION_MECHANISM_TYPE_EDEFAULT, oldAuthenticationMechanismTypeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetAuthenticationMechanismType() { - return authenticationMechanismTypeESet; - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies the interface that the resource adapter implementation supports for - * the representation of the credentials. This element should be used by - * application server to find out the Credential interface it should use as part - * of the security contract. - * - * The possible values are: - * javax.resource.spi.security.PasswordCredential - * javax.resource.spi.security.GenericCredential - - */ - public String getCredentialInterface() { - return credentialInterface; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setCredentialInterface(String newCredentialInterface) { - String oldCredentialInterface = credentialInterface; - credentialInterface = newCredentialInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE, oldCredentialInterface, credentialInterface)); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM: - return AUTHENTICATION_MECHANISM_EDEFAULT == null ? authenticationMechanism != null : !AUTHENTICATION_MECHANISM_EDEFAULT.equals(authenticationMechanism); - case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE: - return isSetAuthenticationMechanismType(); - case JcaPackage.AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE: - return CREDENTIAL_INTERFACE_EDEFAULT == null ? credentialInterface != null : !CREDENTIAL_INTERFACE_EDEFAULT.equals(credentialInterface); - case JcaPackage.AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE: - return CUSTOM_AUTH_MECH_TYPE_EDEFAULT == null ? customAuthMechType != null : !CUSTOM_AUTH_MECH_TYPE_EDEFAULT.equals(customAuthMechType); - case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTION: - setDescription((String)newValue); - return; - case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM: - setAuthenticationMechanism((String)newValue); - return; - case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE: - setAuthenticationMechanismType((AuthenticationMechanismType)newValue); - return; - case JcaPackage.AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE: - setCredentialInterface((String)newValue); - return; - case JcaPackage.AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE: - setCustomAuthMechType((String)newValue); - return; - case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM: - setAuthenticationMechanism(AUTHENTICATION_MECHANISM_EDEFAULT); - return; - case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE: - unsetAuthenticationMechanismType(); - return; - case JcaPackage.AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE: - setCredentialInterface(CREDENTIAL_INTERFACE_EDEFAULT); - return; - case JcaPackage.AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE: - setCustomAuthMechType(CUSTOM_AUTH_MECH_TYPE_EDEFAULT); - return; - case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", authenticationMechanism: "); - result.append(authenticationMechanism); - result.append(", authenticationMechanismType: "); - if (authenticationMechanismTypeESet) result.append(authenticationMechanismType); else result.append("<unset>"); - result.append(", credentialInterface: "); - result.append(credentialInterface); - result.append(", customAuthMechType: "); - result.append(customAuthMechType); - result.append(')'); - return result.toString(); - } - - /** - * @generated This field/method will be replaced during code generation - * This is an internal variable used to store the AthenticationMechanismType when - * it is something other than BasicPassword or Kerbv5. AuthenticationMecanismType - * is set to 'Custom' in those cases. This attribute should not be used by - * runtime. It is only used by the writer to write back out the custom - * AuthenticationMechanismType string in the case of custom - * AuthenticationMechanismType's. - * This variable is internal, used only by the reader//writer classes, and can - * change or disappear without notice. - */ - public String getCustomAuthMechType() { - return customAuthMechType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setCustomAuthMechType(String newCustomAuthMechType) { - String oldCustomAuthMechType = customAuthMechType; - customAuthMechType = newCustomAuthMechType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE, oldCustomAuthMechType, customAuthMechType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTION: - return getDescription(); - case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM: - return getAuthenticationMechanism(); - case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE: - return getAuthenticationMechanismType(); - case JcaPackage.AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE: - return getCredentialInterface(); - case JcaPackage.AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE: - return getCustomAuthMechType(); - case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConfigPropertyImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConfigPropertyImpl.java deleted file mode 100644 index db8bc908b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConfigPropertyImpl.java +++ /dev/null @@ -1,357 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.jca.ConfigProperty; -import org.eclipse.jst.j2ee.jca.JcaPackage; - - -/** - * The config property contains a declaration of a single - * configuration property for a ManagedConnectionFactory instance. - * - * Each ManagedConnectionFactory instance creates connections to a specific EIS instance based on the properties configured on the ManagedConnectionFactory instance. The configurable properties are specified only once in the deployment descriptor, even though a resource adapter can be used to configure multiple ManagedConnnection-Factory instances (that create connections to different instances of the same EIS). - * - * The declaration consists of an optional description, name, type - * and an optional value of the configuration property. If the resource - * adapter provider does not specify a value than the deployer is - * responsible for providing a valid value for a configuration property. - * - * Any bounds or well-defined values of properties should be described in the description. - - */ -public class ConfigPropertyImpl extends EObjectImpl implements ConfigProperty, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String name = NAME_EDEFAULT; - /** - * The default value of the '{@link #getType() <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected static final String TYPE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String type = TYPE_EDEFAULT; - /** - * The default value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String value = VALUE_EDEFAULT; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - protected ConfigPropertyImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getConfigProperty(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONFIG_PROPERTY__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - * Contains the name of a configuration property. - * - * The connector architecture defines a set of well-defined properties all of type java.lang.String. These are as follows: - * - * ServerName - * PortNumber - * UserName - * Password - * ConnectionURL - * - * A resource adapter provider can extend this property set to include properties specific to the resource adapter and its underlying EIS. - - */ - public String getName() { - return name; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONFIG_PROPERTY__NAME, oldName, name)); - } - - /** - * @generated This field/method will be replaced during code generation - * Contains the fully qualified Java type of a configuration property as required by ManagedConnection-Factory instance. - * - * The following are the legal values of config-property-type: - * java.lang.Boolean, java.lang.String, java.lang.Integer, - * java.lang.Double, java.lang.Byte, java.lang.Short, - * java.lang.Long, java.lang.Float, java.lang.Character - */ - public String getType() { - return type; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setType(String newType) { - String oldType = type; - type = newType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONFIG_PROPERTY__TYPE, oldType, type)); - } - - /** - * @generated This field/method will be replaced during code generation - * Contains the value of a configuration entry. - */ - public String getValue() { - return value; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONFIG_PROPERTY__VALUE, oldValue, value)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, JcaPackage.CONFIG_PROPERTY__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.CONFIG_PROPERTY__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONFIG_PROPERTY__DESCRIPTION: - return getDescription(); - case JcaPackage.CONFIG_PROPERTY__NAME: - return getName(); - case JcaPackage.CONFIG_PROPERTY__TYPE: - return getType(); - case JcaPackage.CONFIG_PROPERTY__VALUE: - return getValue(); - case JcaPackage.CONFIG_PROPERTY__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONFIG_PROPERTY__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case JcaPackage.CONFIG_PROPERTY__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case JcaPackage.CONFIG_PROPERTY__TYPE: - return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); - case JcaPackage.CONFIG_PROPERTY__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - case JcaPackage.CONFIG_PROPERTY__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONFIG_PROPERTY__DESCRIPTION: - setDescription((String)newValue); - return; - case JcaPackage.CONFIG_PROPERTY__NAME: - setName((String)newValue); - return; - case JcaPackage.CONFIG_PROPERTY__TYPE: - setType((String)newValue); - return; - case JcaPackage.CONFIG_PROPERTY__VALUE: - setValue((String)newValue); - return; - case JcaPackage.CONFIG_PROPERTY__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONFIG_PROPERTY__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case JcaPackage.CONFIG_PROPERTY__NAME: - setName(NAME_EDEFAULT); - return; - case JcaPackage.CONFIG_PROPERTY__TYPE: - setType(TYPE_EDEFAULT); - return; - case JcaPackage.CONFIG_PROPERTY__VALUE: - setValue(VALUE_EDEFAULT); - return; - case JcaPackage.CONFIG_PROPERTY__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", name: "); - result.append(name); - result.append(", type: "); - result.append(type); - result.append(", value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectionDefinitionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectionDefinitionImpl.java deleted file mode 100644 index c6f6142f4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectionDefinitionImpl.java +++ /dev/null @@ -1,439 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.jca.ConfigProperty; -import org.eclipse.jst.j2ee.jca.ConnectionDefinition; -import org.eclipse.jst.j2ee.jca.JcaPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Connection Definition</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getManagedConnectionFactoryClass <em>Managed Connection Factory Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getConnectionFactoryInterface <em>Connection Factory Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getConnectionFactoryImplClass <em>Connection Factory Impl Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getConnectionInterface <em>Connection Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getConnectionImplClass <em>Connection Impl Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getConfigProperties <em>Config Properties</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ConnectionDefinitionImpl extends EObjectImpl implements ConnectionDefinition { - /** - * The default value of the '{@link #getManagedConnectionFactoryClass() <em>Managed Connection Factory Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getManagedConnectionFactoryClass() - * @generated - * @ordered - */ - protected static final String MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getManagedConnectionFactoryClass() <em>Managed Connection Factory Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getManagedConnectionFactoryClass() - * @generated - * @ordered - */ - protected String managedConnectionFactoryClass = MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT; - - /** - * The default value of the '{@link #getConnectionFactoryInterface() <em>Connection Factory Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionFactoryInterface() - * @generated - * @ordered - */ - protected static final String CONNECTION_FACTORY_INTERFACE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getConnectionFactoryInterface() <em>Connection Factory Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionFactoryInterface() - * @generated - * @ordered - */ - protected String connectionFactoryInterface = CONNECTION_FACTORY_INTERFACE_EDEFAULT; - - /** - * The default value of the '{@link #getConnectionFactoryImplClass() <em>Connection Factory Impl Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionFactoryImplClass() - * @generated - * @ordered - */ - protected static final String CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getConnectionFactoryImplClass() <em>Connection Factory Impl Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionFactoryImplClass() - * @generated - * @ordered - */ - protected String connectionFactoryImplClass = CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT; - - /** - * The default value of the '{@link #getConnectionInterface() <em>Connection Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionInterface() - * @generated - * @ordered - */ - protected static final String CONNECTION_INTERFACE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getConnectionInterface() <em>Connection Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionInterface() - * @generated - * @ordered - */ - protected String connectionInterface = CONNECTION_INTERFACE_EDEFAULT; - - /** - * The default value of the '{@link #getConnectionImplClass() <em>Connection Impl Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionImplClass() - * @generated - * @ordered - */ - protected static final String CONNECTION_IMPL_CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getConnectionImplClass() <em>Connection Impl Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionImplClass() - * @generated - * @ordered - */ - protected String connectionImplClass = CONNECTION_IMPL_CLASS_EDEFAULT; - - /** - * The cached value of the '{@link #getConfigProperties() <em>Config Properties</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConfigProperties() - * @generated - * @ordered - */ - protected EList configProperties = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ConnectionDefinitionImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getConnectionDefinition(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getManagedConnectionFactoryClass() { - return managedConnectionFactoryClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setManagedConnectionFactoryClass(String newManagedConnectionFactoryClass) { - String oldManagedConnectionFactoryClass = managedConnectionFactoryClass; - managedConnectionFactoryClass = newManagedConnectionFactoryClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS, oldManagedConnectionFactoryClass, managedConnectionFactoryClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getConnectionFactoryInterface() { - return connectionFactoryInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setConnectionFactoryInterface(String newConnectionFactoryInterface) { - String oldConnectionFactoryInterface = connectionFactoryInterface; - connectionFactoryInterface = newConnectionFactoryInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE, oldConnectionFactoryInterface, connectionFactoryInterface)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getConnectionFactoryImplClass() { - return connectionFactoryImplClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setConnectionFactoryImplClass(String newConnectionFactoryImplClass) { - String oldConnectionFactoryImplClass = connectionFactoryImplClass; - connectionFactoryImplClass = newConnectionFactoryImplClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS, oldConnectionFactoryImplClass, connectionFactoryImplClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getConnectionInterface() { - return connectionInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setConnectionInterface(String newConnectionInterface) { - String oldConnectionInterface = connectionInterface; - connectionInterface = newConnectionInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTION_DEFINITION__CONNECTION_INTERFACE, oldConnectionInterface, connectionInterface)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getConnectionImplClass() { - return connectionImplClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setConnectionImplClass(String newConnectionImplClass) { - String oldConnectionImplClass = connectionImplClass; - connectionImplClass = newConnectionImplClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS, oldConnectionImplClass, connectionImplClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getConfigProperties() { - if (configProperties == null) { - configProperties = new EObjectContainmentEList(ConfigProperty.class, this, JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES); - } - return configProperties; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES: - return ((InternalEList)getConfigProperties()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS: - return getManagedConnectionFactoryClass(); - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE: - return getConnectionFactoryInterface(); - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS: - return getConnectionFactoryImplClass(); - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_INTERFACE: - return getConnectionInterface(); - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS: - return getConnectionImplClass(); - case JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES: - return getConfigProperties(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS: - setManagedConnectionFactoryClass((String)newValue); - return; - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE: - setConnectionFactoryInterface((String)newValue); - return; - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS: - setConnectionFactoryImplClass((String)newValue); - return; - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_INTERFACE: - setConnectionInterface((String)newValue); - return; - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS: - setConnectionImplClass((String)newValue); - return; - case JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES: - getConfigProperties().clear(); - getConfigProperties().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS: - setManagedConnectionFactoryClass(MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT); - return; - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE: - setConnectionFactoryInterface(CONNECTION_FACTORY_INTERFACE_EDEFAULT); - return; - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS: - setConnectionFactoryImplClass(CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT); - return; - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_INTERFACE: - setConnectionInterface(CONNECTION_INTERFACE_EDEFAULT); - return; - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS: - setConnectionImplClass(CONNECTION_IMPL_CLASS_EDEFAULT); - return; - case JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES: - getConfigProperties().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS: - return MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT == null ? managedConnectionFactoryClass != null : !MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT.equals(managedConnectionFactoryClass); - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE: - return CONNECTION_FACTORY_INTERFACE_EDEFAULT == null ? connectionFactoryInterface != null : !CONNECTION_FACTORY_INTERFACE_EDEFAULT.equals(connectionFactoryInterface); - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS: - return CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT == null ? connectionFactoryImplClass != null : !CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT.equals(connectionFactoryImplClass); - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_INTERFACE: - return CONNECTION_INTERFACE_EDEFAULT == null ? connectionInterface != null : !CONNECTION_INTERFACE_EDEFAULT.equals(connectionInterface); - case JcaPackage.CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS: - return CONNECTION_IMPL_CLASS_EDEFAULT == null ? connectionImplClass != null : !CONNECTION_IMPL_CLASS_EDEFAULT.equals(connectionImplClass); - case JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES: - return configProperties != null && !configProperties.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (managedConnectionFactoryClass: "); - result.append(managedConnectionFactoryClass); - result.append(", connectionFactoryInterface: "); - result.append(connectionFactoryInterface); - result.append(", connectionFactoryImplClass: "); - result.append(connectionFactoryImplClass); - result.append(", connectionInterface: "); - result.append(connectionInterface); - result.append(", connectionImplClass: "); - result.append(connectionImplClass); - result.append(')'); - return result.toString(); - } - -} //ConnectionDefinitionImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorImpl.java deleted file mode 100644 index 8279024c3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorImpl.java +++ /dev/null @@ -1,508 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; -import org.eclipse.jst.j2ee.jca.Connector; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.License; -import org.eclipse.jst.j2ee.jca.ResourceAdapter; - - -/** - * The connector element is the root element of the deployment descriptor for the resource adapter. This element includes general information - vendor name, version, specification version supported, icon - about the resource adapter module. It also includes information specific to the implementation of the resource adapter library as specified through the element resourceadapter. - - */ -public class ConnectorImpl extends CompatibilityDescriptionGroupImpl implements Connector{ - - /** - * The default value of the '{@link #getVendorName() <em>Vendor Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVendorName() - * @generated - * @ordered - */ - protected static final String VENDOR_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String vendorName = VENDOR_NAME_EDEFAULT; - /** - * The default value of the '{@link #getSpecVersion() <em>Spec Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSpecVersion() - * @generated - * @ordered - */ - protected static final String SPEC_VERSION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String specVersion = SPEC_VERSION_EDEFAULT; - /** - * The default value of the '{@link #getEisType() <em>Eis Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEisType() - * @generated - * @ordered - */ - protected static final String EIS_TYPE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String eisType = EIS_TYPE_EDEFAULT; - /** - * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected static final String VERSION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String version = VERSION_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected License license = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected ResourceAdapter resourceAdapter = null; - protected ConnectorImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getConnector(); - } - - /** - * - */ - public void setDisplayName(String newDisplayName) { - super.setDisplayName(newDisplayName); - } - - /** - * This returns the module version id. Compare with J2EEVersionConstants to determine module level - */ - public int getVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) throw new IllegalStateException(); - return res.getModuleVersionID(); - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies the name of resource adapter provider vendor. - * Example: Wombat Corp. - */ - public String getVendorName() { - return vendorName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setVendorName(String newVendorName) { - String oldVendorName = vendorName; - vendorName = newVendorName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__VENDOR_NAME, oldVendorName, vendorName)); - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies the version of the connector architecture specification that is supported by this resource adapter. This information enables deployer to configure the resource adapter to support deployment and runtime requirements of the corresponding connector architecture specification. - - */ - public String getSpecVersion() { - return specVersion; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setSpecVersion(String newSpecVersion) { - String oldSpecVersion = specVersion; - specVersion = newSpecVersion; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__SPEC_VERSION, oldSpecVersion, specVersion)); - } - - /** - * @generated This field/method will be replaced during code generation - * Contains information about the type of the EIS. For example, the type of an EIS can be product name of EIS independent of any version info. - * - * This helps in identifying EIS instances that can be used with - * this resource adapter. - - */ - public String getEisType() { - return eisType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setEisType(String newEisType) { - String oldEisType = eisType; - eisType = newEisType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__EIS_TYPE, oldEisType, eisType)); - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies a string-based version of the resource adapter from the resource adapter provider. - * - * Example: 1.0 - */ - public String getVersion() { - return version; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setVersion(String newVersion) { - String oldVersion = version; - version = newVersion; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__VERSION, oldVersion, version)); - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies licensing requirements for the resource adapter module. This element specifies whether a license is required to deploy and use this resource adapter, and an optional description of the licensing terms (examples: duration of license, number of - * connection restrictions). - */ - public License getLicense() { - return license; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetLicense(License newLicense, NotificationChain msgs) { - License oldLicense = license; - license = newLicense; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__LICENSE, oldLicense, newLicense); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLicense(License newLicense) { - if (newLicense != license) { - NotificationChain msgs = null; - if (license != null) - msgs = ((InternalEObject)license).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.CONNECTOR__LICENSE, null, msgs); - if (newLicense != null) - msgs = ((InternalEObject)newLicense).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.CONNECTOR__LICENSE, null, msgs); - msgs = basicSetLicense(newLicense, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__LICENSE, newLicense, newLicense)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public ResourceAdapter getResourceAdapter() { - return resourceAdapter; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetResourceAdapter(ResourceAdapter newResourceAdapter, NotificationChain msgs) { - ResourceAdapter oldResourceAdapter = resourceAdapter; - resourceAdapter = newResourceAdapter; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__RESOURCE_ADAPTER, oldResourceAdapter, newResourceAdapter); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setResourceAdapter(ResourceAdapter newResourceAdapter) { - if (newResourceAdapter != resourceAdapter) { - NotificationChain msgs = null; - if (resourceAdapter != null) - msgs = ((InternalEObject)resourceAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.CONNECTOR__RESOURCE_ADAPTER, null, msgs); - if (newResourceAdapter != null) - msgs = ((InternalEObject)newResourceAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.CONNECTOR__RESOURCE_ADAPTER, null, msgs); - msgs = basicSetResourceAdapter(newResourceAdapter, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__RESOURCE_ADAPTER, newResourceAdapter, newResourceAdapter)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.CONNECTOR__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case JcaPackage.CONNECTOR__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case JcaPackage.CONNECTOR__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case JcaPackage.CONNECTOR__LICENSE: - return basicSetLicense(null, msgs); - case JcaPackage.CONNECTOR__RESOURCE_ADAPTER: - return basicSetResourceAdapter(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONNECTOR__ICONS: - return getIcons(); - case JcaPackage.CONNECTOR__DISPLAY_NAMES: - return getDisplayNames(); - case JcaPackage.CONNECTOR__DESCRIPTIONS: - return getDescriptions(); - case JcaPackage.CONNECTOR__SMALL_ICON: - return getSmallIcon(); - case JcaPackage.CONNECTOR__LARGE_ICON: - return getLargeIcon(); - case JcaPackage.CONNECTOR__DESCRIPTION: - return getDescription(); - case JcaPackage.CONNECTOR__DISPLAY_NAME: - return getDisplayName(); - case JcaPackage.CONNECTOR__VENDOR_NAME: - return getVendorName(); - case JcaPackage.CONNECTOR__SPEC_VERSION: - return getSpecVersion(); - case JcaPackage.CONNECTOR__EIS_TYPE: - return getEisType(); - case JcaPackage.CONNECTOR__VERSION: - return getVersion(); - case JcaPackage.CONNECTOR__LICENSE: - return getLicense(); - case JcaPackage.CONNECTOR__RESOURCE_ADAPTER: - return getResourceAdapter(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONNECTOR__ICONS: - return icons != null && !icons.isEmpty(); - case JcaPackage.CONNECTOR__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case JcaPackage.CONNECTOR__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case JcaPackage.CONNECTOR__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case JcaPackage.CONNECTOR__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case JcaPackage.CONNECTOR__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case JcaPackage.CONNECTOR__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case JcaPackage.CONNECTOR__VENDOR_NAME: - return VENDOR_NAME_EDEFAULT == null ? vendorName != null : !VENDOR_NAME_EDEFAULT.equals(vendorName); - case JcaPackage.CONNECTOR__SPEC_VERSION: - return SPEC_VERSION_EDEFAULT == null ? specVersion != null : !SPEC_VERSION_EDEFAULT.equals(specVersion); - case JcaPackage.CONNECTOR__EIS_TYPE: - return EIS_TYPE_EDEFAULT == null ? eisType != null : !EIS_TYPE_EDEFAULT.equals(eisType); - case JcaPackage.CONNECTOR__VERSION: - return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); - case JcaPackage.CONNECTOR__LICENSE: - return license != null; - case JcaPackage.CONNECTOR__RESOURCE_ADAPTER: - return resourceAdapter != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONNECTOR__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case JcaPackage.CONNECTOR__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case JcaPackage.CONNECTOR__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case JcaPackage.CONNECTOR__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case JcaPackage.CONNECTOR__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case JcaPackage.CONNECTOR__DESCRIPTION: - setDescription((String)newValue); - return; - case JcaPackage.CONNECTOR__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case JcaPackage.CONNECTOR__VENDOR_NAME: - setVendorName((String)newValue); - return; - case JcaPackage.CONNECTOR__SPEC_VERSION: - setSpecVersion((String)newValue); - return; - case JcaPackage.CONNECTOR__EIS_TYPE: - setEisType((String)newValue); - return; - case JcaPackage.CONNECTOR__VERSION: - setVersion((String)newValue); - return; - case JcaPackage.CONNECTOR__LICENSE: - setLicense((License)newValue); - return; - case JcaPackage.CONNECTOR__RESOURCE_ADAPTER: - setResourceAdapter((ResourceAdapter)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.CONNECTOR__ICONS: - getIcons().clear(); - return; - case JcaPackage.CONNECTOR__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case JcaPackage.CONNECTOR__DESCRIPTIONS: - getDescriptions().clear(); - return; - case JcaPackage.CONNECTOR__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case JcaPackage.CONNECTOR__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case JcaPackage.CONNECTOR__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case JcaPackage.CONNECTOR__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case JcaPackage.CONNECTOR__VENDOR_NAME: - setVendorName(VENDOR_NAME_EDEFAULT); - return; - case JcaPackage.CONNECTOR__SPEC_VERSION: - setSpecVersion(SPEC_VERSION_EDEFAULT); - return; - case JcaPackage.CONNECTOR__EIS_TYPE: - setEisType(EIS_TYPE_EDEFAULT); - return; - case JcaPackage.CONNECTOR__VERSION: - setVersion(VERSION_EDEFAULT); - return; - case JcaPackage.CONNECTOR__LICENSE: - setLicense((License)null); - return; - case JcaPackage.CONNECTOR__RESOURCE_ADAPTER: - setResourceAdapter((ResourceAdapter)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (vendorName: "); - result.append(vendorName); - result.append(", specVersion: "); - result.append(specVersion); - result.append(", eisType: "); - result.append(eisType); - result.append(", version: "); - result.append(version); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceFactory.java deleted file mode 100644 index 3226faaa3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceFactory.java +++ /dev/null @@ -1,82 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.RendererFactory; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory; - - -public class ConnectorResourceFactory extends TranslatorResourceFactory { - - /** - * Method registerDtds. - */ - public static void registerDtds() { - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.CONNECTOR_SYSTEMID_1_0, "connector_1_0.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.CONNECTOR_ALT_SYSTEMID_1_0, "connector_1.0.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.CONNECTOR_SCHEMA_LOC_1_5, "connector_1_5.xsd"); //$NON-NLS-1$ - } - - - - /** - * Constructor for ConnectorResourceFactory. - * @param aRendererFactory - */ - public ConnectorResourceFactory() { - super(RendererFactory.getDefaultRendererFactory()); - } - - /** - * Constructor for ConnectorResourceFactory. - * @param aRendererFactory - */ - public ConnectorResourceFactory(RendererFactory aRendererFactory) { - super(aRendererFactory); - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceFactory#createResource(org.eclipse.emf.common.util.URI, com.ibm.etools.emf2xml.Renderer) - */ - protected TranslatorResource createResource(URI uri, Renderer aRenderer) { - return new ConnectorResourceImpl(uri, aRenderer); - } - - /** - * Register myself with the Resource.Factory.Registry - */ - public static void registerWith(RendererFactory aRendererFactory) { - J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(J2EEConstants.RAR_SHORT_NAME, new ConnectorResourceFactory(aRendererFactory)); - } - - /** - * register using the default renderer factory. - * @see #registerWith(RendererFactory) - */ - public static void register() { - registerWith(RendererFactory.getDefaultRendererFactory()); - } - - public static void register(FileNameResourceFactoryRegistry aRegistry) { - aRegistry.registerLastFileSegment(J2EEConstants.RAR_SHORT_NAME, new ConnectorResourceFactory(RendererFactory.getDefaultRendererFactory())); - } - - public static Resource.Factory getRegisteredFactory() { - return J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.RAR_DD_URI_OBJ); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceImpl.java deleted file mode 100644 index f6f9dff55..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceImpl.java +++ /dev/null @@ -1,188 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.common.internal.impl.XMLResourceImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.model.translator.connector.ConnectorTranslator; -import org.eclipse.jst.j2ee.jca.Connector; -import org.eclipse.jst.j2ee.jca.ConnectorResource; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.Translator; - - -public class ConnectorResourceImpl extends XMLResourceImpl implements ConnectorResource{ - - /** - * Constructor for ApplicationClientResourceImpl. - * @param uri - * @param aRenderer - */ - public ConnectorResourceImpl(URI uri, Renderer aRenderer) { - super(uri, aRenderer); - } - /** - * Constructor for ApplicationClientResourceImpl. - * @param aRenderer - */ - public ConnectorResourceImpl(Renderer aRenderer) { - super(aRenderer); - } - - /** - * Return the first element in the EList. - */ - public Connector getConnector() { - return (Connector) getRootObject(); - } - - - public int getType() { - return RAR_TYPE; - } - - - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_SystemID() - */ - public String getJ2EE_1_2_SystemID() { - return J2EEConstants.CONNECTOR_SYSTEMID_1_0; - } - - public String getJ2EE_Alt_1_2_SystemID() { - return J2EEConstants.CONNECTOR_ALT_SYSTEMID_1_0; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID() - */ - public String getJ2EE_1_3_SystemID() { - return J2EEConstants.CONNECTOR_SYSTEMID_1_0; - } - - public String getJ2EE_Alt_1_3_SystemID() { - return J2EEConstants.CONNECTOR_ALT_SYSTEMID_1_0; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_PublicID() - */ - public String getJ2EE_1_2_PublicID() { - return J2EEConstants.CONNECTOR_PUBLICID_1_0; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_PublicID() - */ - public String getJ2EE_1_3_PublicID() { - return J2EEConstants.CONNECTOR_PUBLICID_1_0; - } - - - public String getDoctype() { - switch (getJ2EEVersionID()) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - return J2EEConstants.CONNECTOR_DOCTYPE; - default : - return null; - } - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#setDoctypeValues(java.lang.String, java.lang.String) - * This is setting the module version on the resource. - */ - public void setDoctypeValues(String publicId, String systemId) { - int version = JCA_1_5_ID; - if (systemId == null) - version = JCA_1_5_ID; - else if (systemId.equals(getJ2EE_1_3_SystemID())) - version = JCA_1_0_ID; - super.setDoctypeValues(publicId, systemId); - super.setVersionID(version); - } - /* - * This directly sets the module version id - */ - public void setModuleVersionID(int id) { - super.setVersionID(id); - switch (id) { - case (JCA_1_5_ID) : - super.setDoctypeValues(null, null); - break; - case (JCA_1_0_ID) : - super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - } - syncVersionOfRootObject(); - } - /* - * Based on the J2EE version, this will set the module version - */ - public void setJ2EEVersionID(int id) { - switch (id) { - case (J2EE_1_4_ID) : - primSetDoctypeValues(null, null); - primSetVersionID(JCA_1_5_ID); - break; - case (J2EE_1_3_ID) : - primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - primSetVersionID(JCA_1_0_ID); - break; - case (J2EE_1_2_ID) : - primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - primSetVersionID(JCA_1_0_ID); - } - syncVersionOfRootObject(); - } - /** - * @see com.ibm.etools.emf2xml.TranslatorResource#getRootTranslator() - */ - public Translator getRootTranslator() { - return ConnectorTranslator.INSTANCE; - } - /* Return J2EE version based on module version - */ - public int getJ2EEVersionID() { - switch (getModuleVersionID()) { - case J2EEVersionConstants.JCA_1_0_ID : - return J2EEVersionConstants.J2EE_1_3_ID; - case J2EEVersionConstants.JCA_1_5_ID : - return J2EEVersionConstants.J2EE_1_4_ID; - default : - return J2EEVersionConstants.J2EE_1_4_ID; - } - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#getDefaultVersionID() - */ - protected int getDefaultVersionID() { - return JCA_1_5_ID; - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.impl.XMLResourceImpl#syncVersionOfRootObject() - */ - protected void syncVersionOfRootObject() { - Connector conn = getConnector(); - if (conn == null) - return; - - String version = conn.getSpecVersion(); - String newVersion = getModuleVersionString(); - if (!newVersion.equals(version)) - conn.setSpecVersion(newVersion); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/InboundResourceAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/InboundResourceAdapterImpl.java deleted file mode 100644 index 80e5bd44f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/InboundResourceAdapterImpl.java +++ /dev/null @@ -1,181 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.jca.InboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.MessageAdapter; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Inbound Resource Adapter</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.InboundResourceAdapterImpl#getMessageAdapter <em>Message Adapter</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class InboundResourceAdapterImpl extends EObjectImpl implements InboundResourceAdapter { - /** - * The cached value of the '{@link #getMessageAdapter() <em>Message Adapter</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageAdapter() - * @generated - * @ordered - */ - protected MessageAdapter messageAdapter = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected InboundResourceAdapterImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getInboundResourceAdapter(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MessageAdapter getMessageAdapter() { - return messageAdapter; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetMessageAdapter(MessageAdapter newMessageAdapter, NotificationChain msgs) { - MessageAdapter oldMessageAdapter = messageAdapter; - messageAdapter = newMessageAdapter; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER, oldMessageAdapter, newMessageAdapter); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMessageAdapter(MessageAdapter newMessageAdapter) { - if (newMessageAdapter != messageAdapter) { - NotificationChain msgs = null; - if (messageAdapter != null) - msgs = ((InternalEObject)messageAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER, null, msgs); - if (newMessageAdapter != null) - msgs = ((InternalEObject)newMessageAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER, null, msgs); - msgs = basicSetMessageAdapter(newMessageAdapter, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER, newMessageAdapter, newMessageAdapter)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER: - return basicSetMessageAdapter(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER: - return getMessageAdapter(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER: - setMessageAdapter((MessageAdapter)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER: - setMessageAdapter((MessageAdapter)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER: - return messageAdapter != null; - } - return eDynamicIsSet(eFeature); - } - -} //InboundResourceAdapterImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaFactoryImpl.java deleted file mode 100644 index e7b1ebc8b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaFactoryImpl.java +++ /dev/null @@ -1,429 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.jca.ActivationSpec; -import org.eclipse.jst.j2ee.jca.AdminObject; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanism; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanismType; -import org.eclipse.jst.j2ee.jca.ConfigProperty; -import org.eclipse.jst.j2ee.jca.ConnectionDefinition; -import org.eclipse.jst.j2ee.jca.Connector; -import org.eclipse.jst.j2ee.jca.InboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.JcaFactory; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.License; -import org.eclipse.jst.j2ee.jca.MessageAdapter; -import org.eclipse.jst.j2ee.jca.MessageListener; -import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType; -import org.eclipse.jst.j2ee.jca.ResourceAdapter; -import org.eclipse.jst.j2ee.jca.SecurityPermission; -import org.eclipse.jst.j2ee.jca.TransactionSupportKind; - -/** - * @generated - */ -public class JcaFactoryImpl extends EFactoryImpl implements JcaFactory{ - - public JcaFactoryImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case JcaPackage.CONNECTOR: return createConnector(); - case JcaPackage.RESOURCE_ADAPTER: return createResourceAdapter(); - case JcaPackage.AUTHENTICATION_MECHANISM: return createAuthenticationMechanism(); - case JcaPackage.CONFIG_PROPERTY: return createConfigProperty(); - case JcaPackage.SECURITY_PERMISSION: return createSecurityPermission(); - case JcaPackage.LICENSE: return createLicense(); - case JcaPackage.INBOUND_RESOURCE_ADAPTER: return createInboundResourceAdapter(); - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER: return createOutboundResourceAdapter(); - case JcaPackage.MESSAGE_ADAPTER: return createMessageAdapter(); - case JcaPackage.CONNECTION_DEFINITION: return createConnectionDefinition(); - case JcaPackage.ADMIN_OBJECT: return createAdminObject(); - case JcaPackage.MESSAGE_LISTENER: return createMessageListener(); - case JcaPackage.ACTIVATION_SPEC: return createActivationSpec(); - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE: return createRequiredConfigPropertyType(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case JcaPackage.AUTHENTICATION_MECHANISM_TYPE: { - AuthenticationMechanismType result = AuthenticationMechanismType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case JcaPackage.TRANSACTION_SUPPORT_KIND: { - TransactionSupportKind result = TransactionSupportKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case JcaPackage.AUTHENTICATION_MECHANISM_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case JcaPackage.TRANSACTION_SUPPORT_KIND: - return instanceValue == null ? null : instanceValue.toString(); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Connector createConnector() { - ConnectorImpl connector = new ConnectorImpl(); - return connector; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public License createLicense() { - LicenseImpl license = new LicenseImpl(); - return license; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public InboundResourceAdapter createInboundResourceAdapter() { - InboundResourceAdapterImpl inboundResourceAdapter = new InboundResourceAdapterImpl(); - return inboundResourceAdapter; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public OutboundResourceAdapter createOutboundResourceAdapter() { - OutboundResourceAdapterImpl outboundResourceAdapter = new OutboundResourceAdapterImpl(); - return outboundResourceAdapter; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MessageAdapter createMessageAdapter() { - MessageAdapterImpl messageAdapter = new MessageAdapterImpl(); - return messageAdapter; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ConnectionDefinition createConnectionDefinition() { - ConnectionDefinitionImpl connectionDefinition = new ConnectionDefinitionImpl(); - return connectionDefinition; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public AdminObject createAdminObject() { - AdminObjectImpl adminObject = new AdminObjectImpl(); - return adminObject; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MessageListener createMessageListener() { - MessageListenerImpl messageListener = new MessageListenerImpl(); - return messageListener; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ActivationSpec createActivationSpec() { - ActivationSpecImpl activationSpec = new ActivationSpecImpl(); - return activationSpec; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RequiredConfigPropertyType createRequiredConfigPropertyType() { - RequiredConfigPropertyTypeImpl requiredConfigPropertyType = new RequiredConfigPropertyTypeImpl(); - return requiredConfigPropertyType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ResourceAdapter createResourceAdapter() { - ResourceAdapterImpl resourceAdapter = new ResourceAdapterImpl(); - return resourceAdapter; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public SecurityPermission createSecurityPermission() { - SecurityPermissionImpl securityPermission = new SecurityPermissionImpl(); - return securityPermission; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public AuthenticationMechanism createAuthenticationMechanism() { - AuthenticationMechanismImpl authenticationMechanism = new AuthenticationMechanismImpl(); - return authenticationMechanism; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ConfigProperty createConfigProperty() { - ConfigPropertyImpl configProperty = new ConfigPropertyImpl(); - return configProperty; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public JcaPackage getJcaPackage() { - return (JcaPackage)getEPackage(); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public static JcaPackage getPackage() { - return JcaPackage.eINSTANCE; - } - -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaPackageImpl.java deleted file mode 100644 index e1a35a7aa..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaPackageImpl.java +++ /dev/null @@ -1,2114 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.ActivationSpec; -import org.eclipse.jst.j2ee.jca.AdminObject; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanism; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanismType; -import org.eclipse.jst.j2ee.jca.ConfigProperty; -import org.eclipse.jst.j2ee.jca.ConnectionDefinition; -import org.eclipse.jst.j2ee.jca.Connector; -import org.eclipse.jst.j2ee.jca.InboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.JcaFactory; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.License; -import org.eclipse.jst.j2ee.jca.MessageAdapter; -import org.eclipse.jst.j2ee.jca.MessageListener; -import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType; -import org.eclipse.jst.j2ee.jca.ResourceAdapter; -import org.eclipse.jst.j2ee.jca.SecurityPermission; -import org.eclipse.jst.j2ee.jca.TransactionSupportKind; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -public class JcaPackageImpl extends EPackageImpl implements JcaPackage, EPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass connectorEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass resourceAdapterEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass authenticationMechanismEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass configPropertyEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass securityPermissionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass licenseEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass inboundResourceAdapterEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass outboundResourceAdapterEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass messageAdapterEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass connectionDefinitionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass adminObjectEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass messageListenerEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass activationSpecEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass requiredConfigPropertyTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum authenticationMechanismTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum transactionSupportKindEEnum = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - private JcaPackageImpl() { - super(eNS_URI, JcaFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - public static JcaPackage init() { - if (isInited) return (JcaPackage)EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI); - - // Obtain or create and register package - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new JcaPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE); - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE); - - // Create package meta-data objects - theJcaPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theCommonPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theTaglibPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - theWscommonPackage.createPackageContents(); - theWsddPackage.createPackageContents(); - - // Initialize created meta-data - theJcaPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theTaglibPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - theWscommonPackage.initializePackageContents(); - theWsddPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theJcaPackage.freeze(); - - return theJcaPackage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getConnector() { - return connectorEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getConnector_VendorName() { - return (EAttribute)connectorEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getConnector_SpecVersion() { - return (EAttribute)connectorEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getConnector_EisType() { - return (EAttribute)connectorEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getConnector_Version() { - return (EAttribute)connectorEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getConnector_License() { - return (EReference)connectorEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getConnector_ResourceAdapter() { - return (EReference)connectorEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getLicense() { - return licenseEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getLicense_Description() { - return (EAttribute)licenseEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getLicense_Required() { - return (EAttribute)licenseEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getLicense_Descriptions() { - return (EReference)licenseEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getInboundResourceAdapter() { - return inboundResourceAdapterEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getInboundResourceAdapter_MessageAdapter() { - return (EReference)inboundResourceAdapterEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getOutboundResourceAdapter() { - return outboundResourceAdapterEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getOutboundResourceAdapter_ReauthenticationSupport() { - return (EAttribute)outboundResourceAdapterEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getOutboundResourceAdapter_TransactionSupport() { - return (EAttribute)outboundResourceAdapterEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getOutboundResourceAdapter_ConnectionDefinitions() { - return (EReference)outboundResourceAdapterEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getOutboundResourceAdapter_AuthenticationMechanisms() { - return (EReference)outboundResourceAdapterEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMessageAdapter() { - return messageAdapterEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMessageAdapter_MessageListeners() { - return (EReference)messageAdapterEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getConnectionDefinition() { - return connectionDefinitionEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getConnectionDefinition_ManagedConnectionFactoryClass() { - return (EAttribute)connectionDefinitionEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getConnectionDefinition_ConnectionFactoryInterface() { - return (EAttribute)connectionDefinitionEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getConnectionDefinition_ConnectionFactoryImplClass() { - return (EAttribute)connectionDefinitionEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getConnectionDefinition_ConnectionInterface() { - return (EAttribute)connectionDefinitionEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getConnectionDefinition_ConnectionImplClass() { - return (EAttribute)connectionDefinitionEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getConnectionDefinition_ConfigProperties() { - return (EReference)connectionDefinitionEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getAdminObject() { - return adminObjectEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAdminObject_AdminObjectInterface() { - return (EAttribute)adminObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAdminObject_AdminObjectClass() { - return (EAttribute)adminObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getAdminObject_ConfigProperties() { - return (EReference)adminObjectEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMessageListener() { - return messageListenerEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMessageListener_MessageListenerType() { - return (EAttribute)messageListenerEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMessageListener_ActivationSpec() { - return (EReference)messageListenerEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getActivationSpec() { - return activationSpecEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getActivationSpec_ActivationSpecClass() { - return (EAttribute)activationSpecEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getActivationSpec_RequiredConfigProperties() { - return (EReference)activationSpecEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getRequiredConfigPropertyType() { - return requiredConfigPropertyTypeEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getRequiredConfigPropertyType_Name() { - return (EAttribute)requiredConfigPropertyTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getRequiredConfigPropertyType_Descriptions() { - return (EReference)requiredConfigPropertyTypeEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getResourceAdapter() { - return resourceAdapterEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceAdapter_ManagedConnectionFactoryClass() { - return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceAdapter_ConnectionFactoryInterface() { - return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceAdapter_ConnectionFactoryImplClass() { - return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceAdapter_ConnectionInterface() { - return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceAdapter_ConnectionImplClass() { - return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceAdapter_TransactionSupport() { - return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getResourceAdapter_ReauthenticationSupport() { - return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getResourceAdapter_ResourceAdapterClass() { - return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(7); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getResourceAdapter_SecurityPermissions() { - return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(8); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getResourceAdapter_AuthenticationMechanisms() { - return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(9); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getResourceAdapter_ConfigProperties() { - return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(10); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getResourceAdapter_OutboundResourceAdapter() { - return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(11); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getResourceAdapter_InboundResourceAdapter() { - return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(12); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getResourceAdapter_AdminObjects() { - return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(13); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getSecurityPermission() { - return securityPermissionEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSecurityPermission_Description() { - return (EAttribute)securityPermissionEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSecurityPermission_Specification() { - return (EAttribute)securityPermissionEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSecurityPermission_Descriptions() { - return (EReference)securityPermissionEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getAuthenticationMechanism() { - return authenticationMechanismEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getAuthenticationMechanism_Description() { - return (EAttribute)authenticationMechanismEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAuthenticationMechanism_AuthenticationMechanism() { - return (EAttribute)authenticationMechanismEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getAuthenticationMechanism_AuthenticationMechanismType() { - return (EAttribute)authenticationMechanismEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getAuthenticationMechanism_CredentialInterface() { - return (EAttribute)authenticationMechanismEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getConfigProperty() { - return configPropertyEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getConfigProperty_Description() { - return (EAttribute)configPropertyEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getConfigProperty_Name() { - return (EAttribute)configPropertyEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getConfigProperty_Type() { - return (EAttribute)configPropertyEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getConfigProperty_Value() { - return (EAttribute)configPropertyEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getConfigProperty_Descriptions() { - return (EReference)configPropertyEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getTransactionSupportKind() { - return transactionSupportKindEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getAuthenticationMechanismType() { - return authenticationMechanismTypeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public JcaFactory getJcaFactory() { - return (JcaFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - connectorEClass = createEClass(CONNECTOR); - createEAttribute(connectorEClass, CONNECTOR__VENDOR_NAME); - createEAttribute(connectorEClass, CONNECTOR__SPEC_VERSION); - createEAttribute(connectorEClass, CONNECTOR__EIS_TYPE); - createEAttribute(connectorEClass, CONNECTOR__VERSION); - createEReference(connectorEClass, CONNECTOR__LICENSE); - createEReference(connectorEClass, CONNECTOR__RESOURCE_ADAPTER); - - resourceAdapterEClass = createEClass(RESOURCE_ADAPTER); - createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS); - createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE); - createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS); - createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__CONNECTION_INTERFACE); - createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS); - createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__TRANSACTION_SUPPORT); - createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT); - createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS); - createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__SECURITY_PERMISSIONS); - createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS); - createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__CONFIG_PROPERTIES); - createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER); - createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER); - createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__ADMIN_OBJECTS); - - authenticationMechanismEClass = createEClass(AUTHENTICATION_MECHANISM); - createEAttribute(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__DESCRIPTION); - createEAttribute(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM); - createEAttribute(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE); - createEAttribute(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE); - createEAttribute(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE); - createEReference(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__DESCRIPTIONS); - - configPropertyEClass = createEClass(CONFIG_PROPERTY); - createEAttribute(configPropertyEClass, CONFIG_PROPERTY__DESCRIPTION); - createEAttribute(configPropertyEClass, CONFIG_PROPERTY__NAME); - createEAttribute(configPropertyEClass, CONFIG_PROPERTY__TYPE); - createEAttribute(configPropertyEClass, CONFIG_PROPERTY__VALUE); - createEReference(configPropertyEClass, CONFIG_PROPERTY__DESCRIPTIONS); - - securityPermissionEClass = createEClass(SECURITY_PERMISSION); - createEAttribute(securityPermissionEClass, SECURITY_PERMISSION__DESCRIPTION); - createEAttribute(securityPermissionEClass, SECURITY_PERMISSION__SPECIFICATION); - createEReference(securityPermissionEClass, SECURITY_PERMISSION__DESCRIPTIONS); - - licenseEClass = createEClass(LICENSE); - createEAttribute(licenseEClass, LICENSE__DESCRIPTION); - createEAttribute(licenseEClass, LICENSE__REQUIRED); - createEReference(licenseEClass, LICENSE__DESCRIPTIONS); - - inboundResourceAdapterEClass = createEClass(INBOUND_RESOURCE_ADAPTER); - createEReference(inboundResourceAdapterEClass, INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER); - - outboundResourceAdapterEClass = createEClass(OUTBOUND_RESOURCE_ADAPTER); - createEAttribute(outboundResourceAdapterEClass, OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT); - createEAttribute(outboundResourceAdapterEClass, OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT); - createEReference(outboundResourceAdapterEClass, OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS); - createEReference(outboundResourceAdapterEClass, OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS); - - messageAdapterEClass = createEClass(MESSAGE_ADAPTER); - createEReference(messageAdapterEClass, MESSAGE_ADAPTER__MESSAGE_LISTENERS); - - connectionDefinitionEClass = createEClass(CONNECTION_DEFINITION); - createEAttribute(connectionDefinitionEClass, CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS); - createEAttribute(connectionDefinitionEClass, CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE); - createEAttribute(connectionDefinitionEClass, CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS); - createEAttribute(connectionDefinitionEClass, CONNECTION_DEFINITION__CONNECTION_INTERFACE); - createEAttribute(connectionDefinitionEClass, CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS); - createEReference(connectionDefinitionEClass, CONNECTION_DEFINITION__CONFIG_PROPERTIES); - - adminObjectEClass = createEClass(ADMIN_OBJECT); - createEAttribute(adminObjectEClass, ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE); - createEAttribute(adminObjectEClass, ADMIN_OBJECT__ADMIN_OBJECT_CLASS); - createEReference(adminObjectEClass, ADMIN_OBJECT__CONFIG_PROPERTIES); - - messageListenerEClass = createEClass(MESSAGE_LISTENER); - createEAttribute(messageListenerEClass, MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE); - createEReference(messageListenerEClass, MESSAGE_LISTENER__ACTIVATION_SPEC); - - activationSpecEClass = createEClass(ACTIVATION_SPEC); - createEAttribute(activationSpecEClass, ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS); - createEReference(activationSpecEClass, ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES); - - requiredConfigPropertyTypeEClass = createEClass(REQUIRED_CONFIG_PROPERTY_TYPE); - createEAttribute(requiredConfigPropertyTypeEClass, REQUIRED_CONFIG_PROPERTY_TYPE__NAME); - createEReference(requiredConfigPropertyTypeEClass, REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS); - - // Create enums - authenticationMechanismTypeEEnum = createEEnum(AUTHENTICATION_MECHANISM_TYPE); - transactionSupportKindEEnum = createEEnum(TRANSACTION_SUPPORT_KIND); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - - // Add supertypes to classes - connectorEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - - // Initialize classes and features; add operations and parameters - initEClass(connectorEClass, Connector.class, "Connector", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getConnector_VendorName(), ecorePackage.getEString(), "vendorName", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConnector_SpecVersion(), ecorePackage.getEString(), "specVersion", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConnector_EisType(), ecorePackage.getEString(), "eisType", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConnector_Version(), ecorePackage.getEString(), "version", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getConnector_License(), this.getLicense(), null, "license", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getConnector_ResourceAdapter(), this.getResourceAdapter(), null, "resourceAdapter", null, 1, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(resourceAdapterEClass, ResourceAdapter.class, "ResourceAdapter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getResourceAdapter_ManagedConnectionFactoryClass(), ecorePackage.getEString(), "managedConnectionFactoryClass", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceAdapter_ConnectionFactoryInterface(), ecorePackage.getEString(), "connectionFactoryInterface", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceAdapter_ConnectionFactoryImplClass(), ecorePackage.getEString(), "connectionFactoryImplClass", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceAdapter_ConnectionInterface(), ecorePackage.getEString(), "connectionInterface", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceAdapter_ConnectionImplClass(), ecorePackage.getEString(), "connectionImplClass", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceAdapter_TransactionSupport(), this.getTransactionSupportKind(), "transactionSupport", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceAdapter_ReauthenticationSupport(), ecorePackage.getEBoolean(), "reauthenticationSupport", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getResourceAdapter_ResourceAdapterClass(), ecorePackage.getEString(), "resourceAdapterClass", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getResourceAdapter_SecurityPermissions(), this.getSecurityPermission(), null, "securityPermissions", null, 0, -1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getResourceAdapter_AuthenticationMechanisms(), this.getAuthenticationMechanism(), null, "authenticationMechanisms", null, 0, -1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getResourceAdapter_ConfigProperties(), this.getConfigProperty(), null, "configProperties", null, 0, -1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getResourceAdapter_OutboundResourceAdapter(), this.getOutboundResourceAdapter(), null, "outboundResourceAdapter", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getResourceAdapter_InboundResourceAdapter(), this.getInboundResourceAdapter(), null, "inboundResourceAdapter", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getResourceAdapter_AdminObjects(), this.getAdminObject(), null, "adminObjects", null, 0, -1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(authenticationMechanismEClass, AuthenticationMechanism.class, "AuthenticationMechanism", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAuthenticationMechanism_Description(), ecorePackage.getEString(), "description", null, 0, 1, AuthenticationMechanism.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAuthenticationMechanism_AuthenticationMechanism(), ecorePackage.getEString(), "authenticationMechanism", null, 0, 1, AuthenticationMechanism.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAuthenticationMechanism_AuthenticationMechanismType(), this.getAuthenticationMechanismType(), "authenticationMechanismType", null, 0, 1, AuthenticationMechanism.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAuthenticationMechanism_CredentialInterface(), ecorePackage.getEString(), "credentialInterface", null, 0, 1, AuthenticationMechanism.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAuthenticationMechanism_CustomAuthMechType(), ecorePackage.getEString(), "customAuthMechType", null, 0, 1, AuthenticationMechanism.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAuthenticationMechanism_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, AuthenticationMechanism.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(configPropertyEClass, ConfigProperty.class, "ConfigProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getConfigProperty_Description(), ecorePackage.getEString(), "description", null, 0, 1, ConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConfigProperty_Name(), ecorePackage.getEString(), "name", null, 0, 1, ConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConfigProperty_Type(), ecorePackage.getEString(), "type", null, 0, 1, ConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConfigProperty_Value(), ecorePackage.getEString(), "value", null, 0, 1, ConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getConfigProperty_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, ConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(securityPermissionEClass, SecurityPermission.class, "SecurityPermission", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSecurityPermission_Description(), ecorePackage.getEString(), "description", null, 0, 1, SecurityPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getSecurityPermission_Specification(), ecorePackage.getEString(), "specification", null, 0, 1, SecurityPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSecurityPermission_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, SecurityPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(licenseEClass, License.class, "License", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getLicense_Description(), ecorePackage.getEString(), "description", null, 0, 1, License.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getLicense_Required(), ecorePackage.getEBoolean(), "required", null, 0, 1, License.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getLicense_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, License.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(inboundResourceAdapterEClass, InboundResourceAdapter.class, "InboundResourceAdapter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getInboundResourceAdapter_MessageAdapter(), this.getMessageAdapter(), null, "messageAdapter", null, 0, 1, InboundResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(outboundResourceAdapterEClass, OutboundResourceAdapter.class, "OutboundResourceAdapter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getOutboundResourceAdapter_ReauthenticationSupport(), ecorePackage.getEBoolean(), "reauthenticationSupport", null, 0, 1, OutboundResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getOutboundResourceAdapter_TransactionSupport(), this.getTransactionSupportKind(), "transactionSupport", null, 0, 1, OutboundResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getOutboundResourceAdapter_ConnectionDefinitions(), this.getConnectionDefinition(), null, "connectionDefinitions", null, 0, -1, OutboundResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getOutboundResourceAdapter_AuthenticationMechanisms(), this.getAuthenticationMechanism(), null, "authenticationMechanisms", null, 0, -1, OutboundResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(messageAdapterEClass, MessageAdapter.class, "MessageAdapter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getMessageAdapter_MessageListeners(), this.getMessageListener(), null, "messageListeners", null, 1, -1, MessageAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(connectionDefinitionEClass, ConnectionDefinition.class, "ConnectionDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getConnectionDefinition_ManagedConnectionFactoryClass(), ecorePackage.getEString(), "managedConnectionFactoryClass", null, 0, 1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConnectionDefinition_ConnectionFactoryInterface(), ecorePackage.getEString(), "connectionFactoryInterface", null, 0, 1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConnectionDefinition_ConnectionFactoryImplClass(), ecorePackage.getEString(), "connectionFactoryImplClass", null, 0, 1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConnectionDefinition_ConnectionInterface(), ecorePackage.getEString(), "connectionInterface", null, 0, 1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getConnectionDefinition_ConnectionImplClass(), ecorePackage.getEString(), "connectionImplClass", null, 0, 1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getConnectionDefinition_ConfigProperties(), this.getConfigProperty(), null, "configProperties", null, 0, -1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(adminObjectEClass, AdminObject.class, "AdminObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAdminObject_AdminObjectInterface(), ecorePackage.getEString(), "adminObjectInterface", null, 0, 1, AdminObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAdminObject_AdminObjectClass(), ecorePackage.getEString(), "adminObjectClass", null, 0, 1, AdminObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAdminObject_ConfigProperties(), this.getConfigProperty(), null, "configProperties", null, 0, -1, AdminObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(messageListenerEClass, MessageListener.class, "MessageListener", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMessageListener_MessageListenerType(), ecorePackage.getEString(), "messageListenerType", null, 0, 1, MessageListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMessageListener_ActivationSpec(), this.getActivationSpec(), null, "activationSpec", null, 1, 1, MessageListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(activationSpecEClass, ActivationSpec.class, "ActivationSpec", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getActivationSpec_ActivationSpecClass(), ecorePackage.getEString(), "activationSpecClass", null, 0, 1, ActivationSpec.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getActivationSpec_RequiredConfigProperties(), this.getRequiredConfigPropertyType(), null, "requiredConfigProperties", null, 0, -1, ActivationSpec.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(requiredConfigPropertyTypeEClass, RequiredConfigPropertyType.class, "RequiredConfigPropertyType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getRequiredConfigPropertyType_Name(), ecorePackage.getEString(), "name", null, 0, 1, RequiredConfigPropertyType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRequiredConfigPropertyType_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, RequiredConfigPropertyType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(authenticationMechanismTypeEEnum, AuthenticationMechanismType.class, "AuthenticationMechanismType"); - addEEnumLiteral(authenticationMechanismTypeEEnum, AuthenticationMechanismType.BASIC_PASSWORD_LITERAL); - addEEnumLiteral(authenticationMechanismTypeEEnum, AuthenticationMechanismType.KERBV5_LITERAL); - - initEEnum(transactionSupportKindEEnum, TransactionSupportKind.class, "TransactionSupportKind"); - addEEnumLiteral(transactionSupportKindEEnum, TransactionSupportKind.NO_TRANSACTION_LITERAL); - addEEnumLiteral(transactionSupportKindEEnum, TransactionSupportKind.LOCAL_TRANSACTION_LITERAL); - addEEnumLiteral(transactionSupportKindEEnum, TransactionSupportKind.XA_TRANSACTION_LITERAL); - - // Create resource - createResource(eNS_URI); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getAuthenticationMechanism_CustomAuthMechType() { - return (EAttribute)authenticationMechanismEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getAuthenticationMechanism_Descriptions() { - return (EReference)authenticationMechanismEClass.getEStructuralFeatures().get(5); - } - -} //JcaPackageImpl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/LicenseImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/LicenseImpl.java deleted file mode 100644 index a726ef148..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/LicenseImpl.java +++ /dev/null @@ -1,275 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.License; - - -/** - * Specifies licensing requirements for the resource adapter module. Specifies whether a license is required to deploy and use this resource adapter, and an optional description of the licensing terms (examples: duration of license, number of connection restrictions). - */ -public class LicenseImpl extends EObjectImpl implements License, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #isRequired() <em>Required</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isRequired() - * @generated - * @ordered - */ - protected static final boolean REQUIRED_EDEFAULT = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected boolean required = REQUIRED_EDEFAULT; - /** - * This is true if the Required attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean requiredESet = false; - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - protected LicenseImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getLicense(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.LICENSE__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public boolean isRequired() { - return required; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRequired(boolean newRequired) { - boolean oldRequired = required; - required = newRequired; - boolean oldRequiredESet = requiredESet; - requiredESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.LICENSE__REQUIRED, oldRequired, required, !oldRequiredESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetRequired() { - boolean oldRequired = required; - boolean oldRequiredESet = requiredESet; - required = REQUIRED_EDEFAULT; - requiredESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.LICENSE__REQUIRED, oldRequired, REQUIRED_EDEFAULT, oldRequiredESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetRequired() { - return requiredESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, JcaPackage.LICENSE__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.LICENSE__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.LICENSE__DESCRIPTION: - return getDescription(); - case JcaPackage.LICENSE__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case JcaPackage.LICENSE__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.LICENSE__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case JcaPackage.LICENSE__REQUIRED: - return isSetRequired(); - case JcaPackage.LICENSE__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.LICENSE__DESCRIPTION: - setDescription((String)newValue); - return; - case JcaPackage.LICENSE__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case JcaPackage.LICENSE__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.LICENSE__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case JcaPackage.LICENSE__REQUIRED: - unsetRequired(); - return; - case JcaPackage.LICENSE__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", required: "); - if (requiredESet) result.append(required); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageAdapterImpl.java deleted file mode 100644 index e768c6ca4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageAdapterImpl.java +++ /dev/null @@ -1,154 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.MessageAdapter; -import org.eclipse.jst.j2ee.jca.MessageListener; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Message Adapter</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.MessageAdapterImpl#getMessageListeners <em>Message Listeners</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MessageAdapterImpl extends EObjectImpl implements MessageAdapter { - /** - * The cached value of the '{@link #getMessageListeners() <em>Message Listeners</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageListeners() - * @generated - * @ordered - */ - protected EList messageListeners = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MessageAdapterImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getMessageAdapter(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getMessageListeners() { - if (messageListeners == null) { - messageListeners = new EObjectContainmentEList(MessageListener.class, this, JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS); - } - return messageListeners; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS: - return ((InternalEList)getMessageListeners()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS: - return getMessageListeners(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS: - getMessageListeners().clear(); - getMessageListeners().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS: - getMessageListeners().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS: - return messageListeners != null && !messageListeners.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - -} //MessageAdapterImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageListenerImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageListenerImpl.java deleted file mode 100644 index 2b000cb7f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageListenerImpl.java +++ /dev/null @@ -1,248 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.jca.ActivationSpec; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.MessageListener; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Message Listener</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.MessageListenerImpl#getMessageListenerType <em>Message Listener Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.MessageListenerImpl#getActivationSpec <em>Activation Spec</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MessageListenerImpl extends EObjectImpl implements MessageListener { - /** - * The default value of the '{@link #getMessageListenerType() <em>Message Listener Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageListenerType() - * @generated - * @ordered - */ - protected static final String MESSAGE_LISTENER_TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getMessageListenerType() <em>Message Listener Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageListenerType() - * @generated - * @ordered - */ - protected String messageListenerType = MESSAGE_LISTENER_TYPE_EDEFAULT; - - /** - * The cached value of the '{@link #getActivationSpec() <em>Activation Spec</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getActivationSpec() - * @generated - * @ordered - */ - protected ActivationSpec activationSpec = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MessageListenerImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getMessageListener(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getMessageListenerType() { - return messageListenerType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMessageListenerType(String newMessageListenerType) { - String oldMessageListenerType = messageListenerType; - messageListenerType = newMessageListenerType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE, oldMessageListenerType, messageListenerType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ActivationSpec getActivationSpec() { - return activationSpec; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetActivationSpec(ActivationSpec newActivationSpec, NotificationChain msgs) { - ActivationSpec oldActivationSpec = activationSpec; - activationSpec = newActivationSpec; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC, oldActivationSpec, newActivationSpec); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setActivationSpec(ActivationSpec newActivationSpec) { - if (newActivationSpec != activationSpec) { - NotificationChain msgs = null; - if (activationSpec != null) - msgs = ((InternalEObject)activationSpec).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC, null, msgs); - if (newActivationSpec != null) - msgs = ((InternalEObject)newActivationSpec).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC, null, msgs); - msgs = basicSetActivationSpec(newActivationSpec, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC, newActivationSpec, newActivationSpec)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC: - return basicSetActivationSpec(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE: - return getMessageListenerType(); - case JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC: - return getActivationSpec(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE: - setMessageListenerType((String)newValue); - return; - case JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC: - setActivationSpec((ActivationSpec)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE: - setMessageListenerType(MESSAGE_LISTENER_TYPE_EDEFAULT); - return; - case JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC: - setActivationSpec((ActivationSpec)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE: - return MESSAGE_LISTENER_TYPE_EDEFAULT == null ? messageListenerType != null : !MESSAGE_LISTENER_TYPE_EDEFAULT.equals(messageListenerType); - case JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC: - return activationSpec != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (messageListenerType: "); - result.append(messageListenerType); - result.append(')'); - return result.toString(); - } - -} //MessageListenerImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/OutboundResourceAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/OutboundResourceAdapterImpl.java deleted file mode 100644 index bdd51d2ad..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/OutboundResourceAdapterImpl.java +++ /dev/null @@ -1,383 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanism; -import org.eclipse.jst.j2ee.jca.ConnectionDefinition; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.TransactionSupportKind; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Outbound Resource Adapter</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.OutboundResourceAdapterImpl#isReauthenticationSupport <em>Reauthentication Support</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.OutboundResourceAdapterImpl#getTransactionSupport <em>Transaction Support</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.OutboundResourceAdapterImpl#getConnectionDefinitions <em>Connection Definitions</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.OutboundResourceAdapterImpl#getAuthenticationMechanisms <em>Authentication Mechanisms</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class OutboundResourceAdapterImpl extends EObjectImpl implements OutboundResourceAdapter { - /** - * The default value of the '{@link #isReauthenticationSupport() <em>Reauthentication Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isReauthenticationSupport() - * @generated - * @ordered - */ - protected static final boolean REAUTHENTICATION_SUPPORT_EDEFAULT = false; - - /** - * The cached value of the '{@link #isReauthenticationSupport() <em>Reauthentication Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isReauthenticationSupport() - * @generated - * @ordered - */ - protected boolean reauthenticationSupport = REAUTHENTICATION_SUPPORT_EDEFAULT; - - /** - * This is true if the Reauthentication Support attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean reauthenticationSupportESet = false; - - /** - * The default value of the '{@link #getTransactionSupport() <em>Transaction Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTransactionSupport() - * @generated - * @ordered - */ - protected static final TransactionSupportKind TRANSACTION_SUPPORT_EDEFAULT = TransactionSupportKind.NO_TRANSACTION_LITERAL; - - /** - * The cached value of the '{@link #getTransactionSupport() <em>Transaction Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTransactionSupport() - * @generated - * @ordered - */ - protected TransactionSupportKind transactionSupport = TRANSACTION_SUPPORT_EDEFAULT; - - /** - * This is true if the Transaction Support attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean transactionSupportESet = false; - - /** - * The cached value of the '{@link #getConnectionDefinitions() <em>Connection Definitions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionDefinitions() - * @generated - * @ordered - */ - protected EList connectionDefinitions = null; - - /** - * The cached value of the '{@link #getAuthenticationMechanisms() <em>Authentication Mechanisms</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthenticationMechanisms() - * @generated - * @ordered - */ - protected EList authenticationMechanisms = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected OutboundResourceAdapterImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getOutboundResourceAdapter(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isReauthenticationSupport() { - return reauthenticationSupport; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setReauthenticationSupport(boolean newReauthenticationSupport) { - boolean oldReauthenticationSupport = reauthenticationSupport; - reauthenticationSupport = newReauthenticationSupport; - boolean oldReauthenticationSupportESet = reauthenticationSupportESet; - reauthenticationSupportESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT, oldReauthenticationSupport, reauthenticationSupport, !oldReauthenticationSupportESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetReauthenticationSupport() { - boolean oldReauthenticationSupport = reauthenticationSupport; - boolean oldReauthenticationSupportESet = reauthenticationSupportESet; - reauthenticationSupport = REAUTHENTICATION_SUPPORT_EDEFAULT; - reauthenticationSupportESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT, oldReauthenticationSupport, REAUTHENTICATION_SUPPORT_EDEFAULT, oldReauthenticationSupportESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetReauthenticationSupport() { - return reauthenticationSupportESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TransactionSupportKind getTransactionSupport() { - return transactionSupport; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTransactionSupport(TransactionSupportKind newTransactionSupport) { - TransactionSupportKind oldTransactionSupport = transactionSupport; - transactionSupport = newTransactionSupport == null ? TRANSACTION_SUPPORT_EDEFAULT : newTransactionSupport; - boolean oldTransactionSupportESet = transactionSupportESet; - transactionSupportESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT, oldTransactionSupport, transactionSupport, !oldTransactionSupportESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetTransactionSupport() { - TransactionSupportKind oldTransactionSupport = transactionSupport; - boolean oldTransactionSupportESet = transactionSupportESet; - transactionSupport = TRANSACTION_SUPPORT_EDEFAULT; - transactionSupportESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT, oldTransactionSupport, TRANSACTION_SUPPORT_EDEFAULT, oldTransactionSupportESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetTransactionSupport() { - return transactionSupportESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getConnectionDefinitions() { - if (connectionDefinitions == null) { - connectionDefinitions = new EObjectContainmentEList(ConnectionDefinition.class, this, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS); - } - return connectionDefinitions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getAuthenticationMechanisms() { - if (authenticationMechanisms == null) { - authenticationMechanisms = new EObjectContainmentEList(AuthenticationMechanism.class, this, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS); - } - return authenticationMechanisms; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS: - return ((InternalEList)getConnectionDefinitions()).basicRemove(otherEnd, msgs); - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS: - return ((InternalEList)getAuthenticationMechanisms()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT: - return isReauthenticationSupport() ? Boolean.TRUE : Boolean.FALSE; - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT: - return getTransactionSupport(); - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS: - return getConnectionDefinitions(); - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS: - return getAuthenticationMechanisms(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT: - setReauthenticationSupport(((Boolean)newValue).booleanValue()); - return; - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT: - setTransactionSupport((TransactionSupportKind)newValue); - return; - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS: - getConnectionDefinitions().clear(); - getConnectionDefinitions().addAll((Collection)newValue); - return; - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS: - getAuthenticationMechanisms().clear(); - getAuthenticationMechanisms().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT: - unsetReauthenticationSupport(); - return; - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT: - unsetTransactionSupport(); - return; - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS: - getConnectionDefinitions().clear(); - return; - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS: - getAuthenticationMechanisms().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT: - return isSetReauthenticationSupport(); - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT: - return isSetTransactionSupport(); - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS: - return connectionDefinitions != null && !connectionDefinitions.isEmpty(); - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS: - return authenticationMechanisms != null && !authenticationMechanisms.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (reauthenticationSupport: "); - if (reauthenticationSupportESet) result.append(reauthenticationSupport); else result.append("<unset>"); - result.append(", transactionSupport: "); - if (transactionSupportESet) result.append(transactionSupport); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} //OutboundResourceAdapterImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/RequiredConfigPropertyTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/RequiredConfigPropertyTypeImpl.java deleted file mode 100644 index 2c3179833..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/RequiredConfigPropertyTypeImpl.java +++ /dev/null @@ -1,223 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Required Config Property Type</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.RequiredConfigPropertyTypeImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.RequiredConfigPropertyTypeImpl#getDescriptions <em>Descriptions</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RequiredConfigPropertyTypeImpl extends EObjectImpl implements RequiredConfigPropertyType { - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected RequiredConfigPropertyTypeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getRequiredConfigPropertyType(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__NAME: - return getName(); - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__NAME: - setName((String)newValue); - return; - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__NAME: - setName(NAME_EDEFAULT); - return; - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //RequiredConfigPropertyTypeImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ResourceAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ResourceAdapterImpl.java deleted file mode 100644 index 7ffb209fd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ResourceAdapterImpl.java +++ /dev/null @@ -1,817 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.jca.AdminObject; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanism; -import org.eclipse.jst.j2ee.jca.ConfigProperty; -import org.eclipse.jst.j2ee.jca.InboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.ResourceAdapter; -import org.eclipse.jst.j2ee.jca.SecurityPermission; -import org.eclipse.jst.j2ee.jca.TransactionSupportKind; - - -/** - * Specifies information about the resource adapter. The information includes fully-qualified names of class//interfaces required as part of the connector architecture specified contracts, level of transaction support provided, configurable properties for ManagedConnectionFactory instances, one or more authentication mechanisms supported and additional - * required security permissions. - * - * If there is no authentication-mechanism specified as part of - * resource adapter element then the resource adapter does not - * support any standard security authentication mechanisms as part - * of security contract. The application server ignores the security - * part of the system contracts in this case. - - */ -public class ResourceAdapterImpl extends EObjectImpl implements ResourceAdapter, EObject{ - - /** - * The default value of the '{@link #getManagedConnectionFactoryClass() <em>Managed Connection Factory Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getManagedConnectionFactoryClass() - * @generated - * @ordered - */ - protected static final String MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String managedConnectionFactoryClass = MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT; - /** - * The default value of the '{@link #getConnectionFactoryInterface() <em>Connection Factory Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionFactoryInterface() - * @generated - * @ordered - */ - protected static final String CONNECTION_FACTORY_INTERFACE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String connectionFactoryInterface = CONNECTION_FACTORY_INTERFACE_EDEFAULT; - /** - * The default value of the '{@link #getConnectionFactoryImplClass() <em>Connection Factory Impl Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionFactoryImplClass() - * @generated - * @ordered - */ - protected static final String CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String connectionFactoryImplClass = CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT; - /** - * The default value of the '{@link #getConnectionInterface() <em>Connection Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionInterface() - * @generated - * @ordered - */ - protected static final String CONNECTION_INTERFACE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String connectionInterface = CONNECTION_INTERFACE_EDEFAULT; - /** - * The default value of the '{@link #getConnectionImplClass() <em>Connection Impl Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnectionImplClass() - * @generated - * @ordered - */ - protected static final String CONNECTION_IMPL_CLASS_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String connectionImplClass = CONNECTION_IMPL_CLASS_EDEFAULT; - /** - * The default value of the '{@link #getTransactionSupport() <em>Transaction Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTransactionSupport() - * @generated - * @ordered - */ - protected static final TransactionSupportKind TRANSACTION_SUPPORT_EDEFAULT = TransactionSupportKind.NO_TRANSACTION_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected TransactionSupportKind transactionSupport = TRANSACTION_SUPPORT_EDEFAULT; - /** - * This is true if the Transaction Support attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean transactionSupportESet = false; - - /** - * The default value of the '{@link #isReauthenticationSupport() <em>Reauthentication Support</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isReauthenticationSupport() - * @generated - * @ordered - */ - protected static final boolean REAUTHENTICATION_SUPPORT_EDEFAULT = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected boolean reauthenticationSupport = REAUTHENTICATION_SUPPORT_EDEFAULT; - /** - * This is true if the Reauthentication Support attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean reauthenticationSupportESet = false; - - /** - * The default value of the '{@link #getResourceAdapterClass() <em>Resource Adapter Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getResourceAdapterClass() - * @generated - * @ordered - */ - protected static final String RESOURCE_ADAPTER_CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getResourceAdapterClass() <em>Resource Adapter Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getResourceAdapterClass() - * @generated - * @ordered - */ - protected String resourceAdapterClass = RESOURCE_ADAPTER_CLASS_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList securityPermissions = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList authenticationMechanisms = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList configProperties = null; - /** - * The cached value of the '{@link #getOutboundResourceAdapter() <em>Outbound Resource Adapter</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getOutboundResourceAdapter() - * @generated - * @ordered - */ - protected OutboundResourceAdapter outboundResourceAdapter = null; - - /** - * The cached value of the '{@link #getInboundResourceAdapter() <em>Inbound Resource Adapter</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInboundResourceAdapter() - * @generated - * @ordered - */ - protected InboundResourceAdapter inboundResourceAdapter = null; - - /** - * The cached value of the '{@link #getAdminObjects() <em>Admin Objects</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAdminObjects() - * @generated - * @ordered - */ - protected EList adminObjects = null; - - protected ResourceAdapterImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getResourceAdapter(); - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies the fully qualified name of the Java class that implements the javax.resource.spi.Managed-ConnectionFactory interface. This Java class is provided as part of resource adapter's implementation of connector architecture specified contracts. - - */ - public String getManagedConnectionFactoryClass() { - return managedConnectionFactoryClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setManagedConnectionFactoryClass(String newManagedConnectionFactoryClass) { - String oldManagedConnectionFactoryClass = managedConnectionFactoryClass; - managedConnectionFactoryClass = newManagedConnectionFactoryClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS, oldManagedConnectionFactoryClass, managedConnectionFactoryClass)); - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies the fully-qualified name of the ConnectionFactory interface supported by the resource adapter. - - */ - public String getConnectionFactoryInterface() { - return connectionFactoryInterface; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setConnectionFactoryInterface(String newConnectionFactoryInterface) { - String oldConnectionFactoryInterface = connectionFactoryInterface; - connectionFactoryInterface = newConnectionFactoryInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE, oldConnectionFactoryInterface, connectionFactoryInterface)); - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies the fully-qualified name of the ConnectionFactory class that implements resource adapter specific ConnectionFactory interface. - */ - public String getConnectionFactoryImplClass() { - return connectionFactoryImplClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setConnectionFactoryImplClass(String newConnectionFactoryImplClass) { - String oldConnectionFactoryImplClass = connectionFactoryImplClass; - connectionFactoryImplClass = newConnectionFactoryImplClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS, oldConnectionFactoryImplClass, connectionFactoryImplClass)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getConnectionInterface() { - return connectionInterface; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setConnectionInterface(String newConnectionInterface) { - String oldConnectionInterface = connectionInterface; - connectionInterface = newConnectionInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__CONNECTION_INTERFACE, oldConnectionInterface, connectionInterface)); - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies the fully-qualified name of the Connection interface supported by the resource adapter. - */ - public String getConnectionImplClass() { - return connectionImplClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setConnectionImplClass(String newConnectionImplClass) { - String oldConnectionImplClass = connectionImplClass; - connectionImplClass = newConnectionImplClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS, oldConnectionImplClass, connectionImplClass)); - } - - /** - * @generated This field/method will be replaced during code generation - * The transaction-support element specifies the level of transaction - * support provided by the resource adapter. - * The value of transaction-support must be one of the following: - * NoTransaction - * LocalTransaction - * XATransaction - */ - public TransactionSupportKind getTransactionSupport() { - return transactionSupport; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTransactionSupport(TransactionSupportKind newTransactionSupport) { - TransactionSupportKind oldTransactionSupport = transactionSupport; - transactionSupport = newTransactionSupport == null ? TRANSACTION_SUPPORT_EDEFAULT : newTransactionSupport; - boolean oldTransactionSupportESet = transactionSupportESet; - transactionSupportESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT, oldTransactionSupport, transactionSupport, !oldTransactionSupportESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetTransactionSupport() { - TransactionSupportKind oldTransactionSupport = transactionSupport; - boolean oldTransactionSupportESet = transactionSupportESet; - transactionSupport = TRANSACTION_SUPPORT_EDEFAULT; - transactionSupportESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT, oldTransactionSupport, TRANSACTION_SUPPORT_EDEFAULT, oldTransactionSupportESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetTransactionSupport() { - return transactionSupportESet; - } - - /** - * @generated This field/method will be replaced during code generation - * Specifies whether the resource adapter implementation supports re-authentication of existing Managed-Connection instance. Note that this information is for the resource adapter implementation and not for the underlying EIS instance. - */ - public boolean isReauthenticationSupport() { - return reauthenticationSupport; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setReauthenticationSupport(boolean newReauthenticationSupport) { - boolean oldReauthenticationSupport = reauthenticationSupport; - reauthenticationSupport = newReauthenticationSupport; - boolean oldReauthenticationSupportESet = reauthenticationSupportESet; - reauthenticationSupportESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT, oldReauthenticationSupport, reauthenticationSupport, !oldReauthenticationSupportESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetReauthenticationSupport() { - boolean oldReauthenticationSupport = reauthenticationSupport; - boolean oldReauthenticationSupportESet = reauthenticationSupportESet; - reauthenticationSupport = REAUTHENTICATION_SUPPORT_EDEFAULT; - reauthenticationSupportESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT, oldReauthenticationSupport, REAUTHENTICATION_SUPPORT_EDEFAULT, oldReauthenticationSupportESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetReauthenticationSupport() { - return reauthenticationSupportESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getResourceAdapterClass() { - return resourceAdapterClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setResourceAdapterClass(String newResourceAdapterClass) { - String oldResourceAdapterClass = resourceAdapterClass; - resourceAdapterClass = newResourceAdapterClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS, oldResourceAdapterClass, resourceAdapterClass)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getSecurityPermissions() { - if (securityPermissions == null) { - securityPermissions = new EObjectContainmentEList(SecurityPermission.class, this, JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS); - } - return securityPermissions; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getAuthenticationMechanisms() { - if (authenticationMechanisms == null) { - authenticationMechanisms = new EObjectContainmentEList(AuthenticationMechanism.class, this, JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS); - } - return authenticationMechanisms; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getConfigProperties() { - if (configProperties == null) { - configProperties = new EObjectContainmentEList(ConfigProperty.class, this, JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES); - } - return configProperties; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public OutboundResourceAdapter getOutboundResourceAdapter() { - return outboundResourceAdapter; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetOutboundResourceAdapter(OutboundResourceAdapter newOutboundResourceAdapter, NotificationChain msgs) { - OutboundResourceAdapter oldOutboundResourceAdapter = outboundResourceAdapter; - outboundResourceAdapter = newOutboundResourceAdapter; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER, oldOutboundResourceAdapter, newOutboundResourceAdapter); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setOutboundResourceAdapter(OutboundResourceAdapter newOutboundResourceAdapter) { - if (newOutboundResourceAdapter != outboundResourceAdapter) { - NotificationChain msgs = null; - if (outboundResourceAdapter != null) - msgs = ((InternalEObject)outboundResourceAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER, null, msgs); - if (newOutboundResourceAdapter != null) - msgs = ((InternalEObject)newOutboundResourceAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER, null, msgs); - msgs = basicSetOutboundResourceAdapter(newOutboundResourceAdapter, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER, newOutboundResourceAdapter, newOutboundResourceAdapter)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public InboundResourceAdapter getInboundResourceAdapter() { - return inboundResourceAdapter; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetInboundResourceAdapter(InboundResourceAdapter newInboundResourceAdapter, NotificationChain msgs) { - InboundResourceAdapter oldInboundResourceAdapter = inboundResourceAdapter; - inboundResourceAdapter = newInboundResourceAdapter; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER, oldInboundResourceAdapter, newInboundResourceAdapter); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setInboundResourceAdapter(InboundResourceAdapter newInboundResourceAdapter) { - if (newInboundResourceAdapter != inboundResourceAdapter) { - NotificationChain msgs = null; - if (inboundResourceAdapter != null) - msgs = ((InternalEObject)inboundResourceAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER, null, msgs); - if (newInboundResourceAdapter != null) - msgs = ((InternalEObject)newInboundResourceAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER, null, msgs); - msgs = basicSetInboundResourceAdapter(newInboundResourceAdapter, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER, newInboundResourceAdapter, newInboundResourceAdapter)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getAdminObjects() { - if (adminObjects == null) { - adminObjects = new EObjectContainmentEList(AdminObject.class, this, JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS); - } - return adminObjects; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS: - return ((InternalEList)getSecurityPermissions()).basicRemove(otherEnd, msgs); - case JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS: - return ((InternalEList)getAuthenticationMechanisms()).basicRemove(otherEnd, msgs); - case JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES: - return ((InternalEList)getConfigProperties()).basicRemove(otherEnd, msgs); - case JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER: - return basicSetOutboundResourceAdapter(null, msgs); - case JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER: - return basicSetInboundResourceAdapter(null, msgs); - case JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS: - return ((InternalEList)getAdminObjects()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS: - return getManagedConnectionFactoryClass(); - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE: - return getConnectionFactoryInterface(); - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS: - return getConnectionFactoryImplClass(); - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_INTERFACE: - return getConnectionInterface(); - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS: - return getConnectionImplClass(); - case JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT: - return getTransactionSupport(); - case JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT: - return isReauthenticationSupport() ? Boolean.TRUE : Boolean.FALSE; - case JcaPackage.RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS: - return getResourceAdapterClass(); - case JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS: - return getSecurityPermissions(); - case JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS: - return getAuthenticationMechanisms(); - case JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES: - return getConfigProperties(); - case JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER: - return getOutboundResourceAdapter(); - case JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER: - return getInboundResourceAdapter(); - case JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS: - return getAdminObjects(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS: - return MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT == null ? managedConnectionFactoryClass != null : !MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT.equals(managedConnectionFactoryClass); - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE: - return CONNECTION_FACTORY_INTERFACE_EDEFAULT == null ? connectionFactoryInterface != null : !CONNECTION_FACTORY_INTERFACE_EDEFAULT.equals(connectionFactoryInterface); - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS: - return CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT == null ? connectionFactoryImplClass != null : !CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT.equals(connectionFactoryImplClass); - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_INTERFACE: - return CONNECTION_INTERFACE_EDEFAULT == null ? connectionInterface != null : !CONNECTION_INTERFACE_EDEFAULT.equals(connectionInterface); - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS: - return CONNECTION_IMPL_CLASS_EDEFAULT == null ? connectionImplClass != null : !CONNECTION_IMPL_CLASS_EDEFAULT.equals(connectionImplClass); - case JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT: - return isSetTransactionSupport(); - case JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT: - return isSetReauthenticationSupport(); - case JcaPackage.RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS: - return RESOURCE_ADAPTER_CLASS_EDEFAULT == null ? resourceAdapterClass != null : !RESOURCE_ADAPTER_CLASS_EDEFAULT.equals(resourceAdapterClass); - case JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS: - return securityPermissions != null && !securityPermissions.isEmpty(); - case JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS: - return authenticationMechanisms != null && !authenticationMechanisms.isEmpty(); - case JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES: - return configProperties != null && !configProperties.isEmpty(); - case JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER: - return outboundResourceAdapter != null; - case JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER: - return inboundResourceAdapter != null; - case JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS: - return adminObjects != null && !adminObjects.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS: - setManagedConnectionFactoryClass((String)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE: - setConnectionFactoryInterface((String)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS: - setConnectionFactoryImplClass((String)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_INTERFACE: - setConnectionInterface((String)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS: - setConnectionImplClass((String)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT: - setTransactionSupport((TransactionSupportKind)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT: - setReauthenticationSupport(((Boolean)newValue).booleanValue()); - return; - case JcaPackage.RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS: - setResourceAdapterClass((String)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS: - getSecurityPermissions().clear(); - getSecurityPermissions().addAll((Collection)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS: - getAuthenticationMechanisms().clear(); - getAuthenticationMechanisms().addAll((Collection)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES: - getConfigProperties().clear(); - getConfigProperties().addAll((Collection)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER: - setOutboundResourceAdapter((OutboundResourceAdapter)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER: - setInboundResourceAdapter((InboundResourceAdapter)newValue); - return; - case JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS: - getAdminObjects().clear(); - getAdminObjects().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS: - setManagedConnectionFactoryClass(MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT); - return; - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE: - setConnectionFactoryInterface(CONNECTION_FACTORY_INTERFACE_EDEFAULT); - return; - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS: - setConnectionFactoryImplClass(CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT); - return; - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_INTERFACE: - setConnectionInterface(CONNECTION_INTERFACE_EDEFAULT); - return; - case JcaPackage.RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS: - setConnectionImplClass(CONNECTION_IMPL_CLASS_EDEFAULT); - return; - case JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT: - unsetTransactionSupport(); - return; - case JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT: - unsetReauthenticationSupport(); - return; - case JcaPackage.RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS: - setResourceAdapterClass(RESOURCE_ADAPTER_CLASS_EDEFAULT); - return; - case JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS: - getSecurityPermissions().clear(); - return; - case JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS: - getAuthenticationMechanisms().clear(); - return; - case JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES: - getConfigProperties().clear(); - return; - case JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER: - setOutboundResourceAdapter((OutboundResourceAdapter)null); - return; - case JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER: - setInboundResourceAdapter((InboundResourceAdapter)null); - return; - case JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS: - getAdminObjects().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (managedConnectionFactoryClass: "); - result.append(managedConnectionFactoryClass); - result.append(", connectionFactoryInterface: "); - result.append(connectionFactoryInterface); - result.append(", connectionFactoryImplClass: "); - result.append(connectionFactoryImplClass); - result.append(", connectionInterface: "); - result.append(connectionInterface); - result.append(", connectionImplClass: "); - result.append(connectionImplClass); - result.append(", transactionSupport: "); - if (transactionSupportESet) result.append(transactionSupport); else result.append("<unset>"); - result.append(", reauthenticationSupport: "); - if (reauthenticationSupportESet) result.append(reauthenticationSupport); else result.append("<unset>"); - result.append(", resourceAdapterClass: "); - result.append(resourceAdapterClass); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/SecurityPermissionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/SecurityPermissionImpl.java deleted file mode 100644 index f3f6178bf..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/SecurityPermissionImpl.java +++ /dev/null @@ -1,246 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.SecurityPermission; - - -/** - * Specifies a security permission that is required by the resource adapter code. - * - * The security permission listed in the deployment descriptor are ones that are different from those required by the default permission set as specified in the connector specification. The optional description can mention specific reason that resource adapter requires a given security permission. - - */ -public class SecurityPermissionImpl extends EObjectImpl implements SecurityPermission, EObject{ - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getSpecification() <em>Specification</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSpecification() - * @generated - * @ordered - */ - protected static final String SPECIFICATION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String specification = SPECIFICATION_EDEFAULT; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - protected SecurityPermissionImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JcaPackage.eINSTANCE.getSecurityPermission(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.SECURITY_PERMISSION__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - * The element permission-spec specifies a security permission based on the Security policy file syntax. - - */ - public String getSpecification() { - return specification; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setSpecification(String newSpecification) { - String oldSpecification = specification; - specification = newSpecification; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.SECURITY_PERMISSION__SPECIFICATION, oldSpecification, specification)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, JcaPackage.SECURITY_PERMISSION__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JcaPackage.SECURITY_PERMISSION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.SECURITY_PERMISSION__DESCRIPTION: - return getDescription(); - case JcaPackage.SECURITY_PERMISSION__SPECIFICATION: - return getSpecification(); - case JcaPackage.SECURITY_PERMISSION__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.SECURITY_PERMISSION__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case JcaPackage.SECURITY_PERMISSION__SPECIFICATION: - return SPECIFICATION_EDEFAULT == null ? specification != null : !SPECIFICATION_EDEFAULT.equals(specification); - case JcaPackage.SECURITY_PERMISSION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.SECURITY_PERMISSION__DESCRIPTION: - setDescription((String)newValue); - return; - case JcaPackage.SECURITY_PERMISSION__SPECIFICATION: - setSpecification((String)newValue); - return; - case JcaPackage.SECURITY_PERMISSION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JcaPackage.SECURITY_PERMISSION__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case JcaPackage.SECURITY_PERMISSION__SPECIFICATION: - setSpecification(SPECIFICATION_EDEFAULT); - return; - case JcaPackage.SECURITY_PERMISSION__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", specification: "); - result.append(specification); - result.append(')'); - return result.toString(); - } - -} - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JCADescriptionHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JCADescriptionHelper.java deleted file mode 100644 index 686e4f1b7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JCADescriptionHelper.java +++ /dev/null @@ -1,157 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.util; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jst.j2ee.common.CommonFactory; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanism; -import org.eclipse.jst.j2ee.jca.ConfigProperty; -import org.eclipse.jst.j2ee.jca.License; -import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType; -import org.eclipse.jst.j2ee.jca.SecurityPermission; - - -/** - * @deprecated - */ -public class JCADescriptionHelper { - public static void setDescription(ConfigProperty property, String description, int jcaVersionID) { - switch(jcaVersionID) { - case J2EEVersionConstants.JCA_1_0_ID: - property.setDescription(description); - break; - case J2EEVersionConstants.JCA_1_5_ID: { - Description descriptionObj = CommonFactory.eINSTANCE.createDescription(); - descriptionObj.setValue(description); - property.getDescriptions().add(descriptionObj); - } - } - } - public static String getDescription(ConfigProperty property,int jcaVersionID) { - switch(jcaVersionID) { - case J2EEVersionConstants.JCA_1_0_ID: - return property.getDescription(); - case J2EEVersionConstants.JCA_1_5_ID: { - EList localizedDescriptions = property.getDescriptions(); - if(localizedDescriptions == null || localizedDescriptions.size() == 0) - return null; - Description localizedDescription = (Description)localizedDescriptions.get(0); - if(localizedDescription != null) - return localizedDescription.getValue(); - } - } - return null; - } - public static void setDescription(SecurityPermission property, String description, int jcaVersionID) { - switch(jcaVersionID) { - case J2EEVersionConstants.JCA_1_0_ID: - property.setDescription(description); - break; - case J2EEVersionConstants.JCA_1_5_ID: { - Description descriptionObj = CommonFactory.eINSTANCE.createDescription(); - descriptionObj.setValue(description); - property.getDescriptions().add(descriptionObj); - } - } - } - - public static String getDescription(SecurityPermission property,int jcaVersionID) { - switch(jcaVersionID) { - case J2EEVersionConstants.JCA_1_0_ID: - return property.getDescription(); - case J2EEVersionConstants.JCA_1_5_ID: { - EList localizedDescriptions = property.getDescriptions(); - if(localizedDescriptions == null || localizedDescriptions.size() == 0) - return null; - Description localizedDescription = (Description)localizedDescriptions.get(0); - if(localizedDescription != null) - return localizedDescription.getValue(); - } - } - return null; - } - public static void setDescription(License property, String description, int jcaVersionID) { - switch(jcaVersionID) { - case J2EEVersionConstants.JCA_1_0_ID: - property.setDescription(description); - break; - case J2EEVersionConstants.JCA_1_5_ID: { - Description descriptionObj = CommonFactory.eINSTANCE.createDescription(); - descriptionObj.setValue(description); - property.getDescriptions().add(descriptionObj); - } - } - } - - public static String getDescription(License property,int jcaVersionID) { - switch(jcaVersionID) { - case J2EEVersionConstants.JCA_1_0_ID: - return property.getDescription(); - case J2EEVersionConstants.JCA_1_5_ID: { - EList localizedDescriptions = property.getDescriptions(); - if(localizedDescriptions == null || localizedDescriptions.size() == 0) - return null; - Description localizedDescription = (Description)localizedDescriptions.get(0); - if(localizedDescription != null) - return localizedDescription.getValue(); - } - } - return null; - } - public static void setDescription(AuthenticationMechanism property, String description, int jcaVersionID) { - switch(jcaVersionID) { - case J2EEVersionConstants.JCA_1_0_ID: - property.setDescription(description); - break; - case J2EEVersionConstants.JCA_1_5_ID: { - Description descriptionObj = CommonFactory.eINSTANCE.createDescription(); - descriptionObj.setValue(description); - property.getDescriptions().add(descriptionObj); - } - } - } - - public static String getDescription(AuthenticationMechanism property,int jcaVersionID) { - switch(jcaVersionID) { - case J2EEVersionConstants.JCA_1_0_ID: - return property.getDescription(); - case J2EEVersionConstants.JCA_1_5_ID: { - EList localizedDescriptions = property.getDescriptions(); - if(localizedDescriptions == null || localizedDescriptions.size() == 0) - return null; - Description localizedDescription = (Description)localizedDescriptions.get(0); - if(localizedDescription != null) - return localizedDescription.getValue(); - } - } - return null; - } - public static void setDescription(RequiredConfigPropertyType property, String description, int jcaVersionID) { - if(jcaVersionID == J2EEVersionConstants.JCA_1_5_ID) { - Description descriptionObj = CommonFactory.eINSTANCE.createDescription(); - descriptionObj.setValue(description); - property.getDescriptions().add(descriptionObj); - } - } - public static String getDescription(RequiredConfigPropertyType property,int jcaVersionID) { - if(jcaVersionID == J2EEVersionConstants.JCA_1_5_ID) { - EList localizedDescriptions = property.getDescriptions(); - if(localizedDescriptions == null || localizedDescriptions.size() == 0) - return null; - Description localizedDescription = (Description)localizedDescriptions.get(0); - if(localizedDescription != null) - return localizedDescription.getValue(); - } - return null; - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaAdapterFactory.java deleted file mode 100644 index 7f1916aaa..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaAdapterFactory.java +++ /dev/null @@ -1,392 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.jca.ActivationSpec; -import org.eclipse.jst.j2ee.jca.AdminObject; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanism; -import org.eclipse.jst.j2ee.jca.ConfigProperty; -import org.eclipse.jst.j2ee.jca.ConnectionDefinition; -import org.eclipse.jst.j2ee.jca.Connector; -import org.eclipse.jst.j2ee.jca.InboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.License; -import org.eclipse.jst.j2ee.jca.MessageAdapter; -import org.eclipse.jst.j2ee.jca.MessageListener; -import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType; -import org.eclipse.jst.j2ee.jca.ResourceAdapter; -import org.eclipse.jst.j2ee.jca.SecurityPermission; - - - -public class JcaAdapterFactory extends AdapterFactoryImpl { - protected static JcaPackage modelPackage; - - public JcaAdapterFactory() { - if (modelPackage == null) { - modelPackage = (JcaPackage)EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI); - } - } - public boolean isFactoryForType(Object type) { - if (type == modelPackage) { - return true; - } - if (type instanceof EObject) { - return ((EObject)type).eClass().eContainer() == modelPackage; - } - return false; - } - - protected JcaSwitch sw = new JcaSwitch() { - public Object caseConnector(Connector object) { - return createConnectorAdapter(); - } - public Object caseLicense(License object) { - return createLicenseAdapter(); - } - public Object caseResourceAdapter(ResourceAdapter object) { - return createResourceAdapterAdapter(); - } - public Object caseSecurityPermission(SecurityPermission object) { - return createSecurityPermissionAdapter(); - } - public Object caseAuthenticationMechanism(AuthenticationMechanism object) { - return createAuthenticationMechanismAdapter(); - } - public Object caseConfigProperty(ConfigProperty object) { - return createConfigPropertyAdapter(); - } - }; - - public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); // sw - } - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - public Adapter createConnectorAdapter() { - return null; - } - - public Adapter createLicenseAdapter() { - return null; - } - - public Adapter createResourceAdapterAdapter() { - return null; - } - - public Adapter createSecurityPermissionAdapter() { - return null; - } - - public Adapter createAuthenticationMechanismAdapter() { - return null; - } - - public Adapter createConfigPropertyAdapter() { - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean isFactoryForTypeGen(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected JcaSwitch modelSwitch = - new JcaSwitch() { - public Object caseConnector(Connector object) { - return createConnectorAdapter(); - } - public Object caseResourceAdapter(ResourceAdapter object) { - return createResourceAdapterAdapter(); - } - public Object caseAuthenticationMechanism(AuthenticationMechanism object) { - return createAuthenticationMechanismAdapter(); - } - public Object caseConfigProperty(ConfigProperty object) { - return createConfigPropertyAdapter(); - } - public Object caseSecurityPermission(SecurityPermission object) { - return createSecurityPermissionAdapter(); - } - public Object caseLicense(License object) { - return createLicenseAdapter(); - } - public Object caseInboundResourceAdapter(InboundResourceAdapter object) { - return createInboundResourceAdapterAdapter(); - } - public Object caseOutboundResourceAdapter(OutboundResourceAdapter object) { - return createOutboundResourceAdapterAdapter(); - } - public Object caseMessageAdapter(MessageAdapter object) { - return createMessageAdapterAdapter(); - } - public Object caseConnectionDefinition(ConnectionDefinition object) { - return createConnectionDefinitionAdapter(); - } - public Object caseAdminObject(AdminObject object) { - return createAdminObjectAdapter(); - } - public Object caseMessageListener(MessageListener object) { - return createMessageListenerAdapter(); - } - public Object caseActivationSpec(ActivationSpec object) { - return createActivationSpecAdapter(); - } - public Object caseRequiredConfigPropertyType(RequiredConfigPropertyType object) { - return createRequiredConfigPropertyTypeAdapter(); - } - public Object caseDescriptionGroup(DescriptionGroup object) { - return createDescriptionGroupAdapter(); - } - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return createCompatibilityDescriptionGroupAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAdapterGen(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createConnectorAdapterGen() { - - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createLicenseAdapterGen() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.InboundResourceAdapter <em>Inbound Resource Adapter</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jca.InboundResourceAdapter - * @generated - */ - public Adapter createInboundResourceAdapterAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter <em>Outbound Resource Adapter</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jca.OutboundResourceAdapter - * @generated - */ - public Adapter createOutboundResourceAdapterAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.MessageAdapter <em>Message Adapter</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jca.MessageAdapter - * @generated - */ - public Adapter createMessageAdapterAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition <em>Connection Definition</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jca.ConnectionDefinition - * @generated - */ - public Adapter createConnectionDefinitionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.AdminObject <em>Admin Object</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jca.AdminObject - * @generated - */ - public Adapter createAdminObjectAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.MessageListener <em>Message Listener</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jca.MessageListener - * @generated - */ - public Adapter createMessageListenerAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.ActivationSpec <em>Activation Spec</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jca.ActivationSpec - * @generated - */ - public Adapter createActivationSpecAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType <em>Required Config Property Type</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType - * @generated - */ - public Adapter createRequiredConfigPropertyTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - public Adapter createDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - public Adapter createCompatibilityDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createResourceAdapterAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createSecurityPermissionAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAuthenticationMechanismAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createConfigPropertyAdapterGen() { - return null; - } - -} //JcaAdapterFactory - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaSwitch.java deleted file mode 100644 index 2ee9c4126..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaSwitch.java +++ /dev/null @@ -1,456 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jca.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.jca.ActivationSpec; -import org.eclipse.jst.j2ee.jca.AdminObject; -import org.eclipse.jst.j2ee.jca.AuthenticationMechanism; -import org.eclipse.jst.j2ee.jca.ConfigProperty; -import org.eclipse.jst.j2ee.jca.ConnectionDefinition; -import org.eclipse.jst.j2ee.jca.Connector; -import org.eclipse.jst.j2ee.jca.InboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.License; -import org.eclipse.jst.j2ee.jca.MessageAdapter; -import org.eclipse.jst.j2ee.jca.MessageListener; -import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter; -import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType; -import org.eclipse.jst.j2ee.jca.ResourceAdapter; -import org.eclipse.jst.j2ee.jca.SecurityPermission; - - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jca.JcaPackage - * @generated - */ -public class JcaSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static JcaPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JcaSwitch() { - if (modelPackage == null) { - modelPackage = JcaPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case JcaPackage.CONNECTOR: { - Connector connector = (Connector)theEObject; - Object result = caseConnector(connector); - if (result == null) result = caseCompatibilityDescriptionGroup(connector); - if (result == null) result = caseDescriptionGroup(connector); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.RESOURCE_ADAPTER: { - ResourceAdapter resourceAdapter = (ResourceAdapter)theEObject; - Object result = caseResourceAdapter(resourceAdapter); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.AUTHENTICATION_MECHANISM: { - AuthenticationMechanism authenticationMechanism = (AuthenticationMechanism)theEObject; - Object result = caseAuthenticationMechanism(authenticationMechanism); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.CONFIG_PROPERTY: { - ConfigProperty configProperty = (ConfigProperty)theEObject; - Object result = caseConfigProperty(configProperty); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.SECURITY_PERMISSION: { - SecurityPermission securityPermission = (SecurityPermission)theEObject; - Object result = caseSecurityPermission(securityPermission); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.LICENSE: { - License license = (License)theEObject; - Object result = caseLicense(license); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.INBOUND_RESOURCE_ADAPTER: { - InboundResourceAdapter inboundResourceAdapter = (InboundResourceAdapter)theEObject; - Object result = caseInboundResourceAdapter(inboundResourceAdapter); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.OUTBOUND_RESOURCE_ADAPTER: { - OutboundResourceAdapter outboundResourceAdapter = (OutboundResourceAdapter)theEObject; - Object result = caseOutboundResourceAdapter(outboundResourceAdapter); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.MESSAGE_ADAPTER: { - MessageAdapter messageAdapter = (MessageAdapter)theEObject; - Object result = caseMessageAdapter(messageAdapter); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.CONNECTION_DEFINITION: { - ConnectionDefinition connectionDefinition = (ConnectionDefinition)theEObject; - Object result = caseConnectionDefinition(connectionDefinition); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.ADMIN_OBJECT: { - AdminObject adminObject = (AdminObject)theEObject; - Object result = caseAdminObject(adminObject); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.MESSAGE_LISTENER: { - MessageListener messageListener = (MessageListener)theEObject; - Object result = caseMessageListener(messageListener); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.ACTIVATION_SPEC: { - ActivationSpec activationSpec = (ActivationSpec)theEObject; - Object result = caseActivationSpec(activationSpec); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE: { - RequiredConfigPropertyType requiredConfigPropertyType = (RequiredConfigPropertyType)theEObject; - Object result = caseRequiredConfigPropertyType(requiredConfigPropertyType); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Connector</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Connector</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseConnector(Connector object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Resource Adapter</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Resource Adapter</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseResourceAdapter(ResourceAdapter object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Authentication Mechanism</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Authentication Mechanism</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseAuthenticationMechanism(AuthenticationMechanism object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Config Property</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Config Property</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseConfigProperty(ConfigProperty object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Security Permission</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Security Permission</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseSecurityPermission(SecurityPermission object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>License</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>License</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseLicense(License object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Inbound Resource Adapter</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Inbound Resource Adapter</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseInboundResourceAdapter(InboundResourceAdapter object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Outbound Resource Adapter</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Outbound Resource Adapter</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseOutboundResourceAdapter(OutboundResourceAdapter object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Message Adapter</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Message Adapter</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMessageAdapter(MessageAdapter object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Connection Definition</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Connection Definition</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseConnectionDefinition(ConnectionDefinition object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Admin Object</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Admin Object</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseAdminObject(AdminObject object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Message Listener</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Message Listener</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMessageListener(MessageListener object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Activation Spec</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Activation Spec</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseActivationSpec(ActivationSpec object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Required Config Property Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Required Config Property Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseRequiredConfigPropertyType(RequiredConfigPropertyType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionGroup(DescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //JcaSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/package.xml b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/package.xml deleted file mode 100644 index 798897c79..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/package.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<html> - <head> - <meta - name="root" - content="../../../../../../../" /> - <title>EJB Artifact Edit api overview</title> - </head> - - <body> - <abstract> - This package includes the connector module model api. Using this api the artifacts of an connector app - can be created and accessed. - </abstract> - - <a href="#top">top</a> - </body> -</html> -
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JSPConfig.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JSPConfig.java deleted file mode 100644 index 295cfbb6d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JSPConfig.java +++ /dev/null @@ -1,73 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>JSP Config</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The jsp-configType is used to provide global configuration - * information for the JSP files in a web application. It has - * two subelements, taglib and jsp-property-group. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jsp.JSPConfig#getTagLibs <em>Tag Libs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.JSPConfig#getPropertyGroups <em>Property Groups</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPConfig() - * @model - * @generated - * @since 1.0 */ -public interface JSPConfig extends EObject{ - /** - * Returns the value of the '<em><b>Tag Libs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.jsp.TagLibRefType}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Tag Libs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Tag Libs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPConfig_TagLibs() - * @model type="org.eclipse.jst.j2ee.jsp.TagLibRefType" containment="true" - * @generated - */ - EList getTagLibs(); - - /** - * Returns the value of the '<em><b>Property Groups</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Property Groups</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Property Groups</em>' containment reference list. - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPConfig_PropertyGroups() - * @model type="org.eclipse.jst.j2ee.jsp.JSPPropertyGroup" containment="true" - * @generated - */ - EList getPropertyGroups(); - -} // JSPConfig diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JSPPropertyGroup.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JSPPropertyGroup.java deleted file mode 100644 index 11e9ddac2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JSPPropertyGroup.java +++ /dev/null @@ -1,340 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; - - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>JSP Property Group</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The jsp-property-groupType is used to group a number of - * files so they can be given global property information. - * All files so described are deemed to be JSP files. The - * following additional properties can be described: - * - * - Control enabling of EL evaluation. - Control enabling - * of Scripting elements. - Indicate pageEncoding - * information. - Indicating that a resource is a JSP - * document - Prelude and Coda automatic includes. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getUrlPattern <em>Url Pattern</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isElIgnored <em>El Ignored</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getPageEncoding <em>Page Encoding</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isScriptingInvalid <em>Scripting Invalid</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isIsXML <em>Is XML</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getIncludePreludes <em>Include Preludes</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getIncludeCodas <em>Include Codas</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPPropertyGroup() - * @model - * @generated - * @since 1.0 */ -public interface JSPPropertyGroup extends CompatibilityDescriptionGroup{ - /** - * Returns the value of the '<em><b>Url Pattern</b></em>' attribute list. - * The list contents are of type {@link java.lang.String}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Url Pattern</em>' attribute list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Url Pattern</em>' attribute list. - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPPropertyGroup_UrlPattern() - * @model type="java.lang.String" - * @generated - */ - EList getUrlPattern(); - - /** - * Returns the value of the '<em><b>El Ignored</b></em>' attribute. - * The default value is <code>"true"</code>. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>El Ignored</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * Can be used to easily set the isELIgnored - * property of a group of JSP pages. By default, - * the EL evaluation is enabled for Web - * Applications using a Servlet 2.4 or greater - * web.xml, and disabled otherwise. - * <!-- end-model-doc --> - * @return the value of the '<em>El Ignored</em>' attribute. - * @see #isSetElIgnored() - * @see #unsetElIgnored() - * @see #setElIgnored(boolean) - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPPropertyGroup_ElIgnored() - * @model default="true" unsettable="true" - * @generated - */ - boolean isElIgnored(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isElIgnored <em>El Ignored</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>El Ignored</em>' attribute. - * @see #isSetElIgnored() - * @see #unsetElIgnored() - * @see #isElIgnored() - * @generated - */ - void setElIgnored(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isElIgnored <em>El Ignored</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetElIgnored() - * @see #isElIgnored() - * @see #setElIgnored(boolean) - * @generated - */ - void unsetElIgnored(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isElIgnored <em>El Ignored</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>El Ignored</em>' attribute is set. - * @see #unsetElIgnored() - * @see #isElIgnored() - * @see #setElIgnored(boolean) - * @generated - */ - boolean isSetElIgnored(); - - /** - * Returns the value of the '<em><b>Page Encoding</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Page Encoding</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The valid values of page-encoding are those of - * the pageEncoding page directive. It is a - * translation-time error to name different - * encodings in the pageEncoding attribute of the - * page directive of a JSP page and in a JSP - * configuration element matching the page. It is - * also a translation-time error to name different - * encodings in the prolog of a document in XML - * syntax and in a JSP configuration element - * matching the document. It is legal to name the - * same encoding through mulitple mechanisms. - * <!-- end-model-doc --> - * @return the value of the '<em>Page Encoding</em>' attribute. - * @see #setPageEncoding(String) - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPPropertyGroup_PageEncoding() - * @model - * @generated - */ - String getPageEncoding(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getPageEncoding <em>Page Encoding</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Page Encoding</em>' attribute. - * @see #getPageEncoding() - * @generated - */ - void setPageEncoding(String value); - - /** - * Returns the value of the '<em><b>Scripting Invalid</b></em>' attribute. - * The default value is <code>"true"</code>. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Scripting Invalid</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * Can be used to easily disable scripting in a - * group of JSP pages. By default, scripting is - * enabled. - * <!-- end-model-doc --> - * @return the value of the '<em>Scripting Invalid</em>' attribute. - * @see #isSetScriptingInvalid() - * @see #unsetScriptingInvalid() - * @see #setScriptingInvalid(boolean) - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPPropertyGroup_ScriptingInvalid() - * @model default="true" unsettable="true" - * @generated - */ - boolean isScriptingInvalid(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isScriptingInvalid <em>Scripting Invalid</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Scripting Invalid</em>' attribute. - * @see #isSetScriptingInvalid() - * @see #unsetScriptingInvalid() - * @see #isScriptingInvalid() - * @generated - */ - void setScriptingInvalid(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isScriptingInvalid <em>Scripting Invalid</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetScriptingInvalid() - * @see #isScriptingInvalid() - * @see #setScriptingInvalid(boolean) - * @generated - */ - void unsetScriptingInvalid(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isScriptingInvalid <em>Scripting Invalid</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Scripting Invalid</em>' attribute is set. - * @see #unsetScriptingInvalid() - * @see #isScriptingInvalid() - * @see #setScriptingInvalid(boolean) - * @generated - */ - boolean isSetScriptingInvalid(); - - /** - * Returns the value of the '<em><b>Is XML</b></em>' attribute. - * The default value is <code>"false"</code>. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Is XML</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * If true, denotes that the group of resources - * that match the URL pattern are JSP documents, - * and thus must be interpreted as XML documents. - * If false, the resources are assumed to not be - * JSP documents, unless there is another property - * group that indicates otherwise. - * <!-- end-model-doc --> - * @return the value of the '<em>Is XML</em>' attribute. - * @see #isSetIsXML() - * @see #unsetIsXML() - * @see #setIsXML(boolean) - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPPropertyGroup_IsXML() - * @model default="false" unsettable="true" - * @generated - */ - boolean isIsXML(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isIsXML <em>Is XML</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Is XML</em>' attribute. - * @see #isSetIsXML() - * @see #unsetIsXML() - * @see #isIsXML() - * @generated - */ - void setIsXML(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isIsXML <em>Is XML</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetIsXML() - * @see #isIsXML() - * @see #setIsXML(boolean) - * @generated - */ - void unsetIsXML(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isIsXML <em>Is XML</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Is XML</em>' attribute is set. - * @see #unsetIsXML() - * @see #isIsXML() - * @see #setIsXML(boolean) - * @generated - */ - boolean isSetIsXML(); - - /** - * Returns the value of the '<em><b>Include Preludes</b></em>' attribute list. - * The list contents are of type {@link java.lang.String}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Include Preludes</em>' attribute list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The include-prelude element is a - * context-relative path that must correspond to - * an element in the Web Application. When the - * element is present, the given path will be - * automatically included (as in an include - * directive) at the beginning of each JSP page in - * this jsp-property-group. - * <!-- end-model-doc --> - * @return the value of the '<em>Include Preludes</em>' attribute list. - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPPropertyGroup_IncludePreludes() - * @model type="java.lang.String" - * @generated - */ - EList getIncludePreludes(); - - /** - * Returns the value of the '<em><b>Include Codas</b></em>' attribute list. - * The list contents are of type {@link java.lang.String}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Include Codas</em>' attribute list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The include-coda element is a context-relative - * path that must correspond to an element in the - * Web Application. When the element is present, - * the given path will be automatically included - * (as in an include directive) at the end of each - * JSP page in this jsp-property-group. - * <!-- end-model-doc --> - * @return the value of the '<em>Include Codas</em>' attribute list. - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getJSPPropertyGroup_IncludeCodas() - * @model type="java.lang.String" - * @generated - */ - EList getIncludeCodas(); - -} // JSPPropertyGroup diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JspFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JspFactory.java deleted file mode 100644 index b739ef84e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JspFactory.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp; - -import org.eclipse.emf.ecore.EFactory; - -/** - * <!-- begin-user-doc --> - * The <b>Factory</b> for the model. - * It provides a create method for each non-abstract class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jsp.JspPackage - * @generated - * @since 1.0 */ -public interface JspFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - JspFactory eINSTANCE = new org.eclipse.jst.j2ee.jsp.internal.impl.JspFactoryImpl(); - - /** - * Returns a new object of class '<em>JSP Config</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>JSP Config</em>'. - * @generated - */ - JSPConfig createJSPConfig(); - - /** - * Returns a new object of class '<em>JSP Property Group</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>JSP Property Group</em>'. - * @generated - */ - JSPPropertyGroup createJSPPropertyGroup(); - - /** - * Returns a new object of class '<em>Tag Lib Ref Type</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Tag Lib Ref Type</em>'. - * @generated - */ - TagLibRefType createTagLibRefType(); - - /** - * Returns the package supported by this factory. - * <!-- begin-user-doc --> - * This method is NOT api, and may change in future releases. - * EMF package classes should be access via their "eINSTANCE" static fields - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - JspPackage getJspPackage(); - -} //JspFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JspPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JspPackage.java deleted file mode 100644 index ece1d6060..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JspPackage.java +++ /dev/null @@ -1,456 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jst.j2ee.common.CommonPackage; - - -/** - * <!-- begin-user-doc --> - * The <b>Package</b> for the model. - * It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * /** - * <p> - * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. - * </p> - * - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jsp.JspFactory - * @model kind="package" - * @generated - * @since 1.0 */ -public interface JspPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "jsp";//$NON-NLS-1$ - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "jsp.xmi";//$NON-NLS-1$ - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.jsp";//$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - JspPackage eINSTANCE = org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPConfigImpl <em>JSP Config</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jsp.internal.impl.JSPConfigImpl - * @see org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl#getJSPConfig() - * @generated - */ - int JSP_CONFIG = 0; - - /** - * The feature id for the '<em><b>Tag Libs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_CONFIG__TAG_LIBS = 0; - - /** - * The feature id for the '<em><b>Property Groups</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_CONFIG__PROPERTY_GROUPS = 1; - - /** - * The number of structural features of the the '<em>JSP Config</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_CONFIG_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPPropertyGroupImpl <em>JSP Property Group</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jsp.internal.impl.JSPPropertyGroupImpl - * @see org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl#getJSPPropertyGroup() - * @generated - */ - int JSP_PROPERTY_GROUP = 1; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - - /** - * The feature id for the '<em><b>Url Pattern</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__URL_PATTERN = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>El Ignored</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__EL_IGNORED = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Page Encoding</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__PAGE_ENCODING = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Scripting Invalid</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__SCRIPTING_INVALID = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * The feature id for the '<em><b>Is XML</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__IS_XML = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - - /** - * The feature id for the '<em><b>Include Preludes</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__INCLUDE_PRELUDES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 5; - - /** - * The feature id for the '<em><b>Include Codas</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP__INCLUDE_CODAS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 6; - - /** - * The number of structural features of the the '<em>JSP Property Group</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_PROPERTY_GROUP_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 7; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.jsp.internal.impl.TagLibRefTypeImpl <em>Tag Lib Ref Type</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jsp.internal.impl.TagLibRefTypeImpl - * @see org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl#getTagLibRefType() - * @generated - */ - int TAG_LIB_REF_TYPE = 2; - - /** - * The feature id for the '<em><b>Taglib URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB_REF_TYPE__TAGLIB_URI = 0; - - /** - * The feature id for the '<em><b>Taglib Location</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB_REF_TYPE__TAGLIB_LOCATION = 1; - - /** - * The number of structural features of the the '<em>Tag Lib Ref Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB_REF_TYPE_FEATURE_COUNT = 2; - - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jsp.JSPConfig <em>JSP Config</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>JSP Config</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPConfig - * @generated - */ - EClass getJSPConfig(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jsp.JSPConfig#getTagLibs <em>Tag Libs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Tag Libs</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPConfig#getTagLibs() - * @see #getJSPConfig() - * @generated - */ - EReference getJSPConfig_TagLibs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.jsp.JSPConfig#getPropertyGroups <em>Property Groups</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Property Groups</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPConfig#getPropertyGroups() - * @see #getJSPConfig() - * @generated - */ - EReference getJSPConfig_PropertyGroups(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup <em>JSP Property Group</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>JSP Property Group</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPPropertyGroup - * @generated - */ - EClass getJSPPropertyGroup(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getUrlPattern <em>Url Pattern</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute list '<em>Url Pattern</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getUrlPattern() - * @see #getJSPPropertyGroup() - * @generated - */ - EAttribute getJSPPropertyGroup_UrlPattern(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isElIgnored <em>El Ignored</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>El Ignored</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isElIgnored() - * @see #getJSPPropertyGroup() - * @generated - */ - EAttribute getJSPPropertyGroup_ElIgnored(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getPageEncoding <em>Page Encoding</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Page Encoding</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getPageEncoding() - * @see #getJSPPropertyGroup() - * @generated - */ - EAttribute getJSPPropertyGroup_PageEncoding(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isScriptingInvalid <em>Scripting Invalid</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Scripting Invalid</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isScriptingInvalid() - * @see #getJSPPropertyGroup() - * @generated - */ - EAttribute getJSPPropertyGroup_ScriptingInvalid(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isIsXML <em>Is XML</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Is XML</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#isIsXML() - * @see #getJSPPropertyGroup() - * @generated - */ - EAttribute getJSPPropertyGroup_IsXML(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getIncludePreludes <em>Include Preludes</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute list '<em>Include Preludes</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getIncludePreludes() - * @see #getJSPPropertyGroup() - * @generated - */ - EAttribute getJSPPropertyGroup_IncludePreludes(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getIncludeCodas <em>Include Codas</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute list '<em>Include Codas</em>'. - * @see org.eclipse.jst.j2ee.jsp.JSPPropertyGroup#getIncludeCodas() - * @see #getJSPPropertyGroup() - * @generated - */ - EAttribute getJSPPropertyGroup_IncludeCodas(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.jsp.TagLibRefType <em>Tag Lib Ref Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Tag Lib Ref Type</em>'. - * @see org.eclipse.jst.j2ee.jsp.TagLibRefType - * @generated - */ - EClass getTagLibRefType(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jsp.TagLibRefType#getTaglibURI <em>Taglib URI</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Taglib URI</em>'. - * @see org.eclipse.jst.j2ee.jsp.TagLibRefType#getTaglibURI() - * @see #getTagLibRefType() - * @generated - */ - EAttribute getTagLibRefType_TaglibURI(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.jsp.TagLibRefType#getTaglibLocation <em>Taglib Location</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Taglib Location</em>'. - * @see org.eclipse.jst.j2ee.jsp.TagLibRefType#getTaglibLocation() - * @see #getTagLibRefType() - * @generated - */ - EAttribute getTagLibRefType_TaglibLocation(); - - /** - * Returns the factory that creates the instances of the model. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the factory that creates the instances of the model. - * @generated - */ - JspFactory getJspFactory(); - -} //JspPackage diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/TagLibRefType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/TagLibRefType.java deleted file mode 100644 index 186a5df20..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/TagLibRefType.java +++ /dev/null @@ -1,106 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Tag Lib Ref Type</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * A taglib can be used to provide information on a tag - * library that is used by a JSP page within the Web - * Application. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jsp.TagLibRefType#getTaglibURI <em>Taglib URI</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.TagLibRefType#getTaglibLocation <em>Taglib Location</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getTagLibRefType() - * @model - * @generated - * @since 1.0 */ -public interface TagLibRefType extends EObject{ - /** - * Returns the value of the '<em><b>Taglib URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Taglib URI</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * A taglib-uri element describes a URI identifying a - * tag library used in the web application. The body - * of the taglib-uri element may be either an - * absolute URI specification, or a relative URI. - * There should be no entries in web.xml with the - * same taglib-uri value. - * <!-- end-model-doc --> - * @return the value of the '<em>Taglib URI</em>' attribute. - * @see #setTaglibURI(String) - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getTagLibRefType_TaglibURI() - * @model - * @generated - */ - String getTaglibURI(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jsp.TagLibRefType#getTaglibURI <em>Taglib URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Taglib URI</em>' attribute. - * @see #getTaglibURI() - * @generated - */ - void setTaglibURI(String value); - - /** - * Returns the value of the '<em><b>Taglib Location</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Taglib Location</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * the taglib-location element contains the location - * (as a resource relative to the root of the web - * application) where to find the Tag Library - * Description file for the tag library. - * <!-- end-model-doc --> - * @return the value of the '<em>Taglib Location</em>' attribute. - * @see #setTaglibLocation(String) - * @see org.eclipse.jst.j2ee.jsp.JspPackage#getTagLibRefType_TaglibLocation() - * @model - * @generated - */ - String getTaglibLocation(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.jsp.TagLibRefType#getTaglibLocation <em>Taglib Location</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Taglib Location</em>' attribute. - * @see #getTaglibLocation() - * @generated - */ - void setTaglibLocation(String value); - -} // TagLibRefType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JSPConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JSPConfigImpl.java deleted file mode 100644 index f04d95a67..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JSPConfigImpl.java +++ /dev/null @@ -1,191 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.jsp.JSPConfig; -import org.eclipse.jst.j2ee.jsp.JSPPropertyGroup; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.TagLibRefType; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>JSP Config</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPConfigImpl#getTagLibs <em>Tag Libs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPConfigImpl#getPropertyGroups <em>Property Groups</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class JSPConfigImpl extends EObjectImpl implements JSPConfig { - /** - * The cached value of the '{@link #getTagLibs() <em>Tag Libs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTagLibs() - * @generated - * @ordered - */ - protected EList tagLibs = null; - - /** - * The cached value of the '{@link #getPropertyGroups() <em>Property Groups</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPropertyGroups() - * @generated - * @ordered - */ - protected EList propertyGroups = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected JSPConfigImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JspPackage.eINSTANCE.getJSPConfig(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getTagLibs() { - if (tagLibs == null) { - tagLibs = new EObjectContainmentEList(TagLibRefType.class, this, JspPackage.JSP_CONFIG__TAG_LIBS); - } - return tagLibs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getPropertyGroups() { - if (propertyGroups == null) { - propertyGroups = new EObjectContainmentEList(JSPPropertyGroup.class, this, JspPackage.JSP_CONFIG__PROPERTY_GROUPS); - } - return propertyGroups; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JspPackage.JSP_CONFIG__TAG_LIBS: - return ((InternalEList)getTagLibs()).basicRemove(otherEnd, msgs); - case JspPackage.JSP_CONFIG__PROPERTY_GROUPS: - return ((InternalEList)getPropertyGroups()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.JSP_CONFIG__TAG_LIBS: - return getTagLibs(); - case JspPackage.JSP_CONFIG__PROPERTY_GROUPS: - return getPropertyGroups(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.JSP_CONFIG__TAG_LIBS: - getTagLibs().clear(); - getTagLibs().addAll((Collection)newValue); - return; - case JspPackage.JSP_CONFIG__PROPERTY_GROUPS: - getPropertyGroups().clear(); - getPropertyGroups().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.JSP_CONFIG__TAG_LIBS: - getTagLibs().clear(); - return; - case JspPackage.JSP_CONFIG__PROPERTY_GROUPS: - getPropertyGroups().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.JSP_CONFIG__TAG_LIBS: - return tagLibs != null && !tagLibs.isEmpty(); - case JspPackage.JSP_CONFIG__PROPERTY_GROUPS: - return propertyGroups != null && !propertyGroups.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - -} //JSPConfigImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JSPPropertyGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JSPPropertyGroupImpl.java deleted file mode 100644 index bb93db65c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JSPPropertyGroupImpl.java +++ /dev/null @@ -1,637 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.jsp.JSPPropertyGroup; -import org.eclipse.jst.j2ee.jsp.JspPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>JSP Property Group</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPPropertyGroupImpl#getUrlPattern <em>Url Pattern</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPPropertyGroupImpl#isElIgnored <em>El Ignored</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPPropertyGroupImpl#getPageEncoding <em>Page Encoding</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPPropertyGroupImpl#isScriptingInvalid <em>Scripting Invalid</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPPropertyGroupImpl#isIsXML <em>Is XML</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPPropertyGroupImpl#getIncludePreludes <em>Include Preludes</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.JSPPropertyGroupImpl#getIncludeCodas <em>Include Codas</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class JSPPropertyGroupImpl extends CompatibilityDescriptionGroupImpl implements JSPPropertyGroup { - /** - * The cached value of the '{@link #getUrlPattern() <em>Url Pattern</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUrlPattern() - * @generated - * @ordered - */ - protected EList urlPattern = null; - - /** - * The default value of the '{@link #isElIgnored() <em>El Ignored</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isElIgnored() - * @generated - * @ordered - */ - protected static final boolean EL_IGNORED_EDEFAULT = true; - - /** - * The cached value of the '{@link #isElIgnored() <em>El Ignored</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isElIgnored() - * @generated - * @ordered - */ - protected boolean elIgnored = EL_IGNORED_EDEFAULT; - - /** - * This is true if the El Ignored attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean elIgnoredESet = false; - - /** - * The default value of the '{@link #getPageEncoding() <em>Page Encoding</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPageEncoding() - * @generated - * @ordered - */ - protected static final String PAGE_ENCODING_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPageEncoding() <em>Page Encoding</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPageEncoding() - * @generated - * @ordered - */ - protected String pageEncoding = PAGE_ENCODING_EDEFAULT; - - /** - * The default value of the '{@link #isScriptingInvalid() <em>Scripting Invalid</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isScriptingInvalid() - * @generated - * @ordered - */ - protected static final boolean SCRIPTING_INVALID_EDEFAULT = true; - - /** - * The cached value of the '{@link #isScriptingInvalid() <em>Scripting Invalid</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isScriptingInvalid() - * @generated - * @ordered - */ - protected boolean scriptingInvalid = SCRIPTING_INVALID_EDEFAULT; - - /** - * This is true if the Scripting Invalid attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean scriptingInvalidESet = false; - - /** - * The default value of the '{@link #isIsXML() <em>Is XML</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isIsXML() - * @generated - * @ordered - */ - protected static final boolean IS_XML_EDEFAULT = false; - - /** - * The cached value of the '{@link #isIsXML() <em>Is XML</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isIsXML() - * @generated - * @ordered - */ - protected boolean isXML = IS_XML_EDEFAULT; - - /** - * This is true if the Is XML attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean isXMLESet = false; - - /** - * The cached value of the '{@link #getIncludePreludes() <em>Include Preludes</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getIncludePreludes() - * @generated - * @ordered - */ - protected EList includePreludes = null; - - /** - * The cached value of the '{@link #getIncludeCodas() <em>Include Codas</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getIncludeCodas() - * @generated - * @ordered - */ - protected EList includeCodas = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected JSPPropertyGroupImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JspPackage.eINSTANCE.getJSPPropertyGroup(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getUrlPattern() { - if (urlPattern == null) { - urlPattern = new EDataTypeUniqueEList(String.class, this, JspPackage.JSP_PROPERTY_GROUP__URL_PATTERN); - } - return urlPattern; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isElIgnored() { - return elIgnored; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setElIgnored(boolean newElIgnored) { - boolean oldElIgnored = elIgnored; - elIgnored = newElIgnored; - boolean oldElIgnoredESet = elIgnoredESet; - elIgnoredESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JspPackage.JSP_PROPERTY_GROUP__EL_IGNORED, oldElIgnored, elIgnored, !oldElIgnoredESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetElIgnored() { - boolean oldElIgnored = elIgnored; - boolean oldElIgnoredESet = elIgnoredESet; - elIgnored = EL_IGNORED_EDEFAULT; - elIgnoredESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JspPackage.JSP_PROPERTY_GROUP__EL_IGNORED, oldElIgnored, EL_IGNORED_EDEFAULT, oldElIgnoredESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetElIgnored() { - return elIgnoredESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getPageEncoding() { - return pageEncoding; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPageEncoding(String newPageEncoding) { - String oldPageEncoding = pageEncoding; - pageEncoding = newPageEncoding; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JspPackage.JSP_PROPERTY_GROUP__PAGE_ENCODING, oldPageEncoding, pageEncoding)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isScriptingInvalid() { - return scriptingInvalid; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setScriptingInvalid(boolean newScriptingInvalid) { - boolean oldScriptingInvalid = scriptingInvalid; - scriptingInvalid = newScriptingInvalid; - boolean oldScriptingInvalidESet = scriptingInvalidESet; - scriptingInvalidESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JspPackage.JSP_PROPERTY_GROUP__SCRIPTING_INVALID, oldScriptingInvalid, scriptingInvalid, !oldScriptingInvalidESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetScriptingInvalid() { - boolean oldScriptingInvalid = scriptingInvalid; - boolean oldScriptingInvalidESet = scriptingInvalidESet; - scriptingInvalid = SCRIPTING_INVALID_EDEFAULT; - scriptingInvalidESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JspPackage.JSP_PROPERTY_GROUP__SCRIPTING_INVALID, oldScriptingInvalid, SCRIPTING_INVALID_EDEFAULT, oldScriptingInvalidESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetScriptingInvalid() { - return scriptingInvalidESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isIsXML() { - return isXML; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setIsXML(boolean newIsXML) { - boolean oldIsXML = isXML; - isXML = newIsXML; - boolean oldIsXMLESet = isXMLESet; - isXMLESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JspPackage.JSP_PROPERTY_GROUP__IS_XML, oldIsXML, isXML, !oldIsXMLESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetIsXML() { - boolean oldIsXML = isXML; - boolean oldIsXMLESet = isXMLESet; - isXML = IS_XML_EDEFAULT; - isXMLESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JspPackage.JSP_PROPERTY_GROUP__IS_XML, oldIsXML, IS_XML_EDEFAULT, oldIsXMLESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetIsXML() { - return isXMLESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getIncludePreludes() { - if (includePreludes == null) { - includePreludes = new EDataTypeUniqueEList(String.class, this, JspPackage.JSP_PROPERTY_GROUP__INCLUDE_PRELUDES); - } - return includePreludes; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getIncludeCodas() { - if (includeCodas == null) { - includeCodas = new EDataTypeUniqueEList(String.class, this, JspPackage.JSP_PROPERTY_GROUP__INCLUDE_CODAS); - } - return includeCodas; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JspPackage.JSP_PROPERTY_GROUP__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case JspPackage.JSP_PROPERTY_GROUP__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case JspPackage.JSP_PROPERTY_GROUP__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.JSP_PROPERTY_GROUP__ICONS: - return getIcons(); - case JspPackage.JSP_PROPERTY_GROUP__DISPLAY_NAMES: - return getDisplayNames(); - case JspPackage.JSP_PROPERTY_GROUP__DESCRIPTIONS: - return getDescriptions(); - case JspPackage.JSP_PROPERTY_GROUP__SMALL_ICON: - return getSmallIcon(); - case JspPackage.JSP_PROPERTY_GROUP__LARGE_ICON: - return getLargeIcon(); - case JspPackage.JSP_PROPERTY_GROUP__DESCRIPTION: - return getDescription(); - case JspPackage.JSP_PROPERTY_GROUP__DISPLAY_NAME: - return getDisplayName(); - case JspPackage.JSP_PROPERTY_GROUP__URL_PATTERN: - return getUrlPattern(); - case JspPackage.JSP_PROPERTY_GROUP__EL_IGNORED: - return isElIgnored() ? Boolean.TRUE : Boolean.FALSE; - case JspPackage.JSP_PROPERTY_GROUP__PAGE_ENCODING: - return getPageEncoding(); - case JspPackage.JSP_PROPERTY_GROUP__SCRIPTING_INVALID: - return isScriptingInvalid() ? Boolean.TRUE : Boolean.FALSE; - case JspPackage.JSP_PROPERTY_GROUP__IS_XML: - return isIsXML() ? Boolean.TRUE : Boolean.FALSE; - case JspPackage.JSP_PROPERTY_GROUP__INCLUDE_PRELUDES: - return getIncludePreludes(); - case JspPackage.JSP_PROPERTY_GROUP__INCLUDE_CODAS: - return getIncludeCodas(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.JSP_PROPERTY_GROUP__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case JspPackage.JSP_PROPERTY_GROUP__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case JspPackage.JSP_PROPERTY_GROUP__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case JspPackage.JSP_PROPERTY_GROUP__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case JspPackage.JSP_PROPERTY_GROUP__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case JspPackage.JSP_PROPERTY_GROUP__DESCRIPTION: - setDescription((String)newValue); - return; - case JspPackage.JSP_PROPERTY_GROUP__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case JspPackage.JSP_PROPERTY_GROUP__URL_PATTERN: - getUrlPattern().clear(); - getUrlPattern().addAll((Collection)newValue); - return; - case JspPackage.JSP_PROPERTY_GROUP__EL_IGNORED: - setElIgnored(((Boolean)newValue).booleanValue()); - return; - case JspPackage.JSP_PROPERTY_GROUP__PAGE_ENCODING: - setPageEncoding((String)newValue); - return; - case JspPackage.JSP_PROPERTY_GROUP__SCRIPTING_INVALID: - setScriptingInvalid(((Boolean)newValue).booleanValue()); - return; - case JspPackage.JSP_PROPERTY_GROUP__IS_XML: - setIsXML(((Boolean)newValue).booleanValue()); - return; - case JspPackage.JSP_PROPERTY_GROUP__INCLUDE_PRELUDES: - getIncludePreludes().clear(); - getIncludePreludes().addAll((Collection)newValue); - return; - case JspPackage.JSP_PROPERTY_GROUP__INCLUDE_CODAS: - getIncludeCodas().clear(); - getIncludeCodas().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.JSP_PROPERTY_GROUP__ICONS: - getIcons().clear(); - return; - case JspPackage.JSP_PROPERTY_GROUP__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case JspPackage.JSP_PROPERTY_GROUP__DESCRIPTIONS: - getDescriptions().clear(); - return; - case JspPackage.JSP_PROPERTY_GROUP__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case JspPackage.JSP_PROPERTY_GROUP__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case JspPackage.JSP_PROPERTY_GROUP__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case JspPackage.JSP_PROPERTY_GROUP__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case JspPackage.JSP_PROPERTY_GROUP__URL_PATTERN: - getUrlPattern().clear(); - return; - case JspPackage.JSP_PROPERTY_GROUP__EL_IGNORED: - unsetElIgnored(); - return; - case JspPackage.JSP_PROPERTY_GROUP__PAGE_ENCODING: - setPageEncoding(PAGE_ENCODING_EDEFAULT); - return; - case JspPackage.JSP_PROPERTY_GROUP__SCRIPTING_INVALID: - unsetScriptingInvalid(); - return; - case JspPackage.JSP_PROPERTY_GROUP__IS_XML: - unsetIsXML(); - return; - case JspPackage.JSP_PROPERTY_GROUP__INCLUDE_PRELUDES: - getIncludePreludes().clear(); - return; - case JspPackage.JSP_PROPERTY_GROUP__INCLUDE_CODAS: - getIncludeCodas().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.JSP_PROPERTY_GROUP__ICONS: - return icons != null && !icons.isEmpty(); - case JspPackage.JSP_PROPERTY_GROUP__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case JspPackage.JSP_PROPERTY_GROUP__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case JspPackage.JSP_PROPERTY_GROUP__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case JspPackage.JSP_PROPERTY_GROUP__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case JspPackage.JSP_PROPERTY_GROUP__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case JspPackage.JSP_PROPERTY_GROUP__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case JspPackage.JSP_PROPERTY_GROUP__URL_PATTERN: - return urlPattern != null && !urlPattern.isEmpty(); - case JspPackage.JSP_PROPERTY_GROUP__EL_IGNORED: - return isSetElIgnored(); - case JspPackage.JSP_PROPERTY_GROUP__PAGE_ENCODING: - return PAGE_ENCODING_EDEFAULT == null ? pageEncoding != null : !PAGE_ENCODING_EDEFAULT.equals(pageEncoding); - case JspPackage.JSP_PROPERTY_GROUP__SCRIPTING_INVALID: - return isSetScriptingInvalid(); - case JspPackage.JSP_PROPERTY_GROUP__IS_XML: - return isSetIsXML(); - case JspPackage.JSP_PROPERTY_GROUP__INCLUDE_PRELUDES: - return includePreludes != null && !includePreludes.isEmpty(); - case JspPackage.JSP_PROPERTY_GROUP__INCLUDE_CODAS: - return includeCodas != null && !includeCodas.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (urlPattern: "); - result.append(urlPattern); - result.append(", elIgnored: "); - if (elIgnoredESet) result.append(elIgnored); else result.append("<unset>"); - result.append(", pageEncoding: "); - result.append(pageEncoding); - result.append(", scriptingInvalid: "); - if (scriptingInvalidESet) result.append(scriptingInvalid); else result.append("<unset>"); - result.append(", isXML: "); - if (isXMLESet) result.append(isXML); else result.append("<unset>"); - result.append(", includePreludes: "); - result.append(includePreludes); - result.append(", includeCodas: "); - result.append(includeCodas); - result.append(')'); - return result.toString(); - } - -} //JSPPropertyGroupImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JspFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JspFactoryImpl.java deleted file mode 100644 index 1d92f92ac..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JspFactoryImpl.java +++ /dev/null @@ -1,103 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp.internal.impl; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.jsp.JSPConfig; -import org.eclipse.jst.j2ee.jsp.JSPPropertyGroup; -import org.eclipse.jst.j2ee.jsp.JspFactory; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.TagLibRefType; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class JspFactoryImpl extends EFactoryImpl implements JspFactory { - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JspFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case JspPackage.JSP_CONFIG: return createJSPConfig(); - case JspPackage.JSP_PROPERTY_GROUP: return createJSPPropertyGroup(); - case JspPackage.TAG_LIB_REF_TYPE: return createTagLibRefType(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JSPConfig createJSPConfig() { - JSPConfigImpl jspConfig = new JSPConfigImpl(); - return jspConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JSPPropertyGroup createJSPPropertyGroup() { - JSPPropertyGroupImpl jspPropertyGroup = new JSPPropertyGroupImpl(); - return jspPropertyGroup; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TagLibRefType createTagLibRefType() { - TagLibRefTypeImpl tagLibRefType = new TagLibRefTypeImpl(); - return tagLibRefType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JspPackage getJspPackage() { - return (JspPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static JspPackage getPackage() { - return JspPackage.eINSTANCE; - } - -} //JspFactoryImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JspPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JspPackageImpl.java deleted file mode 100644 index 4c56356ca..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/JspPackageImpl.java +++ /dev/null @@ -1,405 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JSPConfig; -import org.eclipse.jst.j2ee.jsp.JSPPropertyGroup; -import org.eclipse.jst.j2ee.jsp.JspFactory; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.TagLibRefType; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class JspPackageImpl extends EPackageImpl implements JspPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass jspConfigEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass jspPropertyGroupEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass tagLibRefTypeEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - * <p>Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.jst.j2ee.jsp.JspPackage#eNS_URI - * @see #init() - * @generated - */ - private JspPackageImpl() { - super(eNS_URI, JspFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - * <p>Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - * <p>Invocation of this method will not affect any packages that have - * already been initialized. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static JspPackage init() { - if (isInited) return (JspPackage)EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI); - - // Obtain or create and register package - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new JspPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE); - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE); - - // Create package meta-data objects - theJspPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theCommonPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theTaglibPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theWscommonPackage.createPackageContents(); - theWsddPackage.createPackageContents(); - - // Initialize created meta-data - theJspPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theTaglibPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theWscommonPackage.initializePackageContents(); - theWsddPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theJspPackage.freeze(); - - return theJspPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getJSPConfig() { - return jspConfigEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJSPConfig_TagLibs() { - return (EReference)jspConfigEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJSPConfig_PropertyGroups() { - return (EReference)jspConfigEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getJSPPropertyGroup() { - return jspPropertyGroupEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJSPPropertyGroup_UrlPattern() { - return (EAttribute)jspPropertyGroupEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJSPPropertyGroup_ElIgnored() { - return (EAttribute)jspPropertyGroupEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJSPPropertyGroup_PageEncoding() { - return (EAttribute)jspPropertyGroupEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJSPPropertyGroup_ScriptingInvalid() { - return (EAttribute)jspPropertyGroupEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJSPPropertyGroup_IsXML() { - return (EAttribute)jspPropertyGroupEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJSPPropertyGroup_IncludePreludes() { - return (EAttribute)jspPropertyGroupEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJSPPropertyGroup_IncludeCodas() { - return (EAttribute)jspPropertyGroupEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getTagLibRefType() { - return tagLibRefTypeEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getTagLibRefType_TaglibURI() { - return (EAttribute)tagLibRefTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getTagLibRefType_TaglibLocation() { - return (EAttribute)tagLibRefTypeEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JspFactory getJspFactory() { - return (JspFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - jspConfigEClass = createEClass(JSP_CONFIG); - createEReference(jspConfigEClass, JSP_CONFIG__TAG_LIBS); - createEReference(jspConfigEClass, JSP_CONFIG__PROPERTY_GROUPS); - - jspPropertyGroupEClass = createEClass(JSP_PROPERTY_GROUP); - createEAttribute(jspPropertyGroupEClass, JSP_PROPERTY_GROUP__URL_PATTERN); - createEAttribute(jspPropertyGroupEClass, JSP_PROPERTY_GROUP__EL_IGNORED); - createEAttribute(jspPropertyGroupEClass, JSP_PROPERTY_GROUP__PAGE_ENCODING); - createEAttribute(jspPropertyGroupEClass, JSP_PROPERTY_GROUP__SCRIPTING_INVALID); - createEAttribute(jspPropertyGroupEClass, JSP_PROPERTY_GROUP__IS_XML); - createEAttribute(jspPropertyGroupEClass, JSP_PROPERTY_GROUP__INCLUDE_PRELUDES); - createEAttribute(jspPropertyGroupEClass, JSP_PROPERTY_GROUP__INCLUDE_CODAS); - - tagLibRefTypeEClass = createEClass(TAG_LIB_REF_TYPE); - createEAttribute(tagLibRefTypeEClass, TAG_LIB_REF_TYPE__TAGLIB_URI); - createEAttribute(tagLibRefTypeEClass, TAG_LIB_REF_TYPE__TAGLIB_LOCATION); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - - // Add supertypes to classes - jspPropertyGroupEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - - // Initialize classes and features; add operations and parameters - initEClass(jspConfigEClass, JSPConfig.class, "JSPConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getJSPConfig_TagLibs(), this.getTagLibRefType(), null, "tagLibs", null, 0, -1, JSPConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJSPConfig_PropertyGroups(), this.getJSPPropertyGroup(), null, "propertyGroups", null, 0, -1, JSPConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(jspPropertyGroupEClass, JSPPropertyGroup.class, "JSPPropertyGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getJSPPropertyGroup_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, -1, JSPPropertyGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPPropertyGroup_ElIgnored(), ecorePackage.getEBoolean(), "elIgnored", "true", 0, 1, JSPPropertyGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPPropertyGroup_PageEncoding(), ecorePackage.getEString(), "pageEncoding", null, 0, 1, JSPPropertyGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPPropertyGroup_ScriptingInvalid(), ecorePackage.getEBoolean(), "scriptingInvalid", "true", 0, 1, JSPPropertyGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPPropertyGroup_IsXML(), ecorePackage.getEBoolean(), "isXML", "false", 0, 1, JSPPropertyGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPPropertyGroup_IncludePreludes(), ecorePackage.getEString(), "includePreludes", null, 0, -1, JSPPropertyGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPPropertyGroup_IncludeCodas(), ecorePackage.getEString(), "includeCodas", null, 0, -1, JSPPropertyGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(tagLibRefTypeEClass, TagLibRefType.class, "TagLibRefType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTagLibRefType_TaglibURI(), ecorePackage.getEString(), "taglibURI", null, 0, 1, TagLibRefType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTagLibRefType_TaglibLocation(), ecorePackage.getEString(), "taglibLocation", null, 0, 1, TagLibRefType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //JspPackageImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/TagLibRefTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/TagLibRefTypeImpl.java deleted file mode 100644 index fe6ac80a6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/impl/TagLibRefTypeImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.TagLibRefType; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Tag Lib Ref Type</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.TagLibRefTypeImpl#getTaglibURI <em>Taglib URI</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.jsp.internal.impl.TagLibRefTypeImpl#getTaglibLocation <em>Taglib Location</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class TagLibRefTypeImpl extends EObjectImpl implements TagLibRefType { - /** - * The default value of the '{@link #getTaglibURI() <em>Taglib URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTaglibURI() - * @generated - * @ordered - */ - protected static final String TAGLIB_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTaglibURI() <em>Taglib URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTaglibURI() - * @generated - * @ordered - */ - protected String taglibURI = TAGLIB_URI_EDEFAULT; - - /** - * The default value of the '{@link #getTaglibLocation() <em>Taglib Location</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTaglibLocation() - * @generated - * @ordered - */ - protected static final String TAGLIB_LOCATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTaglibLocation() <em>Taglib Location</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTaglibLocation() - * @generated - * @ordered - */ - protected String taglibLocation = TAGLIB_LOCATION_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected TagLibRefTypeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JspPackage.eINSTANCE.getTagLibRefType(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getTaglibURI() { - return taglibURI; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTaglibURI(String newTaglibURI) { - String oldTaglibURI = taglibURI; - taglibURI = newTaglibURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JspPackage.TAG_LIB_REF_TYPE__TAGLIB_URI, oldTaglibURI, taglibURI)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getTaglibLocation() { - return taglibLocation; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTaglibLocation(String newTaglibLocation) { - String oldTaglibLocation = taglibLocation; - taglibLocation = newTaglibLocation; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JspPackage.TAG_LIB_REF_TYPE__TAGLIB_LOCATION, oldTaglibLocation, taglibLocation)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.TAG_LIB_REF_TYPE__TAGLIB_URI: - return getTaglibURI(); - case JspPackage.TAG_LIB_REF_TYPE__TAGLIB_LOCATION: - return getTaglibLocation(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.TAG_LIB_REF_TYPE__TAGLIB_URI: - setTaglibURI((String)newValue); - return; - case JspPackage.TAG_LIB_REF_TYPE__TAGLIB_LOCATION: - setTaglibLocation((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.TAG_LIB_REF_TYPE__TAGLIB_URI: - setTaglibURI(TAGLIB_URI_EDEFAULT); - return; - case JspPackage.TAG_LIB_REF_TYPE__TAGLIB_LOCATION: - setTaglibLocation(TAGLIB_LOCATION_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JspPackage.TAG_LIB_REF_TYPE__TAGLIB_URI: - return TAGLIB_URI_EDEFAULT == null ? taglibURI != null : !TAGLIB_URI_EDEFAULT.equals(taglibURI); - case JspPackage.TAG_LIB_REF_TYPE__TAGLIB_LOCATION: - return TAGLIB_LOCATION_EDEFAULT == null ? taglibLocation != null : !TAGLIB_LOCATION_EDEFAULT.equals(taglibLocation); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (taglibURI: "); - result.append(taglibURI); - result.append(", taglibLocation: "); - result.append(taglibLocation); - result.append(')'); - return result.toString(); - } - -} //TagLibRefTypeImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/util/JspAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/util/JspAdapterFactory.java deleted file mode 100644 index ce370d810..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/util/JspAdapterFactory.java +++ /dev/null @@ -1,196 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.jsp.JSPConfig; -import org.eclipse.jst.j2ee.jsp.JSPPropertyGroup; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.TagLibRefType; - - -/** - * <!-- begin-user-doc --> - * The <b>Adapter Factory</b> for the model. - * It provides an adapter <code>createXXX</code> method for each class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jsp.JspPackage - * @generated - */ -public class JspAdapterFactory extends AdapterFactoryImpl -{ - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static JspPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JspAdapterFactory() { - if (modelPackage == null) { - modelPackage = JspPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * <!-- begin-user-doc --> - * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. - * <!-- end-user-doc --> - * @return whether this factory is applicable for the type of the object. - * @generated - */ - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected JspSwitch modelSwitch = - new JspSwitch() { - public Object caseJSPConfig(JSPConfig object) { - return createJSPConfigAdapter(); - } - public Object caseJSPPropertyGroup(JSPPropertyGroup object) { - return createJSPPropertyGroupAdapter(); - } - public Object caseTagLibRefType(TagLibRefType object) { - return createTagLibRefTypeAdapter(); - } - public Object caseDescriptionGroup(DescriptionGroup object) { - return createDescriptionGroupAdapter(); - } - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return createCompatibilityDescriptionGroupAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param target the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jsp.JSPConfig <em>JSP Config</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jsp.JSPConfig - * @generated - */ - public Adapter createJSPConfigAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jsp.JSPPropertyGroup <em>JSP Property Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jsp.JSPPropertyGroup - * @generated - */ - public Adapter createJSPPropertyGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jsp.TagLibRefType <em>Tag Lib Ref Type</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.jsp.TagLibRefType - * @generated - */ - public Adapter createTagLibRefTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - public Adapter createDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - public Adapter createCompatibilityDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //JspAdapterFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/util/JspSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/util/JspSwitch.java deleted file mode 100644 index 376dcd802..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/internal/util/JspSwitch.java +++ /dev/null @@ -1,213 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.jsp.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.jsp.JSPConfig; -import org.eclipse.jst.j2ee.jsp.JSPPropertyGroup; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.TagLibRefType; - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.jsp.JspPackage - * @generated - */ -public class JspSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static JspPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JspSwitch() { - if (modelPackage == null) { - modelPackage = JspPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case JspPackage.JSP_CONFIG: { - JSPConfig jspConfig = (JSPConfig)theEObject; - Object result = caseJSPConfig(jspConfig); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JspPackage.JSP_PROPERTY_GROUP: { - JSPPropertyGroup jspPropertyGroup = (JSPPropertyGroup)theEObject; - Object result = caseJSPPropertyGroup(jspPropertyGroup); - if (result == null) result = caseCompatibilityDescriptionGroup(jspPropertyGroup); - if (result == null) result = caseDescriptionGroup(jspPropertyGroup); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JspPackage.TAG_LIB_REF_TYPE: { - TagLibRefType tagLibRefType = (TagLibRefType)theEObject; - Object result = caseTagLibRefType(tagLibRefType); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>JSP Config</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>JSP Config</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseJSPConfig(JSPConfig object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>JSP Property Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>JSP Property Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseJSPPropertyGroup(JSPPropertyGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Tag Lib Ref Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Tag Lib Ref Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseTagLibRefType(TagLibRefType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionGroup(DescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //JspSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/package.xml b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/package.xml deleted file mode 100644 index 80faa8120..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/package.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<html> - <head> - <meta - name="root" - content="../../../../../../../" /> - <title>EJB Artifact Edit api overview</title> - </head> - - <body> - <abstract> - This package includes the JSP model api. Using this api the artifacts of a JSP and TagLib ref - can be created and accessed. - </abstract> - - <a href="#top">top</a> - </body> -</html> -
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/BodyContentType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/BodyContentType.java deleted file mode 100644 index abc933beb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/BodyContentType.java +++ /dev/null @@ -1,182 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -public final class BodyContentType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int TAGDEPENDENT = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int JSP = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int EMPTY = 2; - /** - * The '<em><b>Scriptless</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #SCRIPTLESS_LITERAL - * @model name="scriptless" - * @generated - * @ordered - */ - public static final int SCRIPTLESS = 3; - - /** - * The '<em><b>Tagdependent</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Tagdependent</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #TAGDEPENDENT - * @generated - * @ordered - */ - public static final BodyContentType TAGDEPENDENT_LITERAL = new BodyContentType(TAGDEPENDENT, "tagdependent");//$NON-NLS-1$ - - /** - * The '<em><b>JSP</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>JSP</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #JSP - * @generated - * @ordered - */ - public static final BodyContentType JSP_LITERAL = new BodyContentType(JSP, "JSP");//$NON-NLS-1$ - - /** - * The '<em><b>Empty</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Empty</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #EMPTY - * @generated - * @ordered - */ - public static final BodyContentType EMPTY_LITERAL = new BodyContentType(EMPTY, "empty");//$NON-NLS-1$ - - /** - * The '<em><b>Scriptless</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Scriptless</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #SCRIPTLESS - * @generated - * @ordered - */ - public static final BodyContentType SCRIPTLESS_LITERAL = new BodyContentType(SCRIPTLESS, "scriptless");//$NON-NLS-1$ - - /** - * An array of all the '<em><b>Body Content Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final BodyContentType[] VALUES_ARRAY = - new BodyContentType[] { - TAGDEPENDENT_LITERAL, - JSP_LITERAL, - EMPTY_LITERAL, - SCRIPTLESS_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Body Content Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Body Content Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static BodyContentType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - BodyContentType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Body Content Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static BodyContentType get(int value) { - switch (value) { - case TAGDEPENDENT: return TAGDEPENDENT_LITERAL; - case JSP: return JSP_LITERAL; - case EMPTY: return EMPTY_LITERAL; - case SCRIPTLESS: return SCRIPTLESS_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private BodyContentType(int value, String name) { - super(value, name); - } - -} //BodyContentType - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/ExtensibleType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/ExtensibleType.java deleted file mode 100644 index 5be9312df..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/ExtensibleType.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Extensible Type</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.ExtensibleType#getValue <em>Value</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getExtensibleType() - * @model abstract="true" - * @generated - */ -public interface ExtensibleType extends EObject{ - /** - * Returns the value of the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Value</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Value</em>' attribute. - * @see #setValue(String) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getExtensibleType_Value() - * @model - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.ExtensibleType#getValue <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Value</em>' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - -} // ExtensibleType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/Function.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/Function.java deleted file mode 100644 index 1399c5809..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/Function.java +++ /dev/null @@ -1,206 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.DescriptionGroup; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Function</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The function element is used to provide information on each - * function in the tag library that is to be exposed to the EL. - * - * The function element may have several subelements defining: - * - * description Optional tag-specific information - * - * display-name A short name that is intended to be - * displayed by tools - * - * icon Optional icon element that can be used - * by tools - * - * name A unique name for this function - * - * function-class Provides the name of the Java class that - * implements the function - * - * function-signature Provides the signature, as in the Java - * Language Specification, of the Java - * method that is to be used to implement - * the function. - * - * example Optional informal description of an - * example of a use of this function - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.Function#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.Function#getSignature <em>Signature</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.Function#getExample <em>Example</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.Function#getFunctionClass <em>Function Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.Function#getFunctionExtensions <em>Function Extensions</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getFunction() - * @model - * @generated - */ -public interface Function extends DescriptionGroup{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getFunction_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.Function#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Signature</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Signature</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * Provides the signature, as in the Java Language - * Specification, of the static Java method that is - * to be used to implement the function. - * - * Example: - * - * java.lang.String nickName( java.lang.String, int ) - * <!-- end-model-doc --> - * @return the value of the '<em>Signature</em>' attribute. - * @see #setSignature(String) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getFunction_Signature() - * @model - * @generated - */ - String getSignature(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.Function#getSignature <em>Signature</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Signature</em>' attribute. - * @see #getSignature() - * @generated - */ - void setSignature(String value); - - /** - * Returns the value of the '<em><b>Example</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Example</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The example element contains an informal description - * of an example of the use of this function. - * <!-- end-model-doc --> - * @return the value of the '<em>Example</em>' attribute. - * @see #setExample(String) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getFunction_Example() - * @model - * @generated - */ - String getExample(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.Function#getExample <em>Example</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Example</em>' attribute. - * @see #getExample() - * @generated - */ - void setExample(String value); - - /** - * Returns the value of the '<em><b>Function Class</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Function Class</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * Provides the fully-qualified class name of the Java - * class containing the static method that implements - * the function. - * <!-- end-model-doc --> - * @return the value of the '<em>Function Class</em>' reference. - * @see #setFunctionClass(JavaClass) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getFunction_FunctionClass() - * @model required="true" - * @generated - */ - JavaClass getFunctionClass(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.Function#getFunctionClass <em>Function Class</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Function Class</em>' reference. - * @see #getFunctionClass() - * @generated - */ - void setFunctionClass(JavaClass value); - - /** - * Returns the value of the '<em><b>Function Extensions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.taglib.internal.TldExtension}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Function Extensions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Function Extensions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getFunction_FunctionExtensions() - * @model type="org.eclipse.jst.j2ee.taglib.internal.TldExtension" containment="true" - * @generated - */ - EList getFunctionExtensions(); - -} // Function diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPScriptingVariableScope.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPScriptingVariableScope.java deleted file mode 100644 index 494197434..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPScriptingVariableScope.java +++ /dev/null @@ -1,155 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - - - -public final class JSPScriptingVariableScope extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int NESTED = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int AT_BEGIN = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int AT_END = 2; - /** - * The '<em><b>NESTED</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>NESTED</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #NESTED - * @generated - * @ordered - */ - public static final JSPScriptingVariableScope NESTED_LITERAL = new JSPScriptingVariableScope(NESTED, "NESTED");//$NON-NLS-1$ - - /** - * The '<em><b>AT BEGIN</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>AT BEGIN</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #AT_BEGIN - * @generated - * @ordered - */ - public static final JSPScriptingVariableScope AT_BEGIN_LITERAL = new JSPScriptingVariableScope(AT_BEGIN, "AT_BEGIN");//$NON-NLS-1$ - - /** - * The '<em><b>AT END</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>AT END</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #AT_END - * @generated - * @ordered - */ - public static final JSPScriptingVariableScope AT_END_LITERAL = new JSPScriptingVariableScope(AT_END, "AT_END");//$NON-NLS-1$ - - /** - * An array of all the '<em><b>JSP Scripting Variable Scope</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final JSPScriptingVariableScope[] VALUES_ARRAY = - new JSPScriptingVariableScope[] { - NESTED_LITERAL, - AT_BEGIN_LITERAL, - AT_END_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>JSP Scripting Variable Scope</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>JSP Scripting Variable Scope</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static JSPScriptingVariableScope get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - JSPScriptingVariableScope result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>JSP Scripting Variable Scope</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static JSPScriptingVariableScope get(int value) { - switch (value) { - case NESTED: return NESTED_LITERAL; - case AT_BEGIN: return AT_BEGIN_LITERAL; - case AT_END: return AT_END_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private JSPScriptingVariableScope(int value, String name) { - super(value, name); - } - -} //JSPScriptingVariableScope - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPTag.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPTag.java deleted file mode 100644 index 77f773ffe..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPTag.java +++ /dev/null @@ -1,227 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.DescriptionGroup; - - -/** - * The tag element defines an action in this tag library. The tag element has one attribute, id. - * The tag element may have several subelements defining: - * name -- The unique action name - * tag-class -- The tag handler class implementing javax.servlet.jsp.tagext.Tag - * tei-class -- An optional subclass of javax.servlet.jsp.tagext.TagExtraInfo - * body-content -- The body content type - * display-name -- A short name that is intended to be displayed by tools - * small-icon -- Optional small-icon that can be used by tools - * large-icon -- Optional large-icon that can be used by tools - * description -- Optional tag-specific information - * variable -- Optional scripting variable information - * attribute -- All attributes of this action - * example -- Optional informal description of an example of a use of this action. - - */ -public interface JSPTag extends DescriptionGroup{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the BodyContent attribute - * Provides a hint as to the content of the body of this tag. Primarily intended - * for use by page composition tools.There are currently three values specified: - * - * tagdependent - The body of the tag is interpreted by the tag implementation - * itself, and is most likely in a different "langage", e.g embedded SQL - * statements. - * - * JSP - The body of the tag contains nested JSP syntax - * - * empty - The body must be emptyThe default (if not defined) is JSP#PCDATA ::= - * tagdependent | JSP | empty - */ - BodyContentType getBodyContent(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTag#getBodyContent <em>Body Content</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Body Content</em>' attribute. - * @see org.eclipse.jst.j2ee.taglib.internal.BodyContentType - * @see #isSetBodyContent() - * @see #unsetBodyContent() - * @see #getBodyContent() - * @generated - */ - void setBodyContent(BodyContentType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTag#getBodyContent <em>Body Content</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetBodyContent() - * @see #getBodyContent() - * @see #setBodyContent(BodyContentType) - * @generated - */ - void unsetBodyContent(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTag#getBodyContent <em>Body Content</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Body Content</em>' attribute is set. - * @see #unsetBodyContent() - * @see #getBodyContent() - * @see #setBodyContent(BodyContentType) - * @generated - */ - boolean isSetBodyContent(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Example attribute - * The example element provides an informal description of an example of the use - * of a tag. - */ - String getExample(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Example attribute - */ - void setExample(String value); - - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getJSPTag_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTag#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Dynamic Attributes</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Dynamic Attributes</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Dynamic Attributes</em>' attribute. - * @see #setDynamicAttributes(boolean) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getJSPTag_DynamicAttributes() - * @model - * @generated - */ - boolean isDynamicAttributes(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTag#isDynamicAttributes <em>Dynamic Attributes</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Dynamic Attributes</em>' attribute. - * @see #isDynamicAttributes() - * @generated - */ - void setDynamicAttributes(boolean value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Attributes references - */ - EList getAttributes(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Variables references - * The variable element provides information on the scripting variables defined by - * this tag. - * It is a (translation time) error for an action that has one or more variable - * subelements to have a TagExtraInfo class that returns a non-null object. - * The subelements of variable are of the form: - * name-given -- The variable name as a constant - * name-from-attribute -- The name of an attribute whose (translation time) value - * will give the name of the variable. One of name-given or namefrom-attribute is - * required. - * variable-class -- Name of the class of the variable. java.lang.String is - * default. - * declare -- Whether the variable is declared or not. True is the default. - * scope -- The scope of the scripting variable defined. NESTED is default. - - */ - EList getVariables(); - - /** - * @generated This field/method will be replaced during code generation - * @return The TagClass reference - * The tag-class element indicates the subclass of javax.serlvet.jsp.tagext.Tag - * that implements the request time semantics for this tag. This element is - * required. - * @regexp fully qualified Java class name - - */ - JavaClass getTagClass(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the TagClass reference - */ - void setTagClass(JavaClass value); - - /** - * @generated This field/method will be replaced during code generation - * @return The TeiClass reference - * The tei-class element indicates the subclass of - * javax.servlet.jsp.tagext.TagExtraInfo for this tag. The class is instantiated - * at translation time. This element is optional. - * @regexp fully qualified Java class name - */ - JavaClass getTeiClass(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the TeiClass reference - */ - void setTeiClass(JavaClass value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPTagAttribute.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPTagAttribute.java deleted file mode 100644 index 26e3a7813..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPTagAttribute.java +++ /dev/null @@ -1,186 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jem.java.JavaClass; - -/** - * The attribute tag defines an attribute for the nesting tag - */ -public interface JSPTagAttribute extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Name attribute - * Defines the canonical name of a tag or attribute being defined (required). - */ - String getName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Name attribute - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Required attribute - * Defines if the nesting attribute is required or optional. - */ - boolean isRequired(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Required attribute - */ - void setRequired(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute#isRequired <em>Required</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetRequired() - * @see #isRequired() - * @see #setRequired(boolean) - * @generated - */ - void unsetRequired(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute#isRequired <em>Required</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Required</em>' attribute is set. - * @see #unsetRequired() - * @see #isRequired() - * @see #setRequired(boolean) - * @generated - */ - boolean isSetRequired(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the RtExprValue attribute - * Defines if the nesting attribute can have scriptlet expressions asa value, i.e - * the value of the attribute may be dynamically calculatedat request time, as - * opposed to a static value determined at translationtime. (optional) - * Default = false - */ - boolean isRtExprValue(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the RtExprValue attribute - */ - void setRtExprValue(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute#isRtExprValue <em>Rt Expr Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetRtExprValue() - * @see #isRtExprValue() - * @see #setRtExprValue(boolean) - * @generated - */ - void unsetRtExprValue(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute#isRtExprValue <em>Rt Expr Value</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Rt Expr Value</em>' attribute is set. - * @see #unsetRtExprValue() - * @see #isRtExprValue() - * @see #setRtExprValue(boolean) - * @generated - */ - boolean isSetRtExprValue(); - - /** - * Returns the value of the '<em><b>Fragment</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Fragment</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Fragment</em>' attribute. - * @see #setFragment(boolean) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getJSPTagAttribute_Fragment() - * @model - * @generated - */ - boolean isFragment(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute#isFragment <em>Fragment</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Fragment</em>' attribute. - * @see #isFragment() - * @generated - */ - void setFragment(boolean value); - - /** - * @generated This field/method will be replaced during code generation - * @return The Type reference - * The value of the type element describes the Java type of the attributes value. - * For static values (those determined at translation time) the type is always - * java.lang.String. - */ - JavaClass getType(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the Type reference - */ - void setType(JavaClass value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getJSPTagAttribute_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPVariable.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPVariable.java deleted file mode 100644 index bbc3b3473..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/JSPVariable.java +++ /dev/null @@ -1,125 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jem.java.JavaClass; - -/** - * @generated - */ -public interface JSPVariable extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the NameGiven attribute - * The name-given element provides the name for the scripting variable. - * - * One of name-given or name-from-attribute is required. - */ - String getNameGiven(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the NameGiven attribute - */ - void setNameGiven(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the NameFromAttribute attribute - * The name of an attribute whose (translation-time) value will give the name of - * the variable. - */ - String getNameFromAttribute(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the NameFromAttribute attribute - */ - void setNameFromAttribute(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Declare attribute - * The value of the declare element indicates whether the scripting variable is to - * be defined or not. See TagExtraInfo for details. - * This element is optional and is the default is true. - - */ - boolean isDeclare(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Declare attribute - */ - void setDeclare(boolean value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Scope attribute - */ - JSPScriptingVariableScope getScope(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.JSPVariable#getScope <em>Scope</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Scope</em>' attribute. - * @see org.eclipse.jst.j2ee.taglib.internal.JSPScriptingVariableScope - * @see #getScope() - * @generated - */ - void setScope(JSPScriptingVariableScope value); - - /** - * @generated This field/method will be replaced during code generation - * @return The VariableClass reference - */ - JavaClass getVariableClass(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the VariableClass reference - */ - void setVariableClass(JavaClass value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getJSPVariable_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TagFile.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TagFile.java deleted file mode 100644 index 51d582351..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TagFile.java +++ /dev/null @@ -1,148 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jst.j2ee.common.DescriptionGroup; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Tag File</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 - * Defines an action in this tag library that is implemented - * as a .tag file. - * - * The tag-file element has two required subelements: - * - * name The unique action name - * - * path Where to find the .tag file implementing this - * action, relative to the root of the web application or - * the root of the JAR file for a tag library packaged in - * a JAR. This must begin with /WEB-INF/tags if the .tag - * file resides in the WAR, or /META-INF/tags if the .tag - * file resides in a JAR. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getPath <em>Path</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getExample <em>Example</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getTagExtensions <em>Tag Extensions</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getTagFile() - * @model - * @generated - */ -public interface TagFile extends DescriptionGroup{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getTagFile_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Path</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Path</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Path</em>' attribute. - * @see #setPath(String) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getTagFile_Path() - * @model - * @generated - */ - String getPath(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getPath <em>Path</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Path</em>' attribute. - * @see #getPath() - * @generated - */ - void setPath(String value); - - /** - * Returns the value of the '<em><b>Example</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Example</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Example</em>' attribute. - * @see #setExample(String) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getTagFile_Example() - * @model - * @generated - */ - String getExample(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getExample <em>Example</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Example</em>' attribute. - * @see #getExample() - * @generated - */ - void setExample(String value); - - /** - * Returns the value of the '<em><b>Tag Extensions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.taglib.internal.TldExtension}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Tag Extensions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Tag Extensions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getTagFile_TagExtensions() - * @model type="org.eclipse.jst.j2ee.taglib.internal.TldExtension" containment="true" - * @generated - */ - EList getTagExtensions(); - -} // TagFile diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TagLib.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TagLib.java deleted file mode 100644 index bcb33cca8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TagLib.java +++ /dev/null @@ -1,162 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; - -/** - * The taglib tag is the document root. - - */ -public interface TagLib extends CompatibilityDescriptionGroup{ - /** - * These values are used in the deployment descriptor, use getVersionID() to determine module versions - * @generated This field/method will be replaced during code generation - * @return The value of the TagLibVersion attribute - * Describes this version number of the tag library (dewey decimal). - * @regexp [0-9]*{ "."[0-9] }0..3 - */ - String getTagLibVersion(); - - /** - * This returns the module version id. Compare with J2EEVersionConstants to determine module level - */ - public int getVersionID() throws IllegalStateException ; - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the TagLibVersion attribute - */ - void setTagLibVersion(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the JspVersion attribute - * Describes the JSP version (number) this tag library requires in order to - * function (dewey decimal). Default is 1.2 - * @regexp [0-9]*{ "."[0-9] }0..3 - */ - String getJspVersion(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the JspVersion attribute - */ - void setJspVersion(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ShortName attribute - * The value of the short-name element is a name that could be used by a JSP - * authoring tool to create names with a mnemonic value; for example, it may be - * used as the prefered prefix value in taglib directives. Do not use white space, - * and do not start with digits or underscore. - */ - String getShortName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ShortName attribute - */ - void setShortName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Uri attribute - * The value of the uri element is a public URI that uniquely identifies the exact - * semantics of this taglibrary. - */ - String getUri(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Uri attribute - */ - void setUri(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Tags references - */ - EList getTags(); - - /** - * @generated This field/method will be replaced during code generation - * @return The Validator reference - * The validator element provides information on an optional validator that can be - * used to validate the conformance of a JSP page to using this tag library. - - */ - Validator getValidator(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the Validator reference - */ - void setValidator(Validator value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Listeners references - */ - EList getListeners(); - - /** - * Returns the value of the '<em><b>Functions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.taglib.internal.Function}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Functions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Functions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getTagLib_Functions() - * @model type="org.eclipse.jst.j2ee.taglib.internal.Function" containment="true" - * @generated - */ - EList getFunctions(); - - /** - * Returns the value of the '<em><b>Taglib Extensions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.taglib.internal.TldExtension}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Taglib Extensions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Taglib Extensions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getTagLib_TaglibExtensions() - * @model type="org.eclipse.jst.j2ee.taglib.internal.TldExtension" containment="true" - * @generated - */ - EList getTaglibExtensions(); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TaglibFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TaglibFactory.java deleted file mode 100644 index 88da38ce6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TaglibFactory.java +++ /dev/null @@ -1,95 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - -import org.eclipse.emf.ecore.EFactory; -/** - * @generated - */ -public interface TaglibFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - TaglibFactory eINSTANCE = new org.eclipse.jst.j2ee.taglib.internal.impl.TaglibFactoryImpl(); - - /** - * @generated This field/method will be replaced during code generation - * @return TagLib value - */ - TagLib createTagLib(); - - /** - * @generated This field/method will be replaced during code generation - * @return Validator value - */ - Validator createValidator(); - - /** - * @generated This field/method will be replaced during code generation - * @return JSPTag value - */ - JSPTag createJSPTag(); - - /** - * @generated This field/method will be replaced during code generation - * @return JSPTagAttribute value - */ - JSPTagAttribute createJSPTagAttribute(); - - /** - * @generated This field/method will be replaced during code generation - * @return JSPVariable value - */ - JSPVariable createJSPVariable(); - - /** - * Returns a new object of class '<em>Function</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Function</em>'. - * @generated - */ - Function createFunction(); - - /** - * Returns a new object of class '<em>Tag File</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Tag File</em>'. - * @generated - */ - TagFile createTagFile(); - - /** - * Returns a new object of class '<em>Tld Extension</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Tld Extension</em>'. - * @generated - */ - TldExtension createTldExtension(); - - /** - * @generated This field/method will be replaced during code generation. - */ - TaglibPackage getTaglibPackage(); - -} - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TaglibPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TaglibPackage.java deleted file mode 100644 index 32f5dff01..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TaglibPackage.java +++ /dev/null @@ -1,1053 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jst.j2ee.common.CommonPackage; - - - -public interface TaglibPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "taglib";//$NON-NLS-1$ - - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB = 0; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__TAG_LIB_VERSION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__JSP_VERSION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__SHORT_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__URI = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__TAGS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__VALIDATOR = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB__LISTENERS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 6; - - /** - * The feature id for the '<em><b>Functions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB__FUNCTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 7; - - /** - * The feature id for the '<em><b>Taglib Extensions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB__TAGLIB_EXTENSIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 8; - - /** - * The number of structural features of the the '<em>Tag Lib</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 9; - - /** - * @generated This field/method will be replaced during code generation. - */ - int VALIDATOR = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - - - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG = 1; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_TAG__ICONS = CommonPackage.DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_TAG__DISPLAY_NAMES = CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_TAG__DESCRIPTIONS = CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG__BODY_CONTENT = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG__EXAMPLE = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 1; - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_TAG__NAME = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Dynamic Attributes</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_TAG__DYNAMIC_ATTRIBUTES = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG__ATTRIBUTES = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG__VARIABLES = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG__TAG_CLASS = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 6; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG__TEI_CLASS = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 7; - - /** - * The number of structural features of the the '<em>JSP Tag</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_TAG_FEATURE_COUNT = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 8; - - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG_ATTRIBUTE = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG_ATTRIBUTE__NAME = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG_ATTRIBUTE__REQUIRED = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG_ATTRIBUTE__RT_EXPR_VALUE = 2; - /** - * The feature id for the '<em><b>Fragment</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_TAG_ATTRIBUTE__FRAGMENT = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TAG_ATTRIBUTE__TYPE = 4; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_TAG_ATTRIBUTE__DESCRIPTIONS = 5; - - /** - * The number of structural features of the the '<em>JSP Tag Attribute</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_TAG_ATTRIBUTE_FEATURE_COUNT = 6; - - /** - * @generated This field/method will be replaced during code generation. - */ - int VALIDATOR__VALIDATOR_CLASS = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int VALIDATOR__INIT_PARAMS = 1; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VALIDATOR__DESCRIPTIONS = 2; - - /** - * The number of structural features of the the '<em>Validator</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VALIDATOR_FEATURE_COUNT = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_VARIABLE = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_VARIABLE__NAME_GIVEN = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_VARIABLE__NAME_FROM_ATTRIBUTE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_VARIABLE__DECLARE = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_VARIABLE__SCOPE = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_VARIABLE__VARIABLE_CLASS = 4; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_VARIABLE__DESCRIPTIONS = 5; - - /** - * The number of structural features of the the '<em>JSP Variable</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_VARIABLE_FEATURE_COUNT = 6; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.taglib.internal.impl.FunctionImpl <em>Function</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.taglib.internal.impl.FunctionImpl - * @see org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl#getFunction() - * @generated - */ - int FUNCTION = 5; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FUNCTION__ICONS = CommonPackage.DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FUNCTION__DISPLAY_NAMES = CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FUNCTION__DESCRIPTIONS = CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FUNCTION__NAME = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Signature</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FUNCTION__SIGNATURE = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Example</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FUNCTION__EXAMPLE = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Function Class</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FUNCTION__FUNCTION_CLASS = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * The feature id for the '<em><b>Function Extensions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FUNCTION__FUNCTION_EXTENSIONS = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 4; - - /** - * The number of structural features of the the '<em>Function</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FUNCTION_FEATURE_COUNT = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 5; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.taglib.internal.impl.TagFileImpl <em>Tag File</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.taglib.internal.impl.TagFileImpl - * @see org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl#getTagFile() - * @generated - */ - int TAG_FILE = 6; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_FILE__ICONS = CommonPackage.DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_FILE__DISPLAY_NAMES = CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_FILE__DESCRIPTIONS = CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_FILE__NAME = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Path</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_FILE__PATH = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Example</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_FILE__EXAMPLE = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Tag Extensions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_FILE__TAG_EXTENSIONS = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * The number of structural features of the the '<em>Tag File</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_FILE_FEATURE_COUNT = CommonPackage.DESCRIPTION_GROUP_FEATURE_COUNT + 4; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.taglib.internal.impl.TldExtensionImpl <em>Tld Extension</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.taglib.internal.impl.TldExtensionImpl - * @see org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl#getTldExtension() - * @generated - */ - int TLD_EXTENSION = 7; - - /** - * The feature id for the '<em><b>Namespace</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TLD_EXTENSION__NAMESPACE = 0; - - /** - * The feature id for the '<em><b>Extension Elements</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TLD_EXTENSION__EXTENSION_ELEMENTS = 1; - - /** - * The number of structural features of the the '<em>Tld Extension</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TLD_EXTENSION_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.taglib.internal.impl.ExtensibleTypeImpl <em>Extensible Type</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.taglib.internal.impl.ExtensibleTypeImpl - * @see org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl#getExtensibleType() - * @generated - */ - int EXTENSIBLE_TYPE = 8; - - /** - * The feature id for the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXTENSIBLE_TYPE__VALUE = 0; - - /** - * The number of structural features of the the '<em>Extensible Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXTENSIBLE_TYPE_FEATURE_COUNT = 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int BODY_CONTENT_TYPE = 9; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_SCRIPTING_VARIABLE_SCOPE = 10; - /** - * @generated This field/method will be replaced during code generation. - */ - String eNS_URI = "taglib.xmi";//$NON-NLS-1$ - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.taglib";//$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - TaglibPackage eINSTANCE = org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl.init(); - - /** - * @generated This field/method will be replaced during code generation - * @return TagLib object - */ - EClass getTagLib(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getTagLib_TagLibVersion(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getTagLib_JspVersion(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getTagLib_ShortName(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getTagLib_Uri(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getTagLib_Tags(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getTagLib_Validator(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getTagLib_Listeners(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.taglib.internal.TagLib#getFunctions <em>Functions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Functions</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.TagLib#getFunctions() - * @see #getTagLib() - * @generated - */ - EReference getTagLib_Functions(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.taglib.internal.TagLib#getTaglibExtensions <em>Taglib Extensions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Taglib Extensions</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.TagLib#getTaglibExtensions() - * @see #getTagLib() - * @generated - */ - EReference getTagLib_TaglibExtensions(); - - /** - * @generated This field/method will be replaced during code generation - * @return Validator object - */ - EClass getValidator(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getValidator_ValidatorClass(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getValidator_InitParams(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.taglib.internal.Validator#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.Validator#getDescriptions() - * @see #getValidator() - * @generated - */ - EReference getValidator_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return JSPTag object - */ - EClass getJSPTag(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getJSPTag_BodyContent(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getJSPTag_Example(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTag#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.JSPTag#getName() - * @see #getJSPTag() - * @generated - */ - EAttribute getJSPTag_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTag#isDynamicAttributes <em>Dynamic Attributes</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Dynamic Attributes</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.JSPTag#isDynamicAttributes() - * @see #getJSPTag() - * @generated - */ - EAttribute getJSPTag_DynamicAttributes(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getJSPTag_Attributes(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getJSPTag_Variables(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getJSPTag_TagClass(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getJSPTag_TeiClass(); - - /** - * @generated This field/method will be replaced during code generation - * @return JSPTagAttribute object - */ - EClass getJSPTagAttribute(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getJSPTagAttribute_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getJSPTagAttribute_Required(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getJSPTagAttribute_RtExprValue(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute#isFragment <em>Fragment</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Fragment</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute#isFragment() - * @see #getJSPTagAttribute() - * @generated - */ - EAttribute getJSPTagAttribute_Fragment(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getJSPTagAttribute_Type(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute#getDescriptions() - * @see #getJSPTagAttribute() - * @generated - */ - EReference getJSPTagAttribute_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return JSPVariable object - */ - EClass getJSPVariable(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getJSPVariable_NameGiven(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getJSPVariable_NameFromAttribute(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getJSPVariable_Declare(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getJSPVariable_Scope(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getJSPVariable_VariableClass(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.taglib.internal.JSPVariable#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.JSPVariable#getDescriptions() - * @see #getJSPVariable() - * @generated - */ - EReference getJSPVariable_Descriptions(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.taglib.internal.Function <em>Function</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Function</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.Function - * @generated - */ - EClass getFunction(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.Function#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.Function#getName() - * @see #getFunction() - * @generated - */ - EAttribute getFunction_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.Function#getSignature <em>Signature</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Signature</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.Function#getSignature() - * @see #getFunction() - * @generated - */ - EAttribute getFunction_Signature(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.Function#getExample <em>Example</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Example</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.Function#getExample() - * @see #getFunction() - * @generated - */ - EAttribute getFunction_Example(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.taglib.internal.Function#getFunctionClass <em>Function Class</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Function Class</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.Function#getFunctionClass() - * @see #getFunction() - * @generated - */ - EReference getFunction_FunctionClass(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.taglib.internal.Function#getFunctionExtensions <em>Function Extensions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Function Extensions</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.Function#getFunctionExtensions() - * @see #getFunction() - * @generated - */ - EReference getFunction_FunctionExtensions(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.taglib.internal.TagFile <em>Tag File</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Tag File</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.TagFile - * @generated - */ - EClass getTagFile(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.TagFile#getName() - * @see #getTagFile() - * @generated - */ - EAttribute getTagFile_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getPath <em>Path</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Path</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.TagFile#getPath() - * @see #getTagFile() - * @generated - */ - EAttribute getTagFile_Path(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getExample <em>Example</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Example</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.TagFile#getExample() - * @see #getTagFile() - * @generated - */ - EAttribute getTagFile_Example(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.taglib.internal.TagFile#getTagExtensions <em>Tag Extensions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Tag Extensions</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.TagFile#getTagExtensions() - * @see #getTagFile() - * @generated - */ - EReference getTagFile_TagExtensions(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.taglib.internal.TldExtension <em>Tld Extension</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Tld Extension</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.TldExtension - * @generated - */ - EClass getTldExtension(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.TldExtension#getNamespace <em>Namespace</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Namespace</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.TldExtension#getNamespace() - * @see #getTldExtension() - * @generated - */ - EAttribute getTldExtension_Namespace(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.taglib.internal.TldExtension#getExtensionElements <em>Extension Elements</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Extension Elements</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.TldExtension#getExtensionElements() - * @see #getTldExtension() - * @generated - */ - EReference getTldExtension_ExtensionElements(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.taglib.internal.ExtensibleType <em>Extensible Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Extensible Type</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.ExtensibleType - * @generated - */ - EClass getExtensibleType(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.taglib.internal.ExtensibleType#getValue <em>Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Value</em>'. - * @see org.eclipse.jst.j2ee.taglib.internal.ExtensibleType#getValue() - * @see #getExtensibleType() - * @generated - */ - EAttribute getExtensibleType_Value(); - - /** - * @generated This field/method will be replaced during code generation - * @return BodyContentType object - */ - EEnum getBodyContentType(); - - /** - * @generated This field/method will be replaced during code generation - * @return JSPScriptingVariableScope object - */ - EEnum getJSPScriptingVariableScope(); - - /** - * @generated This field/method will be replaced during code generation. - */ - TaglibFactory getTaglibFactory(); - -} //TaglibPackage - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TldExtension.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TldExtension.java deleted file mode 100644 index 08104ea95..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/TldExtension.java +++ /dev/null @@ -1,76 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Tld Extension</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.TldExtension#getNamespace <em>Namespace</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.TldExtension#getExtensionElements <em>Extension Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getTldExtension() - * @model - * @generated - */ -public interface TldExtension extends EObject{ - /** - * Returns the value of the '<em><b>Namespace</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Namespace</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Namespace</em>' attribute. - * @see #setNamespace(String) - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getTldExtension_Namespace() - * @model - * @generated - */ - String getNamespace(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.taglib.internal.TldExtension#getNamespace <em>Namespace</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Namespace</em>' attribute. - * @see #getNamespace() - * @generated - */ - void setNamespace(String value); - - /** - * Returns the value of the '<em><b>Extension Elements</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.taglib.internal.ExtensibleType}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Extension Elements</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Extension Elements</em>' containment reference list. - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getTldExtension_ExtensionElements() - * @model type="org.eclipse.jst.j2ee.taglib.internal.ExtensibleType" containment="true" required="true" - * @generated - */ - EList getExtensionElements(); - -} // TldExtension diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/Validator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/Validator.java deleted file mode 100644 index 6f676d37b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/Validator.java +++ /dev/null @@ -1,74 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jem.java.JavaClass; -/** - * The validator element provides information on an optional validator that can be used to validate the conformance of a JSP page to using this tag library. - - */ -public interface Validator extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The ValidatorClass reference - * defines the TagLibraryValidator class that can be - * used to validate the conformance of a JSP page to using this tag library. - */ - JavaClass getValidatorClass(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the ValidatorClass reference - */ - void setValidatorClass(JavaClass value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of InitParams references - */ - EList getInitParams(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.taglib.internal.TaglibPackage#getValidator_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/ExtensibleTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/ExtensibleTypeImpl.java deleted file mode 100644 index 167084705..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/ExtensibleTypeImpl.java +++ /dev/null @@ -1,164 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.taglib.internal.ExtensibleType; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Extensible Type</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.ExtensibleTypeImpl#getValue <em>Value</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public abstract class ExtensibleTypeImpl extends EObjectImpl implements ExtensibleType { - /** - * The default value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ExtensibleTypeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return TaglibPackage.eINSTANCE.getExtensibleType(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getValue() { - return value; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.EXTENSIBLE_TYPE__VALUE, oldValue, value)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.EXTENSIBLE_TYPE__VALUE: - return getValue(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.EXTENSIBLE_TYPE__VALUE: - setValue((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.EXTENSIBLE_TYPE__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.EXTENSIBLE_TYPE__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - -} //ExtensibleTypeImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/FunctionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/FunctionImpl.java deleted file mode 100644 index 74455dda0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/FunctionImpl.java +++ /dev/null @@ -1,431 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl; -import org.eclipse.jst.j2ee.taglib.internal.Function; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.TldExtension; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Function</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.FunctionImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.FunctionImpl#getSignature <em>Signature</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.FunctionImpl#getExample <em>Example</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.FunctionImpl#getFunctionClass <em>Function Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.FunctionImpl#getFunctionExtensions <em>Function Extensions</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class FunctionImpl extends DescriptionGroupImpl implements Function { - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getSignature() <em>Signature</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSignature() - * @generated - * @ordered - */ - protected static final String SIGNATURE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSignature() <em>Signature</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSignature() - * @generated - * @ordered - */ - protected String signature = SIGNATURE_EDEFAULT; - - /** - * The default value of the '{@link #getExample() <em>Example</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExample() - * @generated - * @ordered - */ - protected static final String EXAMPLE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getExample() <em>Example</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExample() - * @generated - * @ordered - */ - protected String example = EXAMPLE_EDEFAULT; - - /** - * The cached value of the '{@link #getFunctionClass() <em>Function Class</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFunctionClass() - * @generated - * @ordered - */ - protected JavaClass functionClass = null; - - /** - * The cached value of the '{@link #getFunctionExtensions() <em>Function Extensions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFunctionExtensions() - * @generated - * @ordered - */ - protected EList functionExtensions = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected FunctionImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return TaglibPackage.eINSTANCE.getFunction(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.FUNCTION__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getSignature() { - return signature; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSignature(String newSignature) { - String oldSignature = signature; - signature = newSignature; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.FUNCTION__SIGNATURE, oldSignature, signature)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getExample() { - return example; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setExample(String newExample) { - String oldExample = example; - example = newExample; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.FUNCTION__EXAMPLE, oldExample, example)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass getFunctionClass() { - if (functionClass != null && functionClass.eIsProxy()) { - JavaClass oldFunctionClass = functionClass; - functionClass = (JavaClass)eResolveProxy((InternalEObject)functionClass); - if (functionClass != oldFunctionClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaglibPackage.FUNCTION__FUNCTION_CLASS, oldFunctionClass, functionClass)); - } - } - return functionClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetFunctionClass() { - return functionClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFunctionClass(JavaClass newFunctionClass) { - JavaClass oldFunctionClass = functionClass; - functionClass = newFunctionClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.FUNCTION__FUNCTION_CLASS, oldFunctionClass, functionClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getFunctionExtensions() { - if (functionExtensions == null) { - functionExtensions = new EObjectContainmentEList(TldExtension.class, this, TaglibPackage.FUNCTION__FUNCTION_EXTENSIONS); - } - return functionExtensions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case TaglibPackage.FUNCTION__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case TaglibPackage.FUNCTION__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case TaglibPackage.FUNCTION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case TaglibPackage.FUNCTION__FUNCTION_EXTENSIONS: - return ((InternalEList)getFunctionExtensions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.FUNCTION__ICONS: - return getIcons(); - case TaglibPackage.FUNCTION__DISPLAY_NAMES: - return getDisplayNames(); - case TaglibPackage.FUNCTION__DESCRIPTIONS: - return getDescriptions(); - case TaglibPackage.FUNCTION__NAME: - return getName(); - case TaglibPackage.FUNCTION__SIGNATURE: - return getSignature(); - case TaglibPackage.FUNCTION__EXAMPLE: - return getExample(); - case TaglibPackage.FUNCTION__FUNCTION_CLASS: - if (resolve) return getFunctionClass(); - return basicGetFunctionClass(); - case TaglibPackage.FUNCTION__FUNCTION_EXTENSIONS: - return getFunctionExtensions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.FUNCTION__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case TaglibPackage.FUNCTION__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case TaglibPackage.FUNCTION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case TaglibPackage.FUNCTION__NAME: - setName((String)newValue); - return; - case TaglibPackage.FUNCTION__SIGNATURE: - setSignature((String)newValue); - return; - case TaglibPackage.FUNCTION__EXAMPLE: - setExample((String)newValue); - return; - case TaglibPackage.FUNCTION__FUNCTION_CLASS: - setFunctionClass((JavaClass)newValue); - return; - case TaglibPackage.FUNCTION__FUNCTION_EXTENSIONS: - getFunctionExtensions().clear(); - getFunctionExtensions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.FUNCTION__ICONS: - getIcons().clear(); - return; - case TaglibPackage.FUNCTION__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case TaglibPackage.FUNCTION__DESCRIPTIONS: - getDescriptions().clear(); - return; - case TaglibPackage.FUNCTION__NAME: - setName(NAME_EDEFAULT); - return; - case TaglibPackage.FUNCTION__SIGNATURE: - setSignature(SIGNATURE_EDEFAULT); - return; - case TaglibPackage.FUNCTION__EXAMPLE: - setExample(EXAMPLE_EDEFAULT); - return; - case TaglibPackage.FUNCTION__FUNCTION_CLASS: - setFunctionClass((JavaClass)null); - return; - case TaglibPackage.FUNCTION__FUNCTION_EXTENSIONS: - getFunctionExtensions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.FUNCTION__ICONS: - return icons != null && !icons.isEmpty(); - case TaglibPackage.FUNCTION__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case TaglibPackage.FUNCTION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case TaglibPackage.FUNCTION__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case TaglibPackage.FUNCTION__SIGNATURE: - return SIGNATURE_EDEFAULT == null ? signature != null : !SIGNATURE_EDEFAULT.equals(signature); - case TaglibPackage.FUNCTION__EXAMPLE: - return EXAMPLE_EDEFAULT == null ? example != null : !EXAMPLE_EDEFAULT.equals(example); - case TaglibPackage.FUNCTION__FUNCTION_CLASS: - return functionClass != null; - case TaglibPackage.FUNCTION__FUNCTION_EXTENSIONS: - return functionExtensions != null && !functionExtensions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(", signature: "); - result.append(signature); - result.append(", example: "); - result.append(example); - result.append(')'); - return result.toString(); - } - -} //FunctionImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/JSPTagAttributeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/JSPTagAttributeImpl.java deleted file mode 100644 index 508a5d6b9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/JSPTagAttributeImpl.java +++ /dev/null @@ -1,473 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; - - -/** - * The attribute tag defines an attribute for the nesting tag - */ -public class JSPTagAttributeImpl extends EObjectImpl implements JSPTagAttribute, EObject{ - - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String name = NAME_EDEFAULT; - /** - * The default value of the '{@link #isRequired() <em>Required</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isRequired() - * @generated - * @ordered - */ - protected static final boolean REQUIRED_EDEFAULT = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected boolean required = REQUIRED_EDEFAULT; - /** - * This is true if the Required attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean requiredESet = false; - - /** - * The default value of the '{@link #isRtExprValue() <em>Rt Expr Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isRtExprValue() - * @generated - * @ordered - */ - protected static final boolean RT_EXPR_VALUE_EDEFAULT = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected boolean rtExprValue = RT_EXPR_VALUE_EDEFAULT; - /** - * This is true if the Rt Expr Value attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean rtExprValueESet = false; - - /** - * The default value of the '{@link #isFragment() <em>Fragment</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isFragment() - * @generated - * @ordered - */ - protected static final boolean FRAGMENT_EDEFAULT = false; - - /** - * The cached value of the '{@link #isFragment() <em>Fragment</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isFragment() - * @generated - * @ordered - */ - protected boolean fragment = FRAGMENT_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass type = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public JSPTagAttributeImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return TaglibPackage.eINSTANCE.getJSPTagAttribute(); - } - - /** - * @generated This field/method will be replaced during code generation - * Defines the canonical name of a tag or attribute being defined (required). - */ - public String getName() { - return name; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG_ATTRIBUTE__NAME, oldName, name)); - } - - /** - * @generated This field/method will be replaced during code generation - * Defines if the nesting attribute is required or optional. - */ - public boolean isRequired() { - return required; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRequired(boolean newRequired) { - boolean oldRequired = required; - required = newRequired; - boolean oldRequiredESet = requiredESet; - requiredESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG_ATTRIBUTE__REQUIRED, oldRequired, required, !oldRequiredESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetRequired() { - boolean oldRequired = required; - boolean oldRequiredESet = requiredESet; - required = REQUIRED_EDEFAULT; - requiredESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, TaglibPackage.JSP_TAG_ATTRIBUTE__REQUIRED, oldRequired, REQUIRED_EDEFAULT, oldRequiredESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetRequired() { - return requiredESet; - } - - /** - * @generated This field/method will be replaced during code generation - * Defines if the nesting attribute can have scriptlet expressions asa value, i.e - * the value of the attribute may be dynamically calculatedat request time, as - * opposed to a static value determined at translationtime. (optional) - * Default = false - */ - public boolean isRtExprValue() { - return rtExprValue; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRtExprValue(boolean newRtExprValue) { - boolean oldRtExprValue = rtExprValue; - rtExprValue = newRtExprValue; - boolean oldRtExprValueESet = rtExprValueESet; - rtExprValueESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG_ATTRIBUTE__RT_EXPR_VALUE, oldRtExprValue, rtExprValue, !oldRtExprValueESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetRtExprValue() { - boolean oldRtExprValue = rtExprValue; - boolean oldRtExprValueESet = rtExprValueESet; - rtExprValue = RT_EXPR_VALUE_EDEFAULT; - rtExprValueESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, TaglibPackage.JSP_TAG_ATTRIBUTE__RT_EXPR_VALUE, oldRtExprValue, RT_EXPR_VALUE_EDEFAULT, oldRtExprValueESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetRtExprValue() { - return rtExprValueESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isFragment() { - return fragment; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFragment(boolean newFragment) { - boolean oldFragment = fragment; - fragment = newFragment; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG_ATTRIBUTE__FRAGMENT, oldFragment, fragment)); - } - - /** - * @generated This field/method will be replaced during code generation - * The value of the type element describes the Java type of the attributes value. - * For static values (those determined at translation time) the type is always - * java.lang.String. - */ - public JavaClass getType() { - if (type != null && type.eIsProxy()) { - JavaClass oldType = type; - type = (JavaClass)eResolveProxy((InternalEObject)type); - if (type != oldType) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaglibPackage.JSP_TAG_ATTRIBUTE__TYPE, oldType, type)); - } - } - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetType() { - return type; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setType(JavaClass newType) { - JavaClass oldType = type; - type = newType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG_ATTRIBUTE__TYPE, oldType, type)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, TaglibPackage.JSP_TAG_ATTRIBUTE__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case TaglibPackage.JSP_TAG_ATTRIBUTE__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_TAG_ATTRIBUTE__NAME: - return getName(); - case TaglibPackage.JSP_TAG_ATTRIBUTE__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case TaglibPackage.JSP_TAG_ATTRIBUTE__RT_EXPR_VALUE: - return isRtExprValue() ? Boolean.TRUE : Boolean.FALSE; - case TaglibPackage.JSP_TAG_ATTRIBUTE__FRAGMENT: - return isFragment() ? Boolean.TRUE : Boolean.FALSE; - case TaglibPackage.JSP_TAG_ATTRIBUTE__TYPE: - if (resolve) return getType(); - return basicGetType(); - case TaglibPackage.JSP_TAG_ATTRIBUTE__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_TAG_ATTRIBUTE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case TaglibPackage.JSP_TAG_ATTRIBUTE__REQUIRED: - return isSetRequired(); - case TaglibPackage.JSP_TAG_ATTRIBUTE__RT_EXPR_VALUE: - return isSetRtExprValue(); - case TaglibPackage.JSP_TAG_ATTRIBUTE__FRAGMENT: - return fragment != FRAGMENT_EDEFAULT; - case TaglibPackage.JSP_TAG_ATTRIBUTE__TYPE: - return type != null; - case TaglibPackage.JSP_TAG_ATTRIBUTE__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_TAG_ATTRIBUTE__NAME: - setName((String)newValue); - return; - case TaglibPackage.JSP_TAG_ATTRIBUTE__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case TaglibPackage.JSP_TAG_ATTRIBUTE__RT_EXPR_VALUE: - setRtExprValue(((Boolean)newValue).booleanValue()); - return; - case TaglibPackage.JSP_TAG_ATTRIBUTE__FRAGMENT: - setFragment(((Boolean)newValue).booleanValue()); - return; - case TaglibPackage.JSP_TAG_ATTRIBUTE__TYPE: - setType((JavaClass)newValue); - return; - case TaglibPackage.JSP_TAG_ATTRIBUTE__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_TAG_ATTRIBUTE__NAME: - setName(NAME_EDEFAULT); - return; - case TaglibPackage.JSP_TAG_ATTRIBUTE__REQUIRED: - unsetRequired(); - return; - case TaglibPackage.JSP_TAG_ATTRIBUTE__RT_EXPR_VALUE: - unsetRtExprValue(); - return; - case TaglibPackage.JSP_TAG_ATTRIBUTE__FRAGMENT: - setFragment(FRAGMENT_EDEFAULT); - return; - case TaglibPackage.JSP_TAG_ATTRIBUTE__TYPE: - setType((JavaClass)null); - return; - case TaglibPackage.JSP_TAG_ATTRIBUTE__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(", required: "); - if (requiredESet) result.append(required); else result.append("<unset>"); - result.append(", rtExprValue: "); - if (rtExprValueESet) result.append(rtExprValue); else result.append("<unset>"); - result.append(", fragment: "); - result.append(fragment); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/JSPTagImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/JSPTagImpl.java deleted file mode 100644 index 1a440fbf0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/JSPTagImpl.java +++ /dev/null @@ -1,599 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl; -import org.eclipse.jst.j2ee.taglib.internal.BodyContentType; -import org.eclipse.jst.j2ee.taglib.internal.JSPTag; -import org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute; -import org.eclipse.jst.j2ee.taglib.internal.JSPVariable; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; - - -/** - * The tag element defines an action in this tag library. The tag element has one attribute, id. - * The tag element may have several subelements defining: - * name -- The unique action name - * tag-class -- The tag handler class implementing javax.servlet.jsp.tagext.Tag - * tei-class -- An optional subclass of javax.servlet.jsp.tagext.TagExtraInfo - * body-content -- The body content type - * display-name -- A short name that is intended to be displayed by tools - * small-icon -- Optional small-icon that can be used by tools - * large-icon -- Optional large-icon that can be used by tools - * description -- Optional tag-specific information - * variable -- Optional scripting variable information - * attribute -- All attributes of this action - * example -- Optional informal description of an example of a use of this action. - - */ -public class JSPTagImpl extends DescriptionGroupImpl implements JSPTag{ - - /** - * The default value of the '{@link #getBodyContent() <em>Body Content</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getBodyContent() - * @generated - * @ordered - */ - protected static final BodyContentType BODY_CONTENT_EDEFAULT = BodyContentType.TAGDEPENDENT_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected BodyContentType bodyContent = BODY_CONTENT_EDEFAULT; - /** - * This is true if the Body Content attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean bodyContentESet = false; - - /** - * The default value of the '{@link #getExample() <em>Example</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExample() - * @generated - * @ordered - */ - protected static final String EXAMPLE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String example = EXAMPLE_EDEFAULT; - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #isDynamicAttributes() <em>Dynamic Attributes</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isDynamicAttributes() - * @generated - * @ordered - */ - protected static final boolean DYNAMIC_ATTRIBUTES_EDEFAULT = false; - - /** - * The cached value of the '{@link #isDynamicAttributes() <em>Dynamic Attributes</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isDynamicAttributes() - * @generated - * @ordered - */ - protected boolean dynamicAttributes = DYNAMIC_ATTRIBUTES_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList attributes = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList variables = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass tagClass = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass teiClass = null; - public JSPTagImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return TaglibPackage.eINSTANCE.getJSPTag(); - } - - /** - * @generated This field/method will be replaced during code generation - * Provides a hint as to the content of the body of this tag. Primarily intended - * for use by page composition tools.There are currently three values specified: - * - * tagdependent - The body of the tag is interpreted by the tag implementation - * itself, and is most likely in a different "langage", e.g embedded SQL - * statements. - * - * JSP - The body of the tag contains nested JSP syntax - * - * empty - The body must be emptyThe default (if not defined) is JSP#PCDATA ::= - * tagdependent | JSP | empty - */ - public BodyContentType getBodyContent() { - return bodyContent; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setBodyContent(BodyContentType newBodyContent) { - BodyContentType oldBodyContent = bodyContent; - bodyContent = newBodyContent == null ? BODY_CONTENT_EDEFAULT : newBodyContent; - boolean oldBodyContentESet = bodyContentESet; - bodyContentESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG__BODY_CONTENT, oldBodyContent, bodyContent, !oldBodyContentESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetBodyContent() { - BodyContentType oldBodyContent = bodyContent; - boolean oldBodyContentESet = bodyContentESet; - bodyContent = BODY_CONTENT_EDEFAULT; - bodyContentESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, TaglibPackage.JSP_TAG__BODY_CONTENT, oldBodyContent, BODY_CONTENT_EDEFAULT, oldBodyContentESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetBodyContent() { - return bodyContentESet; - } - - /** - * @generated This field/method will be replaced during code generation - * The example element provides an informal description of an example of the use - * of a tag. - */ - public String getExample() { - return example; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setExample(String newExample) { - String oldExample = example; - example = newExample; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG__EXAMPLE, oldExample, example)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isDynamicAttributes() { - return dynamicAttributes; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDynamicAttributes(boolean newDynamicAttributes) { - boolean oldDynamicAttributes = dynamicAttributes; - dynamicAttributes = newDynamicAttributes; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG__DYNAMIC_ATTRIBUTES, oldDynamicAttributes, dynamicAttributes)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getAttributes() { - if (attributes == null) { - attributes = new EObjectContainmentEList(JSPTagAttribute.class, this, TaglibPackage.JSP_TAG__ATTRIBUTES); - } - return attributes; - } - - /** - * @generated This field/method will be replaced during code generation - * The variable element provides information on the scripting variables defined by - * this tag. - * It is a (translation time) error for an action that has one or more variable - * subelements to have a TagExtraInfo class that returns a non-null object. - * The subelements of variable are of the form: - * name-given -- The variable name as a constant - * name-from-attribute -- The name of an attribute whose (translation time) value - * will give the name of the variable. One of name-given or namefrom-attribute is - * required. - * variable-class -- Name of the class of the variable. java.lang.String is - * default. - * declare -- Whether the variable is declared or not. True is the default. - * scope -- The scope of the scripting variable defined. NESTED is default. - - */ - public EList getVariables() { - if (variables == null) { - variables = new EObjectContainmentEList(JSPVariable.class, this, TaglibPackage.JSP_TAG__VARIABLES); - } - return variables; - } - - /** - * @generated This field/method will be replaced during code generation - * The tag-class element indicates the subclass of javax.serlvet.jsp.tagext.Tag - * that implements the request time semantics for this tag. This element is - * required. - * @regexp fully qualified Java class name - - */ - public JavaClass getTagClass() { - if (tagClass != null && tagClass.eIsProxy()) { - JavaClass oldTagClass = tagClass; - tagClass = (JavaClass)eResolveProxy((InternalEObject)tagClass); - if (tagClass != oldTagClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaglibPackage.JSP_TAG__TAG_CLASS, oldTagClass, tagClass)); - } - } - return tagClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetTagClass() { - return tagClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setTagClass(JavaClass newTagClass) { - JavaClass oldTagClass = tagClass; - tagClass = newTagClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG__TAG_CLASS, oldTagClass, tagClass)); - } - - /** - * @generated This field/method will be replaced during code generation - * The tei-class element indicates the subclass of - * javax.servlet.jsp.tagext.TagExtraInfo for this tag. The class is instantiated - * at translation time. This element is optional. - * @regexp fully qualified Java class name - */ - public JavaClass getTeiClass() { - if (teiClass != null && teiClass.eIsProxy()) { - JavaClass oldTeiClass = teiClass; - teiClass = (JavaClass)eResolveProxy((InternalEObject)teiClass); - if (teiClass != oldTeiClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaglibPackage.JSP_TAG__TEI_CLASS, oldTeiClass, teiClass)); - } - } - return teiClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetTeiClass() { - return teiClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setTeiClass(JavaClass newTeiClass) { - JavaClass oldTeiClass = teiClass; - teiClass = newTeiClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_TAG__TEI_CLASS, oldTeiClass, teiClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case TaglibPackage.JSP_TAG__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case TaglibPackage.JSP_TAG__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case TaglibPackage.JSP_TAG__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case TaglibPackage.JSP_TAG__ATTRIBUTES: - return ((InternalEList)getAttributes()).basicRemove(otherEnd, msgs); - case TaglibPackage.JSP_TAG__VARIABLES: - return ((InternalEList)getVariables()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_TAG__ICONS: - return getIcons(); - case TaglibPackage.JSP_TAG__DISPLAY_NAMES: - return getDisplayNames(); - case TaglibPackage.JSP_TAG__DESCRIPTIONS: - return getDescriptions(); - case TaglibPackage.JSP_TAG__BODY_CONTENT: - return getBodyContent(); - case TaglibPackage.JSP_TAG__EXAMPLE: - return getExample(); - case TaglibPackage.JSP_TAG__NAME: - return getName(); - case TaglibPackage.JSP_TAG__DYNAMIC_ATTRIBUTES: - return isDynamicAttributes() ? Boolean.TRUE : Boolean.FALSE; - case TaglibPackage.JSP_TAG__ATTRIBUTES: - return getAttributes(); - case TaglibPackage.JSP_TAG__VARIABLES: - return getVariables(); - case TaglibPackage.JSP_TAG__TAG_CLASS: - if (resolve) return getTagClass(); - return basicGetTagClass(); - case TaglibPackage.JSP_TAG__TEI_CLASS: - if (resolve) return getTeiClass(); - return basicGetTeiClass(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_TAG__ICONS: - return icons != null && !icons.isEmpty(); - case TaglibPackage.JSP_TAG__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case TaglibPackage.JSP_TAG__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case TaglibPackage.JSP_TAG__BODY_CONTENT: - return isSetBodyContent(); - case TaglibPackage.JSP_TAG__EXAMPLE: - return EXAMPLE_EDEFAULT == null ? example != null : !EXAMPLE_EDEFAULT.equals(example); - case TaglibPackage.JSP_TAG__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case TaglibPackage.JSP_TAG__DYNAMIC_ATTRIBUTES: - return dynamicAttributes != DYNAMIC_ATTRIBUTES_EDEFAULT; - case TaglibPackage.JSP_TAG__ATTRIBUTES: - return attributes != null && !attributes.isEmpty(); - case TaglibPackage.JSP_TAG__VARIABLES: - return variables != null && !variables.isEmpty(); - case TaglibPackage.JSP_TAG__TAG_CLASS: - return tagClass != null; - case TaglibPackage.JSP_TAG__TEI_CLASS: - return teiClass != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_TAG__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case TaglibPackage.JSP_TAG__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case TaglibPackage.JSP_TAG__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case TaglibPackage.JSP_TAG__BODY_CONTENT: - setBodyContent((BodyContentType)newValue); - return; - case TaglibPackage.JSP_TAG__EXAMPLE: - setExample((String)newValue); - return; - case TaglibPackage.JSP_TAG__NAME: - setName((String)newValue); - return; - case TaglibPackage.JSP_TAG__DYNAMIC_ATTRIBUTES: - setDynamicAttributes(((Boolean)newValue).booleanValue()); - return; - case TaglibPackage.JSP_TAG__ATTRIBUTES: - getAttributes().clear(); - getAttributes().addAll((Collection)newValue); - return; - case TaglibPackage.JSP_TAG__VARIABLES: - getVariables().clear(); - getVariables().addAll((Collection)newValue); - return; - case TaglibPackage.JSP_TAG__TAG_CLASS: - setTagClass((JavaClass)newValue); - return; - case TaglibPackage.JSP_TAG__TEI_CLASS: - setTeiClass((JavaClass)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_TAG__ICONS: - getIcons().clear(); - return; - case TaglibPackage.JSP_TAG__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case TaglibPackage.JSP_TAG__DESCRIPTIONS: - getDescriptions().clear(); - return; - case TaglibPackage.JSP_TAG__BODY_CONTENT: - unsetBodyContent(); - return; - case TaglibPackage.JSP_TAG__EXAMPLE: - setExample(EXAMPLE_EDEFAULT); - return; - case TaglibPackage.JSP_TAG__NAME: - setName(NAME_EDEFAULT); - return; - case TaglibPackage.JSP_TAG__DYNAMIC_ATTRIBUTES: - setDynamicAttributes(DYNAMIC_ATTRIBUTES_EDEFAULT); - return; - case TaglibPackage.JSP_TAG__ATTRIBUTES: - getAttributes().clear(); - return; - case TaglibPackage.JSP_TAG__VARIABLES: - getVariables().clear(); - return; - case TaglibPackage.JSP_TAG__TAG_CLASS: - setTagClass((JavaClass)null); - return; - case TaglibPackage.JSP_TAG__TEI_CLASS: - setTeiClass((JavaClass)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (bodyContent: "); - if (bodyContentESet) result.append(bodyContent); else result.append("<unset>"); - result.append(", example: "); - result.append(example); - result.append(", name: "); - result.append(name); - result.append(", dynamicAttributes: "); - result.append(dynamicAttributes); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/JSPVariableImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/JSPVariableImpl.java deleted file mode 100644 index c416fe815..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/JSPVariableImpl.java +++ /dev/null @@ -1,397 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.taglib.internal.JSPScriptingVariableScope; -import org.eclipse.jst.j2ee.taglib.internal.JSPVariable; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; - - -/** - * @generated - */ -public class JSPVariableImpl extends EObjectImpl implements JSPVariable{ - - /** - * The default value of the '{@link #getNameGiven() <em>Name Given</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getNameGiven() - * @generated - * @ordered - */ - protected static final String NAME_GIVEN_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String nameGiven = NAME_GIVEN_EDEFAULT; - /** - * The default value of the '{@link #getNameFromAttribute() <em>Name From Attribute</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getNameFromAttribute() - * @generated - * @ordered - */ - protected static final String NAME_FROM_ATTRIBUTE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String nameFromAttribute = NAME_FROM_ATTRIBUTE_EDEFAULT; - /** - * The default value of the '{@link #isDeclare() <em>Declare</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isDeclare() - * @generated - * @ordered - */ - protected static final boolean DECLARE_EDEFAULT = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected boolean declare = DECLARE_EDEFAULT; - /** - * The default value of the '{@link #getScope() <em>Scope</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getScope() - * @generated - * @ordered - */ - protected static final JSPScriptingVariableScope SCOPE_EDEFAULT = JSPScriptingVariableScope.NESTED_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected JSPScriptingVariableScope scope = SCOPE_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass variableClass = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public JSPVariableImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return TaglibPackage.eINSTANCE.getJSPVariable(); - } - - /** - * @generated This field/method will be replaced during code generation - * The name-given element provides the name for the scripting variable. - * - * One of name-given or name-from-attribute is required. - */ - public String getNameGiven() { - return nameGiven; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setNameGiven(String newNameGiven) { - String oldNameGiven = nameGiven; - nameGiven = newNameGiven; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_VARIABLE__NAME_GIVEN, oldNameGiven, nameGiven)); - } - - /** - * @generated This field/method will be replaced during code generation - * The name of an attribute whose (translation-time) value will give the name of - * the variable. - */ - public String getNameFromAttribute() { - return nameFromAttribute; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setNameFromAttribute(String newNameFromAttribute) { - String oldNameFromAttribute = nameFromAttribute; - nameFromAttribute = newNameFromAttribute; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_VARIABLE__NAME_FROM_ATTRIBUTE, oldNameFromAttribute, nameFromAttribute)); - } - - /** - * @generated This field/method will be replaced during code generation - * The value of the declare element indicates whether the scripting variable is to - * be defined or not. See TagExtraInfo for details. - * This element is optional and is the default is true. - - */ - public boolean isDeclare() { - return declare; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDeclare(boolean newDeclare) { - boolean oldDeclare = declare; - declare = newDeclare; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_VARIABLE__DECLARE, oldDeclare, declare)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public JSPScriptingVariableScope getScope() { - return scope; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setScope(JSPScriptingVariableScope newScope) { - JSPScriptingVariableScope oldScope = scope; - scope = newScope == null ? SCOPE_EDEFAULT : newScope; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_VARIABLE__SCOPE, oldScope, scope)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public JavaClass getVariableClass() { - if (variableClass != null && variableClass.eIsProxy()) { - JavaClass oldVariableClass = variableClass; - variableClass = (JavaClass)eResolveProxy((InternalEObject)variableClass); - if (variableClass != oldVariableClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaglibPackage.JSP_VARIABLE__VARIABLE_CLASS, oldVariableClass, variableClass)); - } - } - return variableClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetVariableClass() { - return variableClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setVariableClass(JavaClass newVariableClass) { - JavaClass oldVariableClass = variableClass; - variableClass = newVariableClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.JSP_VARIABLE__VARIABLE_CLASS, oldVariableClass, variableClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, TaglibPackage.JSP_VARIABLE__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case TaglibPackage.JSP_VARIABLE__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_VARIABLE__NAME_GIVEN: - return getNameGiven(); - case TaglibPackage.JSP_VARIABLE__NAME_FROM_ATTRIBUTE: - return getNameFromAttribute(); - case TaglibPackage.JSP_VARIABLE__DECLARE: - return isDeclare() ? Boolean.TRUE : Boolean.FALSE; - case TaglibPackage.JSP_VARIABLE__SCOPE: - return getScope(); - case TaglibPackage.JSP_VARIABLE__VARIABLE_CLASS: - if (resolve) return getVariableClass(); - return basicGetVariableClass(); - case TaglibPackage.JSP_VARIABLE__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_VARIABLE__NAME_GIVEN: - return NAME_GIVEN_EDEFAULT == null ? nameGiven != null : !NAME_GIVEN_EDEFAULT.equals(nameGiven); - case TaglibPackage.JSP_VARIABLE__NAME_FROM_ATTRIBUTE: - return NAME_FROM_ATTRIBUTE_EDEFAULT == null ? nameFromAttribute != null : !NAME_FROM_ATTRIBUTE_EDEFAULT.equals(nameFromAttribute); - case TaglibPackage.JSP_VARIABLE__DECLARE: - return declare != DECLARE_EDEFAULT; - case TaglibPackage.JSP_VARIABLE__SCOPE: - return scope != SCOPE_EDEFAULT; - case TaglibPackage.JSP_VARIABLE__VARIABLE_CLASS: - return variableClass != null; - case TaglibPackage.JSP_VARIABLE__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_VARIABLE__NAME_GIVEN: - setNameGiven((String)newValue); - return; - case TaglibPackage.JSP_VARIABLE__NAME_FROM_ATTRIBUTE: - setNameFromAttribute((String)newValue); - return; - case TaglibPackage.JSP_VARIABLE__DECLARE: - setDeclare(((Boolean)newValue).booleanValue()); - return; - case TaglibPackage.JSP_VARIABLE__SCOPE: - setScope((JSPScriptingVariableScope)newValue); - return; - case TaglibPackage.JSP_VARIABLE__VARIABLE_CLASS: - setVariableClass((JavaClass)newValue); - return; - case TaglibPackage.JSP_VARIABLE__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.JSP_VARIABLE__NAME_GIVEN: - setNameGiven(NAME_GIVEN_EDEFAULT); - return; - case TaglibPackage.JSP_VARIABLE__NAME_FROM_ATTRIBUTE: - setNameFromAttribute(NAME_FROM_ATTRIBUTE_EDEFAULT); - return; - case TaglibPackage.JSP_VARIABLE__DECLARE: - setDeclare(DECLARE_EDEFAULT); - return; - case TaglibPackage.JSP_VARIABLE__SCOPE: - setScope(SCOPE_EDEFAULT); - return; - case TaglibPackage.JSP_VARIABLE__VARIABLE_CLASS: - setVariableClass((JavaClass)null); - return; - case TaglibPackage.JSP_VARIABLE__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (nameGiven: "); - result.append(nameGiven); - result.append(", nameFromAttribute: "); - result.append(nameFromAttribute); - result.append(", declare: "); - result.append(declare); - result.append(", scope: "); - result.append(scope); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TagFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TagFileImpl.java deleted file mode 100644 index 4b1956ba9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TagFileImpl.java +++ /dev/null @@ -1,370 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl; -import org.eclipse.jst.j2ee.taglib.internal.TagFile; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.TldExtension; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Tag File</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.TagFileImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.TagFileImpl#getPath <em>Path</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.TagFileImpl#getExample <em>Example</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.TagFileImpl#getTagExtensions <em>Tag Extensions</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class TagFileImpl extends DescriptionGroupImpl implements TagFile { - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getPath() <em>Path</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPath() - * @generated - * @ordered - */ - protected static final String PATH_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPath() <em>Path</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPath() - * @generated - * @ordered - */ - protected String path = PATH_EDEFAULT; - - /** - * The default value of the '{@link #getExample() <em>Example</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExample() - * @generated - * @ordered - */ - protected static final String EXAMPLE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getExample() <em>Example</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExample() - * @generated - * @ordered - */ - protected String example = EXAMPLE_EDEFAULT; - - /** - * The cached value of the '{@link #getTagExtensions() <em>Tag Extensions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTagExtensions() - * @generated - * @ordered - */ - protected EList tagExtensions = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected TagFileImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return TaglibPackage.eINSTANCE.getTagFile(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.TAG_FILE__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getPath() { - return path; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPath(String newPath) { - String oldPath = path; - path = newPath; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.TAG_FILE__PATH, oldPath, path)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getExample() { - return example; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setExample(String newExample) { - String oldExample = example; - example = newExample; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.TAG_FILE__EXAMPLE, oldExample, example)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getTagExtensions() { - if (tagExtensions == null) { - tagExtensions = new EObjectContainmentEList(TldExtension.class, this, TaglibPackage.TAG_FILE__TAG_EXTENSIONS); - } - return tagExtensions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case TaglibPackage.TAG_FILE__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case TaglibPackage.TAG_FILE__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case TaglibPackage.TAG_FILE__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case TaglibPackage.TAG_FILE__TAG_EXTENSIONS: - return ((InternalEList)getTagExtensions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TAG_FILE__ICONS: - return getIcons(); - case TaglibPackage.TAG_FILE__DISPLAY_NAMES: - return getDisplayNames(); - case TaglibPackage.TAG_FILE__DESCRIPTIONS: - return getDescriptions(); - case TaglibPackage.TAG_FILE__NAME: - return getName(); - case TaglibPackage.TAG_FILE__PATH: - return getPath(); - case TaglibPackage.TAG_FILE__EXAMPLE: - return getExample(); - case TaglibPackage.TAG_FILE__TAG_EXTENSIONS: - return getTagExtensions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TAG_FILE__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case TaglibPackage.TAG_FILE__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case TaglibPackage.TAG_FILE__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case TaglibPackage.TAG_FILE__NAME: - setName((String)newValue); - return; - case TaglibPackage.TAG_FILE__PATH: - setPath((String)newValue); - return; - case TaglibPackage.TAG_FILE__EXAMPLE: - setExample((String)newValue); - return; - case TaglibPackage.TAG_FILE__TAG_EXTENSIONS: - getTagExtensions().clear(); - getTagExtensions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TAG_FILE__ICONS: - getIcons().clear(); - return; - case TaglibPackage.TAG_FILE__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case TaglibPackage.TAG_FILE__DESCRIPTIONS: - getDescriptions().clear(); - return; - case TaglibPackage.TAG_FILE__NAME: - setName(NAME_EDEFAULT); - return; - case TaglibPackage.TAG_FILE__PATH: - setPath(PATH_EDEFAULT); - return; - case TaglibPackage.TAG_FILE__EXAMPLE: - setExample(EXAMPLE_EDEFAULT); - return; - case TaglibPackage.TAG_FILE__TAG_EXTENSIONS: - getTagExtensions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TAG_FILE__ICONS: - return icons != null && !icons.isEmpty(); - case TaglibPackage.TAG_FILE__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case TaglibPackage.TAG_FILE__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case TaglibPackage.TAG_FILE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case TaglibPackage.TAG_FILE__PATH: - return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); - case TaglibPackage.TAG_FILE__EXAMPLE: - return EXAMPLE_EDEFAULT == null ? example != null : !EXAMPLE_EDEFAULT.equals(example); - case TaglibPackage.TAG_FILE__TAG_EXTENSIONS: - return tagExtensions != null && !tagExtensions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(", path: "); - result.append(path); - result.append(", example: "); - result.append(example); - result.append(')'); - return result.toString(); - } - -} //TagFileImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TagLibImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TagLibImpl.java deleted file mode 100644 index c3161223f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TagLibImpl.java +++ /dev/null @@ -1,594 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Listener; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; -import org.eclipse.jst.j2ee.taglib.internal.Function; -import org.eclipse.jst.j2ee.taglib.internal.JSPTag; -import org.eclipse.jst.j2ee.taglib.internal.TagLib; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.TldExtension; -import org.eclipse.jst.j2ee.taglib.internal.Validator; - - -/** - * The taglib tag is the document root. - - */ -public class TagLibImpl extends CompatibilityDescriptionGroupImpl implements TagLib{ - - /** - * The default value of the '{@link #getTagLibVersion() <em>Tag Lib Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTagLibVersion() - * @generated - * @ordered - */ - protected static final String TAG_LIB_VERSION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String tagLibVersion = TAG_LIB_VERSION_EDEFAULT; - /** - * The default value of the '{@link #getJspVersion() <em>Jsp Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJspVersion() - * @generated - * @ordered - */ - protected static final String JSP_VERSION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String jspVersion = JSP_VERSION_EDEFAULT; - /** - * The default value of the '{@link #getShortName() <em>Short Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getShortName() - * @generated - * @ordered - */ - protected static final String SHORT_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String shortName = SHORT_NAME_EDEFAULT; - /** - * The default value of the '{@link #getUri() <em>Uri</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUri() - * @generated - * @ordered - */ - protected static final String URI_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String uri = URI_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList tags = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected Validator validator = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList listeners = null; - /** - * The cached value of the '{@link #getFunctions() <em>Functions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFunctions() - * @generated - * @ordered - */ - protected EList functions = null; - - /** - * The cached value of the '{@link #getTaglibExtensions() <em>Taglib Extensions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTaglibExtensions() - * @generated - * @ordered - */ - protected EList taglibExtensions = null; - - public TagLibImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return TaglibPackage.eINSTANCE.getTagLib(); - } - - /** - * @generated This field/method will be replaced during code generation - * Describes this version number of the tag library (dewey decimal). - * @regexp [0-9]*{ "."[0-9] }0..3 - */ - public String getTagLibVersion() { - return tagLibVersion; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setTagLibVersion(String newTagLibVersion) { - String oldTagLibVersion = tagLibVersion; - tagLibVersion = newTagLibVersion; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.TAG_LIB__TAG_LIB_VERSION, oldTagLibVersion, tagLibVersion)); - } - - /** - * @generated This field/method will be replaced during code generation - * Describes the JSP version (number) this tag library requires in order to - * function (dewey decimal). Default is 1.2 - * @regexp [0-9]*{ "."[0-9] }0..3 - */ - public String getJspVersion() { - return jspVersion; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setJspVersion(String newJspVersion) { - String oldJspVersion = jspVersion; - jspVersion = newJspVersion; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.TAG_LIB__JSP_VERSION, oldJspVersion, jspVersion)); - } - - /** - * @generated This field/method will be replaced during code generation - * The value of the short-name element is a name that could be used by a JSP - * authoring tool to create names with a mnemonic value; for example, it may be - * used as the prefered prefix value in taglib directives. Do not use white space, - * and do not start with digits or underscore. - */ - public String getShortName() { - return shortName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setShortName(String newShortName) { - String oldShortName = shortName; - shortName = newShortName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.TAG_LIB__SHORT_NAME, oldShortName, shortName)); - } - - /** - * @generated This field/method will be replaced during code generation - * The value of the uri element is a public URI that uniquely identifies the exact - * semantics of this taglibrary. - */ - public String getUri() { - return uri; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setUri(String newUri) { - String oldUri = uri; - uri = newUri; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.TAG_LIB__URI, oldUri, uri)); - } - - /** - * - */ - public void setDisplayName(String newDisplayName) { - super.setDisplayName(displayName); - } - - /** - This returns the module version id. Compare with J2EEVersionConstants to determine module level - */ - public int getVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) throw new IllegalStateException(); - return res.getModuleVersionID(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getTags() { - if (tags == null) { - tags = new EObjectContainmentEList(JSPTag.class, this, TaglibPackage.TAG_LIB__TAGS); - } - return tags; - } - - /** - * @generated This field/method will be replaced during code generation - * The validator element provides information on an optional validator that can be - * used to validate the conformance of a JSP page to using this tag library. - - */ - public Validator getValidator() { - return validator; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetValidator(Validator newValidator, NotificationChain msgs) { - Validator oldValidator = validator; - validator = newValidator; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaglibPackage.TAG_LIB__VALIDATOR, oldValidator, newValidator); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setValidator(Validator newValidator) { - if (newValidator != validator) { - NotificationChain msgs = null; - if (validator != null) - msgs = ((InternalEObject)validator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaglibPackage.TAG_LIB__VALIDATOR, null, msgs); - if (newValidator != null) - msgs = ((InternalEObject)newValidator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TaglibPackage.TAG_LIB__VALIDATOR, null, msgs); - msgs = basicSetValidator(newValidator, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.TAG_LIB__VALIDATOR, newValidator, newValidator)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getListeners() { - if (listeners == null) { - listeners = new EObjectContainmentEList(Listener.class, this, TaglibPackage.TAG_LIB__LISTENERS); - } - return listeners; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getFunctions() { - if (functions == null) { - functions = new EObjectContainmentEList(Function.class, this, TaglibPackage.TAG_LIB__FUNCTIONS); - } - return functions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getTaglibExtensions() { - if (taglibExtensions == null) { - taglibExtensions = new EObjectContainmentEList(TldExtension.class, this, TaglibPackage.TAG_LIB__TAGLIB_EXTENSIONS); - } - return taglibExtensions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case TaglibPackage.TAG_LIB__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case TaglibPackage.TAG_LIB__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case TaglibPackage.TAG_LIB__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case TaglibPackage.TAG_LIB__TAGS: - return ((InternalEList)getTags()).basicRemove(otherEnd, msgs); - case TaglibPackage.TAG_LIB__VALIDATOR: - return basicSetValidator(null, msgs); - case TaglibPackage.TAG_LIB__LISTENERS: - return ((InternalEList)getListeners()).basicRemove(otherEnd, msgs); - case TaglibPackage.TAG_LIB__FUNCTIONS: - return ((InternalEList)getFunctions()).basicRemove(otherEnd, msgs); - case TaglibPackage.TAG_LIB__TAGLIB_EXTENSIONS: - return ((InternalEList)getTaglibExtensions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TAG_LIB__ICONS: - return getIcons(); - case TaglibPackage.TAG_LIB__DISPLAY_NAMES: - return getDisplayNames(); - case TaglibPackage.TAG_LIB__DESCRIPTIONS: - return getDescriptions(); - case TaglibPackage.TAG_LIB__SMALL_ICON: - return getSmallIcon(); - case TaglibPackage.TAG_LIB__LARGE_ICON: - return getLargeIcon(); - case TaglibPackage.TAG_LIB__DESCRIPTION: - return getDescription(); - case TaglibPackage.TAG_LIB__DISPLAY_NAME: - return getDisplayName(); - case TaglibPackage.TAG_LIB__TAG_LIB_VERSION: - return getTagLibVersion(); - case TaglibPackage.TAG_LIB__JSP_VERSION: - return getJspVersion(); - case TaglibPackage.TAG_LIB__SHORT_NAME: - return getShortName(); - case TaglibPackage.TAG_LIB__URI: - return getUri(); - case TaglibPackage.TAG_LIB__TAGS: - return getTags(); - case TaglibPackage.TAG_LIB__VALIDATOR: - return getValidator(); - case TaglibPackage.TAG_LIB__LISTENERS: - return getListeners(); - case TaglibPackage.TAG_LIB__FUNCTIONS: - return getFunctions(); - case TaglibPackage.TAG_LIB__TAGLIB_EXTENSIONS: - return getTaglibExtensions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TAG_LIB__ICONS: - return icons != null && !icons.isEmpty(); - case TaglibPackage.TAG_LIB__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case TaglibPackage.TAG_LIB__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case TaglibPackage.TAG_LIB__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case TaglibPackage.TAG_LIB__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case TaglibPackage.TAG_LIB__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case TaglibPackage.TAG_LIB__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case TaglibPackage.TAG_LIB__TAG_LIB_VERSION: - return TAG_LIB_VERSION_EDEFAULT == null ? tagLibVersion != null : !TAG_LIB_VERSION_EDEFAULT.equals(tagLibVersion); - case TaglibPackage.TAG_LIB__JSP_VERSION: - return JSP_VERSION_EDEFAULT == null ? jspVersion != null : !JSP_VERSION_EDEFAULT.equals(jspVersion); - case TaglibPackage.TAG_LIB__SHORT_NAME: - return SHORT_NAME_EDEFAULT == null ? shortName != null : !SHORT_NAME_EDEFAULT.equals(shortName); - case TaglibPackage.TAG_LIB__URI: - return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); - case TaglibPackage.TAG_LIB__TAGS: - return tags != null && !tags.isEmpty(); - case TaglibPackage.TAG_LIB__VALIDATOR: - return validator != null; - case TaglibPackage.TAG_LIB__LISTENERS: - return listeners != null && !listeners.isEmpty(); - case TaglibPackage.TAG_LIB__FUNCTIONS: - return functions != null && !functions.isEmpty(); - case TaglibPackage.TAG_LIB__TAGLIB_EXTENSIONS: - return taglibExtensions != null && !taglibExtensions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TAG_LIB__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case TaglibPackage.TAG_LIB__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case TaglibPackage.TAG_LIB__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case TaglibPackage.TAG_LIB__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case TaglibPackage.TAG_LIB__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case TaglibPackage.TAG_LIB__DESCRIPTION: - setDescription((String)newValue); - return; - case TaglibPackage.TAG_LIB__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case TaglibPackage.TAG_LIB__TAG_LIB_VERSION: - setTagLibVersion((String)newValue); - return; - case TaglibPackage.TAG_LIB__JSP_VERSION: - setJspVersion((String)newValue); - return; - case TaglibPackage.TAG_LIB__SHORT_NAME: - setShortName((String)newValue); - return; - case TaglibPackage.TAG_LIB__URI: - setUri((String)newValue); - return; - case TaglibPackage.TAG_LIB__TAGS: - getTags().clear(); - getTags().addAll((Collection)newValue); - return; - case TaglibPackage.TAG_LIB__VALIDATOR: - setValidator((Validator)newValue); - return; - case TaglibPackage.TAG_LIB__LISTENERS: - getListeners().clear(); - getListeners().addAll((Collection)newValue); - return; - case TaglibPackage.TAG_LIB__FUNCTIONS: - getFunctions().clear(); - getFunctions().addAll((Collection)newValue); - return; - case TaglibPackage.TAG_LIB__TAGLIB_EXTENSIONS: - getTaglibExtensions().clear(); - getTaglibExtensions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TAG_LIB__ICONS: - getIcons().clear(); - return; - case TaglibPackage.TAG_LIB__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case TaglibPackage.TAG_LIB__DESCRIPTIONS: - getDescriptions().clear(); - return; - case TaglibPackage.TAG_LIB__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case TaglibPackage.TAG_LIB__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case TaglibPackage.TAG_LIB__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case TaglibPackage.TAG_LIB__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case TaglibPackage.TAG_LIB__TAG_LIB_VERSION: - setTagLibVersion(TAG_LIB_VERSION_EDEFAULT); - return; - case TaglibPackage.TAG_LIB__JSP_VERSION: - setJspVersion(JSP_VERSION_EDEFAULT); - return; - case TaglibPackage.TAG_LIB__SHORT_NAME: - setShortName(SHORT_NAME_EDEFAULT); - return; - case TaglibPackage.TAG_LIB__URI: - setUri(URI_EDEFAULT); - return; - case TaglibPackage.TAG_LIB__TAGS: - getTags().clear(); - return; - case TaglibPackage.TAG_LIB__VALIDATOR: - setValidator((Validator)null); - return; - case TaglibPackage.TAG_LIB__LISTENERS: - getListeners().clear(); - return; - case TaglibPackage.TAG_LIB__FUNCTIONS: - getFunctions().clear(); - return; - case TaglibPackage.TAG_LIB__TAGLIB_EXTENSIONS: - getTaglibExtensions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (tagLibVersion: "); - result.append(tagLibVersion); - result.append(", jspVersion: "); - result.append(jspVersion); - result.append(", shortName: "); - result.append(shortName); - result.append(", uri: "); - result.append(uri); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TaglibFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TaglibFactoryImpl.java deleted file mode 100644 index c95ec5318..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TaglibFactoryImpl.java +++ /dev/null @@ -1,190 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.taglib.internal.BodyContentType; -import org.eclipse.jst.j2ee.taglib.internal.Function; -import org.eclipse.jst.j2ee.taglib.internal.JSPScriptingVariableScope; -import org.eclipse.jst.j2ee.taglib.internal.JSPTag; -import org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute; -import org.eclipse.jst.j2ee.taglib.internal.JSPVariable; -import org.eclipse.jst.j2ee.taglib.internal.TagFile; -import org.eclipse.jst.j2ee.taglib.internal.TagLib; -import org.eclipse.jst.j2ee.taglib.internal.TaglibFactory; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.TldExtension; -import org.eclipse.jst.j2ee.taglib.internal.Validator; - -/** - * @generated - */ -public class TaglibFactoryImpl extends EFactoryImpl implements TaglibFactory{ - - public TaglibFactoryImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case TaglibPackage.TAG_LIB: return createTagLib(); - case TaglibPackage.JSP_TAG: return createJSPTag(); - case TaglibPackage.JSP_TAG_ATTRIBUTE: return createJSPTagAttribute(); - case TaglibPackage.VALIDATOR: return createValidator(); - case TaglibPackage.JSP_VARIABLE: return createJSPVariable(); - case TaglibPackage.FUNCTION: return createFunction(); - case TaglibPackage.TAG_FILE: return createTagFile(); - case TaglibPackage.TLD_EXTENSION: return createTldExtension(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case TaglibPackage.BODY_CONTENT_TYPE: { - BodyContentType result = BodyContentType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case TaglibPackage.JSP_SCRIPTING_VARIABLE_SCOPE: { - JSPScriptingVariableScope result = JSPScriptingVariableScope.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case TaglibPackage.BODY_CONTENT_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case TaglibPackage.JSP_SCRIPTING_VARIABLE_SCOPE: - return instanceValue == null ? null : instanceValue.toString(); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - -public static TaglibFactory getActiveFactory() { - return (TaglibFactory) getPackage().getEFactoryInstance(); -} - /** - * @generated This field/method will be replaced during code generation. - */ - public TagLib createTagLib() { - TagLibImpl tagLib = new TagLibImpl(); - return tagLib; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Validator createValidator() { - ValidatorImpl validator = new ValidatorImpl(); - return validator; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public JSPTag createJSPTag() { - JSPTagImpl jspTag = new JSPTagImpl(); - return jspTag; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public JSPTagAttribute createJSPTagAttribute() { - JSPTagAttributeImpl jspTagAttribute = new JSPTagAttributeImpl(); - return jspTagAttribute; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public JSPVariable createJSPVariable() { - JSPVariableImpl jspVariable = new JSPVariableImpl(); - return jspVariable; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Function createFunction() { - FunctionImpl function = new FunctionImpl(); - return function; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TagFile createTagFile() { - TagFileImpl tagFile = new TagFileImpl(); - return tagFile; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TldExtension createTldExtension() { - TldExtensionImpl tldExtension = new TldExtensionImpl(); - return tldExtension; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public TaglibPackage getTaglibPackage() { - return (TaglibPackage)getEPackage(); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public static TaglibPackage getPackage() { - return TaglibPackage.eINSTANCE; - } - -} - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TaglibPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TaglibPackageImpl.java deleted file mode 100644 index 9508daa09..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TaglibPackageImpl.java +++ /dev/null @@ -1,858 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.taglib.internal.BodyContentType; -import org.eclipse.jst.j2ee.taglib.internal.ExtensibleType; -import org.eclipse.jst.j2ee.taglib.internal.Function; -import org.eclipse.jst.j2ee.taglib.internal.JSPScriptingVariableScope; -import org.eclipse.jst.j2ee.taglib.internal.JSPTag; -import org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute; -import org.eclipse.jst.j2ee.taglib.internal.JSPVariable; -import org.eclipse.jst.j2ee.taglib.internal.TagFile; -import org.eclipse.jst.j2ee.taglib.internal.TagLib; -import org.eclipse.jst.j2ee.taglib.internal.TaglibFactory; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.TldExtension; -import org.eclipse.jst.j2ee.taglib.internal.Validator; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -public class TaglibPackageImpl extends EPackageImpl implements TaglibPackage, EPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass tagLibEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass jspTagEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass jspTagAttributeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass validatorEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass jspVariableEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass functionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass tagFileEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass tldExtensionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass extensibleTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum bodyContentTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum jspScriptingVariableScopeEEnum = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - private TaglibPackageImpl() { - super(eNS_URI, TaglibFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - public static TaglibPackage init() { - if (isInited) return (TaglibPackage)EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI); - - // Obtain or create and register package - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new TaglibPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE); - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE); - - // Create package meta-data objects - theTaglibPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theCommonPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - theWscommonPackage.createPackageContents(); - theWsddPackage.createPackageContents(); - - // Initialize created meta-data - theTaglibPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - theWscommonPackage.initializePackageContents(); - theWsddPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theTaglibPackage.freeze(); - - return theTaglibPackage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getTagLib() { - return tagLibEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getTagLib_TagLibVersion() { - return (EAttribute)tagLibEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getTagLib_JspVersion() { - return (EAttribute)tagLibEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getTagLib_ShortName() { - return (EAttribute)tagLibEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getTagLib_Uri() { - return (EAttribute)tagLibEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getTagLib_Tags() { - return (EReference)tagLibEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getTagLib_Validator() { - return (EReference)tagLibEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getTagLib_Listeners() { - return (EReference)tagLibEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getTagLib_Functions() { - return (EReference)tagLibEClass.getEStructuralFeatures().get(7); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getTagLib_TaglibExtensions() { - return (EReference)tagLibEClass.getEStructuralFeatures().get(8); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getValidator() { - return validatorEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getValidator_ValidatorClass() { - return (EReference)validatorEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getValidator_InitParams() { - return (EReference)validatorEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getValidator_Descriptions() { - return (EReference)validatorEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getJSPTag() { - return jspTagEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getJSPTag_BodyContent() { - return (EAttribute)jspTagEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getJSPTag_Example() { - return (EAttribute)jspTagEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJSPTag_Name() { - return (EAttribute)jspTagEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJSPTag_DynamicAttributes() { - return (EAttribute)jspTagEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getJSPTag_Attributes() { - return (EReference)jspTagEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getJSPTag_Variables() { - return (EReference)jspTagEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getJSPTag_TagClass() { - return (EReference)jspTagEClass.getEStructuralFeatures().get(6); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getJSPTag_TeiClass() { - return (EReference)jspTagEClass.getEStructuralFeatures().get(7); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getJSPTagAttribute() { - return jspTagAttributeEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getJSPTagAttribute_Name() { - return (EAttribute)jspTagAttributeEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getJSPTagAttribute_Required() { - return (EAttribute)jspTagAttributeEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getJSPTagAttribute_RtExprValue() { - return (EAttribute)jspTagAttributeEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJSPTagAttribute_Fragment() { - return (EAttribute)jspTagAttributeEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getJSPTagAttribute_Type() { - return (EReference)jspTagAttributeEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJSPTagAttribute_Descriptions() { - return (EReference)jspTagAttributeEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getJSPVariable() { - return jspVariableEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getJSPVariable_NameGiven() { - return (EAttribute)jspVariableEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getJSPVariable_NameFromAttribute() { - return (EAttribute)jspVariableEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getJSPVariable_Declare() { - return (EAttribute)jspVariableEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getJSPVariable_Scope() { - return (EAttribute)jspVariableEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getJSPVariable_VariableClass() { - return (EReference)jspVariableEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJSPVariable_Descriptions() { - return (EReference)jspVariableEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getFunction() { - return functionEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFunction_Name() { - return (EAttribute)functionEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFunction_Signature() { - return (EAttribute)functionEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFunction_Example() { - return (EAttribute)functionEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getFunction_FunctionClass() { - return (EReference)functionEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getFunction_FunctionExtensions() { - return (EReference)functionEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getTagFile() { - return tagFileEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getTagFile_Name() { - return (EAttribute)tagFileEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getTagFile_Path() { - return (EAttribute)tagFileEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getTagFile_Example() { - return (EAttribute)tagFileEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getTagFile_TagExtensions() { - return (EReference)tagFileEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getTldExtension() { - return tldExtensionEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getTldExtension_Namespace() { - return (EAttribute)tldExtensionEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getTldExtension_ExtensionElements() { - return (EReference)tldExtensionEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getExtensibleType() { - return extensibleTypeEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getExtensibleType_Value() { - return (EAttribute)extensibleTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getBodyContentType() { - return bodyContentTypeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getJSPScriptingVariableScope() { - return jspScriptingVariableScopeEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public TaglibFactory getTaglibFactory() { - return (TaglibFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - tagLibEClass = createEClass(TAG_LIB); - createEAttribute(tagLibEClass, TAG_LIB__TAG_LIB_VERSION); - createEAttribute(tagLibEClass, TAG_LIB__JSP_VERSION); - createEAttribute(tagLibEClass, TAG_LIB__SHORT_NAME); - createEAttribute(tagLibEClass, TAG_LIB__URI); - createEReference(tagLibEClass, TAG_LIB__TAGS); - createEReference(tagLibEClass, TAG_LIB__VALIDATOR); - createEReference(tagLibEClass, TAG_LIB__LISTENERS); - createEReference(tagLibEClass, TAG_LIB__FUNCTIONS); - createEReference(tagLibEClass, TAG_LIB__TAGLIB_EXTENSIONS); - - jspTagEClass = createEClass(JSP_TAG); - createEAttribute(jspTagEClass, JSP_TAG__BODY_CONTENT); - createEAttribute(jspTagEClass, JSP_TAG__EXAMPLE); - createEAttribute(jspTagEClass, JSP_TAG__NAME); - createEAttribute(jspTagEClass, JSP_TAG__DYNAMIC_ATTRIBUTES); - createEReference(jspTagEClass, JSP_TAG__ATTRIBUTES); - createEReference(jspTagEClass, JSP_TAG__VARIABLES); - createEReference(jspTagEClass, JSP_TAG__TAG_CLASS); - createEReference(jspTagEClass, JSP_TAG__TEI_CLASS); - - jspTagAttributeEClass = createEClass(JSP_TAG_ATTRIBUTE); - createEAttribute(jspTagAttributeEClass, JSP_TAG_ATTRIBUTE__NAME); - createEAttribute(jspTagAttributeEClass, JSP_TAG_ATTRIBUTE__REQUIRED); - createEAttribute(jspTagAttributeEClass, JSP_TAG_ATTRIBUTE__RT_EXPR_VALUE); - createEAttribute(jspTagAttributeEClass, JSP_TAG_ATTRIBUTE__FRAGMENT); - createEReference(jspTagAttributeEClass, JSP_TAG_ATTRIBUTE__TYPE); - createEReference(jspTagAttributeEClass, JSP_TAG_ATTRIBUTE__DESCRIPTIONS); - - validatorEClass = createEClass(VALIDATOR); - createEReference(validatorEClass, VALIDATOR__VALIDATOR_CLASS); - createEReference(validatorEClass, VALIDATOR__INIT_PARAMS); - createEReference(validatorEClass, VALIDATOR__DESCRIPTIONS); - - jspVariableEClass = createEClass(JSP_VARIABLE); - createEAttribute(jspVariableEClass, JSP_VARIABLE__NAME_GIVEN); - createEAttribute(jspVariableEClass, JSP_VARIABLE__NAME_FROM_ATTRIBUTE); - createEAttribute(jspVariableEClass, JSP_VARIABLE__DECLARE); - createEAttribute(jspVariableEClass, JSP_VARIABLE__SCOPE); - createEReference(jspVariableEClass, JSP_VARIABLE__VARIABLE_CLASS); - createEReference(jspVariableEClass, JSP_VARIABLE__DESCRIPTIONS); - - functionEClass = createEClass(FUNCTION); - createEAttribute(functionEClass, FUNCTION__NAME); - createEAttribute(functionEClass, FUNCTION__SIGNATURE); - createEAttribute(functionEClass, FUNCTION__EXAMPLE); - createEReference(functionEClass, FUNCTION__FUNCTION_CLASS); - createEReference(functionEClass, FUNCTION__FUNCTION_EXTENSIONS); - - tagFileEClass = createEClass(TAG_FILE); - createEAttribute(tagFileEClass, TAG_FILE__NAME); - createEAttribute(tagFileEClass, TAG_FILE__PATH); - createEAttribute(tagFileEClass, TAG_FILE__EXAMPLE); - createEReference(tagFileEClass, TAG_FILE__TAG_EXTENSIONS); - - tldExtensionEClass = createEClass(TLD_EXTENSION); - createEAttribute(tldExtensionEClass, TLD_EXTENSION__NAMESPACE); - createEReference(tldExtensionEClass, TLD_EXTENSION__EXTENSION_ELEMENTS); - - extensibleTypeEClass = createEClass(EXTENSIBLE_TYPE); - createEAttribute(extensibleTypeEClass, EXTENSIBLE_TYPE__VALUE); - - // Create enums - bodyContentTypeEEnum = createEEnum(BODY_CONTENT_TYPE); - jspScriptingVariableScopeEEnum = createEEnum(JSP_SCRIPTING_VARIABLE_SCOPE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - JavaRefPackageImpl theJavaRefPackage = (JavaRefPackageImpl)EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI); - - // Add supertypes to classes - tagLibEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - jspTagEClass.getESuperTypes().add(theCommonPackage.getDescriptionGroup()); - functionEClass.getESuperTypes().add(theCommonPackage.getDescriptionGroup()); - tagFileEClass.getESuperTypes().add(theCommonPackage.getDescriptionGroup()); - - // Initialize classes and features; add operations and parameters - initEClass(tagLibEClass, TagLib.class, "TagLib", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTagLib_TagLibVersion(), ecorePackage.getEString(), "tagLibVersion", null, 0, 1, TagLib.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTagLib_JspVersion(), ecorePackage.getEString(), "jspVersion", null, 0, 1, TagLib.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTagLib_ShortName(), ecorePackage.getEString(), "shortName", null, 0, 1, TagLib.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTagLib_Uri(), ecorePackage.getEString(), "uri", null, 0, 1, TagLib.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTagLib_Tags(), this.getJSPTag(), null, "tags", null, 1, -1, TagLib.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTagLib_Validator(), this.getValidator(), null, "validator", null, 0, 1, TagLib.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTagLib_Listeners(), theCommonPackage.getListener(), null, "listeners", null, 0, -1, TagLib.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTagLib_Functions(), this.getFunction(), null, "functions", null, 0, -1, TagLib.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTagLib_TaglibExtensions(), this.getTldExtension(), null, "taglibExtensions", null, 0, -1, TagLib.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(jspTagEClass, JSPTag.class, "JSPTag", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getJSPTag_BodyContent(), this.getBodyContentType(), "bodyContent", null, 0, 1, JSPTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPTag_Example(), ecorePackage.getEString(), "example", null, 0, 1, JSPTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPTag_Name(), ecorePackage.getEString(), "name", null, 0, 1, JSPTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPTag_DynamicAttributes(), ecorePackage.getEBoolean(), "dynamicAttributes", null, 0, 1, JSPTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJSPTag_Attributes(), this.getJSPTagAttribute(), null, "attributes", null, 0, -1, JSPTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJSPTag_Variables(), this.getJSPVariable(), null, "variables", null, 0, -1, JSPTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJSPTag_TagClass(), theJavaRefPackage.getJavaClass(), null, "tagClass", null, 1, 1, JSPTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJSPTag_TeiClass(), theJavaRefPackage.getJavaClass(), null, "teiClass", null, 1, 1, JSPTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(jspTagAttributeEClass, JSPTagAttribute.class, "JSPTagAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getJSPTagAttribute_Name(), ecorePackage.getEString(), "name", null, 0, 1, JSPTagAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPTagAttribute_Required(), ecorePackage.getEBoolean(), "required", null, 0, 1, JSPTagAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPTagAttribute_RtExprValue(), ecorePackage.getEBoolean(), "rtExprValue", "false", 0, 1, JSPTagAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPTagAttribute_Fragment(), ecorePackage.getEBoolean(), "fragment", null, 0, 1, JSPTagAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJSPTagAttribute_Type(), theJavaRefPackage.getJavaClass(), null, "type", null, 0, 1, JSPTagAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJSPTagAttribute_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, JSPTagAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(validatorEClass, Validator.class, "Validator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getValidator_ValidatorClass(), theJavaRefPackage.getJavaClass(), null, "validatorClass", null, 0, 1, Validator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getValidator_InitParams(), theWebapplicationPackage.getInitParam(), null, "initParams", null, 0, -1, Validator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getValidator_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, Validator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(jspVariableEClass, JSPVariable.class, "JSPVariable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getJSPVariable_NameGiven(), ecorePackage.getEString(), "nameGiven", null, 0, 1, JSPVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPVariable_NameFromAttribute(), ecorePackage.getEString(), "nameFromAttribute", null, 0, 1, JSPVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPVariable_Declare(), ecorePackage.getEBoolean(), "declare", null, 0, 1, JSPVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJSPVariable_Scope(), this.getJSPScriptingVariableScope(), "scope", null, 0, 1, JSPVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJSPVariable_VariableClass(), theJavaRefPackage.getJavaClass(), null, "variableClass", null, 0, 1, JSPVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJSPVariable_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, JSPVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(functionEClass, Function.class, "Function", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFunction_Name(), ecorePackage.getEString(), "name", null, 0, 1, Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFunction_Signature(), ecorePackage.getEString(), "signature", null, 0, 1, Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFunction_Example(), ecorePackage.getEString(), "example", null, 0, 1, Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFunction_FunctionClass(), theJavaRefPackage.getJavaClass(), null, "functionClass", null, 1, 1, Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFunction_FunctionExtensions(), this.getTldExtension(), null, "functionExtensions", null, 0, -1, Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(tagFileEClass, TagFile.class, "TagFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTagFile_Name(), ecorePackage.getEString(), "name", null, 0, 1, TagFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTagFile_Path(), ecorePackage.getEString(), "path", null, 0, 1, TagFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTagFile_Example(), ecorePackage.getEString(), "example", null, 0, 1, TagFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTagFile_TagExtensions(), this.getTldExtension(), null, "tagExtensions", null, 0, -1, TagFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(tldExtensionEClass, TldExtension.class, "TldExtension", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTldExtension_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, TldExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTldExtension_ExtensionElements(), this.getExtensibleType(), null, "extensionElements", null, 1, -1, TldExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(extensibleTypeEClass, ExtensibleType.class, "ExtensibleType", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getExtensibleType_Value(), ecorePackage.getEString(), "value", null, 0, 1, ExtensibleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(bodyContentTypeEEnum, BodyContentType.class, "BodyContentType"); - addEEnumLiteral(bodyContentTypeEEnum, BodyContentType.TAGDEPENDENT_LITERAL); - addEEnumLiteral(bodyContentTypeEEnum, BodyContentType.JSP_LITERAL); - addEEnumLiteral(bodyContentTypeEEnum, BodyContentType.EMPTY_LITERAL); - addEEnumLiteral(bodyContentTypeEEnum, BodyContentType.SCRIPTLESS_LITERAL); - - initEEnum(jspScriptingVariableScopeEEnum, JSPScriptingVariableScope.class, "JSPScriptingVariableScope"); - addEEnumLiteral(jspScriptingVariableScopeEEnum, JSPScriptingVariableScope.NESTED_LITERAL); - addEEnumLiteral(jspScriptingVariableScopeEEnum, JSPScriptingVariableScope.AT_BEGIN_LITERAL); - addEEnumLiteral(jspScriptingVariableScopeEEnum, JSPScriptingVariableScope.AT_END_LITERAL); - - // Create resource - createResource(eNS_URI); - } - -} //TaglibPackageImpl - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TldExtensionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TldExtensionImpl.java deleted file mode 100644 index 92ba8b095..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/TldExtensionImpl.java +++ /dev/null @@ -1,223 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.taglib.internal.ExtensibleType; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.TldExtension; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Tld Extension</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.TldExtensionImpl#getNamespace <em>Namespace</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.taglib.internal.impl.TldExtensionImpl#getExtensionElements <em>Extension Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class TldExtensionImpl extends EObjectImpl implements TldExtension { - /** - * The default value of the '{@link #getNamespace() <em>Namespace</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getNamespace() - * @generated - * @ordered - */ - protected static final String NAMESPACE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNamespace() <em>Namespace</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getNamespace() - * @generated - * @ordered - */ - protected String namespace = NAMESPACE_EDEFAULT; - - /** - * The cached value of the '{@link #getExtensionElements() <em>Extension Elements</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExtensionElements() - * @generated - * @ordered - */ - protected EList extensionElements = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected TldExtensionImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return TaglibPackage.eINSTANCE.getTldExtension(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getNamespace() { - return namespace; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setNamespace(String newNamespace) { - String oldNamespace = namespace; - namespace = newNamespace; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.TLD_EXTENSION__NAMESPACE, oldNamespace, namespace)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getExtensionElements() { - if (extensionElements == null) { - extensionElements = new EObjectContainmentEList(ExtensibleType.class, this, TaglibPackage.TLD_EXTENSION__EXTENSION_ELEMENTS); - } - return extensionElements; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case TaglibPackage.TLD_EXTENSION__EXTENSION_ELEMENTS: - return ((InternalEList)getExtensionElements()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TLD_EXTENSION__NAMESPACE: - return getNamespace(); - case TaglibPackage.TLD_EXTENSION__EXTENSION_ELEMENTS: - return getExtensionElements(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TLD_EXTENSION__NAMESPACE: - setNamespace((String)newValue); - return; - case TaglibPackage.TLD_EXTENSION__EXTENSION_ELEMENTS: - getExtensionElements().clear(); - getExtensionElements().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TLD_EXTENSION__NAMESPACE: - setNamespace(NAMESPACE_EDEFAULT); - return; - case TaglibPackage.TLD_EXTENSION__EXTENSION_ELEMENTS: - getExtensionElements().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.TLD_EXTENSION__NAMESPACE: - return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); - case TaglibPackage.TLD_EXTENSION__EXTENSION_ELEMENTS: - return extensionElements != null && !extensionElements.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (namespace: "); - result.append(namespace); - result.append(')'); - return result.toString(); - } - -} //TldExtensionImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/ValidatorImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/ValidatorImpl.java deleted file mode 100644 index 4df3ac43a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/impl/ValidatorImpl.java +++ /dev/null @@ -1,245 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.Validator; -import org.eclipse.jst.j2ee.webapplication.InitParam; - - -/** - * The validator element provides information on an optional validator that can be used to validate the conformance of a JSP page to using this tag library. - - */ -public class ValidatorImpl extends EObjectImpl implements Validator, EObject{ - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass validatorClass = null; - public ValidatorImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return TaglibPackage.eINSTANCE.getValidator(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass getValidatorClass() { - if (validatorClass != null && validatorClass.eIsProxy()) { - JavaClass oldValidatorClass = validatorClass; - validatorClass = (JavaClass)eResolveProxy((InternalEObject)validatorClass); - if (validatorClass != oldValidatorClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaglibPackage.VALIDATOR__VALIDATOR_CLASS, oldValidatorClass, validatorClass)); - } - } - return validatorClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetValidatorClass() { - return validatorClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setValidatorClass(JavaClass newValidatorClass) { - JavaClass oldValidatorClass = validatorClass; - validatorClass = newValidatorClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TaglibPackage.VALIDATOR__VALIDATOR_CLASS, oldValidatorClass, validatorClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getInitParams() { - if (initParams == null) { - initParams = new EObjectContainmentEList(InitParam.class, this, TaglibPackage.VALIDATOR__INIT_PARAMS); - } - return initParams; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, TaglibPackage.VALIDATOR__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case TaglibPackage.VALIDATOR__INIT_PARAMS: - return ((InternalEList)getInitParams()).basicRemove(otherEnd, msgs); - case TaglibPackage.VALIDATOR__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.VALIDATOR__VALIDATOR_CLASS: - if (resolve) return getValidatorClass(); - return basicGetValidatorClass(); - case TaglibPackage.VALIDATOR__INIT_PARAMS: - return getInitParams(); - case TaglibPackage.VALIDATOR__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.VALIDATOR__VALIDATOR_CLASS: - setValidatorClass((JavaClass)newValue); - return; - case TaglibPackage.VALIDATOR__INIT_PARAMS: - getInitParams().clear(); - getInitParams().addAll((Collection)newValue); - return; - case TaglibPackage.VALIDATOR__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.VALIDATOR__VALIDATOR_CLASS: - setValidatorClass((JavaClass)null); - return; - case TaglibPackage.VALIDATOR__INIT_PARAMS: - getInitParams().clear(); - return; - case TaglibPackage.VALIDATOR__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case TaglibPackage.VALIDATOR__VALIDATOR_CLASS: - return validatorClass != null; - case TaglibPackage.VALIDATOR__INIT_PARAMS: - return initParams != null && !initParams.isEmpty(); - case TaglibPackage.VALIDATOR__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - protected EList initParams=null; - - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - protected boolean setValidatorClass=false; - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/util/TaglibAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/util/TaglibAdapterFactory.java deleted file mode 100644 index 597eff5b5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/util/TaglibAdapterFactory.java +++ /dev/null @@ -1,303 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.taglib.internal.ExtensibleType; -import org.eclipse.jst.j2ee.taglib.internal.Function; -import org.eclipse.jst.j2ee.taglib.internal.JSPTag; -import org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute; -import org.eclipse.jst.j2ee.taglib.internal.JSPVariable; -import org.eclipse.jst.j2ee.taglib.internal.TagFile; -import org.eclipse.jst.j2ee.taglib.internal.TagLib; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.TldExtension; -import org.eclipse.jst.j2ee.taglib.internal.Validator; - - - -public class TaglibAdapterFactory extends AdapterFactoryImpl { - protected static TaglibPackage modelPackage; - - public TaglibAdapterFactory() { - if (modelPackage == null) { - modelPackage = (TaglibPackage)EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI); - } - } - public boolean isFactoryForType(Object type) { - if (type == modelPackage) { - return true; - } - if (type instanceof EObject) { - return ((EObject)type).eClass().eContainer() == modelPackage; - } - return false; - } - - protected TaglibSwitch sw = new TaglibSwitch() { - public Object caseTagLib(TagLib object) { - return createTagLibAdapter(); - } - public Object caseValidator(Validator object) { - return createValidatorAdapter(); - } - public Object caseJSPTag(JSPTag object) { - return createJSPTagAdapter(); - } - public Object caseJSPTagAttribute(JSPTagAttribute object) { - return createJSPTagAttributeAdapter(); - } - public Object caseJSPVariable(JSPVariable object) { - return createJSPVariableAdapter(); - } - }; - - public Adapter createAdapter(Notifier target) { - return (Adapter)sw.doSwitch((EObject)target); - } - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - public Adapter createTagLibAdapter() { - return null; - } - - public Adapter createValidatorAdapter() { - return null; - } - - public Adapter createJSPTagAdapter() { - return null; - } - - public Adapter createJSPTagAttributeAdapter() { - return null; - } - - public Adapter createJSPVariableAdapter() { - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean isFactoryForTypeGen(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected TaglibSwitch modelSwitch = - new TaglibSwitch() { - public Object caseTagLib(TagLib object) { - return createTagLibAdapter(); - } - public Object caseJSPTag(JSPTag object) { - return createJSPTagAdapter(); - } - public Object caseJSPTagAttribute(JSPTagAttribute object) { - return createJSPTagAttributeAdapter(); - } - public Object caseValidator(Validator object) { - return createValidatorAdapter(); - } - public Object caseJSPVariable(JSPVariable object) { - return createJSPVariableAdapter(); - } - public Object caseFunction(Function object) { - return createFunctionAdapter(); - } - public Object caseTagFile(TagFile object) { - return createTagFileAdapter(); - } - public Object caseTldExtension(TldExtension object) { - return createTldExtensionAdapter(); - } - public Object caseExtensibleType(ExtensibleType object) { - return createExtensibleTypeAdapter(); - } - public Object caseDescriptionGroup(DescriptionGroup object) { - return createDescriptionGroupAdapter(); - } - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return createCompatibilityDescriptionGroupAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAdapterGen(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createTagLibAdapterGen() { - - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createValidatorAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createJSPTagAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createJSPTagAttributeAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createJSPVariableAdapterGen() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.taglib.internal.Function <em>Function</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.taglib.internal.Function - * @generated - */ - public Adapter createFunctionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.taglib.internal.TagFile <em>Tag File</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.taglib.internal.TagFile - * @generated - */ - public Adapter createTagFileAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.taglib.internal.TldExtension <em>Tld Extension</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.taglib.internal.TldExtension - * @generated - */ - public Adapter createTldExtensionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.taglib.internal.ExtensibleType <em>Extensible Type</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.taglib.internal.ExtensibleType - * @generated - */ - public Adapter createExtensibleTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - public Adapter createDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - public Adapter createCompatibilityDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //TaglibAdapterFactory - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/util/TaglibSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/util/TaglibSwitch.java deleted file mode 100644 index c80ae0ecb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/internal/util/TaglibSwitch.java +++ /dev/null @@ -1,353 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.taglib.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.taglib.internal.ExtensibleType; -import org.eclipse.jst.j2ee.taglib.internal.Function; -import org.eclipse.jst.j2ee.taglib.internal.JSPTag; -import org.eclipse.jst.j2ee.taglib.internal.JSPTagAttribute; -import org.eclipse.jst.j2ee.taglib.internal.JSPVariable; -import org.eclipse.jst.j2ee.taglib.internal.TagFile; -import org.eclipse.jst.j2ee.taglib.internal.TagLib; -import org.eclipse.jst.j2ee.taglib.internal.TaglibFactory; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.TldExtension; -import org.eclipse.jst.j2ee.taglib.internal.Validator; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibFactoryImpl; - -public class TaglibSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static TaglibPackage modelPackage; - - protected static TaglibFactory factory; - - public TaglibSwitch() { - factory = (TaglibFactory)TaglibFactoryImpl.getPackage().getEFactoryInstance(); - modelPackage = TaglibFactoryImpl.getPackage(); - } - public Object doSwitch(EObject theEObject) { - EClass theEClass = theEObject.eClass(); - if (theEClass.eContainer() != modelPackage) return defaultCase(theEObject); - - switch (theEClass.getClassifierID()) { - case TaglibPackage.TAG_LIB: - { - TagLib castedObject = (TagLib)theEObject; - Object result = caseTagLib(castedObject); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.VALIDATOR: - { - Validator castedObject = (Validator)theEObject; - Object result = caseValidator(castedObject); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.JSP_TAG: - { - JSPTag castedObject = (JSPTag)theEObject; - Object result = caseJSPTag(castedObject); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.JSP_TAG_ATTRIBUTE: - { - JSPTagAttribute castedObject = (JSPTagAttribute)theEObject; - Object result = caseJSPTagAttribute(castedObject); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.JSP_VARIABLE: - { - JSPVariable castedObject = (JSPVariable)theEObject; - Object result = caseJSPVariable(castedObject); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } // doSwitch - - public Object caseTagLib(TagLib object) { - return null; - } - - public Object caseValidator(Validator object) { - return null; - } - - public Object caseJSPTag(JSPTag object) { - return null; - } - - public Object caseJSPTagAttribute(JSPTagAttribute object) { - return null; - } - - public Object caseJSPVariable(JSPVariable object) { - return null; - } - - public Object defaultCase(EObject object) { - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public Object doSwitchGen(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case TaglibPackage.TAG_LIB: { - TagLib tagLib = (TagLib)theEObject; - Object result = caseTagLib(tagLib); - if (result == null) result = caseCompatibilityDescriptionGroup(tagLib); - if (result == null) result = caseDescriptionGroup(tagLib); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.JSP_TAG: { - JSPTag jspTag = (JSPTag)theEObject; - Object result = caseJSPTag(jspTag); - if (result == null) result = caseDescriptionGroup(jspTag); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.JSP_TAG_ATTRIBUTE: { - JSPTagAttribute jspTagAttribute = (JSPTagAttribute)theEObject; - Object result = caseJSPTagAttribute(jspTagAttribute); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.VALIDATOR: { - Validator validator = (Validator)theEObject; - Object result = caseValidator(validator); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.JSP_VARIABLE: { - JSPVariable jspVariable = (JSPVariable)theEObject; - Object result = caseJSPVariable(jspVariable); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.FUNCTION: { - Function function = (Function)theEObject; - Object result = caseFunction(function); - if (result == null) result = caseDescriptionGroup(function); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.TAG_FILE: { - TagFile tagFile = (TagFile)theEObject; - Object result = caseTagFile(tagFile); - if (result == null) result = caseDescriptionGroup(tagFile); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.TLD_EXTENSION: { - TldExtension tldExtension = (TldExtension)theEObject; - Object result = caseTldExtension(tldExtension); - if (result == null) result = defaultCase(theEObject); - return result; - } - case TaglibPackage.EXTENSIBLE_TYPE: { - ExtensibleType extensibleType = (ExtensibleType)theEObject; - Object result = caseExtensibleType(extensibleType); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseTagLibGen(TagLib object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseValidatorGen(Validator object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseJSPTagGen(JSPTag object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseJSPTagAttributeGen(JSPTagAttribute object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object caseJSPVariableGen(JSPVariable object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Function</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Function</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseFunction(Function object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Tag File</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Tag File</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseTagFile(TagFile object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Tld Extension</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Tld Extension</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseTldExtension(TldExtension object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Extensible Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Extensible Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseExtensibleType(ExtensibleType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionGroup(DescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Object defaultCaseGen(EObject object) { - return null; - } - -} //TaglibSwitch - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/AuthConstraint.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/AuthConstraint.java deleted file mode 100644 index c98191d1e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/AuthConstraint.java +++ /dev/null @@ -1,87 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * The auth-constraint element indicates the user roles that should be permitted access to this resource collection. The role used here must appear in a security-role-ref element. - * @since 1.0 - */ -public interface AuthConstraint extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * A description of the auth constraint. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Roles attribute - * A list of role names for the auth constraint. Each element specifies the name - * of a security role (a String). - - */ - EList getRoles(); - - /** - * @generated This field/method will be replaced during code generation - * @return The SecConstraint reference - */ - SecurityConstraint getSecConstraint(); - - /** - * @generated This field/method will be replaced during code generation - * @param value the new value of the SecConstraint reference - */ - void setSecConstraint(SecurityConstraint value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getAuthConstraint_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/AuthMethodKind.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/AuthMethodKind.java deleted file mode 100644 index 5b8d75ed2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/AuthMethodKind.java +++ /dev/null @@ -1,199 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - -/** - * - * @since 1.0 - * - */ - - -public final class AuthMethodKind extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int UNSPECIFIED = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int BASIC = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int DIGEST = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int FORM = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int CLIENT_CERT = 4; - /** - * The '<em><b>UNSPECIFIED</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>UNSPECIFIED</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #UNSPECIFIED - * @generated - * @ordered - */ - public static final AuthMethodKind UNSPECIFIED_LITERAL = new AuthMethodKind(UNSPECIFIED, "UNSPECIFIED");//$NON-NLS-1$ - - /** - * The '<em><b>BASIC</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>BASIC</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #BASIC - * @generated - * @ordered - */ - public static final AuthMethodKind BASIC_LITERAL = new AuthMethodKind(BASIC, "BASIC");//$NON-NLS-1$ - - /** - * The '<em><b>DIGEST</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>DIGEST</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #DIGEST - * @generated - * @ordered - */ - public static final AuthMethodKind DIGEST_LITERAL = new AuthMethodKind(DIGEST, "DIGEST");//$NON-NLS-1$ - - /** - * The '<em><b>FORM</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>FORM</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #FORM - * @generated - * @ordered - */ - public static final AuthMethodKind FORM_LITERAL = new AuthMethodKind(FORM, "FORM");//$NON-NLS-1$ - - /** - * The '<em><b>CLIENT CERT</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>CLIENT CERT</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #CLIENT_CERT - * @generated - * @ordered - */ - public static final AuthMethodKind CLIENT_CERT_LITERAL = new AuthMethodKind(CLIENT_CERT, "CLIENT_CERT");//$NON-NLS-1$ - - /** - * An array of all the '<em><b>Auth Method Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final AuthMethodKind[] VALUES_ARRAY = - new AuthMethodKind[] { - UNSPECIFIED_LITERAL, - BASIC_LITERAL, - DIGEST_LITERAL, - FORM_LITERAL, - CLIENT_CERT_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Auth Method Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Auth Method Kind</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static AuthMethodKind get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - AuthMethodKind result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Auth Method Kind</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @param value passes literal value - * @return literal instance - */ - public static AuthMethodKind get(int value) { - switch (value) { - case UNSPECIFIED: return UNSPECIFIED_LITERAL; - case BASIC: return BASIC_LITERAL; - case DIGEST: return DIGEST_LITERAL; - case FORM: return FORM_LITERAL; - case CLIENT_CERT: return CLIENT_CERT_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private AuthMethodKind(int value, String name) { - super(value, name); - } - -} //AuthMethodKind - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ContextParam.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ContextParam.java deleted file mode 100644 index b62c64163..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ContextParam.java +++ /dev/null @@ -1,83 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * The context-param element contains the declaration of a web application's servlet context initialization parameters. - * @since 1.0 - */ -public interface ContextParam extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ParamName attribute - * The param-name element contains the name of a parameter. - */ - String getParamName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ParamName attribute - */ - void setParamName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ParamValue attribute - * The param-value element contains the value of a parameter. - */ - String getParamValue(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ParamValue attribute - */ - void setParamValue(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The WebApp reference - */ - WebApp getWebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the WebApp reference - */ - void setWebApp(WebApp value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/DispatcherType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/DispatcherType.java deleted file mode 100644 index 73b473f86..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/DispatcherType.java +++ /dev/null @@ -1,199 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - -/** - * <!-- begin-user-doc --> - * A representation of the literals of the enumeration '<em><b>Dispatcher Type</b></em>', - * and utility methods for working with them. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getDispatcherType() - * @model - * @generated - * @since 1.0 - */ -public final class DispatcherType extends AbstractEnumerator -{ - /** - * The '<em><b>FORWARD</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #FORWARD_LITERAL - * @model - * @generated - * @ordered - */ - public static final int FORWARD = 0; - - /** - * The '<em><b>INCLUDE</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #INCLUDE_LITERAL - * @model - * @generated - * @ordered - */ - public static final int INCLUDE = 1; - - /** - * The '<em><b>REQUEST</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #REQUEST_LITERAL - * @model - * @generated - * @ordered - */ - public static final int REQUEST = 2; - - /** - * The '<em><b>ERROR</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #ERROR_LITERAL - * @model - * @generated - * @ordered - */ - public static final int ERROR = 3; - - /** - * The '<em><b>FORWARD</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>FORWARD</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #FORWARD - * @generated - * @ordered - */ - public static final DispatcherType FORWARD_LITERAL = new DispatcherType(FORWARD, "FORWARD");//$NON-NLS-1$ - - /** - * The '<em><b>INCLUDE</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>INCLUDE</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #INCLUDE - * @generated - * @ordered - */ - public static final DispatcherType INCLUDE_LITERAL = new DispatcherType(INCLUDE, "INCLUDE");//$NON-NLS-1$ - - /** - * The '<em><b>REQUEST</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>REQUEST</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #REQUEST - * @generated - * @ordered - */ - public static final DispatcherType REQUEST_LITERAL = new DispatcherType(REQUEST, "REQUEST");//$NON-NLS-1$ - - /** - * The '<em><b>ERROR</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>ERROR</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #ERROR - * @generated - * @ordered - */ - public static final DispatcherType ERROR_LITERAL = new DispatcherType(ERROR, "ERROR");//$NON-NLS-1$ - - /** - * An array of all the '<em><b>Dispatcher Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final DispatcherType[] VALUES_ARRAY = - new DispatcherType[] { - FORWARD_LITERAL, - INCLUDE_LITERAL, - REQUEST_LITERAL, - ERROR_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Dispatcher Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Dispatcher Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static DispatcherType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - DispatcherType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Dispatcher Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static DispatcherType get(int value) { - switch (value) { - case FORWARD: return FORWARD_LITERAL; - case INCLUDE: return INCLUDE_LITERAL; - case REQUEST: return REQUEST_LITERAL; - case ERROR: return ERROR_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private DispatcherType(int value, String name) { - super(value, name); - } - -} //DispatcherType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ErrorCodeErrorPage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ErrorCodeErrorPage.java deleted file mode 100644 index 24f051c31..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ErrorCodeErrorPage.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - - -/** - * @generated - */ -public interface ErrorCodeErrorPage extends ErrorPage{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ErrorCode attribute - * The error-code contains an HTTP error code, ex: 404 - - */ - String getErrorCode(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ErrorCode attribute - */ - void setErrorCode(String value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ErrorPage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ErrorPage.java deleted file mode 100644 index 549c27b95..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ErrorPage.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * The error-page element contains a mapping between an error code or exception type to the path of a resource in the web application - */ -public interface ErrorPage extends EObject{ - -public boolean isErrorCode(); -public boolean isExceptionType(); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Location attribute - * The location element contains the location of the resource in the web - * application - */ - String getLocation(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Location attribute - */ - void setLocation(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The WebApp reference - */ - WebApp getWebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the WebApp reference - */ - void setWebApp(WebApp value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ExceptionTypeErrorPage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ExceptionTypeErrorPage.java deleted file mode 100644 index a990fc106..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ExceptionTypeErrorPage.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.jem.java.JavaClass; -/** - * @generated - */ -public interface ExceptionTypeErrorPage extends ErrorPage { - - - - -public String getExceptionTypeName() ; -void setExceptionTypeName(String exceptionTypeName) ; -/** - * @deprecated Use @link{#setExceptionTypeName(String)} - */ -void setExceptionTypeName(String exceptionTypeName, ResourceSet context) ; - /** - * @generated This field/method will be replaced during code generation - * @return The ExceptionType reference - * The exception type contains a fully qualified class name of a Java exception - * type. - */ - JavaClass getExceptionType(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the ExceptionType reference - */ - void setExceptionType(JavaClass value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/Filter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/Filter.java deleted file mode 100644 index 770b6d9b9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/Filter.java +++ /dev/null @@ -1,96 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; - - -/** - * Declares a filter in the web application application. The filter is mapped to either a servlet or a URL pattern in the filter-mapping element, using the filter-name value to reference. Filters can access the initialization parameters declared in the deployment descriptor at runtime via the FilterConfig interface. - - */ -public interface Filter extends CompatibilityDescriptionGroup{ - -public String getFilterClassName(); -public void setFilterClassName(String filterClassName); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Name attribute - * The logical name of the filter. This name is used to map the filter. - */ - String getName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Name attribute - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of InitParams references - * The init-params contain a name//value pairs as initialization params for the - * filter - - */ - EList getInitParams(); - - /** - * @generated This field/method will be replaced during code generation - * @return The FilterClass reference - * The fully qualified classname of the filter. - */ - JavaClass getFilterClass(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the FilterClass reference - */ - void setFilterClass(JavaClass value); - - /** - * Returns the value of the '<em><b>Init Param Values</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.ParamValue}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Init Param Values</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The init-param element contains a name/value pair as - * an initialization param of a servlet filter - * <!-- end-model-doc --> - * @return the value of the '<em>Init Param Values</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getFilter_InitParamValues() - * @model type="org.eclipse.jst.j2ee.common.ParamValue" containment="true" - * @generated - */ - EList getInitParamValues(); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/FilterMapping.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/FilterMapping.java deleted file mode 100644 index 5b688bb64..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/FilterMapping.java +++ /dev/null @@ -1,104 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * Declaration of the filter mappings in this web application. The container uses the filter-mapping declarations to decide which filters to apply to a request, and in what order. The container matches the request URI to a Servlet in the normal way. To determine which filters to apply it matches filter-mapping declarations either on servlet-name, or on url-pattern for each filter-mapping element, depending on which style is used. The order in which filters are invoked is the order in which filter-mapping declarations that match a request URI for a servlet appear in the list of filter-mapping elements.The filter-name value must be the value of the <filtername> sub-elements of one of the <filter> declarations in the deployment descriptor. - * - * @invariant The filter-name value must be the value of the Filter::name of one of the Filter declarations in the deployment descriptor. - - */ -public interface FilterMapping extends EObject{ - -/** - * Returns the name of the servlet that this mapping applies to. - */ -public String getServletName(); -/** - * Sets the name of the servlet that this mapping applies to. - */ -public void setServletName(String servletName); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the UrlPattern attribute - * The url-pattern element contains the url pattern of the mapping. Must follow - * the rules specified in Section 10 of the Servlet API Specification. - */ - String getUrlPattern(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the UrlPattern attribute - */ - void setUrlPattern(String value); - - /** - * Returns the value of the '<em><b>Dispatcher Type</b></em>' attribute list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webapplication.DispatcherType}. - * The literals are from the enumeration {@link org.eclipse.jst.j2ee.webapplication.DispatcherType}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Dispatcher Type</em>' attribute list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Dispatcher Type</em>' attribute list. - * @see org.eclipse.jst.j2ee.webapplication.DispatcherType - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getFilterMapping_DispatcherType() - * @model type="org.eclipse.jst.j2ee.webapplication.DispatcherType" upper="4" - * @generated - */ - EList getDispatcherType(); - - /** - * @generated This field/method will be replaced during code generation - * @return The Filter reference - * The filter being mapped - */ - Filter getFilter(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the Filter reference - */ - void setFilter(Filter value); - - /** - * @generated This field/method will be replaced during code generation - * @return The Servlet reference - * An optional servlet that is mapped by a filter mapping. servletName is used to - * resolve the servlet reference. - */ - Servlet getServlet(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the Servlet reference - */ - void setServlet(Servlet value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/FormLoginConfig.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/FormLoginConfig.java deleted file mode 100644 index 398636d14..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/FormLoginConfig.java +++ /dev/null @@ -1,72 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * The form-login-config element specifies the login and error pages that should be used in form based login. If form based authentication is not used, these elements are ignored. - */ -public interface FormLoginConfig extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the FormLoginPage attribute - * The form-login-page element defines the location in the web app where the page - * that can be used for login can be found - */ - String getFormLoginPage(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the FormLoginPage attribute - */ - void setFormLoginPage(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the FormErrorPage attribute - * The form-error-page element defines the location in the web app where the error - * page that is displayed when login is not successful can be found - */ - String getFormErrorPage(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the FormErrorPage attribute - */ - void setFormErrorPage(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The LoginConfig reference - */ - LoginConfig getLoginConfig(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the LoginConfig reference - */ - void setLoginConfig(LoginConfig value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/HTTPMethodType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/HTTPMethodType.java deleted file mode 100644 index b252d8dc6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/HTTPMethodType.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * @deprecated since 4/25/2003 use list on {@link org.eclipse.jst.j2ee.internal.webapplication.WebResourceCollection} - * <ul> - * <li>{@link org.eclipse.jst.j2ee.internal.webapplication.HTTPMethodType#getHttpMethod <em>Http Method</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getHTTPMethodType() - * @model - * @generated - */ -public interface HTTPMethodType extends EObject{ - /** - * Returns the value of the '<em><b>Http Method</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Http Method</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Http Method</em>' attribute. - * @see #setHttpMethod(String) - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getHTTPMethodType_HttpMethod() - * @model - * @generated - */ - String getHttpMethod(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.HTTPMethodType#getHttpMethod <em>Http Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Http Method</em>' attribute. - * @see #getHttpMethod() - * @generated - */ - void setHttpMethod(String value); - -} // HTTPMethodType diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/HTTPMethodTypeEnum.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/HTTPMethodTypeEnum.java deleted file mode 100644 index 461dea8aa..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/HTTPMethodTypeEnum.java +++ /dev/null @@ -1,281 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - -/** - * <!-- begin-user-doc --> - * A representation of the literals of the enumeration '<em><b>HTTP Method Type Enum</b></em>', - * and utility methods for working with them. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getHTTPMethodTypeEnum() - * @model - * @generated - */ -public final class HTTPMethodTypeEnum extends AbstractEnumerator { - /** - * The '<em><b>GET</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The http-method contains an HTTP method (GET | POST |...) - * <!-- end-model-doc --> - * @see #GET_LITERAL - * @model - * @generated - * @ordered - */ - public static final int GET = 0; - - /** - * The '<em><b>POST</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #POST_LITERAL - * @model - * @generated - * @ordered - */ - public static final int POST = 1; - - /** - * The '<em><b>PUT</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #PUT_LITERAL - * @model - * @generated - * @ordered - */ - public static final int PUT = 2; - - /** - * The '<em><b>DELETE</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #DELETE_LITERAL - * @model - * @generated - * @ordered - */ - public static final int DELETE = 3; - - /** - * The '<em><b>HEAD</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #HEAD_LITERAL - * @model - * @generated - * @ordered - */ - public static final int HEAD = 4; - - /** - * The '<em><b>OPTIONS</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #OPTIONS_LITERAL - * @model - * @generated - * @ordered - */ - public static final int OPTIONS = 5; - - /** - * The '<em><b>TRACE</b></em>' literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #TRACE_LITERAL - * @model - * @generated - * @ordered - */ - public static final int TRACE = 6; - - /** - * The '<em><b>GET</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>GET</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #GET - * @generated - * @ordered - */ - public static final HTTPMethodTypeEnum GET_LITERAL = new HTTPMethodTypeEnum(GET, "GET");//$NON-NLS-1$ - - /** - * The '<em><b>POST</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>POST</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #POST - * @generated - * @ordered - */ - public static final HTTPMethodTypeEnum POST_LITERAL = new HTTPMethodTypeEnum(POST, "POST");//$NON-NLS-1$ - - /** - * The '<em><b>PUT</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>PUT</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #PUT - * @generated - * @ordered - */ - public static final HTTPMethodTypeEnum PUT_LITERAL = new HTTPMethodTypeEnum(PUT, "PUT");//$NON-NLS-1$ - - /** - * The '<em><b>DELETE</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>DELETE</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #DELETE - * @generated - * @ordered - */ - public static final HTTPMethodTypeEnum DELETE_LITERAL = new HTTPMethodTypeEnum(DELETE, "DELETE");//$NON-NLS-1$ - - /** - * The '<em><b>HEAD</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>HEAD</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #HEAD - * @generated - * @ordered - */ - public static final HTTPMethodTypeEnum HEAD_LITERAL = new HTTPMethodTypeEnum(HEAD, "HEAD");//$NON-NLS-1$ - - /** - * The '<em><b>OPTIONS</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>OPTIONS</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #OPTIONS - * @generated - * @ordered - */ - public static final HTTPMethodTypeEnum OPTIONS_LITERAL = new HTTPMethodTypeEnum(OPTIONS, "OPTIONS");//$NON-NLS-1$ - - /** - * The '<em><b>TRACE</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>TRACE</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #TRACE - * @generated - * @ordered - */ - public static final HTTPMethodTypeEnum TRACE_LITERAL = new HTTPMethodTypeEnum(TRACE, "TRACE");//$NON-NLS-1$ - - /** - * An array of all the '<em><b>HTTP Method Type Enum</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final HTTPMethodTypeEnum[] VALUES_ARRAY = - new HTTPMethodTypeEnum[] { - GET_LITERAL, - POST_LITERAL, - PUT_LITERAL, - DELETE_LITERAL, - HEAD_LITERAL, - OPTIONS_LITERAL, - TRACE_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>HTTP Method Type Enum</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>HTTP Method Type Enum</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static HTTPMethodTypeEnum get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - HTTPMethodTypeEnum result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>HTTP Method Type Enum</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static HTTPMethodTypeEnum get(int value) { - switch (value) { - case GET: return GET_LITERAL; - case POST: return POST_LITERAL; - case PUT: return PUT_LITERAL; - case DELETE: return DELETE_LITERAL; - case HEAD: return HEAD_LITERAL; - case OPTIONS: return OPTIONS_LITERAL; - case TRACE: return TRACE_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private HTTPMethodTypeEnum(int value, String name) { - super(value, name); - } - -} //HTTPMethodTypeEnum diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/InitParam.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/InitParam.java deleted file mode 100644 index e63e8bdc8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/InitParam.java +++ /dev/null @@ -1,71 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * The init-param element contains a name//value pair as an initialization param of the servlet - */ -public interface InitParam extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ParamName attribute - * - * - - */ - String getParamName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ParamName attribute - */ - void setParamName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ParamValue attribute - */ - String getParamValue(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ParamValue attribute - */ - void setParamValue(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/JSPType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/JSPType.java deleted file mode 100644 index e0c2c7045..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/JSPType.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - - -/** - * @generated - * @since 1.0 - */ -public interface JSPType extends WebType{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the JspFile attribute - * The jsp-file element contains the full path to a JSP file within the web - * application. - - */ - String getJspFile(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the JspFile attribute - */ - void setJspFile(String value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LocalEncodingMapping.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LocalEncodingMapping.java deleted file mode 100644 index 72a0d3281..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LocalEncodingMapping.java +++ /dev/null @@ -1,86 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Local Encoding Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping#getLocale <em>Locale</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping#getEncoding <em>Encoding</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getLocalEncodingMapping() - * @model - * @generated - * @since 1.0 - */ -public interface LocalEncodingMapping extends EObject{ - /** - * Returns the value of the '<em><b>Locale</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Locale</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Locale</em>' attribute. - * @see #setLocale(String) - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getLocalEncodingMapping_Locale() - * @model - * @generated - */ - String getLocale(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping#getLocale <em>Locale</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Locale</em>' attribute. - * @see #getLocale() - * @generated - */ - void setLocale(String value); - - /** - * Returns the value of the '<em><b>Encoding</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Encoding</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Encoding</em>' attribute. - * @see #setEncoding(String) - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getLocalEncodingMapping_Encoding() - * @model - * @generated - */ - String getEncoding(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping#getEncoding <em>Encoding</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Encoding</em>' attribute. - * @see #getEncoding() - * @generated - */ - void setEncoding(String value); - -} // LocalEncodingMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LocalEncodingMappingList.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LocalEncodingMappingList.java deleted file mode 100644 index daaaeae69..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LocalEncodingMappingList.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Local Encoding Mapping List</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList#getLocalEncodingMappings <em>Local Encoding Mappings</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getLocalEncodingMappingList() - * @model - * @generated - * @since 1.0 - */ -public interface LocalEncodingMappingList extends EObject{ - /** - * Returns the value of the '<em><b>Local Encoding Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Local Encoding Mappings</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Local Encoding Mappings</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getLocalEncodingMappingList_LocalEncodingMappings() - * @model type="org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping" containment="true" required="true" - * @generated - */ - EList getLocalEncodingMappings(); - -} // LocalEncodingMappingList diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LoginConfig.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LoginConfig.java deleted file mode 100644 index 8ab8da039..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LoginConfig.java +++ /dev/null @@ -1,148 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; - -/** - * The login-config element is used to configure the authentication method that should be used, the realm name that should be used for this application, and the attributes that are needed by the form login - * mechanism. - */ -public interface LoginConfig extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the AuthMethod attribute - * The auth-method element is used to configure the authentication mechanism for - * the web application. As a prerequisite to gaining access to any web resources - * which are protected by an authorization constraint, a user must have - * authenticated using the configured mechanism. Legal values for this element are - * "BASIC", "DIGEST", "FORM", or "CLIENT-CERT". - */ - AuthMethodKind getAuthMethod(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.LoginConfig#getAuthMethod <em>Auth Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Auth Method</em>' attribute. - * @see org.eclipse.jst.j2ee.webapplication.AuthMethodKind - * @see #isSetAuthMethod() - * @see #unsetAuthMethod() - * @see #getAuthMethod() - * @generated - */ - void setAuthMethod(AuthMethodKind value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.webapplication.LoginConfig#getAuthMethod <em>Auth Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetAuthMethod() - * @see #getAuthMethod() - * @see #setAuthMethod(AuthMethodKind) - * @generated - */ - void unsetAuthMethod(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.webapplication.LoginConfig#getAuthMethod <em>Auth Method</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Auth Method</em>' attribute is set. - * @see #unsetAuthMethod() - * @see #getAuthMethod() - * @see #setAuthMethod(AuthMethodKind) - * @generated - */ - boolean isSetAuthMethod(); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the RealmName attribute - * The realm name element specifies the realm name to use in HTTP Basic - * authorization - */ - String getRealmName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the RealmName attribute - */ - void setRealmName(String value); - - /** - * Returns the value of the '<em><b>Authorization Method</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Authorization Method</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Authorization Method</em>' attribute. - * @see #setAuthorizationMethod(String) - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getLoginConfig_AuthorizationMethod() - * @model - * @generated - */ - String getAuthorizationMethod(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.LoginConfig#getAuthorizationMethod <em>Authorization Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Authorization Method</em>' attribute. - * @see #getAuthorizationMethod() - * @generated - */ - void setAuthorizationMethod(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The WebApp reference - */ - WebApp getWebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the WebApp reference - */ - void setWebApp(WebApp value); - - /** - * @generated This field/method will be replaced during code generation - * @return The FormLoginConfig reference - */ - FormLoginConfig getFormLoginConfig(); - - /** - * @generated This field/method will be replaced during code generation - * @param l The new value of the FormLoginConfig reference - */ - void setFormLoginConfig(FormLoginConfig value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/MimeMapping.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/MimeMapping.java deleted file mode 100644 index 23b143856..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/MimeMapping.java +++ /dev/null @@ -1,71 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * The mime-mapping element defines a mapping between an extension and a mime type. - *@since 1.0 - */ -public interface MimeMapping extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Extension attribute - * The extension element contains a string describing an extension. example: "txt" - */ - String getExtension(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Extension attribute - */ - void setExtension(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the MimeType attribute - * The mime-type element contains a defined mime type. example: "text//plain" - */ - String getMimeType(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the MimeType attribute - */ - void setMimeType(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The WebApp reference - */ - WebApp getWebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the WebApp reference - */ - void setWebApp(WebApp value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ResAuthServletType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ResAuthServletType.java deleted file mode 100644 index a471e50f8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ResAuthServletType.java +++ /dev/null @@ -1,136 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - -/** - *@since 1.0 - */ -public final class ResAuthServletType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int CONTAINER = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int SERVLET = 1; - /** - * The '<em><b>CONTAINER</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>CONTAINER</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #CONTAINER - * @generated - * @ordered - */ - public static final ResAuthServletType CONTAINER_LITERAL = new ResAuthServletType(CONTAINER, "CONTAINER");//$NON-NLS-1$ - - /** - * The '<em><b>SERVLET</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>SERVLET</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #SERVLET - * @generated - * @ordered - */ - public static final ResAuthServletType SERVLET_LITERAL = new ResAuthServletType(SERVLET, "SERVLET");//$NON-NLS-1$ - - /** - * An array of all the '<em><b>Res Auth Servlet Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final ResAuthServletType[] VALUES_ARRAY = - new ResAuthServletType[] { - CONTAINER_LITERAL, - SERVLET_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Res Auth Servlet Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Res Auth Servlet Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static ResAuthServletType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - ResAuthServletType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Res Auth Servlet Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static ResAuthServletType get(int value) { - switch (value) { - case CONTAINER: return CONTAINER_LITERAL; - case SERVLET: return SERVLET_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private ResAuthServletType(int value, String name) { - super(value, name); - } - -} //ResAuthServletType - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/RoleNameType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/RoleNameType.java deleted file mode 100644 index 422205085..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/RoleNameType.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * @generated - * @since 1.0 - */ -public interface RoleNameType extends EObject { - /** - * @generated This field/method will be replaced during code generation - * @return The value of the RoleName attribute - */ - String getRoleName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the RoleName attribute - */ - void setRoleName(String value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/SecurityConstraint.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/SecurityConstraint.java deleted file mode 100644 index ea53b91e8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/SecurityConstraint.java +++ /dev/null @@ -1,121 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * The security-constraint element is used to associate security constraints with one or more web resource collections - * @since 1.0 - */ -public interface SecurityConstraint extends EObject{ - /** - * Returns the value of the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Display Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 deprecated, becomes displayNames - * <!-- end-model-doc --> - * @return the value of the '<em>Display Name</em>' attribute. - * @see #setDisplayName(String) - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getSecurityConstraint_DisplayName() - * @model - * @generated - */ - String getDisplayName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.SecurityConstraint#getDisplayName <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Display Name</em>' attribute. - * @see #getDisplayName() - * @generated - */ - void setDisplayName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The WebApp reference - */ - WebApp getWebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the WebApp reference - */ - void setWebApp(WebApp value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of WebResourceCollections references - */ - EList getWebResourceCollections(); - - /** - * @generated This field/method will be replaced during code generation - * @return The AuthConstraint reference - */ - AuthConstraint getAuthConstraint(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the AuthConstraint reference - */ - void setAuthConstraint(AuthConstraint value); - - /** - * @generated This field/method will be replaced during code generation - * @return The UserDataConstraint reference - */ - UserDataConstraint getUserDataConstraint(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the UserDataConstraint reference - */ - void setUserDataConstraint(UserDataConstraint value); - - /** - * Returns the value of the '<em><b>Display Names</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.DisplayName}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Display Names</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Display Names</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getSecurityConstraint_DisplayNames() - * @model type="org.eclipse.jst.j2ee.common.DisplayName" containment="true" - * @generated - */ - EList getDisplayNames(); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/Servlet.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/Servlet.java deleted file mode 100644 index 8c43cd520..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/Servlet.java +++ /dev/null @@ -1,195 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import java.util.List; -import java.util.Properties; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity; - -/** - * The servlet element contains the declarative data of a servlet. If a jsp-file is specified and the load-on-startup element is present, then the JSP should be precompiled and loaded. - * @since 1.0 - */ -public interface Servlet extends CompatibilityDescriptionGroup{ - - - /** - * Returns an unmodifiable list of the mappings that this - * servlet participates in. Since servletMappings is not - * a bi-directional attribute, if you want to add or delete a - * mapping, this must be done in the web-app. - * @return java.util.List - */ - public List getMappings(); - - /** - * Gets the Servlet parameters in java.util.Properties - * @return java.util.Properties - */ - public Properties getParamsAsProperties() ; - /** - * Fix the role-link on any contained role refs - * @param existingRoleName existing role name - * @param newRoleName new role name - */ - public void reSyncSecurityRoleRef(String existingRoleName, String newRoleName); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ServletName attribute - * The servlet-name element contains the canonical name of the servlet. - */ - String getServletName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ServletName attribute - */ - void setServletName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the LoadOnStartup attribute - * The load-on-startup element indicates that this servlet should be loaded on the - * startup of the web application. The optional contents of these element must be - * a positive integer indicating the order in which the servlet should be loaded. - * Lower integers are loaded before higher integers. If no value is specified, or - * if the value specified is not a positive integer, the container is free to load - * it at any time in the startup sequence. - - */ - Integer getLoadOnStartup(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.Servlet#getLoadOnStartup <em>Load On Startup</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Load On Startup</em>' attribute. - * @see #isSetLoadOnStartup() - * @see #unsetLoadOnStartup() - * @see #getLoadOnStartup() - * @generated - */ - void setLoadOnStartup(Integer value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.webapplication.Servlet#getLoadOnStartup <em>Load On Startup</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetLoadOnStartup() - * @see #getLoadOnStartup() - * @see #setLoadOnStartup(Integer) - * @generated - */ - void unsetLoadOnStartup(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.webapplication.Servlet#getLoadOnStartup <em>Load On Startup</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Load On Startup</em>' attribute is set. - * @see #unsetLoadOnStartup() - * @see #getLoadOnStartup() - * @see #setLoadOnStartup(Integer) - * @generated - */ - boolean isSetLoadOnStartup(); - - /** - * @generated This field/method will be replaced during code generation - * @return The WebApp reference - */ - WebApp getWebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the WebApp reference - */ - void setWebApp(WebApp value); - - /** - * @generated This field/method will be replaced during code generation - * @return The WebType reference - */ - WebType getWebType(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the WebType reference - */ - void setWebType(WebType value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Params references - */ - EList getParams(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of SecurityRoleRefs references - */ - EList getSecurityRoleRefs(); - - /** - * @generated This field/method will be replaced during code generation - * @return The RunAs reference - * If defined for a servlet, overrides the security identity used to call an EJB - * by that servlet in this web application. The role-name is one of the security - * roles already defined for this web application. - */ - RunAsSpecifiedIdentity getRunAs(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the RunAs reference - */ - void setRunAs(RunAsSpecifiedIdentity value); - - /** - * Returns the value of the '<em><b>Init Params</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.ParamValue}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Init Params</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Init Params</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getServlet_InitParams() - * @model type="org.eclipse.jst.j2ee.common.ParamValue" containment="true" - * @generated - */ - EList getInitParams(); - - /** - * return the java servlet class associated with this servlet - * @return reference to JavaClass - */ - public JavaClass getServletClass(); -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletMapping.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletMapping.java deleted file mode 100644 index 42ce1f23e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletMapping.java +++ /dev/null @@ -1,103 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * The servlet-mapping element defines a mapping between a servlet and a url pattern - * @since 1.0 - */ -public interface ServletMapping extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the UrlPattern attribute - * The url-pattern element contains the url pattern of the mapping. Must follow - * the rules specified in Section 10 of the Servlet API Specification. - */ - String getUrlPattern(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the UrlPattern attribute - */ - void setUrlPattern(String value); - - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * The servlet-name element contains the canonical name of the - * servlet. Each servlet name is unique within the web - * application. - * <!-- end-model-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getServletMapping_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.ServletMapping#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The WebApp reference - */ - WebApp getWebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the WebApp reference - */ - void setWebApp(WebApp value); - - /** - * @generated This field/method will be replaced during code generation - * @return The Servlet reference - */ - Servlet getServlet(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Servlet reference - */ - void setServlet(Servlet value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletType.java deleted file mode 100644 index 1a634b337..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletType.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - - -/** - * @generated - * @since 1.0 - */ -public interface ServletType extends WebType{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the ClassName attribute - */ - String getClassName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ClassName attribute - */ - void setClassName(String value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/SessionConfig.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/SessionConfig.java deleted file mode 100644 index 88bdaa0d8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/SessionConfig.java +++ /dev/null @@ -1,83 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * The session-config element defines the session parameters for this web application. - * @since 1.0 - */ -public interface SessionConfig extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the SessionTimeout attribute - * The session-timeout element defines the default session timeout interval for - * all sessions created in this web application. The specified timeout must be - * expressed in a whole number of minutes. - */ - int getSessionTimeout(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the SessionTimeout attribute - */ - void setSessionTimeout(int value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.webapplication.SessionConfig#getSessionTimeout <em>Session Timeout</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetSessionTimeout() - * @see #getSessionTimeout() - * @see #setSessionTimeout(int) - * @generated - */ - void unsetSessionTimeout(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.webapplication.SessionConfig#getSessionTimeout <em>Session Timeout</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Session Timeout</em>' attribute is set. - * @see #unsetSessionTimeout() - * @see #getSessionTimeout() - * @see #setSessionTimeout(int) - * @generated - */ - boolean isSetSessionTimeout(); - - /** - * @generated This field/method will be replaced during code generation - * @return The WebApp reference - */ - WebApp getWebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the WebApp reference - */ - void setWebApp(WebApp value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TagLibRef.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TagLibRef.java deleted file mode 100644 index eee5c9d16..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TagLibRef.java +++ /dev/null @@ -1,91 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * The taglib element is used to describe a JSP tag library. - * @version since J2EE1.4 deprecated, use org.eclipse.jst.j2ee.internal.jsp.TagLibRef - * @since 1.0 - */ -public interface TagLibRef extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the TaglibURI attribute - * The taglib-uri element describes a URI, relative to the location of the web.xml - * document, identifying a Tag Library used in the Web Application. - */ - String getTaglibURI(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the TaglibURI attribute - */ - void setTaglibURI(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the TaglibLocation attribute - * The taglib-location element contains the location (as a resource relative to - * the root of the web application) where to find the Tag Libary Description file - * for the tag library. - */ - String getTaglibLocation(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the TaglibLocation attribute - */ - void setTaglibLocation(String value); - - /** - * Returns the value of the '<em><b>Web App</b></em>' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.jst.j2ee.webapplication.WebApp#getTagLibs <em>Tag Libs</em>}'. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Web App</em>' container reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Web App</em>' container reference. - * @see #setWebApp(WebApp) - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getTagLibRef_WebApp() - * @see org.eclipse.jst.j2ee.webapplication.WebApp#getTagLibs - * @model opposite="tagLibs" - * @generated - */ - WebApp getWebApp(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.TagLibRef#getWebApp <em>Web App</em>}' container reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Web App</em>' container reference. - * @see #getWebApp() - * @generated - */ - void setWebApp(WebApp value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TransportGuaranteeType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TransportGuaranteeType.java deleted file mode 100644 index f5455f0ac..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TransportGuaranteeType.java +++ /dev/null @@ -1,157 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - - - -/** - *@since 1.0 - */ - -public final class TransportGuaranteeType extends AbstractEnumerator{ - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int NONE = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int INTEGRAL = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - public static final int CONFIDENTIAL = 2; - /** - * The '<em><b>NONE</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>NONE</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #NONE - * @generated - * @ordered - */ - public static final TransportGuaranteeType NONE_LITERAL = new TransportGuaranteeType(NONE, "NONE");//$NON-NLS-1$ - - /** - * The '<em><b>INTEGRAL</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>INTEGRAL</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #INTEGRAL - * @generated - * @ordered - */ - public static final TransportGuaranteeType INTEGRAL_LITERAL = new TransportGuaranteeType(INTEGRAL, "INTEGRAL");//$NON-NLS-1$ - - /** - * The '<em><b>CONFIDENTIAL</b></em>' literal object. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>CONFIDENTIAL</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #CONFIDENTIAL - * @generated - * @ordered - */ - public static final TransportGuaranteeType CONFIDENTIAL_LITERAL = new TransportGuaranteeType(CONFIDENTIAL, "CONFIDENTIAL");//$NON-NLS-1$ - - /** - * An array of all the '<em><b>Transport Guarantee Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final TransportGuaranteeType[] VALUES_ARRAY = - new TransportGuaranteeType[] { - NONE_LITERAL, - INTEGRAL_LITERAL, - CONFIDENTIAL_LITERAL, - }; - - /** - * A public read-only list of all the '<em><b>Transport Guarantee Type</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Transport Guarantee Type</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static TransportGuaranteeType get(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - TransportGuaranteeType result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Transport Guarantee Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * @generated - */ - public static TransportGuaranteeType get(int value) { - switch (value) { - case NONE: return NONE_LITERAL; - case INTEGRAL: return INTEGRAL_LITERAL; - case CONFIDENTIAL: return CONFIDENTIAL_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private TransportGuaranteeType(int value, String name) { - super(value, name); - } - -} //TransportGuaranteeType - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/URLPatternType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/URLPatternType.java deleted file mode 100644 index 748cce64b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/URLPatternType.java +++ /dev/null @@ -1,71 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * <!-- begin-user-doc --> - * @deprecated since 4/25/2003 use list on {@link org.eclipse.jst.j2ee.internal.webapplication.WebResourceCollection} - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webapplication.URLPatternType#getUrlPattern <em>Url Pattern</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webapplication.URLPatternType#getResCollection <em>Res Collection</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getURLPatternType() - * @model - * @generated - * @since 1.0 - */ -public interface URLPatternType extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the UrlPattern attribute - */ - String getUrlPattern(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the UrlPattern attribute - */ - void setUrlPattern(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The ResCollection reference - */ - WebResourceCollection getResCollection(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the ResCollection reference - */ - void setResCollection(WebResourceCollection value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/UserDataConstraint.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/UserDataConstraint.java deleted file mode 100644 index ebf228279..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/UserDataConstraint.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * The user-data-constraint element is used to indicate how data communicated between the client and container should be protected - * @since 1.0 - */ -public interface UserDataConstraint extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - * A description for the user data constraint. - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the TransportGuarantee attribute - * The transport-guarantee element specifies that the communication between client - * and server should be NONE, INTEGRAL, or CONFIDENTIAL. NONE means that the - * application does not require any - * transport guarantees. A value of INTEGRAL means that the application requires - * that the data sent between the client and server be sent in such a way that it - * can't be changed in transit. CONFIDENTIAL means that the application requires - * that the data be transmitted in a fashion that prevents other entities from - * observing the contents of the transmission. In most cases, the presence of the - * INTEGRAL or CONFIDENTIAL flag will indicate that the use of SSL is required. - */ - TransportGuaranteeType getTransportGuarantee(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.UserDataConstraint#getTransportGuarantee <em>Transport Guarantee</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Transport Guarantee</em>' attribute. - * @see org.eclipse.jst.j2ee.webapplication.TransportGuaranteeType - * @see #isSetTransportGuarantee() - * @see #unsetTransportGuarantee() - * @see #getTransportGuarantee() - * @generated - */ - void setTransportGuarantee(TransportGuaranteeType value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.webapplication.UserDataConstraint#getTransportGuarantee <em>Transport Guarantee</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetTransportGuarantee() - * @see #getTransportGuarantee() - * @see #setTransportGuarantee(TransportGuaranteeType) - * @generated - */ - void unsetTransportGuarantee(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.webapplication.UserDataConstraint#getTransportGuarantee <em>Transport Guarantee</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Transport Guarantee</em>' attribute is set. - * @see #unsetTransportGuarantee() - * @see #getTransportGuarantee() - * @see #setTransportGuarantee(TransportGuaranteeType) - * @generated - */ - boolean isSetTransportGuarantee(); - - /** - * @generated This field/method will be replaced during code generation - * @return The SecConstraint reference - */ - SecurityConstraint getSecConstraint(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the SecConstraint reference - */ - void setSecConstraint(SecurityConstraint value); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getUserDataConstraint_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebApp.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebApp.java deleted file mode 100644 index b6abae256..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebApp.java +++ /dev/null @@ -1,408 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.jsp.JSPConfig; - -/** - * The web-app element is the root of the deployment descriptor for - * a web application. - * @since 1.0 - */ -public interface WebApp extends JNDIEnvRefsGroup{ - - /** - * Returns true if there is a SecurityRole with the name passed - * @param name name of the SecurityRole - * @return boolean value - */ - public boolean containsSecurityRole(String name); - - /** - * Returns an ErrorPage if it has the specified error code - * @param code the error code - * @return refernce to ErrorPage - */ - ErrorPage getErrorPageByCode(Integer code) ; - - /** - * Returns an ErrorPage given an exceptionType - * @param exceptionType the java Exception Type - * @return refernce to ErrorPage - */ - ErrorPage getErrorPageByExceptionType(String exceptionType) ; - /** - * Finds a filter mapping for a specified filter. - * @param aFilter The filter to find the mappings for. - * @return The filter mapping for the specified filter, or null if no - * mapping exists for the filter. - */ - - FilterMapping getFilterMapping(Filter aFilter); - - /** - * Gets refernce to the instance of Filter which has the specified name - * @param name the name of the Filter to look for - * @return refernce to teh Filter - */ - public Filter getFilterNamed(String name); - /** - * Gets the names of the filters defined for this web application. - * @return A list of filter names (Strings). - */ - - List getFilterNames() ; - /** - * Returns the mime type for the specified extension - * @param extension to find the mime type for. - * @return String value - */ - String getMimeType(String extension); - - /** - * Returns the SecurityRole with the specified name - * @param roleName the name of the SecurityRole to be searched for - * @return reference to the model object SecurityRole - */ - public SecurityRole getSecurityRoleNamed(String roleName); - - /** - * Finds a servlet mapping for a specified servlet. - * @param aServlet The servlet to find the mappings for. - * @return The servlet mapping for the specified servlet, or null if no - * mapping exists for the servlet. - */ - ServletMapping getServletMapping(Servlet aServlet); - - /** - * Returns a Servlet with the specified name - * @param name the name of the Servlet to search for - * @return reference to the model object Servlet - */ - public Servlet getServletNamed(String name); - - /** - * Gets the names of the servlets defined for this web application. - * @return A list of servlet names (Strings). - */ - List getServletNames() ; - /** - * Return boolean indicating if this Web App was populated from an Servlet2.2 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ - public boolean isVersion2_2Descriptor(); - /** - * Return boolean indicating if this Web App was populated from an Servlet2.3 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ - public boolean isVersion2_3Descriptor(); - /** - * Rename the security role if it exists; for each servlet, fix the role-link on any contained role - * refs - * @param existingRoleName curent security role name - * @param newRoleName new security role name - */ - public void renameSecurityRole(String existingRoleName, String newRoleName); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Distributable attribute - * The distributable element, by its presence in a web application deployment - * descriptor, indicates that this web application is programmed appropriately to - * be deployed into a distributed servlet container - */ - boolean isDistributable(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Distributable attribute - */ - void setDistributable(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.webapplication.WebApp#isDistributable <em>Distributable</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetDistributable() - * @see #isDistributable() - * @see #setDistributable(boolean) - * @generated - */ - void unsetDistributable(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.webapplication.WebApp#isDistributable <em>Distributable</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Distributable</em>' attribute is set. - * @see #unsetDistributable() - * @see #isDistributable() - * @see #setDistributable(boolean) - * @generated - */ - boolean isSetDistributable(); - - /** - * Returns the value of the '<em><b>Version</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Version</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Version</em>' attribute. - * @see #setVersion(String) - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getWebApp_Version() - * @model - * @generated - */ - String getVersion(); - - /** - * This returns the module version id. Compare with J2EEVersionConstants to determine module level - *@throws IllegalStateException the exception is thrown if a problem is encountered in finding the - *module version. * - * @return the module version id represented in the int e.g. 22, 23, 24 - */ - public int getVersionID() throws IllegalStateException ; - /** - *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level - *@throws IllegalStateException the exception is thrown if a problem is encountered in finding the - *j2ee version. - *@return the j2ee version represented in the int - */ - public int getJ2EEVersionID() throws IllegalStateException ; - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.WebApp#getVersion <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Version</em>' attribute. - * @see #getVersion() - * @generated - */ - void setVersion(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Contexts references - */ - EList getContexts(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of ErrorPages references - */ - EList getErrorPages(); - - /** - * @generated This field/method will be replaced during code generation - * @return The FileList reference - */ - WelcomeFileList getFileList(); - - /** - * @deprecated : Use getEnvironmentProperties() - * @return reference to EList - */ - EList getEnvEntries(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the FileList reference - */ - void setFileList(WelcomeFileList value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of TagLibs references - */ - EList getTagLibs(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Constraints references - */ - EList getConstraints(); - - /** - * @generated This field/method will be replaced during code generation - * @return The LoginConfig reference - */ - LoginConfig getLoginConfig(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the LoginConfig reference - */ - void setLoginConfig(LoginConfig value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of MimeMappings references - */ - EList getMimeMappings(); - - /** - * @generated This field/method will be replaced during code generation - * @return The SessionConfig reference - */ - SessionConfig getSessionConfig(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the SessionConfig reference - */ - void setSessionConfig(SessionConfig value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of ServletMappings references - */ - EList getServletMappings(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Servlets references - */ - EList getServlets(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of SecurityRoles references - */ - EList getSecurityRoles(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Filters references - */ - EList getFilters(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of FilterMappings references - * Filter mappings defined for the web app - */ - EList getFilterMappings(); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of Listeners references - * The listeners collection contains deployment properties for a web application - * listener beans in the web app. - */ - EList getListeners(); - - /** - * Returns the value of the '<em><b>Context Params</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.ParamValue}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Context Params</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Context Params</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getWebApp_ContextParams() - * @model type="org.eclipse.jst.j2ee.common.ParamValue" containment="true" - * @generated - */ - EList getContextParams(); - - /** - * Returns the value of the '<em><b>Jsp Config</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Jsp Config</em>' reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Jsp Config</em>' containment reference. - * @see #setJspConfig(JSPConfig) - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getWebApp_JspConfig() - * @model containment="true" - * @generated - */ - JSPConfig getJspConfig(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.WebApp#getJspConfig <em>Jsp Config</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Jsp Config</em>' containment reference. - * @see #getJspConfig() - * @generated - */ - void setJspConfig(JSPConfig value); - - /** - * Returns the value of the '<em><b>Message Destinations</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.MessageDestination}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Message Destinations</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Message Destinations</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getWebApp_MessageDestinations() - * @model type="org.eclipse.jst.j2ee.common.MessageDestination" containment="true" - * @generated - */ - EList getMessageDestinations(); - - /** - * Returns the value of the '<em><b>Local Encoding Mapping List</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Local Encoding Mapping List</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Local Encoding Mapping List</em>' containment reference. - * @see #setLocalEncodingMappingList(LocalEncodingMappingList) - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getWebApp_LocalEncodingMappingList() - * @model containment="true" - * @generated - */ - LocalEncodingMappingList getLocalEncodingMappingList(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webapplication.WebApp#getLocalEncodingMappingList <em>Local Encoding Mapping List</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Local Encoding Mapping List</em>' containment reference. - * @see #getLocalEncodingMappingList() - * @generated - */ - void setLocalEncodingMappingList(LocalEncodingMappingList value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebAppResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebAppResource.java deleted file mode 100644 index d87771ce2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebAppResource.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 18, 2003 - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.jst.j2ee.internal.common.XMLResource; - -/** - * @author schacher - * @since 1.0 - */ -public interface WebAppResource extends XMLResource { - - /** - * Returns reference to the model object WebApp - * @return reference to model object WebApp - */ - WebApp getWebApp(); - /** - * Return true if this Resource supports the Web 2.2 spec. - * @return boolean value - */ - boolean isWeb2_2(); - /** - * Return true if this Resource supports the Web 2.3 spec. - * @return boolean value - */ - boolean isWeb2_3(); - /** - * Return true if this Resource supports the Web 2.4 spec. - * @return boolean value - */ - boolean isWeb2_4(); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebResourceCollection.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebResourceCollection.java deleted file mode 100644 index 6112ee7ee..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebResourceCollection.java +++ /dev/null @@ -1,157 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * @generated - * The web-resource-collection element is used to identify a subset of the resources and HTTP methods on those resources within a web application to which a security constraint applies. If no HTTP methods are specified, then the security constraint applies to all HTTP methods. - * @since 1.0 - */ -public interface WebResourceCollection extends EObject{ - - /** - * Adds instance of HTTPMethodType - * @param httpMethod name of the httpMethod to add - */ - public void addHTTP(String httpMethod); - - /** - * Adds instance of URLPatternType - * @param urlPattern name of the url to add - */ - public void addURL(String urlPattern); - /** - * @generated This field/method will be replaced during code generation - * @return The value of the WebResourceName attribute - * The web-resource-name contains the name of this web resource collection - */ - String getWebResourceName(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the WebResourceName attribute - */ - void setWebResourceName(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The value of the Description attribute - */ - String getDescription(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the Description attribute - */ - void setDescription(String value); - - /** - * Returns the value of the '<em><b>Url Pattern</b></em>' attribute list. - * The list contents are of type {@link java.lang.String}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Url Pattern</em>' attribute list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Url Pattern</em>' attribute list. - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getWebResourceCollection_UrlPattern() - * @model type="java.lang.String" unique="false" required="true" - * @generated - */ - EList getUrlPattern(); - - /** - * Returns the value of the '<em><b>Http Method</b></em>' attribute list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum}. - * The literals are from the enumeration {@link org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Http Method</em>' attribute list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Http Method</em>' attribute list. - * @see org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getWebResourceCollection_HttpMethod() - * @model type="org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum" - * @generated - */ - EList getHttpMethod(); - - /** - * @deprecated : Use getHttpMethod(); - * @return List of HttpMethods - */ - EList getHTTPs(); - - /** - * @generated This field/method will be replaced during code generation - * @return The SecConstraint reference - */ - - - SecurityConstraint getSecConstraint(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the SecConstraint reference - */ - void setSecConstraint(SecurityConstraint value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of URLs references - */ - EList getURLs(); - - /** - * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.Description}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * @version J2EE1.4 - * <!-- end-model-doc --> - * @return the value of the '<em>Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage#getWebResourceCollection_Descriptions() - * @model type="org.eclipse.jst.j2ee.common.Description" containment="true" - * @generated - */ - EList getDescriptions(); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebType.java deleted file mode 100644 index 1144e6434..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebType.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * @generated - * @since 1.0 - */ -public interface WebType extends EObject { - - /** - * Returns true if the type denotes a JSP - * @return boolean value - */ - public boolean isJspType(); - - /** - * Returns true if the type denotes a servlet - * @return boolean value - */ - public boolean isServletType(); -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebapplicationFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebapplicationFactory.java deleted file mode 100644 index 95ed9df22..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebapplicationFactory.java +++ /dev/null @@ -1,221 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EFactory; -/** - * @generated - * @since 1.0 - */ -public interface WebapplicationFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - WebapplicationFactory eINSTANCE = new org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationFactoryImpl(); - - /** - * @generated This field/method will be replaced during code generation - * @return WebApp value - */ - WebApp createWebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @return ContextParam value - */ - ContextParam createContextParam(); - - /** - * @generated This field/method will be replaced during code generation - * @return ErrorPage value - */ - ErrorPage createErrorPage(); - - /** - * @generated This field/method will be replaced during code generation - * @return ExceptionTypeErrorPage value - */ - ExceptionTypeErrorPage createExceptionTypeErrorPage(); - - /** - * @generated This field/method will be replaced during code generation - * @return ErrorCodeErrorPage value - */ - ErrorCodeErrorPage createErrorCodeErrorPage(); - - /** - * @generated This field/method will be replaced during code generation - * @return WelcomeFileList value - */ - WelcomeFileList createWelcomeFileList(); - - /** - * @generated This field/method will be replaced during code generation - * @return WelcomeFile value - */ - WelcomeFile createWelcomeFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return TagLibRef value - */ - TagLibRef createTagLibRef(); - - /** - * @generated This field/method will be replaced during code generation - * @return SecurityConstraint value - */ - SecurityConstraint createSecurityConstraint(); - - /** - * @generated This field/method will be replaced during code generation - * @return WebResourceCollection value - */ - WebResourceCollection createWebResourceCollection(); - - /** - * @generated This field/method will be replaced during code generation - * @return URLPatternType value - */ - URLPatternType createURLPatternType(); - - /** - * @generated This field/method will be replaced during code generation - * @return AuthConstraint value - */ - AuthConstraint createAuthConstraint(); - - /** - * @generated This field/method will be replaced during code generation - * @return UserDataConstraint value - */ - UserDataConstraint createUserDataConstraint(); - - /** - * @generated This field/method will be replaced during code generation - * @return LoginConfig value - */ - LoginConfig createLoginConfig(); - - /** - * @generated This field/method will be replaced during code generation - * @return FormLoginConfig value - */ - FormLoginConfig createFormLoginConfig(); - - /** - * @generated This field/method will be replaced during code generation - * @return MimeMapping value - */ - MimeMapping createMimeMapping(); - - /** - * @generated This field/method will be replaced during code generation - * @return SessionConfig value - */ - SessionConfig createSessionConfig(); - - /** - * @generated This field/method will be replaced during code generation - * @return ServletMapping value - */ - ServletMapping createServletMapping(); - - /** - * @generated This field/method will be replaced during code generation - * @return Servlet value - */ - Servlet createServlet(); - - /** - * @generated This field/method will be replaced during code generation - * @return ServletType value - */ - ServletType createServletType(); - - /** - * @generated This field/method will be replaced during code generation - * @return JSPType value - */ - JSPType createJSPType(); - - /** - * @generated This field/method will be replaced during code generation - * @return InitParam value - */ - InitParam createInitParam(); - - /** - * @generated This field/method will be replaced during code generation - * @return Filter value - */ - Filter createFilter(); - - /** - * @generated This field/method will be replaced during code generation - * @return FilterMapping value - */ - FilterMapping createFilterMapping(); - - /** - * Returns a new object of class '<em>Local Encoding Mapping List</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Local Encoding Mapping List</em>'. - * @generated - */ - LocalEncodingMappingList createLocalEncodingMappingList(); - - /** - * Returns a new object of class '<em>Local Encoding Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Local Encoding Mapping</em>'. - * @generated - */ - LocalEncodingMapping createLocalEncodingMapping(); - - /** - * Returns a new object of class '<em>HTTP Method Type</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>HTTP Method Type</em>'. - * @generated - */ - HTTPMethodType createHTTPMethodType(); - - /** - * @generated This field/method will be replaced during code generation - * @return RoleNameType value - */ - RoleNameType createRoleNameType(); - - /** - * <!-- begin-user-doc --> - * This method is NOT api, and may change in future releases. - * EMF package classes should be access via their "eINSTANCE" static fields - * <!-- end-user-doc --> - * @generated This field/method will be replaced during code generation. - * @return reference to WebapplicationPackage - */ - WebapplicationPackage getWebapplicationPackage(); - -} - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebapplicationPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebapplicationPackage.java deleted file mode 100644 index 5ef5add04..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebapplicationPackage.java +++ /dev/null @@ -1,2232 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jst.j2ee.common.CommonPackage; - - -/** - * <p> - * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. - * </p> - * @since 1.0 - */ -public interface WebapplicationPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "webapplication";//$NON-NLS-1$ - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP = 0; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__ICONS = CommonPackage.JNDI_ENV_REFS_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__DISPLAY_NAMES = CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__DESCRIPTIONS = CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__SMALL_ICON = CommonPackage.JNDI_ENV_REFS_GROUP__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__LARGE_ICON = CommonPackage.JNDI_ENV_REFS_GROUP__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__DESCRIPTION = CommonPackage.JNDI_ENV_REFS_GROUP__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__DISPLAY_NAME = CommonPackage.JNDI_ENV_REFS_GROUP__DISPLAY_NAME; - /** - * The feature id for the '<em><b>Environment Properties</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__ENVIRONMENT_PROPERTIES = CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__RESOURCE_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__EJB_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__RESOURCE_ENV_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__EJB_LOCAL_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS; - /** - * The feature id for the '<em><b>Message Destination Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__MESSAGE_DESTINATION_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS; - - /** - * The feature id for the '<em><b>Service Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__SERVICE_REFS = CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__DISTRIBUTABLE = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 0; - /** - * The feature id for the '<em><b>Version</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__VERSION = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__CONTEXTS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__ERROR_PAGES = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__FILE_LIST = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__TAG_LIBS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__CONSTRAINTS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 6; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__LOGIN_CONFIG = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 7; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__MIME_MAPPINGS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 8; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__SESSION_CONFIG = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 9; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__SERVLET_MAPPINGS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 10; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__SERVLETS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 11; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__SECURITY_ROLES = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 12; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__FILTERS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 13; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__FILTER_MAPPINGS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 14; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_APP__LISTENERS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 15; - /** - * The feature id for the '<em><b>Context Params</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__CONTEXT_PARAMS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 16; - - /** - * The feature id for the '<em><b>Jsp Config</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__JSP_CONFIG = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 17; - - /** - * The feature id for the '<em><b>Message Destinations</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__MESSAGE_DESTINATIONS = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 18; - - /** - * The feature id for the '<em><b>Local Encoding Mapping List</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP__LOCAL_ENCODING_MAPPING_LIST = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 19; - - /** - * The number of structural features of the the '<em>Web App</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_APP_FEATURE_COUNT = CommonPackage.JNDI_ENV_REFS_GROUP_FEATURE_COUNT + 20; - - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTEXT_PARAM = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTEXT_PARAM__PARAM_NAME = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTEXT_PARAM__PARAM_VALUE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTEXT_PARAM__DESCRIPTION = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int CONTEXT_PARAM__WEB_APP = 3; - - /** - * The number of structural features of the the '<em>Context Param</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONTEXT_PARAM_FEATURE_COUNT = 4; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ERROR_PAGE = 7; - /** - * @generated This field/method will be replaced during code generation. - */ - int EXCEPTION_TYPE_ERROR_PAGE = 22; - /** - * @generated This field/method will be replaced during code generation. - */ - int ERROR_CODE_ERROR_PAGE = 23; - /** - * @generated This field/method will be replaced during code generation. - */ - int WELCOME_FILE_LIST = 6; - /** - * @generated This field/method will be replaced during code generation. - */ - int WELCOME_FILE = 21; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB_REF = 8; - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_CONSTRAINT = 9; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_RESOURCE_COLLECTION = 10; - /** - * @generated This field/method will be replaced during code generation. - */ - int URL_PATTERN_TYPE = 19; - /** - * @generated This field/method will be replaced during code generation. - */ - int HTTP_METHOD_TYPE = 28; - /** - * @generated This field/method will be replaced during code generation. - */ - - - /** - * @generated This field/method will be replaced during code generation. - */ - int AUTH_CONSTRAINT = 11; - /** - * @generated This field/method will be replaced during code generation. - */ - int USER_DATA_CONSTRAINT = 12; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOGIN_CONFIG = 13; - /** - * @generated This field/method will be replaced during code generation. - */ - int FORM_LOGIN_CONFIG = 14; - /** - * @generated This field/method will be replaced during code generation. - */ - int MIME_MAPPING = 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION_CONFIG = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET_MAPPING = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET = 2; - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVLET__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVLET__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVLET__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__SERVLET_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__LOAD_ON_STARTUP = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__WEB_APP = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__WEB_TYPE = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__PARAMS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__SECURITY_ROLE_REFS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 5; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET__RUN_AS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 6; - - /** - * The feature id for the '<em><b>Init Params</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVLET__INIT_PARAMS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 7; - - /** - * The number of structural features of the the '<em>Servlet</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVLET_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 8; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET_MAPPING__URL_PATTERN = 0; - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVLET_MAPPING__NAME = 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET_MAPPING__WEB_APP = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET_MAPPING__SERVLET = 3; - - /** - * The number of structural features of the the '<em>Servlet Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVLET_MAPPING_FEATURE_COUNT = 4; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION_CONFIG__SESSION_TIMEOUT = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int SESSION_CONFIG__WEB_APP = 1; - - /** - * The number of structural features of the the '<em>Session Config</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SESSION_CONFIG_FEATURE_COUNT = 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int MIME_MAPPING__EXTENSION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int MIME_MAPPING__MIME_TYPE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int MIME_MAPPING__WEB_APP = 2; - - /** - * The number of structural features of the the '<em>Mime Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_MAPPING_FEATURE_COUNT = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WELCOME_FILE_LIST__WEB_APP = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int WELCOME_FILE_LIST__FILE = 1; - - /** - * The number of structural features of the the '<em>Welcome File List</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WELCOME_FILE_LIST_FEATURE_COUNT = 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ERROR_PAGE__LOCATION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int ERROR_PAGE__WEB_APP = 1; - - /** - * The number of structural features of the the '<em>Error Page</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ERROR_PAGE_FEATURE_COUNT = 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB_REF__TAGLIB_URI = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int TAG_LIB_REF__TAGLIB_LOCATION = 1; - /** - * The feature id for the '<em><b>Web App</b></em>' container reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB_REF__WEB_APP = 2; - - /** - * The number of structural features of the the '<em>Tag Lib Ref</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TAG_LIB_REF_FEATURE_COUNT = 3; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_CONSTRAINT__DISPLAY_NAME = 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_CONSTRAINT__WEB_APP = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_CONSTRAINT__AUTH_CONSTRAINT = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT = 4; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_CONSTRAINT__DISPLAY_NAMES = 5; - - /** - * The number of structural features of the the '<em>Security Constraint</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SECURITY_CONSTRAINT_FEATURE_COUNT = 6; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_RESOURCE_COLLECTION__DESCRIPTION = 1; - /** - * The feature id for the '<em><b>Url Pattern</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_RESOURCE_COLLECTION__URL_PATTERN = 2; - - /** - * The feature id for the '<em><b>Http Method</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_RESOURCE_COLLECTION__HTTP_METHOD = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT = 4; - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_RESOURCE_COLLECTION__UR_LS = 5; - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_RESOURCE_COLLECTION__DESCRIPTIONS = 6; - - /** - * The feature id for the '<em><b>HTT Ps</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_RESOURCE_COLLECTION__HTT_PS = 7; - - /** - * The number of structural features of the the '<em>Web Resource Collection</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_RESOURCE_COLLECTION_FEATURE_COUNT = 8; - - /** - * @generated This field/method will be replaced during code generation. - */ - int AUTH_CONSTRAINT__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int AUTH_CONSTRAINT__ROLES = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int AUTH_CONSTRAINT__SEC_CONSTRAINT = 2; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUTH_CONSTRAINT__DESCRIPTIONS = 3; - - /** - * The number of structural features of the the '<em>Auth Constraint</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int AUTH_CONSTRAINT_FEATURE_COUNT = 4; - - /** - * @generated This field/method will be replaced during code generation. - */ - int USER_DATA_CONSTRAINT__DESCRIPTION = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int USER_DATA_CONSTRAINT__SEC_CONSTRAINT = 2; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int USER_DATA_CONSTRAINT__DESCRIPTIONS = 3; - - /** - * The number of structural features of the the '<em>User Data Constraint</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int USER_DATA_CONSTRAINT_FEATURE_COUNT = 4; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOGIN_CONFIG__AUTH_METHOD = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOGIN_CONFIG__REALM_NAME = 1; - /** - * The feature id for the '<em><b>Authorization Method</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LOGIN_CONFIG__AUTHORIZATION_METHOD = 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int LOGIN_CONFIG__WEB_APP = 3; - /** - * @generated This field/method will be replaced during code generation. - */ - int LOGIN_CONFIG__FORM_LOGIN_CONFIG = 4; - - /** - * The number of structural features of the the '<em>Login Config</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LOGIN_CONFIG_FEATURE_COUNT = 5; - - /** - * @generated This field/method will be replaced during code generation. - */ - int FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int FORM_LOGIN_CONFIG__FORM_ERROR_PAGE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int FORM_LOGIN_CONFIG__LOGIN_CONFIG = 2; - - /** - * The number of structural features of the the '<em>Form Login Config</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FORM_LOGIN_CONFIG_FEATURE_COUNT = 3; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WEB_TYPE = 16; - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET_TYPE = 17; - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TYPE = 18; - /** - * @generated This field/method will be replaced during code generation. - */ - int INIT_PARAM = 15; - /** - * @generated This field/method will be replaced during code generation. - */ - int INIT_PARAM__PARAM_NAME = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int INIT_PARAM__PARAM_VALUE = 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int INIT_PARAM__DESCRIPTION = 2; - /** - * The number of structural features of the the '<em>Init Param</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INIT_PARAM_FEATURE_COUNT = 3; - - /** - * The number of structural features of the the '<em>Web Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_TYPE_FEATURE_COUNT = 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - int SERVLET_TYPE__CLASS_NAME = WEB_TYPE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>Servlet Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVLET_TYPE_FEATURE_COUNT = WEB_TYPE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int JSP_TYPE__JSP_FILE = WEB_TYPE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>JSP Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JSP_TYPE_FEATURE_COUNT = WEB_TYPE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int URL_PATTERN_TYPE__URL_PATTERN = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int URL_PATTERN_TYPE__RES_COLLECTION = 1; - - /** - * The number of structural features of the the '<em>URL Pattern Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int URL_PATTERN_TYPE_FEATURE_COUNT = 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER = 25; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER_MAPPING = 24; - /** - * @generated This field/method will be replaced during code generation. - */ - int ROLE_NAME_TYPE = 20; - /** - * @generated This field/method will be replaced during code generation. - */ - int ROLE_NAME_TYPE__ROLE_NAME = 0; - - /** - * The number of structural features of the the '<em>Role Name Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ROLE_NAME_TYPE_FEATURE_COUNT = 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int WELCOME_FILE__WELCOME_FILE = 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int WELCOME_FILE__FILE_LIST = 1; - - /** - * The number of structural features of the the '<em>Welcome File</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WELCOME_FILE_FEATURE_COUNT = 2; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EXCEPTION_TYPE_ERROR_PAGE__LOCATION = ERROR_PAGE__LOCATION; - /** - * @generated This field/method will be replaced during code generation. - */ - int EXCEPTION_TYPE_ERROR_PAGE__WEB_APP = ERROR_PAGE__WEB_APP; - - /** - * @generated This field/method will be replaced during code generation. - */ - int EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE = ERROR_PAGE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Exception Type Error Page</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXCEPTION_TYPE_ERROR_PAGE_FEATURE_COUNT = ERROR_PAGE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ERROR_CODE_ERROR_PAGE__LOCATION = ERROR_PAGE__LOCATION; - /** - * @generated This field/method will be replaced during code generation. - */ - int ERROR_CODE_ERROR_PAGE__WEB_APP = ERROR_PAGE__WEB_APP; - - /** - * @generated This field/method will be replaced during code generation. - */ - int ERROR_CODE_ERROR_PAGE__ERROR_CODE = ERROR_PAGE_FEATURE_COUNT + 0; - /** - * The number of structural features of the the '<em>Error Code Error Page</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ERROR_CODE_ERROR_PAGE_FEATURE_COUNT = ERROR_PAGE_FEATURE_COUNT + 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER_MAPPING__URL_PATTERN = 0; - /** - * The feature id for the '<em><b>Dispatcher Type</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FILTER_MAPPING__DISPATCHER_TYPE = 1; - - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER_MAPPING__FILTER = 2; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER_MAPPING__SERVLET = 3; - - /** - * The number of structural features of the the '<em>Filter Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FILTER_MAPPING_FEATURE_COUNT = 4; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FILTER__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FILTER__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FILTER__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER__NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER__INIT_PARAMS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - /** - * @generated This field/method will be replaced during code generation. - */ - int FILTER__FILTER_CLASS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Init Param Values</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FILTER__INIT_PARAM_VALUES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * The number of structural features of the the '<em>Filter</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int FILTER_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webapplication.internal.impl.LocalEncodingMappingListImpl <em>Local Encoding Mapping List</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webapplication.internal.impl.LocalEncodingMappingListImpl - * @see org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl#getLocalEncodingMappingList() - * @generated - */ - int LOCAL_ENCODING_MAPPING_LIST = 26; - - /** - * The feature id for the '<em><b>Local Encoding Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS = 0; - - /** - * The number of structural features of the the '<em>Local Encoding Mapping List</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LOCAL_ENCODING_MAPPING_LIST_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webapplication.internal.impl.LocalEncodingMappingImpl <em>Local Encoding Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webapplication.internal.impl.LocalEncodingMappingImpl - * @see org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl#getLocalEncodingMapping() - * @generated - */ - int LOCAL_ENCODING_MAPPING = 27; - - /** - * The feature id for the '<em><b>Locale</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LOCAL_ENCODING_MAPPING__LOCALE = 0; - - /** - * The feature id for the '<em><b>Encoding</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LOCAL_ENCODING_MAPPING__ENCODING = 1; - - /** - * The number of structural features of the the '<em>Local Encoding Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int LOCAL_ENCODING_MAPPING_FEATURE_COUNT = 2; - - /** - * The feature id for the '<em><b>Http Method</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_METHOD_TYPE__HTTP_METHOD = 0; - - /** - * The number of structural features of the the '<em>HTTP Method Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_METHOD_TYPE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webapplication.ResAuthServletType <em>Res Auth Servlet Type</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webapplication.ResAuthServletType - * @see org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl#getResAuthServletType() - * @generated - */ - int RES_AUTH_SERVLET_TYPE = 29; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum <em>HTTP Method Type Enum</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum - * @see org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl#getHTTPMethodTypeEnum() - * @generated - */ - int HTTP_METHOD_TYPE_ENUM = 30; - - /** - * @generated This field/method will be replaced during code generation. - */ - int TRANSPORT_GUARANTEE_TYPE = 31; - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webapplication.DispatcherType <em>Dispatcher Type</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webapplication.DispatcherType - * @see org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl#getDispatcherType() - * @generated - */ - int DISPATCHER_TYPE = 32; - - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webapplication.AuthMethodKind <em>Auth Method Kind</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webapplication.AuthMethodKind - * @see org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl#getAuthMethodKind() - * @generated - */ - int AUTH_METHOD_KIND = 33; - - - /** - * @generated This field/method will be replaced during code generation. - */ - String eNS_URI = "webapplication.xmi";//$NON-NLS-1$ - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.webapplication";//$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - WebapplicationPackage eINSTANCE = org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl.init(); - - /** - * @generated This field/method will be replaced during code generation - * @return WebApp object - */ - EClass getWebApp(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EAttribute getWebApp_Distributable(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webapplication.WebApp#getVersion <em>Version</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Version</em>'. - * @see org.eclipse.jst.j2ee.webapplication.WebApp#getVersion() - * @see #getWebApp() - * @generated - */ - /** - * @return - */ - EAttribute getWebApp_Version(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_Contexts(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_ErrorPages(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_FileList(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_TagLibs(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_Constraints(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_LoginConfig(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_MimeMappings(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_SessionConfig(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_ServletMappings(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_Servlets(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_SecurityRoles(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_Filters(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_FilterMappings(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return - */ - EReference getWebApp_Listeners(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.WebApp#getContextParams <em>Context Params</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Context Params</em>'. - * @see org.eclipse.jst.j2ee.webapplication.WebApp#getContextParams() - * @see #getWebApp() - * @generated - */ - /** - * @return - */ - EReference getWebApp_ContextParams(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webapplication.WebApp#getJspConfig <em>Jsp Config</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Jsp Config</em>'. - * @see org.eclipse.jst.j2ee.webapplication.WebApp#getJspConfig() - * @see #getWebApp() - * @generated - */ - /** - * @return - */ - EReference getWebApp_JspConfig(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.WebApp#getMessageDestinations <em>Message Destinations</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Message Destinations</em>'. - * @see org.eclipse.jst.j2ee.webapplication.WebApp#getMessageDestinations() - * @see #getWebApp() - * @generated - */ - /** - * @return - */ - EReference getWebApp_MessageDestinations(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webapplication.WebApp#getLocalEncodingMappingList <em>Local Encoding Mapping List</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Local Encoding Mapping List</em>'. - * @see org.eclipse.jst.j2ee.webapplication.WebApp#getLocalEncodingMappingList() - * @see #getWebApp() - * @generated - */ - /** - * @return - */ - EReference getWebApp_LocalEncodingMappingList(); - - /** - * @generated This field/method will be replaced during code generation - * @return ContextParam object - */ - EClass getContextParam(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return Name - */ - EAttribute getContextParam_ParamName(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return Value - */ - EAttribute getContextParam_ParamValue(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return Description - */ - EAttribute getContextParam_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return WebApp - */ - EReference getContextParam_WebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @return ErrorPage object - */ - EClass getErrorPage(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return Location - */ - EAttribute getErrorPage_Location(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return WebApp - */ - EReference getErrorPage_WebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @return ExceptionTypeErrorPage object - */ - EClass getExceptionTypeErrorPage(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getExceptionTypeErrorPage_ExceptionType(); - - /** - * @generated This field/method will be replaced during code generation - * @return ErrorCodeErrorPage object - */ - /** - * @return ErrorCodeErrorPage object - */ - EClass getErrorCodeErrorPage(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return ErrorCode - */ - EAttribute getErrorCodeErrorPage_ErrorCode(); - - /** - * @generated This field/method will be replaced during code generation - * @return WelcomeFileList object - */ - EClass getWelcomeFileList(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getWelcomeFileList_WebApp(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getWelcomeFileList_File(); - - /** - * @generated This field/method will be replaced during code generation - * @return WelcomeFile object - */ - EClass getWelcomeFile(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getWelcomeFile_WelcomeFile(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getWelcomeFile_FileList(); - - /** - * @generated This field/method will be replaced during code generation - * @return TagLibRef object - */ - EClass getTagLibRef(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getTagLibRef_TaglibURI(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getTagLibRef_TaglibLocation(); - - /** - * Returns the meta object for the container reference '{@link org.eclipse.jst.j2ee.webapplication.TagLibRef#getWebApp <em>Web App</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the container reference '<em>Web App</em>'. - * @see org.eclipse.jst.j2ee.webapplication.TagLibRef#getWebApp() - * @see #getTagLibRef() - * @generated - */ - EReference getTagLibRef_WebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @return SecurityConstraint object - */ - EClass getSecurityConstraint(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webapplication.SecurityConstraint#getDisplayName <em>Display Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Display Name</em>'. - * @see org.eclipse.jst.j2ee.webapplication.SecurityConstraint#getDisplayName() - * @see #getSecurityConstraint() - * @generated - */ - EAttribute getSecurityConstraint_DisplayName(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getSecurityConstraint_WebApp(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getSecurityConstraint_WebResourceCollections(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getSecurityConstraint_AuthConstraint(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getSecurityConstraint_UserDataConstraint(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.SecurityConstraint#getDisplayNames <em>Display Names</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Display Names</em>'. - * @see org.eclipse.jst.j2ee.webapplication.SecurityConstraint#getDisplayNames() - * @see #getSecurityConstraint() - * @generated - */ - EReference getSecurityConstraint_DisplayNames(); - - /** - * @generated This field/method will be replaced during code generation - * @return WebResourceCollection object - */ - EClass getWebResourceCollection(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getWebResourceCollection_WebResourceName(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getWebResourceCollection_Description(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.webapplication.WebResourceCollection#getUrlPattern <em>Url Pattern</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute list '<em>Url Pattern</em>'. - * @see org.eclipse.jst.j2ee.webapplication.WebResourceCollection#getUrlPattern() - * @see #getWebResourceCollection() - * @generated - */ - EAttribute getWebResourceCollection_UrlPattern(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.webapplication.WebResourceCollection#getHttpMethod <em>Http Method</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute list '<em>Http Method</em>'. - * @see org.eclipse.jst.j2ee.webapplication.WebResourceCollection#getHttpMethod() - * @see #getWebResourceCollection() - * @generated - */ - EAttribute getWebResourceCollection_HttpMethod(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getWebResourceCollection_SecConstraint(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.WebResourceCollection#getURLs <em>UR Ls</em>}'. - * <!-- begin-user-doc --> - * @deprecated since 4/25/2003 use {@link #getWebResourceCollection_UrlPattern()} - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>UR Ls</em>'. - * @see org.eclipse.jst.j2ee.webapplication.WebResourceCollection#getURLs() - * @see #getWebResourceCollection() - * @generated - */ - EReference getWebResourceCollection_URLs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.WebResourceCollection#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.webapplication.WebResourceCollection#getDescriptions() - * @see #getWebResourceCollection() - * @generated - */ - EReference getWebResourceCollection_Descriptions(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.WebResourceCollection#getHTTPs <em>HTT Ps</em>}'. - * <!-- begin-user-doc --> - * @deprecated since 4/25/2003 use {@link #getWebResourceCollection_HttpMethod()} - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>HTT Ps</em>'. - * @see org.eclipse.jst.j2ee.webapplication.WebResourceCollection#getHTTPs() - * @see #getWebResourceCollection() - * @generated - */ - EReference getWebResourceCollection_HTTPs(); - - /** - * @generated This field/method will be replaced during code generation - * @return URLPatternType object - */ - EClass getURLPatternType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getURLPatternType_UrlPattern(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getURLPatternType_ResCollection(); - - /** - * @generated This field/method will be replaced during code generation - * @return HTTPMethodType object - */ - EClass getHTTPMethodType(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webapplication.HTTPMethodType#getHttpMethod <em>Http Method</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Http Method</em>'. - * @see org.eclipse.jst.j2ee.webapplication.HTTPMethodType#getHttpMethod() - * @see #getHTTPMethodType() - * @generated - */ - EAttribute getHTTPMethodType_HttpMethod(); - - /** - * @generated This field/method will be replaced during code generation - * @return AuthConstraint object - */ - EClass getAuthConstraint(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return Description - */ - EAttribute getAuthConstraint_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return Roles - */ - EAttribute getAuthConstraint_Roles(); - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @return SecConstraint object - */ - EReference getAuthConstraint_SecConstraint(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.AuthConstraint#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.webapplication.AuthConstraint#getDescriptions() - * @see #getAuthConstraint() - * @generated - */ - /** - * @return Descriptions - */ - EReference getAuthConstraint_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return UserDataConstraint object - */ - EClass getUserDataConstraint(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getUserDataConstraint_Description(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getUserDataConstraint_TransportGuarantee(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getUserDataConstraint_SecConstraint(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.UserDataConstraint#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.j2ee.webapplication.UserDataConstraint#getDescriptions() - * @see #getUserDataConstraint() - * @generated - */ - EReference getUserDataConstraint_Descriptions(); - - /** - * @generated This field/method will be replaced during code generation - * @return LoginConfig object - */ - EClass getLoginConfig(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getLoginConfig_AuthMethod(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getLoginConfig_RealmName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webapplication.LoginConfig#getAuthorizationMethod <em>Authorization Method</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Authorization Method</em>'. - * @see org.eclipse.jst.j2ee.webapplication.LoginConfig#getAuthorizationMethod() - * @see #getLoginConfig() - * @generated - */ - EAttribute getLoginConfig_AuthorizationMethod(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getLoginConfig_WebApp(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getLoginConfig_FormLoginConfig(); - - /** - * @generated This field/method will be replaced during code generation - * @return FormLoginConfig object - */ - EClass getFormLoginConfig(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getFormLoginConfig_FormLoginPage(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getFormLoginConfig_FormErrorPage(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getFormLoginConfig_LoginConfig(); - - /** - * @generated This field/method will be replaced during code generation - * @return MimeMapping object - */ - EClass getMimeMapping(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMimeMapping_Extension(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getMimeMapping_MimeType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getMimeMapping_WebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @return SessionConfig object - */ - EClass getSessionConfig(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getSessionConfig_SessionTimeout(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getSessionConfig_WebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @return ServletMapping object - */ - EClass getServletMapping(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getServletMapping_UrlPattern(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webapplication.ServletMapping#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.jst.j2ee.webapplication.ServletMapping#getName() - * @see #getServletMapping() - * @generated - */ - EAttribute getServletMapping_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getServletMapping_WebApp(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getServletMapping_Servlet(); - - /** - * @generated This field/method will be replaced during code generation - * @return Servlet object - */ - EClass getServlet(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getServlet_ServletName(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getServlet_LoadOnStartup(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getServlet_WebApp(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getServlet_WebType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getServlet_Params(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getServlet_SecurityRoleRefs(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getServlet_RunAs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.Servlet#getInitParams <em>Init Params</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Init Params</em>'. - * @see org.eclipse.jst.j2ee.webapplication.Servlet#getInitParams() - * @see #getServlet() - * @generated - */ - EReference getServlet_InitParams(); - - /** - * @generated This field/method will be replaced during code generation - * @return WebType object - */ - EClass getWebType(); - - /** - * @generated This field/method will be replaced during code generation - * @return ServletType object - */ - EClass getServletType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getServletType_ClassName(); - - /** - * @generated This field/method will be replaced during code generation - * @return JSPType object - */ - EClass getJSPType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getJSPType_JspFile(); - - /** - * @generated This field/method will be replaced during code generation - * @return InitParam object - */ - EClass getInitParam(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getInitParam_ParamName(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getInitParam_ParamValue(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getInitParam_Description(); - - /** - * @generated This field/method will be replaced during code generation - * @return Filter object - */ - EClass getFilter(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getFilter_Name(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getFilter_InitParams(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getFilter_FilterClass(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.Filter#getInitParamValues <em>Init Param Values</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Init Param Values</em>'. - * @see org.eclipse.jst.j2ee.webapplication.Filter#getInitParamValues() - * @see #getFilter() - * @generated - */ - EReference getFilter_InitParamValues(); - - /** - * @generated This field/method will be replaced during code generation - * @return FilterMapping object - */ - EClass getFilterMapping(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getFilterMapping_UrlPattern(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.webapplication.FilterMapping#getDispatcherType <em>Dispatcher Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute list '<em>Dispatcher Type</em>'. - * @see org.eclipse.jst.j2ee.webapplication.FilterMapping#getDispatcherType() - * @see #getFilterMapping() - * @generated - */ - EAttribute getFilterMapping_DispatcherType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getFilterMapping_Filter(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EReference getFilterMapping_Servlet(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList <em>Local Encoding Mapping List</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Local Encoding Mapping List</em>'. - * @see org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList - * @generated - */ - EClass getLocalEncodingMappingList(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList#getLocalEncodingMappings <em>Local Encoding Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Local Encoding Mappings</em>'. - * @see org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList#getLocalEncodingMappings() - * @see #getLocalEncodingMappingList() - * @generated - */ - EReference getLocalEncodingMappingList_LocalEncodingMappings(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping <em>Local Encoding Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Local Encoding Mapping</em>'. - * @see org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping - * @generated - */ - EClass getLocalEncodingMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping#getLocale <em>Locale</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Locale</em>'. - * @see org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping#getLocale() - * @see #getLocalEncodingMapping() - * @generated - */ - EAttribute getLocalEncodingMapping_Locale(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping#getEncoding <em>Encoding</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Encoding</em>'. - * @see org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping#getEncoding() - * @see #getLocalEncodingMapping() - * @generated - */ - EAttribute getLocalEncodingMapping_Encoding(); - - /** - * Returns the meta object for enum '{@link org.eclipse.jst.j2ee.webapplication.ResAuthServletType <em>Res Auth Servlet Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for enum '<em>Res Auth Servlet Type</em>'. - * @see org.eclipse.jst.j2ee.webapplication.ResAuthServletType - * @generated - */ - EEnum getResAuthServletType(); - - /** - * Returns the meta object for enum '{@link org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum <em>HTTP Method Type Enum</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for enum '<em>HTTP Method Type Enum</em>'. - * @see org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum - * @generated - */ - EEnum getHTTPMethodTypeEnum(); - - /** - * @generated This field/method will be replaced during code generation - * @return RoleNameType object - */ - EClass getRoleNameType(); - - /** - * @generated This field/method will be replaced during code generation. - */ - EAttribute getRoleNameType_RoleName(); - - /** - * @generated This field/method will be replaced during code generation - * @return TransportGuaranteeType object - */ - EEnum getTransportGuaranteeType(); - - /** - * Returns the meta object for enum '{@link org.eclipse.jst.j2ee.webapplication.DispatcherType <em>Dispatcher Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for enum '<em>Dispatcher Type</em>'. - * @see org.eclipse.jst.j2ee.webapplication.DispatcherType - * @generated - */ - EEnum getDispatcherType(); - - /** - * Returns the meta object for enum '{@link org.eclipse.jst.j2ee.webapplication.AuthMethodKind <em>Auth Method Kind</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for enum '<em>Auth Method Kind</em>'. - * @see org.eclipse.jst.j2ee.webapplication.AuthMethodKind - * @generated - */ - EEnum getAuthMethodKind(); - - /** - * @generated This field/method will be replaced during code generation. - */ - WebapplicationFactory getWebapplicationFactory(); - -} //WebapplicationPackage - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WelcomeFile.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WelcomeFile.java deleted file mode 100644 index 3c5ca842a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WelcomeFile.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.ecore.EObject; -/** - * The welcome-file element contains file name to use as a default welcome file, such as index.html - * @since 1.0 - */ -public interface WelcomeFile extends EObject{ - /** - * @generated This field/method will be replaced during code generation - * @return The value of the WelcomeFile attribute - */ - String getWelcomeFile(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the WelcomeFile attribute - */ - void setWelcomeFile(String value); - - /** - * @generated This field/method will be replaced during code generation - * @return The FileList reference - */ - WelcomeFileList getFileList(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the FileList reference - */ - void setFileList(WelcomeFileList value); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WelcomeFileList.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WelcomeFileList.java deleted file mode 100644 index 5fe6576d1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WelcomeFileList.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -/** - * The welcome-file-list contains an ordered list of welcome files elements. - * @since 1.0 - */ -public interface WelcomeFileList extends EObject{ - - /** - * Adds the file whose name is specified in the parameter - * @param name the name of the file to be added - */ - public void addFileNamed(String name); - /** - * @generated This field/method will be replaced during code generation - * @return The WebApp reference - */ - WebApp getWebApp(); - - /** - * @generated This field/method will be replaced during code generation - * @param value The new value of the WebApp reference - */ - void setWebApp(WebApp value); - - /** - * @generated This field/method will be replaced during code generation - * @return The list of File references - */ - EList getFile(); - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/AuthConstraintImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/AuthConstraintImpl.java deleted file mode 100644 index 8b9eb73c0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/AuthConstraintImpl.java +++ /dev/null @@ -1,318 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.webapplication.AuthConstraint; -import org.eclipse.jst.j2ee.webapplication.SecurityConstraint; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * The auth-constraint element indicates the user roles that should be permitted access to this resource collection. The role used here must appear in a security-role-ref element. - */ -public class AuthConstraintImpl extends EObjectImpl implements AuthConstraint, EObject { - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList roles = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public AuthConstraintImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getAuthConstraint(); - } - - /** - * @generated This field/method will be replaced during code generation - * A description of the auth constraint. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - * A list of role names for the auth constraint. Each element specifies the name - * of a security role (a String). - - */ - public EList getRoles() { - if (roles == null) { - roles = new EDataTypeUniqueEList(String.class, this, WebapplicationPackage.AUTH_CONSTRAINT__ROLES); - } - return roles; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public SecurityConstraint getSecConstraint() { - if (eContainerFeatureID != WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT) return null; - return (SecurityConstraint)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setSecConstraint(SecurityConstraint newSecConstraint) { - if (newSecConstraint != eContainer || (eContainerFeatureID != WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT && newSecConstraint != null)) { - if (EcoreUtil.isAncestor(this, newSecConstraint)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newSecConstraint != null) - msgs = ((InternalEObject)newSecConstraint).eInverseAdd(this, WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, SecurityConstraint.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newSecConstraint, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, newSecConstraint, newSecConstraint)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT: - return eBasicSetContainer(null, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, msgs); - case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT: - return eContainer.eInverseRemove(this, WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, SecurityConstraint.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTION: - return getDescription(); - case WebapplicationPackage.AUTH_CONSTRAINT__ROLES: - return getRoles(); - case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT: - return getSecConstraint(); - case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WebapplicationPackage.AUTH_CONSTRAINT__ROLES: - return roles != null && !roles.isEmpty(); - case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT: - return getSecConstraint() != null; - case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTION: - setDescription((String)newValue); - return; - case WebapplicationPackage.AUTH_CONSTRAINT__ROLES: - getRoles().clear(); - getRoles().addAll((Collection)newValue); - return; - case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT: - setSecConstraint((SecurityConstraint)newValue); - return; - case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WebapplicationPackage.AUTH_CONSTRAINT__ROLES: - getRoles().clear(); - return; - case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT: - setSecConstraint((SecurityConstraint)null); - return; - case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", roles: "); - result.append(roles); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ContextParamImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ContextParamImpl.java deleted file mode 100644 index 05e984f83..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ContextParamImpl.java +++ /dev/null @@ -1,332 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.webapplication.ContextParam; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * The context-param element contains the declaration of a web application's servlet context initialization parameters. - */ -public class ContextParamImpl extends EObjectImpl implements ContextParam, EObject { - - /** - * The default value of the '{@link #getParamName() <em>Param Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamName() - * @generated - * @ordered - */ - protected static final String PARAM_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String paramName = PARAM_NAME_EDEFAULT; - /** - * The default value of the '{@link #getParamValue() <em>Param Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamValue() - * @generated - * @ordered - */ - protected static final String PARAM_VALUE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String paramValue = PARAM_VALUE_EDEFAULT; - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - public ContextParamImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getContextParam(); - } - - /** - * @generated This field/method will be replaced during code generation - * The param-name element contains the name of a parameter. - */ - public String getParamName() { - return paramName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setParamName(String newParamName) { - String oldParamName = paramName; - paramName = newParamName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.CONTEXT_PARAM__PARAM_NAME, oldParamName, paramName)); - } - - /** - * @generated This field/method will be replaced during code generation - * The param-value element contains the value of a parameter. - */ - public String getParamValue() { - return paramValue; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setParamValue(String newParamValue) { - String oldParamValue = paramValue; - paramValue = newParamValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.CONTEXT_PARAM__PARAM_VALUE, oldParamValue, paramValue)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.CONTEXT_PARAM__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebApp getWebApp() { - if (eContainerFeatureID != WebapplicationPackage.CONTEXT_PARAM__WEB_APP) return null; - return (WebApp)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebApp(WebApp newWebApp) { - if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.CONTEXT_PARAM__WEB_APP && newWebApp != null)) { - if (EcoreUtil.isAncestor(this, newWebApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newWebApp != null) - msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__CONTEXTS, WebApp.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.CONTEXT_PARAM__WEB_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.CONTEXT_PARAM__WEB_APP, newWebApp, newWebApp)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.CONTEXT_PARAM__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.CONTEXT_PARAM__WEB_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.CONTEXT_PARAM__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.CONTEXT_PARAM__WEB_APP, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.CONTEXT_PARAM__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__CONTEXTS, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.CONTEXT_PARAM__PARAM_NAME: - return getParamName(); - case WebapplicationPackage.CONTEXT_PARAM__PARAM_VALUE: - return getParamValue(); - case WebapplicationPackage.CONTEXT_PARAM__DESCRIPTION: - return getDescription(); - case WebapplicationPackage.CONTEXT_PARAM__WEB_APP: - return getWebApp(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.CONTEXT_PARAM__PARAM_NAME: - return PARAM_NAME_EDEFAULT == null ? paramName != null : !PARAM_NAME_EDEFAULT.equals(paramName); - case WebapplicationPackage.CONTEXT_PARAM__PARAM_VALUE: - return PARAM_VALUE_EDEFAULT == null ? paramValue != null : !PARAM_VALUE_EDEFAULT.equals(paramValue); - case WebapplicationPackage.CONTEXT_PARAM__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WebapplicationPackage.CONTEXT_PARAM__WEB_APP: - return getWebApp() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.CONTEXT_PARAM__PARAM_NAME: - setParamName((String)newValue); - return; - case WebapplicationPackage.CONTEXT_PARAM__PARAM_VALUE: - setParamValue((String)newValue); - return; - case WebapplicationPackage.CONTEXT_PARAM__DESCRIPTION: - setDescription((String)newValue); - return; - case WebapplicationPackage.CONTEXT_PARAM__WEB_APP: - setWebApp((WebApp)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.CONTEXT_PARAM__PARAM_NAME: - setParamName(PARAM_NAME_EDEFAULT); - return; - case WebapplicationPackage.CONTEXT_PARAM__PARAM_VALUE: - setParamValue(PARAM_VALUE_EDEFAULT); - return; - case WebapplicationPackage.CONTEXT_PARAM__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WebapplicationPackage.CONTEXT_PARAM__WEB_APP: - setWebApp((WebApp)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (paramName: "); - result.append(paramName); - result.append(", paramValue: "); - result.append(paramValue); - result.append(", description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorCodeErrorPageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorCodeErrorPageImpl.java deleted file mode 100644 index 9cdd2e78b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorCodeErrorPageImpl.java +++ /dev/null @@ -1,233 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * @generated - */ -public class ErrorCodeErrorPageImpl extends ErrorPageImpl implements ErrorCodeErrorPage { - - /** - * The default value of the '{@link #getErrorCode() <em>Error Code</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getErrorCode() - * @generated - * @ordered - */ - protected static final String ERROR_CODE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String errorCode = ERROR_CODE_EDEFAULT; - public ErrorCodeErrorPageImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getErrorCodeErrorPage(); - } - -/** - * isErrorCode method comment. - */ -public boolean isErrorCode() { - return true; -} - /** - * @generated This field/method will be replaced during code generation - * The error-code contains an HTTP error code, ex: 404 - - */ - public String getErrorCode() { - return errorCode; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setErrorCode(String newErrorCode) { - String oldErrorCode = errorCode; - errorCode = newErrorCode; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.ERROR_CODE_ERROR_PAGE__ERROR_CODE, oldErrorCode, errorCode)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__ERROR_PAGES, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__LOCATION: - return getLocation(); - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP: - return getWebApp(); - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__ERROR_CODE: - return getErrorCode(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__LOCATION: - return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP: - return getWebApp() != null; - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__ERROR_CODE: - return ERROR_CODE_EDEFAULT == null ? errorCode != null : !ERROR_CODE_EDEFAULT.equals(errorCode); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__LOCATION: - setLocation((String)newValue); - return; - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP: - setWebApp((WebApp)newValue); - return; - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__ERROR_CODE: - setErrorCode((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__LOCATION: - setLocation(LOCATION_EDEFAULT); - return; - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP: - setWebApp((WebApp)null); - return; - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__ERROR_CODE: - setErrorCode(ERROR_CODE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (errorCode: "); - result.append(errorCode); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorPageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorPageImpl.java deleted file mode 100644 index 1de1c12c9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorPageImpl.java +++ /dev/null @@ -1,258 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.webapplication.ErrorPage; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * The error-page element contains a mapping between an error code or exception type to the path of a resource in the web application - */ -public class ErrorPageImpl extends EObjectImpl implements ErrorPage, EObject { - - /** - * The default value of the '{@link #getLocation() <em>Location</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocation() - * @generated - * @ordered - */ - protected static final String LOCATION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String location = LOCATION_EDEFAULT; - public ErrorPageImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getErrorPage(); - } - -/** - * isErrorCode method comment. - */ -public boolean isErrorCode() { - return false; -} -/** - * isExceptionType method comment. - */ -public boolean isExceptionType() { - return false; -} - /** - * @generated This field/method will be replaced during code generation - * The location element contains the location of the resource in the web - * application - */ - public String getLocation() { - return location; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLocation(String newLocation) { - String oldLocation = location; - location = newLocation; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.ERROR_PAGE__LOCATION, oldLocation, location)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebApp getWebApp() { - if (eContainerFeatureID != WebapplicationPackage.ERROR_PAGE__WEB_APP) return null; - return (WebApp)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebApp(WebApp newWebApp) { - if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.ERROR_PAGE__WEB_APP && newWebApp != null)) { - if (EcoreUtil.isAncestor(this, newWebApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newWebApp != null) - msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__ERROR_PAGES, WebApp.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.ERROR_PAGE__WEB_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.ERROR_PAGE__WEB_APP, newWebApp, newWebApp)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.ERROR_PAGE__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.ERROR_PAGE__WEB_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.ERROR_PAGE__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.ERROR_PAGE__WEB_APP, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.ERROR_PAGE__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__ERROR_PAGES, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ERROR_PAGE__LOCATION: - return getLocation(); - case WebapplicationPackage.ERROR_PAGE__WEB_APP: - return getWebApp(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ERROR_PAGE__LOCATION: - return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); - case WebapplicationPackage.ERROR_PAGE__WEB_APP: - return getWebApp() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ERROR_PAGE__LOCATION: - setLocation((String)newValue); - return; - case WebapplicationPackage.ERROR_PAGE__WEB_APP: - setWebApp((WebApp)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ERROR_PAGE__LOCATION: - setLocation(LOCATION_EDEFAULT); - return; - case WebapplicationPackage.ERROR_PAGE__WEB_APP: - setWebApp((WebApp)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (location: "); - result.append(location); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ExceptionTypeErrorPageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ExceptionTypeErrorPageImpl.java deleted file mode 100644 index 2ecd0b7ea..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ExceptionTypeErrorPageImpl.java +++ /dev/null @@ -1,248 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * @generated - */ -public class ExceptionTypeErrorPageImpl extends ErrorPageImpl implements ExceptionTypeErrorPage { - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass exceptionType = null; - public ExceptionTypeErrorPageImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getExceptionTypeErrorPage(); - } - -/** - * Helper method to set the ExceptionType to a JavaClass having a fully qualified - * name specified by the parameter - */ -public String getExceptionTypeName() { - getExceptionType(); - return exceptionType == null ? null : exceptionType.getQualifiedName(); -}/** - * Helper method to set the ExceptionType to a JavaClass having a fully qualified - * name specified by the parameter - */ -public boolean isExceptionType() { - return true; -} -public void setExceptionTypeName(String exceptionTypeName) { - setExceptionType(JavaRefFactory.eINSTANCE.createClassRef(exceptionTypeName)); -} -/** - * @deprecated Use @link{#setExceptionTypeName(String)} - */ -public void setExceptionTypeName(String exceptionTypeName, ResourceSet context) { - setExceptionTypeName(exceptionTypeName); -} - /** - * @generated This field/method will be replaced during code generation - * The exception type contains a fully qualified class name of a Java exception type. - */ - public JavaClass getExceptionType() { - if (exceptionType != null && exceptionType.eIsProxy()) { - JavaClass oldExceptionType = exceptionType; - exceptionType = (JavaClass)eResolveProxy((InternalEObject)exceptionType); - if (exceptionType != oldExceptionType) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE, oldExceptionType, exceptionType)); - } - } - return exceptionType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetExceptionType() { - return exceptionType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setExceptionType(JavaClass newExceptionType) { - JavaClass oldExceptionType = exceptionType; - exceptionType = newExceptionType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE, oldExceptionType, exceptionType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__ERROR_PAGES, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__LOCATION: - return getLocation(); - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP: - return getWebApp(); - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE: - if (resolve) return getExceptionType(); - return basicGetExceptionType(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__LOCATION: - return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP: - return getWebApp() != null; - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE: - return exceptionType != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__LOCATION: - setLocation((String)newValue); - return; - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP: - setWebApp((WebApp)newValue); - return; - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE: - setExceptionType((JavaClass)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__LOCATION: - setLocation(LOCATION_EDEFAULT); - return; - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP: - setWebApp((WebApp)null); - return; - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE: - setExceptionType((JavaClass)null); - return; - } - eDynamicUnset(eFeature); - } - -} - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterImpl.java deleted file mode 100644 index 6b2523a01..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterImpl.java +++ /dev/null @@ -1,383 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jst.j2ee.common.ParamValue; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.webapplication.Filter; -import org.eclipse.jst.j2ee.webapplication.InitParam; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * Declares a filter in the web application application. The filter is mapped to either a servlet or a URL pattern in the filter-mapping element, using the filter-name value to reference. Filters can access the initialization parameters declared in the deployment descriptor at runtime via the FilterConfig interface. - - */ -public class FilterImpl extends CompatibilityDescriptionGroupImpl implements Filter { - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String name = NAME_EDEFAULT; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList initParams = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected JavaClass filterClass = null; - /** - * The cached value of the '{@link #getInitParamValues() <em>Init Param Values</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInitParamValues() - * @generated - * @ordered - */ - protected EList initParamValues = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected FilterImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getFilter(); - } - - /** - * @generated This field/method will be replaced during code generation - * The logical name of the filter. This name is used to map the filter. - */ - public String getName() { - return name; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FILTER__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * getInitParams() is used for J2EE1.3 - * <!-- end-user-doc --> - * @generated - */ - public EList getInitParams() { - if (initParams == null) { - initParams = new EObjectContainmentEList(InitParam.class, this, WebapplicationPackage.FILTER__INIT_PARAMS); - } - return initParams; - } - - /** - * @generated This field/method will be replaced during code generation - * The fully qualified classname of the filter. - */ - public JavaClass getFilterClass() { - if (filterClass != null && filterClass.eIsProxy()) { - JavaClass oldFilterClass = filterClass; - filterClass = (JavaClass)eResolveProxy((InternalEObject)filterClass); - if (filterClass != oldFilterClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, WebapplicationPackage.FILTER__FILTER_CLASS, oldFilterClass, filterClass)); - } - } - return filterClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetFilterClass() { - return filterClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setFilterClass(JavaClass newFilterClass) { - JavaClass oldFilterClass = filterClass; - filterClass = newFilterClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FILTER__FILTER_CLASS, oldFilterClass, filterClass)); - } - - /** - * <!-- begin-user-doc --> - * getInitParamValues() is used for J2EE1.4 - * <!-- end-user-doc --> - * @generated - */ - public EList getInitParamValues() { - if (initParamValues == null) { - initParamValues = new EObjectContainmentEList(ParamValue.class, this, WebapplicationPackage.FILTER__INIT_PARAM_VALUES); - } - return initParamValues; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.FILTER__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.FILTER__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.FILTER__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.FILTER__INIT_PARAMS: - return ((InternalEList)getInitParams()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.FILTER__INIT_PARAM_VALUES: - return ((InternalEList)getInitParamValues()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FILTER__ICONS: - return getIcons(); - case WebapplicationPackage.FILTER__DISPLAY_NAMES: - return getDisplayNames(); - case WebapplicationPackage.FILTER__DESCRIPTIONS: - return getDescriptions(); - case WebapplicationPackage.FILTER__SMALL_ICON: - return getSmallIcon(); - case WebapplicationPackage.FILTER__LARGE_ICON: - return getLargeIcon(); - case WebapplicationPackage.FILTER__DESCRIPTION: - return getDescription(); - case WebapplicationPackage.FILTER__DISPLAY_NAME: - return getDisplayName(); - case WebapplicationPackage.FILTER__NAME: - return getName(); - case WebapplicationPackage.FILTER__INIT_PARAMS: - return getInitParams(); - case WebapplicationPackage.FILTER__FILTER_CLASS: - if (resolve) return getFilterClass(); - return basicGetFilterClass(); - case WebapplicationPackage.FILTER__INIT_PARAM_VALUES: - return getInitParamValues(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FILTER__ICONS: - return icons != null && !icons.isEmpty(); - case WebapplicationPackage.FILTER__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case WebapplicationPackage.FILTER__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WebapplicationPackage.FILTER__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case WebapplicationPackage.FILTER__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case WebapplicationPackage.FILTER__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WebapplicationPackage.FILTER__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case WebapplicationPackage.FILTER__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case WebapplicationPackage.FILTER__INIT_PARAMS: - return initParams != null && !initParams.isEmpty(); - case WebapplicationPackage.FILTER__FILTER_CLASS: - return filterClass != null; - case WebapplicationPackage.FILTER__INIT_PARAM_VALUES: - return initParamValues != null && !initParamValues.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FILTER__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case WebapplicationPackage.FILTER__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case WebapplicationPackage.FILTER__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WebapplicationPackage.FILTER__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case WebapplicationPackage.FILTER__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case WebapplicationPackage.FILTER__DESCRIPTION: - setDescription((String)newValue); - return; - case WebapplicationPackage.FILTER__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case WebapplicationPackage.FILTER__NAME: - setName((String)newValue); - return; - case WebapplicationPackage.FILTER__INIT_PARAMS: - getInitParams().clear(); - getInitParams().addAll((Collection)newValue); - return; - case WebapplicationPackage.FILTER__FILTER_CLASS: - setFilterClass((JavaClass)newValue); - return; - case WebapplicationPackage.FILTER__INIT_PARAM_VALUES: - getInitParamValues().clear(); - getInitParamValues().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FILTER__ICONS: - getIcons().clear(); - return; - case WebapplicationPackage.FILTER__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case WebapplicationPackage.FILTER__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WebapplicationPackage.FILTER__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case WebapplicationPackage.FILTER__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case WebapplicationPackage.FILTER__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WebapplicationPackage.FILTER__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case WebapplicationPackage.FILTER__NAME: - setName(NAME_EDEFAULT); - return; - case WebapplicationPackage.FILTER__INIT_PARAMS: - getInitParams().clear(); - return; - case WebapplicationPackage.FILTER__FILTER_CLASS: - setFilterClass((JavaClass)null); - return; - case WebapplicationPackage.FILTER__INIT_PARAM_VALUES: - getInitParamValues().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -public JavaClass createClassRef(String targetName) { - return JavaRefFactory.eINSTANCE.createClassRef(targetName); -} - - -public String getFilterClassName() { - getFilterClass(); - return (filterClass == null) ? null : filterClass.getQualifiedName(); -} -public void setFilterClassName(String filterClassName) { - eSet(WebapplicationPackage.eINSTANCE.getFilter_FilterClass(), createClassRef(filterClassName)); -} -} //FilterImpl - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterMappingImpl.java deleted file mode 100644 index df2cd4751..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterMappingImpl.java +++ /dev/null @@ -1,341 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; -import org.eclipse.jst.j2ee.webapplication.DispatcherType; -import org.eclipse.jst.j2ee.webapplication.Filter; -import org.eclipse.jst.j2ee.webapplication.FilterMapping; -import org.eclipse.jst.j2ee.webapplication.Servlet; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * Declaration of the filter mappings in this web application. The container uses the filter-mapping declarations to decide which filters to apply to a request, and in what order. The container matches the request URI to a Servlet in the normal way. To determine which filters to apply it matches filter-mapping declarations either on servlet-name, or on url-pattern for each filter-mapping element, depending on which style is used. The order in which filters are invoked is the order in which filter-mapping declarations that match a request URI for a servlet appear in the list of filter-mapping elements.The filter-name value must be the value of the <filtername> sub-elements of one of the <filter> declarations in the deployment descriptor. - * - * @invariant The filter-name value must be the value of the Filter::name of one of the Filter declarations in the deployment descriptor. - - */ -public class FilterMappingImpl extends EObjectImpl implements FilterMapping, EObject{ - - /** - * The default value of the '{@link #getUrlPattern() <em>Url Pattern</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUrlPattern() - * @generated - * @ordered - */ - protected static final String URL_PATTERN_EDEFAULT = null; - - protected transient String servletName; - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String urlPattern = URL_PATTERN_EDEFAULT; - /** - * The cached value of the '{@link #getDispatcherType() <em>Dispatcher Type</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDispatcherType() - * @generated - * @ordered - */ - protected EList dispatcherType = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected Filter filter = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected Servlet servlet = null; - public FilterMappingImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getFilterMapping(); - } - -/** - * Returns the name of the servlet that this mapping applies to. - */ - public Servlet getServlet(){ - Servlet lservlet = this.getServletGen(); - if (lservlet == null && servletName != null){ - WebApp webapp = (WebApp)eContainer(); - if (webapp != null){ - lservlet=webapp.getServletNamed(servletName); - if (lservlet != null) - setServlet(lservlet); - } - } - return lservlet; -} -/** - * Returns the name of the servlet that this mapping applies to. - */ -public String getServletName(){ - String ret = null; - if (servletName != null) - ret = servletName; - - Servlet lservlet = getServlet(); - if (lservlet != null) - ret = lservlet.getServletName(); - return ret; -} -/** - * Sets the name of the servlet that this mapping applies to. - */ -public void setServletName(String servletName){ - this.servletName = servletName; -} - /** - * @generated This field/method will be replaced during code generation - * The url-pattern element contains the url pattern of the mapping. Must follow - * the rules specified in Section 10 of the Servlet API Specification. - */ - public String getUrlPattern() { - return urlPattern; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setUrlPattern(String newUrlPattern) { - String oldUrlPattern = urlPattern; - urlPattern = newUrlPattern; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FILTER_MAPPING__URL_PATTERN, oldUrlPattern, urlPattern)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDispatcherType() { - if (dispatcherType == null) { - dispatcherType = new EDataTypeUniqueEList(DispatcherType.class, this, WebapplicationPackage.FILTER_MAPPING__DISPATCHER_TYPE); - } - return dispatcherType; - } - - /** - * @generated This field/method will be replaced during code generation - * The filter being mapped - */ - public Filter getFilter() { - if (filter != null && filter.eIsProxy()) { - Filter oldFilter = filter; - filter = (Filter)eResolveProxy((InternalEObject)filter); - if (filter != oldFilter) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, WebapplicationPackage.FILTER_MAPPING__FILTER, oldFilter, filter)); - } - } - return filter; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Filter basicGetFilter() { - return filter; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setFilter(Filter newFilter) { - Filter oldFilter = filter; - filter = newFilter; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FILTER_MAPPING__FILTER, oldFilter, filter)); - } - - public void setServlet(Servlet l) { - servletName = null; - setServletGen(l); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setServletGen(Servlet newServlet) { - Servlet oldServlet = servlet; - servlet = newServlet; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FILTER_MAPPING__SERVLET, oldServlet, servlet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FILTER_MAPPING__URL_PATTERN: - return getUrlPattern(); - case WebapplicationPackage.FILTER_MAPPING__DISPATCHER_TYPE: - return getDispatcherType(); - case WebapplicationPackage.FILTER_MAPPING__FILTER: - if (resolve) return getFilter(); - return basicGetFilter(); - case WebapplicationPackage.FILTER_MAPPING__SERVLET: - if (resolve) return getServlet(); - return basicGetServlet(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FILTER_MAPPING__URL_PATTERN: - return URL_PATTERN_EDEFAULT == null ? urlPattern != null : !URL_PATTERN_EDEFAULT.equals(urlPattern); - case WebapplicationPackage.FILTER_MAPPING__DISPATCHER_TYPE: - return dispatcherType != null && !dispatcherType.isEmpty(); - case WebapplicationPackage.FILTER_MAPPING__FILTER: - return filter != null; - case WebapplicationPackage.FILTER_MAPPING__SERVLET: - return servlet != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * (Removed Generated flag to preserve override This field/method will NOT be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FILTER_MAPPING__URL_PATTERN: - setUrlPattern((String)newValue); - return; - case WebapplicationPackage.FILTER_MAPPING__DISPATCHER_TYPE: - getDispatcherType().clear(); - getDispatcherType().addAll((Collection)newValue); - return; - case WebapplicationPackage.FILTER_MAPPING__FILTER: - setFilter((Filter)newValue); - return; - case WebapplicationPackage.FILTER_MAPPING__SERVLET: - if(newValue instanceof String) - setServletName((String)newValue); - else - setServlet((Servlet)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FILTER_MAPPING__URL_PATTERN: - setUrlPattern(URL_PATTERN_EDEFAULT); - return; - case WebapplicationPackage.FILTER_MAPPING__DISPATCHER_TYPE: - getDispatcherType().clear(); - return; - case WebapplicationPackage.FILTER_MAPPING__FILTER: - setFilter((Filter)null); - return; - case WebapplicationPackage.FILTER_MAPPING__SERVLET: - setServlet((Servlet)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (urlPattern: ");//$NON-NLS-1$ - result.append(urlPattern); - result.append(", dispatcherType: ");//$NON-NLS-1$ - result.append(dispatcherType); - result.append(')'); - return result.toString(); - } - - /** - * @generated This field/method will be replaced during code generation - * An optional servlet that is mapped by a filter mapping. servletName is used to resolve the servlet reference. - */ - public Servlet getServletGen() { - if (servlet != null && servlet.eIsProxy()) { - Servlet oldServlet = servlet; - servlet = (Servlet)eResolveProxy((InternalEObject)servlet); - if (servlet != oldServlet) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, WebapplicationPackage.FILTER_MAPPING__SERVLET, oldServlet, servlet)); - } - } - return servlet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Servlet basicGetServlet() { - return servlet; - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FormLoginConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FormLoginConfigImpl.java deleted file mode 100644 index e2fe7726c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FormLoginConfigImpl.java +++ /dev/null @@ -1,291 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.webapplication.FormLoginConfig; -import org.eclipse.jst.j2ee.webapplication.LoginConfig; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * The form-login-config element specifies the login and error pages that should be used in form based login. If form based authentication is not used, these elements are ignored. - */ -public class FormLoginConfigImpl extends EObjectImpl implements FormLoginConfig, EObject { - - /** - * The default value of the '{@link #getFormLoginPage() <em>Form Login Page</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFormLoginPage() - * @generated - * @ordered - */ - protected static final String FORM_LOGIN_PAGE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String formLoginPage = FORM_LOGIN_PAGE_EDEFAULT; - /** - * The default value of the '{@link #getFormErrorPage() <em>Form Error Page</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFormErrorPage() - * @generated - * @ordered - */ - protected static final String FORM_ERROR_PAGE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String formErrorPage = FORM_ERROR_PAGE_EDEFAULT; - public FormLoginConfigImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getFormLoginConfig(); - } - - /** - * @generated This field/method will be replaced during code generation - * The form-login-page element defines the location in the web app where the page - * that can be used for login can be found - */ - public String getFormLoginPage() { - return formLoginPage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setFormLoginPage(String newFormLoginPage) { - String oldFormLoginPage = formLoginPage; - formLoginPage = newFormLoginPage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE, oldFormLoginPage, formLoginPage)); - } - - /** - * @generated This field/method will be replaced during code generation - * The form-error-page element defines the location in the web app where the error - * page that is displayed when login is not successful can be found - */ - public String getFormErrorPage() { - return formErrorPage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setFormErrorPage(String newFormErrorPage) { - String oldFormErrorPage = formErrorPage; - formErrorPage = newFormErrorPage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE, oldFormErrorPage, formErrorPage)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public LoginConfig getLoginConfig() { - if (eContainerFeatureID != WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG) return null; - return (LoginConfig)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLoginConfig(LoginConfig newLoginConfig) { - if (newLoginConfig != eContainer || (eContainerFeatureID != WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG && newLoginConfig != null)) { - if (EcoreUtil.isAncestor(this, newLoginConfig)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newLoginConfig != null) - msgs = ((InternalEObject)newLoginConfig).eInverseAdd(this, WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, LoginConfig.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newLoginConfig, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, newLoginConfig, newLoginConfig)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG: - return eBasicSetContainer(null, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG: - return eContainer.eInverseRemove(this, WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, LoginConfig.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE: - return getFormLoginPage(); - case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE: - return getFormErrorPage(); - case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG: - return getLoginConfig(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE: - return FORM_LOGIN_PAGE_EDEFAULT == null ? formLoginPage != null : !FORM_LOGIN_PAGE_EDEFAULT.equals(formLoginPage); - case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE: - return FORM_ERROR_PAGE_EDEFAULT == null ? formErrorPage != null : !FORM_ERROR_PAGE_EDEFAULT.equals(formErrorPage); - case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG: - return getLoginConfig() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE: - setFormLoginPage((String)newValue); - return; - case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE: - setFormErrorPage((String)newValue); - return; - case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG: - setLoginConfig((LoginConfig)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE: - setFormLoginPage(FORM_LOGIN_PAGE_EDEFAULT); - return; - case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE: - setFormErrorPage(FORM_ERROR_PAGE_EDEFAULT); - return; - case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG: - setLoginConfig((LoginConfig)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (formLoginPage: "); - result.append(formLoginPage); - result.append(", formErrorPage: "); - result.append(formErrorPage); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/HTTPMethodTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/HTTPMethodTypeImpl.java deleted file mode 100644 index aa85fce2a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/HTTPMethodTypeImpl.java +++ /dev/null @@ -1,164 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webapplication.HTTPMethodType; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>HTTP Method Type</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webapplication.internal.impl.HTTPMethodTypeImpl#getHttpMethod <em>Http Method</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class HTTPMethodTypeImpl extends EObjectImpl implements HTTPMethodType { - /** - * The default value of the '{@link #getHttpMethod() <em>Http Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHttpMethod() - * @generated - * @ordered - */ - protected static final String HTTP_METHOD_EDEFAULT = null; - - /** - * The cached value of the '{@link #getHttpMethod() <em>Http Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHttpMethod() - * @generated - * @ordered - */ - protected String httpMethod = HTTP_METHOD_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HTTPMethodTypeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getHTTPMethodType(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getHttpMethod() { - return httpMethod; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setHttpMethod(String newHttpMethod) { - String oldHttpMethod = httpMethod; - httpMethod = newHttpMethod; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.HTTP_METHOD_TYPE__HTTP_METHOD, oldHttpMethod, httpMethod)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.HTTP_METHOD_TYPE__HTTP_METHOD: - return getHttpMethod(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.HTTP_METHOD_TYPE__HTTP_METHOD: - setHttpMethod((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.HTTP_METHOD_TYPE__HTTP_METHOD: - setHttpMethod(HTTP_METHOD_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.HTTP_METHOD_TYPE__HTTP_METHOD: - return HTTP_METHOD_EDEFAULT == null ? httpMethod != null : !HTTP_METHOD_EDEFAULT.equals(httpMethod); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (httpMethod: "); - result.append(httpMethod); - result.append(')'); - return result.toString(); - } - -} //HTTPMethodTypeImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/InitParamImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/InitParamImpl.java deleted file mode 100644 index ac412f113..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/InitParamImpl.java +++ /dev/null @@ -1,237 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webapplication.InitParam; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * The init-param element contains a name//value pair as an initialization param of the servlet - */ -public class InitParamImpl extends EObjectImpl implements InitParam, EObject { - - /** - * The default value of the '{@link #getParamName() <em>Param Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamName() - * @generated - * @ordered - */ - protected static final String PARAM_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String paramName = PARAM_NAME_EDEFAULT; - /** - * The default value of the '{@link #getParamValue() <em>Param Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamValue() - * @generated - * @ordered - */ - protected static final String PARAM_VALUE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String paramValue = PARAM_VALUE_EDEFAULT; - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - public InitParamImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getInitParam(); - } - - /** - * @generated This field/method will be replaced during code generation - * - * - - */ - public String getParamName() { - return paramName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setParamName(String newParamName) { - String oldParamName = paramName; - paramName = newParamName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.INIT_PARAM__PARAM_NAME, oldParamName, paramName)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getParamValue() { - return paramValue; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setParamValue(String newParamValue) { - String oldParamValue = paramValue; - paramValue = newParamValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.INIT_PARAM__PARAM_VALUE, oldParamValue, paramValue)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.INIT_PARAM__DESCRIPTION, oldDescription, description)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.INIT_PARAM__PARAM_NAME: - return getParamName(); - case WebapplicationPackage.INIT_PARAM__PARAM_VALUE: - return getParamValue(); - case WebapplicationPackage.INIT_PARAM__DESCRIPTION: - return getDescription(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.INIT_PARAM__PARAM_NAME: - return PARAM_NAME_EDEFAULT == null ? paramName != null : !PARAM_NAME_EDEFAULT.equals(paramName); - case WebapplicationPackage.INIT_PARAM__PARAM_VALUE: - return PARAM_VALUE_EDEFAULT == null ? paramValue != null : !PARAM_VALUE_EDEFAULT.equals(paramValue); - case WebapplicationPackage.INIT_PARAM__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.INIT_PARAM__PARAM_NAME: - setParamName((String)newValue); - return; - case WebapplicationPackage.INIT_PARAM__PARAM_VALUE: - setParamValue((String)newValue); - return; - case WebapplicationPackage.INIT_PARAM__DESCRIPTION: - setDescription((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.INIT_PARAM__PARAM_NAME: - setParamName(PARAM_NAME_EDEFAULT); - return; - case WebapplicationPackage.INIT_PARAM__PARAM_VALUE: - setParamValue(PARAM_VALUE_EDEFAULT); - return; - case WebapplicationPackage.INIT_PARAM__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (paramName: "); - result.append(paramName); - result.append(", paramValue: "); - result.append(paramValue); - result.append(", description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/JSPTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/JSPTypeImpl.java deleted file mode 100644 index 281b716f8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/JSPTypeImpl.java +++ /dev/null @@ -1,153 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.jst.j2ee.webapplication.JSPType; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * @generated - */ -public class JSPTypeImpl extends WebTypeImpl implements JSPType { - - /** - * The default value of the '{@link #getJspFile() <em>Jsp File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJspFile() - * @generated - * @ordered - */ - protected static final String JSP_FILE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String jspFile = JSP_FILE_EDEFAULT; - public JSPTypeImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getJSPType(); - } - -public boolean isJspType() { - return true; -} - /** - * @generated This field/method will be replaced during code generation - * The jsp-file element contains the full path to a JSP file within the web - * application. - - */ - public String getJspFile() { - return jspFile; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setJspFile(String newJspFile) { - String oldJspFile = jspFile; - jspFile = newJspFile; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.JSP_TYPE__JSP_FILE, oldJspFile, jspFile)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.JSP_TYPE__JSP_FILE: - return getJspFile(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.JSP_TYPE__JSP_FILE: - return JSP_FILE_EDEFAULT == null ? jspFile != null : !JSP_FILE_EDEFAULT.equals(jspFile); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.JSP_TYPE__JSP_FILE: - setJspFile((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.JSP_TYPE__JSP_FILE: - setJspFile(JSP_FILE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (jspFile: "); - result.append(jspFile); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingImpl.java deleted file mode 100644 index bf289919e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Local Encoding Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webapplication.internal.impl.LocalEncodingMappingImpl#getLocale <em>Locale</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webapplication.internal.impl.LocalEncodingMappingImpl#getEncoding <em>Encoding</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class LocalEncodingMappingImpl extends EObjectImpl implements LocalEncodingMapping { - /** - * The default value of the '{@link #getLocale() <em>Locale</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocale() - * @generated - * @ordered - */ - protected static final String LOCALE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLocale() <em>Locale</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocale() - * @generated - * @ordered - */ - protected String locale = LOCALE_EDEFAULT; - - /** - * The default value of the '{@link #getEncoding() <em>Encoding</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEncoding() - * @generated - * @ordered - */ - protected static final String ENCODING_EDEFAULT = null; - - /** - * The cached value of the '{@link #getEncoding() <em>Encoding</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEncoding() - * @generated - * @ordered - */ - protected String encoding = ENCODING_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected LocalEncodingMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getLocalEncodingMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLocale() { - return locale; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLocale(String newLocale) { - String oldLocale = locale; - locale = newLocale; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOCAL_ENCODING_MAPPING__LOCALE, oldLocale, locale)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getEncoding() { - return encoding; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setEncoding(String newEncoding) { - String oldEncoding = encoding; - encoding = newEncoding; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOCAL_ENCODING_MAPPING__ENCODING, oldEncoding, encoding)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOCAL_ENCODING_MAPPING__LOCALE: - return getLocale(); - case WebapplicationPackage.LOCAL_ENCODING_MAPPING__ENCODING: - return getEncoding(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOCAL_ENCODING_MAPPING__LOCALE: - setLocale((String)newValue); - return; - case WebapplicationPackage.LOCAL_ENCODING_MAPPING__ENCODING: - setEncoding((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOCAL_ENCODING_MAPPING__LOCALE: - setLocale(LOCALE_EDEFAULT); - return; - case WebapplicationPackage.LOCAL_ENCODING_MAPPING__ENCODING: - setEncoding(ENCODING_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOCAL_ENCODING_MAPPING__LOCALE: - return LOCALE_EDEFAULT == null ? locale != null : !LOCALE_EDEFAULT.equals(locale); - case WebapplicationPackage.LOCAL_ENCODING_MAPPING__ENCODING: - return ENCODING_EDEFAULT == null ? encoding != null : !ENCODING_EDEFAULT.equals(encoding); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (locale: "); - result.append(locale); - result.append(", encoding: "); - result.append(encoding); - result.append(')'); - return result.toString(); - } - -} //LocalEncodingMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingListImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingListImpl.java deleted file mode 100644 index 4dd2d725f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingListImpl.java +++ /dev/null @@ -1,154 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Local Encoding Mapping List</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webapplication.internal.impl.LocalEncodingMappingListImpl#getLocalEncodingMappings <em>Local Encoding Mappings</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class LocalEncodingMappingListImpl extends EObjectImpl implements LocalEncodingMappingList { - /** - * The cached value of the '{@link #getLocalEncodingMappings() <em>Local Encoding Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocalEncodingMappings() - * @generated - * @ordered - */ - protected EList localEncodingMappings = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected LocalEncodingMappingListImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getLocalEncodingMappingList(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getLocalEncodingMappings() { - if (localEncodingMappings == null) { - localEncodingMappings = new EObjectContainmentEList(LocalEncodingMapping.class, this, WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS); - } - return localEncodingMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS: - return ((InternalEList)getLocalEncodingMappings()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS: - return getLocalEncodingMappings(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS: - getLocalEncodingMappings().clear(); - getLocalEncodingMappings().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS: - getLocalEncodingMappings().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS: - return localEncodingMappings != null && !localEncodingMappings.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - -} //LocalEncodingMappingListImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LoginConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LoginConfigImpl.java deleted file mode 100644 index a0e0863fe..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LoginConfigImpl.java +++ /dev/null @@ -1,445 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.webapplication.AuthMethodKind; -import org.eclipse.jst.j2ee.webapplication.FormLoginConfig; -import org.eclipse.jst.j2ee.webapplication.LoginConfig; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * The login-config element is used to configure the authentication method that should be used, the realm name that should be used for this application, and the attributes that are needed by the form login - * mechanism. - */ -public class LoginConfigImpl extends EObjectImpl implements LoginConfig, EObject { - - /** - * The default value of the '{@link #getAuthMethod() <em>Auth Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthMethod() - * @generated - * @ordered - */ - protected static final AuthMethodKind AUTH_METHOD_EDEFAULT = AuthMethodKind.UNSPECIFIED_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected AuthMethodKind authMethod = AUTH_METHOD_EDEFAULT; - /** - * This is true if the Auth Method attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean authMethodESet = false; - - /** - * The default value of the '{@link #getRealmName() <em>Realm Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRealmName() - * @generated - * @ordered - */ - protected static final String REALM_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String realmName = REALM_NAME_EDEFAULT; - /** - * The default value of the '{@link #getAuthorizationMethod() <em>Authorization Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthorizationMethod() - * @generated - * @ordered - */ - protected static final String AUTHORIZATION_METHOD_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAuthorizationMethod() <em>Authorization Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthorizationMethod() - * @generated - * @ordered - */ - protected String authorizationMethod = AUTHORIZATION_METHOD_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected FormLoginConfig formLoginConfig = null; - public LoginConfigImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getLoginConfig(); - } - - /** - * @generated This field/method will be replaced during code generation - * The auth-method element is used to configure the authentication mechanism for - * the web application. As a prerequisite to gaining access to any web resources - * which are protected by an authorization constraint, a user must have - * authenticated using the configured mechanism. Legal values for this element are - * "BASIC", "DIGEST", "FORM", or "CLIENT-CERT". - */ - public AuthMethodKind getAuthMethod() { - return authMethod; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAuthMethod(AuthMethodKind newAuthMethod) { - AuthMethodKind oldAuthMethod = authMethod; - authMethod = newAuthMethod == null ? AUTH_METHOD_EDEFAULT : newAuthMethod; - boolean oldAuthMethodESet = authMethodESet; - authMethodESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD, oldAuthMethod, authMethod, !oldAuthMethodESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetAuthMethod() { - AuthMethodKind oldAuthMethod = authMethod; - boolean oldAuthMethodESet = authMethodESet; - authMethod = AUTH_METHOD_EDEFAULT; - authMethodESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD, oldAuthMethod, AUTH_METHOD_EDEFAULT, oldAuthMethodESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetAuthMethod() { - return authMethodESet; - } - - /** - * @generated This field/method will be replaced during code generation - * The realm name element specifies the realm name to use in HTTP Basic - * authorization - */ - public String getRealmName() { - return realmName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRealmName(String newRealmName) { - String oldRealmName = realmName; - realmName = newRealmName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__REALM_NAME, oldRealmName, realmName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getAuthorizationMethod() { - return authorizationMethod; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAuthorizationMethod(String newAuthorizationMethod) { - String oldAuthorizationMethod = authorizationMethod; - authorizationMethod = newAuthorizationMethod; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__AUTHORIZATION_METHOD, oldAuthorizationMethod, authorizationMethod)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebApp getWebApp() { - if (eContainerFeatureID != WebapplicationPackage.LOGIN_CONFIG__WEB_APP) return null; - return (WebApp)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebApp(WebApp newWebApp) { - if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.LOGIN_CONFIG__WEB_APP && newWebApp != null)) { - if (EcoreUtil.isAncestor(this, newWebApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newWebApp != null) - msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__LOGIN_CONFIG, WebApp.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, newWebApp, newWebApp)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public FormLoginConfig getFormLoginConfig() { - return formLoginConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetFormLoginConfig(FormLoginConfig newFormLoginConfig, NotificationChain msgs) { - FormLoginConfig oldFormLoginConfig = formLoginConfig; - formLoginConfig = newFormLoginConfig; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, oldFormLoginConfig, newFormLoginConfig); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setFormLoginConfig(FormLoginConfig newFormLoginConfig) { - if (newFormLoginConfig != formLoginConfig) { - NotificationChain msgs = null; - if (formLoginConfig != null) - msgs = ((InternalEObject)formLoginConfig).eInverseRemove(this, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, FormLoginConfig.class, msgs); - if (newFormLoginConfig != null) - msgs = ((InternalEObject)newFormLoginConfig).eInverseAdd(this, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, FormLoginConfig.class, msgs); - msgs = basicSetFormLoginConfig(newFormLoginConfig, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, newFormLoginConfig, newFormLoginConfig)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.LOGIN_CONFIG__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, msgs); - case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - if (formLoginConfig != null) - msgs = ((InternalEObject)formLoginConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, null, msgs); - return basicSetFormLoginConfig((FormLoginConfig)otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.LOGIN_CONFIG__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, msgs); - case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - return basicSetFormLoginConfig(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.LOGIN_CONFIG__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__LOGIN_CONFIG, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD: - return getAuthMethod(); - case WebapplicationPackage.LOGIN_CONFIG__REALM_NAME: - return getRealmName(); - case WebapplicationPackage.LOGIN_CONFIG__AUTHORIZATION_METHOD: - return getAuthorizationMethod(); - case WebapplicationPackage.LOGIN_CONFIG__WEB_APP: - return getWebApp(); - case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - return getFormLoginConfig(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD: - return isSetAuthMethod(); - case WebapplicationPackage.LOGIN_CONFIG__REALM_NAME: - return REALM_NAME_EDEFAULT == null ? realmName != null : !REALM_NAME_EDEFAULT.equals(realmName); - case WebapplicationPackage.LOGIN_CONFIG__AUTHORIZATION_METHOD: - return AUTHORIZATION_METHOD_EDEFAULT == null ? authorizationMethod != null : !AUTHORIZATION_METHOD_EDEFAULT.equals(authorizationMethod); - case WebapplicationPackage.LOGIN_CONFIG__WEB_APP: - return getWebApp() != null; - case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - return formLoginConfig != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD: - setAuthMethod((AuthMethodKind)newValue); - return; - case WebapplicationPackage.LOGIN_CONFIG__REALM_NAME: - setRealmName((String)newValue); - return; - case WebapplicationPackage.LOGIN_CONFIG__AUTHORIZATION_METHOD: - setAuthorizationMethod((String)newValue); - return; - case WebapplicationPackage.LOGIN_CONFIG__WEB_APP: - setWebApp((WebApp)newValue); - return; - case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - setFormLoginConfig((FormLoginConfig)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD: - unsetAuthMethod(); - return; - case WebapplicationPackage.LOGIN_CONFIG__REALM_NAME: - setRealmName(REALM_NAME_EDEFAULT); - return; - case WebapplicationPackage.LOGIN_CONFIG__AUTHORIZATION_METHOD: - setAuthorizationMethod(AUTHORIZATION_METHOD_EDEFAULT); - return; - case WebapplicationPackage.LOGIN_CONFIG__WEB_APP: - setWebApp((WebApp)null); - return; - case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - setFormLoginConfig((FormLoginConfig)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (authMethod: "); - if (authMethodESet) result.append(authMethod); else result.append("<unset>"); - result.append(", realmName: "); - result.append(realmName); - result.append(", authorizationMethod: "); - result.append(authorizationMethod); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/MimeMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/MimeMappingImpl.java deleted file mode 100644 index ed541a26f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/MimeMappingImpl.java +++ /dev/null @@ -1,290 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.webapplication.MimeMapping; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * The mime-mapping element defines a mapping between an extension and a mime type. - - */ -public class MimeMappingImpl extends EObjectImpl implements MimeMapping, EObject { - - /** - * The default value of the '{@link #getExtension() <em>Extension</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExtension() - * @generated - * @ordered - */ - protected static final String EXTENSION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String extension = EXTENSION_EDEFAULT; - /** - * The default value of the '{@link #getMimeType() <em>Mime Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMimeType() - * @generated - * @ordered - */ - protected static final String MIME_TYPE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String mimeType = MIME_TYPE_EDEFAULT; - public MimeMappingImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getMimeMapping(); - } - - /** - * @generated This field/method will be replaced during code generation - * The extension element contains a string describing an extension. example: "txt" - */ - public String getExtension() { - return extension; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setExtension(String newExtension) { - String oldExtension = extension; - extension = newExtension; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.MIME_MAPPING__EXTENSION, oldExtension, extension)); - } - - /** - * @generated This field/method will be replaced during code generation - * The mime-type element contains a defined mime type. example: "text//plain" - */ - public String getMimeType() { - return mimeType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setMimeType(String newMimeType) { - String oldMimeType = mimeType; - mimeType = newMimeType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.MIME_MAPPING__MIME_TYPE, oldMimeType, mimeType)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebApp getWebApp() { - if (eContainerFeatureID != WebapplicationPackage.MIME_MAPPING__WEB_APP) return null; - return (WebApp)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebApp(WebApp newWebApp) { - if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.MIME_MAPPING__WEB_APP && newWebApp != null)) { - if (EcoreUtil.isAncestor(this, newWebApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newWebApp != null) - msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__MIME_MAPPINGS, WebApp.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.MIME_MAPPING__WEB_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.MIME_MAPPING__WEB_APP, newWebApp, newWebApp)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.MIME_MAPPING__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.MIME_MAPPING__WEB_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.MIME_MAPPING__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.MIME_MAPPING__WEB_APP, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.MIME_MAPPING__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__MIME_MAPPINGS, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.MIME_MAPPING__EXTENSION: - return getExtension(); - case WebapplicationPackage.MIME_MAPPING__MIME_TYPE: - return getMimeType(); - case WebapplicationPackage.MIME_MAPPING__WEB_APP: - return getWebApp(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.MIME_MAPPING__EXTENSION: - return EXTENSION_EDEFAULT == null ? extension != null : !EXTENSION_EDEFAULT.equals(extension); - case WebapplicationPackage.MIME_MAPPING__MIME_TYPE: - return MIME_TYPE_EDEFAULT == null ? mimeType != null : !MIME_TYPE_EDEFAULT.equals(mimeType); - case WebapplicationPackage.MIME_MAPPING__WEB_APP: - return getWebApp() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.MIME_MAPPING__EXTENSION: - setExtension((String)newValue); - return; - case WebapplicationPackage.MIME_MAPPING__MIME_TYPE: - setMimeType((String)newValue); - return; - case WebapplicationPackage.MIME_MAPPING__WEB_APP: - setWebApp((WebApp)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.MIME_MAPPING__EXTENSION: - setExtension(EXTENSION_EDEFAULT); - return; - case WebapplicationPackage.MIME_MAPPING__MIME_TYPE: - setMimeType(MIME_TYPE_EDEFAULT); - return; - case WebapplicationPackage.MIME_MAPPING__WEB_APP: - setWebApp((WebApp)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (extension: "); - result.append(extension); - result.append(", mimeType: "); - result.append(mimeType); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/RoleNameTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/RoleNameTypeImpl.java deleted file mode 100644 index e054e3be2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/RoleNameTypeImpl.java +++ /dev/null @@ -1,147 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webapplication.RoleNameType; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * @generated - */ -public class RoleNameTypeImpl extends EObjectImpl implements RoleNameType { - - /** - * The default value of the '{@link #getRoleName() <em>Role Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRoleName() - * @generated - * @ordered - */ - protected static final String ROLE_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String roleName = ROLE_NAME_EDEFAULT; - public RoleNameTypeImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getRoleNameType(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getRoleName() { - return roleName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRoleName(String newRoleName) { - String oldRoleName = roleName; - roleName = newRoleName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.ROLE_NAME_TYPE__ROLE_NAME, oldRoleName, roleName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ROLE_NAME_TYPE__ROLE_NAME: - return getRoleName(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ROLE_NAME_TYPE__ROLE_NAME: - return ROLE_NAME_EDEFAULT == null ? roleName != null : !ROLE_NAME_EDEFAULT.equals(roleName); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ROLE_NAME_TYPE__ROLE_NAME: - setRoleName((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.ROLE_NAME_TYPE__ROLE_NAME: - setRoleName(ROLE_NAME_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (roleName: "); - result.append(roleName); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SecurityConstraintImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SecurityConstraintImpl.java deleted file mode 100644 index 019332966..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SecurityConstraintImpl.java +++ /dev/null @@ -1,449 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.webapplication.AuthConstraint; -import org.eclipse.jst.j2ee.webapplication.SecurityConstraint; -import org.eclipse.jst.j2ee.webapplication.UserDataConstraint; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebResourceCollection; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * The security-constraint element is used to associate security constraints with one or more web resource collections - */ -public class SecurityConstraintImpl extends EObjectImpl implements SecurityConstraint, EObject { - - /** - * The default value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayName() - * @generated - * @ordered - */ - protected static final String DISPLAY_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayName() - * @generated - * @ordered - */ - protected String displayName = DISPLAY_NAME_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList webResourceCollections = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected AuthConstraint authConstraint = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected UserDataConstraint userDataConstraint = null; - /** - * The cached value of the '{@link #getDisplayNames() <em>Display Names</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayNames() - * @generated - * @ordered - */ - protected EList displayNames = null; - - public SecurityConstraintImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getSecurityConstraint(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getDisplayName() { - return displayName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDisplayName(String newDisplayName) { - String oldDisplayName = displayName; - displayName = newDisplayName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAME, oldDisplayName, displayName)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebApp getWebApp() { - if (eContainerFeatureID != WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP) return null; - return (WebApp)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebApp(WebApp newWebApp) { - if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP && newWebApp != null)) { - if (EcoreUtil.isAncestor(this, newWebApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newWebApp != null) - msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__CONSTRAINTS, WebApp.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP, newWebApp, newWebApp)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getWebResourceCollections() { - if (webResourceCollections == null) { - webResourceCollections = new EObjectContainmentWithInverseEList(WebResourceCollection.class, this, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS, WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT); - } - return webResourceCollections; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public AuthConstraint getAuthConstraint() { - return authConstraint; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetAuthConstraint(AuthConstraint newAuthConstraint, NotificationChain msgs) { - AuthConstraint oldAuthConstraint = authConstraint; - authConstraint = newAuthConstraint; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, oldAuthConstraint, newAuthConstraint); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setAuthConstraint(AuthConstraint newAuthConstraint) { - if (newAuthConstraint != authConstraint) { - NotificationChain msgs = null; - if (authConstraint != null) - msgs = ((InternalEObject)authConstraint).eInverseRemove(this, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, AuthConstraint.class, msgs); - if (newAuthConstraint != null) - msgs = ((InternalEObject)newAuthConstraint).eInverseAdd(this, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, AuthConstraint.class, msgs); - msgs = basicSetAuthConstraint(newAuthConstraint, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, newAuthConstraint, newAuthConstraint)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public UserDataConstraint getUserDataConstraint() { - return userDataConstraint; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetUserDataConstraint(UserDataConstraint newUserDataConstraint, NotificationChain msgs) { - UserDataConstraint oldUserDataConstraint = userDataConstraint; - userDataConstraint = newUserDataConstraint; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, oldUserDataConstraint, newUserDataConstraint); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setUserDataConstraint(UserDataConstraint newUserDataConstraint) { - if (newUserDataConstraint != userDataConstraint) { - NotificationChain msgs = null; - if (userDataConstraint != null) - msgs = ((InternalEObject)userDataConstraint).eInverseRemove(this, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, UserDataConstraint.class, msgs); - if (newUserDataConstraint != null) - msgs = ((InternalEObject)newUserDataConstraint).eInverseAdd(this, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, UserDataConstraint.class, msgs); - msgs = basicSetUserDataConstraint(newUserDataConstraint, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, newUserDataConstraint, newUserDataConstraint)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDisplayNames() { - if (displayNames == null) { - displayNames = new EObjectContainmentEList(DisplayName.class, this, WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES); - } - return displayNames; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP, msgs); - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - return ((InternalEList)getWebResourceCollections()).basicAdd(otherEnd, msgs); - case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - if (authConstraint != null) - msgs = ((InternalEObject)authConstraint).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, null, msgs); - return basicSetAuthConstraint((AuthConstraint)otherEnd, msgs); - case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - if (userDataConstraint != null) - msgs = ((InternalEObject)userDataConstraint).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, null, msgs); - return basicSetUserDataConstraint((UserDataConstraint)otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP, msgs); - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - return ((InternalEList)getWebResourceCollections()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - return basicSetAuthConstraint(null, msgs); - case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - return basicSetUserDataConstraint(null, msgs); - case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__CONSTRAINTS, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAME: - return getDisplayName(); - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP: - return getWebApp(); - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - return getWebResourceCollections(); - case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - return getAuthConstraint(); - case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - return getUserDataConstraint(); - case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES: - return getDisplayNames(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP: - return getWebApp() != null; - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - return webResourceCollections != null && !webResourceCollections.isEmpty(); - case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - return authConstraint != null; - case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - return userDataConstraint != null; - case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (displayName: "); - result.append(displayName); - result.append(')'); - return result.toString(); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP: - setWebApp((WebApp)newValue); - return; - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - getWebResourceCollections().clear(); - getWebResourceCollections().addAll((Collection)newValue); - return; - case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - setAuthConstraint((AuthConstraint)newValue); - return; - case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - setUserDataConstraint((UserDataConstraint)newValue); - return; - case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP: - setWebApp((WebApp)null); - return; - case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - getWebResourceCollections().clear(); - return; - case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - setAuthConstraint((AuthConstraint)null); - return; - case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - setUserDataConstraint((UserDataConstraint)null); - return; - case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - } - eDynamicUnset(eFeature); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletImpl.java deleted file mode 100644 index a1ff941b5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletImpl.java +++ /dev/null @@ -1,699 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Properties; -import java.util.Vector; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.BasicEList; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jem.java.JavaRefFactory; -import org.eclipse.jst.j2ee.common.ParamValue; -import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity; -import org.eclipse.jst.j2ee.common.SecurityRoleRef; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.webapplication.InitParam; -import org.eclipse.jst.j2ee.webapplication.JSPType; -import org.eclipse.jst.j2ee.webapplication.Servlet; -import org.eclipse.jst.j2ee.webapplication.ServletMapping; -import org.eclipse.jst.j2ee.webapplication.ServletType; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebType; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * The servlet element contains the declarative data of a servlet. If a jsp-file is specified and the load-on-startup element is present, then the JSP should be precompiled and loaded. - */ -public class ServletImpl extends CompatibilityDescriptionGroupImpl implements Servlet { - - /** - * The default value of the '{@link #getServletName() <em>Servlet Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServletName() - * @generated - * @ordered - */ - protected static final String SERVLET_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String servletName = SERVLET_NAME_EDEFAULT; - /** - * The default value of the '{@link #getLoadOnStartup() <em>Load On Startup</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLoadOnStartup() - * @generated - * @ordered - */ - protected static final Integer LOAD_ON_STARTUP_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected Integer loadOnStartup = LOAD_ON_STARTUP_EDEFAULT; - /** - * This is true if the Load On Startup attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean loadOnStartupESet = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected WebType webType = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList params = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList securityRoleRefs = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected RunAsSpecifiedIdentity runAs = null; - /** - * The cached value of the '{@link #getInitParams() <em>Init Params</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInitParams() - * @generated - * @ordered - */ - protected EList initParams = null; - - public ServletImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getServlet(); - } - -/** - * Returns an unmodifiable list of the mappings that this - * servlet participates in. Since servletMappings is not - * a bi-directional attribute, if you want to add or delete a - * mapping, this must be done in the web-app. - * @return java.util.List - */ -public List getMappings() { - WebApp webApp = (WebApp) eContainer(); - if (webApp == null) return new BasicEList(0); - - EList allMappings = webApp.getServletMappings(); - Iterator i = allMappings.iterator(); - List mappings = new Vector(); - while (i.hasNext()) { - ServletMapping mapping = (ServletMapping) i.next(); - if (mapping.getServlet() == this) - mappings.add(mapping); - } - return mappings; -} -/** - * getParamsAsProperties method comment. - */ -public Properties getParamsAsProperties() { - Properties props = new Properties(); - List lparams = getParams(); - InitParam param; - for (int i = 0; i < lparams.size(); i++) { - param = (InitParam) lparams.get(i); - props.setProperty(param.getParamName(), param.getParamValue()); - } - return props; -} -/** - * @see Servlet - */ -public void reSyncSecurityRoleRef(java.lang.String existingRoleName, java.lang.String newRoleName) { - List roleRefs = getSecurityRoleRefs(); - for (int i = 0; i < roleRefs.size(); i++) { - SecurityRoleRef roleRef = (SecurityRoleRef) roleRefs.get(i); - if (roleRef.getLink() != null && roleRef.getLink().equals(existingRoleName)) - roleRef.setLink(newRoleName); - } -} - /** - * @generated This field/method will be replaced during code generation - * The servlet-name element contains the canonical name of the servlet. - */ - public String getServletName() { - return servletName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setServletName(String newServletName) { - String oldServletName = servletName; - servletName = newServletName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__SERVLET_NAME, oldServletName, servletName)); - } - - /** - * - */ - public void setDisplayName(String newDisplayName) { - super.setDisplayName(newDisplayName); - } - - /** - * @generated This field/method will be replaced during code generation - * The load-on-startup element indicates that this servlet should be loaded on the startup of the web application. The optional contents of these element must be a positive integer indicating the order in which the servlet should be loaded. Lower integers are loaded before higher integers. If no value is specified, or if the value specified is not a positive integer, the container is free to load it at any time in the startup sequence. - - */ - public Integer getLoadOnStartup() { - return loadOnStartup; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLoadOnStartup(Integer newLoadOnStartup) { - Integer oldLoadOnStartup = loadOnStartup; - loadOnStartup = newLoadOnStartup; - boolean oldLoadOnStartupESet = loadOnStartupESet; - loadOnStartupESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__LOAD_ON_STARTUP, oldLoadOnStartup, loadOnStartup, !oldLoadOnStartupESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetLoadOnStartup() { - Integer oldLoadOnStartup = loadOnStartup; - boolean oldLoadOnStartupESet = loadOnStartupESet; - loadOnStartup = LOAD_ON_STARTUP_EDEFAULT; - loadOnStartupESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, WebapplicationPackage.SERVLET__LOAD_ON_STARTUP, oldLoadOnStartup, LOAD_ON_STARTUP_EDEFAULT, oldLoadOnStartupESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetLoadOnStartup() { - return loadOnStartupESet; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebApp getWebApp() { - if (eContainerFeatureID != WebapplicationPackage.SERVLET__WEB_APP) return null; - return (WebApp)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebApp(WebApp newWebApp) { - if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.SERVLET__WEB_APP && newWebApp != null)) { - if (EcoreUtil.isAncestor(this, newWebApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newWebApp != null) - msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__SERVLETS, WebApp.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.SERVLET__WEB_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__WEB_APP, newWebApp, newWebApp)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebType getWebType() { - return webType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWebType(WebType newWebType, NotificationChain msgs) { - WebType oldWebType = webType; - webType = newWebType; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__WEB_TYPE, oldWebType, newWebType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebType(WebType newWebType) { - if (newWebType != webType) { - NotificationChain msgs = null; - if (webType != null) - msgs = ((InternalEObject)webType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SERVLET__WEB_TYPE, null, msgs); - if (newWebType != null) - msgs = ((InternalEObject)newWebType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SERVLET__WEB_TYPE, null, msgs); - msgs = basicSetWebType(newWebType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__WEB_TYPE, newWebType, newWebType)); - } - - /** - * <!-- begin-user-doc --> - * getParams() is used for J2EE1.4 - * <!-- end-user-doc --> - * @generated - */ - public EList getParams() { - if (params == null) { - params = new EObjectContainmentEList(InitParam.class, this, WebapplicationPackage.SERVLET__PARAMS); - } - return params; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getSecurityRoleRefs() { - if (securityRoleRefs == null) { - securityRoleRefs = new EObjectContainmentEList(SecurityRoleRef.class, this, WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS); - } - return securityRoleRefs; - } - - /** - * @generated This field/method will be replaced during code generation - * If defined for a servlet, overrides the security identity used to call an EJB by that servlet in this web application. The role-name is one of the security roles already defined for this web application. - */ - public RunAsSpecifiedIdentity getRunAs() { - return runAs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetRunAs(RunAsSpecifiedIdentity newRunAs, NotificationChain msgs) { - RunAsSpecifiedIdentity oldRunAs = runAs; - runAs = newRunAs; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__RUN_AS, oldRunAs, newRunAs); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setRunAs(RunAsSpecifiedIdentity newRunAs) { - if (newRunAs != runAs) { - NotificationChain msgs = null; - if (runAs != null) - msgs = ((InternalEObject)runAs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SERVLET__RUN_AS, null, msgs); - if (newRunAs != null) - msgs = ((InternalEObject)newRunAs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SERVLET__RUN_AS, null, msgs); - msgs = basicSetRunAs(newRunAs, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__RUN_AS, newRunAs, newRunAs)); - } - - /** - * <!-- begin-user-doc --> - * getInitParams() is used for J2EE1.3 - * <!-- end-user-doc --> - * @generated - */ - public EList getInitParams() { - if (initParams == null) { - initParams = new EObjectContainmentEList(ParamValue.class, this, WebapplicationPackage.SERVLET__INIT_PARAMS); - } - return initParams; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.SERVLET__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.SERVLET__WEB_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.SERVLET__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.SERVLET__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.SERVLET__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.SERVLET__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.SERVLET__WEB_APP, msgs); - case WebapplicationPackage.SERVLET__WEB_TYPE: - return basicSetWebType(null, msgs); - case WebapplicationPackage.SERVLET__PARAMS: - return ((InternalEList)getParams()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS: - return ((InternalEList)getSecurityRoleRefs()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.SERVLET__RUN_AS: - return basicSetRunAs(null, msgs); - case WebapplicationPackage.SERVLET__INIT_PARAMS: - return ((InternalEList)getInitParams()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.SERVLET__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__SERVLETS, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET__ICONS: - return getIcons(); - case WebapplicationPackage.SERVLET__DISPLAY_NAMES: - return getDisplayNames(); - case WebapplicationPackage.SERVLET__DESCRIPTIONS: - return getDescriptions(); - case WebapplicationPackage.SERVLET__SMALL_ICON: - return getSmallIcon(); - case WebapplicationPackage.SERVLET__LARGE_ICON: - return getLargeIcon(); - case WebapplicationPackage.SERVLET__DESCRIPTION: - return getDescription(); - case WebapplicationPackage.SERVLET__DISPLAY_NAME: - return getDisplayName(); - case WebapplicationPackage.SERVLET__SERVLET_NAME: - return getServletName(); - case WebapplicationPackage.SERVLET__LOAD_ON_STARTUP: - return getLoadOnStartup(); - case WebapplicationPackage.SERVLET__WEB_APP: - return getWebApp(); - case WebapplicationPackage.SERVLET__WEB_TYPE: - return getWebType(); - case WebapplicationPackage.SERVLET__PARAMS: - return getParams(); - case WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS: - return getSecurityRoleRefs(); - case WebapplicationPackage.SERVLET__RUN_AS: - return getRunAs(); - case WebapplicationPackage.SERVLET__INIT_PARAMS: - return getInitParams(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET__ICONS: - return icons != null && !icons.isEmpty(); - case WebapplicationPackage.SERVLET__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case WebapplicationPackage.SERVLET__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WebapplicationPackage.SERVLET__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case WebapplicationPackage.SERVLET__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case WebapplicationPackage.SERVLET__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WebapplicationPackage.SERVLET__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case WebapplicationPackage.SERVLET__SERVLET_NAME: - return SERVLET_NAME_EDEFAULT == null ? servletName != null : !SERVLET_NAME_EDEFAULT.equals(servletName); - case WebapplicationPackage.SERVLET__LOAD_ON_STARTUP: - return isSetLoadOnStartup(); - case WebapplicationPackage.SERVLET__WEB_APP: - return getWebApp() != null; - case WebapplicationPackage.SERVLET__WEB_TYPE: - return webType != null; - case WebapplicationPackage.SERVLET__PARAMS: - return params != null && !params.isEmpty(); - case WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS: - return securityRoleRefs != null && !securityRoleRefs.isEmpty(); - case WebapplicationPackage.SERVLET__RUN_AS: - return runAs != null; - case WebapplicationPackage.SERVLET__INIT_PARAMS: - return initParams != null && !initParams.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case WebapplicationPackage.SERVLET__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case WebapplicationPackage.SERVLET__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WebapplicationPackage.SERVLET__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case WebapplicationPackage.SERVLET__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case WebapplicationPackage.SERVLET__DESCRIPTION: - setDescription((String)newValue); - return; - case WebapplicationPackage.SERVLET__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case WebapplicationPackage.SERVLET__SERVLET_NAME: - setServletName((String)newValue); - return; - case WebapplicationPackage.SERVLET__LOAD_ON_STARTUP: - setLoadOnStartup((Integer)newValue); - return; - case WebapplicationPackage.SERVLET__WEB_APP: - setWebApp((WebApp)newValue); - return; - case WebapplicationPackage.SERVLET__WEB_TYPE: - setWebType((WebType)newValue); - return; - case WebapplicationPackage.SERVLET__PARAMS: - getParams().clear(); - getParams().addAll((Collection)newValue); - return; - case WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - getSecurityRoleRefs().addAll((Collection)newValue); - return; - case WebapplicationPackage.SERVLET__RUN_AS: - setRunAs((RunAsSpecifiedIdentity)newValue); - return; - case WebapplicationPackage.SERVLET__INIT_PARAMS: - getInitParams().clear(); - getInitParams().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET__ICONS: - getIcons().clear(); - return; - case WebapplicationPackage.SERVLET__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case WebapplicationPackage.SERVLET__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WebapplicationPackage.SERVLET__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case WebapplicationPackage.SERVLET__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case WebapplicationPackage.SERVLET__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WebapplicationPackage.SERVLET__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case WebapplicationPackage.SERVLET__SERVLET_NAME: - setServletName(SERVLET_NAME_EDEFAULT); - return; - case WebapplicationPackage.SERVLET__LOAD_ON_STARTUP: - unsetLoadOnStartup(); - return; - case WebapplicationPackage.SERVLET__WEB_APP: - setWebApp((WebApp)null); - return; - case WebapplicationPackage.SERVLET__WEB_TYPE: - setWebType((WebType)null); - return; - case WebapplicationPackage.SERVLET__PARAMS: - getParams().clear(); - return; - case WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - return; - case WebapplicationPackage.SERVLET__RUN_AS: - setRunAs((RunAsSpecifiedIdentity)null); - return; - case WebapplicationPackage.SERVLET__INIT_PARAMS: - getInitParams().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (servletName: "); - result.append(servletName); - result.append(", loadOnStartup: "); - if (loadOnStartupESet) result.append(loadOnStartup); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - - /** - * return the java servlet class for this servlet - */ - public JavaClass getServletClass() { - JavaClass javaClass = null; - String javaClassName = null; - // Handle servlet case - if (getWebType().isServletType()) - javaClassName = ((ServletType)getWebType()).getClassName(); - //Handle the JSP case - else { - String relPath = ((JSPType)getWebType()).getJspFile(); - URI webAppURI = getWebApp().eResource().getURI(); - javaClassName = webAppURI.segment(1)+"/"+webAppURI.segment(2)+relPath;//$NON-NLS-1$ - } - javaClass = (JavaClass) JavaRefFactory.eINSTANCE.reflectType(javaClassName,this); - return javaClass; - } - -} - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletMappingImpl.java deleted file mode 100644 index 9f4e0fa4f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletMappingImpl.java +++ /dev/null @@ -1,349 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.webapplication.Servlet; -import org.eclipse.jst.j2ee.webapplication.ServletMapping; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * The servlet-mapping element defines a mapping between a servlet and a url pattern - */ -public class ServletMappingImpl extends EObjectImpl implements ServletMapping, EObject { - - /** - * The default value of the '{@link #getUrlPattern() <em>Url Pattern</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUrlPattern() - * @generated - * @ordered - */ - protected static final String URL_PATTERN_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String urlPattern = URL_PATTERN_EDEFAULT; - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected Servlet servlet = null; - public ServletMappingImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getServletMapping(); - } - - /** - * @generated This field/method will be replaced during code generation - * The url-pattern element contains the url pattern of the mapping. Must follow - * the rules specified in Section 10 of the Servlet API Specification. - */ - public String getUrlPattern() { - return urlPattern; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setUrlPattern(String newUrlPattern) { - String oldUrlPattern = urlPattern; - urlPattern = newUrlPattern; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET_MAPPING__URL_PATTERN, oldUrlPattern, urlPattern)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET_MAPPING__NAME, oldName, name)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebApp getWebApp() { - if (eContainerFeatureID != WebapplicationPackage.SERVLET_MAPPING__WEB_APP) return null; - return (WebApp)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebApp(WebApp newWebApp) { - if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.SERVLET_MAPPING__WEB_APP && newWebApp != null)) { - if (EcoreUtil.isAncestor(this, newWebApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newWebApp != null) - msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS, WebApp.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.SERVLET_MAPPING__WEB_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET_MAPPING__WEB_APP, newWebApp, newWebApp)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public Servlet getServlet() { - if (servlet != null && servlet.eIsProxy()) { - Servlet oldServlet = servlet; - servlet = (Servlet)eResolveProxy((InternalEObject)servlet); - if (servlet != oldServlet) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, WebapplicationPackage.SERVLET_MAPPING__SERVLET, oldServlet, servlet)); - } - } - return servlet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Servlet basicGetServlet() { - return servlet; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setServlet(Servlet newServlet) { - Servlet oldServlet = servlet; - servlet = newServlet; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET_MAPPING__SERVLET, oldServlet, servlet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.SERVLET_MAPPING__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.SERVLET_MAPPING__WEB_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.SERVLET_MAPPING__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.SERVLET_MAPPING__WEB_APP, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.SERVLET_MAPPING__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET_MAPPING__URL_PATTERN: - return getUrlPattern(); - case WebapplicationPackage.SERVLET_MAPPING__NAME: - return getName(); - case WebapplicationPackage.SERVLET_MAPPING__WEB_APP: - return getWebApp(); - case WebapplicationPackage.SERVLET_MAPPING__SERVLET: - if (resolve) return getServlet(); - return basicGetServlet(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET_MAPPING__URL_PATTERN: - return URL_PATTERN_EDEFAULT == null ? urlPattern != null : !URL_PATTERN_EDEFAULT.equals(urlPattern); - case WebapplicationPackage.SERVLET_MAPPING__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case WebapplicationPackage.SERVLET_MAPPING__WEB_APP: - return getWebApp() != null; - case WebapplicationPackage.SERVLET_MAPPING__SERVLET: - return servlet != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET_MAPPING__URL_PATTERN: - setUrlPattern((String)newValue); - return; - case WebapplicationPackage.SERVLET_MAPPING__NAME: - setName((String)newValue); - return; - case WebapplicationPackage.SERVLET_MAPPING__WEB_APP: - setWebApp((WebApp)newValue); - return; - case WebapplicationPackage.SERVLET_MAPPING__SERVLET: - setServlet((Servlet)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET_MAPPING__URL_PATTERN: - setUrlPattern(URL_PATTERN_EDEFAULT); - return; - case WebapplicationPackage.SERVLET_MAPPING__NAME: - setName(NAME_EDEFAULT); - return; - case WebapplicationPackage.SERVLET_MAPPING__WEB_APP: - setWebApp((WebApp)null); - return; - case WebapplicationPackage.SERVLET_MAPPING__SERVLET: - setServlet((Servlet)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (urlPattern: "); - result.append(urlPattern); - result.append(", name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletTypeImpl.java deleted file mode 100644 index fa31ed292..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletTypeImpl.java +++ /dev/null @@ -1,150 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.jst.j2ee.webapplication.ServletType; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * @generated - */ -public class ServletTypeImpl extends WebTypeImpl implements ServletType { - - /** - * The default value of the '{@link #getClassName() <em>Class Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getClassName() - * @generated - * @ordered - */ - protected static final String CLASS_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String className = CLASS_NAME_EDEFAULT; - public ServletTypeImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getServletType(); - } - -public boolean isServletType() { - return true; -} - /** - * @generated This field/method will be replaced during code generation - */ - public String getClassName() { - return className; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setClassName(String newClassName) { - String oldClassName = className; - className = newClassName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET_TYPE__CLASS_NAME, oldClassName, className)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET_TYPE__CLASS_NAME: - return getClassName(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET_TYPE__CLASS_NAME: - return CLASS_NAME_EDEFAULT == null ? className != null : !CLASS_NAME_EDEFAULT.equals(className); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET_TYPE__CLASS_NAME: - setClassName((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SERVLET_TYPE__CLASS_NAME: - setClassName(CLASS_NAME_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (className: "); - result.append(className); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SessionConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SessionConfigImpl.java deleted file mode 100644 index 15520c148..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SessionConfigImpl.java +++ /dev/null @@ -1,281 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.webapplication.SessionConfig; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * The session-config element defines the session parameters for this web application. - */ -public class SessionConfigImpl extends EObjectImpl implements SessionConfig, EObject { - - /** - * The default value of the '{@link #getSessionTimeout() <em>Session Timeout</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSessionTimeout() - * @generated - * @ordered - */ - protected static final int SESSION_TIMEOUT_EDEFAULT = 0; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected int sessionTimeout = SESSION_TIMEOUT_EDEFAULT; - /** - * This is true if the Session Timeout attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean sessionTimeoutESet = false; - - public SessionConfigImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getSessionConfig(); - } - - /** - * @generated This field/method will be replaced during code generation - * The session-timeout element defines the default session timeout interval for - * all sessions created in this web application. The specified timeout must be - * expressed in a whole number of minutes. - */ - public int getSessionTimeout() { - return sessionTimeout; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setSessionTimeout(int newSessionTimeout) { - int oldSessionTimeout = sessionTimeout; - sessionTimeout = newSessionTimeout; - boolean oldSessionTimeoutESet = sessionTimeoutESet; - sessionTimeoutESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT, oldSessionTimeout, sessionTimeout, !oldSessionTimeoutESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetSessionTimeout() { - int oldSessionTimeout = sessionTimeout; - boolean oldSessionTimeoutESet = sessionTimeoutESet; - sessionTimeout = SESSION_TIMEOUT_EDEFAULT; - sessionTimeoutESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT, oldSessionTimeout, SESSION_TIMEOUT_EDEFAULT, oldSessionTimeoutESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetSessionTimeout() { - return sessionTimeoutESet; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebApp getWebApp() { - if (eContainerFeatureID != WebapplicationPackage.SESSION_CONFIG__WEB_APP) return null; - return (WebApp)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebApp(WebApp newWebApp) { - if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.SESSION_CONFIG__WEB_APP && newWebApp != null)) { - if (EcoreUtil.isAncestor(this, newWebApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newWebApp != null) - msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__SESSION_CONFIG, WebApp.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.SESSION_CONFIG__WEB_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SESSION_CONFIG__WEB_APP, newWebApp, newWebApp)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.SESSION_CONFIG__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.SESSION_CONFIG__WEB_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.SESSION_CONFIG__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.SESSION_CONFIG__WEB_APP, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.SESSION_CONFIG__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__SESSION_CONFIG, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT: - return new Integer(getSessionTimeout()); - case WebapplicationPackage.SESSION_CONFIG__WEB_APP: - return getWebApp(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT: - return isSetSessionTimeout(); - case WebapplicationPackage.SESSION_CONFIG__WEB_APP: - return getWebApp() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT: - setSessionTimeout(((Integer)newValue).intValue()); - return; - case WebapplicationPackage.SESSION_CONFIG__WEB_APP: - setWebApp((WebApp)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT: - unsetSessionTimeout(); - return; - case WebapplicationPackage.SESSION_CONFIG__WEB_APP: - setWebApp((WebApp)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (sessionTimeout: "); - if (sessionTimeoutESet) result.append(sessionTimeout); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/TagLibRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/TagLibRefImpl.java deleted file mode 100644 index b0cec43ed..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/TagLibRefImpl.java +++ /dev/null @@ -1,296 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.webapplication.TagLibRef; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * The taglib element is used to describe a JSP tag library. - */ -public class TagLibRefImpl extends EObjectImpl implements TagLibRef, EObject{ - - /** - * The default value of the '{@link #getTaglibURI() <em>Taglib URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTaglibURI() - * @generated - * @ordered - */ - protected static final String TAGLIB_URI_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String taglibURI = TAGLIB_URI_EDEFAULT; - /** - * The default value of the '{@link #getTaglibLocation() <em>Taglib Location</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTaglibLocation() - * @generated - * @ordered - */ - protected static final String TAGLIB_LOCATION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String taglibLocation = TAGLIB_LOCATION_EDEFAULT; - public TagLibRefImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getTagLibRef(); - } - - /** - * @generated This field/method will be replaced during code generation - * The taglib-uri element describes a URI, relative to the location of the web.xml - * document, identifying a Tag Library used in the Web Application. - */ - public String getTaglibURI() { - return taglibURI; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setTaglibURI(String newTaglibURI) { - String oldTaglibURI = taglibURI; - taglibURI = newTaglibURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.TAG_LIB_REF__TAGLIB_URI, oldTaglibURI, taglibURI)); - } - - /** - * @generated This field/method will be replaced during code generation - * The taglib-location element contains the location (as a resource relative to - * the root of the web application) where to find the Tag Libary Description file - * for the tag library. - */ - public String getTaglibLocation() { - return taglibLocation; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setTaglibLocation(String newTaglibLocation) { - String oldTaglibLocation = taglibLocation; - taglibLocation = newTaglibLocation; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.TAG_LIB_REF__TAGLIB_LOCATION, oldTaglibLocation, taglibLocation)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebApp getWebApp() { - if (eContainerFeatureID != WebapplicationPackage.TAG_LIB_REF__WEB_APP) return null; - return (WebApp)eContainer; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWebApp(WebApp newWebApp) { - if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.TAG_LIB_REF__WEB_APP && newWebApp != null)) { - if (EcoreUtil.isAncestor(this, newWebApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newWebApp != null) - msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__TAG_LIBS, WebApp.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.TAG_LIB_REF__WEB_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.TAG_LIB_REF__WEB_APP, newWebApp, newWebApp)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.TAG_LIB_REF__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.TAG_LIB_REF__WEB_APP, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.TAG_LIB_REF__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.TAG_LIB_REF__WEB_APP, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.TAG_LIB_REF__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__TAG_LIBS, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.TAG_LIB_REF__TAGLIB_URI: - return getTaglibURI(); - case WebapplicationPackage.TAG_LIB_REF__TAGLIB_LOCATION: - return getTaglibLocation(); - case WebapplicationPackage.TAG_LIB_REF__WEB_APP: - return getWebApp(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.TAG_LIB_REF__TAGLIB_URI: - return TAGLIB_URI_EDEFAULT == null ? taglibURI != null : !TAGLIB_URI_EDEFAULT.equals(taglibURI); - case WebapplicationPackage.TAG_LIB_REF__TAGLIB_LOCATION: - return TAGLIB_LOCATION_EDEFAULT == null ? taglibLocation != null : !TAGLIB_LOCATION_EDEFAULT.equals(taglibLocation); - case WebapplicationPackage.TAG_LIB_REF__WEB_APP: - return getWebApp() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.TAG_LIB_REF__TAGLIB_URI: - setTaglibURI((String)newValue); - return; - case WebapplicationPackage.TAG_LIB_REF__TAGLIB_LOCATION: - setTaglibLocation((String)newValue); - return; - case WebapplicationPackage.TAG_LIB_REF__WEB_APP: - setWebApp((WebApp)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.TAG_LIB_REF__TAGLIB_URI: - setTaglibURI(TAGLIB_URI_EDEFAULT); - return; - case WebapplicationPackage.TAG_LIB_REF__TAGLIB_LOCATION: - setTaglibLocation(TAGLIB_LOCATION_EDEFAULT); - return; - case WebapplicationPackage.TAG_LIB_REF__WEB_APP: - setWebApp((WebApp)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (taglibURI: "); - result.append(taglibURI); - result.append(", taglibLocation: "); - result.append(taglibLocation); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/URLPatternTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/URLPatternTypeImpl.java deleted file mode 100644 index a48bdaab6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/URLPatternTypeImpl.java +++ /dev/null @@ -1,243 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.webapplication.URLPatternType; -import org.eclipse.jst.j2ee.webapplication.WebResourceCollection; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * @generated - */ -public class URLPatternTypeImpl extends EObjectImpl implements URLPatternType { - - /** - * The default value of the '{@link #getUrlPattern() <em>Url Pattern</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUrlPattern() - * @generated - * @ordered - */ - protected static final String URL_PATTERN_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String urlPattern = URL_PATTERN_EDEFAULT; - public URLPatternTypeImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getURLPatternType(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getUrlPattern() { - return urlPattern; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setUrlPattern(String newUrlPattern) { - String oldUrlPattern = urlPattern; - urlPattern = newUrlPattern; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.URL_PATTERN_TYPE__URL_PATTERN, oldUrlPattern, urlPattern)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WebResourceCollection getResCollection() { - if (eContainerFeatureID != WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION) return null; - return (WebResourceCollection)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setResCollection(WebResourceCollection newResCollection) { - if (newResCollection != eContainer || (eContainerFeatureID != WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION && newResCollection != null)) { - if (EcoreUtil.isAncestor(this, newResCollection)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newResCollection != null) - msgs = ((InternalEObject)newResCollection).eInverseAdd(this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS, WebResourceCollection.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newResCollection, WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION, newResCollection, newResCollection)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION: - return eBasicSetContainer(null, WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS, WebResourceCollection.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.URL_PATTERN_TYPE__URL_PATTERN: - return getUrlPattern(); - case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION: - return getResCollection(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.URL_PATTERN_TYPE__URL_PATTERN: - return URL_PATTERN_EDEFAULT == null ? urlPattern != null : !URL_PATTERN_EDEFAULT.equals(urlPattern); - case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION: - return getResCollection() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.URL_PATTERN_TYPE__URL_PATTERN: - setUrlPattern((String)newValue); - return; - case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION: - setResCollection((WebResourceCollection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.URL_PATTERN_TYPE__URL_PATTERN: - setUrlPattern(URL_PATTERN_EDEFAULT); - return; - case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION: - setResCollection((WebResourceCollection)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (urlPattern: "); - result.append(urlPattern); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/UserDataConstraintImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/UserDataConstraintImpl.java deleted file mode 100644 index e3a17cac8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/UserDataConstraintImpl.java +++ /dev/null @@ -1,376 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.webapplication.SecurityConstraint; -import org.eclipse.jst.j2ee.webapplication.TransportGuaranteeType; -import org.eclipse.jst.j2ee.webapplication.UserDataConstraint; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * The user-data-constraint element is used to indicate how data communicated between the client and container should be protected - */ -public class UserDataConstraintImpl extends EObjectImpl implements UserDataConstraint, EObject { - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The default value of the '{@link #getTransportGuarantee() <em>Transport Guarantee</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTransportGuarantee() - * @generated - * @ordered - */ - protected static final TransportGuaranteeType TRANSPORT_GUARANTEE_EDEFAULT = TransportGuaranteeType.NONE_LITERAL; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected TransportGuaranteeType transportGuarantee = TRANSPORT_GUARANTEE_EDEFAULT; - /** - * This is true if the Transport Guarantee attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean transportGuaranteeESet = false; - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - public UserDataConstraintImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getUserDataConstraint(); - } - - /** - * @generated This field/method will be replaced during code generation - * A description for the user data constraint. - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTION, oldDescription, description)); - } - - /** - * @generated This field/method will be replaced during code generation - * The transport-guarantee element specifies that the communication between client - * and server should be NONE, INTEGRAL, or CONFIDENTIAL. NONE means that the - * application does not require any - * transport guarantees. A value of INTEGRAL means that the application requires - * that the data sent between the client and server be sent in such a way that it - * can't be changed in transit. CONFIDENTIAL means that the application requires - * that the data be transmitted in a fashion that prevents other entities from - * observing the contents of the transmission. In most cases, the presence of the - * INTEGRAL or CONFIDENTIAL flag will indicate that the use of SSL is required. - */ - public TransportGuaranteeType getTransportGuarantee() { - return transportGuarantee; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTransportGuarantee(TransportGuaranteeType newTransportGuarantee) { - TransportGuaranteeType oldTransportGuarantee = transportGuarantee; - transportGuarantee = newTransportGuarantee == null ? TRANSPORT_GUARANTEE_EDEFAULT : newTransportGuarantee; - boolean oldTransportGuaranteeESet = transportGuaranteeESet; - transportGuaranteeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE, oldTransportGuarantee, transportGuarantee, !oldTransportGuaranteeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetTransportGuarantee() { - TransportGuaranteeType oldTransportGuarantee = transportGuarantee; - boolean oldTransportGuaranteeESet = transportGuaranteeESet; - transportGuarantee = TRANSPORT_GUARANTEE_EDEFAULT; - transportGuaranteeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE, oldTransportGuarantee, TRANSPORT_GUARANTEE_EDEFAULT, oldTransportGuaranteeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetTransportGuarantee() { - return transportGuaranteeESet; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public SecurityConstraint getSecConstraint() { - if (eContainerFeatureID != WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT) return null; - return (SecurityConstraint)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setSecConstraint(SecurityConstraint newSecConstraint) { - if (newSecConstraint != eContainer || (eContainerFeatureID != WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT && newSecConstraint != null)) { - if (EcoreUtil.isAncestor(this, newSecConstraint)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newSecConstraint != null) - msgs = ((InternalEObject)newSecConstraint).eInverseAdd(this, WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, SecurityConstraint.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newSecConstraint, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, newSecConstraint, newSecConstraint)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT: - return eBasicSetContainer(null, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, msgs); - case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT: - return eContainer.eInverseRemove(this, WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, SecurityConstraint.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTION: - return getDescription(); - case WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE: - return getTransportGuarantee(); - case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT: - return getSecConstraint(); - case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS: - return getDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE: - return isSetTransportGuarantee(); - case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT: - return getSecConstraint() != null; - case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTION: - setDescription((String)newValue); - return; - case WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE: - setTransportGuarantee((TransportGuaranteeType)newValue); - return; - case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT: - setSecConstraint((SecurityConstraint)newValue); - return; - case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE: - unsetTransportGuarantee(); - return; - case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT: - setSecConstraint((SecurityConstraint)null); - return; - case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS: - getDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", transportGuarantee: "); - if (transportGuaranteeESet) result.append(transportGuarantee); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppImpl.java deleted file mode 100644 index c9b9e6be6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppImpl.java +++ /dev/null @@ -1,1399 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Listener; -import org.eclipse.jst.j2ee.common.MessageDestination; -import org.eclipse.jst.j2ee.common.ParamValue; -import org.eclipse.jst.j2ee.common.SecurityRole; -import org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl; -import org.eclipse.jst.j2ee.common.internal.util.CommonUtil; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; -import org.eclipse.jst.j2ee.internal.common.XMLResource; -import org.eclipse.jst.j2ee.jsp.JSPConfig; -import org.eclipse.jst.j2ee.webapplication.ContextParam; -import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage; -import org.eclipse.jst.j2ee.webapplication.ErrorPage; -import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage; -import org.eclipse.jst.j2ee.webapplication.Filter; -import org.eclipse.jst.j2ee.webapplication.FilterMapping; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList; -import org.eclipse.jst.j2ee.webapplication.LoginConfig; -import org.eclipse.jst.j2ee.webapplication.MimeMapping; -import org.eclipse.jst.j2ee.webapplication.SecurityConstraint; -import org.eclipse.jst.j2ee.webapplication.Servlet; -import org.eclipse.jst.j2ee.webapplication.ServletMapping; -import org.eclipse.jst.j2ee.webapplication.SessionConfig; -import org.eclipse.jst.j2ee.webapplication.TagLibRef; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.WelcomeFileList; - - -/** - * The web-app element is the root of the deployment descriptor for - * a web application. - */ -public class WebAppImpl extends JNDIEnvRefsGroupImpl implements WebApp { - - /** - * The default value of the '{@link #isDistributable() <em>Distributable</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isDistributable() - * @generated - * @ordered - */ - protected static final boolean DISTRIBUTABLE_EDEFAULT = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected boolean distributable = DISTRIBUTABLE_EDEFAULT; - /** - * This is true if the Distributable attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean distributableESet = false; - - /** - * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected static final String VERSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected String version = VERSION_EDEFAULT; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList contexts = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList errorPages = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected WelcomeFileList fileList = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList tagLibs = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList constraints = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected LoginConfig loginConfig = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList mimeMappings = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected SessionConfig sessionConfig = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList servletMappings = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList servlets = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList securityRoles = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList filters = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList filterMappings = null; - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList listeners = null; - /** - * The cached value of the '{@link #getContextParams() <em>Context Params</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getContextParams() - * @generated - * @ordered - */ - protected EList contextParams = null; - - /** - * The cached value of the '{@link #getJspConfig() <em>Jsp Config</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJspConfig() - * @generated - * @ordered - */ - protected JSPConfig jspConfig = null; - - /** - * The cached value of the '{@link #getMessageDestinations() <em>Message Destinations</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMessageDestinations() - * @generated - * @ordered - */ - protected EList messageDestinations = null; - - /** - * The cached value of the '{@link #getLocalEncodingMappingList() <em>Local Encoding Mapping List</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocalEncodingMappingList() - * @generated - * @ordered - */ - protected LocalEncodingMappingList localEncodingMappingList = null; - - public WebAppImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getWebApp(); - } - -/** - * @see org.eclipse.jst.j2ee.internal.webapplication.WebApp - */ -public boolean containsSecurityRole(java.lang.String name) { - return getSecurityRoleNamed(name) != null; -} -public ErrorPage getErrorPageByCode(Integer code) { - List lerrorPages = getErrorPages(); - String codeString = code.toString(); - Iterator ie = lerrorPages.iterator(); - while (ie.hasNext()) { - ErrorPage ep = (ErrorPage) ie.next(); - if (ep.isErrorCode()) { - ErrorCodeErrorPage ecep = (ErrorCodeErrorPage) ep; - if (codeString.equals(ecep.getErrorCode())) - return ecep; - } - } - return null; -} -public ErrorPage getErrorPageByExceptionType(String exceptionType) { - if (exceptionType != null) { - List lerrorPages = getErrorPages(); - Iterator ie = lerrorPages.iterator(); - while (ie.hasNext()) { - ErrorPage ep = (ErrorPage) ie.next(); - if (ep.isExceptionType()) { - ExceptionTypeErrorPage etep = (ExceptionTypeErrorPage) ep; - if (exceptionType.equals(etep.getExceptionTypeName())) - return etep; - } - } - } - return null; -} -/** - * Finds a filter mapping for a specified filter. - * @param filter The filter to find the mapping for. - * @return The first filter mapping found for the specified filter, or null if no - * mapping exists for the filter. - */ -public FilterMapping getFilterMapping( - Filter aFilter) { - if (aFilter != null) { - List mappings = getFilterMappings(); - FilterMapping mapping; - for (int i = 0; i < mappings.size(); i++) { - mapping = (FilterMapping) mappings.get(i); - if (aFilter.equals(mapping.getFilter())) - return mapping; - } - } - return null; -} -/** - * getFilterNamed method comment. - */ -public Filter getFilterNamed(java.lang.String name) { - List lfilters = getFilters(); - if (lfilters == null || lfilters.size() == 0) { - return null; - } - Filter next; - for (int i = 0; i < lfilters.size(); i++) { - next = (Filter) lfilters.get(i); - if (next.getName().equals(name)) { - return next; - } - } - return null; -} -public List getFilterNames() { - List names, lfilters = getFilters(); - names = new ArrayList(lfilters.size()); - Filter next; - for (int i = 0; i < lfilters.size(); i++) { - next = (Filter) lfilters.get(i); - names.add(next.getName()); - } - return names; -} -/** - * Returns the mime type for the specified extension - * @param An extension to find the mime type for. - */ -public java.lang.String getMimeType(java.lang.String extension) { - if (extension != null) { - List mappings = getMimeMappings(); - MimeMapping mapping; - for (int i = 0; i < mappings.size(); i++) { - mapping = (MimeMapping) mappings.get(i); - if (extension.equals(mapping.getExtension())) - return mapping.getMimeType(); - } - } - return null; -} -public SecurityRole getSecurityRoleNamed(String roleName) { - java.util.List tempRoles = getSecurityRoles(); - SecurityRole role; - for (int i = 0; i < tempRoles.size(); i++) { - role = (SecurityRole) tempRoles.get(i); - if (role.getRoleName().equals(roleName)) - return role; - } - return null; -} -/** - * Finds a servlet mapping for a specified servlet. - * @param servlet The servlet to find the mappings for. - * @return The servlet mapping for the specified servlet, or null if no - * mapping exists for the servlet. - */ -public ServletMapping getServletMapping( - Servlet aServlet) { - if (aServlet != null) { - List mappings = getServletMappings(); - ServletMapping mapping; - for (int i = 0; i < mappings.size(); i++) { - mapping = (ServletMapping) mappings.get(i); - if (aServlet.equals(mapping.getServlet())) - return mapping; - } - } - return null; -} -/** - * getServletNamed method comment. - */ -public Servlet getServletNamed(java.lang.String name) { - List lservlets = getServlets(); - if (lservlets == null || lservlets.size() == 0) { - return null; - } - Servlet next; - String nextName; - for (int i = 0; i < lservlets.size(); i++) { - next = (Servlet) lservlets.get(i); - nextName = next.getServletName(); - if (nextName != null && nextName.equals(name)) { - return next; - } - } - return null; -} -public List getServletNames() { - List names, lservlets = getServlets(); - names = new ArrayList(lservlets.size()); - Servlet next; - for (int i = 0; i < lservlets.size(); i++) { - next = (Servlet) lservlets.get(i); - names.add(next.getServletName()); - } - return names; -} -/** - * Return boolean indicating if this Web App was populated from an Servlet2.2 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion2_2Descriptor() { - CommonUtil.checkDDObjectForVersion(this); - String systemId = ((XMLResource)eResource()).getSystemId(); - return systemId == null ? false : systemId.equals(J2EEConstants.WEBAPP_SYSTEMID_2_2); -} -/** - * Return boolean indicating if this Web App was populated from an Servlet2.3 compliant descriptor - * @return boolean - * @deprecated Use getVersionID() to determine module level - */ -public boolean isVersion2_3Descriptor() { - CommonUtil.checkDDObjectForVersion(this); - String systemId = ((XMLResource)eResource()).getSystemId(); - return systemId == null ? false : systemId.equals(J2EEConstants.WEBAPP_SYSTEMID_2_3); -} -/** - * @see org.eclipse.jst.j2ee.internal.webapplication.WebApp - */ -public void renameSecurityRole(java.lang.String existingRoleName, java.lang.String newRoleName) { - SecurityRole role = getSecurityRoleNamed(existingRoleName); - if (role != null) - role.setRoleName(newRoleName); - List theServlets = getServlets(); - for (int i = 0; i < theServlets.size(); i++){ - Servlet servlet = (Servlet)theServlets.get(i); - servlet.reSyncSecurityRoleRef(existingRoleName, newRoleName); - } -} - /** - * @generated This field/method will be replaced during code generation - * The distributable element, by its presence in a web application deployment - * descriptor, indicates that this web application is programmed appropriately to - * be deployed into a distributed servlet container - */ - public boolean isDistributable() { - return distributable; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDistributable(boolean newDistributable) { - boolean oldDistributable = distributable; - distributable = newDistributable; - boolean oldDistributableESet = distributableESet; - distributableESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__DISTRIBUTABLE, oldDistributable, distributable, !oldDistributableESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetDistributable() { - boolean oldDistributable = distributable; - boolean oldDistributableESet = distributableESet; - distributable = DISTRIBUTABLE_EDEFAULT; - distributableESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, WebapplicationPackage.WEB_APP__DISTRIBUTABLE, oldDistributable, DISTRIBUTABLE_EDEFAULT, oldDistributableESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetDistributable() { - return distributableESet; - } - - /** - * - */ - public void setDisplayName(String newDisplayName) { - super.setDisplayName(newDisplayName); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getVersion() { - return version; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setVersion(String newVersion) { - String oldVersion = version; - version = newVersion; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__VERSION, oldVersion, version)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getContexts() { - if (contexts == null) { - contexts = new EObjectContainmentWithInverseEList(ContextParam.class, this, WebapplicationPackage.WEB_APP__CONTEXTS, WebapplicationPackage.CONTEXT_PARAM__WEB_APP); - } - return contexts; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getErrorPages() { - if (errorPages == null) { - errorPages = new EObjectContainmentWithInverseEList(ErrorPage.class, this, WebapplicationPackage.WEB_APP__ERROR_PAGES, WebapplicationPackage.ERROR_PAGE__WEB_APP); - } - return errorPages; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WelcomeFileList getFileList() { - return fileList; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetFileList(WelcomeFileList newFileList, NotificationChain msgs) { - WelcomeFileList oldFileList = fileList; - fileList = newFileList; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__FILE_LIST, oldFileList, newFileList); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setFileList(WelcomeFileList newFileList) { - if (newFileList != fileList) { - NotificationChain msgs = null; - if (fileList != null) - msgs = ((InternalEObject)fileList).eInverseRemove(this, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, WelcomeFileList.class, msgs); - if (newFileList != null) - msgs = ((InternalEObject)newFileList).eInverseAdd(this, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, WelcomeFileList.class, msgs); - msgs = basicSetFileList(newFileList, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__FILE_LIST, newFileList, newFileList)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getTagLibs() { - if (tagLibs == null) { - tagLibs = new EObjectContainmentWithInverseEList(TagLibRef.class, this, WebapplicationPackage.WEB_APP__TAG_LIBS, WebapplicationPackage.TAG_LIB_REF__WEB_APP); - } - return tagLibs; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getConstraints() { - if (constraints == null) { - constraints = new EObjectContainmentWithInverseEList(SecurityConstraint.class, this, WebapplicationPackage.WEB_APP__CONSTRAINTS, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP); - } - return constraints; - } - - /** - * This returns the module version id. Compare with J2EEVersionConstants to determine module level - */ - - public int getVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) { - // fix defect 3276, when resource is unloaded - if (version == null) - throw new IllegalStateException(); - - if (version.equals("2.4"))//$NON-NLS-1$ - return J2EEVersionConstants.WEB_2_4_ID; - if (version.equals("2.3"))//$NON-NLS-1$ - return J2EEVersionConstants.WEB_2_3_ID; - if (version.equals("2.2"))//$NON-NLS-1$ - return J2EEVersionConstants.WEB_2_2_ID; - - } - return res.getModuleVersionID(); - } - - /** - *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level - */ - public int getJ2EEVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) throw new IllegalStateException(); - return res.getJ2EEVersionID(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public LoginConfig getLoginConfig() { - return loginConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetLoginConfig(LoginConfig newLoginConfig, NotificationChain msgs) { - LoginConfig oldLoginConfig = loginConfig; - loginConfig = newLoginConfig; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__LOGIN_CONFIG, oldLoginConfig, newLoginConfig); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setLoginConfig(LoginConfig newLoginConfig) { - if (newLoginConfig != loginConfig) { - NotificationChain msgs = null; - if (loginConfig != null) - msgs = ((InternalEObject)loginConfig).eInverseRemove(this, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, LoginConfig.class, msgs); - if (newLoginConfig != null) - msgs = ((InternalEObject)newLoginConfig).eInverseAdd(this, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, LoginConfig.class, msgs); - msgs = basicSetLoginConfig(newLoginConfig, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__LOGIN_CONFIG, newLoginConfig, newLoginConfig)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getMimeMappings() { - if (mimeMappings == null) { - mimeMappings = new EObjectContainmentWithInverseEList(MimeMapping.class, this, WebapplicationPackage.WEB_APP__MIME_MAPPINGS, WebapplicationPackage.MIME_MAPPING__WEB_APP); - } - return mimeMappings; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public SessionConfig getSessionConfig() { - return sessionConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetSessionConfig(SessionConfig newSessionConfig, NotificationChain msgs) { - SessionConfig oldSessionConfig = sessionConfig; - sessionConfig = newSessionConfig; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__SESSION_CONFIG, oldSessionConfig, newSessionConfig); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setSessionConfig(SessionConfig newSessionConfig) { - if (newSessionConfig != sessionConfig) { - NotificationChain msgs = null; - if (sessionConfig != null) - msgs = ((InternalEObject)sessionConfig).eInverseRemove(this, WebapplicationPackage.SESSION_CONFIG__WEB_APP, SessionConfig.class, msgs); - if (newSessionConfig != null) - msgs = ((InternalEObject)newSessionConfig).eInverseAdd(this, WebapplicationPackage.SESSION_CONFIG__WEB_APP, SessionConfig.class, msgs); - msgs = basicSetSessionConfig(newSessionConfig, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__SESSION_CONFIG, newSessionConfig, newSessionConfig)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getServletMappings() { - if (servletMappings == null) { - servletMappings = new EObjectContainmentWithInverseEList(ServletMapping.class, this, WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS, WebapplicationPackage.SERVLET_MAPPING__WEB_APP); - } - return servletMappings; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getServlets() { - if (servlets == null) { - servlets = new EObjectContainmentWithInverseEList(Servlet.class, this, WebapplicationPackage.WEB_APP__SERVLETS, WebapplicationPackage.SERVLET__WEB_APP); - } - return servlets; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getSecurityRoles() { - if (securityRoles == null) { - securityRoles = new EObjectContainmentEList(SecurityRole.class, this, WebapplicationPackage.WEB_APP__SECURITY_ROLES); - } - return securityRoles; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getFilters() { - if (filters == null) { - filters = new EObjectContainmentEList(Filter.class, this, WebapplicationPackage.WEB_APP__FILTERS); - } - return filters; - } - - /** - * @generated This field/method will be replaced during code generation - * Filter mappings defined for the web app - */ - public EList getFilterMappings() { - if (filterMappings == null) { - filterMappings = new EObjectContainmentEList(FilterMapping.class, this, WebapplicationPackage.WEB_APP__FILTER_MAPPINGS); - } - return filterMappings; - } - - /** - * @generated This field/method will be replaced during code generation - * The listeners collection contains deployment properties for a web application - * listener beans in the web app. - */ - public EList getListeners() { - if (listeners == null) { - listeners = new EObjectContainmentEList(Listener.class, this, WebapplicationPackage.WEB_APP__LISTENERS); - } - return listeners; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getContextParams() { - if (contextParams == null) { - contextParams = new EObjectContainmentEList(ParamValue.class, this, WebapplicationPackage.WEB_APP__CONTEXT_PARAMS); - } - return contextParams; - } - - /** - * @deprecated: Use getEnvironmentProperties() - */ - public EList getEnvEntries() { - - return getEnvironmentProperties(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JSPConfig getJspConfig() { - return jspConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetJspConfig(JSPConfig newJspConfig, NotificationChain msgs) { - JSPConfig oldJspConfig = jspConfig; - jspConfig = newJspConfig; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__JSP_CONFIG, oldJspConfig, newJspConfig); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setJspConfig(JSPConfig newJspConfig) { - if (newJspConfig != jspConfig) { - NotificationChain msgs = null; - if (jspConfig != null) - msgs = ((InternalEObject)jspConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__JSP_CONFIG, null, msgs); - if (newJspConfig != null) - msgs = ((InternalEObject)newJspConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__JSP_CONFIG, null, msgs); - msgs = basicSetJspConfig(newJspConfig, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__JSP_CONFIG, newJspConfig, newJspConfig)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getMessageDestinations() { - if (messageDestinations == null) { - messageDestinations = new EObjectContainmentEList(MessageDestination.class, this, WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS); - } - return messageDestinations; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public LocalEncodingMappingList getLocalEncodingMappingList() { - return localEncodingMappingList; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetLocalEncodingMappingList(LocalEncodingMappingList newLocalEncodingMappingList, NotificationChain msgs) { - LocalEncodingMappingList oldLocalEncodingMappingList = localEncodingMappingList; - localEncodingMappingList = newLocalEncodingMappingList; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST, oldLocalEncodingMappingList, newLocalEncodingMappingList); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLocalEncodingMappingList(LocalEncodingMappingList newLocalEncodingMappingList) { - if (newLocalEncodingMappingList != localEncodingMappingList) { - NotificationChain msgs = null; - if (localEncodingMappingList != null) - msgs = ((InternalEObject)localEncodingMappingList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST, null, msgs); - if (newLocalEncodingMappingList != null) - msgs = ((InternalEObject)newLocalEncodingMappingList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST, null, msgs); - msgs = basicSetLocalEncodingMappingList(newLocalEncodingMappingList, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST, newLocalEncodingMappingList, newLocalEncodingMappingList)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.WEB_APP__CONTEXTS: - return ((InternalEList)getContexts()).basicAdd(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__ERROR_PAGES: - return ((InternalEList)getErrorPages()).basicAdd(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__FILE_LIST: - if (fileList != null) - msgs = ((InternalEObject)fileList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__FILE_LIST, null, msgs); - return basicSetFileList((WelcomeFileList)otherEnd, msgs); - case WebapplicationPackage.WEB_APP__TAG_LIBS: - return ((InternalEList)getTagLibs()).basicAdd(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__CONSTRAINTS: - return ((InternalEList)getConstraints()).basicAdd(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__LOGIN_CONFIG: - if (loginConfig != null) - msgs = ((InternalEObject)loginConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__LOGIN_CONFIG, null, msgs); - return basicSetLoginConfig((LoginConfig)otherEnd, msgs); - case WebapplicationPackage.WEB_APP__MIME_MAPPINGS: - return ((InternalEList)getMimeMappings()).basicAdd(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__SESSION_CONFIG: - if (sessionConfig != null) - msgs = ((InternalEObject)sessionConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__SESSION_CONFIG, null, msgs); - return basicSetSessionConfig((SessionConfig)otherEnd, msgs); - case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS: - return ((InternalEList)getServletMappings()).basicAdd(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__SERVLETS: - return ((InternalEList)getServlets()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.WEB_APP__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__ENVIRONMENT_PROPERTIES: - return ((InternalEList)getEnvironmentProperties()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__RESOURCE_REFS: - return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__EJB_REFS: - return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__RESOURCE_ENV_REFS: - return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__EJB_LOCAL_REFS: - return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATION_REFS: - return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__CONTEXTS: - return ((InternalEList)getContexts()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__ERROR_PAGES: - return ((InternalEList)getErrorPages()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__FILE_LIST: - return basicSetFileList(null, msgs); - case WebapplicationPackage.WEB_APP__TAG_LIBS: - return ((InternalEList)getTagLibs()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__CONSTRAINTS: - return ((InternalEList)getConstraints()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__LOGIN_CONFIG: - return basicSetLoginConfig(null, msgs); - case WebapplicationPackage.WEB_APP__MIME_MAPPINGS: - return ((InternalEList)getMimeMappings()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__SESSION_CONFIG: - return basicSetSessionConfig(null, msgs); - case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS: - return ((InternalEList)getServletMappings()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__SERVLETS: - return ((InternalEList)getServlets()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__SECURITY_ROLES: - return ((InternalEList)getSecurityRoles()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__FILTERS: - return ((InternalEList)getFilters()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__FILTER_MAPPINGS: - return ((InternalEList)getFilterMappings()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__LISTENERS: - return ((InternalEList)getListeners()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__CONTEXT_PARAMS: - return ((InternalEList)getContextParams()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__JSP_CONFIG: - return basicSetJspConfig(null, msgs); - case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS: - return ((InternalEList)getMessageDestinations()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST: - return basicSetLocalEncodingMappingList(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WEB_APP__ICONS: - return getIcons(); - case WebapplicationPackage.WEB_APP__DISPLAY_NAMES: - return getDisplayNames(); - case WebapplicationPackage.WEB_APP__DESCRIPTIONS: - return getDescriptions(); - case WebapplicationPackage.WEB_APP__SMALL_ICON: - return getSmallIcon(); - case WebapplicationPackage.WEB_APP__LARGE_ICON: - return getLargeIcon(); - case WebapplicationPackage.WEB_APP__DESCRIPTION: - return getDescription(); - case WebapplicationPackage.WEB_APP__DISPLAY_NAME: - return getDisplayName(); - case WebapplicationPackage.WEB_APP__ENVIRONMENT_PROPERTIES: - return getEnvironmentProperties(); - case WebapplicationPackage.WEB_APP__RESOURCE_REFS: - return getResourceRefs(); - case WebapplicationPackage.WEB_APP__EJB_REFS: - return getEjbRefs(); - case WebapplicationPackage.WEB_APP__RESOURCE_ENV_REFS: - return getResourceEnvRefs(); - case WebapplicationPackage.WEB_APP__EJB_LOCAL_REFS: - return getEjbLocalRefs(); - case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATION_REFS: - return getMessageDestinationRefs(); - case WebapplicationPackage.WEB_APP__SERVICE_REFS: - return getServiceRefs(); - case WebapplicationPackage.WEB_APP__DISTRIBUTABLE: - return isDistributable() ? Boolean.TRUE : Boolean.FALSE; - case WebapplicationPackage.WEB_APP__VERSION: - return getVersion(); - case WebapplicationPackage.WEB_APP__CONTEXTS: - return getContexts(); - case WebapplicationPackage.WEB_APP__ERROR_PAGES: - return getErrorPages(); - case WebapplicationPackage.WEB_APP__FILE_LIST: - return getFileList(); - case WebapplicationPackage.WEB_APP__TAG_LIBS: - return getTagLibs(); - case WebapplicationPackage.WEB_APP__CONSTRAINTS: - return getConstraints(); - case WebapplicationPackage.WEB_APP__LOGIN_CONFIG: - return getLoginConfig(); - case WebapplicationPackage.WEB_APP__MIME_MAPPINGS: - return getMimeMappings(); - case WebapplicationPackage.WEB_APP__SESSION_CONFIG: - return getSessionConfig(); - case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS: - return getServletMappings(); - case WebapplicationPackage.WEB_APP__SERVLETS: - return getServlets(); - case WebapplicationPackage.WEB_APP__SECURITY_ROLES: - return getSecurityRoles(); - case WebapplicationPackage.WEB_APP__FILTERS: - return getFilters(); - case WebapplicationPackage.WEB_APP__FILTER_MAPPINGS: - return getFilterMappings(); - case WebapplicationPackage.WEB_APP__LISTENERS: - return getListeners(); - case WebapplicationPackage.WEB_APP__CONTEXT_PARAMS: - return getContextParams(); - case WebapplicationPackage.WEB_APP__JSP_CONFIG: - return getJspConfig(); - case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS: - return getMessageDestinations(); - case WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST: - return getLocalEncodingMappingList(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WEB_APP__ICONS: - return icons != null && !icons.isEmpty(); - case WebapplicationPackage.WEB_APP__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case WebapplicationPackage.WEB_APP__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WebapplicationPackage.WEB_APP__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case WebapplicationPackage.WEB_APP__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case WebapplicationPackage.WEB_APP__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WebapplicationPackage.WEB_APP__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case WebapplicationPackage.WEB_APP__ENVIRONMENT_PROPERTIES: - return environmentProperties != null && !environmentProperties.isEmpty(); - case WebapplicationPackage.WEB_APP__RESOURCE_REFS: - return resourceRefs != null && !resourceRefs.isEmpty(); - case WebapplicationPackage.WEB_APP__EJB_REFS: - return ejbRefs != null && !ejbRefs.isEmpty(); - case WebapplicationPackage.WEB_APP__RESOURCE_ENV_REFS: - return resourceEnvRefs != null && !resourceEnvRefs.isEmpty(); - case WebapplicationPackage.WEB_APP__EJB_LOCAL_REFS: - return ejbLocalRefs != null && !ejbLocalRefs.isEmpty(); - case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATION_REFS: - return messageDestinationRefs != null && !messageDestinationRefs.isEmpty(); - case WebapplicationPackage.WEB_APP__SERVICE_REFS: - return serviceRefs != null && !serviceRefs.isEmpty(); - case WebapplicationPackage.WEB_APP__DISTRIBUTABLE: - return isSetDistributable(); - case WebapplicationPackage.WEB_APP__VERSION: - return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); - case WebapplicationPackage.WEB_APP__CONTEXTS: - return contexts != null && !contexts.isEmpty(); - case WebapplicationPackage.WEB_APP__ERROR_PAGES: - return errorPages != null && !errorPages.isEmpty(); - case WebapplicationPackage.WEB_APP__FILE_LIST: - return fileList != null; - case WebapplicationPackage.WEB_APP__TAG_LIBS: - return tagLibs != null && !tagLibs.isEmpty(); - case WebapplicationPackage.WEB_APP__CONSTRAINTS: - return constraints != null && !constraints.isEmpty(); - case WebapplicationPackage.WEB_APP__LOGIN_CONFIG: - return loginConfig != null; - case WebapplicationPackage.WEB_APP__MIME_MAPPINGS: - return mimeMappings != null && !mimeMappings.isEmpty(); - case WebapplicationPackage.WEB_APP__SESSION_CONFIG: - return sessionConfig != null; - case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS: - return servletMappings != null && !servletMappings.isEmpty(); - case WebapplicationPackage.WEB_APP__SERVLETS: - return servlets != null && !servlets.isEmpty(); - case WebapplicationPackage.WEB_APP__SECURITY_ROLES: - return securityRoles != null && !securityRoles.isEmpty(); - case WebapplicationPackage.WEB_APP__FILTERS: - return filters != null && !filters.isEmpty(); - case WebapplicationPackage.WEB_APP__FILTER_MAPPINGS: - return filterMappings != null && !filterMappings.isEmpty(); - case WebapplicationPackage.WEB_APP__LISTENERS: - return listeners != null && !listeners.isEmpty(); - case WebapplicationPackage.WEB_APP__CONTEXT_PARAMS: - return contextParams != null && !contextParams.isEmpty(); - case WebapplicationPackage.WEB_APP__JSP_CONFIG: - return jspConfig != null; - case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS: - return messageDestinations != null && !messageDestinations.isEmpty(); - case WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST: - return localEncodingMappingList != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WEB_APP__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case WebapplicationPackage.WEB_APP__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case WebapplicationPackage.WEB_APP__DESCRIPTION: - setDescription((String)newValue); - return; - case WebapplicationPackage.WEB_APP__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case WebapplicationPackage.WEB_APP__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - getEnvironmentProperties().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__RESOURCE_REFS: - getResourceRefs().clear(); - getResourceRefs().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__EJB_REFS: - getEjbRefs().clear(); - getEjbRefs().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - getResourceEnvRefs().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - getEjbLocalRefs().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - getMessageDestinationRefs().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__DISTRIBUTABLE: - setDistributable(((Boolean)newValue).booleanValue()); - return; - case WebapplicationPackage.WEB_APP__VERSION: - setVersion((String)newValue); - return; - case WebapplicationPackage.WEB_APP__CONTEXTS: - getContexts().clear(); - getContexts().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__ERROR_PAGES: - getErrorPages().clear(); - getErrorPages().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__FILE_LIST: - setFileList((WelcomeFileList)newValue); - return; - case WebapplicationPackage.WEB_APP__TAG_LIBS: - getTagLibs().clear(); - getTagLibs().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__CONSTRAINTS: - getConstraints().clear(); - getConstraints().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__LOGIN_CONFIG: - setLoginConfig((LoginConfig)newValue); - return; - case WebapplicationPackage.WEB_APP__MIME_MAPPINGS: - getMimeMappings().clear(); - getMimeMappings().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__SESSION_CONFIG: - setSessionConfig((SessionConfig)newValue); - return; - case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS: - getServletMappings().clear(); - getServletMappings().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__SERVLETS: - getServlets().clear(); - getServlets().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__SECURITY_ROLES: - getSecurityRoles().clear(); - getSecurityRoles().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__FILTERS: - getFilters().clear(); - getFilters().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__FILTER_MAPPINGS: - getFilterMappings().clear(); - getFilterMappings().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__LISTENERS: - getListeners().clear(); - getListeners().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__CONTEXT_PARAMS: - getContextParams().clear(); - getContextParams().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__JSP_CONFIG: - setJspConfig((JSPConfig)newValue); - return; - case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS: - getMessageDestinations().clear(); - getMessageDestinations().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST: - setLocalEncodingMappingList((LocalEncodingMappingList)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WEB_APP__ICONS: - getIcons().clear(); - return; - case WebapplicationPackage.WEB_APP__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case WebapplicationPackage.WEB_APP__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WebapplicationPackage.WEB_APP__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case WebapplicationPackage.WEB_APP__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case WebapplicationPackage.WEB_APP__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WebapplicationPackage.WEB_APP__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case WebapplicationPackage.WEB_APP__ENVIRONMENT_PROPERTIES: - getEnvironmentProperties().clear(); - return; - case WebapplicationPackage.WEB_APP__RESOURCE_REFS: - getResourceRefs().clear(); - return; - case WebapplicationPackage.WEB_APP__EJB_REFS: - getEjbRefs().clear(); - return; - case WebapplicationPackage.WEB_APP__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - return; - case WebapplicationPackage.WEB_APP__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - return; - case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - return; - case WebapplicationPackage.WEB_APP__SERVICE_REFS: - getServiceRefs().clear(); - return; - case WebapplicationPackage.WEB_APP__DISTRIBUTABLE: - unsetDistributable(); - return; - case WebapplicationPackage.WEB_APP__VERSION: - setVersion(VERSION_EDEFAULT); - return; - case WebapplicationPackage.WEB_APP__CONTEXTS: - getContexts().clear(); - return; - case WebapplicationPackage.WEB_APP__ERROR_PAGES: - getErrorPages().clear(); - return; - case WebapplicationPackage.WEB_APP__FILE_LIST: - setFileList((WelcomeFileList)null); - return; - case WebapplicationPackage.WEB_APP__TAG_LIBS: - getTagLibs().clear(); - return; - case WebapplicationPackage.WEB_APP__CONSTRAINTS: - getConstraints().clear(); - return; - case WebapplicationPackage.WEB_APP__LOGIN_CONFIG: - setLoginConfig((LoginConfig)null); - return; - case WebapplicationPackage.WEB_APP__MIME_MAPPINGS: - getMimeMappings().clear(); - return; - case WebapplicationPackage.WEB_APP__SESSION_CONFIG: - setSessionConfig((SessionConfig)null); - return; - case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS: - getServletMappings().clear(); - return; - case WebapplicationPackage.WEB_APP__SERVLETS: - getServlets().clear(); - return; - case WebapplicationPackage.WEB_APP__SECURITY_ROLES: - getSecurityRoles().clear(); - return; - case WebapplicationPackage.WEB_APP__FILTERS: - getFilters().clear(); - return; - case WebapplicationPackage.WEB_APP__FILTER_MAPPINGS: - getFilterMappings().clear(); - return; - case WebapplicationPackage.WEB_APP__LISTENERS: - getListeners().clear(); - return; - case WebapplicationPackage.WEB_APP__CONTEXT_PARAMS: - getContextParams().clear(); - return; - case WebapplicationPackage.WEB_APP__JSP_CONFIG: - setJspConfig((JSPConfig)null); - return; - case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS: - getMessageDestinations().clear(); - return; - case WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST: - setLocalEncodingMappingList((LocalEncodingMappingList)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (distributable: "); - if (distributableESet) result.append(distributable); else result.append("<unset>"); - result.append(", version: "); - result.append(version); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceFactory.java deleted file mode 100644 index 15eb845a5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceFactory.java +++ /dev/null @@ -1,100 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 18, 2003 - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.RendererFactory; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory; - - -/** - * @author schacher - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class WebAppResourceFactory extends TranslatorResourceFactory { - - /** - * Method registerDtds. - */ - public static void registerDtds() { - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEBAPP_SYSTEMID_2_2, "web-app_2_2.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEBAPP_ALT_SYSTEMID_2_2, "web-app_2.2.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEBAPP_SYSTEMID_2_3, "web-app_2_3.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEBAPP_ALT_SYSTEMID_2_3, "web-app_2.3.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEB_APP_SCHEMA_LOC_2_4, "web-app_2_4.xsd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.JSP_SCHEMA_LOC_2_0, "jsp_2_0.xsd"); //$NON-NLS-1$ - } - - /** - */ - public WebAppResourceFactory() { - super(RendererFactory.getDefaultRendererFactory()); - } - - /** - * @param aRendererFactory - */ - public WebAppResourceFactory(RendererFactory aRendererFactory) { - super(aRendererFactory); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceFactory#createResource(org.eclipse.emf.common.util.URI, com.ibm.etools.emf2xml.Renderer) - */ - protected TranslatorResource createResource(URI uri, Renderer aRenderer) { - return new WebAppResourceImpl(uri, aRenderer); - } - - /** - * Register myself with the Resource.Factory.Registry - */ - public static void registerWith(RendererFactory aRendererFactory) { - J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(J2EEConstants.WEBAPP_DD_SHORT_NAME, new WebAppResourceFactory(aRendererFactory)); - } - - /** - * register using the default renderer factory. - * @see #registerWith(RendererFactory) - */ - public static void register() { - registerWith(RendererFactory.getDefaultRendererFactory()); - } - - /** - * register using the default renderer factory. - * @see #registerWith(RendererFactory) - */ - public static void register(FileNameResourceFactoryRegistry aRegistry) { - aRegistry.registerLastFileSegment(J2EEConstants.WEBAPP_DD_SHORT_NAME, new WebAppResourceFactory(RendererFactory.getDefaultRendererFactory())); - } - - public static Resource.Factory getRegisteredFactory() { - - System.err.println("fetching registered factory for web app uri"); - return J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.WEBAPP_DD_URI_OBJ); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceImpl.java deleted file mode 100644 index a7aba6a31..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceImpl.java +++ /dev/null @@ -1,208 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Mar 18, 2003 - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.common.internal.impl.XMLResourceImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.model.translator.webapplication.WebAppTranslator; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebAppResource; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author schacher - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class WebAppResourceImpl extends XMLResourceImpl implements WebAppResource { - - - public WebAppResourceImpl(URI uri, Renderer aRenderer) { - super(uri, aRenderer); - } - - public WebAppResourceImpl(Renderer aRenderer) { - super(aRenderer); - } - - - public WebApp getWebApp() { - return (WebApp) getRootObject(); - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_PublicID() - */ - public String getJ2EE_1_2_PublicID() { - return J2EEConstants.WEBAPP_PUBLICID_2_2; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_SystemID() - */ - public String getJ2EE_1_2_SystemID() { - return J2EEConstants.WEBAPP_SYSTEMID_2_2; - } - - public String getJ2EE_Alt_1_2_SystemID() { - return J2EEConstants.WEBAPP_ALT_SYSTEMID_2_2; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_PublicID() - */ - public String getJ2EE_1_3_PublicID() { - return J2EEConstants.WEBAPP_PUBLICID_2_3; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID() - */ - public String getJ2EE_1_3_SystemID() { - return J2EEConstants.WEBAPP_SYSTEMID_2_3; - } - - public String getJ2EE_Alt_1_3_SystemID() { - return J2EEConstants.WEBAPP_ALT_SYSTEMID_2_3; - } - /* - * @see WebAppResource#isWeb2_2() - * @deprecated - use getModuleVersionID() and J2EEVersionConstants - */ - public boolean isWeb2_2() { - return getModuleVersionID() == WEB_2_2_ID; - } - /* - * @see WebAppResource#isWeb2_3() - * @deprecated - use getModuleVersionID() and J2EEVersionConstants - */ - public boolean isWeb2_3() { - return getModuleVersionID() == WEB_2_3_ID; - } - /* - * @see WebAppResource#isWeb2_4() - * @deprecated - use getModuleVersionID() and J2EEVersionConstants - */ - public boolean isWeb2_4() { - return getModuleVersionID() == WEB_2_4_ID; - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#getDoctype() - */ - public String getDoctype() { - switch (getJ2EEVersionID()) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - return J2EEConstants.WEBAPP_DOCTYPE; - default : - return null; - } - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResource#getType() - */ - public int getType() { - return WEB_APP_TYPE; - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#getRootTranslator() - */ - public Translator getRootTranslator() { - return WebAppTranslator.INSTANCE; - } - /* Return J2EE version based on module version - */ - public int getJ2EEVersionID() { - switch (getModuleVersionID()) { - case J2EEVersionConstants.WEB_2_2_ID : - return J2EEVersionConstants.J2EE_1_2_ID; - case J2EEVersionConstants.WEB_2_3_ID : - return J2EEVersionConstants.J2EE_1_3_ID; - case J2EEVersionConstants.WEB_2_4_ID : - return J2EEVersionConstants.J2EE_1_4_ID; - default : - return J2EEVersionConstants.J2EE_1_4_ID; - } - } - /* - * This directly sets the module version id - */ - public void setModuleVersionID(int id) { - super.setVersionID(id); - switch (id) { - case (WEB_2_4_ID) : - super.setDoctypeValues(null, null); - break; - case (WEB_2_3_ID) : - super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - break; - case (WEB_2_2_ID) : - super.setDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - - } - syncVersionOfRootObject(); - } - /* - * Based on the J2EE version, this will set the module version - */ - public void setJ2EEVersionID(int id) { - switch (id) { - case (J2EE_1_4_ID) : - primSetDoctypeValues(null, null); - primSetVersionID(WEB_2_4_ID); - break; - case (J2EE_1_3_ID) : - primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - primSetVersionID(WEB_2_3_ID); - break; - case (J2EE_1_2_ID) : - primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - primSetVersionID(WEB_2_2_ID); - } - syncVersionOfRootObject(); - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#getDefaultVersionID() - */ - protected int getDefaultVersionID() { - return WEB_2_4_ID; - } - - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.impl.XMLResourceImpl#syncVersionOfRootObject() - */ - protected void syncVersionOfRootObject() { - WebApp app = getWebApp(); - if (app == null) - return; - - String version = app.getVersion(); - String newVersion = getModuleVersionString(); - if (!newVersion.equals(version)) - app.setVersion(newVersion); - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebResourceCollectionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebResourceCollectionImpl.java deleted file mode 100644 index 727816379..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebResourceCollectionImpl.java +++ /dev/null @@ -1,496 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EDataTypeEList; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.webapplication.HTTPMethodType; -import org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum; -import org.eclipse.jst.j2ee.webapplication.SecurityConstraint; -import org.eclipse.jst.j2ee.webapplication.URLPatternType; -import org.eclipse.jst.j2ee.webapplication.WebResourceCollection; -import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - - -/** - * The web-resource-collection element is used to identify a subset of the resources and HTTP methods on those resources within a web application to which a security constraint applies. If no HTTP methods are specified, then the security constraint applies to all HTTP methods. - - */ -public class WebResourceCollectionImpl extends EObjectImpl implements WebResourceCollection, EObject { - - /** - * The default value of the '{@link #getWebResourceName() <em>Web Resource Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWebResourceName() - * @generated - * @ordered - */ - protected static final String WEB_RESOURCE_NAME_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String webResourceName = WEB_RESOURCE_NAME_EDEFAULT; - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected String description = DESCRIPTION_EDEFAULT; - /** - * The cached value of the '{@link #getUrlPattern() <em>Url Pattern</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUrlPattern() - * @generated - * @ordered - */ - protected EList urlPattern = null; - - /** - * The cached value of the '{@link #getHttpMethod() <em>Http Method</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHttpMethod() - * @generated - * @ordered - */ - protected EList httpMethod = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList urLs = null; - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * The cached value of the '{@link #getHTTPs() <em>HTT Ps</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHTTPs() - * @generated - * @ordered - */ - protected EList httPs = null; - - public WebResourceCollectionImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getWebResourceCollection(); - } - -/** - * addHTTP method comment. - */ -public void addHTTP(java.lang.String ahttpMethod) { - HTTPMethodType http = getFactory().createHTTPMethodType(); - http.setHttpMethod(ahttpMethod); - getHTTPs().add(http); -} -/** - * addURL method comment. - */ -public void addURL(java.lang.String aurlPattern) { - URLPatternType url = getFactory().createURLPatternType(); - url.setUrlPattern(aurlPattern); - getURLs().add(url); -} -public WebapplicationFactory getFactory() { - return ((WebapplicationPackage)EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI)).getWebapplicationFactory(); -} - /** - * @generated This field/method will be replaced during code generation - * The web-resource-name contains the name of this web resource collection - */ - public String getWebResourceName() { - return webResourceName; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebResourceName(String newWebResourceName) { - String oldWebResourceName = webResourceName; - webResourceName = newWebResourceName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME, oldWebResourceName, webResourceName)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getDescription() { - return description; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTION, oldDescription, description)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getUrlPattern() { - if (urlPattern == null) { - urlPattern = new EDataTypeEList(String.class, this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__URL_PATTERN); - } - return urlPattern; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getHttpMethod() { - if (httpMethod == null) { - httpMethod = new EDataTypeUniqueEList(HTTPMethodTypeEnum.class, this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTTP_METHOD); - } - return httpMethod; - } - - /** - * @generated This field/method will be replaced during code generation - */ - public SecurityConstraint getSecConstraint() { - if (eContainerFeatureID != WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT) return null; - return (SecurityConstraint)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setSecConstraint(SecurityConstraint newSecConstraint) { - if (newSecConstraint != eContainer || (eContainerFeatureID != WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT && newSecConstraint != null)) { - if (EcoreUtil.isAncestor(this, newSecConstraint)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newSecConstraint != null) - msgs = ((InternalEObject)newSecConstraint).eInverseAdd(this, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS, SecurityConstraint.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newSecConstraint, WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT, newSecConstraint, newSecConstraint)); - } - - /** - * <!-- begin-user-doc --> - * @version J2EE1.4 deprecated, use getUrlPattern() - * <!-- end-user-doc --> - * @generated - */ - public EList getURLs() { - if (urLs == null) { - urLs = new EObjectContainmentWithInverseEList(URLPatternType.class, this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS, WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION); - } - return urLs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * @version J2EE1.4 deprecated, use getHttpMethods() - * <!-- end-user-doc --> - * @generated - */ - public EList getHTTPs() { - if (httPs == null) { - httPs = new EObjectContainmentEList(HTTPMethodType.class, this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS); - } - return httPs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT, msgs); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS: - return ((InternalEList)getURLs()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT: - return eBasicSetContainer(null, WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT, msgs); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS: - return ((InternalEList)getURLs()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS: - return ((InternalEList)getHTTPs()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT: - return eContainer.eInverseRemove(this, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS, SecurityConstraint.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME: - return getWebResourceName(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTION: - return getDescription(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__URL_PATTERN: - return getUrlPattern(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTTP_METHOD: - return getHttpMethod(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT: - return getSecConstraint(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS: - return getURLs(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS: - return getDescriptions(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS: - return getHTTPs(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME: - return WEB_RESOURCE_NAME_EDEFAULT == null ? webResourceName != null : !WEB_RESOURCE_NAME_EDEFAULT.equals(webResourceName); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__URL_PATTERN: - return urlPattern != null && !urlPattern.isEmpty(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTTP_METHOD: - return httpMethod != null && !httpMethod.isEmpty(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT: - return getSecConstraint() != null; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS: - return urLs != null && !urLs.isEmpty(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS: - return httPs != null && !httPs.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME: - setWebResourceName((String)newValue); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTION: - setDescription((String)newValue); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__URL_PATTERN: - getUrlPattern().clear(); - getUrlPattern().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTTP_METHOD: - getHttpMethod().clear(); - getHttpMethod().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT: - setSecConstraint((SecurityConstraint)newValue); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS: - getURLs().clear(); - getURLs().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS: - getHTTPs().clear(); - getHTTPs().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME: - setWebResourceName(WEB_RESOURCE_NAME_EDEFAULT); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__URL_PATTERN: - getUrlPattern().clear(); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTTP_METHOD: - getHttpMethod().clear(); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT: - setSecConstraint((SecurityConstraint)null); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS: - getURLs().clear(); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS: - getHTTPs().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (webResourceName: "); - result.append(webResourceName); - result.append(", description: "); - result.append(description); - result.append(", urlPattern: "); - result.append(urlPattern); - result.append(", httpMethod: "); - result.append(httpMethod); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebTypeImpl.java deleted file mode 100644 index a4682d8e2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebTypeImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webapplication.WebType; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; - -/** - * @generated - */ -public abstract class WebTypeImpl extends EObjectImpl implements WebType { - - public WebTypeImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getWebType(); - } - -/** - * isJspType method comment. - */ -public boolean isJspType() { - return false; -} -/** - * isServletType method comment. - */ -public boolean isServletType() { - return false; -} -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationFactoryImpl.java deleted file mode 100644 index c7c39b8ad..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationFactoryImpl.java +++ /dev/null @@ -1,418 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.webapplication.AuthConstraint; -import org.eclipse.jst.j2ee.webapplication.AuthMethodKind; -import org.eclipse.jst.j2ee.webapplication.ContextParam; -import org.eclipse.jst.j2ee.webapplication.DispatcherType; -import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage; -import org.eclipse.jst.j2ee.webapplication.ErrorPage; -import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage; -import org.eclipse.jst.j2ee.webapplication.Filter; -import org.eclipse.jst.j2ee.webapplication.FilterMapping; -import org.eclipse.jst.j2ee.webapplication.FormLoginConfig; -import org.eclipse.jst.j2ee.webapplication.HTTPMethodType; -import org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum; -import org.eclipse.jst.j2ee.webapplication.InitParam; -import org.eclipse.jst.j2ee.webapplication.JSPType; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList; -import org.eclipse.jst.j2ee.webapplication.LoginConfig; -import org.eclipse.jst.j2ee.webapplication.MimeMapping; -import org.eclipse.jst.j2ee.webapplication.ResAuthServletType; -import org.eclipse.jst.j2ee.webapplication.RoleNameType; -import org.eclipse.jst.j2ee.webapplication.SecurityConstraint; -import org.eclipse.jst.j2ee.webapplication.Servlet; -import org.eclipse.jst.j2ee.webapplication.ServletMapping; -import org.eclipse.jst.j2ee.webapplication.ServletType; -import org.eclipse.jst.j2ee.webapplication.SessionConfig; -import org.eclipse.jst.j2ee.webapplication.TagLibRef; -import org.eclipse.jst.j2ee.webapplication.TransportGuaranteeType; -import org.eclipse.jst.j2ee.webapplication.URLPatternType; -import org.eclipse.jst.j2ee.webapplication.UserDataConstraint; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebResourceCollection; -import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.WelcomeFile; -import org.eclipse.jst.j2ee.webapplication.WelcomeFileList; - -/** - * @generated - */ -public class WebapplicationFactoryImpl extends EFactoryImpl implements WebapplicationFactory{ - - public static final String MM_VERSION = "1.1";//$NON-NLS-1$ - - public WebapplicationFactoryImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case WebapplicationPackage.WEB_APP: return createWebApp(); - case WebapplicationPackage.CONTEXT_PARAM: return createContextParam(); - case WebapplicationPackage.SERVLET: return createServlet(); - case WebapplicationPackage.SERVLET_MAPPING: return createServletMapping(); - case WebapplicationPackage.SESSION_CONFIG: return createSessionConfig(); - case WebapplicationPackage.MIME_MAPPING: return createMimeMapping(); - case WebapplicationPackage.WELCOME_FILE_LIST: return createWelcomeFileList(); - case WebapplicationPackage.ERROR_PAGE: return createErrorPage(); - case WebapplicationPackage.TAG_LIB_REF: return createTagLibRef(); - case WebapplicationPackage.SECURITY_CONSTRAINT: return createSecurityConstraint(); - case WebapplicationPackage.WEB_RESOURCE_COLLECTION: return createWebResourceCollection(); - case WebapplicationPackage.AUTH_CONSTRAINT: return createAuthConstraint(); - case WebapplicationPackage.USER_DATA_CONSTRAINT: return createUserDataConstraint(); - case WebapplicationPackage.LOGIN_CONFIG: return createLoginConfig(); - case WebapplicationPackage.FORM_LOGIN_CONFIG: return createFormLoginConfig(); - case WebapplicationPackage.INIT_PARAM: return createInitParam(); - case WebapplicationPackage.SERVLET_TYPE: return createServletType(); - case WebapplicationPackage.JSP_TYPE: return createJSPType(); - case WebapplicationPackage.URL_PATTERN_TYPE: return createURLPatternType(); - case WebapplicationPackage.ROLE_NAME_TYPE: return createRoleNameType(); - case WebapplicationPackage.WELCOME_FILE: return createWelcomeFile(); - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE: return createExceptionTypeErrorPage(); - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE: return createErrorCodeErrorPage(); - case WebapplicationPackage.FILTER_MAPPING: return createFilterMapping(); - case WebapplicationPackage.FILTER: return createFilter(); - case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST: return createLocalEncodingMappingList(); - case WebapplicationPackage.LOCAL_ENCODING_MAPPING: return createLocalEncodingMapping(); - case WebapplicationPackage.HTTP_METHOD_TYPE: return createHTTPMethodType(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case WebapplicationPackage.RES_AUTH_SERVLET_TYPE: { - ResAuthServletType result = ResAuthServletType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case WebapplicationPackage.HTTP_METHOD_TYPE_ENUM: { - HTTPMethodTypeEnum result = HTTPMethodTypeEnum.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case WebapplicationPackage.TRANSPORT_GUARANTEE_TYPE: { - TransportGuaranteeType result = TransportGuaranteeType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case WebapplicationPackage.DISPATCHER_TYPE: { - DispatcherType result = DispatcherType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - case WebapplicationPackage.AUTH_METHOD_KIND: { - AuthMethodKind result = AuthMethodKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case WebapplicationPackage.RES_AUTH_SERVLET_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case WebapplicationPackage.HTTP_METHOD_TYPE_ENUM: - return instanceValue == null ? null : instanceValue.toString(); - case WebapplicationPackage.TRANSPORT_GUARANTEE_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case WebapplicationPackage.DISPATCHER_TYPE: - return instanceValue == null ? null : instanceValue.toString(); - case WebapplicationPackage.AUTH_METHOD_KIND: - return instanceValue == null ? null : instanceValue.toString(); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - -public static WebapplicationFactory getActiveFactory() { - return (WebapplicationFactory) getPackage().getEFactoryInstance(); -} - /** - * @generated This field/method will be replaced during code generation. - */ - public WebApp createWebApp() { - WebAppImpl webApp = new WebAppImpl(); - return webApp; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ContextParam createContextParam() { - ContextParamImpl contextParam = new ContextParamImpl(); - return contextParam; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ErrorPage createErrorPage() { - ErrorPageImpl errorPage = new ErrorPageImpl(); - return errorPage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TagLibRef createTagLibRef() { - TagLibRefImpl tagLibRef = new TagLibRefImpl(); - return tagLibRef; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ExceptionTypeErrorPage createExceptionTypeErrorPage() { - ExceptionTypeErrorPageImpl exceptionTypeErrorPage = new ExceptionTypeErrorPageImpl(); - return exceptionTypeErrorPage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ErrorCodeErrorPage createErrorCodeErrorPage() { - ErrorCodeErrorPageImpl errorCodeErrorPage = new ErrorCodeErrorPageImpl(); - return errorCodeErrorPage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public WelcomeFileList createWelcomeFileList() { - WelcomeFileListImpl welcomeFileList = new WelcomeFileListImpl(); - return welcomeFileList; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public WelcomeFile createWelcomeFile() { - WelcomeFileImpl welcomeFile = new WelcomeFileImpl(); - return welcomeFile; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public SecurityConstraint createSecurityConstraint() { - SecurityConstraintImpl securityConstraint = new SecurityConstraintImpl(); - return securityConstraint; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public WebResourceCollection createWebResourceCollection() { - WebResourceCollectionImpl webResourceCollection = new WebResourceCollectionImpl(); - return webResourceCollection; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public URLPatternType createURLPatternType() { - URLPatternTypeImpl urlPatternType = new URLPatternTypeImpl(); - return urlPatternType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public AuthConstraint createAuthConstraint() { - AuthConstraintImpl authConstraint = new AuthConstraintImpl(); - return authConstraint; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public UserDataConstraint createUserDataConstraint() { - UserDataConstraintImpl userDataConstraint = new UserDataConstraintImpl(); - return userDataConstraint; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public LoginConfig createLoginConfig() { - LoginConfigImpl loginConfig = new LoginConfigImpl(); - return loginConfig; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public FormLoginConfig createFormLoginConfig() { - FormLoginConfigImpl formLoginConfig = new FormLoginConfigImpl(); - return formLoginConfig; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public MimeMapping createMimeMapping() { - MimeMappingImpl mimeMapping = new MimeMappingImpl(); - return mimeMapping; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public SessionConfig createSessionConfig() { - SessionConfigImpl sessionConfig = new SessionConfigImpl(); - return sessionConfig; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ServletMapping createServletMapping() { - ServletMappingImpl servletMapping = new ServletMappingImpl(); - return servletMapping; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Servlet createServlet() { - ServletImpl servlet = new ServletImpl(); - return servlet; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public ServletType createServletType() { - ServletTypeImpl servletType = new ServletTypeImpl(); - return servletType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public JSPType createJSPType() { - JSPTypeImpl jspType = new JSPTypeImpl(); - return jspType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public InitParam createInitParam() { - InitParamImpl initParam = new InitParamImpl(); - return initParam; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Filter createFilter() { - FilterImpl filter = new FilterImpl(); - return filter; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public FilterMapping createFilterMapping() { - FilterMappingImpl filterMapping = new FilterMappingImpl(); - return filterMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public LocalEncodingMappingList createLocalEncodingMappingList() { - LocalEncodingMappingListImpl localEncodingMappingList = new LocalEncodingMappingListImpl(); - return localEncodingMappingList; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public LocalEncodingMapping createLocalEncodingMapping() { - LocalEncodingMappingImpl localEncodingMapping = new LocalEncodingMappingImpl(); - return localEncodingMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPMethodType createHTTPMethodType() { - HTTPMethodTypeImpl httpMethodType = new HTTPMethodTypeImpl(); - return httpMethodType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public RoleNameType createRoleNameType() { - RoleNameTypeImpl roleNameType = new RoleNameTypeImpl(); - return roleNameType; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public WebapplicationPackage getWebapplicationPackage() { - return (WebapplicationPackage)getEPackage(); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public static WebapplicationPackage getPackage() { - return WebapplicationPackage.eINSTANCE; - } - -} - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationPackageImpl.java deleted file mode 100644 index b2aedda1f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationPackageImpl.java +++ /dev/null @@ -1,1840 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl; -import org.eclipse.jst.j2ee.webapplication.AuthConstraint; -import org.eclipse.jst.j2ee.webapplication.AuthMethodKind; -import org.eclipse.jst.j2ee.webapplication.ContextParam; -import org.eclipse.jst.j2ee.webapplication.DispatcherType; -import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage; -import org.eclipse.jst.j2ee.webapplication.ErrorPage; -import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage; -import org.eclipse.jst.j2ee.webapplication.Filter; -import org.eclipse.jst.j2ee.webapplication.FilterMapping; -import org.eclipse.jst.j2ee.webapplication.FormLoginConfig; -import org.eclipse.jst.j2ee.webapplication.HTTPMethodType; -import org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum; -import org.eclipse.jst.j2ee.webapplication.InitParam; -import org.eclipse.jst.j2ee.webapplication.JSPType; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList; -import org.eclipse.jst.j2ee.webapplication.LoginConfig; -import org.eclipse.jst.j2ee.webapplication.MimeMapping; -import org.eclipse.jst.j2ee.webapplication.ResAuthServletType; -import org.eclipse.jst.j2ee.webapplication.RoleNameType; -import org.eclipse.jst.j2ee.webapplication.SecurityConstraint; -import org.eclipse.jst.j2ee.webapplication.Servlet; -import org.eclipse.jst.j2ee.webapplication.ServletMapping; -import org.eclipse.jst.j2ee.webapplication.ServletType; -import org.eclipse.jst.j2ee.webapplication.SessionConfig; -import org.eclipse.jst.j2ee.webapplication.TagLibRef; -import org.eclipse.jst.j2ee.webapplication.TransportGuaranteeType; -import org.eclipse.jst.j2ee.webapplication.URLPatternType; -import org.eclipse.jst.j2ee.webapplication.UserDataConstraint; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebResourceCollection; -import org.eclipse.jst.j2ee.webapplication.WebType; -import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.WelcomeFile; -import org.eclipse.jst.j2ee.webapplication.WelcomeFileList; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -public class WebapplicationPackageImpl extends EPackageImpl implements WebapplicationPackage, EPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webAppEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass contextParamEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass servletEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass servletMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass sessionConfigEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass mimeMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass welcomeFileListEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass errorPageEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass tagLibRefEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass securityConstraintEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webResourceCollectionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass authConstraintEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass userDataConstraintEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass loginConfigEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass formLoginConfigEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass initParamEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass servletTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass jspTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass urlPatternTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass roleNameTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass welcomeFileEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass exceptionTypeErrorPageEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass errorCodeErrorPageEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass filterMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass filterEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass localEncodingMappingListEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass localEncodingMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass httpMethodTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum resAuthServletTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum httpMethodTypeEnumEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum transportGuaranteeTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum dispatcherTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum authMethodKindEEnum = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - private WebapplicationPackageImpl() { - super(eNS_URI, WebapplicationFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * @generated This field/method will be replaced during code generation. - */ - public static WebapplicationPackage init() { - if (isInited) return (WebapplicationPackage)EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI); - - // Obtain or create and register package - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new WebapplicationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE); - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE); - - // Create package meta-data objects - theWebapplicationPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theCommonPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theTaglibPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - theWscommonPackage.createPackageContents(); - theWsddPackage.createPackageContents(); - - // Initialize created meta-data - theWebapplicationPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theTaglibPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - theWscommonPackage.initializePackageContents(); - theWsddPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theWebapplicationPackage.freeze(); - - return theWebapplicationPackage; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getWebApp() { - return webAppEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getWebApp_Distributable() { - return (EAttribute)webAppEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebApp_Version() { - return (EAttribute)webAppEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_Contexts() { - return (EReference)webAppEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_ErrorPages() { - return (EReference)webAppEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_FileList() { - return (EReference)webAppEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_TagLibs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_Constraints() { - return (EReference)webAppEClass.getEStructuralFeatures().get(6); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_LoginConfig() { - return (EReference)webAppEClass.getEStructuralFeatures().get(7); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_MimeMappings() { - return (EReference)webAppEClass.getEStructuralFeatures().get(8); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_SessionConfig() { - return (EReference)webAppEClass.getEStructuralFeatures().get(9); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_ServletMappings() { - return (EReference)webAppEClass.getEStructuralFeatures().get(10); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_Servlets() { - return (EReference)webAppEClass.getEStructuralFeatures().get(11); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_SecurityRoles() { - return (EReference)webAppEClass.getEStructuralFeatures().get(12); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_Filters() { - return (EReference)webAppEClass.getEStructuralFeatures().get(13); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_FilterMappings() { - return (EReference)webAppEClass.getEStructuralFeatures().get(14); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebApp_Listeners() { - return (EReference)webAppEClass.getEStructuralFeatures().get(15); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_ContextParams() { - return (EReference)webAppEClass.getEStructuralFeatures().get(16); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_JspConfig() { - return (EReference)webAppEClass.getEStructuralFeatures().get(17); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_MessageDestinations() { - return (EReference)webAppEClass.getEStructuralFeatures().get(18); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_LocalEncodingMappingList() { - return (EReference)webAppEClass.getEStructuralFeatures().get(19); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getContextParam() { - return contextParamEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getContextParam_ParamName() { - return (EAttribute)contextParamEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getContextParam_ParamValue() { - return (EAttribute)contextParamEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getContextParam_Description() { - return (EAttribute)contextParamEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getContextParam_WebApp() { - return (EReference)contextParamEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getErrorPage() { - return errorPageEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getErrorPage_Location() { - return (EAttribute)errorPageEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getErrorPage_WebApp() { - return (EReference)errorPageEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getExceptionTypeErrorPage() { - return exceptionTypeErrorPageEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getExceptionTypeErrorPage_ExceptionType() { - return (EReference)exceptionTypeErrorPageEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getErrorCodeErrorPage() { - return errorCodeErrorPageEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getErrorCodeErrorPage_ErrorCode() { - return (EAttribute)errorCodeErrorPageEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getWelcomeFileList() { - return welcomeFileListEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWelcomeFileList_WebApp() { - return (EReference)welcomeFileListEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWelcomeFileList_File() { - return (EReference)welcomeFileListEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getWelcomeFile() { - return welcomeFileEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getWelcomeFile_WelcomeFile() { - return (EAttribute)welcomeFileEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWelcomeFile_FileList() { - return (EReference)welcomeFileEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getTagLibRef() { - return tagLibRefEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getTagLibRef_TaglibURI() { - return (EAttribute)tagLibRefEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getTagLibRef_TaglibLocation() { - return (EAttribute)tagLibRefEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getTagLibRef_WebApp() { - return (EReference)tagLibRefEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getSecurityConstraint() { - return securityConstraintEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getSecurityConstraint_DisplayName() { - return (EAttribute)securityConstraintEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getSecurityConstraint_WebApp() { - return (EReference)securityConstraintEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getSecurityConstraint_WebResourceCollections() { - return (EReference)securityConstraintEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getSecurityConstraint_AuthConstraint() { - return (EReference)securityConstraintEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getSecurityConstraint_UserDataConstraint() { - return (EReference)securityConstraintEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSecurityConstraint_DisplayNames() { - return (EReference)securityConstraintEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getWebResourceCollection() { - return webResourceCollectionEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getWebResourceCollection_WebResourceName() { - return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getWebResourceCollection_Description() { - return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebResourceCollection_UrlPattern() { - return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebResourceCollection_HttpMethod() { - return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebResourceCollection_SecConstraint() { - return (EReference)webResourceCollectionEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getWebResourceCollection_URLs() { - return (EReference)webResourceCollectionEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebResourceCollection_Descriptions() { - return (EReference)webResourceCollectionEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebResourceCollection_HTTPs() { - return (EReference)webResourceCollectionEClass.getEStructuralFeatures().get(7); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getURLPatternType() { - return urlPatternTypeEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getURLPatternType_UrlPattern() { - return (EAttribute)urlPatternTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getURLPatternType_ResCollection() { - return (EReference)urlPatternTypeEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getHTTPMethodType() { - return httpMethodTypeEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getHTTPMethodType_HttpMethod() { - return (EAttribute)httpMethodTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getAuthConstraint() { - return authConstraintEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getAuthConstraint_Description() { - return (EAttribute)authConstraintEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getAuthConstraint_Roles() { - return (EAttribute)authConstraintEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getAuthConstraint_SecConstraint() { - return (EReference)authConstraintEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getAuthConstraint_Descriptions() { - return (EReference)authConstraintEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getUserDataConstraint() { - return userDataConstraintEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getUserDataConstraint_Description() { - return (EAttribute)userDataConstraintEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getUserDataConstraint_TransportGuarantee() { - return (EAttribute)userDataConstraintEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getUserDataConstraint_SecConstraint() { - return (EReference)userDataConstraintEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getUserDataConstraint_Descriptions() { - return (EReference)userDataConstraintEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getLoginConfig() { - return loginConfigEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getLoginConfig_AuthMethod() { - return (EAttribute)loginConfigEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getLoginConfig_RealmName() { - return (EAttribute)loginConfigEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLoginConfig_AuthorizationMethod() { - return (EAttribute)loginConfigEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getLoginConfig_WebApp() { - return (EReference)loginConfigEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getLoginConfig_FormLoginConfig() { - return (EReference)loginConfigEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getFormLoginConfig() { - return formLoginConfigEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getFormLoginConfig_FormLoginPage() { - return (EAttribute)formLoginConfigEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getFormLoginConfig_FormErrorPage() { - return (EAttribute)formLoginConfigEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getFormLoginConfig_LoginConfig() { - return (EReference)formLoginConfigEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getMimeMapping() { - return mimeMappingEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMimeMapping_Extension() { - return (EAttribute)mimeMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getMimeMapping_MimeType() { - return (EAttribute)mimeMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getMimeMapping_WebApp() { - return (EReference)mimeMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getSessionConfig() { - return sessionConfigEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getSessionConfig_SessionTimeout() { - return (EAttribute)sessionConfigEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getSessionConfig_WebApp() { - return (EReference)sessionConfigEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getServletMapping() { - return servletMappingEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getServletMapping_UrlPattern() { - return (EAttribute)servletMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServletMapping_Name() { - return (EAttribute)servletMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getServletMapping_WebApp() { - return (EReference)servletMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getServletMapping_Servlet() { - return (EReference)servletMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getServlet() { - return servletEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getServlet_ServletName() { - return (EAttribute)servletEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getServlet_LoadOnStartup() { - return (EAttribute)servletEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getServlet_WebApp() { - return (EReference)servletEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getServlet_WebType() { - return (EReference)servletEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getServlet_Params() { - return (EReference)servletEClass.getEStructuralFeatures().get(4); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getServlet_SecurityRoleRefs() { - return (EReference)servletEClass.getEStructuralFeatures().get(5); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getServlet_RunAs() { - return (EReference)servletEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServlet_InitParams() { - return (EReference)servletEClass.getEStructuralFeatures().get(7); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getWebType() { - return webTypeEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getServletType() { - return servletTypeEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getServletType_ClassName() { - return (EAttribute)servletTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getJSPType() { - return jspTypeEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getJSPType_JspFile() { - return (EAttribute)jspTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getInitParam() { - return initParamEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getInitParam_ParamName() { - return (EAttribute)initParamEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getInitParam_ParamValue() { - return (EAttribute)initParamEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getInitParam_Description() { - return (EAttribute)initParamEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getFilter() { - return filterEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getFilter_Name() { - return (EAttribute)filterEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getFilter_InitParams() { - return (EReference)filterEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getFilter_FilterClass() { - return (EReference)filterEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getFilter_InitParamValues() { - return (EReference)filterEClass.getEStructuralFeatures().get(3); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getFilterMapping() { - return filterMappingEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getFilterMapping_UrlPattern() { - return (EAttribute)filterMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFilterMapping_DispatcherType() { - return (EAttribute)filterMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getFilterMapping_Filter() { - return (EReference)filterMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EReference getFilterMapping_Servlet() { - return (EReference)filterMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getLocalEncodingMappingList() { - return localEncodingMappingListEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getLocalEncodingMappingList_LocalEncodingMappings() { - return (EReference)localEncodingMappingListEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getLocalEncodingMapping() { - return localEncodingMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLocalEncodingMapping_Locale() { - return (EAttribute)localEncodingMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLocalEncodingMapping_Encoding() { - return (EAttribute)localEncodingMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getResAuthServletType() { - return resAuthServletTypeEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getHTTPMethodTypeEnum() { - return httpMethodTypeEnumEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EClass getRoleNameType() { - return roleNameTypeEClass; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EAttribute getRoleNameType_RoleName() { - return (EAttribute)roleNameTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public EEnum getTransportGuaranteeType() { - return transportGuaranteeTypeEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getDispatcherType() { - return dispatcherTypeEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getAuthMethodKind() { - return authMethodKindEEnum; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public WebapplicationFactory getWebapplicationFactory() { - return (WebapplicationFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - webAppEClass = createEClass(WEB_APP); - createEAttribute(webAppEClass, WEB_APP__DISTRIBUTABLE); - createEAttribute(webAppEClass, WEB_APP__VERSION); - createEReference(webAppEClass, WEB_APP__CONTEXTS); - createEReference(webAppEClass, WEB_APP__ERROR_PAGES); - createEReference(webAppEClass, WEB_APP__FILE_LIST); - createEReference(webAppEClass, WEB_APP__TAG_LIBS); - createEReference(webAppEClass, WEB_APP__CONSTRAINTS); - createEReference(webAppEClass, WEB_APP__LOGIN_CONFIG); - createEReference(webAppEClass, WEB_APP__MIME_MAPPINGS); - createEReference(webAppEClass, WEB_APP__SESSION_CONFIG); - createEReference(webAppEClass, WEB_APP__SERVLET_MAPPINGS); - createEReference(webAppEClass, WEB_APP__SERVLETS); - createEReference(webAppEClass, WEB_APP__SECURITY_ROLES); - createEReference(webAppEClass, WEB_APP__FILTERS); - createEReference(webAppEClass, WEB_APP__FILTER_MAPPINGS); - createEReference(webAppEClass, WEB_APP__LISTENERS); - createEReference(webAppEClass, WEB_APP__CONTEXT_PARAMS); - createEReference(webAppEClass, WEB_APP__JSP_CONFIG); - createEReference(webAppEClass, WEB_APP__MESSAGE_DESTINATIONS); - createEReference(webAppEClass, WEB_APP__LOCAL_ENCODING_MAPPING_LIST); - - contextParamEClass = createEClass(CONTEXT_PARAM); - createEAttribute(contextParamEClass, CONTEXT_PARAM__PARAM_NAME); - createEAttribute(contextParamEClass, CONTEXT_PARAM__PARAM_VALUE); - createEAttribute(contextParamEClass, CONTEXT_PARAM__DESCRIPTION); - createEReference(contextParamEClass, CONTEXT_PARAM__WEB_APP); - - servletEClass = createEClass(SERVLET); - createEAttribute(servletEClass, SERVLET__SERVLET_NAME); - createEAttribute(servletEClass, SERVLET__LOAD_ON_STARTUP); - createEReference(servletEClass, SERVLET__WEB_APP); - createEReference(servletEClass, SERVLET__WEB_TYPE); - createEReference(servletEClass, SERVLET__PARAMS); - createEReference(servletEClass, SERVLET__SECURITY_ROLE_REFS); - createEReference(servletEClass, SERVLET__RUN_AS); - createEReference(servletEClass, SERVLET__INIT_PARAMS); - - servletMappingEClass = createEClass(SERVLET_MAPPING); - createEAttribute(servletMappingEClass, SERVLET_MAPPING__URL_PATTERN); - createEAttribute(servletMappingEClass, SERVLET_MAPPING__NAME); - createEReference(servletMappingEClass, SERVLET_MAPPING__WEB_APP); - createEReference(servletMappingEClass, SERVLET_MAPPING__SERVLET); - - sessionConfigEClass = createEClass(SESSION_CONFIG); - createEAttribute(sessionConfigEClass, SESSION_CONFIG__SESSION_TIMEOUT); - createEReference(sessionConfigEClass, SESSION_CONFIG__WEB_APP); - - mimeMappingEClass = createEClass(MIME_MAPPING); - createEAttribute(mimeMappingEClass, MIME_MAPPING__EXTENSION); - createEAttribute(mimeMappingEClass, MIME_MAPPING__MIME_TYPE); - createEReference(mimeMappingEClass, MIME_MAPPING__WEB_APP); - - welcomeFileListEClass = createEClass(WELCOME_FILE_LIST); - createEReference(welcomeFileListEClass, WELCOME_FILE_LIST__WEB_APP); - createEReference(welcomeFileListEClass, WELCOME_FILE_LIST__FILE); - - errorPageEClass = createEClass(ERROR_PAGE); - createEAttribute(errorPageEClass, ERROR_PAGE__LOCATION); - createEReference(errorPageEClass, ERROR_PAGE__WEB_APP); - - tagLibRefEClass = createEClass(TAG_LIB_REF); - createEAttribute(tagLibRefEClass, TAG_LIB_REF__TAGLIB_URI); - createEAttribute(tagLibRefEClass, TAG_LIB_REF__TAGLIB_LOCATION); - createEReference(tagLibRefEClass, TAG_LIB_REF__WEB_APP); - - securityConstraintEClass = createEClass(SECURITY_CONSTRAINT); - createEAttribute(securityConstraintEClass, SECURITY_CONSTRAINT__DISPLAY_NAME); - createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__WEB_APP); - createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS); - createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__AUTH_CONSTRAINT); - createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT); - createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__DISPLAY_NAMES); - - webResourceCollectionEClass = createEClass(WEB_RESOURCE_COLLECTION); - createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME); - createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__DESCRIPTION); - createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__URL_PATTERN); - createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__HTTP_METHOD); - createEReference(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT); - createEReference(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__UR_LS); - createEReference(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__DESCRIPTIONS); - createEReference(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__HTT_PS); - - authConstraintEClass = createEClass(AUTH_CONSTRAINT); - createEAttribute(authConstraintEClass, AUTH_CONSTRAINT__DESCRIPTION); - createEAttribute(authConstraintEClass, AUTH_CONSTRAINT__ROLES); - createEReference(authConstraintEClass, AUTH_CONSTRAINT__SEC_CONSTRAINT); - createEReference(authConstraintEClass, AUTH_CONSTRAINT__DESCRIPTIONS); - - userDataConstraintEClass = createEClass(USER_DATA_CONSTRAINT); - createEAttribute(userDataConstraintEClass, USER_DATA_CONSTRAINT__DESCRIPTION); - createEAttribute(userDataConstraintEClass, USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE); - createEReference(userDataConstraintEClass, USER_DATA_CONSTRAINT__SEC_CONSTRAINT); - createEReference(userDataConstraintEClass, USER_DATA_CONSTRAINT__DESCRIPTIONS); - - loginConfigEClass = createEClass(LOGIN_CONFIG); - createEAttribute(loginConfigEClass, LOGIN_CONFIG__AUTH_METHOD); - createEAttribute(loginConfigEClass, LOGIN_CONFIG__REALM_NAME); - createEAttribute(loginConfigEClass, LOGIN_CONFIG__AUTHORIZATION_METHOD); - createEReference(loginConfigEClass, LOGIN_CONFIG__WEB_APP); - createEReference(loginConfigEClass, LOGIN_CONFIG__FORM_LOGIN_CONFIG); - - formLoginConfigEClass = createEClass(FORM_LOGIN_CONFIG); - createEAttribute(formLoginConfigEClass, FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE); - createEAttribute(formLoginConfigEClass, FORM_LOGIN_CONFIG__FORM_ERROR_PAGE); - createEReference(formLoginConfigEClass, FORM_LOGIN_CONFIG__LOGIN_CONFIG); - - initParamEClass = createEClass(INIT_PARAM); - createEAttribute(initParamEClass, INIT_PARAM__PARAM_NAME); - createEAttribute(initParamEClass, INIT_PARAM__PARAM_VALUE); - createEAttribute(initParamEClass, INIT_PARAM__DESCRIPTION); - - webTypeEClass = createEClass(WEB_TYPE); - - servletTypeEClass = createEClass(SERVLET_TYPE); - createEAttribute(servletTypeEClass, SERVLET_TYPE__CLASS_NAME); - - jspTypeEClass = createEClass(JSP_TYPE); - createEAttribute(jspTypeEClass, JSP_TYPE__JSP_FILE); - - urlPatternTypeEClass = createEClass(URL_PATTERN_TYPE); - createEAttribute(urlPatternTypeEClass, URL_PATTERN_TYPE__URL_PATTERN); - createEReference(urlPatternTypeEClass, URL_PATTERN_TYPE__RES_COLLECTION); - - roleNameTypeEClass = createEClass(ROLE_NAME_TYPE); - createEAttribute(roleNameTypeEClass, ROLE_NAME_TYPE__ROLE_NAME); - - welcomeFileEClass = createEClass(WELCOME_FILE); - createEAttribute(welcomeFileEClass, WELCOME_FILE__WELCOME_FILE); - createEReference(welcomeFileEClass, WELCOME_FILE__FILE_LIST); - - exceptionTypeErrorPageEClass = createEClass(EXCEPTION_TYPE_ERROR_PAGE); - createEReference(exceptionTypeErrorPageEClass, EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE); - - errorCodeErrorPageEClass = createEClass(ERROR_CODE_ERROR_PAGE); - createEAttribute(errorCodeErrorPageEClass, ERROR_CODE_ERROR_PAGE__ERROR_CODE); - - filterMappingEClass = createEClass(FILTER_MAPPING); - createEAttribute(filterMappingEClass, FILTER_MAPPING__URL_PATTERN); - createEAttribute(filterMappingEClass, FILTER_MAPPING__DISPATCHER_TYPE); - createEReference(filterMappingEClass, FILTER_MAPPING__FILTER); - createEReference(filterMappingEClass, FILTER_MAPPING__SERVLET); - - filterEClass = createEClass(FILTER); - createEAttribute(filterEClass, FILTER__NAME); - createEReference(filterEClass, FILTER__INIT_PARAMS); - createEReference(filterEClass, FILTER__FILTER_CLASS); - createEReference(filterEClass, FILTER__INIT_PARAM_VALUES); - - localEncodingMappingListEClass = createEClass(LOCAL_ENCODING_MAPPING_LIST); - createEReference(localEncodingMappingListEClass, LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS); - - localEncodingMappingEClass = createEClass(LOCAL_ENCODING_MAPPING); - createEAttribute(localEncodingMappingEClass, LOCAL_ENCODING_MAPPING__LOCALE); - createEAttribute(localEncodingMappingEClass, LOCAL_ENCODING_MAPPING__ENCODING); - - httpMethodTypeEClass = createEClass(HTTP_METHOD_TYPE); - createEAttribute(httpMethodTypeEClass, HTTP_METHOD_TYPE__HTTP_METHOD); - - // Create enums - resAuthServletTypeEEnum = createEEnum(RES_AUTH_SERVLET_TYPE); - httpMethodTypeEnumEEnum = createEEnum(HTTP_METHOD_TYPE_ENUM); - transportGuaranteeTypeEEnum = createEEnum(TRANSPORT_GUARANTEE_TYPE); - dispatcherTypeEEnum = createEEnum(DISPATCHER_TYPE); - authMethodKindEEnum = createEEnum(AUTH_METHOD_KIND); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - JspPackageImpl theJspPackage = (JspPackageImpl)EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI); - JavaRefPackageImpl theJavaRefPackage = (JavaRefPackageImpl)EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI); - - // Add supertypes to classes - webAppEClass.getESuperTypes().add(theCommonPackage.getJNDIEnvRefsGroup()); - servletEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - servletTypeEClass.getESuperTypes().add(this.getWebType()); - jspTypeEClass.getESuperTypes().add(this.getWebType()); - exceptionTypeErrorPageEClass.getESuperTypes().add(this.getErrorPage()); - errorCodeErrorPageEClass.getESuperTypes().add(this.getErrorPage()); - filterEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - - // Initialize classes and features; add operations and parameters - initEClass(webAppEClass, WebApp.class, "WebApp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWebApp_Distributable(), ecorePackage.getEBoolean(), "distributable", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebApp_Version(), ecorePackage.getEString(), "version", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_Contexts(), this.getContextParam(), this.getContextParam_WebApp(), "contexts", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_ErrorPages(), this.getErrorPage(), this.getErrorPage_WebApp(), "errorPages", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_FileList(), this.getWelcomeFileList(), this.getWelcomeFileList_WebApp(), "fileList", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_TagLibs(), this.getTagLibRef(), this.getTagLibRef_WebApp(), "tagLibs", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_Constraints(), this.getSecurityConstraint(), this.getSecurityConstraint_WebApp(), "constraints", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_LoginConfig(), this.getLoginConfig(), this.getLoginConfig_WebApp(), "loginConfig", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_MimeMappings(), this.getMimeMapping(), this.getMimeMapping_WebApp(), "mimeMappings", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_SessionConfig(), this.getSessionConfig(), this.getSessionConfig_WebApp(), "sessionConfig", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_ServletMappings(), this.getServletMapping(), this.getServletMapping_WebApp(), "servletMappings", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_Servlets(), this.getServlet(), this.getServlet_WebApp(), "servlets", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_SecurityRoles(), theCommonPackage.getSecurityRole(), null, "securityRoles", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_Filters(), this.getFilter(), null, "filters", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_FilterMappings(), this.getFilterMapping(), null, "filterMappings", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_Listeners(), theCommonPackage.getListener(), null, "listeners", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_ContextParams(), theCommonPackage.getParamValue(), null, "contextParams", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_JspConfig(), theJspPackage.getJSPConfig(), null, "jspConfig", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_MessageDestinations(), theCommonPackage.getMessageDestination(), null, "messageDestinations", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebApp_LocalEncodingMappingList(), this.getLocalEncodingMappingList(), null, "localEncodingMappingList", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(contextParamEClass, ContextParam.class, "ContextParam", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getContextParam_ParamName(), ecorePackage.getEString(), "paramName", null, 0, 1, ContextParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getContextParam_ParamValue(), ecorePackage.getEString(), "paramValue", null, 0, 1, ContextParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getContextParam_Description(), ecorePackage.getEString(), "description", null, 0, 1, ContextParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContextParam_WebApp(), this.getWebApp(), this.getWebApp_Contexts(), "webApp", null, 0, 1, ContextParam.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(servletEClass, Servlet.class, "Servlet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getServlet_ServletName(), ecorePackage.getEString(), "servletName", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServlet_LoadOnStartup(), ecorePackage.getEIntegerObject(), "loadOnStartup", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServlet_WebApp(), this.getWebApp(), this.getWebApp_Servlets(), "webApp", null, 0, 1, Servlet.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServlet_WebType(), this.getWebType(), null, "webType", null, 1, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServlet_Params(), this.getInitParam(), null, "params", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServlet_SecurityRoleRefs(), theCommonPackage.getSecurityRoleRef(), null, "securityRoleRefs", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServlet_RunAs(), theCommonPackage.getRunAsSpecifiedIdentity(), null, "runAs", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServlet_InitParams(), theCommonPackage.getParamValue(), null, "initParams", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(servletMappingEClass, ServletMapping.class, "ServletMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getServletMapping_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, 1, ServletMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServletMapping_Name(), ecorePackage.getEString(), "name", null, 0, 1, ServletMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServletMapping_WebApp(), this.getWebApp(), this.getWebApp_ServletMappings(), "webApp", null, 0, 1, ServletMapping.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServletMapping_Servlet(), this.getServlet(), null, "servlet", null, 1, 1, ServletMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(sessionConfigEClass, SessionConfig.class, "SessionConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSessionConfig_SessionTimeout(), ecorePackage.getEInt(), "sessionTimeout", null, 0, 1, SessionConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSessionConfig_WebApp(), this.getWebApp(), this.getWebApp_SessionConfig(), "webApp", null, 0, 1, SessionConfig.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(mimeMappingEClass, MimeMapping.class, "MimeMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMimeMapping_Extension(), ecorePackage.getEString(), "extension", null, 0, 1, MimeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMimeMapping_MimeType(), ecorePackage.getEString(), "mimeType", null, 0, 1, MimeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMimeMapping_WebApp(), this.getWebApp(), this.getWebApp_MimeMappings(), "webApp", null, 0, 1, MimeMapping.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(welcomeFileListEClass, WelcomeFileList.class, "WelcomeFileList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getWelcomeFileList_WebApp(), this.getWebApp(), this.getWebApp_FileList(), "webApp", null, 0, 1, WelcomeFileList.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWelcomeFileList_File(), this.getWelcomeFile(), this.getWelcomeFile_FileList(), "file", null, 0, -1, WelcomeFileList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(errorPageEClass, ErrorPage.class, "ErrorPage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getErrorPage_Location(), ecorePackage.getEString(), "location", null, 0, 1, ErrorPage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getErrorPage_WebApp(), this.getWebApp(), this.getWebApp_ErrorPages(), "webApp", null, 0, 1, ErrorPage.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(tagLibRefEClass, TagLibRef.class, "TagLibRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTagLibRef_TaglibURI(), ecorePackage.getEString(), "taglibURI", null, 0, 1, TagLibRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTagLibRef_TaglibLocation(), ecorePackage.getEString(), "taglibLocation", null, 0, 1, TagLibRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTagLibRef_WebApp(), this.getWebApp(), this.getWebApp_TagLibs(), "webApp", null, 0, 1, TagLibRef.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(securityConstraintEClass, SecurityConstraint.class, "SecurityConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSecurityConstraint_DisplayName(), ecorePackage.getEString(), "displayName", null, 0, 1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSecurityConstraint_WebApp(), this.getWebApp(), this.getWebApp_Constraints(), "webApp", null, 0, 1, SecurityConstraint.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSecurityConstraint_WebResourceCollections(), this.getWebResourceCollection(), this.getWebResourceCollection_SecConstraint(), "webResourceCollections", null, 1, -1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSecurityConstraint_AuthConstraint(), this.getAuthConstraint(), this.getAuthConstraint_SecConstraint(), "authConstraint", null, 0, 1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSecurityConstraint_UserDataConstraint(), this.getUserDataConstraint(), this.getUserDataConstraint_SecConstraint(), "userDataConstraint", null, 0, 1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSecurityConstraint_DisplayNames(), theCommonPackage.getDisplayName(), null, "displayNames", null, 0, -1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(webResourceCollectionEClass, WebResourceCollection.class, "WebResourceCollection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWebResourceCollection_WebResourceName(), ecorePackage.getEString(), "webResourceName", null, 0, 1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebResourceCollection_Description(), ecorePackage.getEString(), "description", null, 0, 1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebResourceCollection_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 1, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebResourceCollection_HttpMethod(), this.getHTTPMethodTypeEnum(), "httpMethod", null, 0, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebResourceCollection_SecConstraint(), this.getSecurityConstraint(), this.getSecurityConstraint_WebResourceCollections(), "secConstraint", null, 0, 1, WebResourceCollection.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebResourceCollection_URLs(), this.getURLPatternType(), this.getURLPatternType_ResCollection(), "URLs", null, 0, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebResourceCollection_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebResourceCollection_HTTPs(), this.getHTTPMethodType(), null, "HTTPs", null, 0, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(authConstraintEClass, AuthConstraint.class, "AuthConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAuthConstraint_Description(), ecorePackage.getEString(), "description", null, 0, 1, AuthConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAuthConstraint_Roles(), ecorePackage.getEString(), "roles", null, 0, -1, AuthConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAuthConstraint_SecConstraint(), this.getSecurityConstraint(), this.getSecurityConstraint_AuthConstraint(), "secConstraint", null, 0, 1, AuthConstraint.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAuthConstraint_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, AuthConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(userDataConstraintEClass, UserDataConstraint.class, "UserDataConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getUserDataConstraint_Description(), ecorePackage.getEString(), "description", null, 0, 1, UserDataConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getUserDataConstraint_TransportGuarantee(), this.getTransportGuaranteeType(), "transportGuarantee", null, 0, 1, UserDataConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getUserDataConstraint_SecConstraint(), this.getSecurityConstraint(), this.getSecurityConstraint_UserDataConstraint(), "secConstraint", null, 0, 1, UserDataConstraint.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getUserDataConstraint_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, UserDataConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(loginConfigEClass, LoginConfig.class, "LoginConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getLoginConfig_AuthMethod(), this.getAuthMethodKind(), "authMethod", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getLoginConfig_RealmName(), ecorePackage.getEString(), "realmName", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getLoginConfig_AuthorizationMethod(), ecorePackage.getEString(), "authorizationMethod", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getLoginConfig_WebApp(), this.getWebApp(), this.getWebApp_LoginConfig(), "webApp", null, 0, 1, LoginConfig.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getLoginConfig_FormLoginConfig(), this.getFormLoginConfig(), this.getFormLoginConfig_LoginConfig(), "formLoginConfig", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(formLoginConfigEClass, FormLoginConfig.class, "FormLoginConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFormLoginConfig_FormLoginPage(), ecorePackage.getEString(), "formLoginPage", null, 0, 1, FormLoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFormLoginConfig_FormErrorPage(), ecorePackage.getEString(), "formErrorPage", null, 0, 1, FormLoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFormLoginConfig_LoginConfig(), this.getLoginConfig(), this.getLoginConfig_FormLoginConfig(), "loginConfig", null, 0, 1, FormLoginConfig.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(initParamEClass, InitParam.class, "InitParam", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getInitParam_ParamName(), ecorePackage.getEString(), "paramName", null, 0, 1, InitParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getInitParam_ParamValue(), ecorePackage.getEString(), "paramValue", null, 0, 1, InitParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getInitParam_Description(), ecorePackage.getEString(), "description", null, 0, 1, InitParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(webTypeEClass, WebType.class, "WebType", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(servletTypeEClass, ServletType.class, "ServletType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getServletType_ClassName(), ecorePackage.getEString(), "className", null, 0, 1, ServletType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(jspTypeEClass, JSPType.class, "JSPType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getJSPType_JspFile(), ecorePackage.getEString(), "jspFile", null, 0, 1, JSPType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(urlPatternTypeEClass, URLPatternType.class, "URLPatternType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getURLPatternType_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, 1, URLPatternType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getURLPatternType_ResCollection(), this.getWebResourceCollection(), this.getWebResourceCollection_URLs(), "resCollection", null, 0, 1, URLPatternType.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(roleNameTypeEClass, RoleNameType.class, "RoleNameType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getRoleNameType_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, RoleNameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(welcomeFileEClass, WelcomeFile.class, "WelcomeFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWelcomeFile_WelcomeFile(), ecorePackage.getEString(), "welcomeFile", null, 0, 1, WelcomeFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWelcomeFile_FileList(), this.getWelcomeFileList(), this.getWelcomeFileList_File(), "fileList", null, 0, 1, WelcomeFile.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(exceptionTypeErrorPageEClass, ExceptionTypeErrorPage.class, "ExceptionTypeErrorPage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getExceptionTypeErrorPage_ExceptionType(), theJavaRefPackage.getJavaClass(), null, "exceptionType", null, 1, 1, ExceptionTypeErrorPage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(errorCodeErrorPageEClass, ErrorCodeErrorPage.class, "ErrorCodeErrorPage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getErrorCodeErrorPage_ErrorCode(), ecorePackage.getEString(), "errorCode", null, 0, 1, ErrorCodeErrorPage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(filterMappingEClass, FilterMapping.class, "FilterMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFilterMapping_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, 1, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFilterMapping_DispatcherType(), this.getDispatcherType(), "dispatcherType", null, 0, 4, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFilterMapping_Filter(), this.getFilter(), null, "filter", null, 1, 1, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFilterMapping_Servlet(), this.getServlet(), null, "servlet", null, 0, 1, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(filterEClass, Filter.class, "Filter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFilter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFilter_InitParams(), this.getInitParam(), null, "initParams", null, 0, -1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFilter_FilterClass(), theJavaRefPackage.getJavaClass(), null, "filterClass", null, 1, 1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFilter_InitParamValues(), theCommonPackage.getParamValue(), null, "initParamValues", null, 0, -1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(localEncodingMappingListEClass, LocalEncodingMappingList.class, "LocalEncodingMappingList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getLocalEncodingMappingList_LocalEncodingMappings(), this.getLocalEncodingMapping(), null, "localEncodingMappings", null, 1, -1, LocalEncodingMappingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(localEncodingMappingEClass, LocalEncodingMapping.class, "LocalEncodingMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getLocalEncodingMapping_Locale(), ecorePackage.getEString(), "locale", null, 0, 1, LocalEncodingMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getLocalEncodingMapping_Encoding(), ecorePackage.getEString(), "encoding", null, 0, 1, LocalEncodingMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(httpMethodTypeEClass, HTTPMethodType.class, "HTTPMethodType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHTTPMethodType_HttpMethod(), ecorePackage.getEString(), "httpMethod", null, 0, 1, HTTPMethodType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(resAuthServletTypeEEnum, ResAuthServletType.class, "ResAuthServletType"); - addEEnumLiteral(resAuthServletTypeEEnum, ResAuthServletType.CONTAINER_LITERAL); - addEEnumLiteral(resAuthServletTypeEEnum, ResAuthServletType.SERVLET_LITERAL); - - initEEnum(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.class, "HTTPMethodTypeEnum"); - addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.GET_LITERAL); - addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.POST_LITERAL); - addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.PUT_LITERAL); - addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.DELETE_LITERAL); - addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.HEAD_LITERAL); - addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.OPTIONS_LITERAL); - addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.TRACE_LITERAL); - - initEEnum(transportGuaranteeTypeEEnum, TransportGuaranteeType.class, "TransportGuaranteeType"); - addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.NONE_LITERAL); - addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.INTEGRAL_LITERAL); - addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.CONFIDENTIAL_LITERAL); - - initEEnum(dispatcherTypeEEnum, DispatcherType.class, "DispatcherType"); - addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.FORWARD_LITERAL); - addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.INCLUDE_LITERAL); - addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.REQUEST_LITERAL); - addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.ERROR_LITERAL); - - initEEnum(authMethodKindEEnum, AuthMethodKind.class, "AuthMethodKind"); - addEEnumLiteral(authMethodKindEEnum, AuthMethodKind.UNSPECIFIED_LITERAL); - addEEnumLiteral(authMethodKindEEnum, AuthMethodKind.BASIC_LITERAL); - addEEnumLiteral(authMethodKindEEnum, AuthMethodKind.DIGEST_LITERAL); - addEEnumLiteral(authMethodKindEEnum, AuthMethodKind.FORM_LITERAL); - addEEnumLiteral(authMethodKindEEnum, AuthMethodKind.CLIENT_CERT_LITERAL); - - // Create resource - createResource(eNS_URI); - } - -} //WebapplicationPackageImpl - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileImpl.java deleted file mode 100644 index 5aedf2177..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileImpl.java +++ /dev/null @@ -1,245 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.WelcomeFile; -import org.eclipse.jst.j2ee.webapplication.WelcomeFileList; - -/** - * The welcome-file element contains file name to use as a default welcome file, such as index.html - - */ -public class WelcomeFileImpl extends EObjectImpl implements WelcomeFile, EObject { - - /** - * The default value of the '{@link #getWelcomeFile() <em>Welcome File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWelcomeFile() - * @generated - * @ordered - */ - protected static final String WELCOME_FILE_EDEFAULT = null; - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected String welcomeFile = WELCOME_FILE_EDEFAULT; - public WelcomeFileImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getWelcomeFile(); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public String getWelcomeFile() { - return welcomeFile; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWelcomeFile(String newWelcomeFile) { - String oldWelcomeFile = welcomeFile; - welcomeFile = newWelcomeFile; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WELCOME_FILE__WELCOME_FILE, oldWelcomeFile, welcomeFile)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public WelcomeFileList getFileList() { - if (eContainerFeatureID != WebapplicationPackage.WELCOME_FILE__FILE_LIST) return null; - return (WelcomeFileList)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setFileList(WelcomeFileList newFileList) { - if (newFileList != eContainer || (eContainerFeatureID != WebapplicationPackage.WELCOME_FILE__FILE_LIST && newFileList != null)) { - if (EcoreUtil.isAncestor(this, newFileList)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newFileList != null) - msgs = ((InternalEObject)newFileList).eInverseAdd(this, WebapplicationPackage.WELCOME_FILE_LIST__FILE, WelcomeFileList.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newFileList, WebapplicationPackage.WELCOME_FILE__FILE_LIST, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WELCOME_FILE__FILE_LIST, newFileList, newFileList)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.WELCOME_FILE__FILE_LIST: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.WELCOME_FILE__FILE_LIST, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.WELCOME_FILE__FILE_LIST: - return eBasicSetContainer(null, WebapplicationPackage.WELCOME_FILE__FILE_LIST, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.WELCOME_FILE__FILE_LIST: - return eContainer.eInverseRemove(this, WebapplicationPackage.WELCOME_FILE_LIST__FILE, WelcomeFileList.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WELCOME_FILE__WELCOME_FILE: - return getWelcomeFile(); - case WebapplicationPackage.WELCOME_FILE__FILE_LIST: - return getFileList(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WELCOME_FILE__WELCOME_FILE: - return WELCOME_FILE_EDEFAULT == null ? welcomeFile != null : !WELCOME_FILE_EDEFAULT.equals(welcomeFile); - case WebapplicationPackage.WELCOME_FILE__FILE_LIST: - return getFileList() != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WELCOME_FILE__WELCOME_FILE: - setWelcomeFile((String)newValue); - return; - case WebapplicationPackage.WELCOME_FILE__FILE_LIST: - setFileList((WelcomeFileList)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WELCOME_FILE__WELCOME_FILE: - setWelcomeFile(WELCOME_FILE_EDEFAULT); - return; - case WebapplicationPackage.WELCOME_FILE__FILE_LIST: - setFileList((WelcomeFileList)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (welcomeFile: "); - result.append(welcomeFile); - result.append(')'); - return result.toString(); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileListImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileListImpl.java deleted file mode 100644 index 76b94af5f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileListImpl.java +++ /dev/null @@ -1,234 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.WelcomeFile; -import org.eclipse.jst.j2ee.webapplication.WelcomeFileList; - -/** - * The welcome-file-list contains an ordered list of welcome files elements. - */ -public class WelcomeFileListImpl extends EObjectImpl implements WelcomeFileList, EObject { - - /** - * @generated This field/method will be replaced during code generation. - */ - /** - * @generated This field/method will be replaced during code generation. - */ - protected EList file = null; - public WelcomeFileListImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebapplicationPackage.eINSTANCE.getWelcomeFileList(); - } - -/** - * addFileNamed method comment. - */ -public void addFileNamed(java.lang.String name) { - WelcomeFile lfile = ((WebapplicationPackage)EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI)).getWebapplicationFactory().createWelcomeFile(); - lfile.setWelcomeFile(name); - getFile().add(lfile); -} - /** - * @generated This field/method will be replaced during code generation - */ - public WebApp getWebApp() { - if (eContainerFeatureID != WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP) return null; - return (WebApp)eContainer; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void setWebApp(WebApp newWebApp) { - if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP && newWebApp != null)) { - if (EcoreUtil.isAncestor(this, newWebApp)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newWebApp != null) - msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__FILE_LIST, WebApp.class, msgs); - msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, newWebApp, newWebApp)); - } - - /** - * @generated This field/method will be replaced during code generation - */ - public EList getFile() { - if (file == null) { - file = new EObjectContainmentWithInverseEList(WelcomeFile.class, this, WebapplicationPackage.WELCOME_FILE_LIST__FILE, WebapplicationPackage.WELCOME_FILE__FILE_LIST); - } - return file; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP: - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, msgs); - case WebapplicationPackage.WELCOME_FILE_LIST__FILE: - return ((InternalEList)getFile()).basicAdd(otherEnd, msgs); - default: - return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); - } - } - if (eContainer != null) - msgs = eBasicRemoveFromContainer(msgs); - return eBasicSetContainer(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP: - return eBasicSetContainer(null, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, msgs); - case WebapplicationPackage.WELCOME_FILE_LIST__FILE: - return ((InternalEList)getFile()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { - if (eContainerFeatureID >= 0) { - switch (eContainerFeatureID) { - case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP: - return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__FILE_LIST, WebApp.class, msgs); - default: - return eDynamicBasicRemoveFromContainer(msgs); - } - } - return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP: - return getWebApp(); - case WebapplicationPackage.WELCOME_FILE_LIST__FILE: - return getFile(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP: - return getWebApp() != null; - case WebapplicationPackage.WELCOME_FILE_LIST__FILE: - return file != null && !file.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP: - setWebApp((WebApp)newValue); - return; - case WebapplicationPackage.WELCOME_FILE_LIST__FILE: - getFile().clear(); - getFile().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP: - setWebApp((WebApp)null); - return; - case WebapplicationPackage.WELCOME_FILE_LIST__FILE: - getFile().clear(); - return; - } - eDynamicUnset(eFeature); - } - -} - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationAdapterFactory.java deleted file mode 100644 index e12043553..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationAdapterFactory.java +++ /dev/null @@ -1,692 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup; -import org.eclipse.jst.j2ee.webapplication.AuthConstraint; -import org.eclipse.jst.j2ee.webapplication.ContextParam; -import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage; -import org.eclipse.jst.j2ee.webapplication.ErrorPage; -import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage; -import org.eclipse.jst.j2ee.webapplication.Filter; -import org.eclipse.jst.j2ee.webapplication.FilterMapping; -import org.eclipse.jst.j2ee.webapplication.FormLoginConfig; -import org.eclipse.jst.j2ee.webapplication.HTTPMethodType; -import org.eclipse.jst.j2ee.webapplication.InitParam; -import org.eclipse.jst.j2ee.webapplication.JSPType; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList; -import org.eclipse.jst.j2ee.webapplication.LoginConfig; -import org.eclipse.jst.j2ee.webapplication.MimeMapping; -import org.eclipse.jst.j2ee.webapplication.RoleNameType; -import org.eclipse.jst.j2ee.webapplication.SecurityConstraint; -import org.eclipse.jst.j2ee.webapplication.Servlet; -import org.eclipse.jst.j2ee.webapplication.ServletMapping; -import org.eclipse.jst.j2ee.webapplication.ServletType; -import org.eclipse.jst.j2ee.webapplication.SessionConfig; -import org.eclipse.jst.j2ee.webapplication.TagLibRef; -import org.eclipse.jst.j2ee.webapplication.URLPatternType; -import org.eclipse.jst.j2ee.webapplication.UserDataConstraint; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebResourceCollection; -import org.eclipse.jst.j2ee.webapplication.WebType; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.WelcomeFile; -import org.eclipse.jst.j2ee.webapplication.WelcomeFileList; - - - -public class WebapplicationAdapterFactory extends AdapterFactoryImpl { - protected static WebapplicationPackage modelPackage; - - public WebapplicationAdapterFactory() { - if (modelPackage == null) { - modelPackage = (WebapplicationPackage)EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI); - } - } - public boolean isFactoryForType(Object type) { - if (type == modelPackage) { - return true; - } - if (type instanceof EObject) { - return ((EObject)type).eClass().eContainer() == modelPackage; - } - return false; - } - - protected WebapplicationSwitch sw = new WebapplicationSwitch() { - public Object caseWebApp(WebApp object) { - return createWebAppAdapter(); - } - public Object caseContextParam(ContextParam object) { - return createContextParamAdapter(); - } - public Object caseErrorPage(ErrorPage object) { - return createErrorPageAdapter(); - } - public Object caseExceptionTypeErrorPage(ExceptionTypeErrorPage object) { - return createExceptionTypeErrorPageAdapter(); - } - public Object caseErrorCodeErrorPage(ErrorCodeErrorPage object) { - return createErrorCodeErrorPageAdapter(); - } - public Object caseWelcomeFileList(WelcomeFileList object) { - return createWelcomeFileListAdapter(); - } - public Object caseWelcomeFile(WelcomeFile object) { - return createWelcomeFileAdapter(); - } - public Object caseTagLibRef(TagLibRef object) { - return createTagLibRefAdapter(); - } - public Object caseSecurityConstraint(SecurityConstraint object) { - return createSecurityConstraintAdapter(); - } - public Object caseWebResourceCollection(WebResourceCollection object) { - return createWebResourceCollectionAdapter(); - } - public Object caseURLPatternType(URLPatternType object) { - return createURLPatternTypeAdapter(); - } - public Object caseHTTPMethodType(HTTPMethodType object) { - return createHTTPMethodTypeAdapter(); - } - public Object caseAuthConstraint(AuthConstraint object) { - return createAuthConstraintAdapter(); - } - public Object caseUserDataConstraint(UserDataConstraint object) { - return createUserDataConstraintAdapter(); - } - public Object caseLoginConfig(LoginConfig object) { - return createLoginConfigAdapter(); - } - public Object caseFormLoginConfig(FormLoginConfig object) { - return createFormLoginConfigAdapter(); - } - public Object caseMimeMapping(MimeMapping object) { - return createMimeMappingAdapter(); - } - public Object caseSessionConfig(SessionConfig object) { - return createSessionConfigAdapter(); - } - public Object caseServletMapping(ServletMapping object) { - return createServletMappingAdapter(); - } - public Object caseServlet(Servlet object) { - return createServletAdapter(); - } - public Object caseWebType(WebType object) { - return createWebTypeAdapter(); - } - public Object caseServletType(ServletType object) { - return createServletTypeAdapter(); - } - public Object caseJSPType(JSPType object) { - return createJSPTypeAdapter(); - } - public Object caseInitParam(InitParam object) { - return createInitParamAdapter(); - } - public Object caseFilter(Filter object) { - return createFilterAdapter(); - } - public Object caseFilterMapping(FilterMapping object) { - return createFilterMappingAdapter(); - } - public Object caseRoleNameType(RoleNameType object) { - return createRoleNameTypeAdapter(); - } - public Object caseLocalEncodingMappingList(LocalEncodingMappingList object) { - return createLocalEncodingMappingListAdapter(); - } - public Object caseLocalEncodingMapping(LocalEncodingMapping object) { - return createLocalEncodingMappingAdapter(); - } - }; - - public Adapter createAdapter(Notifier target) { - return (Adapter)sw.doSwitch((EObject)target); - } - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - public Adapter createWebAppAdapter() { - return null; - } - - public Adapter createContextParamAdapter() { - return null; - } - - public Adapter createErrorPageAdapter() { - return null; - } - - public Adapter createExceptionTypeErrorPageAdapter() { - return null; - } - - public Adapter createErrorCodeErrorPageAdapter() { - return null; - } - - public Adapter createWelcomeFileListAdapter() { - return null; - } - - public Adapter createWelcomeFileAdapter() { - return null; - } - - public Adapter createTagLibRefAdapter() { - return null; - } - - public Adapter createTagLibRefTypeAdapter() { - return null; - } - - public Adapter createSecurityConstraintAdapter() { - return null; - } - - public Adapter createWebResourceCollectionAdapter() { - return null; - } - - public Adapter createURLPatternTypeAdapter() { - return null; - } - - public Adapter createHTTPMethodTypeAdapter() { - return null; - } - - public Adapter createAuthConstraintAdapter() { - return null; - } - - public Adapter createUserDataConstraintAdapter() { - return null; - } - - public Adapter createLoginConfigAdapter() { - return null; - } - - public Adapter createFormLoginConfigAdapter() { - return null; - } - - public Adapter createMimeMappingAdapter() { - return null; - } - - public Adapter createSessionConfigAdapter() { - return null; - } - - public Adapter createServletMappingAdapter() { - return null; - } - - public Adapter createServletAdapter() { - return null; - } - - public Adapter createWebTypeAdapter() { - return null; - } - - public Adapter createServletTypeAdapter() { - return null; - } - - public Adapter createJSPTypeAdapter() { - return null; - } - - public Adapter createInitParamAdapter() { - return null; - } - - public Adapter createFilterAdapter() { - return null; - } - - public Adapter createFilterMappingAdapter() { - return null; - } - - public Adapter createListenerAdapter() { - return null; - } - - public Adapter createRoleNameTypeAdapter() { - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public boolean isFactoryForTypeGen(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WebapplicationSwitch modelSwitch = - new WebapplicationSwitch() { - public Object caseWebApp(WebApp object) { - return createWebAppAdapter(); - } - public Object caseContextParam(ContextParam object) { - return createContextParamAdapter(); - } - public Object caseServlet(Servlet object) { - return createServletAdapter(); - } - public Object caseServletMapping(ServletMapping object) { - return createServletMappingAdapter(); - } - public Object caseSessionConfig(SessionConfig object) { - return createSessionConfigAdapter(); - } - public Object caseMimeMapping(MimeMapping object) { - return createMimeMappingAdapter(); - } - public Object caseWelcomeFileList(WelcomeFileList object) { - return createWelcomeFileListAdapter(); - } - public Object caseErrorPage(ErrorPage object) { - return createErrorPageAdapter(); - } - public Object caseTagLibRef(TagLibRef object) { - return createTagLibRefAdapter(); - } - public Object caseSecurityConstraint(SecurityConstraint object) { - return createSecurityConstraintAdapter(); - } - public Object caseWebResourceCollection(WebResourceCollection object) { - return createWebResourceCollectionAdapter(); - } - public Object caseAuthConstraint(AuthConstraint object) { - return createAuthConstraintAdapter(); - } - public Object caseUserDataConstraint(UserDataConstraint object) { - return createUserDataConstraintAdapter(); - } - public Object caseLoginConfig(LoginConfig object) { - return createLoginConfigAdapter(); - } - public Object caseFormLoginConfig(FormLoginConfig object) { - return createFormLoginConfigAdapter(); - } - public Object caseInitParam(InitParam object) { - return createInitParamAdapter(); - } - public Object caseWebType(WebType object) { - return createWebTypeAdapter(); - } - public Object caseServletType(ServletType object) { - return createServletTypeAdapter(); - } - public Object caseJSPType(JSPType object) { - return createJSPTypeAdapter(); - } - public Object caseURLPatternType(URLPatternType object) { - return createURLPatternTypeAdapter(); - } - public Object caseRoleNameType(RoleNameType object) { - return createRoleNameTypeAdapter(); - } - public Object caseWelcomeFile(WelcomeFile object) { - return createWelcomeFileAdapter(); - } - public Object caseExceptionTypeErrorPage(ExceptionTypeErrorPage object) { - return createExceptionTypeErrorPageAdapter(); - } - public Object caseErrorCodeErrorPage(ErrorCodeErrorPage object) { - return createErrorCodeErrorPageAdapter(); - } - public Object caseFilterMapping(FilterMapping object) { - return createFilterMappingAdapter(); - } - public Object caseFilter(Filter object) { - return createFilterAdapter(); - } - public Object caseLocalEncodingMappingList(LocalEncodingMappingList object) { - return createLocalEncodingMappingListAdapter(); - } - public Object caseLocalEncodingMapping(LocalEncodingMapping object) { - return createLocalEncodingMappingAdapter(); - } - public Object caseHTTPMethodType(HTTPMethodType object) { - return createHTTPMethodTypeAdapter(); - } - public Object caseDescriptionGroup(DescriptionGroup object) { - return createDescriptionGroupAdapter(); - } - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return createCompatibilityDescriptionGroupAdapter(); - } - public Object caseJNDIEnvRefsGroup(JNDIEnvRefsGroup object) { - return createJNDIEnvRefsGroupAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAdapterGen(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * By default create methods return null so that we can easily ignore cases. - * It's useful to ignore a case when inheritance will catch all the cases anyway. - */ - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createWebAppAdapterGen() { - - return null; - } - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createContextParamAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createErrorPageAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createExceptionTypeErrorPageAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createErrorCodeErrorPageAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createWelcomeFileListAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createWelcomeFileAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createTagLibRefAdapterGen() { - return null; - } - - public Adapter createTagLibRefTypeAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createSecurityConstraintAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createWebResourceCollectionAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createURLPatternTypeAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createAuthConstraintAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createUserDataConstraintAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createLoginConfigAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createFormLoginConfigAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createMimeMappingAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createSessionConfigAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createServletMappingAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createServletAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createWebTypeAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createServletTypeAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createJSPTypeAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createInitParamAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createFilterAdapterGen() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createFilterMappingAdapterGen() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList <em>Local Encoding Mapping List</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList - * @generated - */ - public Adapter createLocalEncodingMappingListAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping <em>Local Encoding Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping - * @generated - */ - public Adapter createLocalEncodingMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - public Adapter createDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - public Adapter createCompatibilityDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup <em>JNDI Env Refs Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup - * @generated - */ - public Adapter createJNDIEnvRefsGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - - /** - * @generated This field/method will be replaced during code generation. - */ - public Adapter createRoleNameTypeAdapterGen() { - return null; - } - -} //WebapplicationAdapterFactory - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationSwitch.java deleted file mode 100644 index e6531f189..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationSwitch.java +++ /dev/null @@ -1,811 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webapplication.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup; -import org.eclipse.jst.j2ee.webapplication.AuthConstraint; -import org.eclipse.jst.j2ee.webapplication.ContextParam; -import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage; -import org.eclipse.jst.j2ee.webapplication.ErrorPage; -import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage; -import org.eclipse.jst.j2ee.webapplication.Filter; -import org.eclipse.jst.j2ee.webapplication.FilterMapping; -import org.eclipse.jst.j2ee.webapplication.FormLoginConfig; -import org.eclipse.jst.j2ee.webapplication.HTTPMethodType; -import org.eclipse.jst.j2ee.webapplication.InitParam; -import org.eclipse.jst.j2ee.webapplication.JSPType; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping; -import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList; -import org.eclipse.jst.j2ee.webapplication.LoginConfig; -import org.eclipse.jst.j2ee.webapplication.MimeMapping; -import org.eclipse.jst.j2ee.webapplication.RoleNameType; -import org.eclipse.jst.j2ee.webapplication.SecurityConstraint; -import org.eclipse.jst.j2ee.webapplication.Servlet; -import org.eclipse.jst.j2ee.webapplication.ServletMapping; -import org.eclipse.jst.j2ee.webapplication.ServletType; -import org.eclipse.jst.j2ee.webapplication.SessionConfig; -import org.eclipse.jst.j2ee.webapplication.TagLibRef; -import org.eclipse.jst.j2ee.webapplication.URLPatternType; -import org.eclipse.jst.j2ee.webapplication.UserDataConstraint; -import org.eclipse.jst.j2ee.webapplication.WebApp; -import org.eclipse.jst.j2ee.webapplication.WebResourceCollection; -import org.eclipse.jst.j2ee.webapplication.WebType; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.WelcomeFile; -import org.eclipse.jst.j2ee.webapplication.WelcomeFileList; - - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webapplication.WebapplicationPackage - * @generated - */ -public class WebapplicationSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static WebapplicationPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebapplicationSwitch() { - if (modelPackage == null) { - modelPackage = WebapplicationPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case WebapplicationPackage.WEB_APP: { - WebApp webApp = (WebApp)theEObject; - Object result = caseWebApp(webApp); - if (result == null) result = caseJNDIEnvRefsGroup(webApp); - if (result == null) result = caseCompatibilityDescriptionGroup(webApp); - if (result == null) result = caseDescriptionGroup(webApp); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.CONTEXT_PARAM: { - ContextParam contextParam = (ContextParam)theEObject; - Object result = caseContextParam(contextParam); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.SERVLET: { - Servlet servlet = (Servlet)theEObject; - Object result = caseServlet(servlet); - if (result == null) result = caseCompatibilityDescriptionGroup(servlet); - if (result == null) result = caseDescriptionGroup(servlet); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.SERVLET_MAPPING: { - ServletMapping servletMapping = (ServletMapping)theEObject; - Object result = caseServletMapping(servletMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.SESSION_CONFIG: { - SessionConfig sessionConfig = (SessionConfig)theEObject; - Object result = caseSessionConfig(sessionConfig); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.MIME_MAPPING: { - MimeMapping mimeMapping = (MimeMapping)theEObject; - Object result = caseMimeMapping(mimeMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.WELCOME_FILE_LIST: { - WelcomeFileList welcomeFileList = (WelcomeFileList)theEObject; - Object result = caseWelcomeFileList(welcomeFileList); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.ERROR_PAGE: { - ErrorPage errorPage = (ErrorPage)theEObject; - Object result = caseErrorPage(errorPage); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.TAG_LIB_REF: { - TagLibRef tagLibRef = (TagLibRef)theEObject; - Object result = caseTagLibRef(tagLibRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.SECURITY_CONSTRAINT: { - SecurityConstraint securityConstraint = (SecurityConstraint)theEObject; - Object result = caseSecurityConstraint(securityConstraint); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.WEB_RESOURCE_COLLECTION: { - WebResourceCollection webResourceCollection = (WebResourceCollection)theEObject; - Object result = caseWebResourceCollection(webResourceCollection); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.AUTH_CONSTRAINT: { - AuthConstraint authConstraint = (AuthConstraint)theEObject; - Object result = caseAuthConstraint(authConstraint); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.USER_DATA_CONSTRAINT: { - UserDataConstraint userDataConstraint = (UserDataConstraint)theEObject; - Object result = caseUserDataConstraint(userDataConstraint); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.LOGIN_CONFIG: { - LoginConfig loginConfig = (LoginConfig)theEObject; - Object result = caseLoginConfig(loginConfig); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.FORM_LOGIN_CONFIG: { - FormLoginConfig formLoginConfig = (FormLoginConfig)theEObject; - Object result = caseFormLoginConfig(formLoginConfig); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.INIT_PARAM: { - InitParam initParam = (InitParam)theEObject; - Object result = caseInitParam(initParam); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.WEB_TYPE: { - WebType webType = (WebType)theEObject; - Object result = caseWebType(webType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.SERVLET_TYPE: { - ServletType servletType = (ServletType)theEObject; - Object result = caseServletType(servletType); - if (result == null) result = caseWebType(servletType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.JSP_TYPE: { - JSPType jspType = (JSPType)theEObject; - Object result = caseJSPType(jspType); - if (result == null) result = caseWebType(jspType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.URL_PATTERN_TYPE: { - URLPatternType urlPatternType = (URLPatternType)theEObject; - Object result = caseURLPatternType(urlPatternType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.ROLE_NAME_TYPE: { - RoleNameType roleNameType = (RoleNameType)theEObject; - Object result = caseRoleNameType(roleNameType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.WELCOME_FILE: { - WelcomeFile welcomeFile = (WelcomeFile)theEObject; - Object result = caseWelcomeFile(welcomeFile); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE: { - ExceptionTypeErrorPage exceptionTypeErrorPage = (ExceptionTypeErrorPage)theEObject; - Object result = caseExceptionTypeErrorPage(exceptionTypeErrorPage); - if (result == null) result = caseErrorPage(exceptionTypeErrorPage); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.ERROR_CODE_ERROR_PAGE: { - ErrorCodeErrorPage errorCodeErrorPage = (ErrorCodeErrorPage)theEObject; - Object result = caseErrorCodeErrorPage(errorCodeErrorPage); - if (result == null) result = caseErrorPage(errorCodeErrorPage); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.FILTER_MAPPING: { - FilterMapping filterMapping = (FilterMapping)theEObject; - Object result = caseFilterMapping(filterMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.FILTER: { - Filter filter = (Filter)theEObject; - Object result = caseFilter(filter); - if (result == null) result = caseCompatibilityDescriptionGroup(filter); - if (result == null) result = caseDescriptionGroup(filter); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST: { - LocalEncodingMappingList localEncodingMappingList = (LocalEncodingMappingList)theEObject; - Object result = caseLocalEncodingMappingList(localEncodingMappingList); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.LOCAL_ENCODING_MAPPING: { - LocalEncodingMapping localEncodingMapping = (LocalEncodingMapping)theEObject; - Object result = caseLocalEncodingMapping(localEncodingMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WebapplicationPackage.HTTP_METHOD_TYPE: { - HTTPMethodType httpMethodType = (HTTPMethodType)theEObject; - Object result = caseHTTPMethodType(httpMethodType); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Web App</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Web App</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWebApp(WebApp object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Context Param</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Context Param</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseContextParam(ContextParam object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Servlet</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Servlet</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseServlet(Servlet object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Servlet Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Servlet Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseServletMapping(ServletMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Session Config</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Session Config</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseSessionConfig(SessionConfig object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Mime Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Mime Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMimeMapping(MimeMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Welcome File List</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Welcome File List</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWelcomeFileList(WelcomeFileList object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Error Page</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Error Page</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseErrorPage(ErrorPage object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Tag Lib Ref</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Tag Lib Ref</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseTagLibRef(TagLibRef object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Security Constraint</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Security Constraint</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseSecurityConstraint(SecurityConstraint object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Web Resource Collection</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Web Resource Collection</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWebResourceCollection(WebResourceCollection object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Auth Constraint</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Auth Constraint</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseAuthConstraint(AuthConstraint object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>User Data Constraint</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>User Data Constraint</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseUserDataConstraint(UserDataConstraint object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Login Config</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Login Config</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseLoginConfig(LoginConfig object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Form Login Config</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Form Login Config</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseFormLoginConfig(FormLoginConfig object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Init Param</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Init Param</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseInitParam(InitParam object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Web Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Web Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWebType(WebType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Servlet Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Servlet Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseServletType(ServletType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>JSP Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>JSP Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseJSPType(JSPType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>URL Pattern Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>URL Pattern Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseURLPatternType(URLPatternType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Role Name Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Role Name Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseRoleNameType(RoleNameType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Welcome File</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Welcome File</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWelcomeFile(WelcomeFile object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Exception Type Error Page</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Exception Type Error Page</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseExceptionTypeErrorPage(ExceptionTypeErrorPage object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Error Code Error Page</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Error Code Error Page</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseErrorCodeErrorPage(ErrorCodeErrorPage object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Filter Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Filter Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseFilterMapping(FilterMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Filter</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Filter</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseFilter(Filter object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Local Encoding Mapping List</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Local Encoding Mapping List</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseLocalEncodingMappingList(LocalEncodingMappingList object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Local Encoding Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Local Encoding Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseLocalEncodingMapping(LocalEncodingMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>HTTP Method Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>HTTP Method Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseHTTPMethodType(HTTPMethodType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionGroup(DescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>JNDI Env Refs Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>JNDI Env Refs Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseJNDIEnvRefsGroup(JNDIEnvRefsGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //WebapplicationSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/package.xml b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/package.xml deleted file mode 100644 index afe8e3776..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/package.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<html> - <head> - <meta - name="root" - content="../../../../../../../" /> - <title>EJB Artifact Edit api overview</title> - </head> - - <body> - <abstract> - This package includes the EJBArtifactEdit api. This api is used to work with the emf model - of a flexible ejb module. It contains api to read and serialize out the emf model. - </abstract> - - <a href="#top">top</a> - </body> -</html> -
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/WebServiceConstants.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/WebServiceConstants.java deleted file mode 100644 index b4fa66142..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/WebServiceConstants.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.internal; - -public final class WebServiceConstants -{ - public static final String DEFAULT_XML_ENCODING = "UTF-8";//$NON-NLS-1$ - - public static final String WEBSERVICE_DD_SHORT_NAME = "webservices.xml"; //$NON-NLS-1$ - public static final String WEBSERVICE_SYSTEMID = "http://www.ibm.com/webservices/dtd/j2ee_web_services_1_0.dtd"; //$NON-NLS-1$ - public static final String WEBSERVICE_PUBLICID = "-//IBM Corporation, Inc.//DTD J2EE Web services 1.0//EN"; //$NON-NLS-1$ - public static final String WEBSERVICE_DOCTYPE = "webservices";//$NON-NLS-1$ - public static final String WEBSERVICE_SCHEMA_LOC = "http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd";//$NON-NLS-1$ - public static final String WEBSERVICE_SCHEMA_LOC_SUN = "http://java.sun.com/xml/ns/j2ee/j2ee_web_services_1_1.xsd";//$NON-NLS-1$ - - public static final String WEBSERVICECLIENT_DD_SHORT_NAME = "webservicesclient.xml"; //$NON-NLS-1$ - public static final String WEBSERVICECLIENT_SYSTEMID = "http://www.ibm.com/webservices/dtd/j2ee_web_services_client_1_0.dtd"; //$NON-NLS-1$ - public static final String WEBSERVICECLIENT_PUBLICID = "-//IBM Corporation, Inc.//DTD J2EE Web services client 1.0//EN"; //$NON-NLS-1$ - public static final String WEBSERVICECLIENT_DOCTYPE = "webservicesclient";//$NON-NLS-1$ - -public static final String WEBSERVICE_TEMP_DD_SHORT_NAME = "webservices-temp.xml";//$NON-NLS-1$ - - //public static final String JAXRPCMAP_DD_SHORT_NAME = "mapping.xml"; //$NON-NLS-1$ !!We don't have a standard name!! - public static final String JAXRPCMAP_SYSTEMID = "http://www.ibm.com/webservices/dtd/j2ee_jaxrpc_mapping_1_0.dtd"; //$NON-NLS-1$ - public static final String JAXRPCMAP_PUBLICID = "-//IBM Corporation, Inc.//DTD J2EE JAX-RPC mapping 1.0//EN"; //$NON-NLS-1$ - public static final String JAXRPCMAP_DOCTYPE = "java-wsdl-mapping";//$NON-NLS-1$ - public static final String JAXRPCMAP_SCHEMA_LOC = "http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd";//$NON-NLS-1$ - public static final String JAXRPCMAP_SCHEMA_LOC_SUN = "http://java.sun.com/xml/ns/j2ee/j2ee_jaxrpc_mapping_1_1.xsd";//$NON-NLS-1$ - - - - public static final int WEBSERVICE_1_0_ID = 10; - public static final int WEBSERVICE_1_1_ID = 11; - public static final String WEBSERVICE_SCHEMA_VERSION = "1.1";//$NON-NLS-1$ - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/WebServiceInit.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/WebServiceInit.java deleted file mode 100644 index f818636ce..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/WebServiceInit.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - - -package org.eclipse.jst.j2ee.webservice.internal; - -import org.eclipse.jst.j2ee.internal.J2EEInit; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapResourceFactory; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl; - - - -/** -* Initializer class to preregister packages, register resource factories, and dtds for the web services models. -*/ -public class WebServiceInit -{ - protected static boolean initialized = false; - - public static void init() - { - - if (initialized) return; - - - // Initialize the Ecore package. - org.eclipse.emf.ecore.impl.EcorePackageImpl.init(); - - J2EEInit.init(); - - // Initialize packages - JaxrpcmapPackageImpl.init(); - - - // Register resource factories for xml descriptors - - - // Not calling JaxrpcmapResourceFactory.register() because it does nothing. Registration must be done for each filename as follows: - // J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(filename, new JaxrpcmapResourceFactory(EMF2DOMRendererFactory.INSTANCE)); - // where filename is a java.lang.String name of the mapping file - - //Register DTDs - JaxrpcmapResourceFactory.registerDtds(); - - - initialized = true; - - - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/util/DescriptionGroupHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/util/DescriptionGroupHelper.java deleted file mode 100644 index f13c5c49c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/util/DescriptionGroupHelper.java +++ /dev/null @@ -1,1577 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.webservice.internal.util; - -import org.eclipse.jst.j2ee.common.CommonFactory; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.Handler; -import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServices; - - -public class DescriptionGroupHelper -{ - - public static String[] getValues(WebServices webServices, DescriptionGroupItem item) - { - return getValues(webServices, item, false); - } - - public static String[] getValues(WebServices webServices, DescriptionGroupItem item, boolean getLang) - { - J2EEVersionResource res = (J2EEVersionResource)webServices.eResource(); - boolean isJ2EE14=false; - if (res.getJ2EEVersionID()==J2EEVersionConstants.J2EE_1_4_ID) - { - isJ2EE14 = true; - } - - switch (item.getValue()) - { - case DescriptionGroupItem.DESCRIPTION: - return getDescriptions(webServices, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.DISPLAY_NAME: - return getDisplayNames(webServices, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.SMALL_ICON: - return getSmallIcons(webServices, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.LARGE_ICON: - return getLargeIcons(webServices, isJ2EE14, getLang); - //break; - default: - return null; - } - } - - - private static String[] getDescriptions(WebServices webServices, boolean isJ2EE14, boolean lang) - { - - String[] values = null; - if (isJ2EE14) - { - Object[] descriptions = webServices.getDescriptions().toArray(); - values = new String[descriptions.length]; - if (lang) - { - for(int i =0; i<descriptions.length; i++) - { - values[i] = ((Description)descriptions[i]).getLang(); - } - } - else - { - for(int i =0; i<descriptions.length; i++) - { - values[i] = ((Description)descriptions[i]).getValue(); - } - } - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - values = new String[1]; - if (lang) - { - //return null since language cannot be specified in J2EE 1.3. - values[0] = null; - } - else - { - values[0] = webServices.getDescription(); - } - } - return values; - } - - private static String[] getDisplayNames(WebServices webServices, boolean isJ2EE14, boolean lang) - { - String[] values = null; - if (isJ2EE14) - { - Object[] displayNames = webServices.getDisplayNames().toArray(); - values = new String[displayNames.length]; - if (lang) - { - for(int i =0; i<displayNames.length; i++) - { - values[i] = ((DisplayName)displayNames[i]).getLang(); - } - } - else - { - for(int i =0; i<displayNames.length; i++) - { - values[i] = ((DisplayName)displayNames[i]).getValue(); - } - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - values = new String[1]; - if (lang) - { - //return null since language cannot be specified in J2EE 1.3. - values[0] = null; - } - else - { - values[0] = webServices.getDisplayName(); - } - - } - return values; - } - - private static String[] getSmallIcons(WebServices webServices, boolean isJ2EE14, boolean lang) - { - String[] values = null; - if (isJ2EE14) - { - Object[] icons = webServices.getIcons().toArray(); - values = new String[icons.length]; - if (lang) - { - for(int i =0; i<icons.length; i++) - { - values[i] = ((IconType)icons[i]).getLang(); - } - } - else - { - for(int i =0; i<icons.length; i++) - { - values[i] = ((IconType)icons[i]).getSmallIcon(); - } - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - values = new String[1]; - if (lang) - { - //return null since language cannot be specified in J2EE 1.3. - values[0] = null; - } - else - { - values[0] = webServices.getSmallIcon(); - } - - } - return values; - } - - private static String[] getLargeIcons(WebServices webServices, boolean isJ2EE14, boolean lang) - { - String[] values = null; - if (isJ2EE14) - { - Object[] icons = webServices.getIcons().toArray(); - values = new String[icons.length]; - if (lang) - { - for(int i =0; i<icons.length; i++) - { - values[i] = ((IconType)icons[i]).getLang(); - } - } - else - { - for(int i =0; i<icons.length; i++) - { - values[i] = ((IconType)icons[i]).getLargeIcon(); - } - } - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - values = new String[1]; - if (lang) - { - //return null since language cannot be specified in J2EE 1.3. - values[0] = null; - } - else - { - values[0] = webServices.getLargeIcon(); - } - - } - return values; - } - - - //WebServicesDescription methods - public static String getValue(WebServiceDescription webServicesDescription, DescriptionGroupItem item) - { - return getValue(webServicesDescription, item, false); - } - - public static String getValue(WebServiceDescription webServicesDescription, DescriptionGroupItem item, boolean getLang) - { - J2EEVersionResource res = (J2EEVersionResource)webServicesDescription.eResource(); - boolean isJ2EE14=false; - if (res.getJ2EEVersionID()==J2EEVersionConstants.J2EE_1_4_ID) - { - isJ2EE14 = true; - } - - switch (item.getValue()) - { - case DescriptionGroupItem.DESCRIPTION: - return getDescription(webServicesDescription, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.DISPLAY_NAME: - return getDisplayName(webServicesDescription, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.SMALL_ICON: - return getSmallIcon(webServicesDescription, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.LARGE_ICON: - return getLargeIcon(webServicesDescription, isJ2EE14, getLang); - //break; - default: - return null; - } - } - - private static String getDescription(WebServiceDescription webServicesDescription, boolean isJ2EE14, boolean lang) - { - String ret = null; - if (isJ2EE14) - { - DescriptionType descType = webServicesDescription.getDescriptionType(); - if (descType!=null) - { - if (lang) - { - ret = descType.getLang(); - } - else - { - ret = descType.getValue(); - } - } - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - - if( !lang ) - { - ret = webServicesDescription.getDescription(); - } - } - return ret; - - } - - private static String getDisplayName(WebServiceDescription webServicesDescription, boolean isJ2EE14, boolean lang) - { - String ret = null; - if (isJ2EE14) - { - DisplayNameType dnType = webServicesDescription.getDisplayNameType(); - if (dnType!=null) - { - if (lang) - { - ret = dnType.getLang(); - } - else - { - ret = dnType.getValue(); - } - } - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if( !lang ) - { - ret = webServicesDescription.getDisplayName(); - } - } - return ret; - } - - private static String getSmallIcon(WebServiceDescription webServicesDescription, boolean isJ2EE14, boolean lang) - { - String ret = null; - if (isJ2EE14) - { - IconType iconType = webServicesDescription.getIconType(); - if (iconType!=null) - { - if (lang) - { - ret = iconType.getLang(); - } - else - { - ret = iconType.getSmallIcon(); - } - } - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if( !lang) - { - ret = webServicesDescription.getSmallIcon(); - } - } - return ret; - } - - private static String getLargeIcon(WebServiceDescription webServicesDescription, boolean isJ2EE14, boolean lang) - { - String ret = null; - if (isJ2EE14) - { - IconType iconType = webServicesDescription.getIconType(); - if (iconType!=null) - { - if (lang) - { - ret = iconType.getLang(); - } - else - { - ret = iconType.getLargeIcon(); - } - } - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if( !lang ) - { - ret = webServicesDescription.getLargeIcon(); - } - } - return ret; - } - - //PortComponent methods - public static String getValue(PortComponent portComponent, DescriptionGroupItem item) - { - return getValue(portComponent, item, false); - } - - public static String getValue(PortComponent portComponent, DescriptionGroupItem item, boolean getLang) - { - J2EEVersionResource res = (J2EEVersionResource)portComponent.eResource(); - boolean isJ2EE14=false; - if (res.getJ2EEVersionID()==J2EEVersionConstants.J2EE_1_4_ID) - { - isJ2EE14 = true; - } - - switch (item.getValue()) - { - case DescriptionGroupItem.DESCRIPTION: - return getDescription(portComponent, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.DISPLAY_NAME: - return getDisplayName(portComponent, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.SMALL_ICON: - return getSmallIcon(portComponent, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.LARGE_ICON: - return getLargeIcon(portComponent, isJ2EE14, getLang); - //break; - default: - return null; - } - } - - private static String getDescription(PortComponent portComponent, boolean isJ2EE14, boolean lang) - { - String ret = null; - if (isJ2EE14) - { - DescriptionType descType = portComponent.getDescriptionType(); - if (descType!=null) - { - if (lang) - { - ret = descType.getLang(); - } - else - { - ret = descType.getValue(); - } - } - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if( !lang ) - { - ret = portComponent.getDescription(); - } - } - return ret; - } - - private static String getDisplayName(PortComponent portComponent, boolean isJ2EE14, boolean lang) - { - String ret = null; - if (isJ2EE14) - { - DisplayNameType dnType = portComponent.getDisplayNameType(); - if (dnType!=null) - { - if (lang) - { - ret = dnType.getLang(); - } - else - { - ret = dnType.getValue(); - } - } - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if( !lang ) - { - ret = portComponent.getDisplayName(); - } - } - return ret; - } - - private static String getSmallIcon(PortComponent portComponent, boolean isJ2EE14, boolean lang) - { - String ret = null; - if (isJ2EE14) - { - IconType iconType = portComponent.getIconType(); - if (iconType!=null) - { - if (lang) - { - ret = iconType.getLang(); - } - else - { - ret = iconType.getSmallIcon(); - } - } - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if( !lang ) - { - ret = portComponent.getSmallIcon(); - } - } - return ret; - } - - private static String getLargeIcon(PortComponent portComponent, boolean isJ2EE14, boolean lang) - { - String ret = null; - if (isJ2EE14) - { - IconType iconType = portComponent.getIconType(); - if (iconType!=null) - { - if (lang) - { - ret = iconType.getLang(); - } - else - { - ret = iconType.getLargeIcon(); - } - } - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if ( !lang ) - { - ret = portComponent.getLargeIcon(); - } - } - return ret; - } - - public static String[] getValues(Handler handler, DescriptionGroupItem item) - { - return getValues(handler, item, false); - } - - public static String[] getValues(Handler handler, DescriptionGroupItem item, boolean getLang) - { - J2EEVersionResource res = (J2EEVersionResource)handler.eResource(); - boolean isJ2EE14=false; - if (res.getJ2EEVersionID()==J2EEVersionConstants.J2EE_1_4_ID) - { - isJ2EE14 = true; - } - - switch (item.getValue()) - { - case DescriptionGroupItem.DESCRIPTION: - return getDescriptions(handler, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.DISPLAY_NAME: - return getDisplayNames(handler, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.SMALL_ICON: - return getSmallIcons(handler, isJ2EE14, getLang); - //break; - case DescriptionGroupItem.LARGE_ICON: - return getLargeIcons(handler, isJ2EE14, getLang); - //break; - default: - return null; - } - } - - private static String[] getDescriptions(Handler handler, boolean isJ2EE14, boolean lang) - { - - String[] values = null; - if (isJ2EE14) - { - Object[] descriptions = handler.getDescriptions().toArray(); - values = new String[descriptions.length]; - if (lang) - { - for(int i =0; i<descriptions.length; i++) - { - values[i] = ((Description)descriptions[i]).getLang(); - } - } - else - { - for(int i =0; i<descriptions.length; i++) - { - values[i] = ((Description)descriptions[i]).getValue(); - } - } - - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - values = new String[1]; - if (lang) - { - //return null since language cannot be specified in J2EE 1.3. - values[0] = null; - } - else - { - values[0] = handler.getDescription(); - } - - } - return values; - } - - private static String[] getDisplayNames(Handler handler, boolean isJ2EE14, boolean lang) - { - String[] values = null; - if (isJ2EE14) - { - Object[] displayNames = handler.getDisplayNames().toArray(); - values = new String[displayNames.length]; - if (lang) - { - for(int i =0; i<displayNames.length; i++) - { - values[i] = ((DisplayName)displayNames[i]).getLang(); - } - } - else - { - for(int i =0; i<displayNames.length; i++) - { - values[i] = ((DisplayName)displayNames[i]).getValue(); - } - } - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - values = new String[1]; - if (lang) - { - //return null since language cannot be specified in J2EE 1.3. - values[0] = null; - } - else - { - values[0] = handler.getDisplayName(); - } - - } - return values; - } - - private static String[] getSmallIcons(Handler handler, boolean isJ2EE14, boolean lang) - { - String[] values = null; - if (isJ2EE14) - { - Object[] icons = handler.getIcons().toArray(); - values = new String[icons.length]; - if (lang) - { - for(int i =0; i<icons.length; i++) - { - values[i] = ((IconType)icons[i]).getLang(); - } - } - else - { - for(int i =0; i<icons.length; i++) - { - values[i] = ((IconType)icons[i]).getSmallIcon(); - } - } - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - values = new String[1]; - if (lang) - { - //return null since language cannot be specified in J2EE 1.3. - values[0] = null; - } - else - { - values[0] = handler.getSmallIcon(); - } - - } - return values; - } - - private static String[] getLargeIcons(Handler handler, boolean isJ2EE14, boolean lang) - { - String[] values = null; - if (isJ2EE14) - { - Object[] icons = handler.getIcons().toArray(); - values = new String[icons.length]; - if (lang) - { - for(int i =0; i<icons.length; i++) - { - values[i] = ((IconType)icons[i]).getLang(); - } - } - else - { - for(int i =0; i<icons.length; i++) - { - values[i] = ((IconType)icons[i]).getLargeIcon(); - } - } - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - values = new String[1]; - if (lang) - { - //return null since language cannot be specified in J2EE 1.3. - values[0] = null; - } - else - { - values[0] = handler.getLargeIcon(); - } - - } - return values; - } - - //Setter for WebServices - public static void setValue(WebServices webServices, DescriptionGroupItem item, String value) - { - setValue(webServices, item, value, false); - } - - public static void setValue(WebServices webServices, DescriptionGroupItem item, String value, boolean setLang) - { - J2EEVersionResource res = (J2EEVersionResource)webServices.eResource(); - boolean isJ2EE14=false; - if (res.getJ2EEVersionID()==J2EEVersionConstants.J2EE_1_4_ID) - { - isJ2EE14 = true; - } - - switch (item.getValue()) - { - case DescriptionGroupItem.DESCRIPTION: - setDescription(webServices, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.DISPLAY_NAME: - setDisplayName(webServices, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.SMALL_ICON: - setSmallIcon(webServices, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.LARGE_ICON: - setLargeIcon(webServices, isJ2EE14, value, setLang); - //break; - default://do nothing ; - } - } - - private static void setDescription(WebServices webServices, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the Description object - Object[] descriptions = webServices.getDescriptions().toArray(); - Description firstDescription = null; - if (descriptions.length < 1) - { - //create a Description - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - Description newDescription = factory.createDescription(); - if (setLang) - { - newDescription.setLang(value); - } - else - { - newDescription.setValue(value); - } - webServices.getDescriptions().add(newDescription); - } - else - { - firstDescription = (Description)descriptions[0]; - if (setLang) - { - firstDescription.setLang(value); - } - else - { - firstDescription.setValue(value); - } - - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - webServices.setDescription(value); - } - } - - private static void setDisplayName(WebServices webServices, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the DisplayName object - Object[] displayNames = webServices.getDisplayNames().toArray(); - DisplayName firstDisplayName = null; - if (displayNames.length < 1) - { - //create a DisplayName - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - DisplayName newDisplayName = factory.createDisplayName(); - if (setLang) - { - newDisplayName.setLang(value); - } - else - { - newDisplayName.setValue(value); - } - - webServices.getDisplayNames().add(newDisplayName); - } - else - { - firstDisplayName = (DisplayName)displayNames[0]; - if (setLang) - { - firstDisplayName.setLang(value); - } - else - { - firstDisplayName.setValue(value); - } - - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - webServices.setDisplayName(value); - } - - } - - private static void setSmallIcon(WebServices webServices, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the Icon object - Object[] icons = webServices.getIcons().toArray(); - IconType firstIcon = null; - if (icons.length < 1) - { - //create an Icon - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - IconType newIcon = factory.createIconType(); - if (setLang) - { - newIcon.setLang(value); - } - else - { - newIcon.setSmallIcon(value); - } - webServices.getIcons().add(newIcon); - } - else - { - firstIcon = (IconType)icons[0]; - if (setLang) - { - firstIcon.setLang(value); - } - else - { - firstIcon.setSmallIcon(value); - } - - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - webServices.setSmallIcon(value); - } - - } - - private static void setLargeIcon(WebServices webServices, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the Icon object - Object[] icons = webServices.getIcons().toArray(); - IconType firstIcon = null; - if (icons.length < 1) - { - //create an Icon - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - IconType newIcon = factory.createIconType(); - if (setLang) - { - newIcon.setLang(value); - } - else - { - newIcon.setLargeIcon(value); - } - webServices.getIcons().add(newIcon); - } - else - { - firstIcon = (IconType)icons[0]; - if (setLang) - { - firstIcon.setLang(value); - } - else - { - firstIcon.setLargeIcon(value); - } - - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - webServices.setLargeIcon(value); - } - - } - - -//Setters for WebServiceDescriptions - public static void setValue(WebServiceDescription webServiceDescription, DescriptionGroupItem item, String value) - { - setValue(webServiceDescription, item, value, false); - } - - public static void setValue(WebServiceDescription webServiceDescription, DescriptionGroupItem item, String value, boolean setLang) - { - J2EEVersionResource res = (J2EEVersionResource)webServiceDescription.eResource(); - boolean isJ2EE14=false; - if (res.getJ2EEVersionID()==J2EEVersionConstants.J2EE_1_4_ID) - { - isJ2EE14 = true; - } - - switch (item.getValue()) - { - case DescriptionGroupItem.DESCRIPTION: - setDescription(webServiceDescription, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.DISPLAY_NAME: - setDisplayName(webServiceDescription, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.SMALL_ICON: - setSmallIcon(webServiceDescription, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.LARGE_ICON: - setLargeIcon(webServiceDescription, isJ2EE14, value, setLang); - //break; - default: - } - } - - private static void setDescription(WebServiceDescription webServiceDescription, boolean isJ2EE14, String value, boolean setLang) - { - - if (isJ2EE14) - { - //Get or create the Description object - - DescriptionType description = webServiceDescription.getDescriptionType(); - if (description == null) - { - //create a DescriptionType - WscommonFactory factory = WscommonPackage.eINSTANCE.getWscommonFactory(); - DescriptionType descriptionNew = factory.createDescriptionType(); - - if (setLang) - { - descriptionNew.setLang(value); - } - else - { - - descriptionNew.setValue(value); - } - - webServiceDescription.setDescriptionType(descriptionNew); - } - else - { - if (setLang) - { - description.setLang(value); - } - else - { - - description.setValue(value); - } - - } - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - webServiceDescription.setDescription(value); - } - } - - private static void setDisplayName(WebServiceDescription webServiceDescription, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the DisplayName object - - DisplayNameType displayName = webServiceDescription.getDisplayNameType(); - if (displayName == null) - { - //create a DisplayNameType - WscommonFactory factory = WscommonPackage.eINSTANCE.getWscommonFactory(); - DisplayNameType displayNameNew = factory.createDisplayNameType(); - if (setLang) - { - displayNameNew.setLang(value); - } - else - { - displayNameNew.setValue(value); - } - webServiceDescription.setDisplayNameType(displayNameNew); - } - else - { - if (setLang) - { - displayName.setLang(value); - } - else - { - displayName.setValue(value); - } - - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - webServiceDescription.setDisplayName(value); - } - - } - - private static void setSmallIcon(WebServiceDescription webServiceDescription, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the Icon object - IconType icon = webServiceDescription.getIconType(); - if (icon == null) - { - //create an Icon - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - IconType iconNew = factory.createIconType(); - if (setLang) - { - iconNew.setLang(value); - } - else - { - iconNew.setSmallIcon(value); - } - - webServiceDescription.setIconType(iconNew); - } - else - { - if (setLang) - { - icon.setLang(value); - } - else - { - icon.setSmallIcon(value); - } - } - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - webServiceDescription.setSmallIcon(value); - } - - } - - private static void setLargeIcon(WebServiceDescription webServiceDescription, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the Icon object - IconType icon = webServiceDescription.getIconType(); - if (icon == null) - { - //create an Icon - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - IconType iconNew = factory.createIconType(); - if (setLang) - { - iconNew.setLang(value); - } - else - { - iconNew.setLargeIcon(value); - } - - webServiceDescription.setIconType(iconNew); - } - else - { - if (setLang) - { - icon.setLang(value); - } - else - { - icon.setLargeIcon(value); - } - } - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - webServiceDescription.setLargeIcon(value); - } - - } - - -//Setters for PortComponents - public static void setValue(PortComponent portComponent, DescriptionGroupItem item, String value) - { - - setValue(portComponent, item, value, false); - } - - public static void setValue(PortComponent portComponent, DescriptionGroupItem item, String value, boolean setLang) - { - J2EEVersionResource res = (J2EEVersionResource)portComponent.eResource(); - boolean isJ2EE14=false; - if (res.getJ2EEVersionID()==J2EEVersionConstants.J2EE_1_4_ID) - { - isJ2EE14 = true; - } - - switch (item.getValue()) - { - case DescriptionGroupItem.DESCRIPTION: - setDescription(portComponent, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.DISPLAY_NAME: - setDisplayName(portComponent, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.SMALL_ICON: - setSmallIcon(portComponent, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.LARGE_ICON: - setLargeIcon(portComponent, isJ2EE14, value, setLang); - //break; - default: - } - } - - private static void setDescription(PortComponent portComponent, boolean isJ2EE14, String value, boolean setLang) - { - - if (isJ2EE14) - { - //Get or create the Description object - - DescriptionType description = portComponent.getDescriptionType(); - if (description == null) - { - //create a DescriptionType - WscommonFactory factory = WscommonPackage.eINSTANCE.getWscommonFactory(); - DescriptionType descriptionNew = factory.createDescriptionType(); - if (setLang) - { - descriptionNew.setLang(value); - } - else - { - descriptionNew.setValue(value); - } - - portComponent.setDescriptionType(descriptionNew); - } - else - { - if (setLang) - { - description.setLang(value); - } - else - { - description.setValue(value); - } - - } - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - portComponent.setDescription(value); - } - } - - private static void setDisplayName(PortComponent portComponent, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the DisplayName object - - DisplayNameType displayName = portComponent.getDisplayNameType(); - if (displayName == null) - { - //create a DisplayNameType - WscommonFactory factory = WscommonPackage.eINSTANCE.getWscommonFactory(); - DisplayNameType displayNameNew = factory.createDisplayNameType(); - if (setLang) - { - displayNameNew.setLang(value); - } - else - { - displayNameNew.setValue(value); - } - portComponent.setDisplayNameType(displayNameNew); - } - else - { - if (setLang) - { - displayName.setLang(value); - } - else - { - displayName.setValue(value); - } - - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - portComponent.setDisplayName(value); - } - - } - - private static void setSmallIcon(PortComponent portComponent, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the Icon object - IconType icon = portComponent.getIconType(); - if (icon == null) - { - //create an Icon - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - IconType iconNew = factory.createIconType(); - if (setLang) - { - iconNew.setLang(value); - } - else - { - iconNew.setSmallIcon(value); - } - - portComponent.setIconType(iconNew); - } - else - { - if (setLang) - { - icon.setLang(value); - } - else - { - icon.setSmallIcon(value); - } - } - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - portComponent.setSmallIcon(value); - } - - } - - private static void setLargeIcon(PortComponent portComponent, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the Icon object - IconType icon = portComponent.getIconType(); - if (icon == null) - { - //create an Icon - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - IconType iconNew = factory.createIconType(); - if (setLang) - { - iconNew.setLang(value); - } - else - { - iconNew.setLargeIcon(value); - } - - portComponent.setIconType(iconNew); - } - else - { - if (setLang) - { - icon.setLang(value); - } - else - { - icon.setLargeIcon(value); - } - } - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - portComponent.setLargeIcon(value); - } - - } - - //Setter for Handlers - public static void setValue(Handler handler, DescriptionGroupItem item, String value) - { - setValue(handler, item, value, false); - } - - public static void setValue(Handler handler, DescriptionGroupItem item, String value, boolean setLang) - { - J2EEVersionResource res = (J2EEVersionResource)handler.eResource(); - boolean isJ2EE14=false; - if (res.getJ2EEVersionID()==J2EEVersionConstants.J2EE_1_4_ID) - { - isJ2EE14 = true; - } - - switch (item.getValue()) - { - case DescriptionGroupItem.DESCRIPTION: - setDescription(handler, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.DISPLAY_NAME: - setDisplayName(handler, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.SMALL_ICON: - setSmallIcon(handler, isJ2EE14, value, setLang); - //break; - case DescriptionGroupItem.LARGE_ICON: - setLargeIcon(handler, isJ2EE14, value, setLang); - //break; - default://do nothing ; - } - } - - private static void setDescription(Handler handler, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the Description object - Object[] descriptions = handler.getDescriptions().toArray(); - Description firstDescription = null; - if (descriptions.length < 1) - { - //create a Description - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - Description newDescription = factory.createDescription(); - if (setLang) - { - newDescription.setLang(value); - } - else - { - newDescription.setValue(value); - } - handler.getDescriptions().add(newDescription); - } - else - { - firstDescription = (Description)descriptions[0]; - if (setLang) - { - firstDescription.setLang(value); - } - else - { - firstDescription.setValue(value); - } - - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - handler.setDescription(value); - } - } - - private static void setDisplayName(Handler handler, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the DisplayName object - Object[] displayNames = handler.getDisplayNames().toArray(); - DisplayName firstDisplayName = null; - if (displayNames.length < 1) - { - //create a DisplayName - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - DisplayName newDisplayName = factory.createDisplayName(); - if (setLang) - { - newDisplayName.setLang(value); - } - else - { - newDisplayName.setValue(value); - } - - handler.getDisplayNames().add(newDisplayName); - } - else - { - firstDisplayName = (DisplayName)displayNames[0]; - if (setLang) - { - firstDisplayName.setLang(value); - } - else - { - firstDisplayName.setValue(value); - } - - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - handler.setDisplayName(value); - } - - } - - private static void setSmallIcon(Handler handler, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the Icon object - Object[] icons = handler.getIcons().toArray(); - IconType firstIcon = null; - if (icons.length < 1) - { - //create an Icon - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - IconType newIcon = factory.createIconType(); - if (setLang) - { - newIcon.setLang(value); - } - else - { - newIcon.setSmallIcon(value); - } - handler.getIcons().add(newIcon); - } - else - { - firstIcon = (IconType)icons[0]; - if (setLang) - { - firstIcon.setLang(value); - } - else - { - firstIcon.setSmallIcon(value); - } - - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - handler.setSmallIcon(value); - } - - } - - private static void setLargeIcon(Handler handler, boolean isJ2EE14, String value, boolean setLang) - { - if (isJ2EE14) - { - //Get or create the Icon object - Object[] icons = handler.getIcons().toArray(); - IconType firstIcon = null; - if (icons.length < 1) - { - //create an Icon - CommonFactory factory = CommonPackage.eINSTANCE.getCommonFactory(); - IconType newIcon = factory.createIconType(); - if (setLang) - { - newIcon.setLang(value); - } - else - { - newIcon.setLargeIcon(value); - } - handler.getIcons().add(newIcon); - } - else - { - firstIcon = (IconType)icons[0]; - if (setLang) - { - firstIcon.setLang(value); - } - else - { - firstIcon.setLargeIcon(value); - } - - } - - - } - else //must be J2EE 1.3 (JSR-109 1.0) - { - if (!setLang) - handler.setLargeIcon(value); - } - - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/util/DescriptionGroupItem.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/util/DescriptionGroupItem.java deleted file mode 100644 index 1c3591577..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/util/DescriptionGroupItem.java +++ /dev/null @@ -1,94 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.webservice.internal.util; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - -public final class DescriptionGroupItem extends AbstractEnumerator -{ - public static final int DESCRIPTION = 0; - - public static final int DISPLAY_NAME = 1; - - public static final int SMALL_ICON = 2; - - public static final int LARGE_ICON = 3; - - public static final DescriptionGroupItem DESCRIPTION_LITERAL = new DescriptionGroupItem(DESCRIPTION, "description");//$NON-NLS-1$ - public static final DescriptionGroupItem DISPLAY_NAME_LITERAL = new DescriptionGroupItem(DISPLAY_NAME, "display-name");//$NON-NLS-1$ - public static final DescriptionGroupItem SMALL_ICON_LITERAL = new DescriptionGroupItem(SMALL_ICON, "small-icon");//$NON-NLS-1$ - public static final DescriptionGroupItem LARGE_ICON_LITERAL = new DescriptionGroupItem(LARGE_ICON, "large-icon");//$NON-NLS-1$ - - private static final DescriptionGroupItem[] VALUES_ARRAY = - new DescriptionGroupItem[] - { - DESCRIPTION_LITERAL, - DISPLAY_NAME_LITERAL, - SMALL_ICON_LITERAL, - LARGE_ICON_LITERAL - }; - - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Dependency Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param name passes literal name - * @return literal instance - * <!-- end-user-doc --> - * - * @generated - */ - public static DescriptionGroupItem get(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - DescriptionGroupItem result = VALUES_ARRAY[i]; - if (result.toString().equals(name)) - { - return result; - } - } - return null; - } - /** - * Returns the '<em><b>Dependency Type</b></em>' literal with the specified value. - * <!-- begin-user-doc --> - * @param value passes literal value - * @return literal instance - * <!-- end-user-doc --> - * - * @generated - */ - public static DescriptionGroupItem get(int value) - { - switch (value) - { - case DESCRIPTION: return DESCRIPTION_LITERAL; - case DISPLAY_NAME: return DISPLAY_NAME_LITERAL; - case SMALL_ICON: return SMALL_ICON_LITERAL; - case LARGE_ICON: return LARGE_ICON_LITERAL; - } - return null; - } - - private DescriptionGroupItem(int value, String name) - { - super(value, name); - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/util/QNameHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/util/QNameHelper.java deleted file mode 100644 index aee7c6dfb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/util/QNameHelper.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.webservice.internal.util; - -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; - - - -/** -* JSR-109 v1.1 changed the way qualified names are represented. As a result the EMF model changed as well. -* The new model is capable of reading/writing both v1.0 and v1.1 descriptors but the QName APIs work differently -* depending on the version of the descriptor. This class provides static methods to set values on QName's in order -* to hide and isolate the version checking logic. -*/ -public class QNameHelper -{ - - private static String DEFAULT_PREFIX="pfx";//$NON-NLS-1$ - - /* - * Sets the namespaceURI and the localpart on the supplied QName to the supplied values respectively. - * @param qnameEObject The properties on this QName will be set. If the QName does not belong to a Resource, - * the version is assumed to be J2EE 1.4. - * @param namespaceURI The namespaceURI - * @param localPart The localPart - * @return boolean Returns true if values were set successfully. False otherwise. - */ - public static void setQNameNamespaceURI(QName qnameEObject, String namespaceURI) - { - String localpart = qnameEObject.getLocalPart(); - setQNameValue(qnameEObject, namespaceURI, localpart); - } - - /* - * Sets the namespaceURI and the localpart on the supplied QName to the supplied values respectively. - * @param qnameEObject The properties on this QName will be set. If the QName does not belong to a Resource, - * the version is assumed to be J2EE 1.4. - * @param namespaceURI The namespaceURI - * @param localPart The localPart - * @return boolean Returns true if values were set successfully. False otherwise. - */ - public static void setQNameValue(QName qnameEObject, String namespaceURI, String localPart) - { - setQNameValue(qnameEObject, namespaceURI, localPart, ""); //$NON-NLS-1$ - } - - /** - * Sets the namespaceURI, localpart, and prefix on the supplied QName to the supplied values respectively. - * @param qnameEObject The properties on this QName will be set. If the QName does not belong to a Resource, - * the version is assumed to be J2EE 1.4. - * @param namespaceURI The namespaceURI - * @param localPart The localPart - * @param prefix The prefix. Used in JSR-109 v1.1 only. This is the prefix that will be used for the namespace declaration - If the supplied prefix is null or of length 0, the existing prefix is used. If no prefix exists, and this - * is a JSR-109 v1.1 descriptor the default prefix defined in DEFAULT_PREFIX is used. - * @return boolean Returns true if values were set successfully. False otherwise. - */ - public static void setQNameValue(QName qnameEObject, String namespaceURI, String localPart, String prefix) - { - int versionID; - - //Get the versionID from the QName's Resource if available - J2EEVersionResource res = (J2EEVersionResource)qnameEObject.eResource(); - if (res == null) - { - //use a J2EE 1.4 version ID as the default - versionID = J2EEVersionConstants.J2EE_1_4_ID; - } - else - { - versionID = res.getJ2EEVersionID(); - } - - setQNameValue(qnameEObject, namespaceURI, localPart, prefix, versionID); - - - } - - /** - * Sets the namespaceURI, localpart, and prefix on the supplied QName to the supplied values respectively. - * @param qnameEObject The properties on this QName will be set. - * @param namespaceURI The namespaceURI - * @param localPart The localPart - * @param prefix The prefix. Used in JSR-109 v1.1 only. This is the prefix that will be used for the namespace declaration - If the supplied prefix is null or of length 0, the existing prefix is used. If no prefix exists, and this - * is a JSR-109 v1.1 descriptor the default prefix defined DEFAULT_PREFIX is used. - *@param versionID The J2EE version. Should be set to one of the version IDs defined in J2EEVersionConstants. - * @return boolean Returns true if values were set successfully. False otherwise. - */ - public static void setQNameValue(QName qnameEObject, String namespaceURI, String localPart, String prefix, int versionID) - { - - if (versionID==J2EEVersionConstants.J2EE_1_3_ID) - { - //ignore the prefix and set things the old way - qnameEObject.setNamespaceURI(namespaceURI); - qnameEObject.setLocalPart(localPart); - } - else - { - //resource is J2EE 1.4 - if (prefix==null || prefix.length()==0) - { - //use the existing prefix - prefix = qnameEObject.getInternalPrefixOrNsURI(); - if (prefix==null || prefix.length()==0) - { - //use the default prefix - prefix = new String(DEFAULT_PREFIX); - } - } - qnameEObject.setValues(prefix, namespaceURI, localPart); - - } - - } - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/wsdd/WsddResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/wsdd/WsddResourceFactory.java deleted file mode 100644 index 8acc3f49c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/internal/wsdd/WsddResourceFactory.java +++ /dev/null @@ -1,81 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.internal.wsdd; - - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddResourceImpl; -import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.RendererFactory; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory; - - -public class WsddResourceFactory extends TranslatorResourceFactory -{ - - /** - * WsddResourceFactory constructor comment. - */ - public WsddResourceFactory() - { - super(RendererFactory.getDefaultRendererFactory()); - } - - /** - * WsddResourceFactory constructor comment. - */ - public WsddResourceFactory(RendererFactory aRendererFactory) - { - super(aRendererFactory); - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceFactory#createResource(org.eclipse.emf.common.util.URI, com.ibm.etools.emf2xml.Renderer) - */ - protected TranslatorResource createResource(URI uri, Renderer aRenderer) { - return new WsddResourceImpl(uri, aRenderer); - } - - /** - * Register myself with the Resource.Factory.Registry - */ - public static void registerWith(RendererFactory aRendererFactory) { - J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(WebServiceConstants.WEBSERVICE_DD_SHORT_NAME, new WsddResourceFactory(aRendererFactory)); - J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(WebServiceConstants.WEBSERVICE_TEMP_DD_SHORT_NAME, new WsddResourceFactory(aRendererFactory)); - } - public static void register(FileNameResourceFactoryRegistry aRegistry) { - aRegistry.registerLastFileSegment(WebServiceConstants.WEBSERVICE_DD_SHORT_NAME, new WsddResourceFactory(RendererFactory.getDefaultRendererFactory())); - aRegistry.registerLastFileSegment(WebServiceConstants.WEBSERVICE_TEMP_DD_SHORT_NAME, new WsddResourceFactory(RendererFactory.getDefaultRendererFactory())); - } - - /** - * register using the default renderer factory. - * @see #registerWith(RendererFactory) - */ - public static void register() { - registerWith(RendererFactory.getDefaultRendererFactory()); - } - - /** - * Method registerDtds. - */ - public static void registerDtds() - { - //http://www.ibm.com/webservices/dtd/j2ee_web_services_1_0.dtd - J2EEXmlDtDEntityResolver.registerDtD(WebServiceConstants.WEBSERVICE_SYSTEMID, "j2ee_web_services_1_0.dtd");//$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(WebServiceConstants.WEBSERVICE_SCHEMA_LOC, "j2ee_web_services_1_1.xsd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(WebServiceConstants.WEBSERVICE_SCHEMA_LOC_SUN, "j2ee_web_services_1_1.xsd"); //$NON-NLS-1$ - } -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/ComponentScopedRefs.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/ComponentScopedRefs.java deleted file mode 100644 index b70474bfb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/ComponentScopedRefs.java +++ /dev/null @@ -1,80 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Component Scoped Refs</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 deprecated - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs#getComponentName <em>Component Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs#getServiceRefs <em>Service Refs</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getComponentScopedRefs() - * @model - * @generated - * @since 1.0 */ -public interface ComponentScopedRefs extends EObject{ - /** - * Returns the value of the '<em><b>Component Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Component Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Component Name</em>' attribute. - * @see #setComponentName(String) - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getComponentScopedRefs_ComponentName() - * @model - * @generated - */ - String getComponentName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs#getComponentName <em>Component Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Component Name</em>' attribute. - * @see #getComponentName() - * @generated - */ - void setComponentName(String value); - - /** - * Returns the value of the '<em><b>Service Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Service Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getComponentScopedRefs_ServiceRefs() - * @model type="org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef" containment="true" required="true" - * @generated - */ - EList getServiceRefs(); - -} // ComponentScopedRefs diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Handler.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Handler.java deleted file mode 100644 index 7dc7152ce..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Handler.java +++ /dev/null @@ -1,177 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Handler</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * Declares the handler for a port-component. Handlers can access the - * init-param name/value pairs using the HandlerInfo interface. If - * port-name is not specified, the handler is assumed to be associated - * with all ports of the service. - * - * Used in: service-ref - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getHandlerName <em>Handler Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getSoapRoles <em>Soap Roles</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getPortNames <em>Port Names</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getHandlerClass <em>Handler Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getInitParams <em>Init Params</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getSoapHeaders <em>Soap Headers</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getHandler() - * @model - * @generated - * @since 1.0 */ -public interface Handler extends CompatibilityDescriptionGroup{ - /** - * Returns the value of the '<em><b>Handler Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Handler Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * Defines the name of the handler. The name must be unique within the module. - * <!-- end-model-doc --> - * @return the value of the '<em>Handler Name</em>' attribute. - * @see #setHandlerName(String) - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getHandler_HandlerName() - * @model - * @generated - */ - String getHandlerName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getHandlerName <em>Handler Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Handler Name</em>' attribute. - * @see #getHandlerName() - * @generated - */ - void setHandlerName(String value); - - /** - * Returns the value of the '<em><b>Soap Headers</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.QName}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Soap Headers</em>' attribute list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Soap Headers</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getHandler_SoapHeaders() - * @model type="org.eclipse.jst.j2ee.common.QName" containment="true" - * @generated - */ - EList getSoapHeaders(); - - /** - * Returns the value of the '<em><b>Soap Roles</b></em>' attribute list. - * The list contents are of type {@link java.lang.String}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Soap Roles</em>' attribute list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The soap-role element contains a SOAP actor definition that the Handler will play as a role. - * <!-- end-model-doc --> - * @return the value of the '<em>Soap Roles</em>' attribute list. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getHandler_SoapRoles() - * @model type="java.lang.String" - * @generated - */ - EList getSoapRoles(); - - /** - * Returns the value of the '<em><b>Port Names</b></em>' attribute list. - * The list contents are of type {@link java.lang.String}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Port Names</em>' attribute list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The port-name element defines the WSDL port-name that a handler should be associated with. - * <!-- end-model-doc --> - * @return the value of the '<em>Port Names</em>' attribute list. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getHandler_PortNames() - * @model type="java.lang.String" - * @generated - */ - EList getPortNames(); - - /** - * Returns the value of the '<em><b>Handler Class</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Handler Class</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * Defines a fully qualified class name for the handler implementation. - * <!-- end-model-doc --> - * @return the value of the '<em>Handler Class</em>' reference. - * @see #setHandlerClass(JavaClass) - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getHandler_HandlerClass() - * @model required="true" - * @generated - */ - JavaClass getHandlerClass(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getHandlerClass <em>Handler Class</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Handler Class</em>' reference. - * @see #getHandlerClass() - * @generated - */ - void setHandlerClass(JavaClass value); - - /** - * Returns the value of the '<em><b>Init Params</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.common.ParamValue}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Init Params</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Init Params</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getHandler_InitParams() - * @model type="org.eclipse.jst.j2ee.common.ParamValue" containment="true" - * @generated - */ - EList getInitParams(); - -} // Handler diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/PortComponentRef.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/PortComponentRef.java deleted file mode 100644 index a52b73392..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/PortComponentRef.java +++ /dev/null @@ -1,109 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jem.java.JavaClass; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Port Component Ref</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The port-component-ref element declares a client dependency - * on the container for resolving a Service Endpoint Interface - * to a WSDL port. It optionally associates the Service Endpoint - * Interface with a particular port-component. This is only used - * by the container for a Service.getPort(Class) method call. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef#getPortComponentLink <em>Port Component Link</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef#getServiceEndpointInterface <em>Service Endpoint Interface</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getPortComponentRef() - * @model - * @generated - * @since 1.0 */ -public interface PortComponentRef extends EObject{ - /** - * Returns the value of the '<em><b>Port Component Link</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Port Component Link</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The port-component-link element links a port-component-ref to a - * specific port-component required to be made available by a service - * reference. - * - * The value of a port-component-link must be the port-component-name - * of a port-component in the same module or another module in the same - * application unit. The syntax for specification follows the syntax - * defined for ejb-link in the EJB 2.0 specification. - * <!-- end-model-doc --> - * @return the value of the '<em>Port Component Link</em>' attribute. - * @see #setPortComponentLink(String) - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getPortComponentRef_PortComponentLink() - * @model - * @generated - */ - String getPortComponentLink(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef#getPortComponentLink <em>Port Component Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Port Component Link</em>' attribute. - * @see #getPortComponentLink() - * @generated - */ - void setPortComponentLink(String value); - - /** - * Returns the value of the '<em><b>Service Endpoint Interface</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Endpoint Interface</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The service-endpoint-interface element defines a fully qualified - * Java class that represents the Service Endpoint Interface of a - * WSDL port. - * <!-- end-model-doc --> - * @return the value of the '<em>Service Endpoint Interface</em>' reference. - * @see #setServiceEndpointInterface(JavaClass) - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getPortComponentRef_ServiceEndpointInterface() - * @model required="true" - * @generated - */ - JavaClass getServiceEndpointInterface(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef#getServiceEndpointInterface <em>Service Endpoint Interface</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Service Endpoint Interface</em>' reference. - * @see #getServiceEndpointInterface() - * @generated - */ - void setServiceEndpointInterface(JavaClass value); - -} // PortComponentRef diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/ServiceRef.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/ServiceRef.java deleted file mode 100644 index 450d93e21..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/ServiceRef.java +++ /dev/null @@ -1,249 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.QName; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Service Ref</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The service-ref element declares a reference to a Web - * service. It contains optional description, display name and - * icons, a declaration of the required Service interface, - * an optional WSDL document location, an optional set - * of JAX-RPC mappings, an optional QName for the service element, - * an optional set of Service Endpoint Interfaces to be resolved - * by the container to a WSDL port, and an optional set of handlers. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceInterface <em>Service Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceRefName <em>Service Ref Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getWsdlFile <em>Wsdl File</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getPortComponentRefs <em>Port Component Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getHandlers <em>Handlers</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceQname <em>Service Qname</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getServiceRef() - * @model - * @generated - * @since 1.0 */ -public interface ServiceRef extends CompatibilityDescriptionGroup{ - /** - * Returns the value of the '<em><b>Service Ref Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Ref Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The service-ref-name element declares logical name that the - * components in the module use to look up the Web service. It - * is recommended that all service reference names start with - * "service/". - * <!-- end-model-doc --> - * @return the value of the '<em>Service Ref Name</em>' attribute. - * @see #setServiceRefName(String) - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getServiceRef_ServiceRefName() - * @model - * @generated - */ - String getServiceRefName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceRefName <em>Service Ref Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Service Ref Name</em>' attribute. - * @see #getServiceRefName() - * @generated - */ - void setServiceRefName(String value); - - /** - * Returns the value of the '<em><b>Wsdl File</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl File</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The wsdl-file element contains the URI location of a WSDL file. The - * location is relative to the root of the module. - * <!-- end-model-doc --> - * @return the value of the '<em>Wsdl File</em>' attribute. - * @see #setWsdlFile(String) - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getServiceRef_WsdlFile() - * @model - * @generated - */ - String getWsdlFile(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getWsdlFile <em>Wsdl File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl File</em>' attribute. - * @see #getWsdlFile() - * @generated - */ - void setWsdlFile(String value); - - /** - * Returns the value of the '<em><b>Jaxrpc Mapping File</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Jaxrpc Mapping File</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The jaxrpc-mapping-file element contains the name of a file that - * describes the JAX-RPC mapping between the Java interaces used by - * the application and the WSDL description in the wsdl-file. The - * file name is a relative path within the module file. - * <!-- end-model-doc --> - * @return the value of the '<em>Jaxrpc Mapping File</em>' attribute. - * @see #setJaxrpcMappingFile(String) - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getServiceRef_JaxrpcMappingFile() - * @model - * @generated - */ - String getJaxrpcMappingFile(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Jaxrpc Mapping File</em>' attribute. - * @see #getJaxrpcMappingFile() - * @generated - */ - void setJaxrpcMappingFile(String value); - - /** - * Returns the value of the '<em><b>Service Interface</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Interface</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The service-interface element declares the fully qualified class - * name of the JAX-RPC Service interface the client depends on. - * In most cases the value will be javax.xml.rpc.Service. A JAX-RPC - * generated Service Interface class may also be specified. - * <!-- end-model-doc --> - * @return the value of the '<em>Service Interface</em>' reference. - * @see #setServiceInterface(JavaClass) - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getServiceRef_ServiceInterface() - * @model required="true" - * @generated - */ - JavaClass getServiceInterface(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceInterface <em>Service Interface</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Service Interface</em>' reference. - * @see #getServiceInterface() - * @generated - */ - void setServiceInterface(JavaClass value); - - /** - * Returns the value of the '<em><b>Port Component Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Port Component Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The port-component-ref element declares a client dependency - * on the container for resolving a Service Endpoint Interface - * to a WSDL port. It optionally associates the Service Endpoint - * Interface with a particular port-component. This is only used - * by the container for a Service.getPort(Class) method call. - * <!-- end-model-doc --> - * @return the value of the '<em>Port Component Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getServiceRef_PortComponentRefs() - * @model type="org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef" containment="true" - * @generated - */ - EList getPortComponentRefs(); - - /** - * Returns the value of the '<em><b>Handlers</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wsclient.Handler}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Handlers</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * Declares the handler for a port-component. Handlers can access the - * init-param name/value pairs using the HandlerInfo interface. If - * port-name is not specified, the handler is assumed to be associated - * with all ports of the service. - * <!-- end-model-doc --> - * @return the value of the '<em>Handlers</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getServiceRef_Handlers() - * @model type="org.eclipse.jst.j2ee.webservice.wsclient.Handler" containment="true" - * @generated - */ - EList getHandlers(); - - /** - * Returns the value of the '<em><b>Service Qname</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Qname</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Service Qname</em>' containment reference. - * @see #setServiceQname(QName) - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getServiceRef_ServiceQname() - * @model containment="true" required="true" - * @generated - */ - QName getServiceQname(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceQname <em>Service Qname</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Service Qname</em>' containment reference. - * @see #getServiceQname() - * @generated - */ - void setServiceQname(QName value); - -} // ServiceRef diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/WebServicesClient.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/WebServicesClient.java deleted file mode 100644 index a919e2028..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/WebServicesClient.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Web Services Client</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * @version J2EE1.4 deprecated - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient#getComponentScopedRefs <em>Component Scoped Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient#getServiceRefs <em>Service Refs</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getWebServicesClient() - * @model - * @generated - * @since 1.0 */ -public interface WebServicesClient extends EObject{ - /** - * Returns the value of the '<em><b>Component Scoped Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Component Scoped Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Component Scoped Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getWebServicesClient_ComponentScopedRefs() - * @model type="org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs" containment="true" - * @generated - */ - EList getComponentScopedRefs(); - - /** - * Returns the value of the '<em><b>Service Refs</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Refs</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Service Refs</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#getWebServicesClient_ServiceRefs() - * @model type="org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef" containment="true" - * @generated - */ - EList getServiceRefs(); - -} // WebServicesClient diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/WebServicesResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/WebServicesResource.java deleted file mode 100644 index f9434275f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/WebServicesResource.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Aug 6, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.webservice.wsclient; - -import org.eclipse.jst.j2ee.internal.common.XMLResource; - -/** - *@since 1.0 - */ -public interface WebServicesResource extends XMLResource{ - - /** - * Returns reference to the model object WebServicesClient - * @return reference to the model object WebServicesClient - */ - public WebServicesClient getWebServicesClient(); -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Webservice_clientFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Webservice_clientFactory.java deleted file mode 100644 index e2c8f8c1f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Webservice_clientFactory.java +++ /dev/null @@ -1,88 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient; - -import org.eclipse.emf.ecore.EFactory; - -/** - * <!-- begin-user-doc --> - * The <b>Factory</b> for the model. - * It provides a create method for each non-abstract class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage - * @generated - * @since 1.0 */ -public interface Webservice_clientFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - Webservice_clientFactory eINSTANCE = new org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientFactoryImpl(); - - /** - * Returns a new object of class '<em>Service Ref</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Service Ref</em>'. - * @generated - */ - ServiceRef createServiceRef(); - - /** - * Returns a new object of class '<em>Port Component Ref</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Port Component Ref</em>'. - * @generated - */ - PortComponentRef createPortComponentRef(); - - /** - * Returns a new object of class '<em>Handler</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Handler</em>'. - * @generated - */ - Handler createHandler(); - - /** - * Returns a new object of class '<em>Web Services Client</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Web Services Client</em>'. - * @generated - */ - WebServicesClient createWebServicesClient(); - - /** - * Returns a new object of class '<em>Component Scoped Refs</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Component Scoped Refs</em>'. - * @generated - */ - ComponentScopedRefs createComponentScopedRefs(); - - /** - * Returns the package supported by this factory. - * <!-- begin-user-doc --> - * This method is NOT api, and may change in future releases. - * EMF package classes should be access via their "eINSTANCE" static fields - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - Webservice_clientPackage getWebservice_clientPackage(); - -} //Webservice_clientFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Webservice_clientPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Webservice_clientPackage.java deleted file mode 100644 index ae01f0512..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Webservice_clientPackage.java +++ /dev/null @@ -1,739 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jst.j2ee.common.CommonPackage; - - -/** - * <!-- begin-user-doc --> - * The <b>Package</b> for the model. - * It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * /** - * <p> - * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. - * </p> - * - * - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory - * @model kind="package" - * @generated - * @since 1.0 */ -public interface Webservice_clientPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "wsclient";//$NON-NLS-1$ - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "webservice_client.xmi";//$NON-NLS-1$ - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.webservice.wsclient";//$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - Webservice_clientPackage eINSTANCE = org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ServiceRefImpl <em>Service Ref</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ServiceRefImpl - * @see org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl#getServiceRef() - * @generated - */ - int SERVICE_REF = 0; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - - /** - * The feature id for the '<em><b>Service Interface</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__SERVICE_INTERFACE = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Service Ref Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__SERVICE_REF_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Wsdl File</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__WSDL_FILE = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Jaxrpc Mapping File</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__JAXRPC_MAPPING_FILE = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * The feature id for the '<em><b>Port Component Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__PORT_COMPONENT_REFS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - - /** - * The feature id for the '<em><b>Handlers</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__HANDLERS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 5; - - /** - * The feature id for the '<em><b>Service Qname</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF__SERVICE_QNAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 6; - - /** - * The number of structural features of the the '<em>Service Ref</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_REF_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 7; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.PortComponentRefImpl <em>Port Component Ref</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.PortComponentRefImpl - * @see org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl#getPortComponentRef() - * @generated - */ - int PORT_COMPONENT_REF = 1; - - /** - * The feature id for the '<em><b>Port Component Link</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT_REF__PORT_COMPONENT_LINK = 0; - - /** - * The feature id for the '<em><b>Service Endpoint Interface</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT_REF__SERVICE_ENDPOINT_INTERFACE = 1; - - /** - * The number of structural features of the the '<em>Port Component Ref</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT_REF_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.HandlerImpl <em>Handler</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.HandlerImpl - * @see org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl#getHandler() - * @generated - */ - int HANDLER = 2; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - - /** - * The feature id for the '<em><b>Handler Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__HANDLER_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Soap Roles</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__SOAP_ROLES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Port Names</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__PORT_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Handler Class</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__HANDLER_CLASS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * The feature id for the '<em><b>Init Params</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__INIT_PARAMS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - - /** - * The feature id for the '<em><b>Soap Headers</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__SOAP_HEADERS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 5; - - /** - * The number of structural features of the the '<em>Handler</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 6; - - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.WebServicesClientImpl <em>Web Services Client</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.WebServicesClientImpl - * @see org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl#getWebServicesClient() - * @generated - */ - int WEB_SERVICES_CLIENT = 3; - - /** - * The feature id for the '<em><b>Component Scoped Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES_CLIENT__COMPONENT_SCOPED_REFS = 0; - - /** - * The feature id for the '<em><b>Service Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES_CLIENT__SERVICE_REFS = 1; - - /** - * The number of structural features of the the '<em>Web Services Client</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES_CLIENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ComponentScopedRefsImpl <em>Component Scoped Refs</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ComponentScopedRefsImpl - * @see org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl#getComponentScopedRefs() - * @generated - */ - int COMPONENT_SCOPED_REFS = 4; - - /** - * The feature id for the '<em><b>Component Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPONENT_SCOPED_REFS__COMPONENT_NAME = 0; - - /** - * The feature id for the '<em><b>Service Refs</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPONENT_SCOPED_REFS__SERVICE_REFS = 1; - - /** - * The number of structural features of the the '<em>Component Scoped Refs</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int COMPONENT_SCOPED_REFS_FEATURE_COUNT = 2; - - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef <em>Service Ref</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Service Ref</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef - * @generated - */ - EClass getServiceRef(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceRefName <em>Service Ref Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Service Ref Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceRefName() - * @see #getServiceRef() - * @generated - */ - EAttribute getServiceRef_ServiceRefName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getWsdlFile <em>Wsdl File</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Wsdl File</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getWsdlFile() - * @see #getServiceRef() - * @generated - */ - EAttribute getServiceRef_WsdlFile(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Jaxrpc Mapping File</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getJaxrpcMappingFile() - * @see #getServiceRef() - * @generated - */ - EAttribute getServiceRef_JaxrpcMappingFile(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceInterface <em>Service Interface</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Service Interface</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceInterface() - * @see #getServiceRef() - * @generated - */ - EReference getServiceRef_ServiceInterface(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getPortComponentRefs <em>Port Component Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Port Component Refs</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getPortComponentRefs() - * @see #getServiceRef() - * @generated - */ - EReference getServiceRef_PortComponentRefs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getHandlers <em>Handlers</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Handlers</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getHandlers() - * @see #getServiceRef() - * @generated - */ - EReference getServiceRef_Handlers(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceQname <em>Service Qname</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Service Qname</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef#getServiceQname() - * @see #getServiceRef() - * @generated - */ - EReference getServiceRef_ServiceQname(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef <em>Port Component Ref</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Port Component Ref</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef - * @generated - */ - EClass getPortComponentRef(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef#getPortComponentLink <em>Port Component Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Port Component Link</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef#getPortComponentLink() - * @see #getPortComponentRef() - * @generated - */ - EAttribute getPortComponentRef_PortComponentLink(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef#getServiceEndpointInterface <em>Service Endpoint Interface</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Service Endpoint Interface</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef#getServiceEndpointInterface() - * @see #getPortComponentRef() - * @generated - */ - EReference getPortComponentRef_ServiceEndpointInterface(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler <em>Handler</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Handler</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Handler - * @generated - */ - EClass getHandler(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getHandlerName <em>Handler Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Handler Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Handler#getHandlerName() - * @see #getHandler() - * @generated - */ - EAttribute getHandler_HandlerName(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getSoapHeaders <em>Soap Headers</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Soap Headers</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Handler#getSoapHeaders() - * @see #getHandler() - * @generated - */ - EReference getHandler_SoapHeaders(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getSoapRoles <em>Soap Roles</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute list '<em>Soap Roles</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Handler#getSoapRoles() - * @see #getHandler() - * @generated - */ - EAttribute getHandler_SoapRoles(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getPortNames <em>Port Names</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute list '<em>Port Names</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Handler#getPortNames() - * @see #getHandler() - * @generated - */ - EAttribute getHandler_PortNames(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getHandlerClass <em>Handler Class</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Handler Class</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Handler#getHandlerClass() - * @see #getHandler() - * @generated - */ - EReference getHandler_HandlerClass(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler#getInitParams <em>Init Params</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Init Params</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Handler#getInitParams() - * @see #getHandler() - * @generated - */ - EReference getHandler_InitParams(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient <em>Web Services Client</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Web Services Client</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient - * @generated - */ - EClass getWebServicesClient(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient#getComponentScopedRefs <em>Component Scoped Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Component Scoped Refs</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient#getComponentScopedRefs() - * @see #getWebServicesClient() - * @generated - */ - EReference getWebServicesClient_ComponentScopedRefs(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient#getServiceRefs <em>Service Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Service Refs</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient#getServiceRefs() - * @see #getWebServicesClient() - * @generated - */ - EReference getWebServicesClient_ServiceRefs(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs <em>Component Scoped Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Component Scoped Refs</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs - * @generated - */ - EClass getComponentScopedRefs(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs#getComponentName <em>Component Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Component Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs#getComponentName() - * @see #getComponentScopedRefs() - * @generated - */ - EAttribute getComponentScopedRefs_ComponentName(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs#getServiceRefs <em>Service Refs</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Service Refs</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs#getServiceRefs() - * @see #getComponentScopedRefs() - * @generated - */ - EReference getComponentScopedRefs_ServiceRefs(); - - /** - * Returns the factory that creates the instances of the model. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the factory that creates the instances of the model. - * @generated - */ - Webservice_clientFactory getWebservice_clientFactory(); - -} //Webservice_clientPackage diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/ComponentScopedRefsImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/ComponentScopedRefsImpl.java deleted file mode 100644 index b997b9cf1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/ComponentScopedRefsImpl.java +++ /dev/null @@ -1,223 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs; -import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Component Scoped Refs</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ComponentScopedRefsImpl#getComponentName <em>Component Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ComponentScopedRefsImpl#getServiceRefs <em>Service Refs</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ComponentScopedRefsImpl extends EObjectImpl implements ComponentScopedRefs { - /** - * The default value of the '{@link #getComponentName() <em>Component Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getComponentName() - * @generated - * @ordered - */ - protected static final String COMPONENT_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getComponentName() <em>Component Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getComponentName() - * @generated - * @ordered - */ - protected String componentName = COMPONENT_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getServiceRefs() <em>Service Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceRefs() - * @generated - * @ordered - */ - protected EList serviceRefs = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ComponentScopedRefsImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return Webservice_clientPackage.eINSTANCE.getComponentScopedRefs(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getComponentName() { - return componentName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setComponentName(String newComponentName) { - String oldComponentName = componentName; - componentName = newComponentName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.COMPONENT_SCOPED_REFS__COMPONENT_NAME, oldComponentName, componentName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getServiceRefs() { - if (serviceRefs == null) { - serviceRefs = new EObjectContainmentEList(ServiceRef.class, this, Webservice_clientPackage.COMPONENT_SCOPED_REFS__SERVICE_REFS); - } - return serviceRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case Webservice_clientPackage.COMPONENT_SCOPED_REFS__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.COMPONENT_SCOPED_REFS__COMPONENT_NAME: - return getComponentName(); - case Webservice_clientPackage.COMPONENT_SCOPED_REFS__SERVICE_REFS: - return getServiceRefs(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.COMPONENT_SCOPED_REFS__COMPONENT_NAME: - setComponentName((String)newValue); - return; - case Webservice_clientPackage.COMPONENT_SCOPED_REFS__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.COMPONENT_SCOPED_REFS__COMPONENT_NAME: - setComponentName(COMPONENT_NAME_EDEFAULT); - return; - case Webservice_clientPackage.COMPONENT_SCOPED_REFS__SERVICE_REFS: - getServiceRefs().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.COMPONENT_SCOPED_REFS__COMPONENT_NAME: - return COMPONENT_NAME_EDEFAULT == null ? componentName != null : !COMPONENT_NAME_EDEFAULT.equals(componentName); - case Webservice_clientPackage.COMPONENT_SCOPED_REFS__SERVICE_REFS: - return serviceRefs != null && !serviceRefs.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (componentName: "); - result.append(componentName); - result.append(')'); - return result.toString(); - } - -} //ComponentScopedRefsImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/HandlerImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/HandlerImpl.java deleted file mode 100644 index 3fb63ca69..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/HandlerImpl.java +++ /dev/null @@ -1,473 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.ParamValue; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Handler; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Handler</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.HandlerImpl#getHandlerName <em>Handler Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.HandlerImpl#getSoapRoles <em>Soap Roles</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.HandlerImpl#getPortNames <em>Port Names</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.HandlerImpl#getHandlerClass <em>Handler Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.HandlerImpl#getInitParams <em>Init Params</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.HandlerImpl#getSoapHeaders <em>Soap Headers</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class HandlerImpl extends CompatibilityDescriptionGroupImpl implements Handler { - /** - * The default value of the '{@link #getHandlerName() <em>Handler Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHandlerName() - * @generated - * @ordered - */ - protected static final String HANDLER_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getHandlerName() <em>Handler Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHandlerName() - * @generated - * @ordered - */ - protected String handlerName = HANDLER_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getSoapRoles() <em>Soap Roles</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSoapRoles() - * @generated - * @ordered - */ - protected EList soapRoles = null; - - /** - * The cached value of the '{@link #getPortNames() <em>Port Names</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortNames() - * @generated - * @ordered - */ - protected EList portNames = null; - - /** - * The cached value of the '{@link #getHandlerClass() <em>Handler Class</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHandlerClass() - * @generated - * @ordered - */ - protected JavaClass handlerClass = null; - - /** - * The cached value of the '{@link #getInitParams() <em>Init Params</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInitParams() - * @generated - * @ordered - */ - protected EList initParams = null; - - /** - * The cached value of the '{@link #getSoapHeaders() <em>Soap Headers</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSoapHeaders() - * @generated - * @ordered - */ - protected EList soapHeaders = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HandlerImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return Webservice_clientPackage.eINSTANCE.getHandler(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getHandlerName() { - return handlerName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setHandlerName(String newHandlerName) { - String oldHandlerName = handlerName; - handlerName = newHandlerName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.HANDLER__HANDLER_NAME, oldHandlerName, handlerName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getSoapHeaders() { - if (soapHeaders == null) { - soapHeaders = new EObjectContainmentEList(QName.class, this, Webservice_clientPackage.HANDLER__SOAP_HEADERS); - } - return soapHeaders; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getSoapRoles() { - if (soapRoles == null) { - soapRoles = new EDataTypeUniqueEList(String.class, this, Webservice_clientPackage.HANDLER__SOAP_ROLES); - } - return soapRoles; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getPortNames() { - if (portNames == null) { - portNames = new EDataTypeUniqueEList(String.class, this, Webservice_clientPackage.HANDLER__PORT_NAMES); - } - return portNames; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass getHandlerClass() { - if (handlerClass != null && handlerClass.eIsProxy()) { - JavaClass oldHandlerClass = handlerClass; - handlerClass = (JavaClass)eResolveProxy((InternalEObject)handlerClass); - if (handlerClass != oldHandlerClass) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Webservice_clientPackage.HANDLER__HANDLER_CLASS, oldHandlerClass, handlerClass)); - } - } - return handlerClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetHandlerClass() { - return handlerClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setHandlerClass(JavaClass newHandlerClass) { - JavaClass oldHandlerClass = handlerClass; - handlerClass = newHandlerClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.HANDLER__HANDLER_CLASS, oldHandlerClass, handlerClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getInitParams() { - if (initParams == null) { - initParams = new EObjectContainmentEList(ParamValue.class, this, Webservice_clientPackage.HANDLER__INIT_PARAMS); - } - return initParams; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case Webservice_clientPackage.HANDLER__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case Webservice_clientPackage.HANDLER__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case Webservice_clientPackage.HANDLER__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case Webservice_clientPackage.HANDLER__INIT_PARAMS: - return ((InternalEList)getInitParams()).basicRemove(otherEnd, msgs); - case Webservice_clientPackage.HANDLER__SOAP_HEADERS: - return ((InternalEList)getSoapHeaders()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.HANDLER__ICONS: - return getIcons(); - case Webservice_clientPackage.HANDLER__DISPLAY_NAMES: - return getDisplayNames(); - case Webservice_clientPackage.HANDLER__DESCRIPTIONS: - return getDescriptions(); - case Webservice_clientPackage.HANDLER__SMALL_ICON: - return getSmallIcon(); - case Webservice_clientPackage.HANDLER__LARGE_ICON: - return getLargeIcon(); - case Webservice_clientPackage.HANDLER__DESCRIPTION: - return getDescription(); - case Webservice_clientPackage.HANDLER__DISPLAY_NAME: - return getDisplayName(); - case Webservice_clientPackage.HANDLER__HANDLER_NAME: - return getHandlerName(); - case Webservice_clientPackage.HANDLER__SOAP_ROLES: - return getSoapRoles(); - case Webservice_clientPackage.HANDLER__PORT_NAMES: - return getPortNames(); - case Webservice_clientPackage.HANDLER__HANDLER_CLASS: - if (resolve) return getHandlerClass(); - return basicGetHandlerClass(); - case Webservice_clientPackage.HANDLER__INIT_PARAMS: - return getInitParams(); - case Webservice_clientPackage.HANDLER__SOAP_HEADERS: - return getSoapHeaders(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.HANDLER__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case Webservice_clientPackage.HANDLER__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case Webservice_clientPackage.HANDLER__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case Webservice_clientPackage.HANDLER__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case Webservice_clientPackage.HANDLER__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case Webservice_clientPackage.HANDLER__DESCRIPTION: - setDescription((String)newValue); - return; - case Webservice_clientPackage.HANDLER__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case Webservice_clientPackage.HANDLER__HANDLER_NAME: - setHandlerName((String)newValue); - return; - case Webservice_clientPackage.HANDLER__SOAP_ROLES: - getSoapRoles().clear(); - getSoapRoles().addAll((Collection)newValue); - return; - case Webservice_clientPackage.HANDLER__PORT_NAMES: - getPortNames().clear(); - getPortNames().addAll((Collection)newValue); - return; - case Webservice_clientPackage.HANDLER__HANDLER_CLASS: - setHandlerClass((JavaClass)newValue); - return; - case Webservice_clientPackage.HANDLER__INIT_PARAMS: - getInitParams().clear(); - getInitParams().addAll((Collection)newValue); - return; - case Webservice_clientPackage.HANDLER__SOAP_HEADERS: - getSoapHeaders().clear(); - getSoapHeaders().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.HANDLER__ICONS: - getIcons().clear(); - return; - case Webservice_clientPackage.HANDLER__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case Webservice_clientPackage.HANDLER__DESCRIPTIONS: - getDescriptions().clear(); - return; - case Webservice_clientPackage.HANDLER__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case Webservice_clientPackage.HANDLER__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case Webservice_clientPackage.HANDLER__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case Webservice_clientPackage.HANDLER__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case Webservice_clientPackage.HANDLER__HANDLER_NAME: - setHandlerName(HANDLER_NAME_EDEFAULT); - return; - case Webservice_clientPackage.HANDLER__SOAP_ROLES: - getSoapRoles().clear(); - return; - case Webservice_clientPackage.HANDLER__PORT_NAMES: - getPortNames().clear(); - return; - case Webservice_clientPackage.HANDLER__HANDLER_CLASS: - setHandlerClass((JavaClass)null); - return; - case Webservice_clientPackage.HANDLER__INIT_PARAMS: - getInitParams().clear(); - return; - case Webservice_clientPackage.HANDLER__SOAP_HEADERS: - getSoapHeaders().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.HANDLER__ICONS: - return icons != null && !icons.isEmpty(); - case Webservice_clientPackage.HANDLER__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case Webservice_clientPackage.HANDLER__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case Webservice_clientPackage.HANDLER__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case Webservice_clientPackage.HANDLER__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case Webservice_clientPackage.HANDLER__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case Webservice_clientPackage.HANDLER__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case Webservice_clientPackage.HANDLER__HANDLER_NAME: - return HANDLER_NAME_EDEFAULT == null ? handlerName != null : !HANDLER_NAME_EDEFAULT.equals(handlerName); - case Webservice_clientPackage.HANDLER__SOAP_ROLES: - return soapRoles != null && !soapRoles.isEmpty(); - case Webservice_clientPackage.HANDLER__PORT_NAMES: - return portNames != null && !portNames.isEmpty(); - case Webservice_clientPackage.HANDLER__HANDLER_CLASS: - return handlerClass != null; - case Webservice_clientPackage.HANDLER__INIT_PARAMS: - return initParams != null && !initParams.isEmpty(); - case Webservice_clientPackage.HANDLER__SOAP_HEADERS: - return soapHeaders != null && !soapHeaders.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (handlerName: "); - result.append(handlerName); - result.append(", soapRoles: "); - result.append(soapRoles); - result.append(", portNames: "); - result.append(portNames); - result.append(')'); - return result.toString(); - } - -} //HandlerImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/PortComponentRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/PortComponentRefImpl.java deleted file mode 100644 index 2568f5115..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/PortComponentRefImpl.java +++ /dev/null @@ -1,226 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Port Component Ref</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.PortComponentRefImpl#getPortComponentLink <em>Port Component Link</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.PortComponentRefImpl#getServiceEndpointInterface <em>Service Endpoint Interface</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class PortComponentRefImpl extends EObjectImpl implements PortComponentRef { - /** - * The default value of the '{@link #getPortComponentLink() <em>Port Component Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortComponentLink() - * @generated - * @ordered - */ - protected static final String PORT_COMPONENT_LINK_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPortComponentLink() <em>Port Component Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortComponentLink() - * @generated - * @ordered - */ - protected String portComponentLink = PORT_COMPONENT_LINK_EDEFAULT; - - /** - * The cached value of the '{@link #getServiceEndpointInterface() <em>Service Endpoint Interface</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceEndpointInterface() - * @generated - * @ordered - */ - protected JavaClass serviceEndpointInterface = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PortComponentRefImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return Webservice_clientPackage.eINSTANCE.getPortComponentRef(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getPortComponentLink() { - return portComponentLink; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPortComponentLink(String newPortComponentLink) { - String oldPortComponentLink = portComponentLink; - portComponentLink = newPortComponentLink; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.PORT_COMPONENT_REF__PORT_COMPONENT_LINK, oldPortComponentLink, portComponentLink)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass getServiceEndpointInterface() { - if (serviceEndpointInterface != null && serviceEndpointInterface.eIsProxy()) { - JavaClass oldServiceEndpointInterface = serviceEndpointInterface; - serviceEndpointInterface = (JavaClass)eResolveProxy((InternalEObject)serviceEndpointInterface); - if (serviceEndpointInterface != oldServiceEndpointInterface) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Webservice_clientPackage.PORT_COMPONENT_REF__SERVICE_ENDPOINT_INTERFACE, oldServiceEndpointInterface, serviceEndpointInterface)); - } - } - return serviceEndpointInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetServiceEndpointInterface() { - return serviceEndpointInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServiceEndpointInterface(JavaClass newServiceEndpointInterface) { - JavaClass oldServiceEndpointInterface = serviceEndpointInterface; - serviceEndpointInterface = newServiceEndpointInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.PORT_COMPONENT_REF__SERVICE_ENDPOINT_INTERFACE, oldServiceEndpointInterface, serviceEndpointInterface)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.PORT_COMPONENT_REF__PORT_COMPONENT_LINK: - return getPortComponentLink(); - case Webservice_clientPackage.PORT_COMPONENT_REF__SERVICE_ENDPOINT_INTERFACE: - if (resolve) return getServiceEndpointInterface(); - return basicGetServiceEndpointInterface(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.PORT_COMPONENT_REF__PORT_COMPONENT_LINK: - setPortComponentLink((String)newValue); - return; - case Webservice_clientPackage.PORT_COMPONENT_REF__SERVICE_ENDPOINT_INTERFACE: - setServiceEndpointInterface((JavaClass)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.PORT_COMPONENT_REF__PORT_COMPONENT_LINK: - setPortComponentLink(PORT_COMPONENT_LINK_EDEFAULT); - return; - case Webservice_clientPackage.PORT_COMPONENT_REF__SERVICE_ENDPOINT_INTERFACE: - setServiceEndpointInterface((JavaClass)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.PORT_COMPONENT_REF__PORT_COMPONENT_LINK: - return PORT_COMPONENT_LINK_EDEFAULT == null ? portComponentLink != null : !PORT_COMPONENT_LINK_EDEFAULT.equals(portComponentLink); - case Webservice_clientPackage.PORT_COMPONENT_REF__SERVICE_ENDPOINT_INTERFACE: - return serviceEndpointInterface != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (portComponentLink: "); - result.append(portComponentLink); - result.append(')'); - return result.toString(); - } - -} //PortComponentRefImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/ServiceRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/ServiceRefImpl.java deleted file mode 100644 index 1dc330e76..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/ServiceRefImpl.java +++ /dev/null @@ -1,575 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jem.java.JavaClass; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Handler; -import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef; -import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Service Ref</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ServiceRefImpl#getServiceInterface <em>Service Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ServiceRefImpl#getServiceRefName <em>Service Ref Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ServiceRefImpl#getWsdlFile <em>Wsdl File</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ServiceRefImpl#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ServiceRefImpl#getPortComponentRefs <em>Port Component Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ServiceRefImpl#getHandlers <em>Handlers</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.ServiceRefImpl#getServiceQname <em>Service Qname</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ServiceRefImpl extends CompatibilityDescriptionGroupImpl implements ServiceRef { - /** - * The cached value of the '{@link #getServiceInterface() <em>Service Interface</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceInterface() - * @generated - * @ordered - */ - protected JavaClass serviceInterface = null; - - /** - * The default value of the '{@link #getServiceRefName() <em>Service Ref Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceRefName() - * @generated - * @ordered - */ - protected static final String SERVICE_REF_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getServiceRefName() <em>Service Ref Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceRefName() - * @generated - * @ordered - */ - protected String serviceRefName = SERVICE_REF_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getWsdlFile() <em>Wsdl File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlFile() - * @generated - * @ordered - */ - protected static final String WSDL_FILE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWsdlFile() <em>Wsdl File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlFile() - * @generated - * @ordered - */ - protected String wsdlFile = WSDL_FILE_EDEFAULT; - - /** - * The default value of the '{@link #getJaxrpcMappingFile() <em>Jaxrpc Mapping File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJaxrpcMappingFile() - * @generated - * @ordered - */ - protected static final String JAXRPC_MAPPING_FILE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getJaxrpcMappingFile() <em>Jaxrpc Mapping File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJaxrpcMappingFile() - * @generated - * @ordered - */ - protected String jaxrpcMappingFile = JAXRPC_MAPPING_FILE_EDEFAULT; - - /** - * The cached value of the '{@link #getPortComponentRefs() <em>Port Component Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortComponentRefs() - * @generated - * @ordered - */ - protected EList portComponentRefs = null; - - /** - * The cached value of the '{@link #getHandlers() <em>Handlers</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHandlers() - * @generated - * @ordered - */ - protected EList handlers = null; - - /** - * The cached value of the '{@link #getServiceQname() <em>Service Qname</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceQname() - * @generated - * @ordered - */ - protected QName serviceQname = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ServiceRefImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return Webservice_clientPackage.eINSTANCE.getServiceRef(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getServiceRefName() { - return serviceRefName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServiceRefName(String newServiceRefName) { - String oldServiceRefName = serviceRefName; - serviceRefName = newServiceRefName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.SERVICE_REF__SERVICE_REF_NAME, oldServiceRefName, serviceRefName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWsdlFile() { - return wsdlFile; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlFile(String newWsdlFile) { - String oldWsdlFile = wsdlFile; - wsdlFile = newWsdlFile; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.SERVICE_REF__WSDL_FILE, oldWsdlFile, wsdlFile)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getJaxrpcMappingFile() { - return jaxrpcMappingFile; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setJaxrpcMappingFile(String newJaxrpcMappingFile) { - String oldJaxrpcMappingFile = jaxrpcMappingFile; - jaxrpcMappingFile = newJaxrpcMappingFile; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.SERVICE_REF__JAXRPC_MAPPING_FILE, oldJaxrpcMappingFile, jaxrpcMappingFile)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass getServiceInterface() { - if (serviceInterface != null && serviceInterface.eIsProxy()) { - JavaClass oldServiceInterface = serviceInterface; - serviceInterface = (JavaClass)eResolveProxy((InternalEObject)serviceInterface); - if (serviceInterface != oldServiceInterface) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Webservice_clientPackage.SERVICE_REF__SERVICE_INTERFACE, oldServiceInterface, serviceInterface)); - } - } - return serviceInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaClass basicGetServiceInterface() { - return serviceInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServiceInterface(JavaClass newServiceInterface) { - JavaClass oldServiceInterface = serviceInterface; - serviceInterface = newServiceInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.SERVICE_REF__SERVICE_INTERFACE, oldServiceInterface, serviceInterface)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getPortComponentRefs() { - if (portComponentRefs == null) { - portComponentRefs = new EObjectContainmentEList(PortComponentRef.class, this, Webservice_clientPackage.SERVICE_REF__PORT_COMPONENT_REFS); - } - return portComponentRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getHandlers() { - if (handlers == null) { - handlers = new EObjectContainmentEList(Handler.class, this, Webservice_clientPackage.SERVICE_REF__HANDLERS); - } - return handlers; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public QName getServiceQname() { - return serviceQname; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetServiceQname(QName newServiceQname, NotificationChain msgs) { - QName oldServiceQname = serviceQname; - serviceQname = newServiceQname; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.SERVICE_REF__SERVICE_QNAME, oldServiceQname, newServiceQname); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServiceQname(QName newServiceQname) { - if (newServiceQname != serviceQname) { - NotificationChain msgs = null; - if (serviceQname != null) - msgs = ((InternalEObject)serviceQname).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Webservice_clientPackage.SERVICE_REF__SERVICE_QNAME, null, msgs); - if (newServiceQname != null) - msgs = ((InternalEObject)newServiceQname).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Webservice_clientPackage.SERVICE_REF__SERVICE_QNAME, null, msgs); - msgs = basicSetServiceQname(newServiceQname, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Webservice_clientPackage.SERVICE_REF__SERVICE_QNAME, newServiceQname, newServiceQname)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case Webservice_clientPackage.SERVICE_REF__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case Webservice_clientPackage.SERVICE_REF__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case Webservice_clientPackage.SERVICE_REF__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case Webservice_clientPackage.SERVICE_REF__PORT_COMPONENT_REFS: - return ((InternalEList)getPortComponentRefs()).basicRemove(otherEnd, msgs); - case Webservice_clientPackage.SERVICE_REF__HANDLERS: - return ((InternalEList)getHandlers()).basicRemove(otherEnd, msgs); - case Webservice_clientPackage.SERVICE_REF__SERVICE_QNAME: - return basicSetServiceQname(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.SERVICE_REF__ICONS: - return getIcons(); - case Webservice_clientPackage.SERVICE_REF__DISPLAY_NAMES: - return getDisplayNames(); - case Webservice_clientPackage.SERVICE_REF__DESCRIPTIONS: - return getDescriptions(); - case Webservice_clientPackage.SERVICE_REF__SMALL_ICON: - return getSmallIcon(); - case Webservice_clientPackage.SERVICE_REF__LARGE_ICON: - return getLargeIcon(); - case Webservice_clientPackage.SERVICE_REF__DESCRIPTION: - return getDescription(); - case Webservice_clientPackage.SERVICE_REF__DISPLAY_NAME: - return getDisplayName(); - case Webservice_clientPackage.SERVICE_REF__SERVICE_INTERFACE: - if (resolve) return getServiceInterface(); - return basicGetServiceInterface(); - case Webservice_clientPackage.SERVICE_REF__SERVICE_REF_NAME: - return getServiceRefName(); - case Webservice_clientPackage.SERVICE_REF__WSDL_FILE: - return getWsdlFile(); - case Webservice_clientPackage.SERVICE_REF__JAXRPC_MAPPING_FILE: - return getJaxrpcMappingFile(); - case Webservice_clientPackage.SERVICE_REF__PORT_COMPONENT_REFS: - return getPortComponentRefs(); - case Webservice_clientPackage.SERVICE_REF__HANDLERS: - return getHandlers(); - case Webservice_clientPackage.SERVICE_REF__SERVICE_QNAME: - return getServiceQname(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.SERVICE_REF__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__DESCRIPTION: - setDescription((String)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__SERVICE_INTERFACE: - setServiceInterface((JavaClass)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__SERVICE_REF_NAME: - setServiceRefName((String)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__WSDL_FILE: - setWsdlFile((String)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__JAXRPC_MAPPING_FILE: - setJaxrpcMappingFile((String)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__PORT_COMPONENT_REFS: - getPortComponentRefs().clear(); - getPortComponentRefs().addAll((Collection)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__HANDLERS: - getHandlers().clear(); - getHandlers().addAll((Collection)newValue); - return; - case Webservice_clientPackage.SERVICE_REF__SERVICE_QNAME: - setServiceQname((QName)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.SERVICE_REF__ICONS: - getIcons().clear(); - return; - case Webservice_clientPackage.SERVICE_REF__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case Webservice_clientPackage.SERVICE_REF__DESCRIPTIONS: - getDescriptions().clear(); - return; - case Webservice_clientPackage.SERVICE_REF__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case Webservice_clientPackage.SERVICE_REF__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case Webservice_clientPackage.SERVICE_REF__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case Webservice_clientPackage.SERVICE_REF__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case Webservice_clientPackage.SERVICE_REF__SERVICE_INTERFACE: - setServiceInterface((JavaClass)null); - return; - case Webservice_clientPackage.SERVICE_REF__SERVICE_REF_NAME: - setServiceRefName(SERVICE_REF_NAME_EDEFAULT); - return; - case Webservice_clientPackage.SERVICE_REF__WSDL_FILE: - setWsdlFile(WSDL_FILE_EDEFAULT); - return; - case Webservice_clientPackage.SERVICE_REF__JAXRPC_MAPPING_FILE: - setJaxrpcMappingFile(JAXRPC_MAPPING_FILE_EDEFAULT); - return; - case Webservice_clientPackage.SERVICE_REF__PORT_COMPONENT_REFS: - getPortComponentRefs().clear(); - return; - case Webservice_clientPackage.SERVICE_REF__HANDLERS: - getHandlers().clear(); - return; - case Webservice_clientPackage.SERVICE_REF__SERVICE_QNAME: - setServiceQname((QName)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.SERVICE_REF__ICONS: - return icons != null && !icons.isEmpty(); - case Webservice_clientPackage.SERVICE_REF__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case Webservice_clientPackage.SERVICE_REF__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case Webservice_clientPackage.SERVICE_REF__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case Webservice_clientPackage.SERVICE_REF__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case Webservice_clientPackage.SERVICE_REF__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case Webservice_clientPackage.SERVICE_REF__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case Webservice_clientPackage.SERVICE_REF__SERVICE_INTERFACE: - return serviceInterface != null; - case Webservice_clientPackage.SERVICE_REF__SERVICE_REF_NAME: - return SERVICE_REF_NAME_EDEFAULT == null ? serviceRefName != null : !SERVICE_REF_NAME_EDEFAULT.equals(serviceRefName); - case Webservice_clientPackage.SERVICE_REF__WSDL_FILE: - return WSDL_FILE_EDEFAULT == null ? wsdlFile != null : !WSDL_FILE_EDEFAULT.equals(wsdlFile); - case Webservice_clientPackage.SERVICE_REF__JAXRPC_MAPPING_FILE: - return JAXRPC_MAPPING_FILE_EDEFAULT == null ? jaxrpcMappingFile != null : !JAXRPC_MAPPING_FILE_EDEFAULT.equals(jaxrpcMappingFile); - case Webservice_clientPackage.SERVICE_REF__PORT_COMPONENT_REFS: - return portComponentRefs != null && !portComponentRefs.isEmpty(); - case Webservice_clientPackage.SERVICE_REF__HANDLERS: - return handlers != null && !handlers.isEmpty(); - case Webservice_clientPackage.SERVICE_REF__SERVICE_QNAME: - return serviceQname != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (serviceRefName: "); - result.append(serviceRefName); - result.append(", wsdlFile: "); - result.append(wsdlFile); - result.append(", jaxrpcMappingFile: "); - result.append(jaxrpcMappingFile); - result.append(')'); - return result.toString(); - } - -} //ServiceRefImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/WebServicesClientImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/WebServicesClientImpl.java deleted file mode 100644 index 07903bac7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/WebServicesClientImpl.java +++ /dev/null @@ -1,191 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs; -import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef; -import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Web Services Client</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.WebServicesClientImpl#getComponentScopedRefs <em>Component Scoped Refs</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.WebServicesClientImpl#getServiceRefs <em>Service Refs</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WebServicesClientImpl extends EObjectImpl implements WebServicesClient { - /** - * The cached value of the '{@link #getComponentScopedRefs() <em>Component Scoped Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getComponentScopedRefs() - * @generated - * @ordered - */ - protected EList componentScopedRefs = null; - - /** - * The cached value of the '{@link #getServiceRefs() <em>Service Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceRefs() - * @generated - * @ordered - */ - protected EList serviceRefs = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WebServicesClientImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return Webservice_clientPackage.eINSTANCE.getWebServicesClient(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getComponentScopedRefs() { - if (componentScopedRefs == null) { - componentScopedRefs = new EObjectContainmentEList(ComponentScopedRefs.class, this, Webservice_clientPackage.WEB_SERVICES_CLIENT__COMPONENT_SCOPED_REFS); - } - return componentScopedRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getServiceRefs() { - if (serviceRefs == null) { - serviceRefs = new EObjectContainmentEList(ServiceRef.class, this, Webservice_clientPackage.WEB_SERVICES_CLIENT__SERVICE_REFS); - } - return serviceRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case Webservice_clientPackage.WEB_SERVICES_CLIENT__COMPONENT_SCOPED_REFS: - return ((InternalEList)getComponentScopedRefs()).basicRemove(otherEnd, msgs); - case Webservice_clientPackage.WEB_SERVICES_CLIENT__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.WEB_SERVICES_CLIENT__COMPONENT_SCOPED_REFS: - return getComponentScopedRefs(); - case Webservice_clientPackage.WEB_SERVICES_CLIENT__SERVICE_REFS: - return getServiceRefs(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.WEB_SERVICES_CLIENT__COMPONENT_SCOPED_REFS: - getComponentScopedRefs().clear(); - getComponentScopedRefs().addAll((Collection)newValue); - return; - case Webservice_clientPackage.WEB_SERVICES_CLIENT__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.WEB_SERVICES_CLIENT__COMPONENT_SCOPED_REFS: - getComponentScopedRefs().clear(); - return; - case Webservice_clientPackage.WEB_SERVICES_CLIENT__SERVICE_REFS: - getServiceRefs().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case Webservice_clientPackage.WEB_SERVICES_CLIENT__COMPONENT_SCOPED_REFS: - return componentScopedRefs != null && !componentScopedRefs.isEmpty(); - case Webservice_clientPackage.WEB_SERVICES_CLIENT__SERVICE_REFS: - return serviceRefs != null && !serviceRefs.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - -} //WebServicesClientImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/WebServicesClientResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/WebServicesClientResourceFactory.java deleted file mode 100644 index 824c4979b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/WebServicesClientResourceFactory.java +++ /dev/null @@ -1,83 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Aug 6, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.impl; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.RendererFactory; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory; - - -public class WebServicesClientResourceFactory - extends TranslatorResourceFactory { - - /** - * @param aRendererFactory - */ - public WebServicesClientResourceFactory() { - super(RendererFactory.getDefaultRendererFactory()); - } - - /** - * Method registerDtds. - */ - public static void registerDtds() { - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEB_SERVICES_CLIENT_SYSTEMID_1_0, "j2ee_web_services_client_1_0.dtd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEB_SERVICES_CLIENT_SCHEMA_LOC_1_1, "j2ee_web_services_client_1_1.xsd"); //$NON-NLS-1$ - } - /** - * @param aRendererFactory - */ - public WebServicesClientResourceFactory(RendererFactory aRendererFactory) { - super(aRendererFactory); - } - - protected TranslatorResource createResource(URI uri, Renderer aRenderer) { - return new WebServicesResourceImpl(uri, aRenderer); - } - public static void register(FileNameResourceFactoryRegistry aRegistry) { - aRegistry.registerLastFileSegment(J2EEConstants.WEB_SERVICES_CLIENT_SHORTNAME, new WebServicesClientResourceFactory(RendererFactory.getDefaultRendererFactory())); - } - - /** - * Register myself with the Resource.Factory.Registry - */ - public static void registerWith(RendererFactory aRendererFactory) { - J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(J2EEConstants.WEB_SERVICES_CLIENT_SHORTNAME, new WebServicesClientResourceFactory(aRendererFactory)); - } - - /** - * register using the default renderer factory. - * @see #registerWith(RendererFactory) - */ - public static void register() { - registerWith(RendererFactory.getDefaultRendererFactory()); - } - - - public static Resource.Factory getRegisteredFactory() { - return J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.WEB_SERVICES_CLIENT_DD_URI_OBJ); - } - - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/WebServicesResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/WebServicesResourceImpl.java deleted file mode 100644 index d6b5c040b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/WebServicesResourceImpl.java +++ /dev/null @@ -1,145 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * Created on Aug 6, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.impl; - - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.common.internal.impl.XMLResourceImpl; -import org.eclipse.jst.j2ee.internal.J2EEConstants; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.model.translator.webservices.WebServicesTranslator; -import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient; -import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesResource; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class WebServicesResourceImpl extends XMLResourceImpl implements WebServicesResource { - - /** - * @param uri - * @param aRenderer - */ - public WebServicesResourceImpl(URI uri, Renderer aRenderer) { - super(uri, aRenderer); - } - - /** - * @param aRenderer - */ - public WebServicesResourceImpl(Renderer aRenderer) { - super(aRenderer); - } - - /** - * Return the first element in the EList. - */ - public WebServicesClient getWebServicesClient() { - return (WebServicesClient) getRootObject(); - } - - public int getType() { - return WEB_SERVICES_CLIENT_TYPE; - } - - public String getJ2EE_1_2_SystemID() { - return J2EEConstants.WEB_SERVICES_CLIENT_SYSTEMID_1_0; - } - public String getJ2EE_1_3_SystemID() { - return J2EEConstants.WEB_SERVICES_CLIENT_SYSTEMID_1_0; - } - - public String getJ2EE_1_2_PublicID() { - return J2EEConstants.WEB_SERVICES_CLIENT_PUBLICID_1_0; - } - public String getJ2EE_1_3_PublicID() { - return J2EEConstants.WEB_SERVICES_CLIENT_PUBLICID_1_0; - } - - public String getDoctype() { - switch (getJ2EEVersionID()) { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - return J2EEConstants.WEB_SERVICES_CLIENT_DOCTYPE; - default : - return null; - } - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#setDoctypeValues(java.lang.String, java.lang.String) - * This is setting the module version on the resource. - */ - public void setDoctypeValues(String publicId, String systemId) { - int version = WEBSERVICES_1_0_ID; - super.setDoctypeValues(publicId, systemId); - super.setVersionID(version); - } - /* - * This directly sets the module version id - */ - public void setModuleVersionID(int id) { - super.setVersionID(id); - switch (id) { - case (WEBSERVICES_1_0_ID) : - super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - } - syncVersionOfRootObject(); - } - /* - * Based on the J2EE version, this will set the module version - */ - public void setJ2EEVersionID(int id) { - switch (id) { - case (J2EE_1_3_ID) : - primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - primSetVersionID(WEBSERVICES_1_0_ID); - break; - case (J2EE_1_2_ID) : - primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - primSetVersionID(WEBSERVICES_1_0_ID); - } - syncVersionOfRootObject(); - } - /* Return J2EE version based on module version - */ - public int getJ2EEVersionID() { - switch (getModuleVersionID()) { - case J2EEVersionConstants.WEBSERVICES_1_0_ID : - return J2EEVersionConstants.J2EE_1_3_ID; - default : - return J2EEVersionConstants.J2EE_1_3_ID; - } - } - /** - * @see com.ibm.etools.emf2xml.TranslatorResource#getRootTranslator() - */ - public Translator getRootTranslator() { - return WebServicesTranslator.INSTANCE; - } - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#getDefaultVersionID() - */ - protected int getDefaultVersionID() { - return WEBSERVICES_1_0_ID; - } - /* (non-Javadoc) - * @see org.eclipse.jst.j2ee.internal.common.impl.XMLResourceImpl#syncVersionOfRootObject() - */ - protected void syncVersionOfRootObject() { - //not model for J2EE 1.4 so no operation required. - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/Webservice_clientFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/Webservice_clientFactoryImpl.java deleted file mode 100644 index ac63b496e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/Webservice_clientFactoryImpl.java +++ /dev/null @@ -1,128 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs; -import org.eclipse.jst.j2ee.webservice.wsclient.Handler; -import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef; -import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef; -import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class Webservice_clientFactoryImpl extends EFactoryImpl implements Webservice_clientFactory { - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Webservice_clientFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case Webservice_clientPackage.SERVICE_REF: return createServiceRef(); - case Webservice_clientPackage.PORT_COMPONENT_REF: return createPortComponentRef(); - case Webservice_clientPackage.HANDLER: return createHandler(); - case Webservice_clientPackage.WEB_SERVICES_CLIENT: return createWebServicesClient(); - case Webservice_clientPackage.COMPONENT_SCOPED_REFS: return createComponentScopedRefs(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ServiceRef createServiceRef() { - ServiceRefImpl serviceRef = new ServiceRefImpl(); - return serviceRef; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PortComponentRef createPortComponentRef() { - PortComponentRefImpl portComponentRef = new PortComponentRefImpl(); - return portComponentRef; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Handler createHandler() { - HandlerImpl handler = new HandlerImpl(); - return handler; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebServicesClient createWebServicesClient() { - WebServicesClientImpl webServicesClient = new WebServicesClientImpl(); - return webServicesClient; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ComponentScopedRefs createComponentScopedRefs() { - ComponentScopedRefsImpl componentScopedRefs = new ComponentScopedRefsImpl(); - return componentScopedRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Webservice_clientPackage getWebservice_clientPackage() { - return (Webservice_clientPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static Webservice_clientPackage getPackage() { - return Webservice_clientPackage.eINSTANCE; - } - -} //Webservice_clientFactoryImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/Webservice_clientPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/Webservice_clientPackageImpl.java deleted file mode 100644 index 8a801e445..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/impl/Webservice_clientPackageImpl.java +++ /dev/null @@ -1,538 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs; -import org.eclipse.jst.j2ee.webservice.wsclient.Handler; -import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef; -import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef; -import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class Webservice_clientPackageImpl extends EPackageImpl implements Webservice_clientPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass serviceRefEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass portComponentRefEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass handlerEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webServicesClientEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass componentScopedRefsEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - * <p>Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage#eNS_URI - * @see #init() - * @generated - */ - private Webservice_clientPackageImpl() { - super(eNS_URI, Webservice_clientFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - * <p>Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - * <p>Invocation of this method will not affect any packages that have - * already been initialized. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static Webservice_clientPackage init() { - if (isInited) return (Webservice_clientPackage)EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI); - - // Obtain or create and register package - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new Webservice_clientPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE); - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE); - - // Create package meta-data objects - theWebservice_clientPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theCommonPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theTaglibPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theJspPackage.createPackageContents(); - theWscommonPackage.createPackageContents(); - theWsddPackage.createPackageContents(); - - // Initialize created meta-data - theWebservice_clientPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theTaglibPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - theWscommonPackage.initializePackageContents(); - theWsddPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theWebservice_clientPackage.freeze(); - - return theWebservice_clientPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getServiceRef() { - return serviceRefEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceRef_ServiceRefName() { - return (EAttribute)serviceRefEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceRef_WsdlFile() { - return (EAttribute)serviceRefEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceRef_JaxrpcMappingFile() { - return (EAttribute)serviceRefEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceRef_ServiceInterface() { - return (EReference)serviceRefEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceRef_PortComponentRefs() { - return (EReference)serviceRefEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceRef_Handlers() { - return (EReference)serviceRefEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceRef_ServiceQname() { - return (EReference)serviceRefEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getPortComponentRef() { - return portComponentRefEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortComponentRef_PortComponentLink() { - return (EAttribute)portComponentRefEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPortComponentRef_ServiceEndpointInterface() { - return (EReference)portComponentRefEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getHandler() { - return handlerEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getHandler_HandlerName() { - return (EAttribute)handlerEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getHandler_SoapHeaders() { - return (EReference)handlerEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getHandler_SoapRoles() { - return (EAttribute)handlerEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getHandler_PortNames() { - return (EAttribute)handlerEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getHandler_HandlerClass() { - return (EReference)handlerEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getHandler_InitParams() { - return (EReference)handlerEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWebServicesClient() { - return webServicesClientEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebServicesClient_ComponentScopedRefs() { - return (EReference)webServicesClientEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebServicesClient_ServiceRefs() { - return (EReference)webServicesClientEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getComponentScopedRefs() { - return componentScopedRefsEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getComponentScopedRefs_ComponentName() { - return (EAttribute)componentScopedRefsEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getComponentScopedRefs_ServiceRefs() { - return (EReference)componentScopedRefsEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Webservice_clientFactory getWebservice_clientFactory() { - return (Webservice_clientFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - serviceRefEClass = createEClass(SERVICE_REF); - createEReference(serviceRefEClass, SERVICE_REF__SERVICE_INTERFACE); - createEAttribute(serviceRefEClass, SERVICE_REF__SERVICE_REF_NAME); - createEAttribute(serviceRefEClass, SERVICE_REF__WSDL_FILE); - createEAttribute(serviceRefEClass, SERVICE_REF__JAXRPC_MAPPING_FILE); - createEReference(serviceRefEClass, SERVICE_REF__PORT_COMPONENT_REFS); - createEReference(serviceRefEClass, SERVICE_REF__HANDLERS); - createEReference(serviceRefEClass, SERVICE_REF__SERVICE_QNAME); - - portComponentRefEClass = createEClass(PORT_COMPONENT_REF); - createEAttribute(portComponentRefEClass, PORT_COMPONENT_REF__PORT_COMPONENT_LINK); - createEReference(portComponentRefEClass, PORT_COMPONENT_REF__SERVICE_ENDPOINT_INTERFACE); - - handlerEClass = createEClass(HANDLER); - createEAttribute(handlerEClass, HANDLER__HANDLER_NAME); - createEAttribute(handlerEClass, HANDLER__SOAP_ROLES); - createEAttribute(handlerEClass, HANDLER__PORT_NAMES); - createEReference(handlerEClass, HANDLER__HANDLER_CLASS); - createEReference(handlerEClass, HANDLER__INIT_PARAMS); - createEReference(handlerEClass, HANDLER__SOAP_HEADERS); - - webServicesClientEClass = createEClass(WEB_SERVICES_CLIENT); - createEReference(webServicesClientEClass, WEB_SERVICES_CLIENT__COMPONENT_SCOPED_REFS); - createEReference(webServicesClientEClass, WEB_SERVICES_CLIENT__SERVICE_REFS); - - componentScopedRefsEClass = createEClass(COMPONENT_SCOPED_REFS); - createEAttribute(componentScopedRefsEClass, COMPONENT_SCOPED_REFS__COMPONENT_NAME); - createEReference(componentScopedRefsEClass, COMPONENT_SCOPED_REFS__SERVICE_REFS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - JavaRefPackageImpl theJavaRefPackage = (JavaRefPackageImpl)EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI); - - // Add supertypes to classes - serviceRefEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - handlerEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - - // Initialize classes and features; add operations and parameters - initEClass(serviceRefEClass, ServiceRef.class, "ServiceRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getServiceRef_ServiceInterface(), theJavaRefPackage.getJavaClass(), null, "serviceInterface", null, 1, 1, ServiceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServiceRef_ServiceRefName(), ecorePackage.getEString(), "serviceRefName", null, 0, 1, ServiceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServiceRef_WsdlFile(), ecorePackage.getEString(), "wsdlFile", null, 0, 1, ServiceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServiceRef_JaxrpcMappingFile(), ecorePackage.getEString(), "jaxrpcMappingFile", null, 0, 1, ServiceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceRef_PortComponentRefs(), this.getPortComponentRef(), null, "portComponentRefs", null, 0, -1, ServiceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceRef_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, ServiceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceRef_ServiceQname(), theCommonPackage.getQName(), null, "serviceQname", null, 1, 1, ServiceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(portComponentRefEClass, PortComponentRef.class, "PortComponentRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPortComponentRef_PortComponentLink(), ecorePackage.getEString(), "portComponentLink", null, 0, 1, PortComponentRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPortComponentRef_ServiceEndpointInterface(), theJavaRefPackage.getJavaClass(), null, "serviceEndpointInterface", null, 1, 1, PortComponentRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(handlerEClass, Handler.class, "Handler", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHandler_HandlerName(), ecorePackage.getEString(), "handlerName", null, 0, 1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getHandler_SoapRoles(), ecorePackage.getEString(), "soapRoles", null, 0, -1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getHandler_PortNames(), ecorePackage.getEString(), "portNames", null, 0, -1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getHandler_HandlerClass(), theJavaRefPackage.getJavaClass(), null, "handlerClass", null, 1, 1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getHandler_InitParams(), theCommonPackage.getParamValue(), null, "initParams", null, 0, -1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getHandler_SoapHeaders(), theCommonPackage.getQName(), null, "soapHeaders", null, 0, -1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(webServicesClientEClass, WebServicesClient.class, "WebServicesClient", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getWebServicesClient_ComponentScopedRefs(), this.getComponentScopedRefs(), null, "componentScopedRefs", null, 0, -1, WebServicesClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebServicesClient_ServiceRefs(), this.getServiceRef(), null, "serviceRefs", null, 0, -1, WebServicesClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(componentScopedRefsEClass, ComponentScopedRefs.class, "ComponentScopedRefs", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getComponentScopedRefs_ComponentName(), ecorePackage.getEString(), "componentName", null, 0, 1, ComponentScopedRefs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getComponentScopedRefs_ServiceRefs(), this.getServiceRef(), null, "serviceRefs", null, 1, -1, ComponentScopedRefs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //Webservice_clientPackageImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/util/Webservice_clientAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/util/Webservice_clientAdapterFactory.java deleted file mode 100644 index e4d9fb862..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/util/Webservice_clientAdapterFactory.java +++ /dev/null @@ -1,231 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs; -import org.eclipse.jst.j2ee.webservice.wsclient.Handler; -import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef; -import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef; -import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; - - -/** - * <!-- begin-user-doc --> - * The <b>Adapter Factory</b> for the model. - * It provides an adapter <code>createXXX</code> method for each class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage - * @generated - */ -public class Webservice_clientAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static Webservice_clientPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Webservice_clientAdapterFactory() { - if (modelPackage == null) { - modelPackage = Webservice_clientPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * <!-- begin-user-doc --> - * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. - * <!-- end-user-doc --> - * @return whether this factory is applicable for the type of the object. - * @generated - */ - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected Webservice_clientSwitch modelSwitch = - new Webservice_clientSwitch() { - public Object caseServiceRef(ServiceRef object) { - return createServiceRefAdapter(); - } - public Object casePortComponentRef(PortComponentRef object) { - return createPortComponentRefAdapter(); - } - public Object caseHandler(Handler object) { - return createHandlerAdapter(); - } - public Object caseWebServicesClient(WebServicesClient object) { - return createWebServicesClientAdapter(); - } - public Object caseComponentScopedRefs(ComponentScopedRefs object) { - return createComponentScopedRefsAdapter(); - } - public Object caseDescriptionGroup(DescriptionGroup object) { - return createDescriptionGroupAdapter(); - } - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return createCompatibilityDescriptionGroupAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param target the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef <em>Service Ref</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef - * @generated - */ - public Adapter createServiceRefAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef <em>Port Component Ref</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef - * @generated - */ - public Adapter createPortComponentRefAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsclient.Handler <em>Handler</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsclient.Handler - * @generated - */ - public Adapter createHandlerAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient <em>Web Services Client</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient - * @generated - */ - public Adapter createWebServicesClientAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs <em>Component Scoped Refs</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs - * @generated - */ - public Adapter createComponentScopedRefsAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - public Adapter createDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - public Adapter createCompatibilityDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //Webservice_clientAdapterFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/util/Webservice_clientSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/util/Webservice_clientSwitch.java deleted file mode 100644 index ef2101997..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/internal/util/Webservice_clientSwitch.java +++ /dev/null @@ -1,259 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsclient.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs; -import org.eclipse.jst.j2ee.webservice.wsclient.Handler; -import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef; -import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef; -import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage - * @generated - */ -public class Webservice_clientSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static Webservice_clientPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Webservice_clientSwitch() { - if (modelPackage == null) { - modelPackage = Webservice_clientPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case Webservice_clientPackage.SERVICE_REF: { - ServiceRef serviceRef = (ServiceRef)theEObject; - Object result = caseServiceRef(serviceRef); - if (result == null) result = caseCompatibilityDescriptionGroup(serviceRef); - if (result == null) result = caseDescriptionGroup(serviceRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case Webservice_clientPackage.PORT_COMPONENT_REF: { - PortComponentRef portComponentRef = (PortComponentRef)theEObject; - Object result = casePortComponentRef(portComponentRef); - if (result == null) result = defaultCase(theEObject); - return result; - } - case Webservice_clientPackage.HANDLER: { - Handler handler = (Handler)theEObject; - Object result = caseHandler(handler); - if (result == null) result = caseCompatibilityDescriptionGroup(handler); - if (result == null) result = caseDescriptionGroup(handler); - if (result == null) result = defaultCase(theEObject); - return result; - } - case Webservice_clientPackage.WEB_SERVICES_CLIENT: { - WebServicesClient webServicesClient = (WebServicesClient)theEObject; - Object result = caseWebServicesClient(webServicesClient); - if (result == null) result = defaultCase(theEObject); - return result; - } - case Webservice_clientPackage.COMPONENT_SCOPED_REFS: { - ComponentScopedRefs componentScopedRefs = (ComponentScopedRefs)theEObject; - Object result = caseComponentScopedRefs(componentScopedRefs); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Service Ref</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Service Ref</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseServiceRef(ServiceRef object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Port Component Ref</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Port Component Ref</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object casePortComponentRef(PortComponentRef object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Handler</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Handler</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseHandler(Handler object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Web Services Client</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Web Services Client</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWebServicesClient(WebServicesClient object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Component Scoped Refs</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Component Scoped Refs</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseComponentScopedRefs(ComponentScopedRefs object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionGroup(DescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //Webservice_clientSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/package.xml b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/package.xml deleted file mode 100644 index 4237e0f30..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/package.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<html> - <head> - <meta - name="root" - content="../../../../../../../" /> - <title>EJB Artifact Edit api overview</title> - </head> - - <body> - <abstract> - This package includes the web services client model api. Using this api the artifacts of a web services client - can be created and accessed. - </abstract> - - <a href="#top">top</a> - </body> -</html> -
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DescriptionType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DescriptionType.java deleted file mode 100644 index 1b9f09a4d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DescriptionType.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon; - -import org.eclipse.jst.j2ee.common.Description; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Description Type</b></em>'. - * <!-- end-user-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getDescriptionType() - * @model - * @generated - * @since 1.0 */ -public interface DescriptionType extends Description{ -// DescriptionType -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DisplayNameType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DisplayNameType.java deleted file mode 100644 index c130561de..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DisplayNameType.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon; - -import org.eclipse.jst.j2ee.common.DisplayName; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Display Name Type</b></em>'. - * <!-- end-user-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getDisplayNameType() - * @model - * @generated - * @since 1.0 */ -public interface DisplayNameType extends DisplayName{ -// DisplayNameType -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/InitParam.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/InitParam.java deleted file mode 100644 index 488581ded..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/InitParam.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Init Param</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getParamName <em>Param Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getParamValue <em>Param Value</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getDescriptionTypes <em>Description Types</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getInitParam() - * @model - * @generated - * @since 1.0 */ -public interface InitParam extends EObject{ - /** - * Returns the value of the '<em><b>Param Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Param Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Param Name</em>' attribute. - * @see #setParamName(String) - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getInitParam_ParamName() - * @model - * @generated - */ - String getParamName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getParamName <em>Param Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Param Name</em>' attribute. - * @see #getParamName() - * @generated - */ - void setParamName(String value); - - /** - * Returns the value of the '<em><b>Param Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Param Value</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Param Value</em>' attribute. - * @see #setParamValue(String) - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getInitParam_ParamValue() - * @model - * @generated - */ - String getParamValue(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getParamValue <em>Param Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Param Value</em>' attribute. - * @see #getParamValue() - * @generated - */ - void setParamValue(String value); - - /** - * Returns the value of the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Description</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Description</em>' attribute. - * @see #setDescription(String) - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getInitParam_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getDescription <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Description</em>' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the '<em><b>Description Types</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Description Types</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Description Types</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getInitParam_DescriptionTypes() - * @model type="org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType" containment="true" - * @generated - */ - EList getDescriptionTypes(); - -} // InitParam diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/PortName.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/PortName.java deleted file mode 100644 index da84a959c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/PortName.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Port Name</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.PortName#getPortName <em>Port Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getPortName() - * @model - * @generated - * @since 1.0 */ -public interface PortName extends EObject{ - /** - * Returns the value of the '<em><b>Port Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Port Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Port Name</em>' attribute. - * @see #setPortName(String) - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getPortName_PortName() - * @model - * @generated - */ - String getPortName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wscommon.PortName#getPortName <em>Port Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Port Name</em>' attribute. - * @see #getPortName() - * @generated - */ - void setPortName(String value); - -} // PortName diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/SOAPHeader.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/SOAPHeader.java deleted file mode 100644 index 09dc59989..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/SOAPHeader.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon; - -import org.eclipse.jst.j2ee.common.QName; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>SOAP Header</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * Defines the QName of a SOAP header that will be processed by the handler. - * - * <!-- end-model-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getSOAPHeader() - * @model - * @generated - * @since 1.0 */ -public interface SOAPHeader extends QName{ -// SOAPHeader -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/SOAPRole.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/SOAPRole.java deleted file mode 100644 index 3114f6e68..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/SOAPRole.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>SOAP Role</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The soap-role element contains a SOAP actor definition that the Handler will play as a role. - * - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole#getSoapRole <em>Soap Role</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getSOAPRole() - * @model - * @generated - * @since 1.0 */ -public interface SOAPRole extends EObject{ - /** - * Returns the value of the '<em><b>Soap Role</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Soap Role</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Soap Role</em>' attribute. - * @see #setSoapRole(String) - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#getSOAPRole_SoapRole() - * @model - * @generated - */ - String getSoapRole(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole#getSoapRole <em>Soap Role</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Soap Role</em>' attribute. - * @see #getSoapRole() - * @generated - */ - void setSoapRole(String value); - -} // SOAPRole diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/WscommonFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/WscommonFactory.java deleted file mode 100644 index db9c06d23..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/WscommonFactory.java +++ /dev/null @@ -1,97 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon; - -import org.eclipse.emf.ecore.EFactory; - -/** - * <!-- begin-user-doc --> - * The <b>Factory</b> for the model. - * It provides a create method for each non-abstract class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage - * @generated - * @since 1.0 */ -public interface WscommonFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - WscommonFactory eINSTANCE = new org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonFactoryImpl(); - - /** - * Returns a new object of class '<em>Init Param</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Init Param</em>'. - * @generated - */ - InitParam createInitParam(); - - /** - * Returns a new object of class '<em>SOAP Header</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>SOAP Header</em>'. - * @generated - */ - SOAPHeader createSOAPHeader(); - - /** - * Returns a new object of class '<em>SOAP Role</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>SOAP Role</em>'. - * @generated - */ - SOAPRole createSOAPRole(); - - /** - * Returns a new object of class '<em>Port Name</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Port Name</em>'. - * @generated - */ - PortName createPortName(); - - /** - * Returns a new object of class '<em>Description Type</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Description Type</em>'. - * @generated - */ - DescriptionType createDescriptionType(); - - /** - * Returns a new object of class '<em>Display Name Type</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Display Name Type</em>'. - * @generated - */ - DisplayNameType createDisplayNameType(); - - /** - * Returns the package supported by this factory. - * <!-- begin-user-doc --> - * This method is NOT api, and may change in future releases. - * EMF package classes should be access via their "eINSTANCE" static fields - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - WscommonPackage getWscommonPackage(); - -} //WscommonFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/WscommonPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/WscommonPackage.java deleted file mode 100644 index 208125f49..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/WscommonPackage.java +++ /dev/null @@ -1,453 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jst.j2ee.common.CommonPackage; - - -/** - * <!-- begin-user-doc --> - * The <b>Package</b> for the model. - * It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * ** - * <p> - * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. - * </p> - * - * - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory - * @model kind="package" - * @generated - * @since 1.0 */ -public interface WscommonPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "wscommon";//$NON-NLS-1$ - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "wscommon.xmi";//$NON-NLS-1$ - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.webservice.wscommon";//$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - WscommonPackage eINSTANCE = org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.InitParamImpl <em>Init Param</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.InitParamImpl - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl#getInitParam() - * @generated - */ - int INIT_PARAM = 0; - - /** - * The feature id for the '<em><b>Param Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INIT_PARAM__PARAM_NAME = 0; - - /** - * The feature id for the '<em><b>Param Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INIT_PARAM__PARAM_VALUE = 1; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INIT_PARAM__DESCRIPTION = 2; - - /** - * The feature id for the '<em><b>Description Types</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INIT_PARAM__DESCRIPTION_TYPES = 3; - - /** - * The number of structural features of the the '<em>Init Param</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INIT_PARAM_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.SOAPHeaderImpl <em>SOAP Header</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.SOAPHeaderImpl - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl#getSOAPHeader() - * @generated - */ - int SOAP_HEADER = 1; - - /** - * The feature id for the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SOAP_HEADER__NAMESPACE_URI = CommonPackage.QNAME__NAMESPACE_URI; - - /** - * The feature id for the '<em><b>Local Part</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SOAP_HEADER__LOCAL_PART = CommonPackage.QNAME__LOCAL_PART; - - /** - * The feature id for the '<em><b>Combined QName</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SOAP_HEADER__COMBINED_QNAME = CommonPackage.QNAME__COMBINED_QNAME; - - /** - * The feature id for the '<em><b>Internal Prefix Or Ns URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SOAP_HEADER__INTERNAL_PREFIX_OR_NS_URI = CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI; - - /** - * The number of structural features of the the '<em>SOAP Header</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SOAP_HEADER_FEATURE_COUNT = CommonPackage.QNAME_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.SOAPRoleImpl <em>SOAP Role</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.SOAPRoleImpl - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl#getSOAPRole() - * @generated - */ - int SOAP_ROLE = 2; - - /** - * The feature id for the '<em><b>Soap Role</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SOAP_ROLE__SOAP_ROLE = 0; - - /** - * The number of structural features of the the '<em>SOAP Role</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SOAP_ROLE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.PortNameImpl <em>Port Name</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.PortNameImpl - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl#getPortName() - * @generated - */ - int PORT_NAME = 3; - - /** - * The feature id for the '<em><b>Port Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_NAME__PORT_NAME = 0; - - /** - * The number of structural features of the the '<em>Port Name</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_NAME_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.DescriptionTypeImpl <em>Description Type</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.DescriptionTypeImpl - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl#getDescriptionType() - * @generated - */ - int DESCRIPTION_TYPE = 4; - - /** - * The feature id for the '<em><b>Lang</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DESCRIPTION_TYPE__LANG = CommonPackage.DESCRIPTION__LANG; - - /** - * The feature id for the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DESCRIPTION_TYPE__VALUE = CommonPackage.DESCRIPTION__VALUE; - - /** - * The number of structural features of the the '<em>Description Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DESCRIPTION_TYPE_FEATURE_COUNT = CommonPackage.DESCRIPTION_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.DisplayNameTypeImpl <em>Display Name Type</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.DisplayNameTypeImpl - * @see org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl#getDisplayNameType() - * @generated - */ - int DISPLAY_NAME_TYPE = 5; - - /** - * The feature id for the '<em><b>Lang</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DISPLAY_NAME_TYPE__LANG = CommonPackage.DISPLAY_NAME__LANG; - - /** - * The feature id for the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DISPLAY_NAME_TYPE__VALUE = CommonPackage.DISPLAY_NAME__VALUE; - - /** - * The number of structural features of the the '<em>Display Name Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DISPLAY_NAME_TYPE_FEATURE_COUNT = CommonPackage.DISPLAY_NAME_FEATURE_COUNT + 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam <em>Init Param</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Init Param</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.InitParam - * @generated - */ - EClass getInitParam(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getParamName <em>Param Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Param Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getParamName() - * @see #getInitParam() - * @generated - */ - EAttribute getInitParam_ParamName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getParamValue <em>Param Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Param Value</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getParamValue() - * @see #getInitParam() - * @generated - */ - EAttribute getInitParam_ParamValue(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getDescription <em>Description</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Description</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getDescription() - * @see #getInitParam() - * @generated - */ - EAttribute getInitParam_Description(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getDescriptionTypes <em>Description Types</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Description Types</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.InitParam#getDescriptionTypes() - * @see #getInitParam() - * @generated - */ - EReference getInitParam_DescriptionTypes(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader <em>SOAP Header</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>SOAP Header</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader - * @generated - */ - EClass getSOAPHeader(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole <em>SOAP Role</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>SOAP Role</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole - * @generated - */ - EClass getSOAPRole(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole#getSoapRole <em>Soap Role</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Soap Role</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole#getSoapRole() - * @see #getSOAPRole() - * @generated - */ - EAttribute getSOAPRole_SoapRole(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wscommon.PortName <em>Port Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Port Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.PortName - * @generated - */ - EClass getPortName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wscommon.PortName#getPortName <em>Port Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Port Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.PortName#getPortName() - * @see #getPortName() - * @generated - */ - EAttribute getPortName_PortName(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType <em>Description Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Description Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType - * @generated - */ - EClass getDescriptionType(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType <em>Display Name Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Display Name Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType - * @generated - */ - EClass getDisplayNameType(); - - /** - * Returns the factory that creates the instances of the model. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the factory that creates the instances of the model. - * @generated - */ - WscommonFactory getWscommonFactory(); - -} //WscommonPackage diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/DescriptionTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/DescriptionTypeImpl.java deleted file mode 100644 index 7e8156113..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/DescriptionTypeImpl.java +++ /dev/null @@ -1,113 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.internal.impl.DescriptionImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Description Type</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class DescriptionTypeImpl extends DescriptionImpl implements DescriptionType -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected DescriptionTypeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WscommonPackage.eINSTANCE.getDescriptionType(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.DESCRIPTION_TYPE__LANG: - return getLang(); - case WscommonPackage.DESCRIPTION_TYPE__VALUE: - return getValue(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.DESCRIPTION_TYPE__LANG: - setLang((String)newValue); - return; - case WscommonPackage.DESCRIPTION_TYPE__VALUE: - setValue((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.DESCRIPTION_TYPE__LANG: - setLang(LANG_EDEFAULT); - return; - case WscommonPackage.DESCRIPTION_TYPE__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.DESCRIPTION_TYPE__LANG: - return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); - case WscommonPackage.DESCRIPTION_TYPE__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return eDynamicIsSet(eFeature); - } - -} //DescriptionTypeImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/DisplayNameTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/DisplayNameTypeImpl.java deleted file mode 100644 index 3cb966340..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/DisplayNameTypeImpl.java +++ /dev/null @@ -1,113 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.internal.impl.DisplayNameImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Display Name Type</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class DisplayNameTypeImpl extends DisplayNameImpl implements DisplayNameType -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected DisplayNameTypeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WscommonPackage.eINSTANCE.getDisplayNameType(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.DISPLAY_NAME_TYPE__LANG: - return getLang(); - case WscommonPackage.DISPLAY_NAME_TYPE__VALUE: - return getValue(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.DISPLAY_NAME_TYPE__LANG: - setLang((String)newValue); - return; - case WscommonPackage.DISPLAY_NAME_TYPE__VALUE: - setValue((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.DISPLAY_NAME_TYPE__LANG: - setLang(LANG_EDEFAULT); - return; - case WscommonPackage.DISPLAY_NAME_TYPE__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.DISPLAY_NAME_TYPE__LANG: - return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); - case WscommonPackage.DISPLAY_NAME_TYPE__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return eDynamicIsSet(eFeature); - } - -} //DisplayNameTypeImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/InitParamImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/InitParamImpl.java deleted file mode 100644 index 5b8d04d8e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/InitParamImpl.java +++ /dev/null @@ -1,332 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.InitParam; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Init Param</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.InitParamImpl#getParamName <em>Param Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.InitParamImpl#getParamValue <em>Param Value</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.InitParamImpl#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.InitParamImpl#getDescriptionTypes <em>Description Types</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class InitParamImpl extends EObjectImpl implements InitParam -{ - /** - * The default value of the '{@link #getParamName() <em>Param Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamName() - * @generated - * @ordered - */ - protected static final String PARAM_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getParamName() <em>Param Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamName() - * @generated - * @ordered - */ - protected String paramName = PARAM_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getParamValue() <em>Param Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamValue() - * @generated - * @ordered - */ - protected static final String PARAM_VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getParamValue() <em>Param Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamValue() - * @generated - * @ordered - */ - protected String paramValue = PARAM_VALUE_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getDescriptionTypes() <em>Description Types</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptionTypes() - * @generated - * @ordered - */ - protected EList descriptionTypes = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected InitParamImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WscommonPackage.eINSTANCE.getInitParam(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getParamName() { - return paramName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParamName(String newParamName) { - String oldParamName = paramName; - paramName = newParamName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WscommonPackage.INIT_PARAM__PARAM_NAME, oldParamName, paramName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getParamValue() { - return paramValue; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParamValue(String newParamValue) { - String oldParamValue = paramValue; - paramValue = newParamValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WscommonPackage.INIT_PARAM__PARAM_VALUE, oldParamValue, paramValue)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getDescription() { - return description; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WscommonPackage.INIT_PARAM__DESCRIPTION, oldDescription, description)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getDescriptionTypes() { - if (descriptionTypes == null) { - descriptionTypes = new EObjectContainmentEList(DescriptionType.class, this, WscommonPackage.INIT_PARAM__DESCRIPTION_TYPES); - } - return descriptionTypes; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WscommonPackage.INIT_PARAM__DESCRIPTION_TYPES: - return ((InternalEList)getDescriptionTypes()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.INIT_PARAM__PARAM_NAME: - return getParamName(); - case WscommonPackage.INIT_PARAM__PARAM_VALUE: - return getParamValue(); - case WscommonPackage.INIT_PARAM__DESCRIPTION: - return getDescription(); - case WscommonPackage.INIT_PARAM__DESCRIPTION_TYPES: - return getDescriptionTypes(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.INIT_PARAM__PARAM_NAME: - setParamName((String)newValue); - return; - case WscommonPackage.INIT_PARAM__PARAM_VALUE: - setParamValue((String)newValue); - return; - case WscommonPackage.INIT_PARAM__DESCRIPTION: - setDescription((String)newValue); - return; - case WscommonPackage.INIT_PARAM__DESCRIPTION_TYPES: - getDescriptionTypes().clear(); - getDescriptionTypes().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.INIT_PARAM__PARAM_NAME: - setParamName(PARAM_NAME_EDEFAULT); - return; - case WscommonPackage.INIT_PARAM__PARAM_VALUE: - setParamValue(PARAM_VALUE_EDEFAULT); - return; - case WscommonPackage.INIT_PARAM__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WscommonPackage.INIT_PARAM__DESCRIPTION_TYPES: - getDescriptionTypes().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.INIT_PARAM__PARAM_NAME: - return PARAM_NAME_EDEFAULT == null ? paramName != null : !PARAM_NAME_EDEFAULT.equals(paramName); - case WscommonPackage.INIT_PARAM__PARAM_VALUE: - return PARAM_VALUE_EDEFAULT == null ? paramValue != null : !PARAM_VALUE_EDEFAULT.equals(paramValue); - case WscommonPackage.INIT_PARAM__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WscommonPackage.INIT_PARAM__DESCRIPTION_TYPES: - return descriptionTypes != null && !descriptionTypes.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (paramName: "); - result.append(paramName); - result.append(", paramValue: "); - result.append(paramValue); - result.append(", description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} //InitParamImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/PortNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/PortNameImpl.java deleted file mode 100644 index 68dd861fe..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/PortNameImpl.java +++ /dev/null @@ -1,165 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.PortName; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Port Name</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.PortNameImpl#getPortName <em>Port Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class PortNameImpl extends EObjectImpl implements PortName -{ - /** - * The default value of the '{@link #getPortName() <em>Port Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortName() - * @generated - * @ordered - */ - protected static final String PORT_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPortName() <em>Port Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortName() - * @generated - * @ordered - */ - protected String portName = PORT_NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PortNameImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WscommonPackage.eINSTANCE.getPortName(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getPortName() { - return portName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPortName(String newPortName) { - String oldPortName = portName; - portName = newPortName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WscommonPackage.PORT_NAME__PORT_NAME, oldPortName, portName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.PORT_NAME__PORT_NAME: - return getPortName(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.PORT_NAME__PORT_NAME: - setPortName((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.PORT_NAME__PORT_NAME: - setPortName(PORT_NAME_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.PORT_NAME__PORT_NAME: - return PORT_NAME_EDEFAULT == null ? portName != null : !PORT_NAME_EDEFAULT.equals(portName); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (portName: "); - result.append(portName); - result.append(')'); - return result.toString(); - } - -} //PortNameImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/SOAPHeaderImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/SOAPHeaderImpl.java deleted file mode 100644 index 34105fdbd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/SOAPHeaderImpl.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.internal.impl.QNameImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>SOAP Header</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class SOAPHeaderImpl extends QNameImpl implements SOAPHeader -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected SOAPHeaderImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WscommonPackage.eINSTANCE.getSOAPHeader(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.SOAP_HEADER__NAMESPACE_URI: - return getNamespaceURI(); - case WscommonPackage.SOAP_HEADER__LOCAL_PART: - return getLocalPart(); - case WscommonPackage.SOAP_HEADER__COMBINED_QNAME: - return getCombinedQName(); - case WscommonPackage.SOAP_HEADER__INTERNAL_PREFIX_OR_NS_URI: - return getInternalPrefixOrNsURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.SOAP_HEADER__NAMESPACE_URI: - setNamespaceURI((String)newValue); - return; - case WscommonPackage.SOAP_HEADER__LOCAL_PART: - setLocalPart((String)newValue); - return; - case WscommonPackage.SOAP_HEADER__COMBINED_QNAME: - setCombinedQName((String)newValue); - return; - case WscommonPackage.SOAP_HEADER__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.SOAP_HEADER__NAMESPACE_URI: - setNamespaceURI(NAMESPACE_URI_EDEFAULT); - return; - case WscommonPackage.SOAP_HEADER__LOCAL_PART: - setLocalPart(LOCAL_PART_EDEFAULT); - return; - case WscommonPackage.SOAP_HEADER__COMBINED_QNAME: - setCombinedQName(COMBINED_QNAME_EDEFAULT); - return; - case WscommonPackage.SOAP_HEADER__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI(INTERNAL_PREFIX_OR_NS_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.SOAP_HEADER__NAMESPACE_URI: - return NAMESPACE_URI_EDEFAULT == null ? namespaceURI != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI); - case WscommonPackage.SOAP_HEADER__LOCAL_PART: - return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart); - case WscommonPackage.SOAP_HEADER__COMBINED_QNAME: - return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName); - case WscommonPackage.SOAP_HEADER__INTERNAL_PREFIX_OR_NS_URI: - return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI); - } - return eDynamicIsSet(eFeature); - } - -} //SOAPHeaderImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/SOAPRoleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/SOAPRoleImpl.java deleted file mode 100644 index 6133293e5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/SOAPRoleImpl.java +++ /dev/null @@ -1,165 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>SOAP Role</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.SOAPRoleImpl#getSoapRole <em>Soap Role</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class SOAPRoleImpl extends EObjectImpl implements SOAPRole -{ - /** - * The default value of the '{@link #getSoapRole() <em>Soap Role</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSoapRole() - * @generated - * @ordered - */ - protected static final String SOAP_ROLE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSoapRole() <em>Soap Role</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSoapRole() - * @generated - * @ordered - */ - protected String soapRole = SOAP_ROLE_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected SOAPRoleImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WscommonPackage.eINSTANCE.getSOAPRole(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getSoapRole() { - return soapRole; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSoapRole(String newSoapRole) { - String oldSoapRole = soapRole; - soapRole = newSoapRole; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WscommonPackage.SOAP_ROLE__SOAP_ROLE, oldSoapRole, soapRole)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.SOAP_ROLE__SOAP_ROLE: - return getSoapRole(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.SOAP_ROLE__SOAP_ROLE: - setSoapRole((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.SOAP_ROLE__SOAP_ROLE: - setSoapRole(SOAP_ROLE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WscommonPackage.SOAP_ROLE__SOAP_ROLE: - return SOAP_ROLE_EDEFAULT == null ? soapRole != null : !SOAP_ROLE_EDEFAULT.equals(soapRole); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (soapRole: "); - result.append(soapRole); - result.append(')'); - return result.toString(); - } - -} //SOAPRoleImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/WscommonFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/WscommonFactoryImpl.java deleted file mode 100644 index de90c4223..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/WscommonFactoryImpl.java +++ /dev/null @@ -1,141 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType; -import org.eclipse.jst.j2ee.webservice.wscommon.InitParam; -import org.eclipse.jst.j2ee.webservice.wscommon.PortName; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class WscommonFactoryImpl extends EFactoryImpl implements WscommonFactory -{ - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WscommonFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case WscommonPackage.INIT_PARAM: return createInitParam(); - case WscommonPackage.SOAP_HEADER: return createSOAPHeader(); - case WscommonPackage.SOAP_ROLE: return createSOAPRole(); - case WscommonPackage.PORT_NAME: return createPortName(); - case WscommonPackage.DESCRIPTION_TYPE: return createDescriptionType(); - case WscommonPackage.DISPLAY_NAME_TYPE: return createDisplayNameType(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public InitParam createInitParam() { - InitParamImpl initParam = new InitParamImpl(); - return initParam; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public SOAPHeader createSOAPHeader() { - SOAPHeaderImpl soapHeader = new SOAPHeaderImpl(); - return soapHeader; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public SOAPRole createSOAPRole() { - SOAPRoleImpl soapRole = new SOAPRoleImpl(); - return soapRole; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PortName createPortName() { - PortNameImpl portName = new PortNameImpl(); - return portName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DescriptionType createDescriptionType() { - DescriptionTypeImpl descriptionType = new DescriptionTypeImpl(); - return descriptionType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DisplayNameType createDisplayNameType() { - DisplayNameTypeImpl displayNameType = new DisplayNameTypeImpl(); - return displayNameType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WscommonPackage getWscommonPackage() { - return (WscommonPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static WscommonPackage getPackage() { - return WscommonPackage.eINSTANCE; - } - -} //WscommonFactoryImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/WscommonPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/WscommonPackageImpl.java deleted file mode 100644 index d8d68ac69..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/impl/WscommonPackageImpl.java +++ /dev/null @@ -1,416 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType; -import org.eclipse.jst.j2ee.webservice.wscommon.InitParam; -import org.eclipse.jst.j2ee.webservice.wscommon.PortName; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class WscommonPackageImpl extends EPackageImpl implements WscommonPackage -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass initParamEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass soapHeaderEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass soapRoleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass portNameEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass descriptionTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass displayNameTypeEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - * <p>Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage#eNS_URI - * @see #init() - * @generated - */ - private WscommonPackageImpl() { - super(eNS_URI, WscommonFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - * <p>Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - * <p>Invocation of this method will not affect any packages that have - * already been initialized. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static WscommonPackage init() { - if (isInited) return (WscommonPackage)EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI); - - // Obtain or create and register package - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new WscommonPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE); - - // Create package meta-data objects - theWscommonPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theCommonPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theTaglibPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - theWsddPackage.createPackageContents(); - - // Initialize created meta-data - theWscommonPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theTaglibPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - theWsddPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theWscommonPackage.freeze(); - - return theWscommonPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getInitParam() { - return initParamEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getInitParam_ParamName() { - return (EAttribute)initParamEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getInitParam_ParamValue() { - return (EAttribute)initParamEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getInitParam_Description() { - return (EAttribute)initParamEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getInitParam_DescriptionTypes() { - return (EReference)initParamEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getSOAPHeader() { - return soapHeaderEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getSOAPRole() { - return soapRoleEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getSOAPRole_SoapRole() { - return (EAttribute)soapRoleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getPortName() { - return portNameEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortName_PortName() { - return (EAttribute)portNameEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getDescriptionType() { - return descriptionTypeEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getDisplayNameType() { - return displayNameTypeEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WscommonFactory getWscommonFactory() { - return (WscommonFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - initParamEClass = createEClass(INIT_PARAM); - createEAttribute(initParamEClass, INIT_PARAM__PARAM_NAME); - createEAttribute(initParamEClass, INIT_PARAM__PARAM_VALUE); - createEAttribute(initParamEClass, INIT_PARAM__DESCRIPTION); - createEReference(initParamEClass, INIT_PARAM__DESCRIPTION_TYPES); - - soapHeaderEClass = createEClass(SOAP_HEADER); - - soapRoleEClass = createEClass(SOAP_ROLE); - createEAttribute(soapRoleEClass, SOAP_ROLE__SOAP_ROLE); - - portNameEClass = createEClass(PORT_NAME); - createEAttribute(portNameEClass, PORT_NAME__PORT_NAME); - - descriptionTypeEClass = createEClass(DESCRIPTION_TYPE); - - displayNameTypeEClass = createEClass(DISPLAY_NAME_TYPE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - - // Add supertypes to classes - soapHeaderEClass.getESuperTypes().add(theCommonPackage.getQName()); - descriptionTypeEClass.getESuperTypes().add(theCommonPackage.getDescription()); - displayNameTypeEClass.getESuperTypes().add(theCommonPackage.getDisplayName()); - - // Initialize classes and features; add operations and parameters - initEClass(initParamEClass, InitParam.class, "InitParam", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getInitParam_ParamName(), ecorePackage.getEString(), "paramName", null, 0, 1, InitParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getInitParam_ParamValue(), ecorePackage.getEString(), "paramValue", null, 0, 1, InitParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getInitParam_Description(), ecorePackage.getEString(), "description", null, 0, 1, InitParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getInitParam_DescriptionTypes(), this.getDescriptionType(), null, "descriptionTypes", null, 0, -1, InitParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(soapHeaderEClass, SOAPHeader.class, "SOAPHeader", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(soapRoleEClass, SOAPRole.class, "SOAPRole", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSOAPRole_SoapRole(), ecorePackage.getEString(), "soapRole", null, 0, 1, SOAPRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(portNameEClass, PortName.class, "PortName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPortName_PortName(), ecorePackage.getEString(), "portName", null, 0, 1, PortName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(descriptionTypeEClass, DescriptionType.class, "DescriptionType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(displayNameTypeEClass, DisplayNameType.class, "DisplayNameType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - } - -} //WscommonPackageImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/util/WscommonAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/util/WscommonAdapterFactory.java deleted file mode 100644 index 1ae3895a7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/util/WscommonAdapterFactory.java +++ /dev/null @@ -1,269 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType; -import org.eclipse.jst.j2ee.webservice.wscommon.InitParam; -import org.eclipse.jst.j2ee.webservice.wscommon.PortName; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; - - -/** - * <!-- begin-user-doc --> - * The <b>Adapter Factory</b> for the model. - * It provides an adapter <code>createXXX</code> method for each class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage - * @generated - */ -public class WscommonAdapterFactory extends AdapterFactoryImpl -{ - - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static WscommonPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WscommonAdapterFactory() { - if (modelPackage == null) { - modelPackage = WscommonPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * <!-- begin-user-doc --> - * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. - * <!-- end-user-doc --> - * @return whether this factory is applicable for the type of the object. - * @generated - */ - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WscommonSwitch modelSwitch = - new WscommonSwitch() { - public Object caseInitParam(InitParam object) { - return createInitParamAdapter(); - } - public Object caseSOAPHeader(SOAPHeader object) { - return createSOAPHeaderAdapter(); - } - public Object caseSOAPRole(SOAPRole object) { - return createSOAPRoleAdapter(); - } - public Object casePortName(PortName object) { - return createPortNameAdapter(); - } - public Object caseDescriptionType(DescriptionType object) { - return createDescriptionTypeAdapter(); - } - public Object caseDisplayNameType(DisplayNameType object) { - return createDisplayNameTypeAdapter(); - } - public Object caseQName(QName object) { - return createQNameAdapter(); - } - public Object caseDescription(Description object) { - return createDescriptionAdapter(); - } - public Object caseDisplayName(DisplayName object) { - return createDisplayNameAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param target the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam <em>Init Param</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wscommon.InitParam - * @generated - */ - public Adapter createInitParamAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader <em>SOAP Header</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader - * @generated - */ - public Adapter createSOAPHeaderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole <em>SOAP Role</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole - * @generated - */ - public Adapter createSOAPRoleAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wscommon.PortName <em>Port Name</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wscommon.PortName - * @generated - */ - public Adapter createPortNameAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType <em>Description Type</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType - * @generated - */ - public Adapter createDescriptionTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType <em>Display Name Type</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType - * @generated - */ - public Adapter createDisplayNameTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.Description <em>Description</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.Description - * @generated - */ - public Adapter createDescriptionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DisplayName <em>Display Name</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DisplayName - * @generated - */ - public Adapter createDisplayNameAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.QName <em>QName</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.QName - * @generated - */ - public Adapter createQNameAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //WscommonAdapterFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/util/WscommonSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/util/WscommonSwitch.java deleted file mode 100644 index de51595c1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/internal/util/WscommonSwitch.java +++ /dev/null @@ -1,297 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wscommon.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType; -import org.eclipse.jst.j2ee.webservice.wscommon.InitParam; -import org.eclipse.jst.j2ee.webservice.wscommon.PortName; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; - - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage - * @generated - */ -public class WscommonSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static WscommonPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WscommonSwitch() { - if (modelPackage == null) { - modelPackage = WscommonPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case WscommonPackage.INIT_PARAM: { - InitParam initParam = (InitParam)theEObject; - Object result = caseInitParam(initParam); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WscommonPackage.SOAP_HEADER: { - SOAPHeader soapHeader = (SOAPHeader)theEObject; - Object result = caseSOAPHeader(soapHeader); - if (result == null) result = caseQName(soapHeader); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WscommonPackage.SOAP_ROLE: { - SOAPRole soapRole = (SOAPRole)theEObject; - Object result = caseSOAPRole(soapRole); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WscommonPackage.PORT_NAME: { - PortName portName = (PortName)theEObject; - Object result = casePortName(portName); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WscommonPackage.DESCRIPTION_TYPE: { - DescriptionType descriptionType = (DescriptionType)theEObject; - Object result = caseDescriptionType(descriptionType); - if (result == null) result = caseDescription(descriptionType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WscommonPackage.DISPLAY_NAME_TYPE: { - DisplayNameType displayNameType = (DisplayNameType)theEObject; - Object result = caseDisplayNameType(displayNameType); - if (result == null) result = caseDisplayName(displayNameType); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Init Param</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Init Param</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseInitParam(InitParam object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>SOAP Header</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>SOAP Header</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseSOAPHeader(SOAPHeader object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>SOAP Role</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>SOAP Role</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseSOAPRole(SOAPRole object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Port Name</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Port Name</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object casePortName(PortName object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionType(DescriptionType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Display Name Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Display Name Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDisplayNameType(DisplayNameType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescription(Description object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Display Name</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Display Name</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDisplayName(DisplayName object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>QName</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>QName</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseQName(QName object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //WscommonSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/package.xml b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/package.xml deleted file mode 100644 index 2d6ffc703..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/package.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<html> - <head> - <meta - name="root" - content="../../../../../../../" /> - <title>EJB Artifact Edit api overview</title> - </head> - - <body> - <abstract> - This package includes the web services common model api. Using this api the common web services model artifacts (SoapHeaders, Ports, DisplayName, InitParams etc.) - can be created and accessed. - </abstract> - - <a href="#top">top</a> - </body> -</html> -
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/BeanLink.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/BeanLink.java deleted file mode 100644 index 4f98b0353..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/BeanLink.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Bean Link</b></em>'. - * <!-- end-user-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getBeanLink() - * @model - * @generated - * @since 1.0 */ -public interface BeanLink extends EObject{ - // BeanLink -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/EJBLink.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/EJBLink.java deleted file mode 100644 index 9b6402865..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/EJBLink.java +++ /dev/null @@ -1,71 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>EJB Link</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The ejb-link element is used in the service-impl-bean element to specify that a Service Implementation Bean is defined as a Web Service Endpoint. - * - * The value of the ejb-link element must be the ejb-name of an enterprise bean in the same ejb-jar file. - * - * Used in: service-impl-bean - * - * Examples: - * <ejb-link>EmployeeRecord</ejb-link> - * <ejb-link>../products/product.jar#ProductEJB</ejb-link> - * - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.EJBLink#getEjbLink <em>Ejb Link</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getEJBLink() - * @model - * @generated - * @since 1.0 */ -public interface EJBLink extends BeanLink{ - /** - * Returns the value of the '<em><b>Ejb Link</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Ejb Link</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Ejb Link</em>' attribute. - * @see #setEjbLink(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getEJBLink_EjbLink() - * @model - * @generated - */ - String getEjbLink(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.EJBLink#getEjbLink <em>Ejb Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Ejb Link</em>' attribute. - * @see #getEjbLink() - * @generated - */ - void setEjbLink(String value); - -} // EJBLink diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/Handler.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/Handler.java deleted file mode 100644 index c0db51b99..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/Handler.java +++ /dev/null @@ -1,145 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Handler</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * Declares the handler for a port-component. Handlers can access the init-param name/value pairs using the HandlerInfo interface. - * - * Used in: port-component - * - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getHandlerName <em>Handler Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getHandlerClass <em>Handler Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getInitParams <em>Init Params</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getSoapHeaders <em>Soap Headers</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getSoapRoles <em>Soap Roles</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getHandler() - * @model - * @generated - * @since 1.0 */ -public interface Handler extends CompatibilityDescriptionGroup{ - /** - * Returns the value of the '<em><b>Handler Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Handler Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Handler Name</em>' attribute. - * @see #setHandlerName(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getHandler_HandlerName() - * @model - * @generated - */ - String getHandlerName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getHandlerName <em>Handler Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Handler Name</em>' attribute. - * @see #getHandlerName() - * @generated - */ - void setHandlerName(String value); - - /** - * Returns the value of the '<em><b>Handler Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Handler Class</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Handler Class</em>' attribute. - * @see #setHandlerClass(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getHandler_HandlerClass() - * @model - * @generated - */ - String getHandlerClass(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getHandlerClass <em>Handler Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Handler Class</em>' attribute. - * @see #getHandlerClass() - * @generated - */ - void setHandlerClass(String value); - - /** - * Returns the value of the '<em><b>Init Params</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wscommon.InitParam}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Init Params</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Init Params</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getHandler_InitParams() - * @model type="org.eclipse.jst.j2ee.webservice.wscommon.InitParam" containment="true" - * @generated - */ - EList getInitParams(); - - /** - * Returns the value of the '<em><b>Soap Headers</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Soap Headers</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Soap Headers</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getHandler_SoapHeaders() - * @model type="org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader" containment="true" - * @generated - */ - EList getSoapHeaders(); - - /** - * Returns the value of the '<em><b>Soap Roles</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Soap Roles</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Soap Roles</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getHandler_SoapRoles() - * @model type="org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole" containment="true" - * @generated - */ - EList getSoapRoles(); - -} // Handler diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/PortComponent.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/PortComponent.java deleted file mode 100644 index 95c61b516..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/PortComponent.java +++ /dev/null @@ -1,364 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Port Component</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The port-component element associates a WSDL port with a Web service interface and implementation. It defines the name of the port as a component, optional description, optional display name, optional iconic representations, WSDL port QName, Service Endpoint Interface, Service Implementation Bean. - * - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getPortComponentName <em>Port Component Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getServiceEndpointInterface <em>Service Endpoint Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getSmallIcon <em>Small Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getLargeIcon <em>Large Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDisplayName <em>Display Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getWsdlPort <em>Wsdl Port</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getServiceImplBean <em>Service Impl Bean</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getHandlers <em>Handlers</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDescriptionType <em>Description Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDisplayNameType <em>Display Name Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getIconType <em>Icon Type</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent() - * @model - * @generated - * @since 1.0 */ -public interface PortComponent extends EObject{ - /** - * Returns the value of the '<em><b>Port Component Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Port Component Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The port-component-name element specifies a port component's name. This name is assigned by the module producer to name the service implementation bean in the module's deployment descriptor. The name must be unique among the port component names defined in the same module. - * - * - * <!-- end-model-doc --> - * @return the value of the '<em>Port Component Name</em>' attribute. - * @see #setPortComponentName(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_PortComponentName() - * @model - * @generated - */ - String getPortComponentName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getPortComponentName <em>Port Component Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Port Component Name</em>' attribute. - * @see #getPortComponentName() - * @generated - */ - void setPortComponentName(String value); - - /** - * Returns the value of the '<em><b>Service Endpoint Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Endpoint Interface</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The service-endpoint-interface element contains the fully-qualified name of the port component's Service Endpoint Interface. - * - * <!-- end-model-doc --> - * @return the value of the '<em>Service Endpoint Interface</em>' attribute. - * @see #setServiceEndpointInterface(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_ServiceEndpointInterface() - * @model - * @generated - */ - String getServiceEndpointInterface(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getServiceEndpointInterface <em>Service Endpoint Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Service Endpoint Interface</em>' attribute. - * @see #getServiceEndpointInterface() - * @generated - */ - void setServiceEndpointInterface(String value); - - /** - * Returns the value of the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Small Icon</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Small Icon</em>' attribute. - * @see #setSmallIcon(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_SmallIcon() - * @model - * @generated - */ - String getSmallIcon(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getSmallIcon <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Small Icon</em>' attribute. - * @see #getSmallIcon() - * @generated - */ - void setSmallIcon(String value); - - /** - * Returns the value of the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Large Icon</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Large Icon</em>' attribute. - * @see #setLargeIcon(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_LargeIcon() - * @model - * @generated - */ - String getLargeIcon(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getLargeIcon <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Large Icon</em>' attribute. - * @see #getLargeIcon() - * @generated - */ - void setLargeIcon(String value); - - /** - * Returns the value of the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Description</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Description</em>' attribute. - * @see #setDescription(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDescription <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Description</em>' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Display Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Display Name</em>' attribute. - * @see #setDisplayName(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_DisplayName() - * @model - * @generated - */ - String getDisplayName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDisplayName <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Display Name</em>' attribute. - * @see #getDisplayName() - * @generated - */ - void setDisplayName(String value); - - /** - * Returns the value of the '<em><b>Wsdl Port</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Port</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Port</em>' containment reference. - * @see #setWsdlPort(WSDLPort) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_WsdlPort() - * @model containment="true" required="true" - * @generated - */ - WSDLPort getWsdlPort(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getWsdlPort <em>Wsdl Port</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Port</em>' containment reference. - * @see #getWsdlPort() - * @generated - */ - void setWsdlPort(WSDLPort value); - - /** - * Returns the value of the '<em><b>Service Impl Bean</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Impl Bean</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Service Impl Bean</em>' containment reference. - * @see #setServiceImplBean(ServiceImplBean) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_ServiceImplBean() - * @model containment="true" required="true" - * @generated - */ - ServiceImplBean getServiceImplBean(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getServiceImplBean <em>Service Impl Bean</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Service Impl Bean</em>' containment reference. - * @see #getServiceImplBean() - * @generated - */ - void setServiceImplBean(ServiceImplBean value); - - /** - * Returns the value of the '<em><b>Handlers</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wsdd.Handler}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Handlers</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Handlers</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_Handlers() - * @model type="org.eclipse.jst.j2ee.webservice.wsdd.Handler" containment="true" - * @generated - */ - EList getHandlers(); - - /** - * Returns the value of the '<em><b>Description Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Description Type</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Description Type</em>' containment reference. - * @see #setDescriptionType(DescriptionType) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_DescriptionType() - * @model containment="true" - * @generated - */ - DescriptionType getDescriptionType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDescriptionType <em>Description Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Description Type</em>' containment reference. - * @see #getDescriptionType() - * @generated - */ - void setDescriptionType(DescriptionType value); - - /** - * Returns the value of the '<em><b>Display Name Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Display Name Type</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Display Name Type</em>' containment reference. - * @see #setDisplayNameType(DisplayNameType) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_DisplayNameType() - * @model containment="true" - * @generated - */ - DisplayNameType getDisplayNameType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDisplayNameType <em>Display Name Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Display Name Type</em>' containment reference. - * @see #getDisplayNameType() - * @generated - */ - void setDisplayNameType(DisplayNameType value); - - /** - * Returns the value of the '<em><b>Icon Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Icon Type</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Icon Type</em>' containment reference. - * @see #setIconType(IconType) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getPortComponent_IconType() - * @model containment="true" - * @generated - */ - IconType getIconType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getIconType <em>Icon Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Icon Type</em>' containment reference. - * @see #getIconType() - * @generated - */ - void setIconType(IconType value); - -} // PortComponent diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/ServiceImplBean.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/ServiceImplBean.java deleted file mode 100644 index b0036b2b0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/ServiceImplBean.java +++ /dev/null @@ -1,119 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Service Impl Bean</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The service-impl-bean element defines the Web service implementation.A service implementation can be an EJB bean class or JAX-RPC web component. Existing EJB implementations are exposed as a Web service using an ejb-link. - * - * Used in: port-component - * - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getEEJBLink <em>EEJB Link</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getEServletLink <em>EServlet Link</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getBeanLink <em>Bean Link</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getServiceImplBean() - * @model - * @generated - * @since 1.0 */ -public interface ServiceImplBean extends EObject{ - /** - * Returns the value of the '<em><b>EEJB Link</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>EEJB Link</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>EEJB Link</em>' containment reference. - * @see #setEEJBLink(EJBLink) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getServiceImplBean_EEJBLink() - * @model containment="true" - * @generated - */ - EJBLink getEEJBLink(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getEEJBLink <em>EEJB Link</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>EEJB Link</em>' containment reference. - * @see #getEEJBLink() - * @generated - */ - void setEEJBLink(EJBLink value); - - /** - * Returns the value of the '<em><b>EServlet Link</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>EServlet Link</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>EServlet Link</em>' containment reference. - * @see #setEServletLink(ServletLink) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getServiceImplBean_EServletLink() - * @model containment="true" - * @generated - */ - ServletLink getEServletLink(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getEServletLink <em>EServlet Link</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>EServlet Link</em>' containment reference. - * @see #getEServletLink() - * @generated - */ - void setEServletLink(ServletLink value); - - /** - * Returns the value of the '<em><b>Bean Link</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Bean Link</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Bean Link</em>' containment reference. - * @see #setBeanLink(BeanLink) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getServiceImplBean_BeanLink() - * @model containment="true" - * @generated - */ - BeanLink getBeanLink(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getBeanLink <em>Bean Link</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Bean Link</em>' containment reference. - * @see #getBeanLink() - * @generated - */ - void setBeanLink(BeanLink value); - -} // ServiceImplBean diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/ServletLink.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/ServletLink.java deleted file mode 100644 index 94640df1a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/ServletLink.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Servlet Link</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The servlet-link element is used in the service-impl-bean element to specify that a Service Implementation Bean is defined as a JAX-RPC Service Endpoint. - * - * The value of the servlet-link element must be the servlet-name of a JAX-RPC Service Endpoint in the same WAR file. - * - * Used in: service-impl-bean - * - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.ServletLink#getServletLink <em>Servlet Link</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getServletLink() - * @model - * @generated - * @since 1.0 */ -public interface ServletLink extends BeanLink{ - /** - * Returns the value of the '<em><b>Servlet Link</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Servlet Link</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Servlet Link</em>' attribute. - * @see #setServletLink(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getServletLink_ServletLink() - * @model - * @generated - */ - String getServletLink(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServletLink#getServletLink <em>Servlet Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Servlet Link</em>' attribute. - * @see #getServletLink() - * @generated - */ - void setServletLink(String value); - -} // ServletLink diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WSDLPort.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WSDLPort.java deleted file mode 100644 index 277f49d35..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WSDLPort.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - -import org.eclipse.jst.j2ee.common.QName; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>WSDL Port</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * Defines the name space and local name part of the WSDL port QName. - * - * <!-- end-model-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWSDLPort() - * @model - * @generated - * @since 1.0 */ -public interface WSDLPort extends QName{ - // WSDLPort -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WebServiceDescription.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WebServiceDescription.java deleted file mode 100644 index 0519c9d71..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WebServiceDescription.java +++ /dev/null @@ -1,346 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Web Service Description</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The webservice-description element defines a WSDL document file and the set of Port components associated with the WSDL ports defined in the WSDL document. There may be multiple webservice-descriptions defined within a module. - * - * All WSDL file ports must have a corresponding port-component element defined. - * - * Used in: webservices - * - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getWebServiceDescriptionName <em>Web Service Description Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getWsdlFile <em>Wsdl File</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getSmallIcon <em>Small Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getLargeIcon <em>Large Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDisplayName <em>Display Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getPortComponents <em>Port Components</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDescriptionType <em>Description Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDisplayNameType <em>Display Name Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getIconType <em>Icon Type</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription() - * @model - * @generated - * @since 1.0 */ -public interface WebServiceDescription extends EObject{ - /** - * Returns the value of the '<em><b>Jaxrpc Mapping File</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Jaxrpc Mapping File</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The jaxrpc-mapping-file element contains the name of a file that describes the JAX-RPC mapping between the Java interaces used by the application and the WSDL description in the wsdl-file. The file name is a relative path within the module. - * - * <!-- end-model-doc --> - * @return the value of the '<em>Jaxrpc Mapping File</em>' attribute. - * @see #setJaxrpcMappingFile(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_JaxrpcMappingFile() - * @model - * @generated - */ - String getJaxrpcMappingFile(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Jaxrpc Mapping File</em>' attribute. - * @see #getJaxrpcMappingFile() - * @generated - */ - void setJaxrpcMappingFile(String value); - - /** - * Returns the value of the '<em><b>Web Service Description Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Web Service Description Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The webservice-description-name identifies the collection of port-components associated with a WSDL file and JAX-RPC mapping. The name must be unique within the deployment descriptor. - * - * - * - * <!-- end-model-doc --> - * @return the value of the '<em>Web Service Description Name</em>' attribute. - * @see #setWebServiceDescriptionName(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_WebServiceDescriptionName() - * @model - * @generated - */ - String getWebServiceDescriptionName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getWebServiceDescriptionName <em>Web Service Description Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Web Service Description Name</em>' attribute. - * @see #getWebServiceDescriptionName() - * @generated - */ - void setWebServiceDescriptionName(String value); - - /** - * Returns the value of the '<em><b>Wsdl File</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl File</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The wsdl-file element contains the name of a WSDL file in the module. The file name is a relative path within the module. - * - * <!-- end-model-doc --> - * @return the value of the '<em>Wsdl File</em>' attribute. - * @see #setWsdlFile(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_WsdlFile() - * @model - * @generated - */ - String getWsdlFile(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getWsdlFile <em>Wsdl File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl File</em>' attribute. - * @see #getWsdlFile() - * @generated - */ - void setWsdlFile(String value); - - /** - * Returns the value of the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Small Icon</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Small Icon</em>' attribute. - * @see #setSmallIcon(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_SmallIcon() - * @model - * @generated - */ - String getSmallIcon(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getSmallIcon <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Small Icon</em>' attribute. - * @see #getSmallIcon() - * @generated - */ - void setSmallIcon(String value); - - /** - * Returns the value of the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Large Icon</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Large Icon</em>' attribute. - * @see #setLargeIcon(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_LargeIcon() - * @model - * @generated - */ - String getLargeIcon(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getLargeIcon <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Large Icon</em>' attribute. - * @see #getLargeIcon() - * @generated - */ - void setLargeIcon(String value); - - /** - * Returns the value of the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Description</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Description</em>' attribute. - * @see #setDescription(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDescription <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Description</em>' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Display Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Display Name</em>' attribute. - * @see #setDisplayName(String) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_DisplayName() - * @model - * @generated - */ - String getDisplayName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDisplayName <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Display Name</em>' attribute. - * @see #getDisplayName() - * @generated - */ - void setDisplayName(String value); - - /** - * Returns the value of the '<em><b>Port Components</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Port Components</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Port Components</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_PortComponents() - * @model type="org.eclipse.jst.j2ee.webservice.wsdd.PortComponent" containment="true" required="true" - * @generated - */ - EList getPortComponents(); - - /** - * Returns the value of the '<em><b>Description Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Description Type</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Description Type</em>' containment reference. - * @see #setDescriptionType(DescriptionType) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_DescriptionType() - * @model containment="true" - * @generated - */ - DescriptionType getDescriptionType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDescriptionType <em>Description Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Description Type</em>' containment reference. - * @see #getDescriptionType() - * @generated - */ - void setDescriptionType(DescriptionType value); - - /** - * Returns the value of the '<em><b>Display Name Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Display Name Type</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Display Name Type</em>' containment reference. - * @see #setDisplayNameType(DisplayNameType) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_DisplayNameType() - * @model containment="true" - * @generated - */ - DisplayNameType getDisplayNameType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDisplayNameType <em>Display Name Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Display Name Type</em>' containment reference. - * @see #getDisplayNameType() - * @generated - */ - void setDisplayNameType(DisplayNameType value); - - /** - * Returns the value of the '<em><b>Icon Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Icon Type</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Icon Type</em>' containment reference. - * @see #setIconType(IconType) - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServiceDescription_IconType() - * @model containment="true" - * @generated - */ - IconType getIconType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getIconType <em>Icon Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Icon Type</em>' containment reference. - * @see #getIconType() - * @generated - */ - void setIconType(IconType value); - -} // WebServiceDescription diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WebServices.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WebServices.java deleted file mode 100644 index 1a24dcf8c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WebServices.java +++ /dev/null @@ -1,55 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Web Services</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The webservices element is the root element for the web services deployment descriptor. It specifies the set of Web service descriptions that are to be deployed into the J2EE Application Server and the dependencies they have on container resources and services. - * - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServices#getWebServiceDescriptions <em>Web Service Descriptions</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServices() - * @model - * @generated - * @since 1.0 */ -public interface WebServices extends CompatibilityDescriptionGroup{ - /** - * Returns the value of the '<em><b>Web Service Descriptions</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Web Service Descriptions</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Web Service Descriptions</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#getWebServices_WebServiceDescriptions() - * @model type="org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription" containment="true" required="true" - * @generated - */ - EList getWebServiceDescriptions(); - -} // WebServices diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddFactory.java deleted file mode 100644 index 88060b24b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddFactory.java +++ /dev/null @@ -1,123 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - -import org.eclipse.emf.ecore.EFactory; - -/** - * <!-- begin-user-doc --> - * The <b>Factory</b> for the model. - * It provides a create method for each non-abstract class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage - * @generated - * @since 1.0 */ -public interface WsddFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - WsddFactory eINSTANCE = new org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddFactoryImpl(); - - /** - * Returns a new object of class '<em>Web Services</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Web Services</em>'. - * @generated - */ - WebServices createWebServices(); - - /** - * Returns a new object of class '<em>Web Service Description</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Web Service Description</em>'. - * @generated - */ - WebServiceDescription createWebServiceDescription(); - - /** - * Returns a new object of class '<em>Port Component</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Port Component</em>'. - * @generated - */ - PortComponent createPortComponent(); - - /** - * Returns a new object of class '<em>WSDL Port</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>WSDL Port</em>'. - * @generated - */ - WSDLPort createWSDLPort(); - - /** - * Returns a new object of class '<em>Service Impl Bean</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Service Impl Bean</em>'. - * @generated - */ - ServiceImplBean createServiceImplBean(); - - /** - * Returns a new object of class '<em>Servlet Link</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Servlet Link</em>'. - * @generated - */ - ServletLink createServletLink(); - - /** - * Returns a new object of class '<em>EJB Link</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>EJB Link</em>'. - * @generated - */ - EJBLink createEJBLink(); - - /** - * Returns a new object of class '<em>Handler</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Handler</em>'. - * @generated - */ - Handler createHandler(); - - /** - * Returns a new object of class '<em>Bean Link</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Bean Link</em>'. - * @generated - */ - BeanLink createBeanLink(); - - /** - * <!-- begin-user-doc --> - * This method is NOT api, and may change in future releases. - * EMF package classes should be access via their "eINSTANCE" static fields - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - WsddPackage getWsddPackage(); - -} //WsddFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddPackage.java deleted file mode 100644 index 962858682..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddPackage.java +++ /dev/null @@ -1,1190 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jst.j2ee.common.CommonPackage; - - -/** - * <!-- begin-user-doc --> - * The <b>Package</b> for the model. - * It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * /** - * <p> - * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. - * </p> - * - * - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory - * @model kind="package" - * @generated - * @since 1.0 */ -public interface WsddPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "wsdd";//$NON-NLS-1$ - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "wsdd.xmi";//$NON-NLS-1$ - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.webservice.wsdd";//$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - WsddPackage eINSTANCE = org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServicesImpl <em>Web Services</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServicesImpl - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl#getWebServices() - * @generated - */ - int WEB_SERVICES = 0; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - - /** - * The feature id for the '<em><b>Web Service Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES__WEB_SERVICE_DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>Web Services</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICES_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl <em>Web Service Description</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl#getWebServiceDescription() - * @generated - */ - int WEB_SERVICE_DESCRIPTION = 1; - - /** - * The feature id for the '<em><b>Jaxrpc Mapping File</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__JAXRPC_MAPPING_FILE = 0; - - /** - * The feature id for the '<em><b>Web Service Description Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__WEB_SERVICE_DESCRIPTION_NAME = 1; - - /** - * The feature id for the '<em><b>Wsdl File</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__WSDL_FILE = 2; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__SMALL_ICON = 3; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__LARGE_ICON = 4; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__DESCRIPTION = 5; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__DISPLAY_NAME = 6; - - /** - * The feature id for the '<em><b>Port Components</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__PORT_COMPONENTS = 7; - - /** - * The feature id for the '<em><b>Description Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE = 8; - - /** - * The feature id for the '<em><b>Display Name Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE = 9; - - /** - * The feature id for the '<em><b>Icon Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION__ICON_TYPE = 10; - - /** - * The number of structural features of the the '<em>Web Service Description</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_SERVICE_DESCRIPTION_FEATURE_COUNT = 11; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl <em>Port Component</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl#getPortComponent() - * @generated - */ - int PORT_COMPONENT = 2; - - /** - * The feature id for the '<em><b>Port Component Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__PORT_COMPONENT_NAME = 0; - - /** - * The feature id for the '<em><b>Service Endpoint Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__SERVICE_ENDPOINT_INTERFACE = 1; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__SMALL_ICON = 2; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__LARGE_ICON = 3; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__DESCRIPTION = 4; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__DISPLAY_NAME = 5; - - /** - * The feature id for the '<em><b>Wsdl Port</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__WSDL_PORT = 6; - - /** - * The feature id for the '<em><b>Service Impl Bean</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__SERVICE_IMPL_BEAN = 7; - - /** - * The feature id for the '<em><b>Handlers</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__HANDLERS = 8; - - /** - * The feature id for the '<em><b>Description Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__DESCRIPTION_TYPE = 9; - - /** - * The feature id for the '<em><b>Display Name Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__DISPLAY_NAME_TYPE = 10; - - /** - * The feature id for the '<em><b>Icon Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT__ICON_TYPE = 11; - - /** - * The number of structural features of the the '<em>Port Component</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_COMPONENT_FEATURE_COUNT = 12; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WSDLPortImpl <em>WSDL Port</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WSDLPortImpl - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl#getWSDLPort() - * @generated - */ - int WSDL_PORT = 3; - - /** - * The feature id for the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_PORT__NAMESPACE_URI = CommonPackage.QNAME__NAMESPACE_URI; - - /** - * The feature id for the '<em><b>Local Part</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_PORT__LOCAL_PART = CommonPackage.QNAME__LOCAL_PART; - - /** - * The feature id for the '<em><b>Combined QName</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_PORT__COMBINED_QNAME = CommonPackage.QNAME__COMBINED_QNAME; - - /** - * The feature id for the '<em><b>Internal Prefix Or Ns URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_PORT__INTERNAL_PREFIX_OR_NS_URI = CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI; - - /** - * The number of structural features of the the '<em>WSDL Port</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_PORT_FEATURE_COUNT = CommonPackage.QNAME_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.ServiceImplBeanImpl <em>Service Impl Bean</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.ServiceImplBeanImpl - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl#getServiceImplBean() - * @generated - */ - int SERVICE_IMPL_BEAN = 4; - - /** - * The feature id for the '<em><b>EEJB Link</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_IMPL_BEAN__EEJB_LINK = 0; - - /** - * The feature id for the '<em><b>EServlet Link</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_IMPL_BEAN__ESERVLET_LINK = 1; - - /** - * The feature id for the '<em><b>Bean Link</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_IMPL_BEAN__BEAN_LINK = 2; - - /** - * The number of structural features of the the '<em>Service Impl Bean</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_IMPL_BEAN_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.BeanLinkImpl <em>Bean Link</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.BeanLinkImpl - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl#getBeanLink() - * @generated - */ - int BEAN_LINK = 8; - - /** - * The number of structural features of the the '<em>Bean Link</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BEAN_LINK_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.ServletLinkImpl <em>Servlet Link</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.ServletLinkImpl - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl#getServletLink() - * @generated - */ - int SERVLET_LINK = 5; - - /** - * The feature id for the '<em><b>Servlet Link</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVLET_LINK__SERVLET_LINK = BEAN_LINK_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>Servlet Link</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVLET_LINK_FEATURE_COUNT = BEAN_LINK_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.EJBLinkImpl <em>EJB Link</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.EJBLinkImpl - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl#getEJBLink() - * @generated - */ - int EJB_LINK = 6; - - /** - * The feature id for the '<em><b>Ejb Link</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_LINK__EJB_LINK = BEAN_LINK_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>EJB Link</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EJB_LINK_FEATURE_COUNT = BEAN_LINK_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.HandlerImpl <em>Handler</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.HandlerImpl - * @see org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl#getHandler() - * @generated - */ - int HANDLER = 7; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__ICONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__ICONS; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__DISPLAY_NAMES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAMES; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__DESCRIPTIONS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTIONS; - - /** - * The feature id for the '<em><b>Small Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__SMALL_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON; - - /** - * The feature id for the '<em><b>Large Icon</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__LARGE_ICON = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__DESCRIPTION = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION; - - /** - * The feature id for the '<em><b>Display Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__DISPLAY_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME; - - /** - * The feature id for the '<em><b>Handler Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__HANDLER_NAME = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Handler Class</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__HANDLER_CLASS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Init Params</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__INIT_PARAMS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Soap Headers</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__SOAP_HEADERS = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 3; - - /** - * The feature id for the '<em><b>Soap Roles</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER__SOAP_ROLES = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 4; - - /** - * The number of structural features of the the '<em>Handler</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HANDLER_FEATURE_COUNT = CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP_FEATURE_COUNT + 5; - - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServices <em>Web Services</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Web Services</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServices - * @generated - */ - EClass getWebServices(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServices#getWebServiceDescriptions <em>Web Service Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Web Service Descriptions</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServices#getWebServiceDescriptions() - * @see #getWebServices() - * @generated - */ - EReference getWebServices_WebServiceDescriptions(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription <em>Web Service Description</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Web Service Description</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription - * @generated - */ - EClass getWebServiceDescription(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Jaxrpc Mapping File</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getJaxrpcMappingFile() - * @see #getWebServiceDescription() - * @generated - */ - EAttribute getWebServiceDescription_JaxrpcMappingFile(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getWebServiceDescriptionName <em>Web Service Description Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Web Service Description Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getWebServiceDescriptionName() - * @see #getWebServiceDescription() - * @generated - */ - EAttribute getWebServiceDescription_WebServiceDescriptionName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getWsdlFile <em>Wsdl File</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Wsdl File</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getWsdlFile() - * @see #getWebServiceDescription() - * @generated - */ - EAttribute getWebServiceDescription_WsdlFile(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getSmallIcon <em>Small Icon</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Small Icon</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getSmallIcon() - * @see #getWebServiceDescription() - * @generated - */ - EAttribute getWebServiceDescription_SmallIcon(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getLargeIcon <em>Large Icon</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Large Icon</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getLargeIcon() - * @see #getWebServiceDescription() - * @generated - */ - EAttribute getWebServiceDescription_LargeIcon(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDescription <em>Description</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Description</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDescription() - * @see #getWebServiceDescription() - * @generated - */ - EAttribute getWebServiceDescription_Description(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDisplayName <em>Display Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Display Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDisplayName() - * @see #getWebServiceDescription() - * @generated - */ - EAttribute getWebServiceDescription_DisplayName(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getPortComponents <em>Port Components</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Port Components</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getPortComponents() - * @see #getWebServiceDescription() - * @generated - */ - EReference getWebServiceDescription_PortComponents(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDescriptionType <em>Description Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Description Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDescriptionType() - * @see #getWebServiceDescription() - * @generated - */ - EReference getWebServiceDescription_DescriptionType(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDisplayNameType <em>Display Name Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Display Name Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getDisplayNameType() - * @see #getWebServiceDescription() - * @generated - */ - EReference getWebServiceDescription_DisplayNameType(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getIconType <em>Icon Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Icon Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription#getIconType() - * @see #getWebServiceDescription() - * @generated - */ - EReference getWebServiceDescription_IconType(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent <em>Port Component</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Port Component</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent - * @generated - */ - EClass getPortComponent(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getPortComponentName <em>Port Component Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Port Component Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getPortComponentName() - * @see #getPortComponent() - * @generated - */ - EAttribute getPortComponent_PortComponentName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getServiceEndpointInterface <em>Service Endpoint Interface</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Service Endpoint Interface</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getServiceEndpointInterface() - * @see #getPortComponent() - * @generated - */ - EAttribute getPortComponent_ServiceEndpointInterface(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getSmallIcon <em>Small Icon</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Small Icon</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getSmallIcon() - * @see #getPortComponent() - * @generated - */ - EAttribute getPortComponent_SmallIcon(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getLargeIcon <em>Large Icon</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Large Icon</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getLargeIcon() - * @see #getPortComponent() - * @generated - */ - EAttribute getPortComponent_LargeIcon(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDescription <em>Description</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Description</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDescription() - * @see #getPortComponent() - * @generated - */ - EAttribute getPortComponent_Description(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDisplayName <em>Display Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Display Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDisplayName() - * @see #getPortComponent() - * @generated - */ - EAttribute getPortComponent_DisplayName(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getWsdlPort <em>Wsdl Port</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Wsdl Port</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getWsdlPort() - * @see #getPortComponent() - * @generated - */ - EReference getPortComponent_WsdlPort(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getServiceImplBean <em>Service Impl Bean</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Service Impl Bean</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getServiceImplBean() - * @see #getPortComponent() - * @generated - */ - EReference getPortComponent_ServiceImplBean(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getHandlers <em>Handlers</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Handlers</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getHandlers() - * @see #getPortComponent() - * @generated - */ - EReference getPortComponent_Handlers(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDescriptionType <em>Description Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Description Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDescriptionType() - * @see #getPortComponent() - * @generated - */ - EReference getPortComponent_DescriptionType(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDisplayNameType <em>Display Name Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Display Name Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getDisplayNameType() - * @see #getPortComponent() - * @generated - */ - EReference getPortComponent_DisplayNameType(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getIconType <em>Icon Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Icon Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent#getIconType() - * @see #getPortComponent() - * @generated - */ - EReference getPortComponent_IconType(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort <em>WSDL Port</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>WSDL Port</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort - * @generated - */ - EClass getWSDLPort(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean <em>Service Impl Bean</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Service Impl Bean</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean - * @generated - */ - EClass getServiceImplBean(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getEEJBLink <em>EEJB Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>EEJB Link</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getEEJBLink() - * @see #getServiceImplBean() - * @generated - */ - EReference getServiceImplBean_EEJBLink(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getEServletLink <em>EServlet Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>EServlet Link</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getEServletLink() - * @see #getServiceImplBean() - * @generated - */ - EReference getServiceImplBean_EServletLink(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getBeanLink <em>Bean Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Bean Link</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean#getBeanLink() - * @see #getServiceImplBean() - * @generated - */ - EReference getServiceImplBean_BeanLink(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServletLink <em>Servlet Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Servlet Link</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.ServletLink - * @generated - */ - EClass getServletLink(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServletLink#getServletLink <em>Servlet Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Servlet Link</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.ServletLink#getServletLink() - * @see #getServletLink() - * @generated - */ - EAttribute getServletLink_ServletLink(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsdd.EJBLink <em>EJB Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>EJB Link</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.EJBLink - * @generated - */ - EClass getEJBLink(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.EJBLink#getEjbLink <em>Ejb Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Ejb Link</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.EJBLink#getEjbLink() - * @see #getEJBLink() - * @generated - */ - EAttribute getEJBLink_EjbLink(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler <em>Handler</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Handler</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.Handler - * @generated - */ - EClass getHandler(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getHandlerName <em>Handler Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Handler Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.Handler#getHandlerName() - * @see #getHandler() - * @generated - */ - EAttribute getHandler_HandlerName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getHandlerClass <em>Handler Class</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Handler Class</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.Handler#getHandlerClass() - * @see #getHandler() - * @generated - */ - EAttribute getHandler_HandlerClass(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getInitParams <em>Init Params</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Init Params</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.Handler#getInitParams() - * @see #getHandler() - * @generated - */ - EReference getHandler_InitParams(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getSoapHeaders <em>Soap Headers</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Soap Headers</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.Handler#getSoapHeaders() - * @see #getHandler() - * @generated - */ - EReference getHandler_SoapHeaders(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler#getSoapRoles <em>Soap Roles</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Soap Roles</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.Handler#getSoapRoles() - * @see #getHandler() - * @generated - */ - EReference getHandler_SoapRoles(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.wsdd.BeanLink <em>Bean Link</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Bean Link</em>'. - * @see org.eclipse.jst.j2ee.webservice.wsdd.BeanLink - * @generated - */ - EClass getBeanLink(); - - /** - * Returns the factory that creates the instances of the model. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the factory that creates the instances of the model. - * @generated - */ - WsddFactory getWsddFactory(); - -} //WsddPackage diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddResource.java deleted file mode 100644 index 98ce79e2d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddResource.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.webservice.wsdd; - -import org.eclipse.jst.j2ee.internal.common.XMLResource; - -/** - *@since 1.0 - */ -public interface WsddResource extends XMLResource -{ - - /** - * - */ - public static final int WEB_SERVICE_TYPE = 6; - - /** - * Returns reference to the model object WebServices - * @return reference to the model object WebServices - */ - WebServices getWebServices(); - - /** - * Returns true if the WebService is of version 1.0 - * @return boolean value - */ - public boolean isWebService1_0(); - - /** - * Returns true if the WebService is of version 1.1 - * @return boolean value - */ - public boolean isWebService1_1(); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/BeanLinkImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/BeanLinkImpl.java deleted file mode 100644 index 0463b16a0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/BeanLinkImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.BeanLink; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Bean Link</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class BeanLinkImpl extends EObjectImpl implements BeanLink -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected BeanLinkImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WsddPackage.eINSTANCE.getBeanLink(); - } - -} //BeanLinkImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/EJBLinkImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/EJBLinkImpl.java deleted file mode 100644 index 9a309579b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/EJBLinkImpl.java +++ /dev/null @@ -1,164 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.EJBLink; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>EJB Link</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.EJBLinkImpl#getEjbLink <em>Ejb Link</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class EJBLinkImpl extends BeanLinkImpl implements EJBLink -{ - /** - * The default value of the '{@link #getEjbLink() <em>Ejb Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEjbLink() - * @generated - * @ordered - */ - protected static final String EJB_LINK_EDEFAULT = null; - - /** - * The cached value of the '{@link #getEjbLink() <em>Ejb Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEjbLink() - * @generated - * @ordered - */ - protected String ejbLink = EJB_LINK_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EJBLinkImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WsddPackage.eINSTANCE.getEJBLink(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getEjbLink() { - return ejbLink; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setEjbLink(String newEjbLink) { - String oldEjbLink = ejbLink; - ejbLink = newEjbLink; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.EJB_LINK__EJB_LINK, oldEjbLink, ejbLink)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.EJB_LINK__EJB_LINK: - return getEjbLink(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.EJB_LINK__EJB_LINK: - setEjbLink((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.EJB_LINK__EJB_LINK: - setEjbLink(EJB_LINK_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.EJB_LINK__EJB_LINK: - return EJB_LINK_EDEFAULT == null ? ejbLink != null : !EJB_LINK_EDEFAULT.equals(ejbLink); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (ejbLink: "); - result.append(ejbLink); - result.append(')'); - return result.toString(); - } - -} //EJBLinkImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/HandlerImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/HandlerImpl.java deleted file mode 100644 index 63aae1fe1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/HandlerImpl.java +++ /dev/null @@ -1,431 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.InitParam; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader; -import org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole; -import org.eclipse.jst.j2ee.webservice.wsdd.Handler; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Handler</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.HandlerImpl#getHandlerName <em>Handler Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.HandlerImpl#getHandlerClass <em>Handler Class</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.HandlerImpl#getInitParams <em>Init Params</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.HandlerImpl#getSoapHeaders <em>Soap Headers</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.HandlerImpl#getSoapRoles <em>Soap Roles</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class HandlerImpl extends CompatibilityDescriptionGroupImpl implements Handler -{ - /** - * The default value of the '{@link #getHandlerName() <em>Handler Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHandlerName() - * @generated - * @ordered - */ - protected static final String HANDLER_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getHandlerName() <em>Handler Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHandlerName() - * @generated - * @ordered - */ - protected String handlerName = HANDLER_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getHandlerClass() <em>Handler Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHandlerClass() - * @generated - * @ordered - */ - protected static final String HANDLER_CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getHandlerClass() <em>Handler Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHandlerClass() - * @generated - * @ordered - */ - protected String handlerClass = HANDLER_CLASS_EDEFAULT; - - /** - * The cached value of the '{@link #getInitParams() <em>Init Params</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInitParams() - * @generated - * @ordered - */ - protected EList initParams = null; - - /** - * The cached value of the '{@link #getSoapHeaders() <em>Soap Headers</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSoapHeaders() - * @generated - * @ordered - */ - protected EList soapHeaders = null; - - /** - * The cached value of the '{@link #getSoapRoles() <em>Soap Roles</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSoapRoles() - * @generated - * @ordered - */ - protected EList soapRoles = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HandlerImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WsddPackage.eINSTANCE.getHandler(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getHandlerName() { - return handlerName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setHandlerName(String newHandlerName) { - String oldHandlerName = handlerName; - handlerName = newHandlerName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.HANDLER__HANDLER_NAME, oldHandlerName, handlerName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getHandlerClass() { - return handlerClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setHandlerClass(String newHandlerClass) { - String oldHandlerClass = handlerClass; - handlerClass = newHandlerClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.HANDLER__HANDLER_CLASS, oldHandlerClass, handlerClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getInitParams() { - if (initParams == null) { - initParams = new EObjectContainmentEList(InitParam.class, this, WsddPackage.HANDLER__INIT_PARAMS); - } - return initParams; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getSoapHeaders() { - if (soapHeaders == null) { - soapHeaders = new EObjectContainmentEList(SOAPHeader.class, this, WsddPackage.HANDLER__SOAP_HEADERS); - } - return soapHeaders; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getSoapRoles() { - if (soapRoles == null) { - soapRoles = new EObjectContainmentEList(SOAPRole.class, this, WsddPackage.HANDLER__SOAP_ROLES); - } - return soapRoles; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WsddPackage.HANDLER__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case WsddPackage.HANDLER__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case WsddPackage.HANDLER__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case WsddPackage.HANDLER__INIT_PARAMS: - return ((InternalEList)getInitParams()).basicRemove(otherEnd, msgs); - case WsddPackage.HANDLER__SOAP_HEADERS: - return ((InternalEList)getSoapHeaders()).basicRemove(otherEnd, msgs); - case WsddPackage.HANDLER__SOAP_ROLES: - return ((InternalEList)getSoapRoles()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.HANDLER__ICONS: - return getIcons(); - case WsddPackage.HANDLER__DISPLAY_NAMES: - return getDisplayNames(); - case WsddPackage.HANDLER__DESCRIPTIONS: - return getDescriptions(); - case WsddPackage.HANDLER__SMALL_ICON: - return getSmallIcon(); - case WsddPackage.HANDLER__LARGE_ICON: - return getLargeIcon(); - case WsddPackage.HANDLER__DESCRIPTION: - return getDescription(); - case WsddPackage.HANDLER__DISPLAY_NAME: - return getDisplayName(); - case WsddPackage.HANDLER__HANDLER_NAME: - return getHandlerName(); - case WsddPackage.HANDLER__HANDLER_CLASS: - return getHandlerClass(); - case WsddPackage.HANDLER__INIT_PARAMS: - return getInitParams(); - case WsddPackage.HANDLER__SOAP_HEADERS: - return getSoapHeaders(); - case WsddPackage.HANDLER__SOAP_ROLES: - return getSoapRoles(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.HANDLER__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case WsddPackage.HANDLER__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case WsddPackage.HANDLER__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WsddPackage.HANDLER__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case WsddPackage.HANDLER__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case WsddPackage.HANDLER__DESCRIPTION: - setDescription((String)newValue); - return; - case WsddPackage.HANDLER__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case WsddPackage.HANDLER__HANDLER_NAME: - setHandlerName((String)newValue); - return; - case WsddPackage.HANDLER__HANDLER_CLASS: - setHandlerClass((String)newValue); - return; - case WsddPackage.HANDLER__INIT_PARAMS: - getInitParams().clear(); - getInitParams().addAll((Collection)newValue); - return; - case WsddPackage.HANDLER__SOAP_HEADERS: - getSoapHeaders().clear(); - getSoapHeaders().addAll((Collection)newValue); - return; - case WsddPackage.HANDLER__SOAP_ROLES: - getSoapRoles().clear(); - getSoapRoles().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.HANDLER__ICONS: - getIcons().clear(); - return; - case WsddPackage.HANDLER__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case WsddPackage.HANDLER__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WsddPackage.HANDLER__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case WsddPackage.HANDLER__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case WsddPackage.HANDLER__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WsddPackage.HANDLER__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case WsddPackage.HANDLER__HANDLER_NAME: - setHandlerName(HANDLER_NAME_EDEFAULT); - return; - case WsddPackage.HANDLER__HANDLER_CLASS: - setHandlerClass(HANDLER_CLASS_EDEFAULT); - return; - case WsddPackage.HANDLER__INIT_PARAMS: - getInitParams().clear(); - return; - case WsddPackage.HANDLER__SOAP_HEADERS: - getSoapHeaders().clear(); - return; - case WsddPackage.HANDLER__SOAP_ROLES: - getSoapRoles().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.HANDLER__ICONS: - return icons != null && !icons.isEmpty(); - case WsddPackage.HANDLER__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case WsddPackage.HANDLER__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WsddPackage.HANDLER__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case WsddPackage.HANDLER__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case WsddPackage.HANDLER__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WsddPackage.HANDLER__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case WsddPackage.HANDLER__HANDLER_NAME: - return HANDLER_NAME_EDEFAULT == null ? handlerName != null : !HANDLER_NAME_EDEFAULT.equals(handlerName); - case WsddPackage.HANDLER__HANDLER_CLASS: - return HANDLER_CLASS_EDEFAULT == null ? handlerClass != null : !HANDLER_CLASS_EDEFAULT.equals(handlerClass); - case WsddPackage.HANDLER__INIT_PARAMS: - return initParams != null && !initParams.isEmpty(); - case WsddPackage.HANDLER__SOAP_HEADERS: - return soapHeaders != null && !soapHeaders.isEmpty(); - case WsddPackage.HANDLER__SOAP_ROLES: - return soapRoles != null && !soapRoles.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (handlerName: "); - result.append(handlerName); - result.append(", handlerClass: "); - result.append(handlerClass); - result.append(')'); - return result.toString(); - } - -} //HandlerImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/PortComponentImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/PortComponentImpl.java deleted file mode 100644 index 2b8a1c534..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/PortComponentImpl.java +++ /dev/null @@ -1,829 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType; -import org.eclipse.jst.j2ee.webservice.wsdd.Handler; -import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent; -import org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean; -import org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Port Component</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getPortComponentName <em>Port Component Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getServiceEndpointInterface <em>Service Endpoint Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getSmallIcon <em>Small Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getLargeIcon <em>Large Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getDisplayName <em>Display Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getWsdlPort <em>Wsdl Port</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getServiceImplBean <em>Service Impl Bean</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getHandlers <em>Handlers</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getDescriptionType <em>Description Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getDisplayNameType <em>Display Name Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.PortComponentImpl#getIconType <em>Icon Type</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class PortComponentImpl extends EObjectImpl implements PortComponent -{ - /** - * The default value of the '{@link #getPortComponentName() <em>Port Component Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortComponentName() - * @generated - * @ordered - */ - protected static final String PORT_COMPONENT_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPortComponentName() <em>Port Component Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortComponentName() - * @generated - * @ordered - */ - protected String portComponentName = PORT_COMPONENT_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getServiceEndpointInterface() <em>Service Endpoint Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceEndpointInterface() - * @generated - * @ordered - */ - protected static final String SERVICE_ENDPOINT_INTERFACE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getServiceEndpointInterface() <em>Service Endpoint Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceEndpointInterface() - * @generated - * @ordered - */ - protected String serviceEndpointInterface = SERVICE_ENDPOINT_INTERFACE_EDEFAULT; - - /** - * The default value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSmallIcon() - * @generated - * @ordered - */ - protected static final String SMALL_ICON_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSmallIcon() - * @generated - * @ordered - */ - protected String smallIcon = SMALL_ICON_EDEFAULT; - - /** - * The default value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLargeIcon() - * @generated - * @ordered - */ - protected static final String LARGE_ICON_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLargeIcon() - * @generated - * @ordered - */ - protected String largeIcon = LARGE_ICON_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected String description = DESCRIPTION_EDEFAULT; - - /** - * The default value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayName() - * @generated - * @ordered - */ - protected static final String DISPLAY_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayName() - * @generated - * @ordered - */ - protected String displayName = DISPLAY_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getWsdlPort() <em>Wsdl Port</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlPort() - * @generated - * @ordered - */ - protected WSDLPort wsdlPort = null; - - /** - * The cached value of the '{@link #getServiceImplBean() <em>Service Impl Bean</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceImplBean() - * @generated - * @ordered - */ - protected ServiceImplBean serviceImplBean = null; - - /** - * The cached value of the '{@link #getHandlers() <em>Handlers</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHandlers() - * @generated - * @ordered - */ - protected EList handlers = null; - - /** - * The cached value of the '{@link #getDescriptionType() <em>Description Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptionType() - * @generated - * @ordered - */ - protected DescriptionType descriptionType = null; - - /** - * The cached value of the '{@link #getDisplayNameType() <em>Display Name Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayNameType() - * @generated - * @ordered - */ - protected DisplayNameType displayNameType = null; - - /** - * The cached value of the '{@link #getIconType() <em>Icon Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getIconType() - * @generated - * @ordered - */ - protected IconType iconType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PortComponentImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WsddPackage.eINSTANCE.getPortComponent(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getPortComponentName() { - return portComponentName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPortComponentName(String newPortComponentName) { - String oldPortComponentName = portComponentName; - portComponentName = newPortComponentName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__PORT_COMPONENT_NAME, oldPortComponentName, portComponentName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getServiceEndpointInterface() { - return serviceEndpointInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServiceEndpointInterface(String newServiceEndpointInterface) { - String oldServiceEndpointInterface = serviceEndpointInterface; - serviceEndpointInterface = newServiceEndpointInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__SERVICE_ENDPOINT_INTERFACE, oldServiceEndpointInterface, serviceEndpointInterface)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getSmallIcon() { - return smallIcon; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSmallIcon(String newSmallIcon) { - String oldSmallIcon = smallIcon; - smallIcon = newSmallIcon; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__SMALL_ICON, oldSmallIcon, smallIcon)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLargeIcon() { - return largeIcon; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLargeIcon(String newLargeIcon) { - String oldLargeIcon = largeIcon; - largeIcon = newLargeIcon; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__LARGE_ICON, oldLargeIcon, largeIcon)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getDescription() { - return description; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__DESCRIPTION, oldDescription, description)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getDisplayName() { - return displayName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDisplayName(String newDisplayName) { - String oldDisplayName = displayName; - displayName = newDisplayName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__DISPLAY_NAME, oldDisplayName, displayName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLPort getWsdlPort() { - return wsdlPort; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWsdlPort(WSDLPort newWsdlPort, NotificationChain msgs) { - WSDLPort oldWsdlPort = wsdlPort; - wsdlPort = newWsdlPort; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__WSDL_PORT, oldWsdlPort, newWsdlPort); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlPort(WSDLPort newWsdlPort) { - if (newWsdlPort != wsdlPort) { - NotificationChain msgs = null; - if (wsdlPort != null) - msgs = ((InternalEObject)wsdlPort).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.PORT_COMPONENT__WSDL_PORT, null, msgs); - if (newWsdlPort != null) - msgs = ((InternalEObject)newWsdlPort).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.PORT_COMPONENT__WSDL_PORT, null, msgs); - msgs = basicSetWsdlPort(newWsdlPort, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__WSDL_PORT, newWsdlPort, newWsdlPort)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ServiceImplBean getServiceImplBean() { - return serviceImplBean; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetServiceImplBean(ServiceImplBean newServiceImplBean, NotificationChain msgs) { - ServiceImplBean oldServiceImplBean = serviceImplBean; - serviceImplBean = newServiceImplBean; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__SERVICE_IMPL_BEAN, oldServiceImplBean, newServiceImplBean); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServiceImplBean(ServiceImplBean newServiceImplBean) { - if (newServiceImplBean != serviceImplBean) { - NotificationChain msgs = null; - if (serviceImplBean != null) - msgs = ((InternalEObject)serviceImplBean).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.PORT_COMPONENT__SERVICE_IMPL_BEAN, null, msgs); - if (newServiceImplBean != null) - msgs = ((InternalEObject)newServiceImplBean).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.PORT_COMPONENT__SERVICE_IMPL_BEAN, null, msgs); - msgs = basicSetServiceImplBean(newServiceImplBean, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__SERVICE_IMPL_BEAN, newServiceImplBean, newServiceImplBean)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getHandlers() { - if (handlers == null) { - handlers = new EObjectContainmentEList(Handler.class, this, WsddPackage.PORT_COMPONENT__HANDLERS); - } - return handlers; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DescriptionType getDescriptionType() { - return descriptionType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetDescriptionType(DescriptionType newDescriptionType, NotificationChain msgs) { - DescriptionType oldDescriptionType = descriptionType; - descriptionType = newDescriptionType; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__DESCRIPTION_TYPE, oldDescriptionType, newDescriptionType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDescriptionType(DescriptionType newDescriptionType) { - if (newDescriptionType != descriptionType) { - NotificationChain msgs = null; - if (descriptionType != null) - msgs = ((InternalEObject)descriptionType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.PORT_COMPONENT__DESCRIPTION_TYPE, null, msgs); - if (newDescriptionType != null) - msgs = ((InternalEObject)newDescriptionType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.PORT_COMPONENT__DESCRIPTION_TYPE, null, msgs); - msgs = basicSetDescriptionType(newDescriptionType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__DESCRIPTION_TYPE, newDescriptionType, newDescriptionType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DisplayNameType getDisplayNameType() { - return displayNameType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetDisplayNameType(DisplayNameType newDisplayNameType, NotificationChain msgs) { - DisplayNameType oldDisplayNameType = displayNameType; - displayNameType = newDisplayNameType; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__DISPLAY_NAME_TYPE, oldDisplayNameType, newDisplayNameType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDisplayNameType(DisplayNameType newDisplayNameType) { - if (newDisplayNameType != displayNameType) { - NotificationChain msgs = null; - if (displayNameType != null) - msgs = ((InternalEObject)displayNameType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.PORT_COMPONENT__DISPLAY_NAME_TYPE, null, msgs); - if (newDisplayNameType != null) - msgs = ((InternalEObject)newDisplayNameType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.PORT_COMPONENT__DISPLAY_NAME_TYPE, null, msgs); - msgs = basicSetDisplayNameType(newDisplayNameType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__DISPLAY_NAME_TYPE, newDisplayNameType, newDisplayNameType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public IconType getIconType() { - return iconType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetIconType(IconType newIconType, NotificationChain msgs) { - IconType oldIconType = iconType; - iconType = newIconType; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__ICON_TYPE, oldIconType, newIconType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setIconType(IconType newIconType) { - if (newIconType != iconType) { - NotificationChain msgs = null; - if (iconType != null) - msgs = ((InternalEObject)iconType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.PORT_COMPONENT__ICON_TYPE, null, msgs); - if (newIconType != null) - msgs = ((InternalEObject)newIconType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.PORT_COMPONENT__ICON_TYPE, null, msgs); - msgs = basicSetIconType(newIconType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.PORT_COMPONENT__ICON_TYPE, newIconType, newIconType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WsddPackage.PORT_COMPONENT__WSDL_PORT: - return basicSetWsdlPort(null, msgs); - case WsddPackage.PORT_COMPONENT__SERVICE_IMPL_BEAN: - return basicSetServiceImplBean(null, msgs); - case WsddPackage.PORT_COMPONENT__HANDLERS: - return ((InternalEList)getHandlers()).basicRemove(otherEnd, msgs); - case WsddPackage.PORT_COMPONENT__DESCRIPTION_TYPE: - return basicSetDescriptionType(null, msgs); - case WsddPackage.PORT_COMPONENT__DISPLAY_NAME_TYPE: - return basicSetDisplayNameType(null, msgs); - case WsddPackage.PORT_COMPONENT__ICON_TYPE: - return basicSetIconType(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.PORT_COMPONENT__PORT_COMPONENT_NAME: - return getPortComponentName(); - case WsddPackage.PORT_COMPONENT__SERVICE_ENDPOINT_INTERFACE: - return getServiceEndpointInterface(); - case WsddPackage.PORT_COMPONENT__SMALL_ICON: - return getSmallIcon(); - case WsddPackage.PORT_COMPONENT__LARGE_ICON: - return getLargeIcon(); - case WsddPackage.PORT_COMPONENT__DESCRIPTION: - return getDescription(); - case WsddPackage.PORT_COMPONENT__DISPLAY_NAME: - return getDisplayName(); - case WsddPackage.PORT_COMPONENT__WSDL_PORT: - return getWsdlPort(); - case WsddPackage.PORT_COMPONENT__SERVICE_IMPL_BEAN: - return getServiceImplBean(); - case WsddPackage.PORT_COMPONENT__HANDLERS: - return getHandlers(); - case WsddPackage.PORT_COMPONENT__DESCRIPTION_TYPE: - return getDescriptionType(); - case WsddPackage.PORT_COMPONENT__DISPLAY_NAME_TYPE: - return getDisplayNameType(); - case WsddPackage.PORT_COMPONENT__ICON_TYPE: - return getIconType(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.PORT_COMPONENT__PORT_COMPONENT_NAME: - setPortComponentName((String)newValue); - return; - case WsddPackage.PORT_COMPONENT__SERVICE_ENDPOINT_INTERFACE: - setServiceEndpointInterface((String)newValue); - return; - case WsddPackage.PORT_COMPONENT__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case WsddPackage.PORT_COMPONENT__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case WsddPackage.PORT_COMPONENT__DESCRIPTION: - setDescription((String)newValue); - return; - case WsddPackage.PORT_COMPONENT__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case WsddPackage.PORT_COMPONENT__WSDL_PORT: - setWsdlPort((WSDLPort)newValue); - return; - case WsddPackage.PORT_COMPONENT__SERVICE_IMPL_BEAN: - setServiceImplBean((ServiceImplBean)newValue); - return; - case WsddPackage.PORT_COMPONENT__HANDLERS: - getHandlers().clear(); - getHandlers().addAll((Collection)newValue); - return; - case WsddPackage.PORT_COMPONENT__DESCRIPTION_TYPE: - setDescriptionType((DescriptionType)newValue); - return; - case WsddPackage.PORT_COMPONENT__DISPLAY_NAME_TYPE: - setDisplayNameType((DisplayNameType)newValue); - return; - case WsddPackage.PORT_COMPONENT__ICON_TYPE: - setIconType((IconType)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.PORT_COMPONENT__PORT_COMPONENT_NAME: - setPortComponentName(PORT_COMPONENT_NAME_EDEFAULT); - return; - case WsddPackage.PORT_COMPONENT__SERVICE_ENDPOINT_INTERFACE: - setServiceEndpointInterface(SERVICE_ENDPOINT_INTERFACE_EDEFAULT); - return; - case WsddPackage.PORT_COMPONENT__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case WsddPackage.PORT_COMPONENT__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case WsddPackage.PORT_COMPONENT__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WsddPackage.PORT_COMPONENT__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case WsddPackage.PORT_COMPONENT__WSDL_PORT: - setWsdlPort((WSDLPort)null); - return; - case WsddPackage.PORT_COMPONENT__SERVICE_IMPL_BEAN: - setServiceImplBean((ServiceImplBean)null); - return; - case WsddPackage.PORT_COMPONENT__HANDLERS: - getHandlers().clear(); - return; - case WsddPackage.PORT_COMPONENT__DESCRIPTION_TYPE: - setDescriptionType((DescriptionType)null); - return; - case WsddPackage.PORT_COMPONENT__DISPLAY_NAME_TYPE: - setDisplayNameType((DisplayNameType)null); - return; - case WsddPackage.PORT_COMPONENT__ICON_TYPE: - setIconType((IconType)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.PORT_COMPONENT__PORT_COMPONENT_NAME: - return PORT_COMPONENT_NAME_EDEFAULT == null ? portComponentName != null : !PORT_COMPONENT_NAME_EDEFAULT.equals(portComponentName); - case WsddPackage.PORT_COMPONENT__SERVICE_ENDPOINT_INTERFACE: - return SERVICE_ENDPOINT_INTERFACE_EDEFAULT == null ? serviceEndpointInterface != null : !SERVICE_ENDPOINT_INTERFACE_EDEFAULT.equals(serviceEndpointInterface); - case WsddPackage.PORT_COMPONENT__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case WsddPackage.PORT_COMPONENT__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case WsddPackage.PORT_COMPONENT__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WsddPackage.PORT_COMPONENT__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case WsddPackage.PORT_COMPONENT__WSDL_PORT: - return wsdlPort != null; - case WsddPackage.PORT_COMPONENT__SERVICE_IMPL_BEAN: - return serviceImplBean != null; - case WsddPackage.PORT_COMPONENT__HANDLERS: - return handlers != null && !handlers.isEmpty(); - case WsddPackage.PORT_COMPONENT__DESCRIPTION_TYPE: - return descriptionType != null; - case WsddPackage.PORT_COMPONENT__DISPLAY_NAME_TYPE: - return displayNameType != null; - case WsddPackage.PORT_COMPONENT__ICON_TYPE: - return iconType != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (portComponentName: "); - result.append(portComponentName); - result.append(", serviceEndpointInterface: "); - result.append(serviceEndpointInterface); - result.append(", smallIcon: "); - result.append(smallIcon); - result.append(", largeIcon: "); - result.append(largeIcon); - result.append(", description: "); - result.append(description); - result.append(", displayName: "); - result.append(displayName); - result.append(')'); - return result.toString(); - } - -} //PortComponentImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/ServiceImplBeanImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/ServiceImplBeanImpl.java deleted file mode 100644 index e61e1733e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/ServiceImplBeanImpl.java +++ /dev/null @@ -1,316 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.BeanLink; -import org.eclipse.jst.j2ee.webservice.wsdd.EJBLink; -import org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean; -import org.eclipse.jst.j2ee.webservice.wsdd.ServletLink; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Service Impl Bean</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.ServiceImplBeanImpl#getEEJBLink <em>EEJB Link</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.ServiceImplBeanImpl#getEServletLink <em>EServlet Link</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.ServiceImplBeanImpl#getBeanLink <em>Bean Link</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ServiceImplBeanImpl extends EObjectImpl implements ServiceImplBean -{ - /** - * The cached value of the '{@link #getEEJBLink() <em>EEJB Link</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEEJBLink() - * @generated - * @ordered - */ - protected EJBLink eEJBLink = null; - - /** - * The cached value of the '{@link #getEServletLink() <em>EServlet Link</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEServletLink() - * @generated - * @ordered - */ - protected ServletLink eServletLink = null; - - /** - * The cached value of the '{@link #getBeanLink() <em>Bean Link</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getBeanLink() - * @generated - * @ordered - */ - protected BeanLink beanLink = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ServiceImplBeanImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WsddPackage.eINSTANCE.getServiceImplBean(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EJBLink getEEJBLink() { - return eEJBLink; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetEEJBLink(EJBLink newEEJBLink, NotificationChain msgs) { - EJBLink oldEEJBLink = eEJBLink; - eEJBLink = newEEJBLink; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.SERVICE_IMPL_BEAN__EEJB_LINK, oldEEJBLink, newEEJBLink); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setEEJBLink(EJBLink newEEJBLink) { - if (newEEJBLink != eEJBLink) { - NotificationChain msgs = null; - if (eEJBLink != null) - msgs = ((InternalEObject)eEJBLink).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.SERVICE_IMPL_BEAN__EEJB_LINK, null, msgs); - if (newEEJBLink != null) - msgs = ((InternalEObject)newEEJBLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.SERVICE_IMPL_BEAN__EEJB_LINK, null, msgs); - msgs = basicSetEEJBLink(newEEJBLink, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.SERVICE_IMPL_BEAN__EEJB_LINK, newEEJBLink, newEEJBLink)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ServletLink getEServletLink() { - return eServletLink; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetEServletLink(ServletLink newEServletLink, NotificationChain msgs) { - ServletLink oldEServletLink = eServletLink; - eServletLink = newEServletLink; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.SERVICE_IMPL_BEAN__ESERVLET_LINK, oldEServletLink, newEServletLink); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setEServletLink(ServletLink newEServletLink) { - if (newEServletLink != eServletLink) { - NotificationChain msgs = null; - if (eServletLink != null) - msgs = ((InternalEObject)eServletLink).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.SERVICE_IMPL_BEAN__ESERVLET_LINK, null, msgs); - if (newEServletLink != null) - msgs = ((InternalEObject)newEServletLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.SERVICE_IMPL_BEAN__ESERVLET_LINK, null, msgs); - msgs = basicSetEServletLink(newEServletLink, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.SERVICE_IMPL_BEAN__ESERVLET_LINK, newEServletLink, newEServletLink)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BeanLink getBeanLink() { - return beanLink; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetBeanLink(BeanLink newBeanLink, NotificationChain msgs) { - BeanLink oldBeanLink = beanLink; - beanLink = newBeanLink; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.SERVICE_IMPL_BEAN__BEAN_LINK, oldBeanLink, newBeanLink); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setBeanLink(BeanLink newBeanLink) { - if (newBeanLink != beanLink) { - NotificationChain msgs = null; - if (beanLink != null) - msgs = ((InternalEObject)beanLink).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.SERVICE_IMPL_BEAN__BEAN_LINK, null, msgs); - if (newBeanLink != null) - msgs = ((InternalEObject)newBeanLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.SERVICE_IMPL_BEAN__BEAN_LINK, null, msgs); - msgs = basicSetBeanLink(newBeanLink, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.SERVICE_IMPL_BEAN__BEAN_LINK, newBeanLink, newBeanLink)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WsddPackage.SERVICE_IMPL_BEAN__EEJB_LINK: - return basicSetEEJBLink(null, msgs); - case WsddPackage.SERVICE_IMPL_BEAN__ESERVLET_LINK: - return basicSetEServletLink(null, msgs); - case WsddPackage.SERVICE_IMPL_BEAN__BEAN_LINK: - return basicSetBeanLink(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.SERVICE_IMPL_BEAN__EEJB_LINK: - return getEEJBLink(); - case WsddPackage.SERVICE_IMPL_BEAN__ESERVLET_LINK: - return getEServletLink(); - case WsddPackage.SERVICE_IMPL_BEAN__BEAN_LINK: - return getBeanLink(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.SERVICE_IMPL_BEAN__EEJB_LINK: - setEEJBLink((EJBLink)newValue); - return; - case WsddPackage.SERVICE_IMPL_BEAN__ESERVLET_LINK: - setEServletLink((ServletLink)newValue); - return; - case WsddPackage.SERVICE_IMPL_BEAN__BEAN_LINK: - setBeanLink((BeanLink)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.SERVICE_IMPL_BEAN__EEJB_LINK: - setEEJBLink((EJBLink)null); - return; - case WsddPackage.SERVICE_IMPL_BEAN__ESERVLET_LINK: - setEServletLink((ServletLink)null); - return; - case WsddPackage.SERVICE_IMPL_BEAN__BEAN_LINK: - setBeanLink((BeanLink)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.SERVICE_IMPL_BEAN__EEJB_LINK: - return eEJBLink != null; - case WsddPackage.SERVICE_IMPL_BEAN__ESERVLET_LINK: - return eServletLink != null; - case WsddPackage.SERVICE_IMPL_BEAN__BEAN_LINK: - return beanLink != null; - } - return eDynamicIsSet(eFeature); - } - -} //ServiceImplBeanImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/ServletLinkImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/ServletLinkImpl.java deleted file mode 100644 index 4b0717a4c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/ServletLinkImpl.java +++ /dev/null @@ -1,164 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.ServletLink; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Servlet Link</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.ServletLinkImpl#getServletLink <em>Servlet Link</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ServletLinkImpl extends BeanLinkImpl implements ServletLink -{ - /** - * The default value of the '{@link #getServletLink() <em>Servlet Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServletLink() - * @generated - * @ordered - */ - protected static final String SERVLET_LINK_EDEFAULT = null; - - /** - * The cached value of the '{@link #getServletLink() <em>Servlet Link</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServletLink() - * @generated - * @ordered - */ - protected String servletLink = SERVLET_LINK_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ServletLinkImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WsddPackage.eINSTANCE.getServletLink(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getServletLink() { - return servletLink; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServletLink(String newServletLink) { - String oldServletLink = servletLink; - servletLink = newServletLink; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.SERVLET_LINK__SERVLET_LINK, oldServletLink, servletLink)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.SERVLET_LINK__SERVLET_LINK: - return getServletLink(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.SERVLET_LINK__SERVLET_LINK: - setServletLink((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.SERVLET_LINK__SERVLET_LINK: - setServletLink(SERVLET_LINK_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.SERVLET_LINK__SERVLET_LINK: - return SERVLET_LINK_EDEFAULT == null ? servletLink != null : !SERVLET_LINK_EDEFAULT.equals(servletLink); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (servletLink: "); - result.append(servletLink); - result.append(')'); - return result.toString(); - } - -} //ServletLinkImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WSDLPortImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WSDLPortImpl.java deleted file mode 100644 index 612c3e96c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WSDLPortImpl.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.internal.impl.QNameImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>WSDL Port</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class WSDLPortImpl extends QNameImpl implements WSDLPort -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WSDLPortImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WsddPackage.eINSTANCE.getWSDLPort(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WSDL_PORT__NAMESPACE_URI: - return getNamespaceURI(); - case WsddPackage.WSDL_PORT__LOCAL_PART: - return getLocalPart(); - case WsddPackage.WSDL_PORT__COMBINED_QNAME: - return getCombinedQName(); - case WsddPackage.WSDL_PORT__INTERNAL_PREFIX_OR_NS_URI: - return getInternalPrefixOrNsURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WSDL_PORT__NAMESPACE_URI: - setNamespaceURI((String)newValue); - return; - case WsddPackage.WSDL_PORT__LOCAL_PART: - setLocalPart((String)newValue); - return; - case WsddPackage.WSDL_PORT__COMBINED_QNAME: - setCombinedQName((String)newValue); - return; - case WsddPackage.WSDL_PORT__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WSDL_PORT__NAMESPACE_URI: - setNamespaceURI(NAMESPACE_URI_EDEFAULT); - return; - case WsddPackage.WSDL_PORT__LOCAL_PART: - setLocalPart(LOCAL_PART_EDEFAULT); - return; - case WsddPackage.WSDL_PORT__COMBINED_QNAME: - setCombinedQName(COMBINED_QNAME_EDEFAULT); - return; - case WsddPackage.WSDL_PORT__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI(INTERNAL_PREFIX_OR_NS_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WSDL_PORT__NAMESPACE_URI: - return NAMESPACE_URI_EDEFAULT == null ? namespaceURI != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI); - case WsddPackage.WSDL_PORT__LOCAL_PART: - return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart); - case WsddPackage.WSDL_PORT__COMBINED_QNAME: - return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName); - case WsddPackage.WSDL_PORT__INTERNAL_PREFIX_OR_NS_URI: - return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI); - } - return eDynamicIsSet(eFeature); - } - -} //WSDLPortImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WebServiceDescriptionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WebServiceDescriptionImpl.java deleted file mode 100644 index 39349f053..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WebServiceDescriptionImpl.java +++ /dev/null @@ -1,974 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.CommonFactory; -import org.eclipse.jst.j2ee.common.Description; -import org.eclipse.jst.j2ee.common.DisplayName; -import org.eclipse.jst.j2ee.common.IconType; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource; -import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType; -import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory; -import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Web Service Description</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getWebServiceDescriptionName <em>Web Service Description Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getWsdlFile <em>Wsdl File</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getSmallIcon <em>Small Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getLargeIcon <em>Large Icon</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getDisplayName <em>Display Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getPortComponents <em>Port Components</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getDescriptionType <em>Description Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getDisplayNameType <em>Display Name Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServiceDescriptionImpl#getIconType <em>Icon Type</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WebServiceDescriptionImpl extends EObjectImpl implements WebServiceDescription -{ - /** - * The default value of the '{@link #getJaxrpcMappingFile() <em>Jaxrpc Mapping File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJaxrpcMappingFile() - * @generated - * @ordered - */ - protected static final String JAXRPC_MAPPING_FILE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getJaxrpcMappingFile() <em>Jaxrpc Mapping File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJaxrpcMappingFile() - * @generated - * @ordered - */ - protected String jaxrpcMappingFile = JAXRPC_MAPPING_FILE_EDEFAULT; - - /** - * The default value of the '{@link #getWebServiceDescriptionName() <em>Web Service Description Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWebServiceDescriptionName() - * @generated - * @ordered - */ - protected static final String WEB_SERVICE_DESCRIPTION_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWebServiceDescriptionName() <em>Web Service Description Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWebServiceDescriptionName() - * @generated - * @ordered - */ - protected String webServiceDescriptionName = WEB_SERVICE_DESCRIPTION_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getWsdlFile() <em>Wsdl File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlFile() - * @generated - * @ordered - */ - protected static final String WSDL_FILE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWsdlFile() <em>Wsdl File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlFile() - * @generated - * @ordered - */ - protected String wsdlFile = WSDL_FILE_EDEFAULT; - - /** - * The default value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSmallIcon() - * @generated - * @ordered - */ - protected static final String SMALL_ICON_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSmallIcon() - * @generated - * @ordered - */ - protected String smallIcon = SMALL_ICON_EDEFAULT; - - /** - * The default value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLargeIcon() - * @generated - * @ordered - */ - protected static final String LARGE_ICON_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLargeIcon() - * @generated - * @ordered - */ - protected String largeIcon = LARGE_ICON_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected String description = DESCRIPTION_EDEFAULT; - - /** - * The default value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayName() - * @generated - * @ordered - */ - protected static final String DISPLAY_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayName() - * @generated - * @ordered - */ - protected String displayName = DISPLAY_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getPortComponents() <em>Port Components</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortComponents() - * @generated - * @ordered - */ - protected EList portComponents = null; - - /** - * The cached value of the '{@link #getDescriptionType() <em>Description Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptionType() - * @generated - * @ordered - */ - protected DescriptionType descriptionType = null; - - /** - * The cached value of the '{@link #getDisplayNameType() <em>Display Name Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayNameType() - * @generated - * @ordered - */ - protected DisplayNameType displayNameType = null; - - /** - * The cached value of the '{@link #getIconType() <em>Icon Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getIconType() - * @generated - * @ordered - */ - protected IconType iconType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WebServiceDescriptionImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WsddPackage.eINSTANCE.getWebServiceDescription(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getJaxrpcMappingFile() { - return jaxrpcMappingFile; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setJaxrpcMappingFile(String newJaxrpcMappingFile) { - String oldJaxrpcMappingFile = jaxrpcMappingFile; - jaxrpcMappingFile = newJaxrpcMappingFile; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__JAXRPC_MAPPING_FILE, oldJaxrpcMappingFile, jaxrpcMappingFile)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWebServiceDescriptionName() { - return webServiceDescriptionName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWebServiceDescriptionName(String newWebServiceDescriptionName) { - String oldWebServiceDescriptionName = webServiceDescriptionName; - webServiceDescriptionName = newWebServiceDescriptionName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__WEB_SERVICE_DESCRIPTION_NAME, oldWebServiceDescriptionName, webServiceDescriptionName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWsdlFile() { - return wsdlFile; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlFile(String newWsdlFile) { - String oldWsdlFile = wsdlFile; - wsdlFile = newWsdlFile; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__WSDL_FILE, oldWsdlFile, wsdlFile)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getSmallIconGen() { - return smallIcon; - } - - public String getSmallIcon() { - if(eResource() == null) - return getSmallIconGen(); - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - return getSmallIconGen(); - case J2EEVersionConstants.J2EE_1_4_ID : - default : - if (getIconType() != null) - return getIconType().getSmallIcon(); - } - return null; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSmallIconGen(String newSmallIcon) { - String oldSmallIcon = smallIcon; - smallIcon = newSmallIcon; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__SMALL_ICON, oldSmallIcon, smallIcon)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLargeIconGen() { - return largeIcon; - } - - public String getLargeIcon() { - if(eResource() == null) - return getLargeIconGen(); - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - return getLargeIconGen(); - case J2EEVersionConstants.J2EE_1_4_ID : - default : - if (getIconType() != null) - return getIconType().getLargeIcon(); - } - return null; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLargeIconGen(String newLargeIcon) { - String oldLargeIcon = largeIcon; - largeIcon = newLargeIcon; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__LARGE_ICON, oldLargeIcon, largeIcon)); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.jst.j2ee.internal.common.DescriptionGroup#getJ2EEVersionID() - */ - public int getJ2EEVersionID() throws IllegalStateException { - J2EEVersionResource res = (J2EEVersionResource) eResource(); - if (res == null) - throw new IllegalStateException(); - return res.getJ2EEVersionID(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getDescriptionGen() { - return description; - } - - public String getDescription() { - if(eResource() == null) - return getDescriptionGen(); - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - return getDescriptionGen(); - case J2EEVersionConstants.J2EE_1_4_ID : - default : - if (getDescriptionType() != null) - return ((Description)getDescriptionType()).getValue(); - } - return null; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDescriptionGen(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION, oldDescription, description)); - } - - public void setDescription(String newDescription) { - if(eResource() == null) { - setDescriptionGen(newDescription); - internalSetDescriptionType(newDescription); - return; - } - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - setDescriptionGen(newDescription); - break; - case J2EEVersionConstants.J2EE_1_4_ID : - default : - internalSetDescriptionType(newDescription); - break; - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getDisplayNameGen() { - return displayName; - } - - public String getDisplayName() { - if(eResource() == null) - return getDisplayNameGen(); - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - return getDisplayNameGen(); - case J2EEVersionConstants.J2EE_1_4_ID : - default : - if (getDisplayNameType() != null) - return ((DisplayName)getDisplayNameType()).getValue(); - } - return null; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDisplayNameGen(String newDisplayName) { - String oldDisplayName = displayName; - displayName = newDisplayName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME, oldDisplayName, displayName)); - } - - public void setDisplayName(String newDisplayName) { - if(eResource() == null) { - setDisplayNameGen(newDisplayName); - internalSetDisplayNameType(newDisplayName); - return; - } - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - setDisplayNameGen(newDisplayName); - break; - case J2EEVersionConstants.J2EE_1_4_ID : - default : - internalSetDisplayNameType(newDisplayName); - break; - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getPortComponents() { - if (portComponents == null) { - portComponents = new EObjectContainmentEList(PortComponent.class, this, WsddPackage.WEB_SERVICE_DESCRIPTION__PORT_COMPONENTS); - } - return portComponents; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DescriptionType getDescriptionType() { - return descriptionType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetDescriptionType(DescriptionType newDescriptionType, NotificationChain msgs) { - DescriptionType oldDescriptionType = descriptionType; - descriptionType = newDescriptionType; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE, oldDescriptionType, newDescriptionType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDescriptionType(DescriptionType newDescriptionType) { - if (newDescriptionType != descriptionType) { - NotificationChain msgs = null; - if (descriptionType != null) - msgs = ((InternalEObject)descriptionType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE, null, msgs); - if (newDescriptionType != null) - msgs = ((InternalEObject)newDescriptionType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE, null, msgs); - msgs = basicSetDescriptionType(newDescriptionType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE, newDescriptionType, newDescriptionType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DisplayNameType getDisplayNameType() { - return displayNameType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetDisplayNameType(DisplayNameType newDisplayNameType, NotificationChain msgs) { - DisplayNameType oldDisplayNameType = displayNameType; - displayNameType = newDisplayNameType; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE, oldDisplayNameType, newDisplayNameType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDisplayNameType(DisplayNameType newDisplayNameType) { - if (newDisplayNameType != displayNameType) { - NotificationChain msgs = null; - if (displayNameType != null) - msgs = ((InternalEObject)displayNameType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE, null, msgs); - if (newDisplayNameType != null) - msgs = ((InternalEObject)newDisplayNameType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE, null, msgs); - msgs = basicSetDisplayNameType(newDisplayNameType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE, newDisplayNameType, newDisplayNameType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public IconType getIconType() { - return iconType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetIconType(IconType newIconType, NotificationChain msgs) { - IconType oldIconType = iconType; - iconType = newIconType; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__ICON_TYPE, oldIconType, newIconType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setIconType(IconType newIconType) { - if (newIconType != iconType) { - NotificationChain msgs = null; - if (iconType != null) - msgs = ((InternalEObject)iconType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WsddPackage.WEB_SERVICE_DESCRIPTION__ICON_TYPE, null, msgs); - if (newIconType != null) - msgs = ((InternalEObject)newIconType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WsddPackage.WEB_SERVICE_DESCRIPTION__ICON_TYPE, null, msgs); - msgs = basicSetIconType(newIconType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WsddPackage.WEB_SERVICE_DESCRIPTION__ICON_TYPE, newIconType, newIconType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WsddPackage.WEB_SERVICE_DESCRIPTION__PORT_COMPONENTS: - return ((InternalEList)getPortComponents()).basicRemove(otherEnd, msgs); - case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE: - return basicSetDescriptionType(null, msgs); - case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE: - return basicSetDisplayNameType(null, msgs); - case WsddPackage.WEB_SERVICE_DESCRIPTION__ICON_TYPE: - return basicSetIconType(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WEB_SERVICE_DESCRIPTION__JAXRPC_MAPPING_FILE: - return getJaxrpcMappingFile(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__WEB_SERVICE_DESCRIPTION_NAME: - return getWebServiceDescriptionName(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__WSDL_FILE: - return getWsdlFile(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__SMALL_ICON: - return getSmallIcon(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__LARGE_ICON: - return getLargeIcon(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION: - return getDescription(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME: - return getDisplayName(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__PORT_COMPONENTS: - return getPortComponents(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE: - return getDescriptionType(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE: - return getDisplayNameType(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__ICON_TYPE: - return getIconType(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WEB_SERVICE_DESCRIPTION__JAXRPC_MAPPING_FILE: - setJaxrpcMappingFile((String)newValue); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__WEB_SERVICE_DESCRIPTION_NAME: - setWebServiceDescriptionName((String)newValue); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__WSDL_FILE: - setWsdlFile((String)newValue); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION: - setDescription((String)newValue); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__PORT_COMPONENTS: - getPortComponents().clear(); - getPortComponents().addAll((Collection)newValue); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE: - setDescriptionType((DescriptionType)newValue); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE: - setDisplayNameType((DisplayNameType)newValue); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__ICON_TYPE: - setIconType((IconType)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WEB_SERVICE_DESCRIPTION__JAXRPC_MAPPING_FILE: - setJaxrpcMappingFile(JAXRPC_MAPPING_FILE_EDEFAULT); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__WEB_SERVICE_DESCRIPTION_NAME: - setWebServiceDescriptionName(WEB_SERVICE_DESCRIPTION_NAME_EDEFAULT); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__WSDL_FILE: - setWsdlFile(WSDL_FILE_EDEFAULT); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__PORT_COMPONENTS: - getPortComponents().clear(); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE: - setDescriptionType((DescriptionType)null); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE: - setDisplayNameType((DisplayNameType)null); - return; - case WsddPackage.WEB_SERVICE_DESCRIPTION__ICON_TYPE: - setIconType((IconType)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WEB_SERVICE_DESCRIPTION__JAXRPC_MAPPING_FILE: - return JAXRPC_MAPPING_FILE_EDEFAULT == null ? jaxrpcMappingFile != null : !JAXRPC_MAPPING_FILE_EDEFAULT.equals(jaxrpcMappingFile); - case WsddPackage.WEB_SERVICE_DESCRIPTION__WEB_SERVICE_DESCRIPTION_NAME: - return WEB_SERVICE_DESCRIPTION_NAME_EDEFAULT == null ? webServiceDescriptionName != null : !WEB_SERVICE_DESCRIPTION_NAME_EDEFAULT.equals(webServiceDescriptionName); - case WsddPackage.WEB_SERVICE_DESCRIPTION__WSDL_FILE: - return WSDL_FILE_EDEFAULT == null ? wsdlFile != null : !WSDL_FILE_EDEFAULT.equals(wsdlFile); - case WsddPackage.WEB_SERVICE_DESCRIPTION__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case WsddPackage.WEB_SERVICE_DESCRIPTION__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case WsddPackage.WEB_SERVICE_DESCRIPTION__PORT_COMPONENTS: - return portComponents != null && !portComponents.isEmpty(); - case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE: - return descriptionType != null; - case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE: - return displayNameType != null; - case WsddPackage.WEB_SERVICE_DESCRIPTION__ICON_TYPE: - return iconType != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (jaxrpcMappingFile: "); - result.append(jaxrpcMappingFile); - result.append(", webServiceDescriptionName: "); - result.append(webServiceDescriptionName); - result.append(", wsdlFile: "); - result.append(wsdlFile); - result.append(", smallIcon: "); - result.append(smallIcon); - result.append(", largeIcon: "); - result.append(largeIcon); - result.append(", description: "); - result.append(description); - result.append(", displayName: "); - result.append(displayName); - result.append(')'); - return result.toString(); - } - - /** - * @param newDescription - */ - protected void internalSetDescriptionType(String newDescription) { - DescriptionType newValue = null; - if(getDescriptionType() != null) { - newValue = getDescriptionType(); - newValue.setValue(newDescription); - } - else { - newValue = WscommonFactory.eINSTANCE.createDescriptionType(); - newValue.setValue(newDescription); - setDescriptionType(newValue); - } - - } - - /** - * @param newDisplayName - */ - protected void internalSetDisplayNameType(String newDisplayName) { - DisplayNameType newValue = null; - if(getDisplayNameType() != null) { - newValue = getDisplayNameType(); - newValue.setValue(newDisplayName); - } - else { - newValue = WscommonFactory.eINSTANCE.createDisplayNameType(); - newValue.setValue(newDisplayName); - setDisplayNameType(newValue); - } - - } - - /** - * @param newLargeIcon - */ - protected void internalSetLargeIconType(String newLargeIcon) { - IconType newValue = null; - if(getIconType() != null) { - newValue = getIconType(); - newValue.setLargeIcon(newLargeIcon); - } - else { - newValue = CommonFactory.eINSTANCE.createIconType(); - newValue.setLargeIcon(newLargeIcon); - setIconType(newValue); - } - - } - - /** - * @param newSmallIcon - */ - protected void internalSetSmallIconType(String newSmallIcon) { - IconType newValue = null; - if(getIconType() != null) { - newValue = getIconType(); - newValue.setSmallIcon(newSmallIcon); - } - else { - newValue = CommonFactory.eINSTANCE.createIconType(); - newValue.setSmallIcon(newSmallIcon); - setIconType(newValue); - } - } - - public void setLargeIcon(String newLargeIcon) { - if(eResource() == null) { - setLargeIconGen(newLargeIcon); - internalSetLargeIconType(newLargeIcon); - return; - } - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - setLargeIconGen(newLargeIcon); - break; - case J2EEVersionConstants.J2EE_1_4_ID : - default : - internalSetLargeIconType(newLargeIcon); - break; - } - } - - public void setSmallIcon(String newSmallIcon) { - if(eResource() == null) { - setSmallIconGen(newSmallIcon); - internalSetSmallIconType(newSmallIcon); - return; - } - - switch (getJ2EEVersionID()) { - case J2EEVersionConstants.J2EE_1_2_ID : - case J2EEVersionConstants.J2EE_1_3_ID : - setSmallIconGen(newSmallIcon); - break; - case J2EEVersionConstants.J2EE_1_4_ID : - default : - internalSetSmallIconType(newSmallIcon); - break; - } - } - -} //WebServiceDescriptionImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WebServicesImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WebServicesImpl.java deleted file mode 100644 index 0355ee60e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WebServicesImpl.java +++ /dev/null @@ -1,241 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServices; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Web Services</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WebServicesImpl#getWebServiceDescriptions <em>Web Service Descriptions</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WebServicesImpl extends CompatibilityDescriptionGroupImpl implements WebServices -{ - /** - * The cached value of the '{@link #getWebServiceDescriptions() <em>Web Service Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWebServiceDescriptions() - * @generated - * @ordered - */ - protected EList webServiceDescriptions = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WebServicesImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WsddPackage.eINSTANCE.getWebServices(); - } - - /** - * - */ - public void setDisplayName(String newDisplayName) { - super.setDisplayName(newDisplayName); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getWebServiceDescriptions() { - if (webServiceDescriptions == null) { - webServiceDescriptions = new EObjectContainmentEList(WebServiceDescription.class, this, WsddPackage.WEB_SERVICES__WEB_SERVICE_DESCRIPTIONS); - } - return webServiceDescriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case WsddPackage.WEB_SERVICES__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case WsddPackage.WEB_SERVICES__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case WsddPackage.WEB_SERVICES__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case WsddPackage.WEB_SERVICES__WEB_SERVICE_DESCRIPTIONS: - return ((InternalEList)getWebServiceDescriptions()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WEB_SERVICES__ICONS: - return getIcons(); - case WsddPackage.WEB_SERVICES__DISPLAY_NAMES: - return getDisplayNames(); - case WsddPackage.WEB_SERVICES__DESCRIPTIONS: - return getDescriptions(); - case WsddPackage.WEB_SERVICES__SMALL_ICON: - return getSmallIcon(); - case WsddPackage.WEB_SERVICES__LARGE_ICON: - return getLargeIcon(); - case WsddPackage.WEB_SERVICES__DESCRIPTION: - return getDescription(); - case WsddPackage.WEB_SERVICES__DISPLAY_NAME: - return getDisplayName(); - case WsddPackage.WEB_SERVICES__WEB_SERVICE_DESCRIPTIONS: - return getWebServiceDescriptions(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WEB_SERVICES__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case WsddPackage.WEB_SERVICES__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case WsddPackage.WEB_SERVICES__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WsddPackage.WEB_SERVICES__SMALL_ICON: - setSmallIcon((String)newValue); - return; - case WsddPackage.WEB_SERVICES__LARGE_ICON: - setLargeIcon((String)newValue); - return; - case WsddPackage.WEB_SERVICES__DESCRIPTION: - setDescription((String)newValue); - return; - case WsddPackage.WEB_SERVICES__DISPLAY_NAME: - setDisplayName((String)newValue); - return; - case WsddPackage.WEB_SERVICES__WEB_SERVICE_DESCRIPTIONS: - getWebServiceDescriptions().clear(); - getWebServiceDescriptions().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WEB_SERVICES__ICONS: - getIcons().clear(); - return; - case WsddPackage.WEB_SERVICES__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case WsddPackage.WEB_SERVICES__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WsddPackage.WEB_SERVICES__SMALL_ICON: - setSmallIcon(SMALL_ICON_EDEFAULT); - return; - case WsddPackage.WEB_SERVICES__LARGE_ICON: - setLargeIcon(LARGE_ICON_EDEFAULT); - return; - case WsddPackage.WEB_SERVICES__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case WsddPackage.WEB_SERVICES__DISPLAY_NAME: - setDisplayName(DISPLAY_NAME_EDEFAULT); - return; - case WsddPackage.WEB_SERVICES__WEB_SERVICE_DESCRIPTIONS: - getWebServiceDescriptions().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case WsddPackage.WEB_SERVICES__ICONS: - return icons != null && !icons.isEmpty(); - case WsddPackage.WEB_SERVICES__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case WsddPackage.WEB_SERVICES__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WsddPackage.WEB_SERVICES__SMALL_ICON: - return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon); - case WsddPackage.WEB_SERVICES__LARGE_ICON: - return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon); - case WsddPackage.WEB_SERVICES__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case WsddPackage.WEB_SERVICES__DISPLAY_NAME: - return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); - case WsddPackage.WEB_SERVICES__WEB_SERVICE_DESCRIPTIONS: - return webServiceDescriptions != null && !webServiceDescriptions.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - -} //WebServicesImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WsddFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WsddFactoryImpl.java deleted file mode 100644 index 85403d0c5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WsddFactoryImpl.java +++ /dev/null @@ -1,177 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.BeanLink; -import org.eclipse.jst.j2ee.webservice.wsdd.EJBLink; -import org.eclipse.jst.j2ee.webservice.wsdd.Handler; -import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent; -import org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean; -import org.eclipse.jst.j2ee.webservice.wsdd.ServletLink; -import org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServices; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class WsddFactoryImpl extends EFactoryImpl implements WsddFactory -{ - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WsddFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case WsddPackage.WEB_SERVICES: return createWebServices(); - case WsddPackage.WEB_SERVICE_DESCRIPTION: return createWebServiceDescription(); - case WsddPackage.PORT_COMPONENT: return createPortComponent(); - case WsddPackage.WSDL_PORT: return createWSDLPort(); - case WsddPackage.SERVICE_IMPL_BEAN: return createServiceImplBean(); - case WsddPackage.SERVLET_LINK: return createServletLink(); - case WsddPackage.EJB_LINK: return createEJBLink(); - case WsddPackage.HANDLER: return createHandler(); - case WsddPackage.BEAN_LINK: return createBeanLink(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebServices createWebServices() { - WebServicesImpl webServices = new WebServicesImpl(); - return webServices; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebServiceDescription createWebServiceDescription() { - WebServiceDescriptionImpl webServiceDescription = new WebServiceDescriptionImpl(); - return webServiceDescription; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PortComponent createPortComponent() { - PortComponentImpl portComponent = new PortComponentImpl(); - return portComponent; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLPort createWSDLPort() { - WSDLPortImpl wsdlPort = new WSDLPortImpl(); - return wsdlPort; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ServiceImplBean createServiceImplBean() { - ServiceImplBeanImpl serviceImplBean = new ServiceImplBeanImpl(); - return serviceImplBean; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ServletLink createServletLink() { - ServletLinkImpl servletLink = new ServletLinkImpl(); - return servletLink; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EJBLink createEJBLink() { - EJBLinkImpl ejbLink = new EJBLinkImpl(); - return ejbLink; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Handler createHandler() { - HandlerImpl handler = new HandlerImpl(); - return handler; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BeanLink createBeanLink() { - BeanLinkImpl beanLink = new BeanLinkImpl(); - return beanLink; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WsddPackage getWsddPackage() { - return (WsddPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static WsddPackage getPackage() { - return WsddPackage.eINSTANCE; - } - -} //WsddFactoryImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WsddPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WsddPackageImpl.java deleted file mode 100644 index 0e0b3b339..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WsddPackageImpl.java +++ /dev/null @@ -1,790 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.ApplicationPackage; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.ClientPackage; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.EjbPackage; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jca.JcaPackage; -import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl; -import org.eclipse.jst.j2ee.jsp.JspPackage; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage; -import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl; -import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.BeanLink; -import org.eclipse.jst.j2ee.webservice.wsdd.EJBLink; -import org.eclipse.jst.j2ee.webservice.wsdd.Handler; -import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent; -import org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean; -import org.eclipse.jst.j2ee.webservice.wsdd.ServletLink; -import org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServices; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class WsddPackageImpl extends EPackageImpl implements WsddPackage -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webServicesEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webServiceDescriptionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass portComponentEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass wsdlPortEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass serviceImplBeanEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass servletLinkEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ejbLinkEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass handlerEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass beanLinkEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - * <p>Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage#eNS_URI - * @see #init() - * @generated - */ - private WsddPackageImpl() { - super(eNS_URI, WsddFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - * <p>Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - * <p>Invocation of this method will not affect any packages that have - * already been initialized. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static WsddPackage init() { - if (isInited) return (WsddPackage)EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI); - - // Obtain or create and register package - WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new WsddPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Obtain or create and register interdependencies - ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE); - WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE); - JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE); - Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE); - - // Create package meta-data objects - theWsddPackage.createPackageContents(); - theClientPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theApplicationPackage_1.createPackageContents(); - theCommonPackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theTaglibPackage.createPackageContents(); - theWebapplicationPackage.createPackageContents(); - theJcaPackage.createPackageContents(); - theWebservice_clientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - theWscommonPackage.createPackageContents(); - - // Initialize created meta-data - theWsddPackage.initializePackageContents(); - theClientPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theApplicationPackage_1.initializePackageContents(); - theCommonPackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theTaglibPackage.initializePackageContents(); - theWebapplicationPackage.initializePackageContents(); - theJcaPackage.initializePackageContents(); - theWebservice_clientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - theWscommonPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theWsddPackage.freeze(); - - return theWsddPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWebServices() { - return webServicesEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebServices_WebServiceDescriptions() { - return (EReference)webServicesEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWebServiceDescription() { - return webServiceDescriptionEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebServiceDescription_JaxrpcMappingFile() { - return (EAttribute)webServiceDescriptionEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebServiceDescription_WebServiceDescriptionName() { - return (EAttribute)webServiceDescriptionEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebServiceDescription_WsdlFile() { - return (EAttribute)webServiceDescriptionEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebServiceDescription_SmallIcon() { - return (EAttribute)webServiceDescriptionEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebServiceDescription_LargeIcon() { - return (EAttribute)webServiceDescriptionEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebServiceDescription_Description() { - return (EAttribute)webServiceDescriptionEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebServiceDescription_DisplayName() { - return (EAttribute)webServiceDescriptionEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebServiceDescription_PortComponents() { - return (EReference)webServiceDescriptionEClass.getEStructuralFeatures().get(7); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebServiceDescription_DescriptionType() { - return (EReference)webServiceDescriptionEClass.getEStructuralFeatures().get(8); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebServiceDescription_DisplayNameType() { - return (EReference)webServiceDescriptionEClass.getEStructuralFeatures().get(9); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebServiceDescription_IconType() { - return (EReference)webServiceDescriptionEClass.getEStructuralFeatures().get(10); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getPortComponent() { - return portComponentEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortComponent_PortComponentName() { - return (EAttribute)portComponentEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortComponent_ServiceEndpointInterface() { - return (EAttribute)portComponentEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortComponent_SmallIcon() { - return (EAttribute)portComponentEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortComponent_LargeIcon() { - return (EAttribute)portComponentEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortComponent_Description() { - return (EAttribute)portComponentEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortComponent_DisplayName() { - return (EAttribute)portComponentEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPortComponent_WsdlPort() { - return (EReference)portComponentEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPortComponent_ServiceImplBean() { - return (EReference)portComponentEClass.getEStructuralFeatures().get(7); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPortComponent_Handlers() { - return (EReference)portComponentEClass.getEStructuralFeatures().get(8); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPortComponent_DescriptionType() { - return (EReference)portComponentEClass.getEStructuralFeatures().get(9); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPortComponent_DisplayNameType() { - return (EReference)portComponentEClass.getEStructuralFeatures().get(10); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPortComponent_IconType() { - return (EReference)portComponentEClass.getEStructuralFeatures().get(11); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWSDLPort() { - return wsdlPortEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getServiceImplBean() { - return serviceImplBeanEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceImplBean_EEJBLink() { - return (EReference)serviceImplBeanEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceImplBean_EServletLink() { - return (EReference)serviceImplBeanEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceImplBean_BeanLink() { - return (EReference)serviceImplBeanEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getServletLink() { - return servletLinkEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServletLink_ServletLink() { - return (EAttribute)servletLinkEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getEJBLink() { - return ejbLinkEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getEJBLink_EjbLink() { - return (EAttribute)ejbLinkEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getHandler() { - return handlerEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getHandler_HandlerName() { - return (EAttribute)handlerEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getHandler_HandlerClass() { - return (EAttribute)handlerEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getHandler_InitParams() { - return (EReference)handlerEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getHandler_SoapHeaders() { - return (EReference)handlerEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getHandler_SoapRoles() { - return (EReference)handlerEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getBeanLink() { - return beanLinkEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WsddFactory getWsddFactory() { - return (WsddFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - webServicesEClass = createEClass(WEB_SERVICES); - createEReference(webServicesEClass, WEB_SERVICES__WEB_SERVICE_DESCRIPTIONS); - - webServiceDescriptionEClass = createEClass(WEB_SERVICE_DESCRIPTION); - createEAttribute(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__JAXRPC_MAPPING_FILE); - createEAttribute(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__WEB_SERVICE_DESCRIPTION_NAME); - createEAttribute(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__WSDL_FILE); - createEAttribute(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__SMALL_ICON); - createEAttribute(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__LARGE_ICON); - createEAttribute(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__DESCRIPTION); - createEAttribute(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__DISPLAY_NAME); - createEReference(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__PORT_COMPONENTS); - createEReference(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE); - createEReference(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE); - createEReference(webServiceDescriptionEClass, WEB_SERVICE_DESCRIPTION__ICON_TYPE); - - portComponentEClass = createEClass(PORT_COMPONENT); - createEAttribute(portComponentEClass, PORT_COMPONENT__PORT_COMPONENT_NAME); - createEAttribute(portComponentEClass, PORT_COMPONENT__SERVICE_ENDPOINT_INTERFACE); - createEAttribute(portComponentEClass, PORT_COMPONENT__SMALL_ICON); - createEAttribute(portComponentEClass, PORT_COMPONENT__LARGE_ICON); - createEAttribute(portComponentEClass, PORT_COMPONENT__DESCRIPTION); - createEAttribute(portComponentEClass, PORT_COMPONENT__DISPLAY_NAME); - createEReference(portComponentEClass, PORT_COMPONENT__WSDL_PORT); - createEReference(portComponentEClass, PORT_COMPONENT__SERVICE_IMPL_BEAN); - createEReference(portComponentEClass, PORT_COMPONENT__HANDLERS); - createEReference(portComponentEClass, PORT_COMPONENT__DESCRIPTION_TYPE); - createEReference(portComponentEClass, PORT_COMPONENT__DISPLAY_NAME_TYPE); - createEReference(portComponentEClass, PORT_COMPONENT__ICON_TYPE); - - wsdlPortEClass = createEClass(WSDL_PORT); - - serviceImplBeanEClass = createEClass(SERVICE_IMPL_BEAN); - createEReference(serviceImplBeanEClass, SERVICE_IMPL_BEAN__EEJB_LINK); - createEReference(serviceImplBeanEClass, SERVICE_IMPL_BEAN__ESERVLET_LINK); - createEReference(serviceImplBeanEClass, SERVICE_IMPL_BEAN__BEAN_LINK); - - servletLinkEClass = createEClass(SERVLET_LINK); - createEAttribute(servletLinkEClass, SERVLET_LINK__SERVLET_LINK); - - ejbLinkEClass = createEClass(EJB_LINK); - createEAttribute(ejbLinkEClass, EJB_LINK__EJB_LINK); - - handlerEClass = createEClass(HANDLER); - createEAttribute(handlerEClass, HANDLER__HANDLER_NAME); - createEAttribute(handlerEClass, HANDLER__HANDLER_CLASS); - createEReference(handlerEClass, HANDLER__INIT_PARAMS); - createEReference(handlerEClass, HANDLER__SOAP_HEADERS); - createEReference(handlerEClass, HANDLER__SOAP_ROLES); - - beanLinkEClass = createEClass(BEAN_LINK); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI); - - // Add supertypes to classes - webServicesEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - wsdlPortEClass.getESuperTypes().add(theCommonPackage.getQName()); - servletLinkEClass.getESuperTypes().add(this.getBeanLink()); - ejbLinkEClass.getESuperTypes().add(this.getBeanLink()); - handlerEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup()); - - // Initialize classes and features; add operations and parameters - initEClass(webServicesEClass, WebServices.class, "WebServices", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getWebServices_WebServiceDescriptions(), this.getWebServiceDescription(), null, "webServiceDescriptions", null, 1, -1, WebServices.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(webServiceDescriptionEClass, WebServiceDescription.class, "WebServiceDescription", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWebServiceDescription_JaxrpcMappingFile(), ecorePackage.getEString(), "jaxrpcMappingFile", null, 0, 1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebServiceDescription_WebServiceDescriptionName(), ecorePackage.getEString(), "webServiceDescriptionName", null, 0, 1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebServiceDescription_WsdlFile(), ecorePackage.getEString(), "wsdlFile", null, 0, 1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebServiceDescription_SmallIcon(), ecorePackage.getEString(), "smallIcon", null, 0, 1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebServiceDescription_LargeIcon(), ecorePackage.getEString(), "largeIcon", null, 0, 1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebServiceDescription_Description(), ecorePackage.getEString(), "description", null, 0, 1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebServiceDescription_DisplayName(), ecorePackage.getEString(), "displayName", null, 0, 1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebServiceDescription_PortComponents(), this.getPortComponent(), null, "portComponents", null, 1, -1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebServiceDescription_DescriptionType(), theWscommonPackage.getDescriptionType(), null, "descriptionType", null, 0, 1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebServiceDescription_DisplayNameType(), theWscommonPackage.getDisplayNameType(), null, "displayNameType", null, 0, 1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWebServiceDescription_IconType(), theCommonPackage.getIconType(), null, "iconType", null, 0, 1, WebServiceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(portComponentEClass, PortComponent.class, "PortComponent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPortComponent_PortComponentName(), ecorePackage.getEString(), "portComponentName", null, 0, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPortComponent_ServiceEndpointInterface(), ecorePackage.getEString(), "serviceEndpointInterface", null, 0, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPortComponent_SmallIcon(), ecorePackage.getEString(), "smallIcon", null, 0, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPortComponent_LargeIcon(), ecorePackage.getEString(), "largeIcon", null, 0, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPortComponent_Description(), ecorePackage.getEString(), "description", null, 0, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPortComponent_DisplayName(), ecorePackage.getEString(), "displayName", null, 0, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPortComponent_WsdlPort(), this.getWSDLPort(), null, "wsdlPort", null, 1, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPortComponent_ServiceImplBean(), this.getServiceImplBean(), null, "serviceImplBean", null, 1, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPortComponent_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPortComponent_DescriptionType(), theWscommonPackage.getDescriptionType(), null, "descriptionType", null, 0, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPortComponent_DisplayNameType(), theWscommonPackage.getDisplayNameType(), null, "displayNameType", null, 0, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPortComponent_IconType(), theCommonPackage.getIconType(), null, "iconType", null, 0, 1, PortComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(wsdlPortEClass, WSDLPort.class, "WSDLPort", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(serviceImplBeanEClass, ServiceImplBean.class, "ServiceImplBean", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getServiceImplBean_EEJBLink(), this.getEJBLink(), null, "eEJBLink", null, 0, 1, ServiceImplBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceImplBean_EServletLink(), this.getServletLink(), null, "eServletLink", null, 0, 1, ServiceImplBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceImplBean_BeanLink(), this.getBeanLink(), null, "beanLink", null, 0, 1, ServiceImplBean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(servletLinkEClass, ServletLink.class, "ServletLink", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getServletLink_ServletLink(), ecorePackage.getEString(), "servletLink", null, 0, 1, ServletLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(ejbLinkEClass, EJBLink.class, "EJBLink", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEJBLink_EjbLink(), ecorePackage.getEString(), "ejbLink", null, 0, 1, EJBLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(handlerEClass, Handler.class, "Handler", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHandler_HandlerName(), ecorePackage.getEString(), "handlerName", null, 0, 1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getHandler_HandlerClass(), ecorePackage.getEString(), "handlerClass", null, 0, 1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getHandler_InitParams(), theWscommonPackage.getInitParam(), null, "initParams", null, 0, -1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getHandler_SoapHeaders(), theWscommonPackage.getSOAPHeader(), null, "soapHeaders", null, 0, -1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getHandler_SoapRoles(), theWscommonPackage.getSOAPRole(), null, "soapRoles", null, 0, -1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(beanLinkEClass, BeanLink.class, "BeanLink", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - } - -} //WsddPackageImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WsddResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WsddResourceImpl.java deleted file mode 100644 index a2e32325d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/impl/WsddResourceImpl.java +++ /dev/null @@ -1,181 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.impl; - - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.common.internal.impl.XMLResourceImpl; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.model.translator.webservices.WsddTranslator; -import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServices; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddResource; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class WsddResourceImpl extends XMLResourceImpl implements WsddResource -{ - /** - * Constructor for WsddResourceImpl. - */ - public WsddResourceImpl(URI uri, Renderer aRenderer) { - super(uri, aRenderer); - } - - /** - * Constructor for WsddResourceImpl. - * @param uri - */ - public WsddResourceImpl(Renderer aRenderer) { - super(aRenderer); - } - - /** - * Return the first element in the EList. - */ - public WebServices getWebServices() { - return (WebServices) getRootObject(); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#getRootTranslator() - */ - public Translator getRootTranslator() { - return WsddTranslator.INSTANCE; - } - - /** - * @see org.eclipse.jst.j2ee.internal.common.XMLResource#getType() - */ - public int getType() { - return WEB_SERVICE_TYPE; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#getDoctype() - */ - public String getDoctype() - { - switch (getJ2EEVersionID()) - { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - return WebServiceConstants.WEBSERVICE_DOCTYPE; - default : - return null; - } - - - } - - public boolean isWebService1_0() - { - return (getModuleVersionID()==WebServiceConstants.WEBSERVICE_1_0_ID); - } - - public boolean isWebService1_1() - { - return (getModuleVersionID()==WebServiceConstants.WEBSERVICE_1_1_ID); - } - - /* - * This directly sets the module version id - */ - public void setModuleVersionID(int id) { - super.setVersionID(id); - switch (id) { - case (WebServiceConstants.WEBSERVICE_1_1_ID) : - super.setDoctypeValues(null, null); - break; - case (WebServiceConstants.WEBSERVICE_1_0_ID) : - super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - break; - } - } - /* - * Based on the J2EE version, this will set the module version - */ - public void setJ2EEVersionID(int id) - { - switch (id) { - case (J2EE_1_4_ID) : - primSetDoctypeValues(null, null); - primSetVersionID(WebServiceConstants.WEBSERVICE_1_1_ID); - break; - case (J2EE_1_3_ID) : - primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - primSetVersionID(WebServiceConstants.WEBSERVICE_1_0_ID); - break; - case (J2EE_1_2_ID) : - primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - primSetVersionID(WebServiceConstants.WEBSERVICE_1_0_ID); - } - - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_PublicID() - */ - public String getJ2EE_1_2_PublicID() { - return WebServiceConstants.WEBSERVICE_PUBLICID; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_SystemID() - */ - public String getJ2EE_1_2_SystemID() { - return WebServiceConstants.WEBSERVICE_SYSTEMID; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_PublicID() - */ - public String getJ2EE_1_3_PublicID() { - return WebServiceConstants.WEBSERVICE_PUBLICID; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID() - */ - public String getJ2EE_1_3_SystemID() { - return WebServiceConstants.WEBSERVICE_SYSTEMID; - } - - /* Return J2EE version based on module version - */ - public int getJ2EEVersionID() { - switch (getModuleVersionID()) { - case WebServiceConstants.WEBSERVICE_1_0_ID: - return J2EEVersionConstants.J2EE_1_3_ID; - case WebServiceConstants.WEBSERVICE_1_1_ID : - return J2EEVersionConstants.J2EE_1_4_ID; - default : - return J2EEVersionConstants.J2EE_1_4_ID; - } - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#getDefaultVersionID() - */ - protected int getDefaultVersionID() { - return WebServiceConstants.WEBSERVICE_1_1_ID; - } - - - protected void syncVersionOfRootObject() - { - //Do nothing for now since the root object does not have a version. - } - - - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/util/WsddAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/util/WsddAdapterFactory.java deleted file mode 100644 index d718d73e8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/util/WsddAdapterFactory.java +++ /dev/null @@ -1,323 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.webservice.wsdd.BeanLink; -import org.eclipse.jst.j2ee.webservice.wsdd.EJBLink; -import org.eclipse.jst.j2ee.webservice.wsdd.Handler; -import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent; -import org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean; -import org.eclipse.jst.j2ee.webservice.wsdd.ServletLink; -import org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServices; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - -/** - * <!-- begin-user-doc --> - * The <b>Adapter Factory</b> for the model. - * It provides an adapter <code>createXXX</code> method for each class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage - * @generated - */ -public class WsddAdapterFactory extends AdapterFactoryImpl -{ - - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static WsddPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WsddAdapterFactory() { - if (modelPackage == null) { - modelPackage = WsddPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * <!-- begin-user-doc --> - * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. - * <!-- end-user-doc --> - * @return whether this factory is applicable for the type of the object. - * @generated - */ - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WsddSwitch modelSwitch = - new WsddSwitch() { - public Object caseWebServices(WebServices object) { - return createWebServicesAdapter(); - } - public Object caseWebServiceDescription(WebServiceDescription object) { - return createWebServiceDescriptionAdapter(); - } - public Object casePortComponent(PortComponent object) { - return createPortComponentAdapter(); - } - public Object caseWSDLPort(WSDLPort object) { - return createWSDLPortAdapter(); - } - public Object caseServiceImplBean(ServiceImplBean object) { - return createServiceImplBeanAdapter(); - } - public Object caseServletLink(ServletLink object) { - return createServletLinkAdapter(); - } - public Object caseEJBLink(EJBLink object) { - return createEJBLinkAdapter(); - } - public Object caseHandler(Handler object) { - return createHandlerAdapter(); - } - public Object caseBeanLink(BeanLink object) { - return createBeanLinkAdapter(); - } - public Object caseDescriptionGroup(DescriptionGroup object) { - return createDescriptionGroupAdapter(); - } - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return createCompatibilityDescriptionGroupAdapter(); - } - public Object caseQName(QName object) { - return createQNameAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param target the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServices <em>Web Services</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServices - * @generated - */ - public Adapter createWebServicesAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription <em>Web Service Description</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription - * @generated - */ - public Adapter createWebServiceDescriptionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsdd.PortComponent <em>Port Component</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsdd.PortComponent - * @generated - */ - public Adapter createPortComponentAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort <em>WSDL Port</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort - * @generated - */ - public Adapter createWSDLPortAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean <em>Service Impl Bean</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean - * @generated - */ - public Adapter createServiceImplBeanAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsdd.ServletLink <em>Servlet Link</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsdd.ServletLink - * @generated - */ - public Adapter createServletLinkAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsdd.EJBLink <em>EJB Link</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsdd.EJBLink - * @generated - */ - public Adapter createEJBLinkAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsdd.Handler <em>Handler</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsdd.Handler - * @generated - */ - public Adapter createHandlerAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.wsdd.BeanLink <em>Bean Link</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.wsdd.BeanLink - * @generated - */ - public Adapter createBeanLinkAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.DescriptionGroup - * @generated - */ - public Adapter createDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup - * @generated - */ - public Adapter createCompatibilityDescriptionGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.QName <em>QName</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.QName - * @generated - */ - public Adapter createQNameAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //WsddAdapterFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/util/WsddSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/util/WsddSwitch.java deleted file mode 100644 index 32d3bc2f6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/internal/util/WsddSwitch.java +++ /dev/null @@ -1,367 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.wsdd.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup; -import org.eclipse.jst.j2ee.common.DescriptionGroup; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.webservice.wsdd.BeanLink; -import org.eclipse.jst.j2ee.webservice.wsdd.EJBLink; -import org.eclipse.jst.j2ee.webservice.wsdd.Handler; -import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent; -import org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean; -import org.eclipse.jst.j2ee.webservice.wsdd.ServletLink; -import org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription; -import org.eclipse.jst.j2ee.webservice.wsdd.WebServices; -import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage; - - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage - * @generated - */ -public class WsddSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static WsddPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WsddSwitch() { - if (modelPackage == null) { - modelPackage = WsddPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case WsddPackage.WEB_SERVICES: { - WebServices webServices = (WebServices)theEObject; - Object result = caseWebServices(webServices); - if (result == null) result = caseCompatibilityDescriptionGroup(webServices); - if (result == null) result = caseDescriptionGroup(webServices); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WsddPackage.WEB_SERVICE_DESCRIPTION: { - WebServiceDescription webServiceDescription = (WebServiceDescription)theEObject; - Object result = caseWebServiceDescription(webServiceDescription); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WsddPackage.PORT_COMPONENT: { - PortComponent portComponent = (PortComponent)theEObject; - Object result = casePortComponent(portComponent); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WsddPackage.WSDL_PORT: { - WSDLPort wsdlPort = (WSDLPort)theEObject; - Object result = caseWSDLPort(wsdlPort); - if (result == null) result = caseQName(wsdlPort); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WsddPackage.SERVICE_IMPL_BEAN: { - ServiceImplBean serviceImplBean = (ServiceImplBean)theEObject; - Object result = caseServiceImplBean(serviceImplBean); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WsddPackage.SERVLET_LINK: { - ServletLink servletLink = (ServletLink)theEObject; - Object result = caseServletLink(servletLink); - if (result == null) result = caseBeanLink(servletLink); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WsddPackage.EJB_LINK: { - EJBLink ejbLink = (EJBLink)theEObject; - Object result = caseEJBLink(ejbLink); - if (result == null) result = caseBeanLink(ejbLink); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WsddPackage.HANDLER: { - Handler handler = (Handler)theEObject; - Object result = caseHandler(handler); - if (result == null) result = caseCompatibilityDescriptionGroup(handler); - if (result == null) result = caseDescriptionGroup(handler); - if (result == null) result = defaultCase(theEObject); - return result; - } - case WsddPackage.BEAN_LINK: { - BeanLink beanLink = (BeanLink)theEObject; - Object result = caseBeanLink(beanLink); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Web Services</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Web Services</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWebServices(WebServices object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Web Service Description</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Web Service Description</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWebServiceDescription(WebServiceDescription object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Port Component</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Port Component</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object casePortComponent(PortComponent object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>WSDL Port</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>WSDL Port</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLPort(WSDLPort object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Service Impl Bean</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Service Impl Bean</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseServiceImplBean(ServiceImplBean object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Servlet Link</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Servlet Link</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseServletLink(ServletLink object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EJB Link</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EJB Link</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseEJBLink(EJBLink object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Handler</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Handler</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseHandler(Handler object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Bean Link</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Bean Link</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseBeanLink(BeanLink object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseDescriptionGroup(DescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>QName</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>QName</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseQName(QName object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //WsddSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/package.xml b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/package.xml deleted file mode 100644 index 6aba955f0..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/package.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<html> - <head> - <meta - name="root" - content="../../../../../../../" /> - <title>EJB Artifact Edit api overview</title> - </head> - - <body> - <abstract> - This package includes the web services deployment descriptor common model api. Using this api the web services depolyment descriptor model artifacts (PortComponents, Handlers, WSDLPorts, WebServices Description etc.) - can be created and accessed. - </abstract> - - <a href="#top">top</a> - </body> -</html> -
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse.properties deleted file mode 100644 index a5799e81e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse.properties +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2005 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: -# IBM Corporation - initial API and implementation -############################################################################### -method_invoke_failed_EXC_=IWAE0095E Failed to invoke the method named: {0} -failed_to_load_EXC_=IWAE0096E Failed to load: {0} -method_not_found_EXC_=IWAE0097E Could not find the following method named: {0} -failed_instantiating_EXC_=IWAE0098E Failed instantiating: {0} -parse_exception_occured_EXC_=IWAE0099E An Exception occurred while parsing xml: Line #: {0} :Column #: {1} - - - diff --git a/plugins/org.eclipse.jst.j2ee.core/plugin.properties b/plugins/org.eclipse.jst.j2ee.core/plugin.properties deleted file mode 100644 index af2e51a60..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/plugin.properties +++ /dev/null @@ -1,14 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2006 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: -# IBM Corporation - initial API and implementation -############################################################################### -pluginName=J2EE Model -providerName=www.example.org -EJB_VALIDATOR=EJB Validator -J2EEApplicationErrorCustomizer=J2EE Application Error Customizer diff --git a/plugins/org.eclipse.jst.j2ee.core/plugin.xml b/plugins/org.eclipse.jst.j2ee.core/plugin.xml deleted file mode 100644 index d72cdd393..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/plugin.xml +++ /dev/null @@ -1,188 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.0"?> -<plugin> - - <extension-point id="ejbModelExtender" name="ejbModelExtender" schema="schema/ejbModelExtender.exsd"/> - <extension-point id="jndiBindingsHelpers" name="jndiBindingsHelpers" schema="schema/jndiBindingsHelpers.exsd"/> - -<!--J2EEInit--> -<!--============================--> -<!-- J2EE Core Extension Point Registry--> -<!--============================--> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="common.xmi" - class="org.eclipse.jst.j2ee.common.CommonPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="application.xmi" - class="org.eclipse.jst.j2ee.application.ApplicationPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="client.xmi" - class="org.eclipse.jst.j2ee.client.ClientPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="webapplication.xmi" - class="org.eclipse.jst.j2ee.webapplication.WebapplicationPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="ejb.xmi" - class="org.eclipse.jst.j2ee.ejb.EjbPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="jca.xmi" - class="org.eclipse.jst.j2ee.jca.JcaPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="jsp.xmi" - class="org.eclipse.jst.j2ee.jsp.JspPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="webservice_client.xmi" - class="org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="wscommon.xmi" - class="org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="wsdd.xmi" - class="org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="http://www.ibm.com/websphere/appserver/schemas/5.0.2/wscommon.xmi" - class="org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="http://www.ibm.com/websphere/appserver/schemas/5.0.2/wsdd.xmi" - class="org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage"> - </package> - </extension> -<!--ArchiveInit--> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="commonarchive.xmi" - class="org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage"> - </package> - </extension> - <extension - point="org.eclipse.emf.ecore.generated_package"> - <package - uri="commonarchive.looseconfig.xmi" - class="org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.LooseconfigPackage"> - </package> - </extension> -<!-- ====================================================== --> -<!-- a place holder for the future. --> -<!-- Several that have not changed are still registered as --> -<!-- Register package mappings --> -<!-- ====================================================== --> - <extension - point="org.eclipse.wst.common.emf.packageURIMap"> - <map - uri="common.xmi" - prefix="common"> - </map> - <map - uri="application.xmi" - prefix="application"> - </map> - <map - uri="client.xmi" - prefix="client"> - </map> - <map - uri="webapplication.xmi" - prefix="webapplication"> - </map> - <map - uri="ejb.xmi" - prefix="ejb"> - </map> - <map - uri="jca.xmi" - prefix="jca"> - </map> - <map - uri="taglib.xmi" - prefix="taglib"> - </map> - <map - uri="jsp.xmi" - prefix="jsp"> - </map> - <map - uri="commonarchive.xmi" - prefix="commonarchive"> - </map> - <map - uri="commonarchive.looseconfig.xmi" - prefix="commonarchive.looseconfig"> - </map> - </extension> - <extension - id="j2eeApplicationErrorCustomizer" - name="%J2EEApplicationErrorCustomizer" - point="org.eclipse.wst.xml.core.errorCustomizer"> - <errorCustomizer - class="org.eclipse.jst.j2ee.core.internal.validation.xmlerrorcustomization.J2EEErrorMessageCustomizer" - namespace="http://java.sun.com/xml/ns/j2ee"/> - </extension> - - - <extension - point="org.eclipse.wst.common.modulecore.resourceFactories"> - <resourceFactory - class="org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppResourceFactory" - shortSegment="web.xml"/> - <resourceFactory - class="org.eclipse.jst.j2ee.ejb.internal.impl.EJBJarResourceFactory" - shortSegment="ejb-jar.xml"/> - <resourceFactory - class="org.eclipse.jst.j2ee.client.internal.impl.ApplicationClientResourceFactory" - shortSegment="application-client.xml"/> - <resourceFactory - class="org.eclipse.jst.j2ee.application.internal.impl.ApplicationResourceFactory" - shortSegment="application.xml"/> - <resourceFactory - class="org.eclipse.jst.j2ee.jca.internal.impl.ConnectorResourceFactory" - shortSegment="ra.xml"/> - </extension> - -</plugin> diff --git a/plugins/org.eclipse.jst.j2ee.core/prepareforpii.xml b/plugins/org.eclipse.jst.j2ee.core/prepareforpii.xml deleted file mode 100644 index 032895999..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/prepareforpii.xml +++ /dev/null @@ -1,46 +0,0 @@ -<project name="PrepareForPII" default="main" basedir="."> - - <!-- Setup temp variables --> - <target name="init"> - <property name="nlsDir" value="d:/NLS/Corona/0526"/> - <property name="plugin" value="com.ibm.etools.j2ee.core"/> - <property name="plugindir" value="d:/workspaceCorona/${plugin}"/> - <property name="outputDir" value="${nlsDir}/${plugin}"/> - </target> - - <!-- Create the destination dir --> - <target name="nlsDir" depends="init"> - <mkdir dir="${nlsDir}"/> - </target> - - <!-- Create the destination dir --> - <target name="plugindir" depends="nlsDir"> - <delete dir="${outputDir}"/> - <mkdir dir="${outputDir}"/> - </target> - - <!-- Move the files to the correct locations in the workspace. --> - <target name="main" depends="plugindir"> - - <messageIdGen folderPath = "${plugindir}" componentId = "E" /> - - <copy todir = "${outputDir}/mofj2ee" > - <fileset dir="${plugindir}/mofj2ee"> - <include name="**/*.properties"/> - </fileset> - </copy> - <copy todir = "${outputDir}/commonArchive" > - <fileset dir="${plugindir}/commonArchive"> - <include name="**/*.properties"/> - </fileset> - </copy> - <copy todir = "${outputDir}/j2ee-validation" > - <fileset dir="${plugindir}/j2ee-validation"> - <include name="**/*.properties"/> - </fileset> - </copy> - - <copy file="${plugindir}/plugin.properties" todir="${outputDir}"/> - - </target> -</project> diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/application.cat b/plugins/org.eclipse.jst.j2ee.core/rose/application.cat deleted file mode 100644 index c77b9cbdc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/application.cat +++ /dev/null @@ -1,901 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Class_Category "application"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d87f3e00-8826-11e1-0000-005d9e6adec4:1"))
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "application.xmi"))
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Application")))
- quid "38C03008014E"
- visible_categories (list visibility_relationship_list
- (object Visibility_Relationship
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d87f3e00-8826-11e1-0001-005d9e6adec4:1")))
- quid "38FF3C1002A8"
- supplier "Logical View::common"
- quidu "38C08F0F038D"))
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "Application"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d87f3e00-8826-11e1-0002-005d9e6adec4:1"))
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C030A803B1"
- documentation
-|The applicationType defines the structure of the
-|application.
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023AE930094"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "version"
- quid "3E53F85800F7"
- documentation
-|@version J2EE1.4
-|The required value for the version is 1.4.
-
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "Module"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-0000-005d9e6adec4:1")))
- quid "38C0322C0006"
- documentation
-|The module element represents a single J2EE module and contains an ejb, java, or web element, which indicates the module type and contains a path to the module file, and an optional alt-dd element, which specifies an optional URI to the post-assembly version of the deployment descriptor. The application deployment descriptor must have one module element for each J2EE module in the application package.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "uri"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-0001-005d9e6adec4:1")))
- quid "38C032B202DA"
- documentation
-|Specifies the URI of a module, relative to the top level of the application package.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "altDD"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-0002-005d9e6adec4:1")))
- quid "38C032E00204"
- documentation
-|The alt-dd element specifies an optional URI to the post-assembly version of the deployment descriptor file for a particular J2EE module. The URI must specify the full pathname of the deployment descriptor file relative to the application's root directory. If alt-dd is not specified, the deployer must read the deployment descriptor from the default location and file name required by the respective component specification.
-|
-
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "WebModule"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-0003-005d9e6adec4:1")))
- quid "3904860D027B"
- documentation
-|Contains the web-uri and context-root of a web application module.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-0004-005d9e6adec4:1")))
- quid "390486AE01C9"
- supplier "Logical View::application::Module"
- quidu "38C0322C0006"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "contextRoot"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-0005-005d9e6adec4:1")))
- quid "390486140358"
- documentation
-|The context-root element specifies the context root of a web application
-|
-
- type "String"
- exportControl "Public")))
- (object Class "JavaClientModule"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-0006-005d9e6adec4:1")))
- quid "390486730015"
- documentation
-|specifies the URI of a java application client module, relative to the top level of the application package.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-0007-005d9e6adec4:1")))
- quid "390486B201F6"
- supplier "Logical View::application::Module"
- quidu "38C0322C0006")))
- (object Class "EjbModule"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-0008-005d9e6adec4:1")))
- quid "390486830253"
- documentation
-|Specifies the URI of a ejb-jar, relative to the top level of the application package.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-0009-005d9e6adec4:1")))
- quid "390486B60379"
- supplier "Logical View::application::Module"
- quidu "38C0322C0006")))
- (object Class "ConnectorModule"
- quid "39895BC00227"
- documentation "Specifies the URI of a resource adapter archive file, relative to the top level of the application package."
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "39895BCA0218"
- supplier "Logical View::application::Module"
- quidu "38C0322C0006")))
- (object Association "$UNNAMED$0"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-000a-005d9e6adec4:1")))
- quid "38C033F800B2"
- roles (list role_list
- (object Role "$UNNAMED$1"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-000b-005d9e6adec4:1")))
- quid "38C033F9017C"
- documentation "@deprecated"
- supplier "Logical View::application::Application"
- quidu "38C030A803B1"
- client_cardinality (value cardinality "0..1")
- is_aggregate TRUE)
- (object Role "securityRoles"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-000c-005d9e6adec4:1")))
- quid "38C033F9017D"
- documentation
-|Contains the definitions of security roles which are
-|global to the application.
-
- label "securityRoles"
- supplier "Logical View::common::SecurityRole"
- quidu "38C031FE012D"
- client_cardinality (value cardinality "0..*")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$2"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-000d-005d9e6adec4:1")))
- quid "38C0340003C1"
- roles (list role_list
- (object Role "application"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-000e-005d9e6adec4:1")))
- quid "38C0340102E6"
- label "application"
- supplier "Logical View::application::Application"
- quidu "38C030A803B1"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "modules"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d880c4a0-8826-11e1-000f-005d9e6adec4:1")))
- quid "38C0340102E7"
- documentation
-|The application deployment descriptor must have one
-| module element for each J2EE module in the
-| application package. A module element is defined
-| by moduleType definition.
-
- label "modules"
- supplier "Logical View::application::Module"
- quidu "38C0322C0006"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "Application Diagram"
- quid "38C0325900BF"
- title "Application Diagram"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::application::WebModule" @1
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (330, 1608)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (142, 1505)
- fill_color 13434879
- nlines 2
- max_width 376
- justify 0
- label "WebModule")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3904860D027B"
- width 394
- height 230
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::application::JavaClientModule" @2
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (678, 1577)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (578, 1501)
- fill_color 13434879
- nlines 2
- max_width 200
- justify 0
- label "JavaClientModule")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "390486730015"
- width 218
- height 176
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::application::EjbModule" @3
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (922, 1575)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (841, 1499)
- fill_color 13434879
- nlines 2
- max_width 162
- justify 0
- label "EjbModule")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "390486830253"
- height 176
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::application::ConnectorModule" @4
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1150, 1575)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @4
- location (1049, 1499)
- fill_color 13434879
- nlines 2
- max_width 202
- justify 0
- label "ConnectorModule")
- icon_style "Icon"
- line_color 16384
- fill_color 13434833
- quidu "39895BC00227"
- width 220
- height 176
- annotation 8
- autoResize TRUE)
- (object NoteView @5
- location (2100, 1097)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @5
- location (1562, 635)
- fill_color 13434879
- nlines 18
- max_width 1040
- label
-|The following conventions apply to all J2EE deployment descriptor elements unless indicated otherwise:
-|
-|- In elements that contain PCDATA, leading and trailing whitespace in the data may e ignored.
-|
-|- In elements whose value is an "enumerated type", the value is case sensitive.
-|
-|- In elements that specify a pathname to a file within the same JAR file, relative filenames (i.e., those not starting with "/") are considered relative to the root of the JAR file's namespace. Absolute filenames (i.e., those starting with "/") also specify names in the root of the JAR file's namespace. In general, relative names are preferred. The exception is .war files where absolute names are preferred for consistency with the servlet API.
- )
- line_color 3342489
- fill_color 13434879
- width 1100
- height 937)
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @6
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (987, 136)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @6
- location (809, 57)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 12632256
- quidu "3E4D451F01FB"
- width 374
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::SecurityRole" @7
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (300, 1101)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @7
- location (122, 947)
- fill_color 16777215
- nlines 2
- max_width 356
- justify 0
- label "SecurityRole")
- icon_style "Icon"
- line_color 3342489
- fill_color 12632256
- quidu "38C031FE012D"
- width 374
- height 332
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::application::Application" @8
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (367, 439)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @8
- location (114, 233)
- fill_color 13434879
- nlines 2
- max_width 506
- justify 0
- label "Application")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C030A803B1"
- width 524
- height 436
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$0" @9
- location (356, 795)
- stereotype TRUE
- line_color 3342489
- quidu "38C033F800B2"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$1" @10
- Parent_View @9
- location (4, -309)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @11
- Parent_View @10
- location (214, 694)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 231
- justify 0
- label ""
- pctDist 0.735426
- height 143
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C033F9017C"
- client @9
- supplier @8
- vertices (list Points
- (356, 795)
- (356, 657))
- line_style 3
- origin_attachment (356, 795)
- terminal_attachment (356, 657)
- label (object SegLabel @12
- Parent_View @10
- location (423, 692)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.748879
- height 67
- orientation 1))
- (object RoleView "securityRoles" @13
- Parent_View @9
- location (4, -309)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @14
- Parent_View @13
- location (212, 900)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 283
- justify 0
- label "+securityRoles"
- pctDist 0.753623
- height 145
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C033F9017D"
- client @9
- supplier @7
- vertices (list Points
- (356, 795)
- (356, 934))
- line_style 3
- origin_attachment (356, 795)
- terminal_attachment (356, 934)
- label (object SegLabel @15
- Parent_View @13
- location (412, 903)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..*"
- pctDist 0.775362
- height 56
- orientation 0))))
- (object ClassView "Class" "Logical View::application::Module" @16
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (833, 1072)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @16
- location (702, 970)
- fill_color 13434879
- nlines 1
- max_width 262
- justify 0
- label "Module")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0322C0006"
- compartment (object Compartment
- Parent_View @16
- location (702, 1031)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 294)
- width 280
- height 228
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$2" @17
- location (878, 661)
- stereotype TRUE
- line_color 3342489
- quidu "38C0340003C1"
- roleview_list (list RoleViews
- (object RoleView "application" @18
- Parent_View @17
- location (-658, -491)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @19
- Parent_View @18
- location (758, 558)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 231
- justify 0
- label "+application"
- pctDist 0.584615
- height 44
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C0340102E6"
- client @17
- supplier @8
- vertices (list Points
- (878, 661)
- (878, 601)
- (629, 601))
- line_style 3
- origin_attachment (878, 661)
- terminal_attachment (629, 601)
- label (object SegLabel @20
- Parent_View @18
- location (723, 643)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.695385
- height 42
- orientation 0))
- (object RoleView "modules" @21
- Parent_View @17
- location (-658, -491)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @22
- Parent_View @21
- location (753, 914)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 180
- justify 0
- label "+modules"
- pctDist 0.851449
- height 126
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C0340102E7"
- client @17
- supplier @16
- vertices (list Points
- (878, 661)
- (878, 957))
- line_style 3
- origin_attachment (878, 661)
- terminal_attachment (878, 957)
- label (object SegLabel @23
- Parent_View @21
- location (948, 916)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.862319
- height 70
- orientation 0))))
- (object InheritTreeView "" @24
- location (833, 1325)
- line_color 3342489
- fill_color 13434879
- supplier @16
- vertices (list Points
- (833, 1325)
- (833, 1186)))
- (object InheritView "" @25
- stereotype TRUE
- line_color 3342489
- quidu "390486B60379"
- client @3
- supplier @16
- vertices (list Points
- (922, 1487)
- (922, 1325))
- line_style 3
- origin_attachment (922, 1487)
- terminal_attachment (922, 1325)
- drawSupplier @24)
- (object InheritView "" @26
- stereotype TRUE
- line_color 3342489
- quidu "390486AE01C9"
- client @1
- supplier @16
- vertices (list Points
- (419, 1492)
- (419, 1325))
- line_style 3
- origin_attachment (419, 1492)
- terminal_attachment (419, 1325)
- drawSupplier @24)
- (object InheritView "" @27
- stereotype TRUE
- line_color 3342489
- quidu "390486B201F6"
- client @2
- supplier @16
- vertices (list Points
- (678, 1489)
- (678, 1325))
- line_style 3
- origin_attachment (678, 1489)
- terminal_attachment (678, 1325)
- drawSupplier @24)
- (object InheritView "" @28
- stereotype TRUE
- line_color 16384
- quidu "39895BCA0218"
- client @4
- supplier @16
- vertices (list Points
- (1141, 1487)
- (1141, 1306)
- (894, 1306)
- (894, 1186))
- line_style 3
- origin_attachment (1141, 1487)
- terminal_attachment (894, 1186))))))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/client.cat b/plugins/org.eclipse.jst.j2ee.core/rose/client.cat deleted file mode 100644 index cd237782a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/client.cat +++ /dev/null @@ -1,1576 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Class_Category "client"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-0000-005d9e6adec4:1"))
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "client.xmi"))
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Client")))
- quid "38C0280700C0"
- visible_categories (list visibility_relationship_list
- (object Visibility_Relationship
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-0001-005d9e6adec4:1")))
- quid "38FF3C180336"
- supplier "Logical View::common"
- quidu "38C08F0F038D"))
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "ApplicationClient"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-0002-005d9e6adec4:1"))
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C028AB009E"
- documentation
-|The application-client element is the root element of an application client deployment descriptor. The application client deployment descriptor describes the EJB components and external resources referenced by the application client.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023AEFC0009"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "version"
- quid "3E559EEA0241"
- documentation
-|@version J2EE1.4
-|The required value for the version is 1.4.
-
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "ResAuthApplicationType"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-0007-005d9e6adec4:1")))
- quid "38C0A0C201A5"
- documentation
-|Application=0
-|Container=1
-
- stereotype "enumeration"
- language "Java")
- (object Association "$UNNAMED$0"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-0009-005d9e6adec4:1")))
- quid "38C02A5B0211"
- roles (list role_list
- (object Role "$UNNAMED$1"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-000a-005d9e6adec4:1")))
- quid "38C02A5D0002"
- supplier "Logical View::client::ApplicationClient"
- quidu "38C028AB009E"
- client_cardinality (value cardinality "0..1")
- is_aggregate TRUE)
- (object Role "resourceRefs"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-000b-005d9e6adec4:1")))
- quid "38C02A5D000C"
- documentation "Contains declarations of the application clients's references to an external resources."
- label "resourceRefs"
- supplier "Logical View::common::ResourceRef"
- quidu "371BC79303C6"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$2"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-000c-005d9e6adec4:1")))
- quid "38C02B4501D5"
- roles (list role_list
- (object Role "$UNNAMED$3"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-000d-005d9e6adec4:1")))
- quid "38C02B46021C"
- supplier "Logical View::client::ApplicationClient"
- quidu "38C028AB009E"
- client_cardinality (value cardinality "0..1")
- is_aggregate TRUE)
- (object Role "environmentProps"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-000e-005d9e6adec4:1")))
- quid "38C02B460226"
- documentation "The env-entry element contains the declaration of an application client's environment entries. Each declaration consists of an optional description, the name of the environment entry, and an optional value."
- label "environmentProps"
- supplier "Logical View::common::EnvEntry"
- quidu "371BC77800E2"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$4"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-000f-005d9e6adec4:1")))
- quid "38C02B4B0011"
- roles (list role_list
- (object Role "$UNNAMED$5"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-0010-005d9e6adec4:1")))
- quid "38C02B4C0044"
- supplier "Logical View::client::ApplicationClient"
- quidu "38C028AB009E"
- client_cardinality (value cardinality "0..1")
- is_aggregate TRUE)
- (object Role "ejbReferences"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8e72790-8826-11e1-0011-005d9e6adec4:1")))
- quid "38C02B4C0045"
- documentation
-|Contains a list of ejb-ref elements used for the declaration of a reference to an enterprise
-|bean's home.
-
- label "ejbReferences"
- supplier "Logical View::common::EjbRef"
- quidu "371BC78202B3"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$6"
- quid "39895E8E00FD"
- roles (list role_list
- (object Role "resourceEnvRefs"
- quid "39895E8F033A"
- documentation
-|The resource-env-ref element contains a declaration of an application client's reference to an administered object associated with a resource in the application client's environment. It consists of an optional
-|description, the resource environment reference name, and an indication of the resource environment reference type expected by the application client code.
-|
-|Used in: application-client
-|
-|Example:
-|
-|<resource-env-ref>
-| <resource-env-ref-name>jms/StockQueue</resource-env-ref-name>
-| <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
-|</resource-env-ref>
-|
-
- label "resourceEnvRefs"
- supplier "Logical View::common::ResourceEnvRef"
- quidu "39BF207200D3"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$7"
- quid "39895E8F034E"
- supplier "Logical View::client::ApplicationClient"
- quidu "38C028AB009E"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$8"
- quid "39895F3D029A"
- roles (list role_list
- (object Role "callbackHandler "
- quid "39895F3E01F1"
- documentation "A class provided by the application. The class must have a no args constructor and must implement the javax.security.auth.callback.CallbackHandler interface. The class will be instantiated by the application client container and used by the container to collect authentication information from the user."
- label "callbackHandler "
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "0..1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$9"
- quid "39895F3E0223"
- supplier "Logical View::client::ApplicationClient"
- quidu "38C028AB009E"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$10"
- quid "3E53F4AC005F"
- roles (list role_list
- (object Role "serviceRefs"
- quid "3E53F4AC02F4"
- documentation "@version J2EE1.4"
- label "serviceRefs"
- supplier "Logical View::wsclient::ServiceRef"
- quidu "3E4D2F560184"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$11"
- quid "3E53F4AC0308"
- supplier "Logical View::client::ApplicationClient"
- quidu "38C028AB009E"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$12"
- quid "3E53F50701D2"
- roles (list role_list
- (object Role "messageDestinationRefs"
- quid "3E53F50800B1"
- documentation
-|@version J2EE1.4
-|The message-destination-ref-name element specifies the
-| name of a message destination reference; its value is
-| the message destination reference name used in the
-| application client code. The name is a JNDI name
-| relative to the java:comp/env context and must be unique
-| within an application client.
-
- label "messageDestinationRefs"
- supplier "Logical View::common::MessageDestinationRef"
- quidu "3E4C1F52028C"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$13"
- quid "3E53F50800BB"
- supplier "Logical View::client::ApplicationClient"
- quidu "38C028AB009E"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$14"
- quid "3E53F5DB0372"
- roles (list role_list
- (object Role "messageDestinations"
- quid "3E53F5DD003F"
- documentation "@version J2EE1.4"
- label "messageDestinations"
- supplier "Logical View::common::MessageDestination"
- quidu "3E4C211001CF"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$15"
- quid "3E53F5DD0053"
- supplier "Logical View::client::ApplicationClient"
- quidu "38C028AB009E"
- is_aggregate TRUE))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "Client Diagram"
- quid "38C028C600ED"
- title "Client Diagram"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @1
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (453, 729)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (275, 650)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 12632256
- quidu "3E4D451F01FB"
- width 374
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::ResourceRef" @2
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2096, 2064)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (1619, 1810)
- fill_color 16777215
- nlines 2
- max_width 954
- justify 0
- label "ResourceRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 12632256
- quidu "371BC79303C6"
- width 972
- height 532
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::EnvEntry" @3
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1024, 2016)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (778, 1812)
- fill_color 16777215
- nlines 2
- max_width 492
- justify 0
- label "EnvEntry")
- icon_style "Icon"
- line_color 3342489
- fill_color 12632256
- quidu "371BC77800E2"
- width 510
- height 432
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::EjbRef" @4
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1456, 2064)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @4
- location (1224, 1810)
- fill_color 16777215
- nlines 2
- max_width 464
- justify 0
- label "EjbRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 12632256
- quidu "371BC78202B3"
- width 482
- height 532
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::ResourceEnvRef" @5
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2288, 640)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @5
- location (1951, 486)
- fill_color 13434879
- nlines 2
- max_width 674
- justify 0
- label "ResourceEnvRef")
- icon_style "Icon"
- line_color 16384
- fill_color 12632256
- quidu "39BF207200D3"
- width 692
- height 332
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::java::JavaClass" @6
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (782, 218)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @6
- location (689, 139)
- nlines 2
- max_width 186
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "36549FCC00FA"
- width 204
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wsclient::ServiceRef" @7
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (432, 2016)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @7
- location (336, 1941)
- fill_color 13434879
- nlines 2
- max_width 192
- justify 0
- label "ServiceRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777088
- quidu "3E4D2F560184"
- width 210
- height 174
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::MessageDestinationRef" @8
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1072, 640)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @8
- location (637, 464)
- fill_color 13434879
- nlines 1
- max_width 870
- justify 0
- label "MessageDestinationRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 12632256
- quidu "3E4C1F52028C"
- width 888
- height 376
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::MessageDestination" @9
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1568, 496)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @9
- location (1329, 392)
- fill_color 13434879
- nlines 1
- max_width 478
- justify 0
- label "MessageDestination")
- icon_style "Icon"
- line_color 3342489
- fill_color 12632256
- quidu "3E4C211001CF"
- width 496
- height 232
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::client::ApplicationClient" @10
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (384, 1264)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @10
- location (131, 1058)
- fill_color 13434879
- nlines 2
- max_width 506
- justify 0
- label "ApplicationClient")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C028AB009E"
- width 524
- height 436
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$0" @11
- location (1564, 1330)
- stereotype TRUE
- line_color 3342489
- quidu "38C02A5B0211"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$1" @12
- Parent_View @11
- location (1308, 274)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @13
- Parent_View @12
- location (831, 1289)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C02A5D0002"
- client @11
- supplier @10
- vertices (list Points
- (1564, 1330)
- (646, 1330))
- line_style 3
- origin_attachment (1564, 1330)
- terminal_attachment (646, 1330)
- label (object SegLabel @14
- Parent_View @12
- location (784, 1304)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.850107
- height 27
- orientation 1))
- (object RoleView "resourceRefs" @15
- Parent_View @11
- location (1308, 274)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @16
- Parent_View @15
- location (2155, 1638)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 264
- justify 0
- label "+resourceRefs"
- pctDist 0.826607
- height 142
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C02A5D000C"
- client @11
- supplier @2
- vertices (list Points
- (1564, 1330)
- (2013, 1330)
- (2013, 1798))
- line_style 3
- origin_attachment (1564, 1330)
- terminal_attachment (2013, 1798)
- label (object SegLabel @17
- Parent_View @15
- location (2067, 1706)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$2" @18
- location (993, 1454)
- stereotype TRUE
- line_color 3342489
- quidu "38C02B4501D5"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$3" @19
- Parent_View @18
- location (113, 414)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @20
- Parent_View @19
- location (715, 1413)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C02B46021C"
- client @18
- supplier @10
- vertices (list Points
- (993, 1454)
- (646, 1454))
- line_style 3
- origin_attachment (993, 1454)
- terminal_attachment (646, 1454)
- label (object SegLabel @21
- Parent_View @19
- location (735, 1390)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.746108
- height 65
- orientation 1))
- (object RoleView "environmentProps" @22
- Parent_View @18
- location (113, 414)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @23
- Parent_View @22
- location (1242, 1524)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 348
- justify 0
- label "+environmentProps"
- pctDist 0.320896
- height 189
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C02B460226"
- client @18
- supplier @3
- vertices (list Points
- (993, 1454)
- (1053, 1454)
- (1053, 1800))
- line_style 3
- origin_attachment (993, 1454)
- terminal_attachment (1053, 1800)
- label (object SegLabel @24
- Parent_View @22
- location (1131, 1712)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.786025
- height 78
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$4" @25
- location (1233, 1415)
- stereotype TRUE
- line_color 3342489
- quidu "38C02B4B0011"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$5" @26
- Parent_View @25
- location (-351, 327)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @27
- Parent_View @26
- location (764, 1374)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C02B4C0044"
- client @25
- supplier @10
- vertices (list Points
- (1233, 1415)
- (646, 1415))
- line_style 3
- origin_attachment (1233, 1415)
- terminal_attachment (646, 1415)
- label (object SegLabel @28
- Parent_View @26
- location (706, 1362)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "ejbReferences" @29
- Parent_View @25
- location (-351, 327)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @30
- Parent_View @29
- location (1619, 1586)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 288
- justify 0
- label "+ejbReferences"
- pctDist 0.638132
- height 182
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C02B4C0045"
- client @25
- supplier @4
- vertices (list Points
- (1233, 1415)
- (1437, 1415)
- (1437, 1798))
- line_style 3
- origin_attachment (1233, 1415)
- terminal_attachment (1437, 1798)
- label (object SegLabel @31
- Parent_View @29
- location (1534, 1718)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.864668
- height 97
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$6" @32
- location (1549, 1268)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 16384
- quidu "39895E8E00FD"
- roleview_list (list RoleViews
- (object RoleView "resourceEnvRefs" @33
- Parent_View @32
- location (1165, 1012)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @34
- Parent_View @33
- location (2169, 997)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 338
- justify 0
- label "+resourceEnvRefs"
- pctDist 0.789588
- height 179
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39895E8F033A"
- client @32
- supplier @5
- vertices (list Points
- (1549, 1268)
- (1990, 1268)
- (1990, 806))
- line_style 3
- origin_attachment (1549, 1268)
- terminal_attachment (1990, 806)
- label (object SegLabel @35
- Parent_View @33
- location (2038, 916)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.879377
- height 48
- orientation 1))
- (object RoleView "$UNNAMED$7" @36
- Parent_View @32
- location (1165, 1012)
- stereotype TRUE
- line_color 3342489
- quidu "39895E8F034E"
- client @32
- supplier @10
- vertices (list Points
- (1549, 1268)
- (646, 1268))
- line_style 3
- origin_attachment (1549, 1268)
- terminal_attachment (646, 1268))))
- (object AssociationViewNew "$UNNAMED$8" @37
- location (781, 760)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "39895F3D029A"
- roleview_list (list RoleViews
- (object RoleView "callbackHandler " @38
- Parent_View @37
- location (397, 504)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @39
- Parent_View @38
- location (984, 355)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 315
- justify 0
- label "+callbackHandler "
- pctDist 0.899209
- height 203
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39895F3E01F1"
- client @37
- supplier @6
- vertices (list Points
- (781, 760)
- (781, 309))
- line_style 3
- origin_attachment (781, 760)
- terminal_attachment (781, 309)
- label (object SegLabel @40
- Parent_View @38
- location (718, 353)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.905138
- height 64
- orientation 0))
- (object RoleView "$UNNAMED$9" @41
- Parent_View @37
- location (397, 504)
- stereotype TRUE
- line_color 3342489
- quidu "39895F3E0223"
- client @37
- supplier @10
- vertices (list Points
- (781, 760)
- (781, 1076)
- (646, 1076))
- line_style 3
- origin_attachment (781, 760)
- terminal_attachment (646, 1076))))
- (object AssociationViewNew "$UNNAMED$10" @42
- location (329, 1705)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E53F4AC005F"
- roleview_list (list RoleViews
- (object RoleView "serviceRefs" @43
- Parent_View @42
- location (-171, 1027)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @44
- Parent_View @43
- location (196, 1848)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 240
- justify 0
- label "+serviceRefs"
- pctDist 0.639344
- height 134
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E53F4AC02F4"
- client @42
- supplier @7
- vertices (list Points
- (329, 1705)
- (329, 1928))
- line_style 3
- origin_attachment (329, 1705)
- terminal_attachment (329, 1928)
- label (object SegLabel @45
- Parent_View @43
- location (403, 1853)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.663934
- height 74
- orientation 0))
- (object RoleView "$UNNAMED$11" @46
- Parent_View @42
- location (-171, 1027)
- stereotype TRUE
- line_color 3342489
- quidu "3E53F4AC0308"
- client @42
- supplier @10
- vertices (list Points
- (329, 1705)
- (329, 1482))
- line_style 3
- origin_attachment (329, 1705)
- terminal_attachment (329, 1482))))
- (object AssociationViewNew "$UNNAMED$12" @47
- location (896, 1080)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E53F50701D2"
- roleview_list (list RoleViews
- (object RoleView "messageDestinationRefs" @48
- Parent_View @47
- location (396, 402)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @49
- Parent_View @48
- location (1146, 876)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 474
- justify 0
- label "+messageDestinationRefs"
- pctDist 0.808765
- height 250
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E53F50800B1"
- client @47
- supplier @8
- vertices (list Points
- (896, 1080)
- (896, 827))
- line_style 3
- origin_attachment (896, 1080)
- terminal_attachment (896, 827)
- label (object SegLabel @50
- Parent_View @48
- location (832, 876)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.808765
- height 65
- orientation 0))
- (object RoleView "$UNNAMED$13" @51
- Parent_View @47
- location (396, 402)
- stereotype TRUE
- line_color 3342489
- quidu "3E53F50800BB"
- client @47
- supplier @10
- vertices (list Points
- (896, 1080)
- (896, 1140)
- (646, 1140))
- line_style 3
- origin_attachment (896, 1080)
- terminal_attachment (646, 1140))))
- (object AssociationViewNew "$UNNAMED$14" @52
- location (1401, 1202)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E53F5DB0372"
- roleview_list (list RoleViews
- (object RoleView "messageDestinations" @53
- Parent_View @52
- location (1023, -60)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @54
- Parent_View @53
- location (1767, 690)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 424
- justify 0
- label "+messageDestinations"
- pctDist 0.897567
- height 201
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E53F5DD003F"
- client @52
- supplier @9
- vertices (list Points
- (1401, 1202)
- (1566, 1202)
- (1566, 612))
- line_style 3
- origin_attachment (1401, 1202)
- terminal_attachment (1566, 612)
- label (object SegLabel @55
- Parent_View @53
- location (1483, 674)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.918987
- height 84
- orientation 0))
- (object RoleView "$UNNAMED$15" @56
- Parent_View @52
- location (1023, -60)
- stereotype TRUE
- line_color 3342489
- quidu "3E53F5DD0053"
- client @52
- supplier @10
- vertices (list Points
- (1401, 1202)
- (646, 1202))
- line_style 3
- origin_attachment (1401, 1202)
- terminal_attachment (646, 1202))))))
- (object ClassDiagram "resAuth Relation"
- quid "38C0A0B10060"
- title "resAuth Relation"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::client::ResAuthApplicationType" @57
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (275, 734)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @57
- location (31, 708)
- fill_color 13434879
- nlines 1
- max_width 488
- justify 0
- label "ResAuthApplicationType")
- stereotype (object ItemLabel
- Parent_View @57
- location (31, 658)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 488
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0A0C201A5"
- width 506
- height 176
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::ResAuthTypeBase" @58
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (272, 240)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @58
- location (94, 93)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "ResAuthTypeBase")
- stereotype (object ItemLabel
- Parent_View @58
- location (94, 43)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 353
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C09ED400B4"
- width 374
- height 418
- annotation 8
- autoResize TRUE)))))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/common.cat b/plugins/org.eclipse.jst.j2ee.core/rose/common.cat deleted file mode 100644 index 1dce4423f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/common.cat +++ /dev/null @@ -1,6287 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Class_Category "common"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "common.xmi"))
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Common")))
- quid "38C08F0F038D"
- visible_categories (list visibility_relationship_list
- (object Visibility_Relationship
- quid "39B7E48C0067"
- supplier "Logical View::ejb"
- quidu "3780E272032D")
- (object Visibility_Relationship
- quid "39AB2BF100FA"
- supplier "Logical View::application"
- quidu "38C03008014E"))
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "EjbRef"
- quid "371BC78202B3"
- documentation
-|The ejb-refType is used by ejb-ref elements for the
-|declaration of a reference to an enterprise bean's home. The
-|declaration consists of:
-|
-| - an optional description
-| - the EJB reference name used in the code of
-| the Deployment Component that's referencing the enterprise
-| bean
-| - the expected type of the referenced enterprise bean
-| - the expected home and remote interfaces of the referenced
-| enterprise bean
-| - optional ejb-link information, used to specify the
-| referenced enterprise bean
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "371BD4000185"
- documentation
-|The ejb-ref-name element contains the name of an EJB reference. This is the JNDI name that the servlet code uses to get a reference to the enterprise bean.
-|Example: <ejb-ref-name>ejb/Payroll</ejb-ref-name>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "type"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "371BD413018C"
- documentation
-|The ejb-ref-type element contains the expected type of the referenced enterprise bean. The ejb-ref-type element must be one of the following:
-|<ejb-ref-type>Entity</ejb-ref-type>
-|<ejb-ref-type>Session</ejb-ref-type>
-
- type "EjbRefType"
- quidu "38C126FB0081"
- exportControl "Public")
- (object ClassAttribute "home"
- quid "371BD425032D"
- documentation
-|The home element contains the fully-qualified name of the enterprise bean’s home interface.
-|Example: <home>com.aardvark.payroll.PayrollHome</home>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "remote"
- quid "371BD42E0073"
- documentation "The remote element contains the fully-qualified name of the enterprise bean’s remote interface."
- type "String"
- exportControl "Public")
- (object ClassAttribute "link"
- quid "371BD45B028A"
- documentation
-|The ejb-link element is used in the ejb-ref element to specify that an EJB reference is linked to an enterprise bean in the encompassing J2EE Application package. The value of the ejb-link element must be the ejb-name of an enterprise bean in the same J2EE Application package.
-|Example: <ejb-link>EmployeeRecord</ejb-link>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "description"
- quid "38BDD87602E5"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.
-
- type "String"
- exportControl "Public")))
- (object Class "EnvEntry"
- quid "371BC77800E2"
- documentation
-|The env-entryType is used to declare an application's
-|environment entry. The declaration consists of an optional
-|description, the name of the environment entry, and an
-|optional value. If a value is not specified, one must be
-|supplied during deployment.
-|
-|It is used by env-entry elements.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "371BD3710392"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "name"
- quid "371BD3780111"
- documentation
-|The env-entry-name element contains the name of a
-| Deployment Component's environment entry. The name
-| is a JNDI name relative to the java:comp/env
-| context. The name must be unique within a
-| Deployment Component. The uniqueness
-| constraints must be defined within the declared
-| context.
-|
-| Example:
-|
-| <env-entry-name>minAmount</env-entry-name>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "value"
- quid "371BD38003A8"
- documentation
-|The env-entry-value designates the value of a
-| Deployment Component's environment entry. The value
-| must be a String that is valid for the
-| constructor of the specified type that takes a
-| single String parameter, or for java.lang.Character,
-| a single character.
-|
-| Example:
-|
-| <env-entry-value>100.00</env-entry-value>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "type"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "38BDD8340091"
- documentation
-|The env-entry-type element contains the fully-qualified Java type of the environment entry value that is expected by the application client’s code. The following are the legal values of env-entry-type: java.lang.Bool-ean, java.lang.String, java.lang.Integer, java.lang.Double, java.lang.Byte, java.lang.Short, java.lang.Long, and java.lang.Float.
-|Example: <env-entry-type>java.lang.Boolean</env-entry-type>
-
- type "EnvEntryType"
- quidu "38BDD7A60315"
- exportControl "Public")))
- (object Class "ResourceRef"
- quid "371BC79303C6"
- documentation
-|The resource-refType contains a declaration of a
-|Deployment Component's reference to an external resource. It
-|consists of an optional description, the resource manager
-|connection factory reference name, the indication of the
-|resource manager connection factory type expected by the
-|Deployment Component code, the type of authentication
-|(Application or Container), and an optional specification of
-|the shareability of connections obtained from the resource
-|(Shareable or Unshareable).
-|
-|Example:
-|
-|<resource-ref>
-| <res-ref-name>jdbc/EmployeeAppDB</res-ref-name>
-| <res-type>javax.sql.DataSource</res-type>
-| <res-auth>Container</res-auth>
-| <res-sharing-scope>Shareable</res-sharing-scope>
-|</resource-ref>
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "371BD5580338"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "name"
- quid "371BD55F0310"
- documentation
-|The res-ref-name element specifies the name of a
-| resource manager connection factory reference.
-| The name is a JNDI name relative to the
-| java:comp/env context.
-| The name must be unique within a Deployment File.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "type"
- quid "371BD575024A"
- documentation
-|The res-type element specifies the type of the data
-| source. The type is specified by the fully qualified
-| Java language class or interface
-| expected to be implemented by the data source.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "auth"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "38BDD8D900AC"
- documentation
-|The res-auth element specifies whether the enterprise bean code signs on programmatically to the resource manager, or whether the Container will sign on to the resource manager on behalf of the bean. In the latter case, the Container uses information that is supplied by the Deployer. The value of this element must be one of the two following:
-|<res-auth>Application</res-auth>
-|<res-auth>Container</res-auth>
-
- type "ResAuthTypeBase"
- quidu "38C09ED400B4"
- exportControl "Public")
- (object ClassAttribute "link"
- quid "39A9C7430008"
- documentation "@version J2EE1.4 deprecated"
- type "String"
- exportControl "Public")
- (object ClassAttribute "resSharingScope"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "39BF27FC03DB"
- documentation
-|The res-sharing-scope element specifies whether connections obtained
-|through the given resource manager connection factory reference can be
-|shared. The value of this element, if specified, must be one of the
-|two following: Shareable, Unshareable
-|
-|The default value is Shareable.
-|
-
- type "ResSharingScopeType"
- quidu "39BF288C00A3"
- exportControl "Public")))
- (object Class "EnvEntryType"
- quid "38BDD7A60315"
- documentation
-|@version J2EE1.3 added Character
-|String=0
-|Integer=1
-|Boolean=2
-|Double=3
-|Byte=4
-|Short=5
-|Long=6
-|Float=7
-|Character=8
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "String"
- quid "39A9C7D800CB"
- exportControl "Public")
- (object ClassAttribute "Integer"
- quid "39A9C7DB009D"
- exportControl "Public")
- (object ClassAttribute "Boolean"
- quid "39A9C7E200ED"
- exportControl "Public")
- (object ClassAttribute "Double"
- quid "39A9C7E401C3"
- exportControl "Public")
- (object ClassAttribute "Byte"
- quid "39A9C7E600E9"
- exportControl "Public")
- (object ClassAttribute "Short"
- quid "39A9C7EF02FF"
- exportControl "Public")
- (object ClassAttribute "Long"
- quid "39A9C7F103D4"
- exportControl "Public")
- (object ClassAttribute "Float"
- quid "39A9C7F302F1"
- exportControl "Public")
- (object ClassAttribute "Character"
- quid "39886ADD03A8"
- exportControl "Public"))
- language "Java")
- (object Class "SecurityRoleRef"
- quid "371BC7A0025C"
- documentation
-|The security-role-refType contains the declaration of a
-|security role reference in a component's or a
-|Deployment Component's code. The declaration consists of an
-|optional description, the security role name used in the
-|code, and an optional link to a security role. If the
-|security role is not specified, the Deployer must choose an
-|appropriate security role.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "371BD4BC0135"
- documentation
-|The value of the role-name element must be the String used
-| as the parameter to the
-| EJBContext.isCallerInRole(String roleName) method or the
-| HttpServletRequest.isUserInRole(String role) method.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "description"
- quid "38BDD89D01C8"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "link"
- quid "38BDD8AC0134"
- documentation
-|The role-link element is a reference to a defined
-| security role. The role-link element must contain
-| the name of one of the security roles defined in the
-| security-role elements.
-|
-
- type "String"
- exportControl "Public")))
- (object Class "ResAuthTypeBase"
- quid "38C09ED400B4"
- documentation
-|CONTAINER=0
-|Container=1
-|Application=2
-|SERVLET=3
-|
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "Container"
- quid "3EA6D8F301E7"
- exportControl "Public")
- (object ClassAttribute "Application"
- quid "3EA6D9000178"
- exportControl "Public")
- (object ClassAttribute "SERVLET"
- quid "3EAFED8B0138"
- exportControl "Public"))
- language "Java")
- (object Class "EjbRefType"
- quid "38C126FB0081"
- documentation
-|Session=0
-|Entity=1
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "Session"
- quid "39A9C7C601D3"
- exportControl "Public")
- (object ClassAttribute "Entity"
- quid "39A9C7CD0242"
- exportControl "Public"))
- language "Java")
- (object Class "SecurityRole"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C031FE012D"
- documentation
-|The security-roleType contains the definition of a security
-|role. The definition consists of an optional description of the
-|security role, and the security role name.
-|
-|Example:
-|
-| <security-role>
-| <description>
-| This role includes all employees who are authorized
-| to access the employee service application.
-| </description>
-| <role-name>employee</role-name>
-| </security-role>
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "38C032690159"
- documentation "@deprecated See descriptions"
- type "String"
- exportControl "Public")
- (object ClassAttribute "roleName"
- quid "38C0327D014D"
- documentation
-|The role-name element contains the name of a role. This element must contain a non-empty string.
-|
-
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "ResourceEnvRef"
- quid "39BF207200D3"
- documentation
-|The resource-env-refType is used to define
-|resource-env-type elements. It contains a declaration of a
-|Deployment Component's reference to an administered object
-|associated with a resource in the Deployment Component's
-|environment. It consists of an optional description, the
-|resource environment reference name, and an indication of
-|the resource environment reference type expected by the
-|Deployment Component code.
-|
-|Example:
-|
-|<resource-env-ref>
-| <resource-env-ref-name>jms/StockQueue
-| </resource-env-ref-name>
-| <resource-env-ref-type>javax.jms.Queue
-| </resource-env-ref-type>
-|</resource-env-ref>
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "39BF21C20177"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description is used by the ejb-jar file producer to provide text describing the resource env ref.
-|
-|The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "name"
- quid "39BF21CD03C1"
- documentation
-|The resource-env-ref-name element specifies the name
-| of a resource environment reference; its value is
-| the environment entry name used in
-| the Deployment Component code. The name is a JNDI
-| name relative to the java:comp/env context and must
-| be unique within a Deployment Component.
-
- type "String"
- exportControl "Public")))
- (object Class "ResSharingScopeType"
- quid "39BF288C00A3"
- documentation
-|Shareable=0
-|Unshareable=1
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "Shareable"
- quid "39BF28AE00A2"
- exportControl "Public")
- (object ClassAttribute "Unshareable"
- quid "39BF28B0027C"
- exportControl "Public")))
- (object Class "EJBLocalRef"
- quid "398862E20101"
- documentation
-|@version J2EE1.3
-|The ejb-local-refType is used by ejb-local-ref elements for
-|the declaration of a reference to an enterprise bean's local
-|home. The declaration consists of:
-|
-| - an optional description
-| - the EJB reference name used in the code of the Deployment
-| Component that's referencing the enterprise bean
-| - the expected type of the referenced enterprise bean
-| - the expected local home and local interfaces of the
-| referenced enterprise bean
-| - optional ejb-link information, used to specify the
-| referenced enterprise bean
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3E91E66A0374"
- supplier "Logical View::common::EjbRef"
- quidu "371BC78202B3"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "localHome"
- quid "3E4BE9E1035D"
- type "String"
- exportControl "Public")
- (object ClassAttribute "local"
- quid "3E4BE9EC00B9"
- type "String"
- exportControl "Public")))
- (object Class "RunAsSpecifiedIdentity"
- quid "39BF2C9E02C8"
- documentation
-|The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It contains an optional description and a specification of the security identity to be used.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "39BF2D0F0130"
- supplier "Logical View::common::SecurityIdentity"
- quidu "39BF2C040245")))
- (object Class "Identity"
- quid "39BF2DA40058"
- documentation
-|Specifies the run-as identity to be used for the execution of the methods of an enterprise bean. It contains an optional description, and the name of a security role.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "39BF2DDC00B3"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description is used by the ejb-jar file producer to provide text describing the run as identity.
-|
-|The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "roleName"
- quid "39BF2DEB00F1"
- documentation
-|The role-name element contains the name of a security role.
-|
-|The name must conform to the lexical rules for an NMTOKEN.
-
- type "String"
- exportControl "Public")))
- (object Class "IconType"
- quid "3E4A99EE003A"
- documentation
-|@version J2EE1.4
-|The icon type contains small-icon and large-icon elements
-|that specify the file names for small and large GIF or
-|JPEG icon images used to represent the parent element in a
-|GUI tool.
-|
-|The xml:lang attribute defines the language that the
-|icon file names are provided in. Its value is "en" (English)
-|by default.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "smallIcon"
- quid "3E4A9A16027C"
- documentation
-|The small-icon element contains the name of a file
-| containing a small (16 x 16) icon image. The file
-| name is a relative path within the Deployment
-| Component's Deployment File.
-|
-| The image may be either in the JPEG or GIF format.
-| The icon can be used by tools.
-|
-| Example:
-|
-| <small-icon>employee-service-icon16x16.jpg</small-icon>
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "largeIcon"
- quid "3E4A9A1D00E1"
- documentation
-|The large-icon element contains the name of a file
-| containing a large
-| (32 x 32) icon image. The file name is a relative
-| path within the Deployment Component's Deployment
-| File.
-|
-| The image may be either in the JPEG or GIF format.
-| The icon can be used by tools.
-|
-| Example:
-|
-| <large-icon>employee-service-icon32x32.jpg</large-icon>
-|
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "lang"
- quid "3E4A9AC101C4"
- type "String"
- exportControl "Public")))
- (object Class "DisplayName"
- quid "3E4A9922000E"
- documentation
-|@version J2EE1.4
-|The display-name type contains a short name that is intended
-|to be displayed by tools. It is used by display-name
-|elements. The display name need not be unique.
-|
-|Example:
-|
-|...
-| <display-name xml:lang="en">Employee Self Service</display-name>
-|
-|The value of the xml:lang attribute is "en" (English) by default.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "lang"
- quid "3E4A993C0106"
- type "String"
- exportControl "Public")
- (object ClassAttribute "value"
- quid "3E4A99510341"
- stereotype "0..1"
- type "String"
- exportControl "Public")))
- (object Class "MessageDestinationRef"
- quid "3E4C1F52028C"
- documentation
-|@version J2EE1.4
-|The message-destination-ref element contains a declaration
-|of Deployment Component's reference to a message destination
-|associated with a resource in Deployment Component's
-|environment. It consists of:
-|
-| - an optional description
-| - the message destination reference name
-| - the message destination type
-| - a specification as to whether the
-| destination is used for
-| consuming or producing messages, or both
-| - a link to the message destination
-|
-|Examples:
-|
-|<message-destination-ref>
-| <message-destination-ref-name>jms/StockQueue
-| </message-destination-ref-name>
-| <message-destination-type>javax.jms.Queue
-| </message-destination-type>
-| <message-destination-usage>Consumes
-| </message-destination-usage>
-| <message-destination-link>CorporateStocks
-| </message-destination-link>
-|</message-destination-ref>
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "3E4C1F7C01D8"
- type "String"
- exportControl "Public")
- (object ClassAttribute "type"
- quid "3E4C1F910002"
- type "String"
- exportControl "Public")
- (object ClassAttribute "usage"
- quid "3E4C1F9E02AA"
- type "MessageDestinationUsageType"
- quidu "3EAED1C200A8"
- exportControl "Public")
- (object ClassAttribute "link"
- quid "3E4C1FBF00EE"
- type "String"
- exportControl "Public")))
- (object Class "MessageDestination"
- quid "3E4C211001CF"
- documentation
-|@version J2EE1.4
-|The message-destinationType specifies a message
-|destination. The logical destination described by this
-|element is mapped to a physical destination by the Deployer.
-|
-|The message destination element contains:
-|
-| - an optional description
-| - an optional display-name
-| - an optional icon
-| - a message destination name which must be unique
-| among message destination names within the same
-| Deployment File.
-|
-|Example:
-|
-|<message-destination>
-| <message-destination-name>CorporateStocks
-| </message-destination-name>
-|</message-destination>
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3E9D5FC6011C"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "3E4D2CFC03CD"
- documentation
-|The message-destination-name element specifies a
-| name for a message destination. This name must be
-| unique among the names of message destinations
-| within the Deployment File.
-
- type "String"
- exportControl "Public")))
- (object Class "ParamValue"
- quid "3E4C221202C1"
- documentation
-|@version J2EE1.4
-|This type is a general type that can be used to declare
-|parameter/value lists.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "3E4C22430217"
- documentation "The param-name element contains the name of a parameter."
- type "String"
- exportControl "Public")
- (object ClassAttribute "value"
- quid "3E4D426D03C6"
- documentation "The param-value element contains the value of a parameter."
- type "String"
- exportControl "Public")
- (object ClassAttribute "description"
- quid "3F7868BE0236"
- documentation "@version J2EE1.4 deprecated, becomes descriptions"
- type "String"
- exportControl "Public")))
- (object Class "DescriptionGroup"
- quid "3E4D451F01FB"
- documentation
-|@version J2EE1.4
-|This group keeps the usage of the contained description related
-|elements consistent across J2EE deployment descriptors.
- )
- (object Class "JNDIEnvRefsGroup"
- quid "3E4D53950349"
- documentation
-|@version J2EE1.4
-|This group keeps the usage of the contained JNDI environment
-|reference elements consistent across J2EE deployment descriptors.
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023B1F8006C"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- abstract TRUE)
- (object Class "SecurityIdentity"
- quid "39BF2C040245"
- documentation
-|The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It
-|contains an optional description and a specification of the security identity to be used.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "398871C20279"
- documentation "@version J2EE1.4 deprecated, becomes descriptions"
- type "String"
- exportControl "Public")))
- (object Class "UseCallerIdentity"
- quid "39BF2C9002F0"
- documentation
-|The use-caller-identity element specifies that the caller's security identity be used as the security identity for the execution of the enterprise bean's methods.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "39BF2D0A007F"
- supplier "Logical View::common::SecurityIdentity"
- quidu "39BF2C040245")))
- (object Class "Description"
- quid "3E4A98D602E0"
- documentation
-|@version J2EE1.4
-|The description type is used by a description element to
-|provide text describing the parent element. The elements
-|that use this type should include any information that the
-|Deployment Component's Deployment File file producer wants
-|to provide to the consumer of the Deployment Component's
-|Deployment File (i.e., to the Deployer). Typically, the
-|tools used by such a Deployment File consumer will display
-|the description when processing the parent element that
-|contains the description.
-|
-|The lang attribute defines the language that the
-|description is provided in. The default value is "en" (English).
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "lang"
- quid "3E4A98E001AE"
- type "String"
- exportControl "Public")
- (object ClassAttribute "value"
- quid "3E4A98E900DF"
- type "String"
- exportControl "Public")))
- (object Class "MessageDestinationUsageType"
- quid "3EAED1C200A8"
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "Consumes"
- quid "3EAED1DD016F"
- exportControl "Public")
- (object ClassAttribute "Produces"
- quid "3EAED1F40190"
- exportControl "Public")
- (object ClassAttribute "ConsumesProduces"
- quid "3EAED1F90332"
- exportControl "Public")))
- (object Class "QName"
- quid "3F3BEF5D02C0"
- class_attributes (list class_attribute_list
- (object ClassAttribute "namespaceURI"
- quid "3F3BEF7000DD"
- type "String"
- exportControl "Public")
- (object ClassAttribute "localPart"
- quid "3F3BEFDE0230"
- type "String"
- exportControl "Public")
- (object ClassAttribute "combinedQName"
- quid "3F4391D100FA"
- type "String"
- exportControl "Public")
- (object ClassAttribute "internalPrefixOrNsURI"
- quid "3F437DD203B6"
- type "String"
- exportControl "Public")))
- (object Class "Listener"
- quid "39BFB26001BD"
- documentation
-|@version J2EE1.4 moved from webapp
-|
-|Declares a class in the application must be registered as a web application listener bean.
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4058AE790141"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197")))
- (object Class "CompatibilityDescriptionGroup"
- quid "4023ADF20197"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023AE8701D8"
- supplier "Logical View::common::DescriptionGroup"
- quidu "3E4D451F01FB"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "smallIcon"
- quid "4023AE130145"
- type "String"
- exportControl "Public")
- (object ClassAttribute "largeIcon"
- quid "4023AE1D009F"
- type "String"
- exportControl "Public")
- (object ClassAttribute "description"
- quid "4023AE25029F"
- type "String"
- exportControl "Public")
- (object ClassAttribute "displayName"
- quid "4023AE3001C9"
- type "String"
- exportControl "Public")))
- (object Association "$UNNAMED$0"
- quid "3904632A005C"
- roles (list role_list
- (object Role "/linkedSecurityRole"
- quid "3904632B016C"
- label "/linkedSecurityRole"
- supplier "Logical View::common::SecurityRole"
- quidu "38C031FE012D"
- keys (list class_attribute_list
- (object ClassAttribute "name"
- quid "3989605401D3"
- type "String"))
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE)
- (object Role "$UNNAMED$1"
- quid "3904632B01BC"
- supplier "Logical View::common::SecurityRoleRef"
- quidu "371BC7A0025C")))
- (object Association "$UNNAMED$2"
- quid "398ED2980285"
- roles (list role_list
- (object Role "/linkedEJB"
- quid "398ED29A00B1"
- label "/linkedEJB"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A"
- keys (list class_attribute_list
- (object ClassAttribute "name"
- quid "3989606A0116"
- type "String"))
- client_cardinality (value cardinality "0..n")
- is_navigable TRUE)
- (object Role "$UNNAMED$3"
- quid "398ED29A0151"
- supplier "Logical View::common::EjbRef"
- quidu "371BC78202B3")))
- (object Association "$UNNAMED$4"
- quid "399784A702BA"
- documentation
-|The resource-env-ref-type element specifies the type
-| of a resource environment reference. It is the
-| fully qualified name of a Java language class or
-| interface.
-
- roles (list role_list
- (object Role "type"
- quid "399784A802A7"
- documentation
-|The resource-env-ref-type element specifies the type
-| of a resource environment reference. It is the
-| fully qualified name of a Java language class or
-| interface.
-
- label "type"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$5"
- quid "399784A802D0"
- supplier "Logical View::common::ResourceEnvRef"
- quidu "39BF207200D3"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$6"
- quid "39BF2DB5023D"
- roles (list role_list
- (object Role "identity"
- quid "39BF2DB601D1"
- documentation "Optional specifies the run-as identity to be used for the execution of the methods of an enterprise bean. It contains an optional description, and the name of a security role."
- label "identity"
- supplier "Logical View::common::Identity"
- quidu "39BF2DA40058"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$7"
- quid "39BF2DB601D2"
- supplier "Logical View::common::RunAsSpecifiedIdentity"
- quidu "39BF2C9E02C8"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$8"
- quid "3E4D43320152"
- roles (list role_list
- (object Role "icons"
- quid "3E4D43350016"
- label "icons"
- supplier "Logical View::common::IconType"
- quidu "3E4A99EE003A"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$9"
- quid "3E4D4335002A"
- supplier "Logical View::common::DescriptionGroup"
- quidu "3E4D451F01FB"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$10"
- quid "3E4D43540133"
- roles (list role_list
- (object Role "displayNames"
- quid "3E4D43550152"
- label "displayNames"
- supplier "Logical View::common::DisplayName"
- quidu "3E4A9922000E"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$11"
- quid "3E4D43550166"
- supplier "Logical View::common::DescriptionGroup"
- quidu "3E4D451F01FB"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$12"
- quid "3E4D434D0255"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D434E012A"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$13"
- quid "3E4D434E0152"
- supplier "Logical View::common::DescriptionGroup"
- quidu "3E4D451F01FB"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$14"
- quid "3E4C23ED00C5"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4C23EE0153"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$15"
- quid "3E4C23EE0167"
- supplier "Logical View::common::ResourceRef"
- quidu "371BC79303C6"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$16"
- quid "3E4C0B37005A"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4C0B380084"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$17"
- quid "3E4C0B38008E"
- supplier "Logical View::common::EnvEntry"
- quidu "371BC77800E2"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$18"
- quid "3E53ED900289"
- roles (list role_list
- (object Role "descriptions"
- quid "3E53ED9101EA"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$19"
- quid "3E53ED910262"
- supplier "Logical View::common::SecurityRoleRef"
- quidu "371BC7A0025C"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$20"
- quid "3E4D26DC03E6"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D26DE02DB"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$21"
- quid "3E4D26DE0303"
- supplier "Logical View::common::SecurityRole"
- quidu "38C031FE012D"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$22"
- quid "3E4C23800295"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4C2382011B"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$23"
- quid "3E4C2382012F"
- supplier "Logical View::common::ResourceEnvRef"
- quidu "39BF207200D3"
- is_aggregate TRUE)))
- (object Association "descriptions"
- quid "3E4C0978022E"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4C09790230"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$24"
- quid "3E4C0979023A"
- supplier "Logical View::common::EjbRef"
- quidu "371BC78202B3"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$25"
- quid "3E4C20210031"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4C202101CC"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$26"
- quid "3E4C202101E0"
- supplier "Logical View::common::MessageDestinationRef"
- quidu "3E4C1F52028C"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$27"
- quid "3E5679FE0087"
- roles (list role_list
- (object Role "descriptions"
- quid "3E5679FE0344"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$28"
- quid "3E5679FE0362"
- supplier "Logical View::common::SecurityIdentity"
- quidu "39BF2C040245"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$29"
- quid "3E4C22270090"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4C222703C5"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$30"
- quid "3E4C222703D9"
- supplier "Logical View::common::ParamValue"
- quidu "3E4C221202C1"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$31"
- quid "3E95CA660065"
- documentation "@version J2EE1.4"
- roles (list role_list
- (object Role "descriptions"
- quid "3E95CA66032C"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$32"
- quid "3E95CA66035E"
- supplier "Logical View::common::Identity"
- quidu "39BF2DA40058"
- is_aggregate TRUE))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "Refs to Resources"
- quid "39044F8402E5"
- title "Refs to Resources"
- documentation "@version J2EE1.4 deprecated"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 2720
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::common::EjbRefType" @1
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2545, 441)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (2382, 357)
- fill_color 13434879
- nlines 1
- max_width 326
- justify 0
- label "EjbRefType")
- stereotype (object ItemLabel
- Parent_View @1
- location (2382, 307)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 323
- justify 0
- label "<<enumeration>>")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "38C126FB0081"
- width 344
- height 292
- annotation 8
- autoResize TRUE)
- (object NoteView @2
- location (2432, 2147)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (1703, 1894)
- fill_color 13434879
- nlines 10
- max_width 1422
- label
-|@version J2EE1.3
-|ADDED resSharingScope:ResSharingScopeType
-|
-|The res-sharing-scope element specifies whether connections obtained through the given resource manager connection factory reference can be shared. The value of this element, if specified, must be one of the two following:
-| Shareable
-| Unshareable
-|
-|The default value is Shareable.
- )
- line_color 4227072
- fill_color 13434833
- width 1482
- height 519)
- (object ClassView "Class" "Logical View::common::ResSharingScopeType" @3
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (472, 2252)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (249, 2168)
- fill_color 13434879
- nlines 1
- max_width 446
- justify 0
- label "ResSharingScopeType")
- stereotype (object ItemLabel
- Parent_View @3
- location (249, 2118)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 446
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF288C00A3"
- width 464
- height 292
- annotation 8
- autoResize TRUE)
- (object AttachView "" @4
- stereotype TRUE
- line_color 4227072
- client @2
- supplier @3
- vertices (list Points
- (1690, 2261)
- (704, 2261))
- line_style 3
- origin_attachment (1690, 2261)
- terminal_attachment (704, 2261))
- (object NoteView @5
- location (1963, 1691)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @5
- location (1400, 1597)
- fill_color 13434879
- nlines 3
- max_width 1090
- label
-|Deprecated:
-|description becomes descriptions:List<DescriptionType>
-|link becomes ??
- )
- line_color 3342489
- fill_color 13434879
- width 1150
- height 200)
- (object ClassView "Class" "Logical View::common::SecurityRole" @6
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (1599, 1451)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @6
- location (1518, 1375)
- nlines 2
- max_width 162
- justify 0
- label "SecurityRole")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "38C031FE012D"
- height 176
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::SecurityRoleRef" @7
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2624, 1424)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @7
- location (2446, 1299)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "SecurityRoleRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "371BC7A0025C"
- width 374
- height 274
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$0" @8
- location (2063, 1454)
- stereotype TRUE
- line_color 3342489
- quidu "3904632A005C"
- roleview_list (list RoleViews
- (object RoleView "/linkedSecurityRole" @9
- Parent_View @8
- location (1151, 174)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @10
- Parent_View @9
- location (1912, 1496)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 372
- justify 0
- label "+/linkedSecurityRole"
- pctDist 0.404624
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3904632B016C"
- client @8
- supplier @6
- vertices (list Points
- (2063, 1454)
- (1689, 1454))
- line_style 3
- origin_attachment (2063, 1454)
- terminal_attachment (1689, 1454)
- label (object SegLabel @11
- Parent_View @9
- location (1739, 1402)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.867052
- height 53
- orientation 1))
- (object RoleView "$UNNAMED$1" @12
- Parent_View @8
- location (1151, 174)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @13
- Parent_View @12
- location (2361, 1413)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 307
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3904632B01BC"
- client @8
- supplier @7
- vertices (list Points
- (2063, 1454)
- (2437, 1454))
- line_style 3
- origin_attachment (2063, 1454)
- terminal_attachment (2437, 1454)
- label (object SegLabel @14
- Parent_View @12
- location (2295, 1454)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 5
- anchor_loc 1
- nlines 1
- max_width 244
- justify 0
- label "name : String"
- pctDist 0.900000
- height 12
- orientation 1))))
- (object ClassView "Class" "Logical View::common::EJBLocalRef" @15
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- ShowOperationSignature TRUE
- location (288, 736)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @15
- location (109, 609)
- fill_color 13434879
- nlines 2
- max_width 358
- justify 0
- label "EJBLocalRef")
- icon_style "Icon"
- line_color 32768
- fill_color 13434833
- quidu "398862E20101"
- width 376
- height 278
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::java::JavaClass" @16
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1328, 2656)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @16
- location (1214, 2602)
- nlines 1
- max_width 228
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "36549FCC00FA"
- width 246
- height 132
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::ResourceEnvRef" @17
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (416, 2608)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @17
- location (151, 2481)
- fill_color 13434879
- nlines 2
- max_width 530
- justify 0
- label "ResourceEnvRef")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF207200D3"
- width 548
- height 278
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$4" @18
- location (947, 2681)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "399784A702BA"
- roleview_list (list RoleViews
- (object RoleView "type" @19
- Parent_View @18
- location (595, 777)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @20
- Parent_View @19
- location (1126, 2737)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 108
- justify 0
- label "+type"
- pctDist 0.696335
- height 56
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "399784A802A7"
- client @18
- supplier @16
- vertices (list Points
- (947, 2681)
- (1205, 2681))
- line_style 3
- origin_attachment (947, 2681)
- terminal_attachment (1205, 2681)
- label (object SegLabel @21
- Parent_View @19
- location (1149, 2628)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.783691
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$5" @22
- Parent_View @18
- location (595, 777)
- stereotype TRUE
- line_color 3342489
- quidu "399784A802D0"
- client @18
- supplier @17
- vertices (list Points
- (947, 2681)
- (690, 2681))
- line_style 3
- origin_attachment (947, 2681)
- terminal_attachment (690, 2681))))
- (object ClassView "Class" "Logical View::common::Description" @23
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1472, 2416)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @23
- location (1344, 2314)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 3342489
- fill_color 15778042
- quidu "3E4A98D602E0"
- width 274
- height 228
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$22" @24
- location (1012, 2518)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C23800295"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$23" @25
- Parent_View @24
- location (-571, 1996)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @26
- Parent_View @25
- location (755, 2477)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C2382012F"
- client @24
- supplier @17
- vertices (list Points
- (1012, 2518)
- (690, 2518))
- line_style 3
- origin_attachment (1012, 2518)
- terminal_attachment (690, 2518))
- (object RoleView "descriptions" @27
- Parent_View @24
- location (-571, 1996)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @28
- Parent_View @27
- location (1062, 2484)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.158416
- height 35
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C2382011B"
- client @24
- supplier @23
- vertices (list Points
- (1012, 2518)
- (1335, 2518))
- line_style 3
- origin_attachment (1012, 2518)
- terminal_attachment (1335, 2518)
- label (object SegLabel @29
- Parent_View @27
- location (1275, 2486)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.818482
- height 33
- orientation 0))))
- (object ClassView "Class" "Logical View::common::ResourceRef" @30
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (496, 1728)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @30
- location (101, 1507)
- fill_color 13434879
- nlines 2
- max_width 790
- justify 0
- label "ResourceRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "371BC79303C6"
- width 808
- height 466
- annotation 8
- autoResize TRUE)
- (object AttachView "" @31
- stereotype TRUE
- line_color 4227072
- client @2
- supplier @30
- vertices (list Points
- (1690, 1897)
- (900, 1897))
- line_style 3
- origin_attachment (1690, 1897)
- terminal_attachment (900, 1897))
- (object AttachView "" @32
- stereotype TRUE
- line_color 3342489
- client @30
- supplier @5
- vertices (list Points
- (900, 1716)
- (1387, 1704))
- line_style 0)
- (object ClassView "Class" "Logical View::common::Description" @33
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1600, 512)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @33
- location (1472, 410)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 3342489
- fill_color 15778042
- quidu "3E4A98D602E0"
- width 274
- height 228
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$14" @34
- location (815, 735)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C23ED00C5"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @35
- Parent_View @34
- location (307, -1087)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @36
- Parent_View @35
- location (1221, 582)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.681347
- height 41
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C23EE0153"
- client @34
- supplier @33
- vertices (list Points
- (815, 735)
- (815, 622)
- (1463, 622))
- line_style 3
- origin_attachment (815, 735)
- terminal_attachment (1463, 622)
- label (object SegLabel @37
- Parent_View @35
- location (1392, 584)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.908031
- height 39
- orientation 0))
- (object RoleView "$UNNAMED$15" @38
- Parent_View @34
- location (307, -1087)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C23EE0167"
- client @34
- supplier @30
- vertices (list Points
- (815, 735)
- (815, 1494))
- line_style 3
- origin_attachment (815, 735)
- terminal_attachment (815, 1494))))
- (object ClassView "Class" "Logical View::ejb::EnterpriseBean" @39
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (1648, 192)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @39
- location (1554, 88)
- nlines 2
- max_width 188
- justify 0
- label "EnterpriseBean")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "3780E71A010A"
- width 206
- height 232
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::EjbRef" @40
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (288, 272)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @40
- location (110, 76)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "EjbRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "371BC78202B3"
- width 374
- height 416
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "descriptions" @41
- location (969, 400)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C0978022E"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @42
- Parent_View @41
- location (681, 144)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @43
- Parent_View @42
- location (1270, 365)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.608602
- height 36
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C09790230"
- client @41
- supplier @33
- vertices (list Points
- (969, 400)
- (1463, 400))
- line_style 3
- origin_attachment (969, 400)
- terminal_attachment (1463, 400)
- label (object SegLabel @44
- Parent_View @42
- location (1475, 361)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 1.025806
- height 40
- orientation 0))
- (object RoleView "$UNNAMED$24" @45
- Parent_View @41
- location (681, 144)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C0979023A"
- client @41
- supplier @40
- vertices (list Points
- (969, 400)
- (475, 400))
- line_style 3
- origin_attachment (969, 400)
- terminal_attachment (475, 400))))
- (object AssociationViewNew "$UNNAMED$2" @46
- location (1010, 141)
- stereotype TRUE
- line_color 3342489
- quidu "398ED2980285"
- roleview_list (list RoleViews
- (object RoleView "/linkedEJB" @47
- Parent_View @46
- location (738, -211)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @48
- Parent_View @47
- location (1336, 102)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 228
- justify 0
- label "+/linkedEJB"
- pctDist 0.611276
- height 40
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "398ED29A00B1"
- client @46
- supplier @39
- vertices (list Points
- (1010, 141)
- (1545, 141))
- line_style 3
- origin_attachment (1010, 141)
- terminal_attachment (1545, 141)
- label (object SegLabel @49
- Parent_View @47
- location (1450, 164)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.824607
- height 23
- orientation 1))
- (object RoleView "$UNNAMED$3" @50
- Parent_View @46
- location (738, -211)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "398ED29A0151"
- client @46
- supplier @40
- vertices (list Points
- (1010, 141)
- (475, 141))
- line_style 3
- origin_attachment (1010, 141)
- terminal_attachment (475, 141)
- label (object SegLabel @51
- Parent_View @50
- location (616, 141)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 5
- anchor_loc 1
- nlines 1
- max_width 244
- justify 0
- label "name : String"
- pctDist 0.900000
- height 12
- orientation 1))))
- (object InheritView "" @52
- stereotype TRUE
- line_color 3342489
- quidu "3E91E66A0374"
- client @15
- supplier @40
- vertices (list Points
- (288, 596)
- (288, 480))
- line_style 0)))
- (object ClassDiagram "Security"
- quid "3B7951F8018D"
- title "Security"
- documentation
-|The env-entry-name element contains the name of a
-| Deployment Component's environment entry. The name
-| is a JNDI name relative to the java:comp/env
-| context. The name must be unique within a
-| Deployment Component. The uniqueness
-| constraints must be defined within the declared
-| context.
-|
-| Example:
-|
-| <env-entry-name>minAmount</env-entry-name>
-
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 1837
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::common::UseCallerIdentity" @53
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (512, 2118)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @53
- location (411, 2041)
- fill_color 13434879
- nlines 2
- max_width 202
- justify 0
- label "UseCallerIdentity")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF2C9002F0"
- width 220
- height 178
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::EnterpriseBean" @54
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (416, 1232)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @54
- location (165, 1028)
- fill_color 13434879
- nlines 1
- max_width 502
- justify 0
- label "EnterpriseBean")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E71A010A"
- width 520
- height 432
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::Servlet" @55
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1664, 1504)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @55
- location (1281, 1275)
- fill_color 13434879
- nlines 1
- max_width 766
- justify 0
- label "Servlet")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C079140251"
- width 784
- height 482
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::SecurityIdentity" @56
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (864, 1664)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @56
- location (686, 1586)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "SecurityIdentity")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF2C040245"
- width 374
- height 180
- annotation 8
- autoResize TRUE)
- (object InheritView "" @57
- stereotype TRUE
- line_color 4227072
- quidu "39BF2D0A007F"
- client @53
- supplier @56
- vertices (list Points
- (580, 2028)
- (792, 1754))
- line_style 0)
- (object AssociationViewNew "" @58
- location (705, 1510)
- stereotype TRUE
- line_color 3342489
- quidu "39BF2C1F018F"
- roleview_list (list RoleViews
- (object RoleView "" @59
- Parent_View @58
- location (-159, -26)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @60
- Parent_View @59
- location (625, 1490)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BF2C200264"
- client @58
- supplier @54
- vertices (list Points
- (705, 1510)
- (641, 1448))
- line_style 0)
- (object RoleView "securityIdentity" @61
- Parent_View @58
- location (-159, -26)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @62
- Parent_View @61
- location (566, 1576)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 299
- justify 0
- label "+securityIdentity"
- pctDist -0.603746
- height 145
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF2C200263"
- client @58
- supplier @56
- vertices (list Points
- (705, 1510)
- (770, 1573))
- line_style 0
- label (object SegLabel @63
- Parent_View @61
- location (814, 1515)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.889576
- height 73
- orientation 0))))
- (object ClassView "Class" "Logical View::common::SecurityRoleRef" @64
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (336, 336)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @64
- location (158, 211)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "SecurityRoleRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "371BC7A0025C"
- width 374
- height 274
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::SecurityRole" @65
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1584, 304)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @65
- location (1406, 202)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "SecurityRole")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C031FE012D"
- width 374
- height 228
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$0" @66
- location (960, 281)
- stereotype TRUE
- line_color 3342489
- quidu "3904632A005C"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$1" @67
- Parent_View @66
- location (-381, -107)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @68
- Parent_View @67
- location (705, 204)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 307
- justify 0
- label ""
- pctDist 0.585052
- height 78
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3904632B01BC"
- client @66
- supplier @64
- vertices (list Points
- (960, 281)
- (523, 281))
- line_style 3
- origin_attachment (960, 281)
- terminal_attachment (523, 281)
- label (object SegLabel @69
- Parent_View @67
- location (664, 281)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 5
- anchor_loc 1
- nlines 1
- max_width 244
- justify 0
- label "name : String"
- pctDist 0.900000
- height 12
- orientation 1))
- (object RoleView "/linkedSecurityRole" @70
- Parent_View @66
- location (-381, -107)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @71
- Parent_View @70
- location (1172, 238)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 372
- justify 0
- label "+/linkedSecurityRole"
- pctDist 0.487113
- height 44
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3904632B016C"
- client @66
- supplier @65
- vertices (list Points
- (960, 281)
- (1397, 281))
- line_style 3
- origin_attachment (960, 281)
- terminal_attachment (1397, 281)
- label (object SegLabel @72
- Parent_View @70
- location (1351, 342)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.896907
- height 61
- orientation 1))))
- (object ClassView "Class" "Logical View::common::RunAsSpecifiedIdentity" @73
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1120, 2128)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @73
- location (894, 2078)
- fill_color 13434879
- nlines 1
- max_width 452
- justify 0
- label "RunAsSpecifiedIdentity")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF2C9E02C8"
- width 470
- height 124
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "" @74
- location (1313, 1905)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "39982A2E0255"
- roleview_list (list RoleViews
- (object RoleView "" @75
- Parent_View @74
- location (216, -168)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @76
- Parent_View @75
- location (1393, 1750)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39982A2F018E"
- client @74
- supplier @55
- vertices (list Points
- (1313, 1905)
- (1450, 1745))
- line_style 0)
- (object RoleView "runAs" @77
- Parent_View @74
- location (216, -168)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @78
- Parent_View @77
- location (1172, 1983)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 136
- justify 0
- label "+runAs"
- pctDist 0.717360
- height 57
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39982A2F0184"
- client @74
- supplier @73
- vertices (list Points
- (1313, 1905)
- (1173, 2065))
- line_style 0
- label (object SegLabel @79
- Parent_View @77
- location (1296, 2013)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.437963
- height 58
- orientation 0))))
- (object InheritView "" @80
- stereotype TRUE
- line_color 4227072
- quidu "39BF2D0F0130"
- client @73
- supplier @56
- vertices (list Points
- (1085, 2065)
- (914, 1754))
- line_style 0)
- (object ClassView "Class" "Logical View::common::Description" @81
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1120, 880)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @81
- location (992, 778)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E4A98D602E0"
- width 274
- height 228
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$27" @82
- location (987, 1283)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E5679FE0087"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @83
- Parent_View @82
- location (120, -384)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @84
- Parent_View @83
- location (1181, 1107)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.750403
- height 130
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E5679FE0344"
- client @82
- supplier @81
- vertices (list Points
- (987, 1283)
- (1080, 994))
- line_style 0
- label (object SegLabel @85
- Parent_View @83
- location (1007, 1044)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.773758
- height 57
- orientation 0))
- (object RoleView "$UNNAMED$28" @86
- Parent_View @82
- location (120, -384)
- stereotype TRUE
- line_color 3342489
- quidu "3E5679FE0362"
- client @82
- supplier @56
- vertices (list Points
- (987, 1283)
- (892, 1573))
- line_style 0)))
- (object AssociationViewNew "$UNNAMED$18" @87
- location (482, 869)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E53ED900289"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @88
- Parent_View @87
- location (76, 513)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @89
- Parent_View @88
- location (814, 835)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.662088
- height 35
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E53ED9101EA"
- client @87
- supplier @81
- vertices (list Points
- (482, 869)
- (983, 869))
- line_style 3
- origin_attachment (482, 869)
- terminal_attachment (983, 869)
- label (object SegLabel @90
- Parent_View @88
- location (919, 920)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.872845
- height 51
- orientation 1))
- (object RoleView "$UNNAMED$19" @91
- Parent_View @87
- location (76, 513)
- stereotype TRUE
- line_color 3342489
- quidu "3E53ED910262"
- client @87
- supplier @64
- vertices (list Points
- (482, 869)
- (378, 869)
- (378, 473))
- line_style 3
- origin_attachment (482, 869)
- terminal_attachment (378, 473))))
- (object AssociationViewNew "$UNNAMED$20" @92
- location (1634, 751)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D26DC03E6"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$21" @93
- Parent_View @92
- location (1364, -89)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @94
- Parent_View @93
- location (1593, 485)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D26DE0303"
- client @92
- supplier @65
- vertices (list Points
- (1634, 751)
- (1634, 417))
- line_style 3
- origin_attachment (1634, 751)
- terminal_attachment (1634, 417))
- (object RoleView "descriptions" @95
- Parent_View @92
- location (1364, -89)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @96
- Parent_View @95
- location (1443, 776)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.575000
- height 36
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D26DE02DB"
- client @92
- supplier @81
- vertices (list Points
- (1634, 751)
- (1634, 811)
- (1257, 811))
- line_style 3
- origin_attachment (1634, 751)
- terminal_attachment (1257, 811)
- label (object SegLabel @97
- Parent_View @95
- location (1344, 849)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.801075
- height 38
- orientation 0))))
- (object ClassView "Class" "Logical View::common::Identity" @98
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2032, 2112)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @98
- location (1767, 2010)
- fill_color 13434879
- nlines 1
- max_width 530
- justify 0
- label "Identity")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39BF2DA40058"
- width 548
- height 228
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$6" @99
- location (1556, 2119)
- stereotype TRUE
- line_color 3342489
- quidu "39BF2DB5023D"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$7" @100
- Parent_View @99
- location (-282, 91)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @101
- Parent_View @100
- location (1395, 2081)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF2DB601D2"
- client @99
- supplier @73
- vertices (list Points
- (1556, 2119)
- (1355, 2122))
- line_style 0)
- (object RoleView "identity" @102
- Parent_View @99
- location (-282, 91)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @103
- Parent_View @102
- location (1653, 2076)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 172
- justify 0
- label "+identity"
- pctDist 0.483528
- height 43
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BF2DB601D1"
- client @99
- supplier @98
- vertices (list Points
- (1556, 2119)
- (1757, 2115))
- line_style 0
- label (object SegLabel @104
- Parent_View @102
- location (1699, 2159)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.710327
- height 42
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$31" @105
- location (2122, 1057)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E95CA660065"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @106
- Parent_View @105
- location (88, -1056)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @107
- Parent_View @106
- location (1411, 1018)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.837607
- height 36
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E95CA66032C"
- client @105
- supplier @81
- vertices (list Points
- (2122, 1057)
- (2122, 982)
- (1257, 982))
- line_style 3
- origin_attachment (2122, 1057)
- terminal_attachment (1257, 982)
- label (object SegLabel @108
- Parent_View @106
- location (1302, 920)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.951826
- height 63
- orientation 1))
- (object RoleView "$UNNAMED$32" @109
- Parent_View @105
- location (88, -1056)
- stereotype TRUE
- line_color 3342489
- quidu "3E95CA66035E"
- client @105
- supplier @98
- vertices (list Points
- (2122, 1057)
- (2122, 1998))
- line_style 3
- origin_attachment (2122, 1057)
- terminal_attachment (2122, 1998))))))
- (object ClassDiagram "Env Entries"
- quid "399825D90228"
- title "Env Entries"
- documentation
-|The description type is used by a description element to
-|provide text describing the parent element. The elements
-|that use this type should include any information that the
-|Deployment Component's Deployment File file producer wants
-|to provide to the consumer of the Deployment Component's
-|Deployment File (i.e., to the Deployer). Typically, the
-|tools used by such a Deployment File consumer will display
-|the description when processing the parent element that
-|contains the description.
-|
-|The lang attribute defines the language that the
-|description is provided in. The default value is "en" (English).
-
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 1863
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::common::EnvEntryType" @110
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1134, 1928)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @110
- location (971, 1669)
- fill_color 13434879
- nlines 1
- max_width 326
- justify 0
- label "EnvEntryType")
- stereotype (object ItemLabel
- Parent_View @110
- location (971, 1619)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 323
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38BDD7A60315"
- width 344
- height 642
- annotation 8
- autoResize TRUE)
- (object NoteView @111
- location (2034, 1896)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @111
- location (1596, 1818)
- fill_color 13434879
- nlines 3
- max_width 840
- label
-|@version J2EE1.3
-|ADDED java.lang.Character to EnvEntryType
- )
- line_color 32768
- fill_color 13434833
- width 900
- height 169)
- (object AttachView "" @112
- stereotype TRUE
- line_color 32768
- client @111
- supplier @110
- vertices (list Points
- (1583, 1894)
- (1306, 1894))
- line_style 3
- origin_attachment (1583, 1894)
- terminal_attachment (1306, 1894))
- (object NoteView @113
- location (940, 944)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @113
- location (380, 872)
- fill_color 13434879
- nlines 2
- max_width 1084
- label
-|Deprecated:
-|description becomes descriptions:List<DescriptionType>
- )
- line_color 3342489
- fill_color 13434879
- width 1144
- height 157)
- (object ClassView "Class" "Logical View::common::Description" @114
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1440, 1216)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @114
- location (1312, 1114)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 3342489
- fill_color 15778042
- quidu "3E4A98D602E0"
- width 274
- height 228
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::EnvEntry" @115
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (384, 1328)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @115
- location (193, 1154)
- fill_color 13434879
- nlines 2
- max_width 382
- justify 0
- label "EnvEntry")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "371BC77800E2"
- width 400
- height 372
- annotation 8
- autoResize TRUE)
- (object AttachView "" @116
- stereotype TRUE
- line_color 3342489
- client @113
- supplier @115
- vertices (list Points
- (826, 1022)
- (584, 1189))
- line_style 0)
- (object AssociationViewNew "$UNNAMED$16" @117
- location (943, 1268)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C0B37005A"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @118
- Parent_View @117
- location (478, 10)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @119
- Parent_View @118
- location (1157, 1193)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.612100
- height 53
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C0B380084"
- client @117
- supplier @114
- vertices (list Points
- (943, 1268)
- (1302, 1229))
- line_style 0
- label (object SegLabel @120
- Parent_View @118
- location (1229, 1281)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.783837
- height 43
- orientation 1))
- (object RoleView "$UNNAMED$17" @121
- Parent_View @117
- location (478, 10)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C0B38008E"
- client @117
- supplier @115
- vertices (list Points
- (943, 1268)
- (584, 1306))
- line_style 0)))))
- (object ClassDiagram "New J2EE1.4 Datatypes"
- quid "3E4BE5610107"
- title "New J2EE1.4 Datatypes"
- documentation
-|The ejb-local-refType is used by ejb-local-ref elements for
-|the declaration of a reference to an enterprise bean's local
-|home. The declaration consists of:
-|
-| - an optional description
-| - the EJB reference name used in the code of the Deployment
-| Component that's referencing the enterprise bean
-| - the expected type of the referenced enterprise bean
-| - the expected local home and local interfaces of the
-| referenced enterprise bean
-| - optional ejb-link information, used to specify the
-| referenced enterprise bean
-
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 2724
- origin_y 481
- items (list diagram_item_list
- (object Label @122
- location (1485, 315)
- font (object Font
- size 14
- face "Arial Black"
- bold TRUE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 2
- max_width 1663
- label
-|New types and datatypes introduced for J2EE1.4
-|(Corresponds to j2ee_1_4.xsd)
- )
- (object ClassView "Class" "Logical View::common::MessageDestinationUsageType" @123
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2898, 1903)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @123
- location (2595, 1794)
- fill_color 13434879
- nlines 1
- max_width 606
- justify 0
- label "MessageDestinationUsageType")
- stereotype (object ItemLabel
- Parent_View @123
- location (2595, 1744)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 606
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 15778042
- quidu "3EAED1C200A8"
- width 624
- height 342
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::QName" @124
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1968, 2416)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @124
- location (1622, 2260)
- fill_color 13434879
- nlines 1
- max_width 692
- justify 0
- label "QName")
- icon_style "Icon"
- line_color 3342489
- fill_color 16744703
- quidu "3F3BEF5D02C0"
- width 710
- height 336
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::MessageDestinationRef" @125
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1968, 1888)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @125
- location (1515, 1732)
- fill_color 13434879
- nlines 1
- max_width 906
- justify 0
- label "MessageDestinationRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 15778042
- quidu "3E4C1F52028C"
- width 924
- height 336
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @126
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3202, 646)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @126
- location (3023, 596)
- fill_color 13434879
- nlines 1
- max_width 358
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 15778042
- quidu "3E4D451F01FB"
- width 376
- height 124
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::Description" @127
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3424, 1008)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @127
- location (3255, 902)
- fill_color 13434879
- nlines 1
- max_width 338
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4A98D602E0"
- width 356
- height 236
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$25" @128
- location (2745, 1417)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C20210031"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @129
- Parent_View @128
- location (603, -777)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @130
- Parent_View @129
- location (3022, 1190)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.606717
- height 52
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C202101CC"
- client @128
- supplier @127
- vertices (list Points
- (2745, 1417)
- (3245, 1114))
- line_style 0
- label (object SegLabel @131
- Parent_View @129
- location (3124, 1240)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.711564
- height 44
- orientation 1))
- (object RoleView "$UNNAMED$26" @132
- Parent_View @128
- location (603, -777)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C202101E0"
- client @128
- supplier @125
- vertices (list Points
- (2745, 1417)
- (2242, 1719))
- line_style 0)))
- (object AssociationViewNew "$UNNAMED$12" @133
- location (3295, 798)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D434D0255"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$13" @134
- Parent_View @133
- location (-133, -747)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @135
- Parent_View @134
- location (3216, 748)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D434E0152"
- client @133
- supplier @126
- vertices (list Points
- (3295, 798)
- (3239, 708))
- line_style 0)
- (object RoleView "descriptions" @136
- Parent_View @133
- location (-133, -747)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @137
- Parent_View @136
- location (3305, 892)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D434E012A"
- client @133
- supplier @127
- vertices (list Points
- (3295, 798)
- (3351, 889))
- line_style 0
- label (object SegLabel @138
- Parent_View @136
- location (3391, 852)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object ClassView "Class" "Logical View::common::ParamValue" @139
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3488, 1536)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @139
- location (3256, 1405)
- fill_color 13434879
- nlines 1
- max_width 464
- justify 0
- label "ParamValue")
- icon_style "Icon"
- line_color 3342489
- fill_color 15778042
- quidu "3E4C221202C1"
- width 482
- height 286
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$29" @140
- location (3454, 1259)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C22270090"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @141
- Parent_View @140
- location (183, -1056)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @142
- Parent_View @141
- location (3317, 1190)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.637579
- height 129
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C222703C5"
- client @140
- supplier @127
- vertices (list Points
- (3454, 1259)
- (3438, 1126))
- line_style 0
- label (object SegLabel @143
- Parent_View @141
- location (3494, 1134)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$30" @144
- Parent_View @140
- location (183, -1056)
- stereotype TRUE
- line_color 3342489
- quidu "3E4C222703D9"
- client @140
- supplier @139
- vertices (list Points
- (3454, 1259)
- (3470, 1392))
- line_style 0)))
- (object ClassView "Class" "Logical View::common::MessageDestination" @145
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2605, 1134)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @145
- location (2430, 1028)
- fill_color 13434879
- nlines 2
- max_width 350
- justify 0
- label "MessageDestination")
- icon_style "Icon"
- line_color 3342489
- fill_color 15778042
- quidu "3E4C211001CF"
- width 368
- height 236
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::Listener" @146
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2048, 1088)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @146
- location (1957, 1038)
- fill_color 13434879
- nlines 1
- max_width 182
- justify 0
- label "Listener")
- icon_style "Icon"
- line_color 3342489
- fill_color 16744703
- quidu "39BFB26001BD"
- width 200
- height 124
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::java::JavaClass" @147
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1520, 800)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @147
- location (1406, 746)
- fill_color 13434879
- nlines 1
- max_width 228
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "36549FCC00FA"
- width 246
- height 132
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "" @148
- location (1794, 949)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "39C03E6C035A"
- roleview_list (list RoleViews
- (object RoleView "" @149
- Parent_View @148
- location (1524, 829)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @150
- Parent_View @149
- location (1937, 980)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39C03E6D02CF"
- client @148
- supplier @146
- vertices (list Points
- (1794, 949)
- (1947, 1031))
- line_style 0)
- (object RoleView "listenerClass" @151
- Parent_View @148
- location (1524, 829)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @152
- Parent_View @151
- location (1653, 920)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 275
- justify 0
- label "+listenerClass"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39C03E6D02A7"
- client @148
- supplier @147
- vertices (list Points
- (1794, 949)
- (1643, 866))
- line_style 0
- label (object SegLabel @153
- Parent_View @151
- location (1682, 828)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))))
- (object CategoryView "Logical View::java" @154
- location (2976, 1440)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @154
- location (2799, 1405)
- fill_color 13434879
- nlines 2
- max_width 354
- justify 0
- label "java")
- stereotype (object ItemLabel
- Parent_View @154
- location (2799, 1355)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 354
- justify 0
- label "<<metamodel>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "36549F2C004E"
- width 366
- height 182)
- (object ClassView "Class" "Logical View::common::CompatibilityDescriptionGroup" @155
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2296, 703)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @155
- location (1950, 547)
- fill_color 13434879
- nlines 1
- max_width 692
- justify 0
- label "CompatibilityDescriptionGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "4023ADF20197"
- width 710
- height 336
- annotation 8
- autoResize TRUE)
- (object InheritView "" @156
- stereotype TRUE
- line_color 3342489
- quidu "4023AE8701D8"
- client @155
- supplier @126
- vertices (list Points
- (2651, 679)
- (3013, 657))
- line_style 0)
- (object InheritView "" @157
- stereotype TRUE
- line_color 3342489
- quidu "4058AE790141"
- client @146
- supplier @155
- vertices (list Points
- (2087, 1025)
- (2187, 871))
- line_style 0)
- (object InheritView "" @158
- stereotype TRUE
- line_color 3342489
- quidu "3E9D5FC6011C"
- client @145
- supplier @155
- vertices (list Points
- (2519, 1015)
- (2416, 871))
- line_style 0)))
- (object ClassDiagram "J2EE1.4 Description Groups"
- quid "3E4D458003A9"
- title "J2EE1.4 Description Groups"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 669
- items (list diagram_item_list
- (object Label @159
- location (88, 200)
- font (object Font
- size 14
- face "Arial"
- bold TRUE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 1
- max_width 600
- label "Description Groups")
- (object Label @160
- location (103, 334)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 2
- max_width 1281
- label "An abstract mixin class for commonly used display and description attributes")
- (object ClassView "Class" "Logical View::common::DisplayName" @161
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2330, 675)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @161
- location (2114, 573)
- fill_color 13434879
- nlines 1
- max_width 432
- justify 0
- label "DisplayName")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A9922000E"
- width 450
- height 228
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::IconType" @162
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (686, 684)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @162
- location (431, 559)
- fill_color 13434879
- nlines 1
- max_width 510
- justify 0
- label "IconType")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A99EE003A"
- width 528
- height 274
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::Description" @163
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1569, 672)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @163
- location (1441, 570)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A98D602E0"
- width 274
- height 228
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @164
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1401, 1141)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @164
- location (1222, 1091)
- fill_color 13434879
- nlines 1
- max_width 358
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4D451F01FB"
- width 376
- height 124
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$10" @165
- location (2087, 1150)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D43540133"
- roleview_list (list RoleViews
- (object RoleView "displayNames" @166
- Parent_View @165
- location (1735, 574)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @167
- Parent_View @166
- location (2043, 879)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 286
- justify 0
- label "+displayNames"
- pctDist 0.818662
- height 182
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D43550152"
- client @165
- supplier @161
- vertices (list Points
- (2087, 1150)
- (2224, 1150)
- (2224, 789))
- line_style 3
- origin_attachment (2087, 1150)
- terminal_attachment (2224, 789)
- label (object SegLabel @168
- Parent_View @166
- location (2171, 839)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$11" @169
- Parent_View @165
- location (1735, 574)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D43550166"
- client @165
- supplier @164
- vertices (list Points
- (2087, 1150)
- (1589, 1150))
- line_style 3
- origin_attachment (2087, 1150)
- terminal_attachment (1589, 1150))))
- (object AssociationViewNew "$UNNAMED$8" @170
- location (937, 1083)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D43320152"
- roleview_list (list RoleViews
- (object RoleView "icons" @171
- Parent_View @170
- location (585, 507)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @172
- Parent_View @171
- location (1049, 844)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 136
- justify 0
- label "+icons"
- pctDist 0.913669
- height 112
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D43350016"
- client @170
- supplier @162
- vertices (list Points
- (937, 1083)
- (937, 820))
- line_style 3
- origin_attachment (937, 1083)
- terminal_attachment (937, 820)
- label (object SegLabel @173
- Parent_View @171
- location (864, 843)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.920863
- height 74
- orientation 0))
- (object RoleView "$UNNAMED$9" @174
- Parent_View @170
- location (585, 507)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D4335002A"
- client @170
- supplier @164
- vertices (list Points
- (937, 1083)
- (937, 1143)
- (1213, 1143))
- line_style 3
- origin_attachment (937, 1083)
- terminal_attachment (1213, 1143))))
- (object AssociationViewNew "$UNNAMED$12" @175
- location (1575, 932)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D434D0255"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @176
- Parent_View @175
- location (1223, 356)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @177
- Parent_View @176
- location (1407, 844)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.608392
- height 169
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D434E012A"
- client @175
- supplier @163
- vertices (list Points
- (1575, 932)
- (1575, 786))
- line_style 3
- origin_attachment (1575, 932)
- terminal_attachment (1575, 786)
- label (object SegLabel @178
- Parent_View @176
- location (1522, 802)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$13" @179
- Parent_View @175
- location (1223, 356)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D434E0152"
- client @175
- supplier @164
- vertices (list Points
- (1575, 932)
- (1575, 1079))
- line_style 3
- origin_attachment (1575, 932)
- terminal_attachment (1575, 1079))))
- (object ClassView "Class" "Logical View::common::CompatibilityDescriptionGroup" @180
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1426, 1608)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @180
- location (1080, 1452)
- fill_color 13434879
- nlines 1
- max_width 692
- justify 0
- label "CompatibilityDescriptionGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 16744703
- quidu "4023ADF20197"
- width 710
- height 336
- annotation 8
- autoResize TRUE)
- (object InheritView "" @181
- stereotype TRUE
- line_color 3342489
- quidu "4023AE8701D8"
- client @180
- supplier @164
- vertices (list Points
- (1416, 1439)
- (1404, 1203))
- line_style 0)))
- (object ClassDiagram "J2EE1.4 JNDI Env Refs Group"
- quid "3E4D547001BD"
- title "J2EE1.4 JNDI Env Refs Group"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 1956
- origin_y 2150
- items (list diagram_item_list
- (object NoteView @182
- location (3461, 2107)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @182
- location (3123, 1985)
- fill_color 13434879
- nlines 4
- max_width 640
- label
-|See common "Security" diagram
-|for more details. This element is now common to more than just the ejb spec.
- )
- line_color 3342489
- fill_color 13434879
- width 700
- height 256)
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @183
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1744, 2816)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @183
- location (1565, 2766)
- fill_color 13434879
- nlines 1
- max_width 358
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E4D451F01FB"
- width 376
- height 124
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::SecurityIdentity" @184
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2688, 2112)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @184
- location (2532, 2066)
- fill_color 13434879
- nlines 1
- max_width 312
- justify 0
- label "SecurityIdentity")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF2C040245"
- width 330
- height 117
- annotation 8
- autoResize TRUE)
- (object AttachView "" @185
- stereotype TRUE
- line_color 3342489
- client @182
- supplier @184
- vertices (list Points
- (3110, 2108)
- (2853, 2110))
- line_style 0)
- (object ClassView "Class" "Logical View::wsclient::ServiceRef" @186
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2816, 2624)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @186
- location (2697, 2570)
- fill_color 13434879
- nlines 1
- max_width 238
- justify 0
- label "ServiceRef")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4D2F560184"
- width 256
- height 132
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::MessageDestinationRef" @187
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2848, 2384)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @187
- location (2617, 2334)
- fill_color 13434879
- nlines 1
- max_width 462
- justify 0
- label "MessageDestinationRef")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4C1F52028C"
- width 480
- height 124
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::ResourceEnvRef" @188
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2720, 1856)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @188
- location (2557, 1810)
- fill_color 13434879
- nlines 1
- max_width 326
- justify 0
- label "ResourceEnvRef")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF207200D3"
- width 344
- height 117
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::ResourceRef" @189
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2752, 1632)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @189
- location (2619, 1586)
- nlines 1
- max_width 266
- justify 0
- label "ResourceRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "371BC79303C6"
- width 284
- height 117
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::EnvEntry" @190
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2736, 1424)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @190
- location (2640, 1378)
- nlines 1
- max_width 192
- justify 0
- label "EnvEntry")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "371BC77800E2"
- width 210
- height 117
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::EJBLocalRef" @191
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2720, 1216)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @191
- location (2586, 1170)
- fill_color 13434879
- nlines 1
- max_width 268
- justify 0
- label "EJBLocalRef")
- icon_style "Icon"
- line_color 32768
- fill_color 13434833
- quidu "398862E20101"
- width 286
- height 117
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::EjbRef" @192
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2736, 976)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @192
- location (2655, 930)
- nlines 1
- max_width 162
- justify 0
- label "EjbRef")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "371BC78202B3"
- height 117
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::JNDIEnvRefsGroup" @193
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1744, 2528)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @193
- location (1553, 2478)
- fill_color 13434879
- nlines 1
- max_width 382
- justify 0
- label "JNDIEnvRefsGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E4D53950349"
- width 400
- height 124
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "" @194
- location (2316, 2587)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D2FA901C9"
- roleview_list (list RoleViews
- (object RoleView "serviceRefs" @195
- Parent_View @194
- location (1298, 1650)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @196
- Parent_View @195
- location (2532, 2640)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 240
- justify 0
- label "+serviceRefs"
- pctDist 0.582555
- height 53
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D2FAA02C5"
- client @194
- supplier @186
- vertices (list Points
- (2316, 2587)
- (2688, 2587))
- line_style 3
- origin_attachment (2316, 2587)
- terminal_attachment (2688, 2587)
- label (object SegLabel @197
- Parent_View @195
- location (2650, 2534)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "" @198
- Parent_View @194
- location (1298, 1650)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D2FAA02CF"
- client @194
- supplier @193
- vertices (list Points
- (2316, 2587)
- (1944, 2587))
- line_style 3
- origin_attachment (2316, 2587)
- terminal_attachment (1944, 2587))))
- (object AssociationViewNew "" @199
- location (2213, 2347)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D23AA024F"
- roleview_list (list RoleViews
- (object RoleView "messageDestinationRefs" @200
- Parent_View @199
- location (1195, 1410)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @201
- Parent_View @200
- location (2336, 2295)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 474
- justify 0
- label "+messageDestinationRefs"
- pctDist 0.314433
- height 53
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D23AD01AA"
- client @199
- supplier @187
- vertices (list Points
- (2213, 2347)
- (2608, 2347))
- line_style 3
- origin_attachment (2213, 2347)
- terminal_attachment (2608, 2347)
- label (object SegLabel @202
- Parent_View @200
- location (2567, 2401)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "" @203
- Parent_View @199
- location (1195, 1410)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D23AD01B4"
- client @199
- supplier @193
- vertices (list Points
- (2213, 2347)
- (1936, 2347)
- (1936, 2466))
- line_style 3
- origin_attachment (2213, 2347)
- terminal_attachment (1936, 2466))))
- (object AssociationViewNew "" @204
- location (1951, 1850)
- stereotype TRUE
- line_color 4227072
- quidu "39BF209F00C4"
- roleview_list (list RoleViews
- (object RoleView "" @205
- Parent_View @204
- location (1599, 122)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @206
- Parent_View @205
- location (1933, 2330)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BF209F0396"
- client @204
- supplier @193
- vertices (list Points
- (1951, 1850)
- (1891, 1850)
- (1891, 2466))
- line_style 3
- origin_attachment (1951, 1850)
- terminal_attachment (1891, 2466))
- (object RoleView "resourceEnvRefs" @207
- Parent_View @204
- location (1599, 122)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @208
- Parent_View @207
- location (2368, 1893)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 338
- justify 0
- label "+resourceEnvRefs"
- pctDist 0.698113
- height 43
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF209F0395"
- client @204
- supplier @188
- vertices (list Points
- (1951, 1850)
- (2548, 1850))
- line_style 3
- origin_attachment (1951, 1850)
- terminal_attachment (2548, 1850)
- label (object SegLabel @209
- Parent_View @207
- location (2488, 1797)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "" @210
- location (1857, 1658)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @211
- Parent_View @210
- location (1842, 1694)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.250000
- height 36
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3780E3230139"
- roleview_list (list RoleViews
- (object RoleView "resourceRefs" @212
- Parent_View @210
- location (529, 1482)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @213
- Parent_View @212
- location (2473, 1640)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 362
- justify 0
- label "+resourceRefs"
- pctDist 0.830875
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3780E323013B"
- client @210
- supplier @189
- vertices (list Points
- (1857, 1658)
- (1857, 1598)
- (2610, 1598))
- line_style 3
- origin_attachment (1857, 1658)
- terminal_attachment (2610, 1598)
- label (object SegLabel @214
- Parent_View @212
- location (2559, 1553)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 70
- justify 0
- label "0..n"
- pctDist 0.938053
- height 46
- orientation 0))
- (object RoleView "" @215
- Parent_View @210
- location (529, 1482)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @216
- Parent_View @215
- location (1916, 2404)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.925020
- height 59
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3780E323013A"
- client @210
- supplier @193
- vertices (list Points
- (1857, 1658)
- (1857, 2466))
- line_style 3
- origin_attachment (1857, 1658)
- terminal_attachment (1857, 2466))))
- (object AssociationViewNew "" @217
- location (1796, 1508)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @218
- Parent_View @217
- location (1588, 1544)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist -2.966667
- height 36
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3780E323012D"
- roleview_list (list RoleViews
- (object RoleView "environmentProperties" @219
- Parent_View @217
- location (420, 948)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @220
- Parent_View @219
- location (2361, 1448)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 586
- justify 0
- label "+environmentProperties"
- pctDist 0.718367
- height 62
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3780E323012F"
- client @217
- supplier @190
- vertices (list Points
- (1796, 1508)
- (1796, 1386)
- (2631, 1386))
- line_style 3
- origin_attachment (1796, 1508)
- terminal_attachment (2631, 1386)
- label (object SegLabel @221
- Parent_View @219
- location (2540, 1333)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 70
- justify 0
- label "0..n"
- pctDist 0.906040
- height 54
- orientation 0))
- (object RoleView "" @222
- Parent_View @217
- location (420, 948)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @223
- Parent_View @222
- location (1709, 2400)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.932653
- height 88
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3780E323012E"
- client @217
- supplier @193
- vertices (list Points
- (1796, 1508)
- (1796, 2465))
- line_style 3
- origin_attachment (1796, 1508)
- terminal_attachment (1796, 2465))))
- (object AssociationViewNew "" @224
- location (1740, 1411)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "398863840172"
- roleview_list (list RoleViews
- (object RoleView "ejbLocalRefs" @225
- Parent_View @224
- location (1324, 1075)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @226
- Parent_View @225
- location (2372, 1147)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 270
- justify 0
- label "+ejbLocalRefs"
- pctDist 0.805630
- height 48
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3988638502AA"
- client @224
- supplier @191
- vertices (list Points
- (1740, 1411)
- (1740, 1194)
- (2577, 1194))
- line_style 3
- origin_attachment (1740, 1411)
- terminal_attachment (2577, 1194)
- label (object SegLabel @227
- Parent_View @225
- location (2471, 1248)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "" @228
- Parent_View @224
- location (1324, 1075)
- stereotype TRUE
- line_color 3342489
- quidu "3988638502B4"
- client @224
- supplier @193
- vertices (list Points
- (1740, 1411)
- (1740, 2466))
- line_style 3
- origin_attachment (1740, 1411)
- terminal_attachment (1740, 2466))))
- (object AssociationViewNew "" @229
- location (1677, 1248)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @230
- Parent_View @229
- location (1677, 1189)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.500000
- height 60
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39045AE401F1"
- roleview_list (list RoleViews
- (object RoleView "ejbRefs" @231
- Parent_View @229
- location (173, 1008)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @232
- Parent_View @231
- location (2437, 977)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 226
- justify 0
- label "+ejbRefs"
- pctDist 0.828194
- height 24
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39045AE50301"
- client @229
- supplier @192
- vertices (list Points
- (1677, 1248)
- (1677, 1000)
- (2646, 1000))
- line_style 3
- origin_attachment (1677, 1248)
- terminal_attachment (2646, 1000)
- label (object SegLabel @233
- Parent_View @231
- location (2547, 1045)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.919236
- height 45
- orientation 1))
- (object RoleView "" @234
- Parent_View @229
- location (173, 1008)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @235
- Parent_View @234
- location (1712, 2327)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.886095
- height 35
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39045AE50080"
- client @229
- supplier @193
- vertices (list Points
- (1677, 1248)
- (1677, 2465))
- line_style 3
- origin_attachment (1677, 1248)
- terminal_attachment (1677, 2465))))))))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/commonArchive.mdl b/plugins/org.eclipse.jst.j2ee.core/rose/commonArchive.mdl deleted file mode 100644 index 21e2bb264..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/commonArchive.mdl +++ /dev/null @@ -1,9428 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Design "Logical View"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "IDE"
- value "Internal Editor")
- (object Attribute
- tool "Java"
- name "UserDefineTagName1"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagText1"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagApply1"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagName2"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagText2"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagApply2"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagName3"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagText3"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagApply3"
- value ""))
- quid "3A0B2474025F"
- enforceClosureAutoLoad FALSE
- defaults (object defaults
- rightMargin 0.250000
- leftMargin 0.250000
- topMargin 0.250000
- bottomMargin 0.500000
- pageOverlap 0.250000
- clipIconLabels TRUE
- autoResize TRUE
- snapToGrid TRUE
- gridX 16
- gridY 16
- defaultFont (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- showMessageNum 1
- showClassOfObject TRUE
- notation "Unified")
- root_usecase_package (object Class_Category "Use Case View"
- quid "3A0B2474026A"
- exportControl "Public"
- global TRUE
- logical_models (list unit_reference_list)
- logical_presentations (list unit_reference_list
- (object UseCaseDiagram "Main"
- quid "3A0B24790339"
- title "Main"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list))))
- root_category (object Class_Category "Logical View"
- quid "3A0B24740269"
- exportControl "Public"
- global TRUE
- subsystem "Component View"
- quidu "3A0B2474027D"
- logical_models (list unit_reference_list
- (object Class_Category "ecore"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.emf.ecore\\model\\org.eclipse.emf.Ecore.cat"
- quid "39A5ED04004E")
- (object Class_Category "application"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\application.cat"
- quid "38C03008014E")
- (object Class_Category "client"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\client.cat"
- quid "38C0280700C0")
- (object Class_Category "ejb"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\ejbschema.cat"
- quid "3780E272032D")
- (object Class_Category "webapplication"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\webapplication.cat"
- quid "38C076D603DD")
- (object Class_Category "commonArchiveCore"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\commonArchiveCore.cat"
- quid "3A0DB68B0046")
- (object Class_Category "java"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jem\\rose\\edocjava2.cat"
- quid "36549F2C004E")
- (object Class_Category "common"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\common.cat"
- quid "38C08F0F038D")
- (object Class_Category "jca"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\jca1_0.cat"
- quid "3C60904200BB")
- (object Class_Category "wsclient"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\webservices_client_1_0.cat"
- quid "3E4D2F4B02AA")
- (object Class_Category "jsp"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\jsp_2_0.cat"
- quid "3E4D4F69036B"))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "Main"
- quid "3A0B24790360"
- title "Main"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 650
- origin_y 0
- items (list diagram_item_list
- (object CategoryView "Logical View::ecore" @1
- location (1104, 160)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (960, 76)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "ecore")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "39A5ED04004E"
- width 300
- height 180)
- (object CategoryView "Logical View::application" @2
- location (1904, 816)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (1760, 732)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "application")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "38C03008014E"
- width 300
- height 180)
- (object CategoryView "Logical View::client" @3
- location (2368, 1104)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (2224, 1020)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "client")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "38C0280700C0"
- width 300
- height 180)
- (object CategoryView "Logical View::ejb" @4
- location (752, 848)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @4
- location (598, 813)
- fill_color 13434879
- nlines 2
- max_width 308
- justify 0
- label "ejb")
- stereotype (object ItemLabel
- Parent_View @4
- location (598, 763)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 308
- justify 0
- label "<<metamodel>>")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "3780E272032D"
- width 320
- height 182)
- (object CategoryView "Logical View::webapplication" @5
- location (1216, 880)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @5
- location (1072, 796)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "webapplication")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "38C076D603DD"
- width 300
- height 180)
- (object CategoryView "Logical View::java" @6
- location (640, 416)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @6
- location (486, 381)
- fill_color 13434879
- nlines 2
- max_width 308
- justify 0
- label "java")
- stereotype (object ItemLabel
- Parent_View @6
- location (486, 331)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 308
- justify 0
- label "<<metamodel>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "36549F2C004E"
- width 320
- height 182)
- (object ImportView "" @7
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "39BD366000FE"
- client @6
- supplier @1
- vertices (list Points
- (768, 270)
- (768, 159)
- (953, 159))
- line_style 3
- origin_attachment (768, 270)
- terminal_attachment (953, 159))
- (object CategoryView "Logical View::common" @8
- location (1200, 432)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @8
- location (1056, 348)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "common")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C08F0F038D"
- width 300
- height 180)
- (object ImportView "" @9
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3C150151"
- client @5
- supplier @8
- vertices (list Points
- (1210, 735)
- (1203, 522))
- line_style 0)
- (object ImportView "" @10
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3C1002A8"
- client @2
- supplier @8
- vertices (list Points
- (1756, 671)
- (1756, 513)
- (1350, 513))
- line_style 3
- origin_attachment (1756, 671)
- terminal_attachment (1350, 513))
- (object ImportView "" @11
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "380567F50384"
- client @4
- supplier @6
- vertices (list Points
- (752, 702)
- (752, 507))
- line_style 3
- origin_attachment (752, 702)
- terminal_attachment (752, 507))
- (object ImportView "" @12
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3C1C0256"
- client @4
- supplier @8
- vertices (list Points
- (863, 702)
- (863, 406)
- (1049, 406))
- line_style 3
- origin_attachment (863, 702)
- terminal_attachment (1049, 406))
- (object CategoryView "Logical View::jca" @13
- location (1680, 192)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @13
- location (1536, 108)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "jca")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C60904200BB"
- width 300
- height 180)
- (object CategoryView "Logical View::commonArchiveCore::looseconfig" @14
- location (1744, 1152)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @14
- location (1500, 1068)
- fill_color 13434879
- nlines 2
- max_width 488
- justify 0
- label "looseconfig")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C71147E033D"
- width 500
- height 180)
- (object CategoryView "Logical View::wsclient" @15
- location (2048, 336)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @15
- location (1904, 252)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "wsclient")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E4D2F4B02AA"
- width 300
- height 180)
- (object CategoryView "Logical View::jsp" @16
- location (2448, 336)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @16
- location (2304, 252)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "jsp")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E4D4F69036B"
- width 300
- height 180)
- (object ImportView "" @17
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3C180336"
- client @3
- supplier @8
- vertices (list Points
- (2219, 959)
- (2219, 462)
- (1350, 462))
- line_style 3
- origin_attachment (2219, 959)
- terminal_attachment (1350, 462))
- (object CategoryView "Logical View::commonArchiveCore" @18
- location (1072, 1184)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @18
- location (928, 1100)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "commonArchiveCore")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DB68B0046"
- width 300
- height 180)))))
- root_subsystem (object SubSystem "Component View"
- quid "3A0B2474027D"
- physical_models (list unit_reference_list)
- physical_presentations (list unit_reference_list
- (object Module_Diagram "Main"
- quid "3A0B24790338"
- title "Main"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list)))
- category "Logical View"
- quidu "430A8774022C")
- process_structure (object Processes
- quid "3A0B2474027E"
- ProcsNDevs (list
- (object Process_Diagram "Deployment View"
- quid "3A0B24740291"
- title "Deployment View"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list))))
- properties (object Properties
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "roseId"
- value "753117540")
- (object Attribute
- tool "Ecore"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "Ecore"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "prefix"
- value "")
- (object Attribute
- tool "Ecore"
- name "packageName"
- value "")
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value "")
- (object Attribute
- tool "Ecore"
- name "nsName"
- value "")
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value "")))
- (object Attribute
- tool "Ecore"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "packageName"
- value "")
- (object Attribute
- tool "Ecore"
- name "prefix"
- value "")
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value "")
- (object Attribute
- tool "Ecore"
- name "nsName"
- value "")
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value "")))
- (object Attribute
- tool "Ecore"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value "")
- (object Attribute
- tool "Ecore"
- name "prefix"
- value "")
- (object Attribute
- tool "Ecore"
- name "packageName"
- value "")
- (object Attribute
- tool "Ecore"
- name "nsName"
- value "")
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value "")))
- (object Attribute
- tool "Ecore"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "nsName"
- value "")
- (object Attribute
- tool "Ecore"
- name "prefix"
- value "")
- (object Attribute
- tool "Ecore"
- name "packageName"
- value "")
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value "")
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value "")))
- (object Attribute
- tool "Ecore"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value "")
- (object Attribute
- tool "Ecore"
- name "prefix"
- value "")
- (object Attribute
- tool "Ecore"
- name "packageName"
- value "")
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value "")
- (object Attribute
- tool "Ecore"
- name "nsName"
- value "")))
- (object Attribute
- tool "Ecore"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isTransient"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isVolatile"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isChangeable"
- value TRUE)
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isUnique"
- value TRUE)))
- (object Attribute
- tool "Ecore"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isTransient"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isVolatile"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isChangeable"
- value TRUE)
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isResolveProxies"
- value TRUE)))
- (object Attribute
- tool "Cplusplus"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "Cplusplus"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "Const"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "InitialValue"
- value "")))
- (object Attribute
- tool "Cplusplus"
- name "default__Inherit"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)))
- (object Attribute
- tool "Cplusplus"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "Copyright"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "RootPackage"
- value "C++ Reverse Engineered")
- (object Attribute
- tool "Cplusplus"
- name "InitialHeaderIncludes"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "InitialBodyIncludes"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "RevEngRootDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "RevEngDirectoriesAsPackages"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "HeaderFileExtension"
- value ".h")
- (object Attribute
- tool "Cplusplus"
- name "ImplementationFileExtension"
- value ".cpp")
- (object Attribute
- tool "Cplusplus"
- name "NewHeaderFileDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "NewImplementationFileDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "FileCapitalization"
- value ("FileCapitalizationSet" 0))
- (object Attribute
- tool "Cplusplus"
- name "CodeGenExtraDirectories"
- value ("CodeGenExtraDirectoriesSet" 0))
- (object Attribute
- tool "Cplusplus"
- name "StripClassPrefix"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "UseTabs"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "TabWidth"
- value 8)
- (object Attribute
- tool "Cplusplus"
- name "IndentWidth"
- value 4)
- (object Attribute
- tool "Cplusplus"
- name "AccessIndentation"
- value -2)
- (object Attribute
- tool "Cplusplus"
- name "ModelIdCommentRules"
- value ("ModelIdCommentRulesSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "PageWidth"
- value 80)
- (object Attribute
- tool "Cplusplus"
- name "ClassMemberOrder"
- value ("MemberOrderSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "OneParameterPerLine"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "NamespaceBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "ClassBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "FunctionBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "CodeGenExtraDirectoriesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "None"
- value 0)
- (object Attribute
- tool "Cplusplus"
- name "Namespaces"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Packages"
- value 2)))
- (object Attribute
- tool "Cplusplus"
- name "FileCapitalizationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Same as model"
- value 0)
- (object Attribute
- tool "Cplusplus"
- name "Lower case"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Upper case"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Lower case with underscores"
- value 3)))
- (object Attribute
- tool "Cplusplus"
- name "BraceStyleSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "B1"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "B2"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "B3"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "B4"
- value 4)
- (object Attribute
- tool "Cplusplus"
- name "B5"
- value 5)))
- (object Attribute
- tool "Cplusplus"
- name "MemberOrderSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Public First"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Private First"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Order by kind"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "Unordered"
- value 4)))
- (object Attribute
- tool "Cplusplus"
- name "ModelIdCommentRulesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Code generation only"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Code generation and reverse engineering"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Never generate model IDs"
- value 3)))
- (object Attribute
- tool "Cplusplus"
- name "CreateBackupFiles"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "CommentRules"
- value ("CommentRulesSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "CommentRulesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Always synchronize"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Code generation only"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Reverse engineering only"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "Never synchronize"
- value 4)))))
- (object Attribute
- tool "Cplusplus"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")))
- (object Attribute
- tool "Cplusplus"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")))
- (object Attribute
- tool "Cplusplus"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "InitialCodeBody"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "Inline"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "GenerateFunctionBody"
- value ("GenerateFunctionBodySet" 2))
- (object Attribute
- tool "Cplusplus"
- name "GenerateFunctionBodySet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Default"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "True"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "False"
- value 0)))))
- (object Attribute
- tool "Cplusplus"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "ImplementationType"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "HeaderSourceFile"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "BodySourceFile"
- value "")))
- (object Attribute
- tool "Cplusplus"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "IsNamespace"
- value FALSE)))
- (object Attribute
- tool "Cplusplus"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "ANSI C++ Event Watcher"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "ANSIConvert"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "propertyId"
- value "838326200")
- (object Attribute
- tool "Ada83"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "SpecFileExtension"
- value "1.ada")
- (object Attribute
- tool "Ada83"
- name "SpecFileBackupExtension"
- value "1.ad~")
- (object Attribute
- tool "Ada83"
- name "SpecFileTemporaryExtension"
- value "1.ad#")
- (object Attribute
- tool "Ada83"
- name "BodyFileExtension"
- value "2.ada")
- (object Attribute
- tool "Ada83"
- name "BodyFileBackupExtension"
- value "2.ad~")
- (object Attribute
- tool "Ada83"
- name "BodyFileTemporaryExtension"
- value "2.ad#")
- (object Attribute
- tool "Ada83"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "GenerateBodies"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "GenerateAccessorOperations"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "GenerateStandardOperations"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "ImplicitParameter"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "CommentWidth"
- value 60)
- (object Attribute
- tool "Ada83"
- name "StopOnError"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "ErrorLimit"
- value 30)
- (object Attribute
- tool "Ada83"
- name "UseFileName"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "Directory"
- value "$ROSEADA83_SOURCE")
- (object Attribute
- tool "Ada83"
- name "DefaultCodeBody"
- value "[statement]")))
- (object Attribute
- tool "Ada83"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada83"
- name "ClassName"
- value "Object")
- (object Attribute
- tool "Ada83"
- name "ClassAccess"
- value ("ImplementationSet" 43))
- (object Attribute
- tool "Ada83"
- name "ImplementationType"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "IsSubtype"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "PolymorphicUnit"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "HandleName"
- value "Handle")
- (object Attribute
- tool "Ada83"
- name "HandleAccess"
- value ("ImplementationSet" 45))
- (object Attribute
- tool "Ada83"
- name "Discriminant"
- value "")
- (object Attribute
- tool "Ada83"
- name "Variant"
- value "")
- (object Attribute
- tool "Ada83"
- name "EnumerationLiteralPrefix"
- value "A_")
- (object Attribute
- tool "Ada83"
- name "RecordFieldPrefix"
- value "The_")
- (object Attribute
- tool "Ada83"
- name "GenerateAccessorOperations"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "GenerateStandardOperations"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "ImplicitParameter"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "ClassParameterName"
- value "This")
- (object Attribute
- tool "Ada83"
- name "DefaultConstructorKind"
- value ("ConstructorKindSet" 199))
- (object Attribute
- tool "Ada83"
- name "DefaultConstructorName"
- value "Create")
- (object Attribute
- tool "Ada83"
- name "InlineDefaultConstructor"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "CopyConstructorKind"
- value ("ConstructorKindSet" 199))
- (object Attribute
- tool "Ada83"
- name "CopyConstructorName"
- value "Copy")
- (object Attribute
- tool "Ada83"
- name "InlineCopyConstructor"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "DestructorName"
- value "Free")
- (object Attribute
- tool "Ada83"
- name "InlineDestructor"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "ClassEqualityOperation"
- value "")
- (object Attribute
- tool "Ada83"
- name "HandleEqualityOperation"
- value "")
- (object Attribute
- tool "Ada83"
- name "InlineEquality"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "IsTask"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "ImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Public"
- value 45)
- (object Attribute
- tool "Ada83"
- name "Private"
- value 43)
- (object Attribute
- tool "Ada83"
- name "LimitedPrivate"
- value 200)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada83"
- name "ConstructorKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada83"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada83"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "FileName"
- value "")
- (object Attribute
- tool "Ada83"
- name "ReturnType"
- value "")
- (object Attribute
- tool "Ada83"
- name "GenericFormalParameters"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "AdditionalWiths"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "AdditionalUses"
- value (value Text ""))))
- (object Attribute
- tool "Ada83"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "FileName"
- value "")
- (object Attribute
- tool "Ada83"
- name "ReturnType"
- value "")
- (object Attribute
- tool "Ada83"
- name "AdditionalWiths"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "IsSubunit"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "AdditionalUses"
- value (value Text ""))))
- (object Attribute
- tool "Ada83"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada83"
- name "SubprogramImplementation"
- value ("SubprogramImplementationSet" 2))
- (object Attribute
- tool "Ada83"
- name "ClassParameterMode"
- value ("ParameterModeSet" 203))
- (object Attribute
- tool "Ada83"
- name "Inline"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "EntryCode"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "ExitCode"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "SubprogramImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Spec"
- value 1)
- (object Attribute
- tool "Ada83"
- name "Body"
- value 2)
- (object Attribute
- tool "Ada83"
- name "Renaming"
- value 3)
- (object Attribute
- tool "Ada83"
- name "Separate"
- value 4)))
- (object Attribute
- tool "Ada83"
- name "ParameterModeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "In"
- value 204)
- (object Attribute
- tool "Ada83"
- name "Out"
- value 205)
- (object Attribute
- tool "Ada83"
- name "InOut"
- value 203)
- (object Attribute
- tool "Ada83"
- name "FunctionReturn"
- value 206)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada83"
- name "Renames"
- value "")
- (object Attribute
- tool "Ada83"
- name "InitialCodeBody"
- value "${default}")))
- (object Attribute
- tool "Ada83"
- name "default__Has"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada83"
- name "NameIfUnlabeled"
- value "The_${supplier}")
- (object Attribute
- tool "Ada83"
- name "DataMemberName"
- value "${relationship}")
- (object Attribute
- tool "Ada83"
- name "GetName"
- value "Get_${relationship}")
- (object Attribute
- tool "Ada83"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "SetName"
- value "Set_${relationship}")
- (object Attribute
- tool "Ada83"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada83"
- name "Variant"
- value "")
- (object Attribute
- tool "Ada83"
- name "ContainerGeneric"
- value "List")
- (object Attribute
- tool "Ada83"
- name "ContainerType"
- value "")
- (object Attribute
- tool "Ada83"
- name "ContainerDeclarations"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "SelectorName"
- value "")
- (object Attribute
- tool "Ada83"
- name "SelectorType"
- value "")
- (object Attribute
- tool "Ada83"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada83"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada83"
- name "After"
- value 234)))))
- (object Attribute
- tool "Ada83"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada83"
- name "DataMemberName"
- value "${attribute}")
- (object Attribute
- tool "Ada83"
- name "GetName"
- value "Get_${attribute}")
- (object Attribute
- tool "Ada83"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "SetName"
- value "Set_${attribute}")
- (object Attribute
- tool "Ada83"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada83"
- name "Variant"
- value "")
- (object Attribute
- tool "Ada83"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada83"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada83"
- name "After"
- value 234)))))
- (object Attribute
- tool "Ada83"
- name "default__Association"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "NameIfUnlabeled"
- value "The_${targetClass}")
- (object Attribute
- tool "Ada83"
- name "GetName"
- value "Get_${association}")
- (object Attribute
- tool "Ada83"
- name "InlineGet"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "SetName"
- value "Set_${association}")
- (object Attribute
- tool "Ada83"
- name "InlineSet"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "GenerateAssociate"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada83"
- name "AssociateName"
- value "Associate")
- (object Attribute
- tool "Ada83"
- name "InlineAssociate"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "GenerateDissociate"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada83"
- name "DissociateName"
- value "Dissociate")
- (object Attribute
- tool "Ada83"
- name "InlineDissociate"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada83"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada83"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada83"
- name "NameIfUnlabeled"
- value "The_${targetClass}")
- (object Attribute
- tool "Ada83"
- name "DataMemberName"
- value "${target}")
- (object Attribute
- tool "Ada83"
- name "GetName"
- value "Get_${target}")
- (object Attribute
- tool "Ada83"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "SetName"
- value "Set_${target}")
- (object Attribute
- tool "Ada83"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada83"
- name "ContainerGeneric"
- value "List")
- (object Attribute
- tool "Ada83"
- name "ContainerType"
- value "")
- (object Attribute
- tool "Ada83"
- name "ContainerDeclarations"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "SelectorName"
- value "")
- (object Attribute
- tool "Ada83"
- name "SelectorType"
- value "")
- (object Attribute
- tool "Ada83"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada83"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada83"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada83"
- name "After"
- value 234)))
- (object Attribute
- tool "Ada83"
- name "Representation"
- value (value Text ""))))
- (object Attribute
- tool "Ada83"
- name "default__Subsystem"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Directory"
- value "AUTO GENERATE")))
- (object Attribute
- tool "Ada83"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "propertyId"
- value "838326200")
- (object Attribute
- tool "Ada95"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "SpecFileExtension"
- value "1.ada")
- (object Attribute
- tool "Ada95"
- name "SpecFileBackupExtension"
- value "1.ad~")
- (object Attribute
- tool "Ada95"
- name "SpecFileTemporaryExtension"
- value "1.ad#")
- (object Attribute
- tool "Ada95"
- name "BodyFileExtension"
- value "2.ada")
- (object Attribute
- tool "Ada95"
- name "BodyFileBackupExtension"
- value "2.ad~")
- (object Attribute
- tool "Ada95"
- name "BodyFileTemporaryExtension"
- value "2.ad#")
- (object Attribute
- tool "Ada95"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "UseColonNotation"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateBodies"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateAccessorOperations"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateStandardOperations"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "ImplicitParameter"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "CommentWidth"
- value 60)
- (object Attribute
- tool "Ada95"
- name "StopOnError"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "ErrorLimit"
- value 30)
- (object Attribute
- tool "Ada95"
- name "UseFileName"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "Directory"
- value "$ROSEADA95_SOURCE")
- (object Attribute
- tool "Ada95"
- name "DefaultCodeBody"
- value "[statement]")))
- (object Attribute
- tool "Ada95"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada95"
- name "TypeName"
- value "Object")
- (object Attribute
- tool "Ada95"
- name "TypeVisibility"
- value ("TypeVisibilitySet" 43))
- (object Attribute
- tool "Ada95"
- name "TypeImplementation"
- value ("TypeImplementationSet" 208))
- (object Attribute
- tool "Ada95"
- name "TypeControl"
- value ("TypeControlSet" 225))
- (object Attribute
- tool "Ada95"
- name "TypeControlName"
- value "Controlled_${type}")
- (object Attribute
- tool "Ada95"
- name "TypeDefinition"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "RecordImplementation"
- value ("RecordImplementationSet" 209))
- (object Attribute
- tool "Ada95"
- name "RecordKindPackageName"
- value "${class}_Record_Kinds")
- (object Attribute
- tool "Ada95"
- name "IsLimited"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "IsSubtype"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateAccessType"
- value ("GenerateAccessTypeSet" 230))
- (object Attribute
- tool "Ada95"
- name "AccessTypeName"
- value "Handle")
- (object Attribute
- tool "Ada95"
- name "AccessTypeVisibility"
- value ("TypeVisibilitySet" 45))
- (object Attribute
- tool "Ada95"
- name "AccessTypeDefinition"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "AccessClassWide"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "MaybeAliased"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "ParameterizedImplementation"
- value ("ParameterizedImplementationSet" 11))
- (object Attribute
- tool "Ada95"
- name "ParentClassName"
- value "Superclass")
- (object Attribute
- tool "Ada95"
- name "EnumerationLiteralPrefix"
- value "A_")
- (object Attribute
- tool "Ada95"
- name "RecordFieldPrefix"
- value "The_")
- (object Attribute
- tool "Ada95"
- name "ArrayOfTypeName"
- value "Array_Of_${type}")
- (object Attribute
- tool "Ada95"
- name "AccessArrayOfTypeName"
- value "Access_Array_Of_${type}")
- (object Attribute
- tool "Ada95"
- name "ArrayOfAccessTypeName"
- value "Array_Of_${access_type}")
- (object Attribute
- tool "Ada95"
- name "AccessArrayOfAccessTypeName"
- value "Access_Array_Of_${access_type}")
- (object Attribute
- tool "Ada95"
- name "ArrayIndexDefinition"
- value "Positive range <>")
- (object Attribute
- tool "Ada95"
- name "GenerateAccessorOperations"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateStandardOperations"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "ImplicitParameter"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "ImplicitParameterName"
- value "This")
- (object Attribute
- tool "Ada95"
- name "GenerateDefaultConstructor"
- value ("SubprogramKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "DefaultConstructorName"
- value "Create")
- (object Attribute
- tool "Ada95"
- name "InlineDefaultConstructor"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateCopyConstructor"
- value ("SubprogramKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "CopyConstructorName"
- value "Copy")
- (object Attribute
- tool "Ada95"
- name "InlineCopyConstructor"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateDestructor"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "DestructorName"
- value "Free")
- (object Attribute
- tool "Ada95"
- name "InlineDestructor"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateTypeEquality"
- value ("FunctionKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "TypeEqualityName"
- value (value Text
-|"="
- ))
- (object Attribute
- tool "Ada95"
- name "InlineEquality"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "TypeImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Tagged"
- value 208)
- (object Attribute
- tool "Ada95"
- name "Record"
- value 210)
- (object Attribute
- tool "Ada95"
- name "Mixin"
- value 211)
- (object Attribute
- tool "Ada95"
- name "Protected"
- value 44)
- (object Attribute
- tool "Ada95"
- name "Task"
- value 212)))
- (object Attribute
- tool "Ada95"
- name "RecordImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "SingleType"
- value 209)
- (object Attribute
- tool "Ada95"
- name "MultipleTypes"
- value 213)))
- (object Attribute
- tool "Ada95"
- name "ParameterizedImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Generic"
- value 11)
- (object Attribute
- tool "Ada95"
- name "Unconstrained"
- value 214)))
- (object Attribute
- tool "Ada95"
- name "TypeVisibilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Public"
- value 45)
- (object Attribute
- tool "Ada95"
- name "Private"
- value 43)))
- (object Attribute
- tool "Ada95"
- name "SubprogramKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "TypeControlSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "None"
- value 225)
- (object Attribute
- tool "Ada95"
- name "InitializationOnly"
- value 226)
- (object Attribute
- tool "Ada95"
- name "AssignmentFinalizationOnly"
- value 227)
- (object Attribute
- tool "Ada95"
- name "All"
- value 228)))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Always"
- value 229)
- (object Attribute
- tool "Ada95"
- name "Auto"
- value 230)))
- (object Attribute
- tool "Ada95"
- name "IncompleteType"
- value ("IncompleteTypeSet" 1))
- (object Attribute
- tool "Ada95"
- name "TypeControlVisibility"
- value ("TypeVisibilitySet" 43))
- (object Attribute
- tool "Ada95"
- name "IncompleteTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "DoNotDeclare"
- value 1)
- (object Attribute
- tool "Ada95"
- name "NoDiscriminantPart"
- value 2)
- (object Attribute
- tool "Ada95"
- name "UnknownDiscriminantPart"
- value 3)
- (object Attribute
- tool "Ada95"
- name "KnownDiscriminantPart"
- value 4)))
- (object Attribute
- tool "Ada95"
- name "IndefiniteType"
- value FALSE)))
- (object Attribute
- tool "Ada95"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "FileName"
- value "")
- (object Attribute
- tool "Ada95"
- name "ReturnType"
- value "")
- (object Attribute
- tool "Ada95"
- name "GenericFormalParameters"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "AdditionalWiths"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "IsPrivate"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "AdditionalUses"
- value (value Text ""))))
- (object Attribute
- tool "Ada95"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "FileName"
- value "")
- (object Attribute
- tool "Ada95"
- name "ReturnType"
- value "")
- (object Attribute
- tool "Ada95"
- name "AdditionalWiths"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "IsSubunit"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "AdditionalUses"
- value (value Text ""))))
- (object Attribute
- tool "Ada95"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada95"
- name "SubprogramImplementation"
- value ("SubprogramImplementationSet" 2))
- (object Attribute
- tool "Ada95"
- name "Renames"
- value "")
- (object Attribute
- tool "Ada95"
- name "GenerateOverriding"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "ImplicitParameterMode"
- value ("ParameterModeSet" 203))
- (object Attribute
- tool "Ada95"
- name "ImplicitParameterClassWide"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateAccessOperation"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "Inline"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "EntryCode"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "ExitCode"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "EntryBarrierCondition"
- value "True")
- (object Attribute
- tool "Ada95"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "SubprogramImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Spec"
- value 1)
- (object Attribute
- tool "Ada95"
- name "Body"
- value 2)
- (object Attribute
- tool "Ada95"
- name "Abstract"
- value 3)
- (object Attribute
- tool "Ada95"
- name "Renaming"
- value 4)
- (object Attribute
- tool "Ada95"
- name "RenamingAsBody"
- value 5)
- (object Attribute
- tool "Ada95"
- name "Separate"
- value 6)))
- (object Attribute
- tool "Ada95"
- name "ParameterModeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "In"
- value 204)
- (object Attribute
- tool "Ada95"
- name "Out"
- value 205)
- (object Attribute
- tool "Ada95"
- name "InOut"
- value 203)
- (object Attribute
- tool "Ada95"
- name "Access"
- value 220)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "InitialCodeBody"
- value "${default}")))
- (object Attribute
- tool "Ada95"
- name "default__Has"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada95"
- name "NameIfUnlabeled"
- value "The_${supplier}")
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementation"
- value ("RecordFieldImplementationSet" 216))
- (object Attribute
- tool "Ada95"
- name "RecordFieldName"
- value "${relationship}")
- (object Attribute
- tool "Ada95"
- name "GenerateGet"
- value ("FunctionKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessGet"
- value ("FunctionKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "GetName"
- value "Get_${relationship}")
- (object Attribute
- tool "Ada95"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateSet"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessSet"
- value ("ProcedureKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "SetName"
- value "Set_${relationship}")
- (object Attribute
- tool "Ada95"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "IsAliased"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada95"
- name "ContainerImplementation"
- value ("ContainerImplementationSet" 217))
- (object Attribute
- tool "Ada95"
- name "ContainerGeneric"
- value "List")
- (object Attribute
- tool "Ada95"
- name "ContainerType"
- value "")
- (object Attribute
- tool "Ada95"
- name "ContainerDeclarations"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "SelectorName"
- value "")
- (object Attribute
- tool "Ada95"
- name "SelectorType"
- value "")
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Component"
- value 216)
- (object Attribute
- tool "Ada95"
- name "Discriminant"
- value 218)
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminant"
- value 219)))
- (object Attribute
- tool "Ada95"
- name "ContainerImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Array"
- value 217)
- (object Attribute
- tool "Ada95"
- name "Generic"
- value 11)))
- (object Attribute
- tool "Ada95"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada95"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada95"
- name "After"
- value 234)))
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminantClassWide"
- value FALSE)))
- (object Attribute
- tool "Ada95"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementation"
- value ("RecordFieldImplementationSet" 216))
- (object Attribute
- tool "Ada95"
- name "RecordFieldName"
- value "${attribute}")
- (object Attribute
- tool "Ada95"
- name "GenerateGet"
- value ("FunctionKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessGet"
- value ("FunctionKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "GetName"
- value "Get_${attribute}")
- (object Attribute
- tool "Ada95"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateSet"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessSet"
- value ("ProcedureKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "SetName"
- value "Set_${attribute}")
- (object Attribute
- tool "Ada95"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "IsAliased"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada95"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Component"
- value 216)
- (object Attribute
- tool "Ada95"
- name "Discriminant"
- value 218)
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminant"
- value 219)))
- (object Attribute
- tool "Ada95"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada95"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada95"
- name "After"
- value 234)))
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminantClassWide"
- value FALSE)))
- (object Attribute
- tool "Ada95"
- name "default__Association"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "NameIfUnlabeled"
- value "The_${targetClass}")
- (object Attribute
- tool "Ada95"
- name "GenerateGet"
- value ("FunctionKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "GetName"
- value "Get_${association}")
- (object Attribute
- tool "Ada95"
- name "InlineGet"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateSet"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "SetName"
- value "Set_${association}")
- (object Attribute
- tool "Ada95"
- name "InlineSet"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateAssociate"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "AssociateName"
- value "Associate")
- (object Attribute
- tool "Ada95"
- name "InlineAssociate"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateDissociate"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "DissociateName"
- value "Dissociate")
- (object Attribute
- tool "Ada95"
- name "InlineDissociate"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada95"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada95"
- name "NameIfUnlabeled"
- value "The_${targetClass}")
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementation"
- value ("RecordFieldImplementationSet" 216))
- (object Attribute
- tool "Ada95"
- name "RecordFieldName"
- value "${target}")
- (object Attribute
- tool "Ada95"
- name "GenerateGet"
- value ("FunctionKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessGet"
- value ("FunctionKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "GetName"
- value "Get_${target}")
- (object Attribute
- tool "Ada95"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateSet"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessSet"
- value ("ProcedureKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "SetName"
- value "Set_${target}")
- (object Attribute
- tool "Ada95"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "IsAliased"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada95"
- name "ContainerImplementation"
- value ("ContainerImplementationSet" 217))
- (object Attribute
- tool "Ada95"
- name "ContainerGeneric"
- value "List")
- (object Attribute
- tool "Ada95"
- name "ContainerType"
- value "")
- (object Attribute
- tool "Ada95"
- name "ContainerDeclarations"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "SelectorName"
- value "")
- (object Attribute
- tool "Ada95"
- name "SelectorType"
- value "")
- (object Attribute
- tool "Ada95"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Component"
- value 216)
- (object Attribute
- tool "Ada95"
- name "Discriminant"
- value 218)
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminant"
- value 219)))
- (object Attribute
- tool "Ada95"
- name "ContainerImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Array"
- value 217)
- (object Attribute
- tool "Ada95"
- name "Generic"
- value 11)))
- (object Attribute
- tool "Ada95"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada95"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada95"
- name "After"
- value 234)))
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminantClassWide"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "Representation"
- value (value Text ""))))
- (object Attribute
- tool "Ada95"
- name "default__Subsystem"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Directory"
- value "AUTO GENERATE")))
- (object Attribute
- tool "Ada95"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "CORBA"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "CORBA"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "CORBA"
- name "Editor"
- value ("EditorType" 100))
- (object Attribute
- tool "CORBA"
- name "IncludePath"
- value "")
- (object Attribute
- tool "CORBA"
- name "StopOnError"
- value TRUE)
- (object Attribute
- tool "CORBA"
- name "EditorType"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "BuiltIn"
- value 100)
- (object Attribute
- tool "CORBA"
- name "WindowsShell"
- value 101)))
- (object Attribute
- tool "CORBA"
- name "PathSeparator"
- value "")))
- (object Attribute
- tool "CORBA"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "ArrayDimensions"
- value "")
- (object Attribute
- tool "CORBA"
- name "ConstValue"
- value "")
- (object Attribute
- tool "CORBA"
- name "ImplementationType"
- value "")))
- (object Attribute
- tool "CORBA"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "AdditionalIncludes"
- value (value Text ""))
- (object Attribute
- tool "CORBA"
- name "CmIdentification"
- value (value Text " %X% %Q% %Z% %W%"))
- (object Attribute
- tool "CORBA"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "CORBA"
- name "InclusionProtectionSymbol"
- value "AUTO GENERATE")))
- (object Attribute
- tool "CORBA"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "AdditionalIncludes"
- value (value Text ""))
- (object Attribute
- tool "CORBA"
- name "CmIdentification"
- value (value Text " %X% %Q% %Z% %W%"))
- (object Attribute
- tool "CORBA"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "CORBA"
- name "InclusionProtectionSymbol"
- value "AUTO GENERATE")))
- (object Attribute
- tool "CORBA"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "Context"
- value "")
- (object Attribute
- tool "CORBA"
- name "OperationIsOneWay"
- value FALSE)))
- (object Attribute
- tool "CORBA"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "ArrayDimensions"
- value "")
- (object Attribute
- tool "CORBA"
- name "CaseSpecifier"
- value "")
- (object Attribute
- tool "CORBA"
- name "IsReadOnly"
- value FALSE)
- (object Attribute
- tool "CORBA"
- name "Order"
- value "")))
- (object Attribute
- tool "CORBA"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "ArrayDimensions"
- value "")
- (object Attribute
- tool "CORBA"
- name "CaseSpecifier"
- value "")
- (object Attribute
- tool "CORBA"
- name "GenerateForwardReference"
- value FALSE)
- (object Attribute
- tool "CORBA"
- name "IsReadOnly"
- value FALSE)
- (object Attribute
- tool "CORBA"
- name "Order"
- value "")
- (object Attribute
- tool "CORBA"
- name "BoundedRoleType"
- value ("AssocTypeSet" 47))
- (object Attribute
- tool "CORBA"
- name "AssocTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "Array"
- value 24)
- (object Attribute
- tool "CORBA"
- name "Sequence"
- value 47)))))
- (object Attribute
- tool "CORBA"
- name "default__Uses"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "GenerateForwardReference"
- value FALSE)))
- (object Attribute
- tool "CORBA"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "Data Modeler"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "project"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TableCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "DomainCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "SPPackageCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "TriggerCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "IndexCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "ConstraintCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "StoreProcedureCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "PrimaryKeyCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "ForeignKeyCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "TablePrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "DomainPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TriggerPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IndexPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ConstraintPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "StoreProcedurePrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "PrimaryKeyPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ForeignKeyPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ViewCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "JoinCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "TableSpaceCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "cONTAINERCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "ViewPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TableSpacePrefix"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsDatabase"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "TargetDatabase"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Location"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsTableSpace"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "TableSpaceType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsDeault"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "BufferPool"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ExtentSize"
- value 1)
- (object Attribute
- tool "Data Modeler"
- name "PrefetchSize"
- value 1)
- (object Attribute
- tool "Data Modeler"
- name "PageSize"
- value 4)
- (object Attribute
- tool "Data Modeler"
- name "ManagedBy"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ContainerList"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "dmSchema"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "dmDomainPackage"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsSchema"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsDomainPackage"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsRootSchema"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsRootDomainPackage"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsSchemaPackage"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DatabaseID"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "DBMS"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsTable"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsView"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsDomain"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsSPPackage"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "Synonymns"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TableSpace"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SourceId"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SourceType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SelectClause"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsUpdatable"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "CheckOption"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "PersistToServer"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TableSpaceID"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "CorrelationName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsUpdateable"
- value TRUE)
- (object Attribute
- tool "Data Modeler"
- name "IsSnapShot"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsDistinct"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsPackage"
- value FALSE)))
- (object Attribute
- tool "Data Modeler"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Ordinal"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "IsIdentity"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsUnique"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "NullsAllowed"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "Length"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "Scale"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "ColumnType"
- value "Native")
- (object Attribute
- tool "Data Modeler"
- name "ForBitData"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DefaultValueType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "DefaultValue"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SourceId"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SourceType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "OID"
- value FALSE)))
- (object Attribute
- tool "Data Modeler"
- name "default__Association"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsRelationship"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "SourceId"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SourceType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "RIMethod"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ParentUpdateRule"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ParentUpdateRuleName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ParentDeleteRule"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ParentDeleteRuleName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ChildInsertRestrict"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "ChildInsertRestrictName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ChildMultiplicity"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "ChildMultiplicityName"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ConstraintName"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsConstraint"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "ConstraintType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsIndex"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsTrigger"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsStoredProcedure"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsCluster"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "TableSpace"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "FillFactor"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "KeyList"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "CheckPredicate"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsUnique"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DeferalMode"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "InitialCheckTime"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TriggerType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsInsertEvent"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsUpdateEvent"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsDeleteEvent"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "RefOldTable"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "RefNewTable"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "RefOldRow"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "RefNewRow"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsRow"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "WhenClause"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Language"
- value "SQL")
- (object Attribute
- tool "Data Modeler"
- name "ProcType"
- value "Procedure")
- (object Attribute
- tool "Data Modeler"
- name "IsDeterministic"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "ParameterStyle"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ReturnedNull"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "ExternalName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Length"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Scale"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ForBitData"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DefaultValue"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "DefaultValueType"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Parameter"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsInParameter"
- value TRUE)
- (object Attribute
- tool "Data Modeler"
- name "IsOutParameter"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "Ordinal"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Length"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Scale"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ForBitData"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DefaultValueType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "DefaultValue"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "OperationID"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Data Modeler Communicator"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "framework"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Java"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "Java"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "RootDir"
- value "")
- (object Attribute
- tool "Java"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "Java"
- name "StopOnError"
- value FALSE)
- (object Attribute
- tool "Java"
- name "UsePrefixes"
- value FALSE)
- (object Attribute
- tool "Java"
- name "AutoSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ShowCodegenDlg"
- value FALSE)
- (object Attribute
- tool "Java"
- name "JavadocDefaultAuthor"
- value "")
- (object Attribute
- tool "Java"
- name "JavadocDefaultVersion"
- value "")
- (object Attribute
- tool "Java"
- name "JavadocDefaultSince"
- value "")
- (object Attribute
- tool "Java"
- name "JavadocNumAsterisks"
- value 0)
- (object Attribute
- tool "Java"
- name "MaxNumChars"
- value 80)
- (object Attribute
- tool "Java"
- name "Editor"
- value ("EditorType" 100))
- (object Attribute
- tool "Java"
- name "VM"
- value ("VMType" 200))
- (object Attribute
- tool "Java"
- name "ClassPath"
- value ";D:\\j2sdk1.4.2_08\\jre\\lib\\charsets.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\jce.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\jsse.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\rt.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\sunrsasign.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\ext\\dnsns.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\ext\\ldapsec.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\ext\\localedata.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\ext\\sunjce_provider.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\security\\local_policy.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\security\\US_export_policy.jar;D:\\j2sdk1.4.2_08\\lib\\dt.jar;D:\\j2sdk1.4.2_08\\lib\\htmlconverter.jar;D:\\j2sdk1.4.2_08\\lib\\tools.jar")
- (object Attribute
- tool "Java"
- name "EditorType"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "BuiltIn"
- value 100)
- (object Attribute
- tool "Java"
- name "WindowsShell"
- value 101)))
- (object Attribute
- tool "Java"
- name "VMType"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Sun"
- value 200)
- (object Attribute
- tool "Java"
- name "Microsoft"
- value 201)
- (object Attribute
- tool "Java"
- name "IBM"
- value 202)))
- (object Attribute
- tool "Java"
- name "InstanceVariablePrefix"
- value "m_")
- (object Attribute
- tool "Java"
- name "ClassVariablePrefix"
- value "s_")
- (object Attribute
- tool "Java"
- name "DefaultAttributeDataType"
- value "int")
- (object Attribute
- tool "Java"
- name "DefaultOperationReturnType"
- value "void")
- (object Attribute
- tool "Java"
- name "NoClassCustomDlg"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GlobalImports"
- value (value Text ""))
- (object Attribute
- tool "Java"
- name "OpenBraceClassStyle"
- value TRUE)
- (object Attribute
- tool "Java"
- name "OpenBraceMethodStyle"
- value TRUE)
- (object Attribute
- tool "Java"
- name "UseTabs"
- value FALSE)
- (object Attribute
- tool "Java"
- name "UseSpaces"
- value TRUE)
- (object Attribute
- tool "Java"
- name "SpacingItems"
- value 3)
- (object Attribute
- tool "Java"
- name "RoseDefaultCommentStyle"
- value TRUE)
- (object Attribute
- tool "Java"
- name "AsteriskCommentStyle"
- value FALSE)
- (object Attribute
- tool "Java"
- name "JavaCommentStyle"
- value FALSE)
- (object Attribute
- tool "Java"
- name "JavadocAuthor"
- value FALSE)
- (object Attribute
- tool "Java"
- name "JavadocSince"
- value FALSE)
- (object Attribute
- tool "Java"
- name "JavadocVersion"
- value FALSE)
- (object Attribute
- tool "Java"
- name "NotShowRoseIDDlg"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateRoseID"
- value TRUE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultReturnLine"
- value TRUE)
- (object Attribute
- tool "Java"
- name "UserDefineTagName1"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagApply1"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagText1"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagName2"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagApply2"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagText2"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagName3"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagApply3"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagText3"
- value "")
- (object Attribute
- tool "Java"
- name "ReferenceClasspath"
- value "")
- (object Attribute
- tool "Java"
- name "VAJavaWorkingFolder"
- value "")
- (object Attribute
- tool "Java"
- name "BeanPrefix"
- value "")
- (object Attribute
- tool "Java"
- name "BeanSuffix"
- value "")
- (object Attribute
- tool "Java"
- name "RemotePrefix"
- value "")
- (object Attribute
- tool "Java"
- name "RemoteSuffix"
- value "")
- (object Attribute
- tool "Java"
- name "HomePrefix"
- value "")
- (object Attribute
- tool "Java"
- name "HomeSuffix"
- value "")
- (object Attribute
- tool "Java"
- name "PrimaryKeyPrefix"
- value "")
- (object Attribute
- tool "Java"
- name "PrimaryKeySuffix"
- value "")
- (object Attribute
- tool "Java"
- name "EJBDTDLocation"
- value "")
- (object Attribute
- tool "Java"
- name "ServletDTDLocation"
- value "")
- (object Attribute
- tool "Java"
- name "DefaultEJBVersion"
- value "")
- (object Attribute
- tool "Java"
- name "DefaultServletVersion"
- value "")
- (object Attribute
- tool "Java"
- name "GenerateDefaultJ2EEJavadoc"
- value TRUE)
- (object Attribute
- tool "Java"
- name "UserDefineJavaDocTags"
- value "")
- (object Attribute
- tool "Java"
- name "LocalPrefix"
- value "")
- (object Attribute
- tool "Java"
- name "LocalSuffix"
- value "")
- (object Attribute
- tool "Java"
- name "LocalHomePrefix"
- value "")
- (object Attribute
- tool "Java"
- name "LocalHomeSuffix"
- value "")
- (object Attribute
- tool "Java"
- name "SourceControl"
- value FALSE)
- (object Attribute
- tool "Java"
- name "SCCSelected"
- value FALSE)
- (object Attribute
- tool "Java"
- name "SCCProjectSourceRoot"
- value "")
- (object Attribute
- tool "Java"
- name "SCCProjectName"
- value "")
- (object Attribute
- tool "Java"
- name "SCCComment"
- value FALSE)
- (object Attribute
- tool "Java"
- name "FundamentalType"
- value "boolean; char; byte; short; int; long; float; double; Boolean; Byte; Character; Double; Float; Integer; Long; Object; Short; String; StringBuffer; Void; java.math.BigDecimal; java.math.BigInteger; java.sql.Date; java.sql.Time; java.sql.Timestamp; java.util.AbstractCollection; java.util.AbstractList;java.util.AbstractMap; java.util.AbstractSequentialList; java.util.AbstractSet; java.util.ArrayList; java.util.Arrays; java.util.BitSet; java.util.Calendar; java.util.Collections; java.util.Date; java.util.Date; java.util.Dictionary; java.util.EventObject; java.util.GregorianCalendar; java.util.HashMap; java.util.HashSet; java.util.Hashtable; java.util.LinkedList; java.util.ListResourceBundle; java.util.Locale; java.util.Observable; java.util.Properties; java.util.PropertyPermission; java.util.PropertyResourceBundle; java.util.Random; java.util.ResourceBundle; java.util.SimpleTimeZone; java.util.Stack; java.util.StringTokenizer; java.util.Timer; java.util.TimerTask; java.util.TimeZone; java.util.TreeMap; java.util.TreeSet; java.util.Vector; java.util.WeakHashMap")))
- (object Attribute
- tool "Java"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Static"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultConstructor"
- value TRUE)
- (object Attribute
- tool "Java"
- name "ConstructorIs"
- value ("Ctor_Set" 62))
- (object Attribute
- tool "Java"
- name "Ctor_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "public"
- value 62)
- (object Attribute
- tool "Java"
- name "protected"
- value 63)
- (object Attribute
- tool "Java"
- name "private"
- value 64)
- (object Attribute
- tool "Java"
- name "package"
- value 65)))
- (object Attribute
- tool "Java"
- name "GenerateFinalizer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateStaticInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateInstanceInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateCode"
- value TRUE)
- (object Attribute
- tool "Java"
- name "DisableAutoSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ReadOnly"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletName"
- value "")
- (object Attribute
- tool "Java"
- name "ServletContextRef"
- value FALSE)
- (object Attribute
- tool "Java"
- name "IsSingleThread"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletInitParameter"
- value "")
- (object Attribute
- tool "Java"
- name "ServletInitParameterNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletIsSecure"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletRequestDispatcher"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletRequestDispatcherPath"
- value "")
- (object Attribute
- tool "Java"
- name "DispatcherInclude"
- value FALSE)
- (object Attribute
- tool "Java"
- name "DispatcherForward"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletSecurityRoles"
- value "")
- (object Attribute
- tool "Java"
- name "ServletgetInfo"
- value "")
- (object Attribute
- tool "Java"
- name "ServletXMLFilePath"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestAttribute"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestAttributesNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForRequestAttributes"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestParameter"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestParameterNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForRequestParameters"
- value "")
- (object Attribute
- tool "Java"
- name "ServletHeader"
- value "")
- (object Attribute
- tool "Java"
- name "ServletHeaderNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForHeaders"
- value "")
- (object Attribute
- tool "Java"
- name "ServletIntHeader"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletDateHeader"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletCookie"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForCookie"
- value "")
- (object Attribute
- tool "Java"
- name "ServletContentType"
- value "")
- (object Attribute
- tool "Java"
- name "GenerateHTML"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Generate_XML_DD"
- value TRUE)
- (object Attribute
- tool "Java"
- name "EJBCmpField"
- value "")
- (object Attribute
- tool "Java"
- name "EJBEnvironmentProperties"
- value "")
- (object Attribute
- tool "Java"
- name "EJBCnxFactory"
- value "")
- (object Attribute
- tool "Java"
- name "EJBReferences"
- value "")
- (object Attribute
- tool "Java"
- name "EJBSecurityRoles"
- value "")
- (object Attribute
- tool "Java"
- name "EJBNameInJAR"
- value "")
- (object Attribute
- tool "Java"
- name "EJBSessionType"
- value ("EJBSessionType_Set" 200))
- (object Attribute
- tool "Java"
- name "EJBSessionType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name ""
- value 200)
- (object Attribute
- tool "Java"
- name "Stateless"
- value 201)
- (object Attribute
- tool "Java"
- name "Stateful"
- value 202)))
- (object Attribute
- tool "Java"
- name "EJBTransactionType"
- value ("EJBTransactionType_Set" 211))
- (object Attribute
- tool "Java"
- name "EJBTransactionType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Container"
- value 211)
- (object Attribute
- tool "Java"
- name "Bean"
- value 212)))
- (object Attribute
- tool "Java"
- name "EJBPersistenceType"
- value ("EJBPersistenceType_Set" 220))
- (object Attribute
- tool "Java"
- name "EJBPersistenceType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name ""
- value 220)
- (object Attribute
- tool "Java"
- name "Bean"
- value 221)
- (object Attribute
- tool "Java"
- name "Container"
- value 222)))
- (object Attribute
- tool "Java"
- name "EJBReentrant"
- value FALSE)
- (object Attribute
- tool "Java"
- name "EJBSessionSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "EJBVersion"
- value ("EJBVersion_Set" 230))
- (object Attribute
- tool "Java"
- name "EJBVersion_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "2.0"
- value 230)
- (object Attribute
- tool "Java"
- name "1.x"
- value 231)))
- (object Attribute
- tool "Java"
- name "EJBXMLFilePath"
- value "")
- (object Attribute
- tool "Java"
- name "BMP_Extend_CMP"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Strictfp"
- value FALSE)))
- (object Attribute
- tool "Java"
- name "Default_Servlet__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "ServletName"
- value "")
- (object Attribute
- tool "Java"
- name "ServletContextRef"
- value FALSE)
- (object Attribute
- tool "Java"
- name "IsSingleThread"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletInitParameter"
- value "")
- (object Attribute
- tool "Java"
- name "ServletInitParameterNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletIsSecure"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletRequestDispatcher"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletRequestDispatcherPath"
- value "")
- (object Attribute
- tool "Java"
- name "DispatcherInclude"
- value FALSE)
- (object Attribute
- tool "Java"
- name "DispatcherForward"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletSecurityRoles"
- value "")
- (object Attribute
- tool "Java"
- name "ServletgetInfo"
- value "")
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Static"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultConstructor"
- value TRUE)
- (object Attribute
- tool "Java"
- name "ConstructorIs"
- value ("Ctor_Set" 62))
- (object Attribute
- tool "Java"
- name "Ctor_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "public"
- value 62)
- (object Attribute
- tool "Java"
- name "protected"
- value 63)
- (object Attribute
- tool "Java"
- name "private"
- value 64)
- (object Attribute
- tool "Java"
- name "package"
- value 65)))
- (object Attribute
- tool "Java"
- name "GenerateFinalizer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateStaticInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateInstanceInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateCode"
- value TRUE)
- (object Attribute
- tool "Java"
- name "DisableAutoSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ReadOnly"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletXMLFilePath"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestAttribute"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestAttributesNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForRequestAttributes"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestParameter"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestParameterNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForRequestParameters"
- value "")
- (object Attribute
- tool "Java"
- name "ServletHeader"
- value "")
- (object Attribute
- tool "Java"
- name "ServletHeaderNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForHeaders"
- value "")
- (object Attribute
- tool "Java"
- name "ServletIntHeader"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletDateHeader"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletCookie"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForCookie"
- value "")
- (object Attribute
- tool "Java"
- name "ServletContentType"
- value "")
- (object Attribute
- tool "Java"
- name "GenerateHTML"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Generate_XML_DD"
- value TRUE)
- (object Attribute
- tool "Java"
- name "EJBCmpField"
- value "")
- (object Attribute
- tool "Java"
- name "EJBEnvironmentProperties"
- value "")
- (object Attribute
- tool "Java"
- name "EJBCnxFactory"
- value "")
- (object Attribute
- tool "Java"
- name "EJBReferences"
- value "")
- (object Attribute
- tool "Java"
- name "EJBSecurityRoles"
- value "")
- (object Attribute
- tool "Java"
- name "EJBNameInJAR"
- value "")
- (object Attribute
- tool "Java"
- name "EJBSessionType"
- value ("EJBSessionType_Set" 200))
- (object Attribute
- tool "Java"
- name "EJBSessionType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name ""
- value 200)
- (object Attribute
- tool "Java"
- name "Stateless"
- value 201)
- (object Attribute
- tool "Java"
- name "Stateful"
- value 202)))
- (object Attribute
- tool "Java"
- name "EJBTransactionType"
- value ("EJBTransactionType_Set" 211))
- (object Attribute
- tool "Java"
- name "EJBTransactionType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Container"
- value 211)
- (object Attribute
- tool "Java"
- name "Bean"
- value 212)))
- (object Attribute
- tool "Java"
- name "EJBPersistenceType"
- value ("EJBPersistenceType_Set" 220))
- (object Attribute
- tool "Java"
- name "EJBPersistenceType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name ""
- value 220)
- (object Attribute
- tool "Java"
- name "Bean"
- value 221)
- (object Attribute
- tool "Java"
- name "Container"
- value 222)))
- (object Attribute
- tool "Java"
- name "EJBReentrant"
- value FALSE)
- (object Attribute
- tool "Java"
- name "EJBSessionSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "EJBVersion"
- value ("EJBVersion_Set" 230))
- (object Attribute
- tool "Java"
- name "EJBVersion_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "2.0"
- value 230)
- (object Attribute
- tool "Java"
- name "1.x"
- value 231)))
- (object Attribute
- tool "Java"
- name "EJBXMLFilePath"
- value "")
- (object Attribute
- tool "Java"
- name "BMP_Extend_CMP"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Strictfp"
- value FALSE)))
- (object Attribute
- tool "Java"
- name "Http_Servlet__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "ServletRequestAttribute"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestAttributesNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForRequestAttributes"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestParameter"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestParameterNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForRequestParameters"
- value "")
- (object Attribute
- tool "Java"
- name "ServletHeader"
- value "")
- (object Attribute
- tool "Java"
- name "ServletHeaderNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForHeaders"
- value "")
- (object Attribute
- tool "Java"
- name "ServletIntHeader"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletDateHeader"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletCookie"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForCookie"
- value "")
- (object Attribute
- tool "Java"
- name "ServletContentType"
- value "")
- (object Attribute
- tool "Java"
- name "GenerateHTML"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Static"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultConstructor"
- value TRUE)
- (object Attribute
- tool "Java"
- name "ConstructorIs"
- value ("Ctor_Set" 62))
- (object Attribute
- tool "Java"
- name "Ctor_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "public"
- value 62)
- (object Attribute
- tool "Java"
- name "protected"
- value 63)
- (object Attribute
- tool "Java"
- name "private"
- value 64)
- (object Attribute
- tool "Java"
- name "package"
- value 65)))
- (object Attribute
- tool "Java"
- name "GenerateFinalizer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateStaticInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateInstanceInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateCode"
- value TRUE)
- (object Attribute
- tool "Java"
- name "DisableAutoSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ReadOnly"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletName"
- value "")
- (object Attribute
- tool "Java"
- name "ServletContextRef"
- value FALSE)
- (object Attribute
- tool "Java"
- name "IsSingleThread"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletInitParameter"
- value "")
- (object Attribute
- tool "Java"
- name "ServletInitParameterNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletIsSecure"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletRequestDispatcher"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletRequestDispatcherPath"
- value "")
- (object Attribute
- tool "Java"
- name "DispatcherInclude"
- value FALSE)
- (object Attribute
- tool "Java"
- name "DispatcherForward"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletSecurityRoles"
- value "")
- (object Attribute
- tool "Java"
- name "ServletgetInfo"
- value "")
- (object Attribute
- tool "Java"
- name "ServletXMLFilePath"
- value "")
- (object Attribute
- tool "Java"
- name "Generate_XML_DD"
- value TRUE)
- (object Attribute
- tool "Java"
- name "EJBCmpField"
- value "")
- (object Attribute
- tool "Java"
- name "EJBEnvironmentProperties"
- value "")
- (object Attribute
- tool "Java"
- name "EJBCnxFactory"
- value "")
- (object Attribute
- tool "Java"
- name "EJBReferences"
- value "")
- (object Attribute
- tool "Java"
- name "EJBSecurityRoles"
- value "")
- (object Attribute
- tool "Java"
- name "EJBNameInJAR"
- value "")
- (object Attribute
- tool "Java"
- name "EJBSessionType"
- value ("EJBSessionType_Set" 200))
- (object Attribute
- tool "Java"
- name "EJBSessionType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name ""
- value 200)
- (object Attribute
- tool "Java"
- name "Stateless"
- value 201)
- (object Attribute
- tool "Java"
- name "Stateful"
- value 202)))
- (object Attribute
- tool "Java"
- name "EJBTransactionType"
- value ("EJBTransactionType_Set" 211))
- (object Attribute
- tool "Java"
- name "EJBTransactionType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Container"
- value 211)
- (object Attribute
- tool "Java"
- name "Bean"
- value 212)))
- (object Attribute
- tool "Java"
- name "EJBPersistenceType"
- value ("EJBPersistenceType_Set" 220))
- (object Attribute
- tool "Java"
- name "EJBPersistenceType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name ""
- value 220)
- (object Attribute
- tool "Java"
- name "Bean"
- value 221)
- (object Attribute
- tool "Java"
- name "Container"
- value 222)))
- (object Attribute
- tool "Java"
- name "EJBReentrant"
- value FALSE)
- (object Attribute
- tool "Java"
- name "EJBSessionSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "EJBVersion"
- value ("EJBVersion_Set" 230))
- (object Attribute
- tool "Java"
- name "EJBVersion_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "2.0"
- value 230)
- (object Attribute
- tool "Java"
- name "1.x"
- value 231)))
- (object Attribute
- tool "Java"
- name "EJBXMLFilePath"
- value "")
- (object Attribute
- tool "Java"
- name "BMP_Extend_CMP"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Strictfp"
- value FALSE)))
- (object Attribute
- tool "Java"
- name "Default_EJB__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Generate_XML_DD"
- value TRUE)
- (object Attribute
- tool "Java"
- name "EJBCmpField"
- value "")
- (object Attribute
- tool "Java"
- name "EJBEnvironmentProperties"
- value "")
- (object Attribute
- tool "Java"
- name "EJBCnxFactory"
- value "")
- (object Attribute
- tool "Java"
- name "EJBReferences"
- value "")
- (object Attribute
- tool "Java"
- name "EJBSecurityRoles"
- value "")
- (object Attribute
- tool "Java"
- name "EJBNameInJAR"
- value "")
- (object Attribute
- tool "Java"
- name "EJBSessionType"
- value ("EJBSessionType_Set" 200))
- (object Attribute
- tool "Java"
- name "EJBSessionType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name ""
- value 200)
- (object Attribute
- tool "Java"
- name "Stateless"
- value 201)
- (object Attribute
- tool "Java"
- name "Stateful"
- value 202)))
- (object Attribute
- tool "Java"
- name "EJBTransactionType"
- value ("EJBTransactionType_Set" 211))
- (object Attribute
- tool "Java"
- name "EJBTransactionType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Container"
- value 211)
- (object Attribute
- tool "Java"
- name "Bean"
- value 212)))
- (object Attribute
- tool "Java"
- name "EJBPersistenceType"
- value ("EJBPersistenceType_Set" 220))
- (object Attribute
- tool "Java"
- name "EJBPersistenceType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name ""
- value 220)
- (object Attribute
- tool "Java"
- name "Bean"
- value 221)
- (object Attribute
- tool "Java"
- name "Container"
- value 222)))
- (object Attribute
- tool "Java"
- name "EJBReentrant"
- value FALSE)
- (object Attribute
- tool "Java"
- name "BMP_Extend_CMP"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Static"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultConstructor"
- value TRUE)
- (object Attribute
- tool "Java"
- name "ConstructorIs"
- value ("Ctor_Set" 62))
- (object Attribute
- tool "Java"
- name "Ctor_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "public"
- value 62)
- (object Attribute
- tool "Java"
- name "protected"
- value 63)
- (object Attribute
- tool "Java"
- name "private"
- value 64)
- (object Attribute
- tool "Java"
- name "package"
- value 65)))
- (object Attribute
- tool "Java"
- name "GenerateFinalizer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateStaticInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateInstanceInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateCode"
- value TRUE)
- (object Attribute
- tool "Java"
- name "DisableAutoSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ReadOnly"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletName"
- value "")
- (object Attribute
- tool "Java"
- name "ServletContextRef"
- value FALSE)
- (object Attribute
- tool "Java"
- name "IsSingleThread"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletInitParameter"
- value "")
- (object Attribute
- tool "Java"
- name "ServletInitParameterNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletIsSecure"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletRequestDispatcher"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletRequestDispatcherPath"
- value "")
- (object Attribute
- tool "Java"
- name "DispatcherInclude"
- value FALSE)
- (object Attribute
- tool "Java"
- name "DispatcherForward"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletSecurityRoles"
- value "")
- (object Attribute
- tool "Java"
- name "ServletgetInfo"
- value "")
- (object Attribute
- tool "Java"
- name "ServletXMLFilePath"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestAttribute"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestAttributesNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForRequestAttributes"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestParameter"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestParameterNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForRequestParameters"
- value "")
- (object Attribute
- tool "Java"
- name "ServletHeader"
- value "")
- (object Attribute
- tool "Java"
- name "ServletHeaderNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForHeaders"
- value "")
- (object Attribute
- tool "Java"
- name "ServletIntHeader"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletDateHeader"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletCookie"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForCookie"
- value "")
- (object Attribute
- tool "Java"
- name "ServletContentType"
- value "")
- (object Attribute
- tool "Java"
- name "GenerateHTML"
- value FALSE)
- (object Attribute
- tool "Java"
- name "EJBSessionSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "EJBVersion"
- value ("EJBVersion_Set" 230))
- (object Attribute
- tool "Java"
- name "EJBVersion_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "2.0"
- value 230)
- (object Attribute
- tool "Java"
- name "1.x"
- value 231)))
- (object Attribute
- tool "Java"
- name "EJBXMLFilePath"
- value "")
- (object Attribute
- tool "Java"
- name "Strictfp"
- value FALSE)))
- (object Attribute
- tool "Java"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "CmIdentification"
- value (value Text ""))
- (object Attribute
- tool "Java"
- name "CopyrightNotice"
- value (value Text ""))))
- (object Attribute
- tool "Java"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "CmIdentification"
- value (value Text ""))
- (object Attribute
- tool "Java"
- name "CopyrightNotice"
- value (value Text ""))))
- (object Attribute
- tool "Java"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Abstract"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Static"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Native"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Synchronized"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedReturn"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ReplaceExistingCode"
- value TRUE)
- (object Attribute
- tool "Java"
- name "Strictfp"
- value FALSE)))
- (object Attribute
- tool "Java"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Transient"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Volatile"
- value FALSE)
- (object Attribute
- tool "Java"
- name "PropertyType"
- value ("BeanProperty_Set" 71))
- (object Attribute
- tool "Java"
- name "BeanProperty_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Not A Property"
- value 71)
- (object Attribute
- tool "Java"
- name "Simple"
- value 72)
- (object Attribute
- tool "Java"
- name "Bound"
- value 73)
- (object Attribute
- tool "Java"
- name "Constrained"
- value 74)))
- (object Attribute
- tool "Java"
- name "IndividualChangeMgt"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Read/Write"
- value ("Read/Write_Set" 81))
- (object Attribute
- tool "Java"
- name "Read/Write_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Read & Write"
- value 81)
- (object Attribute
- tool "Java"
- name "Read Only"
- value 82)
- (object Attribute
- tool "Java"
- name "Write Only"
- value 83)))
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedTypes"
- value FALSE)))
- (object Attribute
- tool "Java"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "ContainerClass"
- value "")
- (object Attribute
- tool "Java"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Transient"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Volatile"
- value FALSE)
- (object Attribute
- tool "Java"
- name "PropertyType"
- value ("BeanProperty_Set" 71))
- (object Attribute
- tool "Java"
- name "BeanProperty_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Not A Property"
- value 71)
- (object Attribute
- tool "Java"
- name "Simple"
- value 72)
- (object Attribute
- tool "Java"
- name "Bound"
- value 73)
- (object Attribute
- tool "Java"
- name "Constrained"
- value 74)))
- (object Attribute
- tool "Java"
- name "IndividualChangeMgt"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Read/Write"
- value ("Read/Write_Set" 81))
- (object Attribute
- tool "Java"
- name "Read/Write_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Read & Write"
- value 81)
- (object Attribute
- tool "Java"
- name "Read Only"
- value 82)
- (object Attribute
- tool "Java"
- name "Write Only"
- value 83)))
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedTypes"
- value FALSE)
- (object Attribute
- tool "Java"
- name "IsNavigable"
- value TRUE)))
- (object Attribute
- tool "Java"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "propertyId"
- value "360000002")
- (object Attribute
- tool "Oracle8"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "DDLScriptFilename"
- value "DDL1.SQL")
- (object Attribute
- tool "Oracle8"
- name "DropClause"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "PrimaryKeyColumnName"
- value "_ID")
- (object Attribute
- tool "Oracle8"
- name "PrimaryKeyColumnType"
- value "NUMBER(5,0)")
- (object Attribute
- tool "Oracle8"
- name "SchemaNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "SchemaNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TableNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TableNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TypeNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TypeNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "ViewNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "ViewNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "VarrayNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "VarrayNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "NestedTableNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "NestedTableNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "ObjectTableNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "ObjectTableNameSuffix"
- value "")))
- (object Attribute
- tool "Oracle8"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "IsSchema"
- value FALSE)))
- (object Attribute
- tool "Oracle8"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "OID"
- value "")
- (object Attribute
- tool "Oracle8"
- name "WhereClause"
- value "")
- (object Attribute
- tool "Oracle8"
- name "CheckConstraint"
- value "")
- (object Attribute
- tool "Oracle8"
- name "CollectionTypeLength"
- value "")
- (object Attribute
- tool "Oracle8"
- name "CollectionTypePrecision"
- value "")
- (object Attribute
- tool "Oracle8"
- name "CollectionTypeScale"
- value "")
- (object Attribute
- tool "Oracle8"
- name "CollectionOfREFS"
- value FALSE)))
- (object Attribute
- tool "Oracle8"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "MethodKind"
- value ("MethodKindSet" 1903))
- (object Attribute
- tool "Oracle8"
- name "OverloadID"
- value "")
- (object Attribute
- tool "Oracle8"
- name "OrderNumber"
- value "")
- (object Attribute
- tool "Oracle8"
- name "IsReadNoDataState"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "IsReadNoProcessState"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "IsWriteNoDataState"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "IsWriteNoProcessState"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "IsSelfish"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "TriggerType"
- value ("TriggerTypeSet" 1801))
- (object Attribute
- tool "Oracle8"
- name "TriggerEvent"
- value ("TriggerEventSet" 1601))
- (object Attribute
- tool "Oracle8"
- name "TriggerText"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TriggerReferencingNames"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TriggerForEach"
- value ("TriggerForEachSet" 1701))
- (object Attribute
- tool "Oracle8"
- name "TriggerWhenClause"
- value "")
- (object Attribute
- tool "Oracle8"
- name "MethodKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "MapMethod"
- value 1901)
- (object Attribute
- tool "Oracle8"
- name "OrderMethod"
- value 1902)
- (object Attribute
- tool "Oracle8"
- name "Function"
- value 1903)
- (object Attribute
- tool "Oracle8"
- name "Procedure"
- value 1904)
- (object Attribute
- tool "Oracle8"
- name "Operator"
- value 1905)
- (object Attribute
- tool "Oracle8"
- name "Constructor"
- value 1906)
- (object Attribute
- tool "Oracle8"
- name "Destructor"
- value 1907)
- (object Attribute
- tool "Oracle8"
- name "Trigger"
- value 1908)
- (object Attribute
- tool "Oracle8"
- name "Calculated"
- value 1909)))
- (object Attribute
- tool "Oracle8"
- name "TriggerTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "AFTER"
- value 1801)
- (object Attribute
- tool "Oracle8"
- name "BEFORE"
- value 1802)
- (object Attribute
- tool "Oracle8"
- name "INSTEAD OF"
- value 1803)))
- (object Attribute
- tool "Oracle8"
- name "TriggerForEachSet"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "ROW"
- value 1701)
- (object Attribute
- tool "Oracle8"
- name "STATEMENT"
- value 1702)))
- (object Attribute
- tool "Oracle8"
- name "TriggerEventSet"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "INSERT"
- value 1601)
- (object Attribute
- tool "Oracle8"
- name "UPDATE"
- value 1602)
- (object Attribute
- tool "Oracle8"
- name "DELETE"
- value 1603)
- (object Attribute
- tool "Oracle8"
- name "INSERT OR UPDATE"
- value 1604)
- (object Attribute
- tool "Oracle8"
- name "INSERT OR DELETE"
- value 1605)
- (object Attribute
- tool "Oracle8"
- name "UPDATE OR DELETE"
- value 1606)
- (object Attribute
- tool "Oracle8"
- name "INSERT OR UPDATE OR DELETE"
- value 1607)))))
- (object Attribute
- tool "Oracle8"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "OrderNumber"
- value "")))
- (object Attribute
- tool "Oracle8"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "OrderNumber"
- value "")
- (object Attribute
- tool "Oracle8"
- name "IsUnique"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "NullsAllowed"
- value TRUE)
- (object Attribute
- tool "Oracle8"
- name "Length"
- value "")
- (object Attribute
- tool "Oracle8"
- name "Precision"
- value "2")
- (object Attribute
- tool "Oracle8"
- name "Scale"
- value "6")
- (object Attribute
- tool "Oracle8"
- name "IsIndex"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "IsPrimaryKey"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "CompositeUnique"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "CheckConstraint"
- value "")))
- (object Attribute
- tool "Oracle8"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "R2Editor"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "ComponentTest"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "cg"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "cg"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "AllowGenerateOverNewerAnnotations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "AllowGenerateOverNewerVersion"
- value FALSE)
- (object Attribute
- tool "cg"
- name "UseMSVC"
- value FALSE)
- (object Attribute
- tool "cg"
- name "HeaderFileExtension"
- value "h")
- (object Attribute
- tool "cg"
- name "HeaderFileBackupExtension"
- value "h~")
- (object Attribute
- tool "cg"
- name "HeaderFileTemporaryExtension"
- value "h#")
- (object Attribute
- tool "cg"
- name "CodeFileExtension"
- value "cpp")
- (object Attribute
- tool "cg"
- name "CodeFileBackupExtension"
- value "cp~")
- (object Attribute
- tool "cg"
- name "CodeFileTemporaryExtension"
- value "cp#")
- (object Attribute
- tool "cg"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "cg"
- name "StopOnError"
- value FALSE)
- (object Attribute
- tool "cg"
- name "ErrorLimit"
- value 30)
- (object Attribute
- tool "cg"
- name "Directory"
- value "$ROSECPP_SOURCE")
- (object Attribute
- tool "cg"
- name "PathSeparator"
- value "")
- (object Attribute
- tool "cg"
- name "FileNameFormat"
- value "128vx_b")
- (object Attribute
- tool "cg"
- name "BooleanType"
- value "int")
- (object Attribute
- tool "cg"
- name "AllowTemplates"
- value TRUE)
- (object Attribute
- tool "cg"
- name "AllowExplicitInstantiations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "AllowProtectedInheritance"
- value TRUE)
- (object Attribute
- tool "cg"
- name "CommentWidth"
- value 60)
- (object Attribute
- tool "cg"
- name "OneByValueContainer"
- value "$targetClass")
- (object Attribute
- tool "cg"
- name "OneByReferenceContainer"
- value "$targetClass *")
- (object Attribute
- tool "cg"
- name "OptionalByValueContainer"
- value "OptionalByValue<$targetClass>")
- (object Attribute
- tool "cg"
- name "OptionalByReferenceContainer"
- value "$targetClass *")
- (object Attribute
- tool "cg"
- name "FixedByValueContainer"
- value "$targetClass[$limit]")
- (object Attribute
- tool "cg"
- name "UnorderedFixedByValueContainer"
- value "$targetClass[$limit]")
- (object Attribute
- tool "cg"
- name "FixedByReferenceContainer"
- value "$targetClass *[$limit]")
- (object Attribute
- tool "cg"
- name "UnorderedFixedByReferenceContainer"
- value "$targetClass *[$limit]")
- (object Attribute
- tool "cg"
- name "BoundedByValueContainer"
- value "BoundedListByValue<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "UnorderedBoundedByValueContainer"
- value "BoundedSetByValue<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "BoundedByReferenceContainer"
- value "BoundedListByReference<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "UnorderedBoundedByReferenceContainer"
- value "BoundedSetByReference<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "UnboundedByValueContainer"
- value "UnboundedListByValue<$targetClass>")
- (object Attribute
- tool "cg"
- name "UnorderedUnboundedByValueContainer"
- value "UnboundedSetByValue<$targetClass>")
- (object Attribute
- tool "cg"
- name "UnboundedByReferenceContainer"
- value "UnboundedListByReference<$targetClass>")
- (object Attribute
- tool "cg"
- name "UnorderedUnboundedByReferenceContainer"
- value "UnboundedSetByReference<$targetClass>")
- (object Attribute
- tool "cg"
- name "QualifiedByValueContainer"
- value "AssociationByValue<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "UnorderedQualifiedByValueContainer"
- value "DictionaryByValue<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "QualifiedByReferenceContainer"
- value "AssociationByReference<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "UnorderedQualifiedByReferenceContainer"
- value "DictionaryByReference<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "AlwaysKeepOrphanedCode"
- value FALSE)))
- (object Attribute
- tool "cg"
- name "compiler2.1__Project"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "AllowGenerateOverNewerAnnotations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "AllowGenerateOverNewerVersion"
- value FALSE)
- (object Attribute
- tool "cg"
- name "HeaderFileExtension"
- value "h")
- (object Attribute
- tool "cg"
- name "HeaderFileBackupExtension"
- value "h~")
- (object Attribute
- tool "cg"
- name "HeaderFileTemporaryExtension"
- value "h#")
- (object Attribute
- tool "cg"
- name "CodeFileExtension"
- value "cpp")
- (object Attribute
- tool "cg"
- name "CodeFileBackupExtension"
- value "cp~")
- (object Attribute
- tool "cg"
- name "CodeFileTemporaryExtension"
- value "cp#")
- (object Attribute
- tool "cg"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "cg"
- name "StopOnError"
- value FALSE)
- (object Attribute
- tool "cg"
- name "ErrorLimit"
- value 30)
- (object Attribute
- tool "cg"
- name "Directory"
- value "$ROSECPP_SOURCE")
- (object Attribute
- tool "cg"
- name "BooleanType"
- value "int")
- (object Attribute
- tool "cg"
- name "AllowTemplates"
- value TRUE)
- (object Attribute
- tool "cg"
- name "AllowExplicitInstantiations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "AllowProtectedInheritance"
- value TRUE)
- (object Attribute
- tool "cg"
- name "OneByValueContainer"
- value "$targetClass")
- (object Attribute
- tool "cg"
- name "OneByReferenceContainer"
- value "$targetClass *")
- (object Attribute
- tool "cg"
- name "OptionalByValueContainer"
- value "OptionalByValue<$targetClass>")
- (object Attribute
- tool "cg"
- name "OptionalByReferenceContainer"
- value "$targetClass *")
- (object Attribute
- tool "cg"
- name "FixedByValueContainer"
- value "$targetClass[$limit]")
- (object Attribute
- tool "cg"
- name "UnorderedFixedByValueContainer"
- value "$targetClass[$limit]")
- (object Attribute
- tool "cg"
- name "FixedByReferenceContainer"
- value "$targetClass *[$limit]")
- (object Attribute
- tool "cg"
- name "UnorderedFixedByReferenceContainer"
- value "$targetClass *[$limit]")
- (object Attribute
- tool "cg"
- name "BoundedByValueContainer"
- value "BoundedListByValue<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "UnorderedBoundedByValueContainer"
- value "BoundedSetByValue<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "BoundedByReferenceContainer"
- value "BoundedListByReference<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "UnorderedBoundedByReferenceContainer"
- value "BoundedSetByReference<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "UnboundedByValueContainer"
- value "UnboundedListByValue<$targetClass>")
- (object Attribute
- tool "cg"
- name "UnorderedUnboundedByValueContainer"
- value "UnboundedSetByValue<$targetClass>")
- (object Attribute
- tool "cg"
- name "UnboundedByReferenceContainer"
- value "UnboundedListByReference<$targetClass>")
- (object Attribute
- tool "cg"
- name "UnorderedUnboundedByReferenceContainer"
- value "UnboundedSetByReference<$targetClass>")
- (object Attribute
- tool "cg"
- name "QualifiedByValueContainer"
- value "AssociationByValue<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "UnorderedQualifiedByValueContainer"
- value "DictionaryByValue<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "QualifiedByReferenceContainer"
- value "AssociationByReference<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "UnorderedQualifiedByReferenceContainer"
- value "DictionaryByReference<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "PathSeparator"
- value "")
- (object Attribute
- tool "cg"
- name "FileNameFormat"
- value "128vx_b")
- (object Attribute
- tool "cg"
- name "AlwaysKeepOrphanedCode"
- value FALSE)
- (object Attribute
- tool "cg"
- name "UseMSVC"
- value FALSE)
- (object Attribute
- tool "cg"
- name "CommentWidth"
- value 60)))
- (object Attribute
- tool "cg"
- name "compiler3.0__Project"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "AllowGenerateOverNewerAnnotations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "AllowGenerateOverNewerVersion"
- value FALSE)
- (object Attribute
- tool "cg"
- name "HeaderFileExtension"
- value "h")
- (object Attribute
- tool "cg"
- name "HeaderFileBackupExtension"
- value "h~")
- (object Attribute
- tool "cg"
- name "HeaderFileTemporaryExtension"
- value "h#")
- (object Attribute
- tool "cg"
- name "CodeFileExtension"
- value "cpp")
- (object Attribute
- tool "cg"
- name "CodeFileBackupExtension"
- value "cp~")
- (object Attribute
- tool "cg"
- name "CodeFileTemporaryExtension"
- value "cp#")
- (object Attribute
- tool "cg"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "cg"
- name "StopOnError"
- value FALSE)
- (object Attribute
- tool "cg"
- name "ErrorLimit"
- value 30)
- (object Attribute
- tool "cg"
- name "Directory"
- value "$ROSECPP_SOURCE")
- (object Attribute
- tool "cg"
- name "BooleanType"
- value "int")
- (object Attribute
- tool "cg"
- name "AllowTemplates"
- value TRUE)
- (object Attribute
- tool "cg"
- name "AllowExplicitInstantiations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "AllowProtectedInheritance"
- value TRUE)
- (object Attribute
- tool "cg"
- name "OneByValueContainer"
- value "$targetClass")
- (object Attribute
- tool "cg"
- name "OneByReferenceContainer"
- value "$targetClass *")
- (object Attribute
- tool "cg"
- name "OptionalByValueContainer"
- value "OptionalByValue<$targetClass>")
- (object Attribute
- tool "cg"
- name "OptionalByReferenceContainer"
- value "$targetClass *")
- (object Attribute
- tool "cg"
- name "FixedByValueContainer"
- value "$targetClass[$limit]")
- (object Attribute
- tool "cg"
- name "UnorderedFixedByValueContainer"
- value "$targetClass[$limit]")
- (object Attribute
- tool "cg"
- name "FixedByReferenceContainer"
- value "$targetClass *[$limit]")
- (object Attribute
- tool "cg"
- name "UnorderedFixedByReferenceContainer"
- value "$targetClass *[$limit]")
- (object Attribute
- tool "cg"
- name "BoundedByValueContainer"
- value "BoundedListByValue<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "UnorderedBoundedByValueContainer"
- value "BoundedSetByValue<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "BoundedByReferenceContainer"
- value "BoundedListByReference<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "UnorderedBoundedByReferenceContainer"
- value "BoundedSetByReference<$targetClass,$limit>")
- (object Attribute
- tool "cg"
- name "UnboundedByValueContainer"
- value "UnboundedListByValue<$targetClass>")
- (object Attribute
- tool "cg"
- name "UnorderedUnboundedByValueContainer"
- value "UnboundedSetByValue<$targetClass>")
- (object Attribute
- tool "cg"
- name "UnboundedByReferenceContainer"
- value "UnboundedListByReference<$targetClass>")
- (object Attribute
- tool "cg"
- name "UnorderedUnboundedByReferenceContainer"
- value "UnboundedSetByReference<$targetClass>")
- (object Attribute
- tool "cg"
- name "QualifiedByValueContainer"
- value "AssociationByValue<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "UnorderedQualifiedByValueContainer"
- value "DictionaryByValue<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "QualifiedByReferenceContainer"
- value "AssociationByReference<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "UnorderedQualifiedByReferenceContainer"
- value "DictionaryByReference<$qualtype, $qualcont>")
- (object Attribute
- tool "cg"
- name "PathSeparator"
- value "")
- (object Attribute
- tool "cg"
- name "FileNameFormat"
- value "128vx_b")
- (object Attribute
- tool "cg"
- name "AlwaysKeepOrphanedCode"
- value FALSE)
- (object Attribute
- tool "cg"
- name "UseMSVC"
- value FALSE)
- (object Attribute
- tool "cg"
- name "CommentWidth"
- value 60)))
- (object Attribute
- tool "cg"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "CodeName"
- value "")
- (object Attribute
- tool "cg"
- name "ImplementationType"
- value "")
- (object Attribute
- tool "cg"
- name "ClassKey"
- value "class")
- (object Attribute
- tool "cg"
- name "GenerateEmptyRegions"
- value ("GenerateEmptyRegionSet" 3))
- (object Attribute
- tool "cg"
- name "GenerateEmptyRegionSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "None"
- value 0)
- (object Attribute
- tool "cg"
- name "Preserved"
- value 1)
- (object Attribute
- tool "cg"
- name "Unpreserved"
- value 2)
- (object Attribute
- tool "cg"
- name "All"
- value 3)))
- (object Attribute
- tool "cg"
- name "PutBodiesInSpec"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateDefaultConstructor"
- value ("GenerateSet" 199))
- (object Attribute
- tool "cg"
- name "DefaultConstructorVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "InlineDefaultConstructor"
- value FALSE)
- (object Attribute
- tool "cg"
- name "ExplicitDefaultConstructor"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateCopyConstructor"
- value ("GenerateSet" 199))
- (object Attribute
- tool "cg"
- name "CopyConstructorVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "InlineCopyConstructor"
- value FALSE)
- (object Attribute
- tool "cg"
- name "ExplicitCopyConstructor"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateDestructor"
- value TRUE)
- (object Attribute
- tool "cg"
- name "DestructorVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "DestructorKind"
- value ("ThreeKindSet" 200))
- (object Attribute
- tool "cg"
- name "InlineDestructor"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateAssignmentOperation"
- value ("GenerateSet" 199))
- (object Attribute
- tool "cg"
- name "AssignmentVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "AssignmentKind"
- value ("ThreeKindSet" 200))
- (object Attribute
- tool "cg"
- name "InlineAssignmentOperation"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateEqualityOperations"
- value ("GenerateSet" 199))
- (object Attribute
- tool "cg"
- name "EqualityVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "EqualityKind"
- value ("FriendKindSet" 200))
- (object Attribute
- tool "cg"
- name "InlineEqualityOperations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateRelationalOperations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "RelationalVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "RelationalKind"
- value ("FriendKindSet" 200))
- (object Attribute
- tool "cg"
- name "InlineRelationalOperations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateStorageMgmtOperations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "StorageMgmtVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "InlineStorageMgmtOperations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateSubscriptOperation"
- value FALSE)
- (object Attribute
- tool "cg"
- name "SubscriptVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "SubscriptKind"
- value ("ThreeKindSet" 200))
- (object Attribute
- tool "cg"
- name "SubscriptResultType"
- value "")
- (object Attribute
- tool "cg"
- name "InlineSubscriptOperation"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateDereferenceOperation"
- value FALSE)
- (object Attribute
- tool "cg"
- name "DereferenceVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "DereferenceKind"
- value ("ThreeKindSet" 200))
- (object Attribute
- tool "cg"
- name "DereferenceResultType"
- value "")
- (object Attribute
- tool "cg"
- name "InlineDereferenceOperation"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateIndirectionOperation"
- value FALSE)
- (object Attribute
- tool "cg"
- name "IndirectionVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "IndirectionKind"
- value ("ThreeKindSet" 200))
- (object Attribute
- tool "cg"
- name "IndirectionResultType"
- value "")
- (object Attribute
- tool "cg"
- name "InlineIndirectionOperation"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateStreamOperations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "StreamVisibility"
- value ("VisibilitySet" 45))
- (object Attribute
- tool "cg"
- name "InlineStreamOperations"
- value FALSE)
- (object Attribute
- tool "cg"
- name "ThreeKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Common"
- value 200)
- (object Attribute
- tool "cg"
- name "Virtual"
- value 201)
- (object Attribute
- tool "cg"
- name "Abstract"
- value 202)))
- (object Attribute
- tool "cg"
- name "KindSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Common"
- value 200)
- (object Attribute
- tool "cg"
- name "Virtual"
- value 201)
- (object Attribute
- tool "cg"
- name "Abstract"
- value 202)
- (object Attribute
- tool "cg"
- name "Static"
- value 203)))
- (object Attribute
- tool "cg"
- name "FriendKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Common"
- value 200)
- (object Attribute
- tool "cg"
- name "Virtual"
- value 201)
- (object Attribute
- tool "cg"
- name "Abstract"
- value 202)
- (object Attribute
- tool "cg"
- name "Friend"
- value 204)))
- (object Attribute
- tool "cg"
- name "GenerateSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "DeclareAndDefine"
- value 199)
- (object Attribute
- tool "cg"
- name "DeclareOnly"
- value 205)
- (object Attribute
- tool "cg"
- name "DoNotDeclare"
- value 206)))
- (object Attribute
- tool "cg"
- name "VisibilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Public"
- value 45)
- (object Attribute
- tool "cg"
- name "Protected"
- value 44)
- (object Attribute
- tool "cg"
- name "Private"
- value 43)
- (object Attribute
- tool "cg"
- name "Implementation"
- value 14)))))
- (object Attribute
- tool "cg"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GenerateEmptyRegions"
- value ("GenerateEmptyRegionSet" 3))
- (object Attribute
- tool "cg"
- name "GenerateEmptyRegionSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "None"
- value 0)
- (object Attribute
- tool "cg"
- name "Preserved"
- value 1)
- (object Attribute
- tool "cg"
- name "Unpreserved"
- value 2)
- (object Attribute
- tool "cg"
- name "All"
- value 3)))
- (object Attribute
- tool "cg"
- name "CmIdentification"
- value (value Text " %X% %Q% %Z% %W%"))
- (object Attribute
- tool "cg"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "FileName"
- value "AUTO GENERATE")
- (object Attribute
- tool "cg"
- name "AllowExtensionlessFileName"
- value FALSE)
- (object Attribute
- tool "cg"
- name "InclusionProtectionSymbol"
- value "AUTO GENERATE")
- (object Attribute
- tool "cg"
- name "IncludeFormat"
- value (value Text
-|// $package
-|#include "$file"
-|
- ))
- (object Attribute
- tool "cg"
- name "IncludeBySimpleName"
- value FALSE)
- (object Attribute
- tool "cg"
- name "IncludePrecompiledHeader"
- value FALSE)
- (object Attribute
- tool "cg"
- name "IncludeOrder"
- value "AMIR")
- (object Attribute
- tool "cg"
- name "AdditionalIncludes"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "InliningStyle"
- value ("InliningStyleSet" 207))
- (object Attribute
- tool "cg"
- name "InliningStyleSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "InClassDeclaration"
- value 208)
- (object Attribute
- tool "cg"
- name "FollowingClassDeclaration"
- value 207)))
- (object Attribute
- tool "cg"
- name "TypesDefined"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "IncludeClosure"
- value (value Text ""))))
- (object Attribute
- tool "cg"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GenerateEmptyRegions"
- value ("GenerateEmptyRegionSet" 3))
- (object Attribute
- tool "cg"
- name "GenerateEmptyRegionSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "None"
- value 0)
- (object Attribute
- tool "cg"
- name "Preserved"
- value 1)
- (object Attribute
- tool "cg"
- name "Unpreserved"
- value 2)
- (object Attribute
- tool "cg"
- name "All"
- value 3)))
- (object Attribute
- tool "cg"
- name "CmIdentification"
- value (value Text " %X% %Q% %Z% %W%"))
- (object Attribute
- tool "cg"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "FileName"
- value "AUTO GENERATE")
- (object Attribute
- tool "cg"
- name "AllowExtensionlessFileName"
- value FALSE)
- (object Attribute
- tool "cg"
- name "IncludeFormat"
- value (value Text
-|// $package
-|#include "$file"
-|
- ))
- (object Attribute
- tool "cg"
- name "IncludeBySimpleName"
- value FALSE)
- (object Attribute
- tool "cg"
- name "IncludePrecompiledHeader"
- value TRUE)
- (object Attribute
- tool "cg"
- name "IncludeOrder"
- value "AMIR")
- (object Attribute
- tool "cg"
- name "AdditionalIncludes"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "InliningStyle"
- value ("InliningStyleSet" 207))
- (object Attribute
- tool "cg"
- name "InliningStyleSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "InClassDeclaration"
- value 208)
- (object Attribute
- tool "cg"
- name "FollowingClassDeclaration"
- value 207)))
- (object Attribute
- tool "cg"
- name "TypesDefined"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "IncludeClosure"
- value (value Text ""))))
- (object Attribute
- tool "cg"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "CodeName"
- value "")
- (object Attribute
- tool "cg"
- name "OperationKind"
- value ("OperationKindSet" 200))
- (object Attribute
- tool "cg"
- name "OperationKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Common"
- value 200)
- (object Attribute
- tool "cg"
- name "Virtual"
- value 201)
- (object Attribute
- tool "cg"
- name "Abstract"
- value 202)
- (object Attribute
- tool "cg"
- name "Static"
- value 203)
- (object Attribute
- tool "cg"
- name "Friend"
- value 204)))
- (object Attribute
- tool "cg"
- name "GenerateAbstractBody"
- value FALSE)
- (object Attribute
- tool "cg"
- name "SpecialDeclReturnType"
- value "")
- (object Attribute
- tool "cg"
- name "OperationIsConst"
- value FALSE)
- (object Attribute
- tool "cg"
- name "OperationIsExplicit"
- value FALSE)
- (object Attribute
- tool "cg"
- name "Inline"
- value FALSE)
- (object Attribute
- tool "cg"
- name "EntryCode"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "ExitCode"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "CCRegion"
- value "")
- (object Attribute
- tool "cg"
- name "GenerateEmptyRegions"
- value ("GenerateEmptyRegionSet" 3))
- (object Attribute
- tool "cg"
- name "GenerateEmptyRegionSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "None"
- value 0)
- (object Attribute
- tool "cg"
- name "Preserved"
- value 1)
- (object Attribute
- tool "cg"
- name "Unpreserved"
- value 2)
- (object Attribute
- tool "cg"
- name "All"
- value 3)))
- (object Attribute
- tool "cg"
- name "BodyAnnotations"
- value "")
- (object Attribute
- tool "cg"
- name "GenerateFriendBody"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateFriendDecl"
- value FALSE)))
- (object Attribute
- tool "cg"
- name "default__Has"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "CodeName"
- value "")
- (object Attribute
- tool "cg"
- name "Ordered"
- value TRUE)
- (object Attribute
- tool "cg"
- name "NameIfUnlabeled"
- value "the_$supplier")
- (object Attribute
- tool "cg"
- name "GenerateDataMember"
- value TRUE)
- (object Attribute
- tool "cg"
- name "DataMemberName"
- value "$relationship")
- (object Attribute
- tool "cg"
- name "DataMemberVisibility"
- value ("DataMemberVisibilitySet" 14))
- (object Attribute
- tool "cg"
- name "DataMemberVisibilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Public"
- value 45)
- (object Attribute
- tool "cg"
- name "Protected"
- value 44)
- (object Attribute
- tool "cg"
- name "Private"
- value 43)
- (object Attribute
- tool "cg"
- name "Implementation"
- value 14)
- (object Attribute
- tool "cg"
- name "AtRelationshipVisibility"
- value 210)))
- (object Attribute
- tool "cg"
- name "DataMemberMutability"
- value ("DataMemberMutabilitySet" 0))
- (object Attribute
- tool "cg"
- name "DataMemberMutabilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Unrestricted"
- value 0)
- (object Attribute
- tool "cg"
- name "Mutable"
- value 1)
- (object Attribute
- tool "cg"
- name "Const"
- value 2)))
- (object Attribute
- tool "cg"
- name "DataMemberIsVolatile"
- value FALSE)
- (object Attribute
- tool "cg"
- name "DataMemberFieldSize"
- value "")
- (object Attribute
- tool "cg"
- name "InitialValue"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "GenerateGetOperation"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GenerateSetOperation"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GetName"
- value "get_$relationship")
- (object Attribute
- tool "cg"
- name "SetName"
- value "set_$relationship")
- (object Attribute
- tool "cg"
- name "GetSetKinds"
- value ("GetSetKindsSet" 200))
- (object Attribute
- tool "cg"
- name "GetSetKindsSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Common"
- value 200)
- (object Attribute
- tool "cg"
- name "Virtual"
- value 201)
- (object Attribute
- tool "cg"
- name "Abstract"
- value 202)
- (object Attribute
- tool "cg"
- name "Static"
- value 203)
- (object Attribute
- tool "cg"
- name "Friend"
- value 204)))
- (object Attribute
- tool "cg"
- name "ContainerClass"
- value "")
- (object Attribute
- tool "cg"
- name "SelectorName"
- value "")
- (object Attribute
- tool "cg"
- name "SelectorType"
- value "")
- (object Attribute
- tool "cg"
- name "GetIsConst"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GetResultIsConst"
- value ("GetResultIsConstSet" 2))
- (object Attribute
- tool "cg"
- name "GetResultIsConstSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "False"
- value 0)
- (object Attribute
- tool "cg"
- name "True"
- value 1)
- (object Attribute
- tool "cg"
- name "Same_As_Function"
- value 2)))
- (object Attribute
- tool "cg"
- name "GetSetByReference"
- value FALSE)
- (object Attribute
- tool "cg"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "cg"
- name "SetReturnsValue"
- value FALSE)
- (object Attribute
- tool "cg"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "cg"
- name "ForwardReferenceOnly"
- value FALSE)
- (object Attribute
- tool "cg"
- name "HasRelTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Array"
- value 24)
- (object Attribute
- tool "cg"
- name "Sequence"
- value 47)))))
- (object Attribute
- tool "cg"
- name "default__Association"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "NameIfUnlabeled"
- value "the_$targetClass")))
- (object Attribute
- tool "cg"
- name "default__Inherit"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "InstanceArguments"
- value "")))
- (object Attribute
- tool "cg"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "CodeName"
- value "")
- (object Attribute
- tool "cg"
- name "ForwardReferenceOnly"
- value FALSE)
- (object Attribute
- tool "cg"
- name "NameIfUnlabeled"
- value "the_$targetClass")
- (object Attribute
- tool "cg"
- name "GenerateDataMember"
- value TRUE)
- (object Attribute
- tool "cg"
- name "DataMemberName"
- value "$target")
- (object Attribute
- tool "cg"
- name "DataMemberVisibility"
- value ("DataMemberVisibilitySet" 14))
- (object Attribute
- tool "cg"
- name "DataMemberVisibilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Public"
- value 45)
- (object Attribute
- tool "cg"
- name "Protected"
- value 44)
- (object Attribute
- tool "cg"
- name "Private"
- value 43)
- (object Attribute
- tool "cg"
- name "Implementation"
- value 14)
- (object Attribute
- tool "cg"
- name "AtRelationshipVisibility"
- value 210)))
- (object Attribute
- tool "cg"
- name "DataMemberMutability"
- value ("DataMemberMutabilitySet" 0))
- (object Attribute
- tool "cg"
- name "DataMemberMutabilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Unrestricted"
- value 0)
- (object Attribute
- tool "cg"
- name "Mutable"
- value 1)
- (object Attribute
- tool "cg"
- name "Const"
- value 2)))
- (object Attribute
- tool "cg"
- name "DataMemberIsVolatile"
- value FALSE)
- (object Attribute
- tool "cg"
- name "DataMemberFieldSize"
- value "")
- (object Attribute
- tool "cg"
- name "InitialValue"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "ContainerClass"
- value "")
- (object Attribute
- tool "cg"
- name "ContainerGet"
- value "$data.get($keys)")
- (object Attribute
- tool "cg"
- name "ContainerSet"
- value "$data.set($keys,$value)")
- (object Attribute
- tool "cg"
- name "QualifiedContainer"
- value "")
- (object Attribute
- tool "cg"
- name "AssocClassContainer"
- value "$supplier *")
- (object Attribute
- tool "cg"
- name "AssocClassInitialValue"
- value (value Text ""))
- (object Attribute
- tool "cg"
- name "GetSetKinds"
- value ("GetSetKindsSet" 200))
- (object Attribute
- tool "cg"
- name "GetSetKindsSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Common"
- value 200)
- (object Attribute
- tool "cg"
- name "Virtual"
- value 201)
- (object Attribute
- tool "cg"
- name "Abstract"
- value 202)
- (object Attribute
- tool "cg"
- name "Static"
- value 203)
- (object Attribute
- tool "cg"
- name "Friend"
- value 204)))
- (object Attribute
- tool "cg"
- name "GetSetByReference"
- value FALSE)
- (object Attribute
- tool "cg"
- name "GenerateGetOperation"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GetName"
- value "get_$target")
- (object Attribute
- tool "cg"
- name "GetIsConst"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GetResultIsConst"
- value ("GetResultIsConstSet" 2))
- (object Attribute
- tool "cg"
- name "GetResultIsConstSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "False"
- value 0)
- (object Attribute
- tool "cg"
- name "True"
- value 1)
- (object Attribute
- tool "cg"
- name "Same_As_Function"
- value 2)))
- (object Attribute
- tool "cg"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GenerateSetOperation"
- value TRUE)
- (object Attribute
- tool "cg"
- name "SetName"
- value "set_$target")
- (object Attribute
- tool "cg"
- name "SetReturnsValue"
- value FALSE)
- (object Attribute
- tool "cg"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "cg"
- name "QualifiedGetSetByReference"
- value ("QualifiedGetSetByReferenceSet" 2))
- (object Attribute
- tool "cg"
- name "QualifiedGetSetByReferenceSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "False"
- value 0)
- (object Attribute
- tool "cg"
- name "True"
- value 1)
- (object Attribute
- tool "cg"
- name "Same_As_GetSetByReference"
- value 2)))
- (object Attribute
- tool "cg"
- name "GenerateQualifiedGetOperation"
- value TRUE)
- (object Attribute
- tool "cg"
- name "QualifiedGetName"
- value "get_$target")
- (object Attribute
- tool "cg"
- name "QualifiedGetIsConst"
- value TRUE)
- (object Attribute
- tool "cg"
- name "QualifiedGetResultIsConst"
- value ("GetResultIsConstSet" 2))
- (object Attribute
- tool "cg"
- name "InlineQualifiedGet"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GenerateQualifiedSetOperation"
- value TRUE)
- (object Attribute
- tool "cg"
- name "QualifiedSetName"
- value "set_$target")
- (object Attribute
- tool "cg"
- name "QualifiedSetReturnsValue"
- value FALSE)
- (object Attribute
- tool "cg"
- name "InlineQualifiedSet"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GenerateAssocClassDataMember"
- value TRUE)
- (object Attribute
- tool "cg"
- name "AssocClassDataMemberName"
- value "$target")
- (object Attribute
- tool "cg"
- name "AssocClassDataMemberVisibility"
- value ("DataMemberVisibilitySet" 14))
- (object Attribute
- tool "cg"
- name "DataMemberVisibilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Public"
- value 45)
- (object Attribute
- tool "cg"
- name "Protected"
- value 44)
- (object Attribute
- tool "cg"
- name "Private"
- value 43)
- (object Attribute
- tool "cg"
- name "Implementation"
- value 14)
- (object Attribute
- tool "cg"
- name "AtRelationshipVisibility"
- value 210)))
- (object Attribute
- tool "cg"
- name "AssocClassDataMemberMutability"
- value ("DataMemberMutabilitySet" 0))
- (object Attribute
- tool "cg"
- name "DataMemberMutabilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Unrestricted"
- value 0)
- (object Attribute
- tool "cg"
- name "Mutable"
- value 1)
- (object Attribute
- tool "cg"
- name "Const"
- value 2)))
- (object Attribute
- tool "cg"
- name "AssocClassDataMemberIsVolatile"
- value FALSE)
- (object Attribute
- tool "cg"
- name "AssocClassGetSetKinds"
- value ("GetSetKindsSet" 200))
- (object Attribute
- tool "cg"
- name "GenerateAssocClassGetOperation"
- value TRUE)
- (object Attribute
- tool "cg"
- name "AssocClassGetName"
- value "get_$target")
- (object Attribute
- tool "cg"
- name "AssocClassGetIsConst"
- value TRUE)
- (object Attribute
- tool "cg"
- name "AssocClassGetResultIsConst"
- value ("GetResultIsConstSet" 2))
- (object Attribute
- tool "cg"
- name "InlineAssocClassGet"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GenerateAssocClassSetOperation"
- value TRUE)
- (object Attribute
- tool "cg"
- name "AssocClassSetName"
- value "set_$target")
- (object Attribute
- tool "cg"
- name "AssocClassSetReturnsValue"
- value FALSE)
- (object Attribute
- tool "cg"
- name "InlineAssocClassSet"
- value TRUE)
- (object Attribute
- tool "cg"
- name "AssocClassForwardReferenceOnly"
- value TRUE)
- (object Attribute
- tool "cg"
- name "AssocTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Array"
- value 24)
- (object Attribute
- tool "cg"
- name "Sequence"
- value 47)))))
- (object Attribute
- tool "cg"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "CodeName"
- value "")
- (object Attribute
- tool "cg"
- name "GenerateDataMember"
- value TRUE)
- (object Attribute
- tool "cg"
- name "DataMemberName"
- value "$attribute")
- (object Attribute
- tool "cg"
- name "DataMemberVisibility"
- value ("DataMemberVisibilitySet" 14))
- (object Attribute
- tool "cg"
- name "DataMemberVisibilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Public"
- value 45)
- (object Attribute
- tool "cg"
- name "Protected"
- value 44)
- (object Attribute
- tool "cg"
- name "Private"
- value 43)
- (object Attribute
- tool "cg"
- name "Implementation"
- value 14)
- (object Attribute
- tool "cg"
- name "AtAttributeVisibility"
- value 211)))
- (object Attribute
- tool "cg"
- name "DataMemberMutability"
- value ("DataMemberMutabilitySet" 0))
- (object Attribute
- tool "cg"
- name "DataMemberMutabilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Unrestricted"
- value 0)
- (object Attribute
- tool "cg"
- name "Mutable"
- value 1)
- (object Attribute
- tool "cg"
- name "Const"
- value 2)))
- (object Attribute
- tool "cg"
- name "DataMemberIsVolatile"
- value FALSE)
- (object Attribute
- tool "cg"
- name "DataMemberFieldSize"
- value "")
- (object Attribute
- tool "cg"
- name "GenerateGetOperation"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GenerateSetOperation"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GetName"
- value "get_$attribute")
- (object Attribute
- tool "cg"
- name "SetName"
- value "set_$attribute")
- (object Attribute
- tool "cg"
- name "GetSetKinds"
- value ("GetSetKindsSet" 200))
- (object Attribute
- tool "cg"
- name "GetSetKindsSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Common"
- value 200)
- (object Attribute
- tool "cg"
- name "Virtual"
- value 201)
- (object Attribute
- tool "cg"
- name "Abstract"
- value 202)
- (object Attribute
- tool "cg"
- name "Static"
- value 203)
- (object Attribute
- tool "cg"
- name "Friend"
- value 204)))
- (object Attribute
- tool "cg"
- name "GetIsConst"
- value TRUE)
- (object Attribute
- tool "cg"
- name "GetResultIsConst"
- value ("GetResultIsConstSet" 2))
- (object Attribute
- tool "cg"
- name "GetResultIsConstSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "False"
- value 0)
- (object Attribute
- tool "cg"
- name "True"
- value 1)
- (object Attribute
- tool "cg"
- name "Same_As_Function"
- value 2)))
- (object Attribute
- tool "cg"
- name "GetSetByReference"
- value FALSE)
- (object Attribute
- tool "cg"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "cg"
- name "SetReturnsValue"
- value FALSE)
- (object Attribute
- tool "cg"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "cg"
- name "CCRegion"
- value "")))
- (object Attribute
- tool "cg"
- name "default__Uses"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "ForwardReferenceOnly"
- value FALSE)
- (object Attribute
- tool "cg"
- name "BodyReferenceOnly"
- value FALSE)))
- (object Attribute
- tool "cg"
- name "default__Subsystem"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "Directory"
- value "AUTO GENERATE")
- (object Attribute
- tool "cg"
- name "DirectoryIsOnSearchList"
- value FALSE)
- (object Attribute
- tool "cg"
- name "PrecompiledHeader"
- value "")))
- (object Attribute
- tool "cg"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "IsNamespace"
- value FALSE)
- (object Attribute
- tool "cg"
- name "Indent"
- value 2)
- (object Attribute
- tool "cg"
- name "CodeName"
- value "")
- (object Attribute
- tool "cg"
- name "GenerateEmptyRegions"
- value ("GenerateEmptyRegionSet" 3))
- (object Attribute
- tool "cg"
- name "GenerateEmptyRegionSet"
- value (list Attribute_Set
- (object Attribute
- tool "cg"
- name "None"
- value 0)
- (object Attribute
- tool "cg"
- name "Preserved"
- value 1)
- (object Attribute
- tool "cg"
- name "Unpreserved"
- value 2)
- (object Attribute
- tool "cg"
- name "All"
- value 3)))))
- (object Attribute
- tool "MSVC"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "MSVC"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Version"
- value "5.0")))
- (object Attribute
- tool "MSVC"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Type"
- value ("MSVCClassTypeSet" 0))
- (object Attribute
- tool "MSVC"
- name "MSVCClassTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Normal"
- value 0)
- (object Attribute
- tool "MSVC"
- name "Interface_Part"
- value 1)
- (object Attribute
- tool "MSVC"
- name "Connection_Part"
- value 2)
- (object Attribute
- tool "MSVC"
- name "Class_Factory"
- value 3)))
- (object Attribute
- tool "MSVC"
- name "CObjectFunctionality"
- value ("CObjectFunctionalitySet" 0))
- (object Attribute
- tool "MSVC"
- name "CObjectFunctionalitySet"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "None"
- value 0)
- (object Attribute
- tool "MSVC"
- name "Dynamic"
- value 1)
- (object Attribute
- tool "MSVC"
- name "Dyncreate"
- value 2)
- (object Attribute
- tool "MSVC"
- name "Serial"
- value 3)))
- (object Attribute
- tool "MSVC"
- name "GenerateOverrideGroup"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "GenerateDataGroup"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "AFX_DATA_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateFieldGroup"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "AFX_FIELD_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateMessageGroup"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "GenerateMessageMap"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "AFX_MSG_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "MESSAGE_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "OLEFactory"
- value ("OLEFactorySet" 0))
- (object Attribute
- tool "MSVC"
- name "OLEFactorySet"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "None"
- value 0)
- (object Attribute
- tool "MSVC"
- name "Built_in"
- value 1)
- (object Attribute
- tool "MSVC"
- name "Simple"
- value 2)
- (object Attribute
- tool "MSVC"
- name "Licensed"
- value 3)))
- (object Attribute
- tool "MSVC"
- name "OLEName"
- value "")
- (object Attribute
- tool "MSVC"
- name "OLEClassID"
- value "")
- (object Attribute
- tool "MSVC"
- name "GenerateOLECtlType"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "OLECtlType"
- value "")
- (object Attribute
- tool "MSVC"
- name "GenerateOLETypeLib"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "OLETypeLibID"
- value "")
- (object Attribute
- tool "MSVC"
- name "OLETypeLibMajor"
- value "")
- (object Attribute
- tool "MSVC"
- name "OLETypeLibMinor"
- value "")
- (object Attribute
- tool "MSVC"
- name "GeneratePropPageIDs"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "OLEPropPageIDs"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateDispatchMap"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "AFX_DISPATCH_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "AFX_DISPATCH_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "DISPATCH_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "StockProperties"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "StockFunctions"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "DispatchDefValue"
- value "")
- (object Attribute
- tool "MSVC"
- name "GenerateDispIdEnum"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "AFX_DISP_ID_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateInterfaceMap"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "INTERFACE_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "InitInterface"
- value "")
- (object Attribute
- tool "MSVC"
- name "GenerateEventMap"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "AFX_EVENT_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "AFX_EVENT_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "EVENT_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "StockEvents"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateEventSinkMap"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "AFX_EVENTSINK_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "AFX_EVENTSINK_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "EVENTSINK_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "PropNotifySinks"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateConnectionMap"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "CONNECTION_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "ConnectionPointIID"
- value "")
- (object Attribute
- tool "MSVC"
- name "InheritanceType"
- value "")
- (object Attribute
- tool "MSVC"
- name "DeclSpec"
- value "")
- (object Attribute
- tool "MSVC"
- name "OLECommands"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "MFCDeclares"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "MFCImplements"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "ATL_Declares"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateCOMMap"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "COM_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateConnectionPointMap"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "CONNECTION_POINT_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateMsgMap"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "MSG_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GeneratePropertyMap"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "PROPERTY_MAP_Entries"
- value (value Text ""))))
- (object Attribute
- tool "MSVC"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Type"
- value ("MSVCOperationTypeSet" 0))
- (object Attribute
- tool "MSVC"
- name "MSVCOperationTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Normal"
- value 0)
- (object Attribute
- tool "MSVC"
- name "Virtual_Override"
- value 1)
- (object Attribute
- tool "MSVC"
- name "Message_Handler"
- value 2)
- (object Attribute
- tool "MSVC"
- name "Dispatch_Handler"
- value 3)
- (object Attribute
- tool "MSVC"
- name "Event_Firing_Function"
- value 4)
- (object Attribute
- tool "MSVC"
- name "Event_Sink_Handler"
- value 5)
- (object Attribute
- tool "MSVC"
- name "Std_OLE_Method"
- value 6)
- (object Attribute
- tool "MSVC"
- name "Command_Parser"
- value 7)
- (object Attribute
- tool "MSVC"
- name "Property_Get_Function"
- value 8)
- (object Attribute
- tool "MSVC"
- name "Property_Set_Function"
- value 9)
- (object Attribute
- tool "MSVC"
- name "Property_Notify_Function"
- value 10)
- (object Attribute
- tool "MSVC"
- name "Macro_Generated_Function"
- value 11)))
- (object Attribute
- tool "MSVC"
- name "AFX_MSG_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "MESSAGE_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "AFX_DISPATCH_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "DISPATCH_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "AFX_EVENT_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "EVENT_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "AFX_EVENTSINK_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "EVENTSINK_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "CallType"
- value "")
- (object Attribute
- tool "MSVC"
- name "DeclSpec"
- value "")
- (object Attribute
- tool "MSVC"
- name "BodyImage"
- value (value Text ""))))
- (object Attribute
- tool "MSVC"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Type"
- value ("MSVCAttributeTypeSet" 0))
- (object Attribute
- tool "MSVC"
- name "MSVCAttributeTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Normal"
- value 0)
- (object Attribute
- tool "MSVC"
- name "Member_Property"
- value 1)
- (object Attribute
- tool "MSVC"
- name "Get_Set_Property"
- value 2)
- (object Attribute
- tool "MSVC"
- name "Dialog_Data"
- value 3)
- (object Attribute
- tool "MSVC"
- name "Field_Data"
- value 4)
- (object Attribute
- tool "MSVC"
- name "Stock_Property"
- value 5)))
- (object Attribute
- tool "MSVC"
- name "AFX_DISPATCH_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "DISPATCH_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "DeclSpec"
- value "")
- (object Attribute
- tool "MSVC"
- name "PointerBase"
- value "")
- (object Attribute
- tool "MSVC"
- name "CallType"
- value "")
- (object Attribute
- tool "MSVC"
- name "StockPropertyImplementation"
- value "")))
- (object Attribute
- tool "MSVC"
- name "default__Has"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Type"
- value ("MSVCAttributeTypeSet" 0))
- (object Attribute
- tool "MSVC"
- name "MSVCAttributeTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Normal"
- value 0)
- (object Attribute
- tool "MSVC"
- name "Member_Property"
- value 1)
- (object Attribute
- tool "MSVC"
- name "Get_Set_Property"
- value 2)
- (object Attribute
- tool "MSVC"
- name "Dialog_Data"
- value 3)
- (object Attribute
- tool "MSVC"
- name "Field_Data"
- value 4)
- (object Attribute
- tool "MSVC"
- name "Stock_Property"
- value 5)))
- (object Attribute
- tool "MSVC"
- name "AFX_DISPATCH_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "DISPATCH_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "DeclSpec"
- value "")
- (object Attribute
- tool "MSVC"
- name "PointerBase"
- value "")
- (object Attribute
- tool "MSVC"
- name "CallType"
- value "")
- (object Attribute
- tool "MSVC"
- name "StockPropertyImplementation"
- value "")))
- (object Attribute
- tool "MSVC"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Type"
- value ("MSVCAttributeTypeSet" 0))
- (object Attribute
- tool "MSVC"
- name "MSVCAttributeTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "Normal"
- value 0)
- (object Attribute
- tool "MSVC"
- name "Member_Property"
- value 1)
- (object Attribute
- tool "MSVC"
- name "Get_Set_Property"
- value 2)
- (object Attribute
- tool "MSVC"
- name "Dialog_Data"
- value 3)
- (object Attribute
- tool "MSVC"
- name "Field_Data"
- value 4)
- (object Attribute
- tool "MSVC"
- name "Stock_Property"
- value 5)))
- (object Attribute
- tool "MSVC"
- name "AFX_DISPATCH_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "DISPATCH_MAP_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "DeclSpec"
- value "")
- (object Attribute
- tool "MSVC"
- name "PointerBase"
- value "")
- (object Attribute
- tool "MSVC"
- name "CallType"
- value "")
- (object Attribute
- tool "MSVC"
- name "StockPropertyImplementation"
- value "")))
- (object Attribute
- tool "MSVC"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "GenerateIncludesGroup"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "AFX_INCLUDES_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateInsertLocation"
- value FALSE)))
- (object Attribute
- tool "MSVC"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "MSVC"
- name "GenerateIncludesGroup"
- value FALSE)
- (object Attribute
- tool "MSVC"
- name "AFX_INCLUDES_Entries"
- value (value Text ""))
- (object Attribute
- tool "MSVC"
- name "GenerateInsertLocation"
- value FALSE)))
- (object Attribute
- tool "cg"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Rose Model Integrator"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Rose Web Publisher"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "COM"
- name "propertyId"
- value "783606378")
- (object Attribute
- tool "COM"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "TypeKinds"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "enum"
- value 100)
- (object Attribute
- tool "COM"
- name "record"
- value 101)
- (object Attribute
- tool "COM"
- name "module"
- value 102)
- (object Attribute
- tool "COM"
- name "interface"
- value 103)
- (object Attribute
- tool "COM"
- name "dispinterface"
- value 104)
- (object Attribute
- tool "COM"
- name "coclass"
- value 105)
- (object Attribute
- tool "COM"
- name "alias"
- value 106)
- (object Attribute
- tool "COM"
- name "union"
- value 107)
- (object Attribute
- tool "COM"
- name "max"
- value 108)
- (object Attribute
- tool "COM"
- name "(none)"
- value 109)))
- (object Attribute
- tool "COM"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "COM"
- name "kind"
- value ("TypeKinds" 109))
- (object Attribute
- tool "COM"
- name "uuid"
- value "")
- (object Attribute
- tool "COM"
- name "version"
- value "")
- (object Attribute
- tool "COM"
- name "helpstring"
- value "")
- (object Attribute
- tool "COM"
- name "helpcontext"
- value "")
- (object Attribute
- tool "COM"
- name "attributes"
- value "")
- (object Attribute
- tool "COM"
- name "dllname"
- value "")
- (object Attribute
- tool "COM"
- name "alias"
- value "")))
- (object Attribute
- tool "COM"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "COM"
- name "id"
- value "")
- (object Attribute
- tool "COM"
- name "helpstring"
- value "")
- (object Attribute
- tool "COM"
- name "attributes"
- value "")))
- (object Attribute
- tool "COM"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "COM"
- name "id"
- value "")
- (object Attribute
- tool "COM"
- name "helpstring"
- value "")
- (object Attribute
- tool "COM"
- name "attributes"
- value "")))
- (object Attribute
- tool "COM"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "COM"
- name "filename"
- value "")
- (object Attribute
- tool "COM"
- name "library"
- value "")
- (object Attribute
- tool "COM"
- name "uuid"
- value "")
- (object Attribute
- tool "COM"
- name "version"
- value "")
- (object Attribute
- tool "COM"
- name "helpstring"
- value "")
- (object Attribute
- tool "COM"
- name "helpfile"
- value "")
- (object Attribute
- tool "COM"
- name "helpcontext"
- value "")
- (object Attribute
- tool "COM"
- name "lcid"
- value "")
- (object Attribute
- tool "COM"
- name "attributes"
- value "")))
- (object Attribute
- tool "COM"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "attributes"
- value "")))
- (object Attribute
- tool "COM"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Version Control"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "propertyId"
- value "783606378")
- (object Attribute
- tool "Visual Basic"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "UpdateCode"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "UpdateModel"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "InstancingSet"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "Private"
- value 221)
- (object Attribute
- tool "Visual Basic"
- name "PublicNotCreatable"
- value 213)
- (object Attribute
- tool "Visual Basic"
- name "SingleUse"
- value 214)
- (object Attribute
- tool "Visual Basic"
- name "GlobalSingleUse"
- value 215)
- (object Attribute
- tool "Visual Basic"
- name "MultiUse"
- value 219)
- (object Attribute
- tool "Visual Basic"
- name "GlobalMultiUse"
- value 220)))
- (object Attribute
- tool "Visual Basic"
- name "BaseSet"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "(none)"
- value 222)
- (object Attribute
- tool "Visual Basic"
- name "0"
- value 223)
- (object Attribute
- tool "Visual Basic"
- name "1"
- value 224)))
- (object Attribute
- tool "Visual Basic"
- name "OptionBase"
- value ("BaseSet" 222))
- (object Attribute
- tool "Visual Basic"
- name "OptionExplicit"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "OptionCompare"
- value ("CompareSet" 202))
- (object Attribute
- tool "Visual Basic"
- name "Instancing"
- value ("InstancingSet" 219))
- (object Attribute
- tool "Visual Basic"
- name "CompareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "(none)"
- value 202)
- (object Attribute
- tool "Visual Basic"
- name "Binary"
- value 203)
- (object Attribute
- tool "Visual Basic"
- name "Text"
- value 204)))))
- (object Attribute
- tool "Visual Basic"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "LibraryName"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "AliasName"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "IsStatic"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "ProcedureID"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "ReplaceExistingBody"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "DefaultBody"
- value (value Text ""))))
- (object Attribute
- tool "Visual Basic"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "New"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "WithEvents"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "ProcedureID"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "PropertyName"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "Subscript"
- value "")))
- (object Attribute
- tool "Visual Basic"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "UpdateCode"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "New"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "WithEvents"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "FullName"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "ProcedureID"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "PropertyName"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "Subscript"
- value "")))
- (object Attribute
- tool "Visual Basic"
- name "default__Inherit"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "ImplementsDelegation"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "FullName"
- value FALSE)))
- (object Attribute
- tool "Visual Basic"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "ByVal"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "ByRef"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "Optional"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "ParamArray"
- value FALSE)))
- (object Attribute
- tool "Visual Basic"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "ProjectFile"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "UpdateCode"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "UpdateModel"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "ImportReferences"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "QuickImport"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "ImportBinary"
- value FALSE)))
- (object Attribute
- tool "Visual Basic"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "VisualStudio"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Web Modeler"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "XML_DTD"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "XML_DTD"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "XML_DTD"
- name "Editor"
- value ("EditorType" 100))
- (object Attribute
- tool "XML_DTD"
- name "StopOnError"
- value TRUE)
- (object Attribute
- tool "XML_DTD"
- name "EditorType"
- value (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "BuiltIn"
- value 100)
- (object Attribute
- tool "XML_DTD"
- name "WindowsShell"
- value 101)))))
- (object Attribute
- tool "XML_DTD"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "Entity_SystemID"
- value "")
- (object Attribute
- tool "XML_DTD"
- name "Entity_PublicID"
- value "")
- (object Attribute
- tool "XML_DTD"
- name "NotationValue"
- value "")
- (object Attribute
- tool "XML_DTD"
- name "InternalValue"
- value "")
- (object Attribute
- tool "XML_DTD"
- name "ParameterEntity"
- value FALSE)
- (object Attribute
- tool "XML_DTD"
- name "ExternalEntity"
- value FALSE)
- (object Attribute
- tool "XML_DTD"
- name "Notation_SystemID"
- value "")
- (object Attribute
- tool "XML_DTD"
- name "Notation_PublicID"
- value "")))
- (object Attribute
- tool "XML_DTD"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "DefaultDeclType"
- value "")))
- (object Attribute
- tool "XML_DTD"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "Assign All"
- value FALSE)
- (object Attribute
- tool "XML_DTD"
- name "ComponentPath"
- value "")))
- (object Attribute
- tool "XML_DTD"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "ClearCase"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "RequisitePro"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "SoDA"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "TopLink"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "RevEngRootDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "RootPackage"
- value "C++ Reverse Engineered")
- (object Attribute
- tool "Cplusplus"
- name "RevEngDirectoriesAsPackages"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "HeaderFileExtension"
- value ".h")
- (object Attribute
- tool "Cplusplus"
- name "ImplementationFileExtension"
- value ".cpp")
- (object Attribute
- tool "Cplusplus"
- name "NewHeaderFileDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "NewImplementationFileDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "FileCapitalization"
- value ("FileCapitalizationSet" 0))
- (object Attribute
- tool "Cplusplus"
- name "CodeGenExtraDirectories"
- value ("CodeGenExtraDirectoriesSet" 0))
- (object Attribute
- tool "Cplusplus"
- name "StripClassPrefix"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "UseTabs"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "TabWidth"
- value 8)
- (object Attribute
- tool "Cplusplus"
- name "IndentWidth"
- value 4)
- (object Attribute
- tool "Cplusplus"
- name "AccessIndentation"
- value -2)
- (object Attribute
- tool "Cplusplus"
- name "ModelIdCommentRules"
- value ("ModelIdCommentRulesSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "PageWidth"
- value 80)
- (object Attribute
- tool "Cplusplus"
- name "ClassMemberOrder"
- value ("MemberOrderSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "OneParameterPerLine"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "NamespaceBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "ClassBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "FunctionBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "Copyright"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "InitialHeaderIncludes"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "InitialBodyIncludes"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "CodeGenExtraDirectoriesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "None"
- value 0)
- (object Attribute
- tool "Cplusplus"
- name "Namespaces"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Packages"
- value 2)))
- (object Attribute
- tool "Cplusplus"
- name "FileCapitalizationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Same as model"
- value 0)
- (object Attribute
- tool "Cplusplus"
- name "Lower case"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Upper case"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Lower case with underscores"
- value 3)))
- (object Attribute
- tool "Cplusplus"
- name "BraceStyleSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "B1"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "B2"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "B3"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "B4"
- value 4)
- (object Attribute
- tool "Cplusplus"
- name "B5"
- value 5)))
- (object Attribute
- tool "Cplusplus"
- name "MemberOrderSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Public First"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Private First"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Order by kind"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "Unordered"
- value 4)))
- (object Attribute
- tool "Cplusplus"
- name "ModelIdCommentRulesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Code generation only"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Code generation and reverse engineering"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Never generate model IDs"
- value 3)))
- (object Attribute
- tool "Cplusplus"
- name "CreateBackupFiles"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "CommentRules"
- value ("CommentRulesSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "CommentRulesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Always synchronize"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Code generation only"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Reverse engineering only"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "Never synchronize"
- value 4)))))
- (object Attribute
- tool "Ada83"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Mode"
- value ("ParameterModeSet" 232))
- (object Attribute
- tool "Ada83"
- name "ParameterModeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Default"
- value 232)
- (object Attribute
- tool "Ada83"
- name "In"
- value 204)
- (object Attribute
- tool "Ada83"
- name "Out"
- value 205)
- (object Attribute
- tool "Ada83"
- name "InOut"
- value 203)))
- (object Attribute
- tool "Ada83"
- name "GenericFormal"
- value ("GenericFormalSet" 1))
- (object Attribute
- tool "Ada83"
- name "AssociationMapping"
- value ("AssociationMappingSet" 1))
- (object Attribute
- tool "Ada83"
- name "GenericFormalSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Default"
- value 1)
- (object Attribute
- tool "Ada83"
- name "Object"
- value 2)
- (object Attribute
- tool "Ada83"
- name "Type"
- value 3)
- (object Attribute
- tool "Ada83"
- name "Procedure"
- value 4)
- (object Attribute
- tool "Ada83"
- name "Function"
- value 5)))
- (object Attribute
- tool "Ada83"
- name "AssociationMappingSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Name"
- value 1)
- (object Attribute
- tool "Ada83"
- name "Type"
- value 2)))))
- (object Attribute
- tool "Ada95"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Mode"
- value ("ParameterModeSet" 232))
- (object Attribute
- tool "Ada95"
- name "ParameterModeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Default"
- value 232)
- (object Attribute
- tool "Ada95"
- name "In"
- value 204)
- (object Attribute
- tool "Ada95"
- name "Out"
- value 205)
- (object Attribute
- tool "Ada95"
- name "InOut"
- value 203)
- (object Attribute
- tool "Ada95"
- name "Access"
- value 220)))
- (object Attribute
- tool "Ada95"
- name "GenericFormal"
- value ("GenericFormalSet" 1))
- (object Attribute
- tool "Ada95"
- name "AssociationMapping"
- value ("AssociationMappingSet" 1))
- (object Attribute
- tool "Ada95"
- name "GenericFormalSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Default"
- value 1)
- (object Attribute
- tool "Ada95"
- name "Object"
- value 2)
- (object Attribute
- tool "Ada95"
- name "Type"
- value 3)
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 4)
- (object Attribute
- tool "Ada95"
- name "Function"
- value 5)
- (object Attribute
- tool "Ada95"
- name "Package"
- value 6)))
- (object Attribute
- tool "Ada95"
- name "AssociationMappingSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Name"
- value 1)
- (object Attribute
- tool "Ada95"
- name "Type"
- value 2)))))
- (object Attribute
- tool "Deploy"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "default__Uses"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "BodyReferenceOnly"
- value FALSE)))
- (object Attribute
- tool "CORBA"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "Direction"
- value ("ParamDirectionTypeSet" 102))
- (object Attribute
- tool "CORBA"
- name "ParamDirectionTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "in"
- value 102)
- (object Attribute
- tool "CORBA"
- name "inout"
- value 103)
- (object Attribute
- tool "CORBA"
- name "out"
- value 104))))))
- quid "3A0B2474027F"))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/commonArchiveCore.cat b/plugins/org.eclipse.jst.j2ee.core/rose/commonArchiveCore.cat deleted file mode 100644 index 45e9d1576..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/commonArchiveCore.cat +++ /dev/null @@ -1,4616 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Class_Category "commonArchiveCore"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee"))
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Commonarchive"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "commonarchive.xmi")))
- quid "3A0DB68B0046"
- visible_categories (list visibility_relationship_list
- (object Visibility_Relationship
- quid "3F2E8236025A"
- supplier "Logical View::ejbext"
- quidu "39AA86660190")
- (object Visibility_Relationship
- quid "3F2E8236025B"
- supplier "Logical View::webappext"
- quidu "39B534FD024C")
- (object Visibility_Relationship
- quid "3F2E8236025C"
- supplier "Logical View::ejbbnd"
- quidu "39B960FC03CA")
- (object Visibility_Relationship
- quid "3F2E82360264"
- supplier "Logical View::webappbnd"
- quidu "39B961060107")
- (object Visibility_Relationship
- quid "3F2E82360265"
- supplier "Logical View::clientbnd"
- quidu "39B9614F031F")
- (object Visibility_Relationship
- quid "3F2E82360266"
- supplier "Logical View::applicationext"
- quidu "3A22E6080303")
- (object Visibility_Relationship
- quid "3F2E82360267"
- supplier "Logical View::applicationbnd"
- quidu "39B9611502A4")
- (object Visibility_Relationship
- quid "3F2E82360268"
- supplier "Logical View::j2cbnd"
- quidu "39B9632E038C"))
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "File"
- quid "3A0DB75B00E5"
- class_attributes (list class_attribute_list
- (object ClassAttribute "URI"
- quid "3A1012D900AA"
- type "String"
- exportControl "Public")
- (object ClassAttribute "lastModified"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3A1013300163"
- type "long"
- exportControl "Public")
- (object ClassAttribute "size"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3A101339008A"
- type "long"
- exportControl "Public")
- (object ClassAttribute "directoryEntry"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3A3150640092"
- type "boolean"
- exportControl "Public")
- (object ClassAttribute "originalURI"
- attributes (list Attribute_Set)
- quid "3A423640032C"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "Archive"
- quid "3A0DB75F0177"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3A54BF5D018C"
- supplier "Logical View::commonArchiveCore::Container"
- quidu "3A54BE55016E"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "types"
- quid "3FA17B530039"
- stereotype "0...*"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "EJBJarFile"
- quid "3A0DBB250022"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3A0DC27D03BE"
- supplier "Logical View::commonArchiveCore::ModuleFile"
- quidu "3A0DC1230136"))
- language "Java")
- (object Class "WARFile"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3A0DBB49018C"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3A0DC29003E4"
- supplier "Logical View::commonArchiveCore::ModuleFile"
- quidu "3A0DC1230136"))
- language "Java")
- (object Class "EARFile"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3A0DBB79007D"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3A36452000DE"
- supplier "Logical View::commonArchiveCore::ModuleFile"
- quidu "3A0DC1230136"))
- language "Java")
- (object Class "ApplicationClientFile"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3A0DBB810128"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3A0DC2790214"
- supplier "Logical View::commonArchiveCore::ModuleFile"
- quidu "3A0DC1230136"))
- language "Java")
- (object Class "ModuleFile"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3A0DC1230136"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3A0DC2CE00AE"
- supplier "Logical View::commonArchiveCore::Archive"
- quidu "3A0DB75F0177"))
- language "Java"
- abstract TRUE)
- (object Class "Container"
- quid "3A54BE55016E"
- stereotype "abstract"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3A54C16801FC"
- supplier "Logical View::commonArchiveCore::File"
- quidu "3A0DB75B00E5"))
- abstract TRUE)
- (object Class "ReadOnlyDirectory"
- quid "3A54BEB0004D"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3A54BF750295"
- supplier "Logical View::commonArchiveCore::Container"
- quidu "3A54BE55016E")))
- (object Class "RARFile"
- quid "3A6DEBCF03C5"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3A6DEBE701CB"
- supplier "Logical View::commonArchiveCore::ModuleFile"
- quidu "3A0DC1230136")))
- (object Class "ModuleRef"
- quid "3C711E300115"
- abstract TRUE)
- (object Class "EJBModuleRef"
- quid "3C7125A802A5"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3C712A1D0165"
- supplier "Logical View::commonArchiveCore::ModuleRef"
- quidu "3C711E300115")))
- (object Class "WebModuleRef"
- quid "3C7125B10293"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3C712A2001EB"
- supplier "Logical View::commonArchiveCore::ModuleRef"
- quidu "3C711E300115")))
- (object Class "ClientModuleRef"
- quid "3C7125B90259"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3C712A23031C"
- supplier "Logical View::commonArchiveCore::ModuleRef"
- quidu "3C711E300115")))
- (object Class "ConnectorModuleRef"
- quid "3C7125C600E5"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3C712A2B025F"
- supplier "Logical View::commonArchiveCore::ModuleRef"
- quidu "3C711E300115")))
- (object Association "$UNNAMED$0"
- quid "3A0DC23C0270"
- roles (list role_list
- (object Role "/moduleFiles"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isTransient"
- value TRUE))
- quid "3A0DC23D014F"
- label "/moduleFiles"
- supplier "Logical View::commonArchiveCore::ModuleFile"
- quidu "3A0DC1230136"
- client_cardinality (value cardinality "0..n")
- is_navigable TRUE)
- (object Role "earFile"
- quid "3A0DC23D02FE"
- label "earFile"
- supplier "Logical View::commonArchiveCore::EARFile"
- quidu "3A0DBB79007D"
- client_cardinality (value cardinality "0..1"))))
- (object Association "$UNNAMED$1"
- quid "3A3A953E00A9"
- roles (list role_list
- (object Role "loadingContainer"
- quid "3A3A953F0082"
- label "loadingContainer"
- supplier "Logical View::commonArchiveCore::Container"
- quidu "3A54BE55016E"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)
- (object Role "$UNNAMED$2"
- quid "3A3A953F00AA"
- supplier "Logical View::commonArchiveCore::File"
- quidu "3A0DB75B00E5")))
- (object Association "$UNNAMED$3"
- quid "3A54BF4E0022"
- roles (list role_list
- (object Role "container"
- quid "3A54BF4E0023"
- label "container"
- supplier "Logical View::commonArchiveCore::Container"
- quidu "3A54BE55016E"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "files"
- quid "3A54BF4E0024"
- label "files"
- supplier "Logical View::commonArchiveCore::File"
- quidu "3A0DB75B00E5"
- client_cardinality (value cardinality "0..*")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$4"
- quid "3C711EF902F4"
- roles (list role_list
- (object Role "moduleFile"
- quid "3C711EFA024C"
- label "moduleFile"
- supplier "Logical View::commonArchiveCore::ModuleFile"
- quidu "3A0DC1230136"
- client_cardinality (value cardinality "1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$5"
- quid "3C711EFA024E"
- supplier "Logical View::commonArchiveCore::ModuleRef"
- quidu "3C711E300115"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$6"
- quid "3C712223019B"
- roles (list role_list
- (object Role "moduleRefs"
- quid "3C7122240246"
- label "moduleRefs"
- supplier "Logical View::commonArchiveCore::ModuleRef"
- quidu "3C711E300115"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "earFile"
- quid "3C7122240248"
- label "earFile"
- supplier "Logical View::commonArchiveCore::EARFile"
- quidu "3A0DBB79007D"
- client_cardinality (value cardinality "1")
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "$UNNAMED$7"
- quid "3F297D500278"
- roles (list role_list
- (object Role "warFile"
- quid "3F297D500279"
- label "warFile"
- supplier "Logical View::commonArchiveCore::WARFile"
- quidu "3A0DBB49018C")
- (object Role "deploymentDescriptor"
- quid "3F297D50027A"
- label "deploymentDescriptor"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)))
- (object Association "$UNNAMED$8"
- quid "3F297E2800B5"
- roles (list role_list
- (object Role "ejbJarFile"
- quid "3F297E2800B6"
- label "ejbJarFile"
- supplier "Logical View::commonArchiveCore::EJBJarFile"
- quidu "3A0DBB250022")
- (object Role "deploymentDescriptor"
- quid "3F297E2800B7"
- label "deploymentDescriptor"
- supplier "Logical View::ejb::EJBJar"
- quidu "371BC55D01E1"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)))
- (object Association "$UNNAMED$9"
- quid "3F297F6E0245"
- roles (list role_list
- (object Role "earFile"
- quid "3F297F6E0246"
- label "earFile"
- supplier "Logical View::commonArchiveCore::EARFile"
- quidu "3A0DBB79007D")
- (object Role "deploymentDescriptor"
- quid "3F297F6E0247"
- label "deploymentDescriptor"
- supplier "Logical View::application::Application"
- quidu "38C030A803B1"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)))
- (object Association "$UNNAMED$10"
- quid "3F298321035F"
- roles (list role_list
- (object Role "deploymentDescriptor"
- quid "3F2983220284"
- label "deploymentDescriptor"
- supplier "Logical View::jca::Connector"
- quidu "3C609091010F"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)
- (object Role "$UNNAMED$11"
- quid "3F2983220298"
- supplier "Logical View::commonArchiveCore::RARFile"
- quidu "3A6DEBCF03C5")))
- (object Association "$UNNAMED$12"
- quid "3F298462039D"
- roles (list role_list
- (object Role "$UNNAMED$13"
- quid "3F298462039E"
- supplier "Logical View::commonArchiveCore::ApplicationClientFile"
- quidu "3A0DBB810128")
- (object Role "deploymentDescriptor"
- quid "3F298462039F"
- label "deploymentDescriptor"
- supplier "Logical View::client::ApplicationClient"
- quidu "38C028AB009E"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)))
- (object Association "$UNNAMED$14"
- quid "430A92520127"
- roles (list role_list
- (object Role "module"
- quid "430A92530147"
- label "module"
- supplier "Logical View::application::Module"
- quidu "38C0322C0006"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)
- (object Role "$UNNAMED$15"
- quid "430A92530149"
- supplier "Logical View::commonArchiveCore::ModuleRef"
- quidu "3C711E300115")))
- (object Class_Category "looseconfig"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Looseconfig"))
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee.commonarchivecore"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "commonarchive.looseconfig.xmi")))
- quid "3C71147E033D"
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "LooseApplication"
- quid "3C56EB4E006A"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3C753DEE00EA"
- supplier "Logical View::commonArchiveCore::looseconfig::LooseArchive"
- quidu "3C56EAAF006C")))
- (object Class "LooseArchive"
- quid "3C56EAAF006C"
- operations (list Operations
- (object Operation "isModule"
- quid "3C5ABFC303DE"
- result "boolean"
- concurrency "Sequential"
- opExportControl "Public"
- uid 0))
- class_attributes (list class_attribute_list
- (object ClassAttribute "uri"
- quid "3C56EB9C01A3"
- type "String"
- exportControl "Public")
- (object ClassAttribute "binariesPath"
- quid "3C56EBA900BB"
- type "String"
- exportControl "Public")
- (object ClassAttribute "resourcesPath"
- quid "3C711DD3020B"
- type "String"
- exportControl "Public"))
- abstract TRUE)
- (object Class "LooseLibrary"
- quid "3C5AF7AC0028"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3C5AF7C2037C"
- supplier "Logical View::commonArchiveCore::looseconfig::LooseArchive"
- quidu "3C56EAAF006C")))
- (object Class "LooseModule"
- quid "3C5ABEFE0290"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3C5AC03900EE"
- supplier "Logical View::commonArchiveCore::looseconfig::LooseArchive"
- quidu "3C56EAAF006C"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "altDD"
- quid "3C5ABFFA021A"
- type "String"
- exportControl "Public")))
- (object Class "LooseConfiguration"
- quid "3C56E92C00BF")
- (object Class "LooseWARFile"
- quid "3C5AF7DB018E"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3C5AF7F5028F"
- supplier "Logical View::commonArchiveCore::looseconfig::LooseModule"
- quidu "3C5ABEFE0290")))
- (object Association "$UNNAMED$16"
- quid "3C56FDE60173"
- roles (list role_list
- (object Role "applications"
- quid "3C56FDE702DD"
- label "applications"
- supplier "Logical View::commonArchiveCore::looseconfig::LooseApplication"
- quidu "3C56EB4E006A"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$17"
- quid "3C56FDE702DF"
- supplier "Logical View::commonArchiveCore::looseconfig::LooseConfiguration"
- quidu "3C56E92C00BF"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$18"
- quid "3C56FDEF0018"
- roles (list role_list
- (object Role "looseArchives"
- quid "3C56FDF00023"
- label "looseArchives"
- supplier "Logical View::commonArchiveCore::looseconfig::LooseArchive"
- quidu "3C56EAAF006C"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "looseApp"
- quid "3C56FDF00025"
- label "looseApp"
- supplier "Logical View::commonArchiveCore::looseconfig::LooseApplication"
- quidu "3C56EB4E006A"
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "$UNNAMED$19"
- quid "3C5AF80200DF"
- roles (list role_list
- (object Role "looseLibs"
- quid "3C5AF8030087"
- label "looseLibs"
- supplier "Logical View::commonArchiveCore::looseconfig::LooseLibrary"
- quidu "3C5AF7AC0028"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "looseWAR"
- quid "3C5AF8030089"
- label "looseWAR"
- supplier "Logical View::commonArchiveCore::looseconfig::LooseWARFile"
- quidu "3C5AF7DB018E"
- is_navigable TRUE
- is_aggregate TRUE))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "Main"
- quid "3C56E9120173"
- title "Main"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::commonArchiveCore::looseconfig::LooseConfiguration" @1
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (384, 160)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (162, 110)
- fill_color 13434879
- nlines 1
- max_width 444
- justify 0
- label "LooseConfiguration")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C56E92C00BF"
- width 462
- height 124
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::looseconfig::LooseArchive" @2
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1312, 224)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (1141, 174)
- fill_color 13434879
- nlines 1
- max_width 342
- justify 0
- label "LooseArchive")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C56EAAF006C"
- width 360
- height 124
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::looseconfig::LooseApplication" @3
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (368, 848)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (161, 798)
- fill_color 13434879
- nlines 1
- max_width 414
- justify 0
- label "LooseApplication")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C56EB4E006A"
- width 432
- height 124
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$16" @4
- location (281, 503)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3C56FDE60173"
- roleview_list (list RoleViews
- (object RoleView "applications" @5
- Parent_View @4
- location (-103, 375)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @6
- Parent_View @5
- location (143, 694)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 247
- justify 0
- label "+applications"
- pctDist 0.679688
- height 139
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3C56FDE702DD"
- client @4
- supplier @3
- vertices (list Points
- (281, 503)
- (281, 786))
- line_style 3
- origin_attachment (281, 503)
- terminal_attachment (281, 786)
- label (object SegLabel @7
- Parent_View @5
- location (334, 649)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.516854
- height 53
- orientation 0))
- (object RoleView "$UNNAMED$17" @8
- Parent_View @4
- location (-103, 375)
- stereotype TRUE
- line_color 3342489
- quidu "3C56FDE702DF"
- client @4
- supplier @1
- vertices (list Points
- (281, 503)
- (281, 221))
- line_style 3
- origin_attachment (281, 503)
- terminal_attachment (281, 221))))
- (object AssociationViewNew "$UNNAMED$18" @9
- location (546, 284)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3C56FDEF0018"
- roleview_list (list RoleViews
- (object RoleView "looseArchives" @10
- Parent_View @9
- location (162, -324)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @11
- Parent_View @10
- location (941, 245)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 285
- justify 0
- label "+looseArchives"
- pctDist 0.676245
- height 40
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C56FDF00023"
- client @9
- supplier @2
- vertices (list Points
- (546, 284)
- (1132, 284))
- line_style 3
- origin_attachment (546, 284)
- terminal_attachment (1132, 284)
- label (object SegLabel @12
- Parent_View @10
- location (995, 324)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.766284
- height 40
- orientation 1))
- (object RoleView "looseApp" @13
- Parent_View @9
- location (162, -324)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @14
- Parent_View @13
- location (566, 612)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 208
- justify 0
- label "+looseApp"
- pctDist 0.702495
- height 103
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C56FDF00025"
- client @9
- supplier @3
- vertices (list Points
- (546, 284)
- (463, 284)
- (463, 786))
- line_style 3
- origin_attachment (546, 284)
- terminal_attachment (463, 786))))
- (object NoteView @15
- location (448, 1680)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @15
- location (44, 1543)
- fill_color 13434879
- nlines 5
- max_width 772
- label "Assumption: For a given running server, there exists only one config with a set of applications")
- line_color 3342489
- fill_color 13434879
- width 832
- height 287)
- (object ClassView "Class" "Logical View::commonArchiveCore::looseconfig::LooseModule" @16
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1632, 896)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @16
- location (1466, 846)
- fill_color 13434879
- nlines 1
- max_width 332
- justify 0
- label "LooseModule")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C5ABEFE0290"
- width 350
- height 124
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::looseconfig::LooseLibrary" @17
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (928, 912)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @17
- location (775, 862)
- fill_color 13434879
- nlines 1
- max_width 306
- justify 0
- label "LooseLibrary")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C5AF7AC0028"
- width 324
- height 124
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::looseconfig::LooseWARFile" @18
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1648, 1328)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @18
- location (1462, 1278)
- fill_color 13434879
- nlines 1
- max_width 372
- justify 0
- label "LooseWARFile")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C5AF7DB018E"
- width 390
- height 124
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$19" @19
- location (1006, 1312)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3C5AF80200DF"
- roleview_list (list RoleViews
- (object RoleView "looseLibs" @20
- Parent_View @19
- location (-642, -128)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @21
- Parent_View @20
- location (791, 1017)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 196
- justify 0
- label "+looseLibs"
- pctDist 0.905963
- height 107
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C5AF8030087"
- client @19
- supplier @17
- vertices (list Points
- (1006, 1312)
- (897, 1312)
- (897, 974))
- line_style 3
- origin_attachment (1006, 1312)
- terminal_attachment (897, 974)
- label (object SegLabel @22
- Parent_View @20
- location (951, 1019)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "looseWAR" @23
- Parent_View @19
- location (-642, -128)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @24
- Parent_View @23
- location (1311, 1272)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 226
- justify 0
- label "+looseWAR"
- pctDist 0.683973
- height 41
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C5AF8030089"
- client @19
- supplier @18
- vertices (list Points
- (1006, 1312)
- (1453, 1312))
- line_style 3
- origin_attachment (1006, 1312)
- terminal_attachment (1453, 1312))))
- (object NoteView @25
- location (1952, 320)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @25
- location (1755, 133)
- fill_color 13434879
- nlines 7
- max_width 359
- label
-|uri is either relative to the EAR root or WEB-INF/lib.
-|binariesPath and resourcesPath are absolute
- )
- line_color 3342489
- fill_color 13434879
- width 419
- height 387)
- (object InheritView "" @26
- stereotype TRUE
- line_color 3342489
- quidu "3C5AF7F5028F"
- client @18
- supplier @16
- vertices (list Points
- (1606, 1266)
- (1606, 958))
- line_style 3
- origin_attachment (1606, 1266)
- terminal_attachment (1606, 958))
- (object InheritTreeView "" @27
- location (1312, 703)
- line_color 3342489
- fill_color 13434879
- supplier @2
- vertices (list Points
- (1312, 703)
- (1312, 286)))
- (object InheritView "" @28
- stereotype TRUE
- line_color 3342489
- quidu "3C5AC03900EE"
- client @16
- supplier @2
- vertices (list Points
- (1650, 834)
- (1650, 703))
- line_style 3
- origin_attachment (1650, 834)
- terminal_attachment (1650, 703)
- drawSupplier @27)
- (object InheritView "" @29
- stereotype TRUE
- line_color 3342489
- quidu "3C5AF7C2037C"
- client @17
- supplier @2
- vertices (list Points
- (913, 850)
- (913, 703))
- line_style 3
- origin_attachment (913, 850)
- terminal_attachment (913, 703)
- drawSupplier @27)
- (object InheritView "" @30
- stereotype TRUE
- line_color 3342489
- quidu "3C753DEE00EA"
- client @3
- supplier @2
- vertices (list Points
- (513, 786)
- (513, 703))
- line_style 3
- origin_attachment (513, 786)
- terminal_attachment (513, 703)
- drawSupplier @27))))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "common archive"
- quid "3A0DB75100E1"
- title "common archive"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 919
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::commonArchiveCore::EJBJarFile" @31
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- location (1440, 1792)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @31
- location (1321, 1741)
- fill_color 13434879
- nlines 1
- max_width 238
- justify 0
- label "EJBJarFile")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DBB250022"
- width 256
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::ApplicationClientFile" @32
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- location (1824, 1792)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @32
- location (1620, 1741)
- fill_color 13434879
- nlines 1
- max_width 408
- justify 0
- label "ApplicationClientFile")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DBB810128"
- width 426
- height 126
- annotation 8
- autoResize TRUE)
- (object NoteView @33
- location (1328, 272)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @33
- location (906, 119)
- fill_color 13434879
- nlines 6
- max_width 808
- label "The loading container is the original container from which the file was opened. If the file is copied and the copy added to a new archive, the new file can still get an input stream on itself from the loading container.")
- line_color 3342489
- fill_color 13434879
- width 868
- height 319)
- (object ClassView "Class" "Logical View::commonArchiveCore::ReadOnlyDirectory" @34
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (896, 1136)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @34
- location (704, 1085)
- fill_color 13434879
- nlines 1
- max_width 384
- justify 0
- label "ReadOnlyDirectory")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3A54BEB0004D"
- width 402
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::Container" @35
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (480, 832)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @35
- location (315, 804)
- fill_color 13434879
- nlines 1
- max_width 330
- justify 0
- label "Container")
- stereotype (object ItemLabel
- Parent_View @35
- location (315, 754)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 330
- justify 0
- label "<<abstract>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3A54BE55016E"
- width 348
- height 180
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::File" @36
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (496, 384)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @36
- location (254, 203)
- fill_color 13434879
- nlines 1
- max_width 484
- justify 0
- label "File")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DB75B00E5"
- compartment (object Compartment
- Parent_View @36
- location (254, 264)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 6
- max_width 481)
- width 502
- height 386
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$3" @37
- location (113, 601)
- stereotype TRUE
- line_color 3342489
- quidu "3A54BF4E0022"
- roleview_list (list RoleViews
- (object RoleView "files" @38
- Parent_View @37
- location (-591, -103)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @39
- Parent_View @38
- location (174, 272)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 108
- justify 0
- label "+files"
- pctDist 0.830532
- height 50
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3A54BF4E0024"
- client @37
- supplier @36
- vertices (list Points
- (113, 601)
- (113, 321)
- (245, 321))
- line_style 3
- origin_attachment (113, 601)
- terminal_attachment (245, 321)
- label (object SegLabel @40
- Parent_View @38
- location (203, 375)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..*"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "container" @41
- Parent_View @37
- location (-591, -103)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @42
- Parent_View @41
- location (193, 861)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 194
- justify 0
- label "+container"
- pctDist 0.725352
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3A54BF4E0023"
- client @37
- supplier @35
- vertices (list Points
- (113, 601)
- (113, 819)
- (306, 819))
- line_style 3
- origin_attachment (113, 601)
- terminal_attachment (306, 819)
- label (object SegLabel @43
- Parent_View @41
- location (245, 771)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.854460
- height 49
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$1" @44
- location (828, 678)
- stereotype TRUE
- line_color 3342489
- quidu "3A3A953E00A9"
- roleview_list (list RoleViews
- (object RoleView "loadingContainer" @45
- Parent_View @44
- location (332, 294)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @46
- Parent_View @45
- location (1003, 757)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 324
- justify 0
- label "+loadingContainer"
- pctDist 0.249344
- height 175
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3A3A953F0082"
- client @44
- supplier @35
- vertices (list Points
- (828, 678)
- (828, 821)
- (654, 821))
- line_style 3
- origin_attachment (828, 678)
- terminal_attachment (654, 821)
- label (object SegLabel @47
- Parent_View @45
- location (686, 875)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$2" @48
- Parent_View @44
- location (332, 294)
- stereotype TRUE
- line_color 3342489
- quidu "3A3A953F00AA"
- client @44
- supplier @36
- vertices (list Points
- (828, 678)
- (828, 441)
- (747, 441))
- line_style 3
- origin_attachment (828, 678)
- terminal_attachment (747, 441))))
- (object AttachView "" @49
- stereotype TRUE
- line_color 3342489
- client @33
- supplier @44
- vertices (list Points
- (1130, 431)
- (828, 678))
- line_style 0)
- (object InheritView "" @50
- stereotype TRUE
- line_color 3342489
- quidu "3A54C16801FC"
- client @35
- supplier @36
- vertices (list Points
- (483, 741)
- (489, 577))
- line_style 0)
- (object ClassView "Class" "Logical View::commonArchiveCore::Archive" @51
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (336, 1216)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @51
- location (94, 1135)
- fill_color 13434879
- nlines 1
- max_width 484
- justify 0
- label "Archive")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DB75F0177"
- compartment (object Compartment
- Parent_View @51
- location (94, 1196)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 482)
- width 502
- height 186
- annotation 8
- autoResize TRUE)
- (object InheritTreeView "" @52
- location (480, 1013)
- line_color 3342489
- fill_color 13434879
- supplier @35
- vertices (list Points
- (480, 1013)
- (480, 922)))
- (object InheritView "" @53
- stereotype TRUE
- line_color 3342489
- quidu "3A54BF750295"
- client @34
- supplier @35
- vertices (list Points
- (851, 1073)
- (851, 1013))
- line_style 3
- origin_attachment (851, 1073)
- terminal_attachment (851, 1013)
- drawSupplier @52)
- (object InheritView "" @54
- stereotype TRUE
- line_color 3342489
- quidu "3A54BF5D018C"
- client @51
- supplier @35
- vertices (list Points
- (266, 1123)
- (266, 1013))
- line_style 3
- origin_attachment (266, 1123)
- terminal_attachment (266, 1013)
- drawSupplier @52)
- (object ClassView "Class" "Logical View::commonArchiveCore::WARFile" @55
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- location (1168, 1792)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @55
- location (1064, 1741)
- fill_color 13434879
- nlines 1
- max_width 208
- justify 0
- label "WARFile")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DBB49018C"
- width 226
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::RARFile" @56
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (928, 1792)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @56
- location (836, 1741)
- fill_color 13434879
- nlines 1
- max_width 184
- justify 0
- label "RARFile")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3A6DEBCF03C5"
- width 202
- height 126
- annotation 8
- autoResize TRUE)
- (object InheritTreeView "" @57
- location (336, 1510)
- line_color 3342489
- fill_color 13434879
- supplier @51
- vertices (list Points
- (336, 1510)
- (336, 1309)))
- (object ClassView "Class" "Logical View::commonArchiveCore::ModuleFile" @58
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (928, 1536)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @58
- location (817, 1485)
- fill_color 13434879
- nlines 1
- max_width 222
- justify 0
- label "ModuleFile")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DC1230136"
- width 240
- height 126
- annotation 8
- autoResize TRUE)
- (object InheritTreeView "" @59
- location (928, 1706)
- line_color 3342489
- fill_color 13434879
- supplier @58
- vertices (list Points
- (928, 1706)
- (928, 1599)))
- (object InheritView "" @60
- stereotype TRUE
- line_color 3342489
- quidu "3A0DC27D03BE"
- client @31
- supplier @58
- vertices (list Points
- (1425, 1729)
- (1425, 1706))
- line_style 3
- origin_attachment (1425, 1729)
- terminal_attachment (1425, 1706)
- drawSupplier @59)
- (object InheritView "" @61
- stereotype TRUE
- line_color 3342489
- quidu "3A0DC2790214"
- client @32
- supplier @58
- vertices (list Points
- (1611, 1729)
- (1611, 1706))
- line_style 3
- origin_attachment (1611, 1729)
- terminal_attachment (1611, 1706)
- drawSupplier @59)
- (object InheritView "" @62
- stereotype TRUE
- line_color 3342489
- quidu "3A0DC2CE00AE"
- client @58
- supplier @51
- vertices (list Points
- (817, 1536)
- (817, 1510))
- line_style 3
- origin_attachment (817, 1536)
- terminal_attachment (817, 1510)
- drawSupplier @57)
- (object InheritView "" @63
- stereotype TRUE
- line_color 3342489
- quidu "3A0DC29003E4"
- client @55
- supplier @58
- vertices (list Points
- (1168, 1729)
- (1168, 1706))
- line_style 3
- origin_attachment (1168, 1729)
- terminal_attachment (1168, 1706)
- drawSupplier @59)
- (object InheritView "" @64
- stereotype TRUE
- line_color 3342489
- quidu "3A6DEBE701CB"
- client @56
- supplier @58
- vertices (list Points
- (929, 1729)
- (929, 1706))
- line_style 3
- origin_attachment (929, 1729)
- terminal_attachment (929, 1706)
- drawSupplier @59)
- (object ClassView "Class" "Logical View::commonArchiveCore::EARFile" @65
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (736, 1984)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @65
- location (644, 1933)
- fill_color 13434879
- nlines 1
- max_width 184
- justify 0
- label "EARFile")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DBB79007D"
- width 202
- height 126
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$0" @66
- location (647, 1720)
- stereotype TRUE
- line_color 3342489
- quidu "3A0DC23C0270"
- roleview_list (list RoleViews
- (object RoleView "/moduleFiles" @67
- Parent_View @66
- location (-169, 760)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @68
- Parent_View @67
- location (621, 1832)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 272
- justify 0
- label "+/moduleFiles"
- pctDist -0.383333
- height 27
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3A0DC23D014F"
- client @66
- supplier @58
- vertices (list Points
- (647, 1720)
- (647, 1660)
- (821, 1660)
- (821, 1599))
- line_style 3
- origin_attachment (647, 1720)
- terminal_attachment (821, 1599)
- label (object SegLabel @69
- Parent_View @67
- location (714, 1691)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.432515
- height 31
- orientation 1))
- (object RoleView "earFile" @70
- Parent_View @66
- location (-169, 760)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3A0DC23D02FE"
- client @66
- supplier @65
- vertices (list Points
- (647, 1720)
- (647, 1921))
- line_style 3
- origin_attachment (647, 1720)
- terminal_attachment (647, 1921)
- label (object SegLabel @71
- Parent_View @70
- location (613, 1897)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.884161
- height 35
- orientation 1))))
- (object InheritView "" @72
- stereotype TRUE
- line_color 3342489
- quidu "3A36452000DE"
- client @65
- supplier @58
- vertices (list Points
- (769, 1921)
- (769, 1706))
- line_style 3
- origin_attachment (769, 1921)
- terminal_attachment (769, 1706)
- drawSupplier @59)
- (object ClassView "Class" "Logical View::application::Application" @73
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (2064, 2032)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @73
- location (1908, 1953)
- nlines 1
- max_width 312
- justify 0
- label "Application")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "38C030A803B1"
- width 330
- height 182
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$9" @74
- location (1368, 2015)
- stereotype TRUE
- line_color 3342489
- quidu "3F297F6E0245"
- roleview_list (list RoleViews
- (object RoleView "deploymentDescriptor" @75
- Parent_View @74
- location (632, 31)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @76
- Parent_View @75
- location (1793, 1974)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 423
- justify 0
- label "+deploymentDescriptor"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F297F6E0247"
- client @74
- supplier @73
- vertices (list Points
- (1368, 2015)
- (1899, 2015))
- line_style 3
- origin_attachment (1368, 2015)
- terminal_attachment (1899, 2015)
- label (object SegLabel @77
- Parent_View @75
- location (1846, 2069)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "earFile" @78
- Parent_View @74
- location (632, 31)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @79
- Parent_View @78
- location (943, 1974)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 149
- justify 0
- label "+earFile"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3F297F6E0246"
- client @74
- supplier @65
- vertices (list Points
- (1368, 2015)
- (837, 2015))
- line_style 3
- origin_attachment (1368, 2015)
- terminal_attachment (837, 2015))))
- (object ClassView "Class" "Logical View::commonArchiveCore::ModuleRef" @80
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (624, 2384)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @80
- location (514, 2333)
- fill_color 13434879
- nlines 1
- max_width 220
- justify 0
- label "ModuleRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C711E300115"
- width 238
- height 126
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$4" @81
- location (441, 1835)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3C711EF902F4"
- roleview_list (list RoleViews
- (object RoleView "moduleFile" @82
- Parent_View @81
- location (121, -533)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @83
- Parent_View @82
- location (612, 1561)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 232
- justify 0
- label "+moduleFile"
- pctDist 0.681922
- height 25
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C711EFA024C"
- client @81
- supplier @58
- vertices (list Points
- (441, 1835)
- (441, 1585)
- (808, 1585))
- line_style 3
- origin_attachment (441, 1835)
- terminal_attachment (808, 1585)
- label (object SegLabel @84
- Parent_View @82
- location (731, 1623)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.876481
- height 38
- orientation 1))
- (object RoleView "$UNNAMED$5" @85
- Parent_View @81
- location (121, -533)
- stereotype TRUE
- line_color 3342489
- quidu "3C711EFA024E"
- client @81
- supplier @80
- vertices (list Points
- (441, 1835)
- (441, 2388)
- (505, 2388))
- line_style 3
- origin_attachment (441, 1835)
- terminal_attachment (505, 2388))))
- (object AssociationViewNew "$UNNAMED$6" @86
- location (716, 2184)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3C712223019B"
- roleview_list (list RoleViews
- (object RoleView "moduleRefs" @87
- Parent_View @86
- location (252, 40)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @88
- Parent_View @87
- location (857, 2270)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 254
- justify 0
- label "+moduleRefs"
- pctDist 0.635036
- height 141
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C7122240246"
- client @86
- supplier @80
- vertices (list Points
- (716, 2184)
- (716, 2321))
- line_style 3
- origin_attachment (716, 2184)
- terminal_attachment (716, 2321)
- label (object SegLabel @89
- Parent_View @87
- location (670, 2281)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.715736
- height 47
- orientation 1))
- (object RoleView "earFile" @90
- Parent_View @86
- location (252, 40)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @91
- Parent_View @90
- location (803, 2144)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 149
- justify 0
- label "+earFile"
- pctDist 0.301471
- height 87
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3C7122240248"
- client @86
- supplier @65
- vertices (list Points
- (716, 2184)
- (716, 2047))
- line_style 3
- origin_attachment (716, 2184)
- terminal_attachment (716, 2047)
- label (object SegLabel @92
- Parent_View @90
- location (755, 2068)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.854626
- height 39
- orientation 1))))
- (object ClassView "Class" "Logical View::application::Module" @93
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeOperation TRUE
- location (2048, 2384)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @93
- location (1917, 2334)
- nlines 1
- max_width 262
- justify 0
- label "Module")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "38C0322C0006"
- width 280
- height 124
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "" @94
- location (2102, 2222)
- stereotype TRUE
- line_color 3342489
- quidu "38C0340003C1"
- roleview_list (list RoleViews
- (object RoleView "modules" @95
- Parent_View @94
- location (278, 1486)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @96
- Parent_View @95
- location (1999, 2270)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 180
- justify 0
- label "+modules"
- pctDist 0.484848
- height 104
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C0340102E7"
- client @94
- supplier @93
- vertices (list Points
- (2102, 2222)
- (2102, 2321))
- line_style 3
- origin_attachment (2102, 2222)
- terminal_attachment (2102, 2321)
- label (object SegLabel @97
- Parent_View @95
- location (2157, 2288)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.678010
- height 55
- orientation 0))
- (object RoleView "application" @98
- Parent_View @94
- location (278, 1486)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "38C0340102E6"
- client @94
- supplier @73
- vertices (list Points
- (2102, 2222)
- (2102, 2123))
- line_style 3
- origin_attachment (2102, 2222)
- terminal_attachment (2102, 2123)
- label (object SegLabel @99
- Parent_View @98
- location (2156, 2133)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$14" @100
- location (1325, 2384)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "430A92520127"
- roleview_list (list RoleViews
- (object RoleView "module" @101
- Parent_View @100
- location (701, 0)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @102
- Parent_View @101
- location (1791, 2343)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 172
- justify 0
- label "+module"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "430A92530147"
- client @100
- supplier @93
- vertices (list Points
- (1325, 2384)
- (1907, 2384))
- line_style 0
- label (object SegLabel @103
- Parent_View @101
- location (1849, 2438)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$15" @104
- Parent_View @100
- location (701, 0)
- stereotype TRUE
- line_color 3342489
- quidu "430A92530149"
- client @100
- supplier @80
- vertices (list Points
- (1325, 2384)
- (743, 2384))
- line_style 0)))))
- (object ClassDiagram "descriptors"
- quid "3A1015D70250"
- title "descriptors"
- zoom 89
- max_height 28350
- max_width 21600
- origin_x 137
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::commonArchiveCore::WARFile" @105
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (256, 1616)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @105
- location (139, 1563)
- nlines 1
- max_width 234
- justify 0
- label "WARFile")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "3A0DBB49018C"
- width 252
- height 130
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::Servlet" @106
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (1408, 1840)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @106
- location (1223, 1763)
- nlines 1
- max_width 370
- justify 0
- label "Servlet")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "38C079140251"
- width 388
- height 178
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::WebApp" @107
- ShowCompartmentStereotypes TRUE
- location (1408, 1392)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @107
- location (1247, 1339)
- nlines 1
- max_width 322
- justify 0
- label "WebApp")
- stereotype (object ItemLabel
- Parent_View @107
- location (1247, 1289)
- anchor 10
- nlines 1
- max_width 322
- justify 0
- label "<<component>>")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "38C077FB0352"
- width 340
- height 230
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$7" @108
- location (809, 1508)
- stereotype TRUE
- line_color 3342489
- quidu "3F297D500278"
- roleview_list (list RoleViews
- (object RoleView "deploymentDescriptor" @109
- Parent_View @108
- location (73, -316)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @110
- Parent_View @109
- location (1078, 1411)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 542
- justify 0
- label "+deploymentDescriptor"
- pctDist 0.649222
- height 45
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F297D50027A"
- client @108
- supplier @107
- vertices (list Points
- (809, 1508)
- (1237, 1424))
- line_style 0
- label (object SegLabel @111
- Parent_View @109
- location (1203, 1487)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "warFile" @112
- Parent_View @108
- location (73, -316)
- stereotype TRUE
- line_color 3342489
- quidu "3F297D500279"
- client @108
- supplier @105
- vertices (list Points
- (809, 1508)
- (382, 1590))
- line_style 0)))
- (object AssociationViewNew "" @113
- location (1408, 1628)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D230120"
- roleview_list (list RoleViews
- (object RoleView "servlets" @114
- Parent_View @113
- location (-1056, -1028)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @115
- Parent_View @114
- location (1367, 1725)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 226
- justify 0
- label "+servlets"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D2402E4"
- client @113
- supplier @106
- vertices (list Points
- (1408, 1628)
- (1408, 1750))
- line_style 0
- label (object SegLabel @116
- Parent_View @114
- location (1462, 1737)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "webApp" @117
- Parent_View @113
- location (-1056, -1028)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @118
- Parent_View @117
- location (1367, 1531)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 216
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D2402DA"
- client @113
- supplier @107
- vertices (list Points
- (1408, 1628)
- (1408, 1507))
- line_style 0
- label (object SegLabel @119
- Parent_View @117
- location (1462, 1519)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))))
- (object ClassView "Class" "Logical View::ejb::EnterpriseBean" @120
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (2288, 1088)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @120
- location (2103, 1011)
- nlines 1
- max_width 370
- justify 0
- label "EnterpriseBean")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "3780E71A010A"
- width 388
- height 178
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::EJBJar" @121
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (816, 1072)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @121
- location (628, 1016)
- nlines 1
- max_width 376
- justify 0
- label "EJBJar")
- stereotype (object ItemLabel
- Parent_View @121
- location (628, 966)
- anchor 10
- nlines 1
- max_width 376
- justify 0
- label "<<component>>")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "371BC55D01E1"
- width 394
- height 236
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "ejbJarToEnterpriseBeans" @122
- location (1553, 1079)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @123
- Parent_View @122
- location (1553, 1020)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 600
- justify 0
- label "ejbJarToEnterpriseBeans"
- pctDist 0.500000
- height 60
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3D1F003B"
- roleview_list (list RoleViews
- (object RoleView "ejbJar" @124
- Parent_View @122
- location (-1087, -505)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @125
- Parent_View @124
- location (1121, 1117)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 181
- justify 0
- label "+ejbJar"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3D1F03CB"
- client @122
- supplier @121
- vertices (list Points
- (1553, 1079)
- (1013, 1073))
- line_style 0
- label (object SegLabel @126
- Parent_View @124
- location (1068, 1022)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "enterpriseBeans" @127
- Parent_View @122
- location (-1087, -505)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @128
- Parent_View @127
- location (1985, 1126)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 419
- justify 0
- label "+enterpriseBeans"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3D1F037A"
- client @122
- supplier @120
- vertices (list Points
- (1553, 1079)
- (2093, 1084))
- line_style 0
- label (object SegLabel @129
- Parent_View @127
- location (2039, 1031)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object ClassView "Class" "Logical View::commonArchiveCore::EJBJarFile" @130
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (336, 704)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @130
- location (201, 651)
- nlines 1
- max_width 270
- justify 0
- label "EJBJarFile")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "3A0DBB250022"
- width 288
- height 130
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$8" @131
- location (541, 861)
- stereotype TRUE
- line_color 3342489
- quidu "3F297E2800B5"
- roleview_list (list RoleViews
- (object RoleView "deploymentDescriptor" @132
- Parent_View @131
- location (-339, -771)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @133
- Parent_View @132
- location (647, 875)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 542
- justify 0
- label "+deploymentDescriptor"
- pctDist 0.617915
- height 54
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F297E2800B7"
- client @131
- supplier @121
- vertices (list Points
- (541, 861)
- (662, 953))
- line_style 0
- label (object SegLabel @134
- Parent_View @132
- location (690, 902)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.953052
- height 59
- orientation 0))
- (object RoleView "ejbJarFile" @135
- Parent_View @131
- location (-339, -771)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @136
- Parent_View @135
- location (421, 821)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 265
- justify 0
- label "+ejbJarFile"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F297E2800B6"
- client @131
- supplier @130
- vertices (list Points
- (541, 861)
- (421, 769))
- line_style 0)))
- (object ClassView "Class" "Logical View::commonArchiveCore::ApplicationClientFile" @137
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (976, 640)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @137
- location (735, 587)
- nlines 1
- max_width 482
- justify 0
- label "ApplicationClientFile")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "3A0DBB810128"
- width 500
- height 130
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::client::ApplicationClient" @138
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (2320, 704)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @138
- location (2121, 627)
- nlines 1
- max_width 398
- justify 0
- label "ApplicationClient")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "38C028AB009E"
- width 416
- height 178
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$12" @139
- location (1669, 660)
- stereotype TRUE
- line_color 3342489
- quidu "3F298462039D"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$13" @140
- Parent_View @139
- location (-795, 100)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @141
- Parent_View @140
- location (1407, 655)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.591809
- height 6
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3F298462039E"
- client @139
- supplier @137
- vertices (list Points
- (1669, 660)
- (1226, 660))
- line_style 3
- origin_attachment (1669, 660)
- terminal_attachment (1226, 660))
- (object RoleView "deploymentDescriptor" @142
- Parent_View @139
- location (-795, 100)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @143
- Parent_View @142
- location (2022, 619)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 542
- justify 0
- label "+deploymentDescriptor"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F298462039F"
- client @139
- supplier @138
- vertices (list Points
- (1669, 660)
- (2112, 660))
- line_style 3
- origin_attachment (1669, 660)
- terminal_attachment (2112, 660)
- label (object SegLabel @144
- Parent_View @142
- location (2068, 714)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))))
- (object ClassView "Class" "Logical View::commonArchiveCore::RARFile" @145
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1888, 1600)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @145
- location (1776, 1547)
- nlines 1
- max_width 224
- justify 0
- label "RARFile")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "3A6DEBCF03C5"
- width 242
- height 130
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jca::Connector" @146
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (2544, 1648)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @146
- location (2413, 1571)
- nlines 1
- max_width 262
- justify 0
- label "Connector")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "3C609091010F"
- width 280
- height 178
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$10" @147
- location (2206, 1612)
- stereotype TRUE
- line_color 3342489
- quidu "3F298321035F"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$11" @148
- Parent_View @147
- location (-338, -36)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @149
- Parent_View @148
- location (2049, 1571)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 148
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3F2983220298"
- client @147
- supplier @145
- vertices (list Points
- (2206, 1612)
- (2009, 1612))
- line_style 3
- origin_attachment (2206, 1612)
- terminal_attachment (2009, 1612))
- (object RoleView "deploymentDescriptor" @150
- Parent_View @147
- location (-338, -36)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @151
- Parent_View @150
- location (2363, 1571)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label "+deploymentDescriptor"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F2983220284"
- client @147
- supplier @146
- vertices (list Points
- (2206, 1612)
- (2404, 1612))
- line_style 3
- origin_attachment (2206, 1612)
- terminal_attachment (2404, 1612)
- label (object SegLabel @152
- Parent_View @150
- location (2384, 1666)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))))
- (object ClassView "Class" "Logical View::application::Application" @153
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (2608, 352)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @153
- location (2456, 275)
- nlines 1
- max_width 304
- justify 0
- label "Application")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "38C030A803B1"
- width 322
- height 178
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::EARFile" @154
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (384, 400)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @154
- location (272, 348)
- nlines 1
- max_width 224
- justify 0
- label "EARFile")
- icon_style "Label"
- line_color 3342489
- fill_color 16777215
- quidu "3A0DBB79007D"
- width 242
- height 130
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$9" @155
- location (1476, 348)
- stereotype TRUE
- line_color 3342489
- quidu "3F297F6E0245"
- roleview_list (list RoleViews
- (object RoleView "deploymentDescriptor" @156
- Parent_View @155
- location (660, -612)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @157
- Parent_View @156
- location (2098, 312)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 542
- justify 0
- label "+deploymentDescriptor"
- pctDist 0.641571
- height 37
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F297F6E0247"
- client @155
- supplier @153
- vertices (list Points
- (1476, 348)
- (2447, 348))
- line_style 3
- origin_attachment (1476, 348)
- terminal_attachment (2447, 348)
- label (object SegLabel @158
- Parent_View @156
- location (2313, 388)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.862061
- height 40
- orientation 1))
- (object RoleView "earFile" @159
- Parent_View @155
- location (660, -612)
- stereotype TRUE
- line_color 3342489
- quidu "3F297F6E0246"
- client @155
- supplier @154
- vertices (list Points
- (1476, 348)
- (505, 348))
- line_style 3
- origin_attachment (1476, 348)
- terminal_attachment (505, 348))))))
- (object ClassDiagram "ModuleRefs"
- quid "3C7125820051"
- title "ModuleRefs"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::commonArchiveCore::EJBModuleRef" @160
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (768, 416)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @160
- location (593, 365)
- fill_color 13434879
- nlines 1
- max_width 350
- justify 0
- label "EJBModuleRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C7125A802A5"
- width 368
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::WebModuleRef" @161
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (960, 592)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @161
- location (779, 541)
- fill_color 13434879
- nlines 1
- max_width 362
- justify 0
- label "WebModuleRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C7125B10293"
- width 380
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::ClientModuleRef" @162
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1120, 784)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @162
- location (931, 733)
- fill_color 13434879
- nlines 1
- max_width 378
- justify 0
- label "ClientModuleRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C7125B90259"
- width 396
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::ConnectorModuleRef" @163
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1216, 1008)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @163
- location (972, 957)
- fill_color 13434879
- nlines 1
- max_width 488
- justify 0
- label "ConnectorModuleRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C7125C600E5"
- width 506
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::application::WebModule" @164
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1760, 752)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @164
- location (1516, 648)
- fill_color 13434879
- nlines 1
- max_width 488
- justify 0
- label "WebModule")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3904860D027B"
- width 506
- height 232
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::application::JavaClientModule" @165
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2000, 1024)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @165
- location (1823, 945)
- fill_color 13434879
- nlines 1
- max_width 354
- justify 0
- label "JavaClientModule")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "390486730015"
- width 372
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::application::EjbModule" @166
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1616, 512)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @166
- location (1460, 433)
- fill_color 13434879
- nlines 1
- max_width 312
- justify 0
- label "EjbModule")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "390486830253"
- width 330
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::application::ConnectorModule" @167
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2224, 1296)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @167
- location (2044, 1217)
- fill_color 13434879
- nlines 1
- max_width 360
- justify 0
- label "ConnectorModule")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39895BC00227"
- width 378
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::WARFile" @168
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (256, 544)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @168
- location (133, 493)
- fill_color 13434879
- nlines 1
- max_width 246
- justify 0
- label "WARFile")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DBB49018C"
- width 264
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::ApplicationClientFile" @169
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (368, 736)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @169
- location (128, 685)
- fill_color 13434879
- nlines 1
- max_width 480
- justify 0
- label "ApplicationClientFile")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DBB810128"
- width 498
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::RARFile" @170
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (608, 944)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @170
- location (499, 893)
- fill_color 13434879
- nlines 1
- max_width 218
- justify 0
- label "RARFile")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3A6DEBCF03C5"
- width 236
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::EJBJarFile" @171
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (176, 352)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @171
- location (36, 301)
- fill_color 13434879
- nlines 1
- max_width 280
- justify 0
- label "EJBJarFile")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DBB250022"
- width 298
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::application::Module" @172
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1968, 160)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @172
- location (1793, 31)
- fill_color 13434879
- nlines 1
- max_width 350
- justify 0
- label "Module")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0322C0006"
- compartment (object Compartment
- Parent_View @172
- location (1887, 203)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 0)
- width 368
- height 282
- annotation 8
- autoResize TRUE)
- (object InheritTreeView "" @173
- location (1968, 396)
- line_color 3342489
- fill_color 13434879
- supplier @172
- vertices (list Points
- (1968, 396)
- (1968, 301)))
- (object InheritView "" @174
- stereotype TRUE
- line_color 3342489
- quidu "390486B60379"
- client @166
- supplier @172
- vertices (list Points
- (1675, 421)
- (1675, 396))
- line_style 3
- origin_attachment (1675, 421)
- terminal_attachment (1675, 396)
- drawSupplier @173)
- (object InheritView "" @175
- stereotype TRUE
- line_color 3342489
- quidu "390486AE01C9"
- client @164
- supplier @172
- vertices (list Points
- (1766, 636)
- (1766, 396))
- line_style 3
- origin_attachment (1766, 636)
- terminal_attachment (1766, 396)
- drawSupplier @173)
- (object InheritView "" @176
- stereotype TRUE
- line_color 3342489
- quidu "390486B201F6"
- client @165
- supplier @172
- vertices (list Points
- (2000, 933)
- (2000, 396))
- line_style 3
- origin_attachment (2000, 933)
- terminal_attachment (2000, 396)
- drawSupplier @173)
- (object InheritView "" @177
- stereotype TRUE
- line_color 3342489
- quidu "39895BCA0218"
- client @167
- supplier @172
- vertices (list Points
- (2350, 1204)
- (2350, 396))
- line_style 3
- origin_attachment (2350, 1204)
- terminal_attachment (2350, 396)
- drawSupplier @173)
- (object ClassView "Class" "Logical View::commonArchiveCore::ModuleRef" @178
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (928, 112)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @178
- location (798, 61)
- fill_color 13434879
- nlines 1
- max_width 260
- justify 0
- label "ModuleRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C711E300115"
- width 278
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::commonArchiveCore::ModuleFile" @179
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (272, 112)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @179
- location (141, 61)
- fill_color 13434879
- nlines 1
- max_width 262
- justify 0
- label "ModuleFile")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3A0DC1230136"
- width 280
- height 126
- annotation 8
- autoResize TRUE)
- (object InheritTreeView "" @180
- location (272, 266)
- line_color 3342489
- fill_color 13434879
- supplier @179
- vertices (list Points
- (272, 266)
- (272, 175)))
- (object InheritView "" @181
- stereotype TRUE
- line_color 3342489
- quidu "3A0DC29003E4"
- client @168
- supplier @179
- vertices (list Points
- (319, 481)
- (319, 266))
- line_style 3
- origin_attachment (319, 481)
- terminal_attachment (319, 266)
- drawSupplier @180)
- (object InheritView "" @182
- stereotype TRUE
- line_color 3342489
- quidu "3A0DC2790214"
- client @169
- supplier @179
- vertices (list Points
- (384, 673)
- (384, 266))
- line_style 3
- origin_attachment (384, 673)
- terminal_attachment (384, 266)
- drawSupplier @180)
- (object InheritView "" @183
- stereotype TRUE
- line_color 3342489
- quidu "3A0DC27D03BE"
- client @171
- supplier @179
- vertices (list Points
- (225, 288)
- (225, 266))
- line_style 3
- origin_attachment (225, 288)
- terminal_attachment (225, 266)
- drawSupplier @180)
- (object InheritView "" @184
- stereotype TRUE
- line_color 3342489
- quidu "3A6DEBE701CB"
- client @170
- supplier @179
- vertices (list Points
- (600, 881)
- (600, 266))
- line_style 3
- origin_attachment (600, 881)
- terminal_attachment (600, 266)
- drawSupplier @180)
- (object AssociationViewNew "$UNNAMED$4" @185
- location (600, 112)
- stereotype TRUE
- line_color 3342489
- quidu "3C711EF902F4"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$5" @186
- Parent_View @185
- location (360, -112)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @187
- Parent_View @186
- location (750, 71)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C711EFA024E"
- client @185
- supplier @178
- vertices (list Points
- (600, 112)
- (788, 112))
- line_style 0)
- (object RoleView "moduleFile" @188
- Parent_View @185
- location (360, -112)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @189
- Parent_View @188
- location (489, 73)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 232
- justify 0
- label "+moduleFile"
- pctDist 0.594557
- height 40
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3C711EFA024C"
- client @185
- supplier @179
- vertices (list Points
- (600, 112)
- (412, 112))
- line_style 0
- label (object SegLabel @190
- Parent_View @188
- location (432, 166)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object InheritTreeView "" @191
- location (928, 297)
- line_color 3342489
- fill_color 13434879
- supplier @178
- vertices (list Points
- (928, 297)
- (928, 175)))
- (object InheritView "" @192
- stereotype TRUE
- line_color 3342489
- quidu "3C712A1D0165"
- client @160
- supplier @178
- vertices (list Points
- (809, 353)
- (809, 297))
- line_style 3
- origin_attachment (809, 353)
- terminal_attachment (809, 297)
- drawSupplier @191)
- (object InheritView "" @193
- stereotype TRUE
- line_color 3342489
- quidu "3C712A2001EB"
- client @161
- supplier @178
- vertices (list Points
- (975, 528)
- (975, 297))
- line_style 3
- origin_attachment (975, 528)
- terminal_attachment (975, 297)
- drawSupplier @191)
- (object InheritView "" @194
- stereotype TRUE
- line_color 3342489
- quidu "3C712A2B025F"
- client @163
- supplier @178
- vertices (list Points
- (1350, 944)
- (1350, 297))
- line_style 3
- origin_attachment (1350, 944)
- terminal_attachment (1350, 297)
- drawSupplier @191)
- (object InheritView "" @195
- stereotype TRUE
- line_color 3342489
- quidu "3C712A23031C"
- client @162
- supplier @178
- vertices (list Points
- (1200, 720)
- (1200, 297))
- line_style 3
- origin_attachment (1200, 720)
- terminal_attachment (1200, 297)
- drawSupplier @191)))))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/ejbschema.cat b/plugins/org.eclipse.jst.j2ee.core/rose/ejbschema.cat deleted file mode 100644 index 2bf0944a1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/ejbschema.cat +++ /dev/null @@ -1,13576 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Class_Category "ejb"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-0000-005d9e6adec4:1"))
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "ejb.xmi"))
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Ejb")))
- quid "3780E272032D"
- stereotype "metamodel"
- visible_categories (list visibility_relationship_list
- (object Visibility_Relationship
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-0001-005d9e6adec4:1")))
- quid "380567F50384"
- supplier "Logical View::java"
- quidu "36549F2C004E")
- (object Visibility_Relationship
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-0002-005d9e6adec4:1")))
- quid "38FF3C1C0256"
- supplier "Logical View::common"
- quidu "38C08F0F038D"))
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "ContainerManagedEntity"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-0003-005d9e6adec4:1")))
- quid "3780E3230174"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-0004-005d9e6adec4:1")))
- quid "3780E3230175"
- supplier "Logical View::ejb::Entity"
- quidu "3780E6970351"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "version"
- quid "39BF039F01CD"
- documentation
-|Specifies the version of an entity bean with container-managed persistence.
-|
-|@invariant The cmp-version element must be one of the two following: 1.x , 2.x
-|@default 2.x
-|
-
- stereotype "0..1"
- type "String"
- initv "2.x"
- exportControl "Public")
- (object ClassAttribute "abstractSchemaName"
- quid "39BF1F2302C6"
- documentation
-|The abstract-schema-name element specifies the name of the abstract schema type of an entity bean with cmp-version 2.x. It is used in EJB QL queries.
-|
-|For example, the abstract-schema-name for an entity bean whose local interface is com.acme.commerce.Order might be Order.
-|
-|
-
- stereotype "0..1"
- type "String"
- exportControl "Public"))
- module "Component View::eBAFModels::EJBSchema::ContainerManagedEntityBean"
- quidu "3780E363009F"
- language "Java")
- (object Class "MethodPermission"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-0005-005d9e6adec4:1"))
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3780E35000D0"
- documentation "The method-permission element specifies that one or more security roles are allowed to invoke one or more enterprise bean methods. The method-permission element consists of an optional description, a list of security role names, and a list of method elements. The security roles used in the method-permission element must be defined in the security-role element of the deployment descriptor, and the methods must be methods defined in the enterprise bean's remote and/or home interfaces."
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-0006-005d9e6adec4:1")))
- quid "392ED399030E"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "unchecked"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3996B52C0209"
- type "boolean"
- exportControl "Public"))
- module "Component View::eBAFModels::EJBSchema::MethodPermission"
- quidu "3780E36300A0"
- language "Java")
- (object Class "AssemblyDescriptor"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-0007-005d9e6adec4:1"))
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3780E35000D4"
- documentation "The assembly-descriptor element contains application-assembly information. The application-assembly information consists of the following parts: the definition of security roles, the definition of method permissions, and the definition of transaction attributes for enterprise beans with container-managed transaction demarcation. All the parts are optional in the sense that they are omitted if the lists represented by them are empty. Providing an assembly-descriptor in the deployment descriptor is optional for the ejb-jar file producer."
- module "Component View::eBAFModels::EJBSchema::AssemblyDescriptor"
- quidu "3780E35B02C5"
- language "Java")
- (object Class "MethodTransaction"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-0008-005d9e6adec4:1"))
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3780E35000DE"
- documentation "Specifies how the container must manage transaction scopes for the enterprise bean's method invocations. It consists of an optional description, a list of method elements, and a transaction attribute.The transaction attribute is to be applied to all the specified methods."
- class_attributes (list class_attribute_list
- (object ClassAttribute "transactionAttribute"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-0009-005d9e6adec4:1"))
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3780E35000DF"
- documentation
-|The trans-attribute element specifies how the container must manage the transaction boundaries when delegating a method invocation to an enterprise bean's business method.
-|
-
- type "TransactionAttributeType"
- quidu "379F634503C0"
- exportControl "Public")
- (object ClassAttribute "description"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-000a-005d9e6adec4:1")))
- quid "38055C050296"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.
-
- type "String"
- exportControl "Public"))
- module "Component View::eBAFModels::EJBSchema::MethodTransaction"
- quidu "3780E36300A1"
- language "Java")
- (object Class "Session"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-000b-005d9e6adec4:1")))
- quid "3780E5F901EB"
- documentation
-|The session-beanType declares an session bean. The
-|declaration consists of:
-|
-| - an optional description
-| - an optional display name
-| - an optional icon element that contains a small and a large
-| icon file name
-| - a name assigned to the enterprise bean
-| in the deployment description
-| - the names of the session bean's remote home and
-| remote interfaces, if any
-| - the names of the session bean's local home and
-| local interfaces, if any
-| - the name of the session bean's web service endpoint
-| interface, if any
-| - the session bean's implementation class
-| - the session bean's state management type
-| - the session bean's transaction management type
-| - an optional declaration of the bean's
-| environment entries
-| - an optional declaration of the bean's EJB references
-| - an optional declaration of the bean's local
-| EJB references
-| - an optional declaration of the bean's web
-| service references
-| - an optional declaration of the security role
-| references
-| - an optional declaration of the security identity
-| to be used for the execution of the bean's methods
-| - an optional declaration of the bean's resource
-| manager connection factory references
-| - an optional declaration of the bean's resource
-| environment references.
-| - an optional declaration of the bean's message
-| destination references
-|
-|The elements that are optional are "optional" in the sense
-|that they are omitted when if lists represented by them are
-|empty.
-|
-|Either both the local-home and the local elements or both
-|the home and the remote elements must be specified for the
-|session bean.
-|
-|The service-endpoint element may only be specified if the
-|bean is a stateless session bean.
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-000c-005d9e6adec4:1")))
- quid "3780E3230120"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "transactionType"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8a25660-8826-11e1-000d-005d9e6adec4:1"))
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3780E62403CE"
- documentation
-|The transaction-type element specifies an enterprise bean's transaction management type.
-|
-|
-
- type "TransactionType"
- quidu "37FCA48702EF"
- exportControl "Public")
- (object ClassAttribute "sessionType"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0000-005d9e6adec4:1"))
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3780E65B037D"
- type "SessionType"
- quidu "371BCA07010C"
- exportControl "Public"))
- module "Component View::eBAFModels::EJBSchema::SessionBean"
- quidu "3780E81A0159"
- language "Java")
- (object Class "Entity"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0001-005d9e6adec4:1")))
- quid "3780E6970351"
- documentation
-|The entity element declares an entity bean. The declaration consists of: an optional description; optional display name; optional small icon file name; optional large icon file name; a unique name assigned to the enterprise bean in the deployment descriptor; the names of the entity bean’s home and remote interfaces, if any; the names of the entity bean’s local home and local interface, if any; the entity bean’s implementation class; the entity bean’s persistence management type; the entity bean’s primary key class name; an indication of the entity bean’s reentrancy; an optional specification of the entity bean’s cmp-version; an optional specification of the entity bean’s abstract schema name; an optional list of container-managed fields; an optional specification of the primary key field; an optional declaration of the bean’s environment entries; an optional declaration of the bean’s EJB references; an optional declaration of the bean’s local EJB references; an optional declaration of the security role references; an optional declaration of the security identity to be used for the execution of the bean’s methods; an optional declaration of the bean’s resource manager connection factory references; an optional declaration of the bean’s resource environment references; an optional set of query declarations for finder and select methods for an entity bean with cmp-version 2.x.
-|The optional abstract-schema-name element must be specified for an entity bean with container managed persistence and cmp-version 2.x. The optional primkey-field may be present in the descriptor if the entity’s persistence-type is Container. The optional cmp-version element may be present in the descriptor if the entity’s persistence-type is Container. If the persistence-type is Container and the cmp-version element is not specified, its value defaults to 2.x.
-|The optional home and remote elements must be specified if the entity bean cmp-version is 1.x.
-|The optional local-home and local elements must be specified if the entity bean has a local home and local interface.
-|The optional query elements must be present if the persistence-type is Container and the cmp-version is 2.x and query methods other than findByPrimaryKey have been defined for the entity bean.
-|The other elements that are optional are "optional" in the sense that they are omitted if the lists represented by them are empty. At least one cmp-field element must be present in the descriptor if
-|the entity’s persistence-type is Container and the cmp-version is 1.x, and none must not be present if the entity’s persistence-type is Bean.
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0002-005d9e6adec4:1")))
- quid "3780E8080095"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "reentrant"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0003-005d9e6adec4:1"))
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3780E6A2031B"
- documentation
-|The reentrant element specifies whether an entity bean is reentrant or not.
-|
-
- type "boolean"
- exportControl "Public"))
- module "Component View::eBAFModels::EJBSchema::EntityBean"
- quidu "3780E81A015A"
- language "Java")
- (object Class "EnterpriseBean"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0004-005d9e6adec4:1"))
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Static"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultConstructor"
- value TRUE)
- (object Attribute
- tool "Java"
- name "GenerateFinalizer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateStaticInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateInstanceInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateCode"
- value TRUE)
- (object Attribute
- tool "Java"
- name "DisableAutoSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ConstructorIs"
- value ("Ctor_Set" 62)))
- quid "3780E71A010A"
- documentation
-|EnterpriseJavaBean is a class. It can have instances, someone could write an
-|instance document containing Departments and Employees. It also has
-|attributes, operations, and associations. These are actually derived/filtered
-|from its implementation classes and interfaces. For mapping and browsing
-|purposes, though, you would like the EJB to appear as a class.
-|
-|In this light, even Session Beans can have associations and properties
-|implemented by their bean. For example, it would be meaningful to describe
-|associations from a Session to the Entities which it uses to perform its work.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- attributes (list Attribute_Set)
- quid "3E4D54C30090"
- supplier "Logical View::common::JNDIEnvRefsGroup"
- quidu "3E4D53950349"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "3E885D490290"
- type "String"
- exportControl "Public"))
- module "Component View::eBAFModels::EJBSchema::EnterpriseJavaBean"
- quidu "3780E81A015B"
- language "Java"
- abstract TRUE)
- (object Class "TransactionAttributeType"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-000b-005d9e6adec4:1")))
- quid "379F634503C0"
- documentation
-|NotSupported=1
-|Supports=2
-|Required=3
-|RequiresNew=4
-|Mandatory=5
-|Never=6
-|
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "NotSupported"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-000c-005d9e6adec4:1")))
- quid "3805573C007D"
- exportControl "Public")
- (object ClassAttribute "Supports"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-000d-005d9e6adec4:1")))
- quid "3805574F0373"
- exportControl "Public")
- (object ClassAttribute "Required"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-000e-005d9e6adec4:1")))
- quid "38055754017C"
- exportControl "Public")
- (object ClassAttribute "RequiresNew"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-000f-005d9e6adec4:1")))
- quid "3805575D01B1"
- exportControl "Public")
- (object ClassAttribute "Mandatory"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0010-005d9e6adec4:1")))
- quid "3805576101AC"
- exportControl "Public")
- (object ClassAttribute "Never"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0011-005d9e6adec4:1")))
- quid "380557690122"
- exportControl "Public"))
- language "Java")
- (object Class "TransactionType"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0012-005d9e6adec4:1")))
- quid "37FCA48702EF"
- documentation
-|Bean=1
-|Container=2
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "Bean"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0013-005d9e6adec4:1")))
- quid "380551D30153"
- exportControl "Public")
- (object ClassAttribute "Container"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0014-005d9e6adec4:1")))
- quid "380551DC0138"
- exportControl "Public"))
- language "Java")
- (object Class "SessionType"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0015-005d9e6adec4:1")))
- quid "371BCA07010C"
- documentation
-|Stateful=1
-|Stateless=2
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "Stateful"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0016-005d9e6adec4:1")))
- quid "371BCA150080"
- exportControl "Public")
- (object ClassAttribute "Stateless"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0017-005d9e6adec4:1")))
- quid "371BCA220115"
- exportControl "Public")))
- (object Class "EJBMethodCategory"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0018-005d9e6adec4:1")))
- quid "3810D0380344"
- documentation "The valid EJB method category names are: EJBHOMEMETHOD, EJBCREATEMETHOD, EJBFINDERMETHOD, EJBREMOTEMETHOD."
- language "Java")
- (object Class "EJBJar"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0019-005d9e6adec4:1")))
- quid "371BC55D01E1"
- documentation
-|The root element of the EJB deployment descriptor. It contains an optional description of the ejb-jar file; optional display name; optional small icon file name; optional large icon file
-|name; mandatory structural information about all included enterprise beans; a descriptor for container managed relationships, if any; an optional application-assembly descriptor; and an optional name of an ejb-client-jar file for the ejb-jar.
-
- stereotype "component"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023B1580347"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "ejbClientJar"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-001e-005d9e6adec4:1")))
- quid "38BDA8B000E0"
- documentation
-|The optional ejb-client-jar element specifies a JAR file that contains the class files necessary for a client program to access the enterprise beans in the ejb-jar file. The Deployer should make the ejb-client JAR file accessible to the client's class-loader. Example:<ejb-client-jar>employee_service_client.jar</ejb-client-jar>
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "version"
- quid "3E55AE3B0217"
- documentation
-|@version J2EE1.4
-|The version specifies the version of the
-| EJB specification that the instance document must
-| comply with. This information enables deployment tools
-| to validate a particular EJB Deployment
-| Descriptor with respect to a specific version of the EJB
-| schema.
-
- type "String"
- exportControl "Public")))
- (object Class "MethodElement"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-001f-005d9e6adec4:1")))
- quid "392ED22D008A"
- documentation
-|The method element is used to denote a method of an enterprise bean's
-|home or remote interface, or a set of methods. The ejb-name element
-|must be the name of one of the enterprise beans in declared in the
-|deployment descriptor; the optional method-intf element allows to
-|distinguish between a method with the same signature that is defined in
-|both the home and remote interface; the method-name element specifies
-|the method name; and the optional method-params elements identify a
-|single method among multiple methods with an overloaded method name.
-|
-|There are three possible styles of the method element syntax:
-|
-|1. <method>
-| <ejb-name>EJBNAME</ejb-name>
-| <method-name>*</method-name>
-| </method>
-|
-| This style is used to refer to all the methods of the specified
-| enterprise bean's home and remote interfaces.
-|
-|2. <method>
-| <ejb-name>EJBNAME</ejb-name>
-| <method-name>METHOD</method-name>
-| </method>>
-|
-| This style is used to refer to the specified method of the
-| specified enterprise bean. If there are multiple methods with
-| the same overloaded name, the element of this style refers to
-| all the methods with the overloaded name.
-|
-|
-|
-|
-|
-|3. <method>
-| <ejb-name>EJBNAME</ejb-name>
-| <method-name>METHOD</method-name>
-| <method-params>
-| <method-param>PARAM-1</method-param>
-| <method-param>PARAM-2</method-param>
-| ...
-| <method-param>PARAM-n</method-param>
-| </method-params>
-| <method>
-|
-| This style is used to refer to a single method within a set of
-| methods with an overloaded name. PARAM-1 through PARAM-n are the
-| fully-qualified Java types of the method's input parameters (if
-| the method has no input arguments, the method-params element
-| contains no method-param elements). Arrays are specified by the
-| array element's type, followed by one or more pair of square
-| brackets (e.g. int[][]).
-|
-|
-|Used in: method-permission and container-transaction
-|
-|Examples:
-|
-| Style 1: The following method element refers to all the methods of
-| the EmployeeService bean's home and remote interfaces:
-|
-| <method>
-| <ejb-name>EmployeeService</ejb-name>
-| <method-name>*</method-name>
-| </method>
-|
-| Style 2: The following method element refers to all the create
-| methods of the EmployeeService bean's home interface:
-|
-| <method>
-| <ejb-name>EmployeeService</ejb-name>
-| <method-name>create</method-name>
-| </method>
-|
-| Style 3: The following method element refers to the
-| create(String firstName, String LastName) method of the
-| EmployeeService bean's home interface.
-|
-| <method>
-| <ejb-name>EmployeeService</ejb-name>
-| <method-name>create</method-name>
-| <method-params>
-| <method-param>java.lang.String</method-param>
-| <method-param>java.lang.String</method-param>
-| </method-params>
-| </method>
-|
-|
-| The following example illustrates a Style 3 element with
-| more complex parameter types. The method
-| foobar(char s, int i, int[] iar, mypackage.MyClass mycl,
-| mypackage.MyClass[][] myclaar)
-| would be specified as:
-|
-| <method>
-| <ejb-name>EmployeeService</ejb-name>
-| <method-name>foobar</method-name>
-| <method-params>
-| <method-param>char</method-param>
-| <method-param>int</method-param>
-| <method-param>int[]</method-param>
-| <method-param>mypackage.MyClass</method-param>
-| <method-param>mypackage.MyClass[][]</method-param>
-| </method-params>
-| </method>
-|
-| The optional method-intf element can be used when it becomes
-| necessary to differentiate between a method defined in the home
-| interface and a method with the same name and signature that is
-| defined in the remote interface.
-|
-| For example, the method element
-|
-| <method>
-| <ejb-name>EmployeeService</ejb-name>
-| <method-intf>Remote</method-intf>
-| <method-name>create</method-name>
-| <method-params>
-| <method-param>java.lang.String</method-param>
-| <method-param>java.lang.String</method-param>
-| </method-params>
-| </method>
-|
-| can be used to differentiate the create(String, String) method
-| defined in the remote interface from the create(String, String)
-| method defined in the home interface, which would be defined as
-|
-| <method>
-| <ejb-name>EmployeeService</ejb-name>
-| <method-intf>Home</method-intf>
-| <method-name>create</method-name>
-| <method-params>
-| <method-param>java.lang.String</method-param>
-| <method-param>java.lang.String</method-param>
-| </method-params>
-| </method>
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0020-005d9e6adec4:1")))
- quid "392ED2640378"
- documentation
-|The method-name element contains a name of an enterprise bean method,
-|or the asterisk (*) character. The asterisk is used when the element
-|denotes all the methods of an enterprise bean's remote and home
-|interfaces.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "parms"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0021-005d9e6adec4:1")))
- quid "392ED2640396"
- documentation
-|The method-params element contains a list of the fully-qualified Java type names of the method parameters. In the current implementation this is a space delimitted String. A null string indicates a generic method element that can apply to multiple methods with the same name. An empty string indicates a method with zero parameters. In future implementations (post V5), this field will be deprecated and migrated to use the multi-valued params field and the isZeroParams flag.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "type"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0022-005d9e6adec4:1"))
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "392ED26403B4"
- type "MethodElementKind"
- quidu "392ED2E70240"
- exportControl "Public")
- (object ClassAttribute "description"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0023-005d9e6adec4:1")))
- quid "398846C20370"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.
-
- type "String"
- exportControl "Public")))
- (object Class "MethodElementKind"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0024-005d9e6adec4:1")))
- quid "392ED2E70240"
- documentation
-|@version J2EE1.4 added ServiceEndpoint
-|Unspecified=0
-|Remote=1
-|Home=2
-|Local=3
-|LocalHome=4
-|ServiceEndpoint=5
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "Unspecified"
- quid "3CB47A280180")
- (object ClassAttribute "Remote"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0026-005d9e6adec4:1")))
- quid "392ED311024A")
- (object ClassAttribute "Home"
- quid "3CB47A730188")
- (object ClassAttribute "Local"
- quid "39886E0D0301")
- (object ClassAttribute "LocalHome"
- quid "39886E0F0209")
- (object ClassAttribute "ServiceEndpoint"
- quid "3E4D28A10333")))
- (object Class "CMPAttribute"
- quid "3A2288630003"
- documentation
-|Describes a container-managed field. The field element includes an optional description of the field, and the name of the field.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3A2288770341"
- supplier "Logical View::ecore::EAttribute"
- quidu "39238472039D"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "399ABC1500F0"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description is used by the ejb-jar file producer to provide text describing the cmr field.
-|
-|The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")))
- (object Class "Relationships"
- quid "39BEF81703B3"
- documentation "The relationships describes the relationships in which entity beans with container managed persistence participate. The relationships element contains an optional description; and a list of ejb-relation elements, which specify the container managed relationships."
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "39BF09670239"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description is used by the ejb-jar file producer to provide text describing the collection of relationships.
-|
-|The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")))
- (object Class "Query"
- quid "39BF02710327"
- documentation
-|The query element is used to specify a finder or select query. It contains an optional description of the query; the specification of the finder or select method it is used by; a specification of the return type mapping, if any, if the query is for a select method; and the EJB QL query string that defines the query. Queries that are expressible in EJB QL must use the ejb-ql element to specify the query. If a query
-|is not expressible in EJB QL, the description element should be used to describe the semantics of the query and the ejb-ql element should be empty.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "39BF050D004D"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description is used by the ejb-jar file producer to provide text describing the query.
-|
-|The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "ejbQL"
- quid "39BF058C0399"
- documentation
-|Contains the EJB QL query string that defines a finder or select query. This element is defined within the scope of a query element whose contents specify the finder or the select method that uses the query. The content must be a valid EJB QL query string for the entity bean for which the query is specified. The ejb-ql element must be specified for all queries that are expressible in EJB QL.
-|
-|@invariant The value must be a valid EJB QL query string for the entity bean or dependent object class for which the query is specified.
-|@invariant The ejb-ql element must be specified for all queries that are expressible in EJB QL.
-|
-|Example:
-|<query>
-|<query-method>
-|<method-name>ejbSelectPendingLineitems</method-name>
-|<method-params/>
-|</query-method>
-|<ejb-ql>SELECT ENTITY(l)
-|FROM LineItems l
-|WHERE l.shipped is FALSE
-|</ejb-ql>
-|</query>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "returnTypeMapping"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3988710702CA"
- documentation "The return-type-mapping element is used in the query element to specify whether an abstract schema type that is returned by a query for a select method is to be mapped to an EJBLocalObject or EJBObject type. The value of the return-type-mapping element, if specified must be one of the following."
- stereotype "0..1"
- type "ReturnTypeMapping"
- quidu "398870D30276"
- exportControl "Public")))
- (object Class "EJBRelation"
- quid "39BF0C0203BF"
- documentation
-|@version J2EE1.3
-|The ejb-relation element describes a relationship between two entity beans with container managed persistence. An ejb-relation element contains a description; an optional ejb-relation-name element; and exactly two relationship role declarations, defined by the ejb-relationship-roles. The name of the relationship, if specified, is unique within the ejb-jar file.
-|
-|@invariant The name of the relationship, if specified, is unique within the ejb-jar file.
-|@invariant self.relationshipRoles.size == 2
-|@invariant self.relationshipRoles[0].name != self.relationshipRoles[1].name
-|
-|@migration EJB1.1 Moved from ejbext::EjbRelationshipRole contained under ejbext::EJBJarExtension
-|@migration EJB1.1 added optional attribute, description:String
-|@migration EJB1.1 added optional attribute, name:String (May have been inherited from RefBaseObject previously)
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "39BF0D4A02BC"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description is used by the ejb-jar file producer to provide text describing the ejb relation.
-|
-|The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "name"
- quid "39BF0D6F037E"
- documentation
-|The name of the relationship. If specified, must be unique within the ejb-jar file.
-|@invariant self.name unique within Set<collect(ejbJar.ejbRelations.name)>
-
- stereotype "0..1"
- type "String"
- exportControl "Public")))
- (object Class "EJBRelationshipRole"
- quid "39BF0DD0023D"
- documentation
-|@version J2EE1.3
-|The ejb-relationship-role element describes a role within a relationship.
-|There are two roles in each relationship. The ejb-relationship-role element contains an optional description; an optional name for the relationship role; a specification of the multiplicity of the role; an optional specification of cascade-delete functionality for the role; the role source; and a declaration of the cmr-field, if any, by means of which the other side of the relationship is accessed from the perspective of the role source. The multiplicity and relationship-role-source element are mandatory. The relationship-role-source element designates an entity-bean by means of an ejb-name element. For bidirectional relationships, both roles of a relationship must declare a relationship-role-source element that specifies a cmr-field in terms of which the relationship is accessed. The lack of a cmr-field element in an ejb-relationship-role specifies that the relationship is unidirectional in navigability and that entity bean that participates in the relationship is "not aware" of the relationship.
-|
-|@invariant multiplicity != null
-|@invariant roleSource != null
-|@invariant Cascade delete can only be specified in an EJBRelationshipRole element in which the roleSource element specifies a dependent object class.
-|@invariant Cascade delete can only be specified for an EJBRelationshipRole contained in an EJBrelation in which the other EJBRelationshipRole element specifies a multiplicity of One.
-|
-|Example:
-|<ejb-relation>
-| <ejb-relation-name>Product-LineItem</ejb-relation-name>
-| <ejb-relationship-role>
-| <ejb-relationship-role-name>product-has-lineitems</ejb-relationship-role-name>
-| <multiplicity>One</multiplicity>
-| <relationship-role-source>
-| <ejb-name>ProductEJB</ejb-name>
-| </relationship-role-source>
-| </ejb-relationship-role>
-|...
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "39BF102601B0"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|The description is used by the ejb-jar file producer to provide text describing the ejb relationship role.
-|
-|The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "roleName"
- quid "39BF11580052"
- documentation
-|Defines a name for a role that is unique within an ejb-relation. Different relationships can use the same name for a role.
-|
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "multiplicity"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "39BF12E902CF"
- documentation
-|Describes the multiplicity of the role that participates in a relation.
-|
-|The multiplicity element must be one of the two following:
-| One
-| Many
-|
-
- type "MultiplicityKind"
- quidu "399AEBCB02B7"
- exportControl "Public")
- (object ClassAttribute "cascadeDelete"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "39BF161E02EE"
- documentation
-|Specifies that, within a particular relationship, the lifetime of one or more entity beans is dependent upon the lifetime of another entity bean. The cascade-delete element can Cascade delete can only be specified for an EJBRelationshipRole contained in an EJBrelation in which the other EJBRelationshipRole element specifies a multiplicity of One.
-|
-|
-|
-
- type "boolean"
- exportControl "Public")))
- (object Class "RoleSource"
- quid "39BF147500E4"
- documentation
-|Designates the source of a role that participates in a relationship. A relationship-role-source element uniquely identifies an entity bean.
-|@invariant The content of each role-source element shall refer to an existing entity bean, entity bean reference.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "3988849102EB"
- documentation "@version J2EE1.4 deprecated, becomes descriptions"
- type "String"
- exportControl "Public")))
- (object Class "CMRField"
- quid "39BF1810004B"
- documentation
-|@version J2EE1.3
-|Describes the bean provider's view of a relationship. It consists of an optional description, and the name and the class type of a field in the source of a role of a relationship. The CMRField::name element corresponds to the name used for the get and set accessor methods for the relationship. The CMRField::type element is used only for collection-valued CMRFields. It specifies the type of the collection that is used (a java class name).
-|
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "399AD4690170"
- supplier "Logical View::ejb::CMPAttribute"
- quidu "3A2288630003")))
- (object Class "MessageDriven"
- quid "39BF3248010B"
- documentation
-|The message-driven element declares a message-driven
-|bean. The declaration consists of:
-|
-| - an optional description
-| - an optional display name
-| - an optional icon element that contains a small and a large
-| icon file name.
-| - a name assigned to the enterprise bean in
-| the deployment descriptor
-| - the message-driven bean's implementation class
-| - an optional declaration of the bean's messaging
-| type
-| - the message-driven bean's transaction management type
-| - an optional declaration of the bean's
-| message-destination-type
-| - an optional declaration of the bean's
-| message-destination-link
-| - an optional declaration of the message-driven bean's
-| activation configuration properties
-| - an optional declaration of the bean's environment
-| entries
-| - an optional declaration of the bean's EJB references
-| - an optional declaration of the bean's local EJB
-| references
-| - an optional declaration of the bean's web service
-| references
-| - an optional declaration of the security
-| identity to be used for the execution of the bean's
-| methods
-| - an optional declaration of the bean's
-| resource manager connection factory
-| references
-| - an optional declaration of the bean's resource
-| environment references.
-| - an optional declaration of the bean's message
-| destination references
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "39BF3253026F"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "transactionType"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "39BF33870164"
- documentation
-|The transaction-type element specifies an enterprise bean's transaction management type.
-|
-|The transaction-type element must be one of the two following: Bean, Container
-
- stereotype "0..1"
- type "TransactionType"
- quidu "37FCA48702EF"
- exportControl "Public")
- (object ClassAttribute "messageSelector"
- quid "39BF33960133"
- documentation
-|The message-selector element is used to specify the JMS message
-|selector to be used in determining which messages a message-driven
-|bean is to receive.
-|
-|Example value:
-|JMSType = `car' AND color = `blue' AND weight > 2500
-|
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "acknowledgeMode"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "39BF33AE0160"
- documentation
-|an optional declaration of the acknowledgment mode for the message-driven bean if bean-managed transaction demarcation is used (ie. self.transactionType = Bean)
-|
-|The acknowledge-mode specifies whether JMS AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE message acknowledgment semantics should be used for the onMessage message of a message-driven bean that uses bean managed transaction demarcation.
-|
-|The acknowledge-mode must be one of the two following: Auto-acknowledge, Dups-ok-acknowledge
-|
-
- stereotype "0..1"
- type "AcknowledgeMode"
- quidu "39BF36D703E4"
- exportControl "Public")
- (object ClassAttribute "link"
- quid "4057A525008A"
- documentation
-| - an optional declaration of the bean's
-| message-destination-link
-|
-
- stereotype "0..1"
- type "String"
- exportControl "Public")))
- (object Class "MessageDrivenDestination"
- quid "39BF33F10044"
- documentation "The message-driven-destination element provides advice to the Deployer as to whether a message-driven bean is intended for a Queue or a Topic. The declaration consists of: the type of the message-driven bean's intended destination and an optional declaration of whether a durable or non-durable subscription should be used if the destination-type is javax.jms.Topic."
- class_attributes (list class_attribute_list
- (object ClassAttribute "type"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "39BF386B002D"
- documentation
-|The destination-type element specifies the type of the JMS destination. The type is specified by the Java interface expected to be implemented by the destination.
-|
-|The destination-type element must be one of the two following: javax.jms.Queue, javax.jms.Topic
-
- type "DestinationType"
- quidu "39978F5C0106"
- exportControl "Public")
- (object ClassAttribute "subscriptionDurability"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "39BF389B0087"
- documentation
-|The subscription-durability element specifies whether a JMS topic subscription is intended to be durable or nondurable.
-|
-|The subscription-durability element must be one of the two following: Durable, NonDurable
-|
-
- type "SubscriptionDurabilityKind"
- quidu "39BF38F0029C"
- exportControl "Public")))
- (object Class "AcknowledgeMode"
- quid "39BF36D703E4"
- documentation
-|Auto-acknowledge=0
-|Dups-ok-acknowledge=1
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "AutoAcknowledge"
- quid "39BF36FA03BC"
- exportControl "Public")
- (object ClassAttribute "DupsOkAcknowledge"
- quid "39BF3701038A"
- exportControl "Public")))
- (object Class "SubscriptionDurabilityKind"
- quid "39BF38F0029C"
- documentation
-|Durable=0
-|NonDurable=1
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "Durable"
- quid "39BF391B01AD"
- exportControl "Public")
- (object ClassAttribute "NonDurable"
- quid "39BF391D02DC"
- exportControl "Public")))
- (object Class "ReturnTypeMapping"
- quid "398870D30276"
- documentation
-|Local=0
-|Remote=1
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "Local"
- quid "398870E402E8"
- exportControl "Public")
- (object ClassAttribute "Remote"
- quid "3E9B0B4F002A"
- exportControl "Public")))
- (object Class "ExcludeList"
- quid "3997216E0147"
- documentation
-|The exclude list element defines a set of methods which the Assembler marks to be uncallable. It contains one or more methods.
-|
-|If the method permission relation contains methods that are in the exclude list, the Deployer must consider those methods to be uncallable.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "399721A100A0"
- documentation "@version J2EE1.4 deprecated, becomes descriptions"
- type "String"
- exportControl "Public")))
- (object Class "DestinationType"
- quid "39978F5C0106"
- documentation
-|Queue=0
-|Topic=1
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "Queue"
- quid "39978F680352"
- exportControl "Public")
- (object ClassAttribute "Topic"
- quid "39978F7C0026"
- exportControl "Public")))
- (object Class "QueryMethod"
- quid "399ACD9C02DF"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "399AD23802A9"
- supplier "Logical View::ejb::MethodElement"
- quidu "392ED22D008A")))
- (object Class "MultiplicityKind"
- quid "399AEBCB02B7"
- documentation
-|One=0
-|Many=1
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "One"
- quid "399AEBEA0030"
- exportControl "Public")
- (object ClassAttribute "Many"
- quid "399AEBEE0375"
- exportControl "Public")))
- (object Class "ActivationConfigProperty"
- quid "3E4D1A1A00BF"
- documentation
-|@version J2EE1.4
-|The activation-config-propertyType contains a name/value
-|configuration property pair for a message-driven bean.
-|
-|The properties that are recognized for a particular
-|message-driven bean are determined by the messaging type.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "value"
- quid "3E4D1A36034A"
- documentation
-|The activation-config-property-value element
-| contains the value for an activation configuration
-| property of a message-driven bean.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "name"
- quid "3E4D1A49024D"
- documentation
-|The activation-config-property-name element contains
-| the name for an activation configuration property of
-| a message-driven bean.
-|
-| For JMS message-driven beans, the following property
-| names are recognized: acknowledgeMode,
-| messageSelector, destinationType, subscriptionDurability
-
- type "String"
- exportControl "Public")))
- (object Class "ActivationConfig"
- quid "3E4D1A7E0131"
- documentation
-|@version J2EE1.4
-|The activation-configType defines information about the
-|expected configuration properties of the message-driven bean
-|in its operational environment. This may include information
-|about message acknowledgement, message selector, expected
-|destination type, etc.
-|
-|The configuration information is expressed in terms of
-|name/value configuration properties.
-|
-|The properties that are recognized for a particular
-|message-driven bean are determined by the messaging type.
- )
- (object Association "$UNNAMED$0"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0028-005d9e6adec4:1")))
- quid "3780E323012D"
- roles (list role_list
- (object Role "$UNNAMED$1"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0029-005d9e6adec4:1")))
- quid "3780E323012E"
- supplier "Logical View::common::JNDIEnvRefsGroup"
- quidu "3E4D53950349"
- is_aggregate TRUE)
- (object Role "environmentProperties"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-002a-005d9e6adec4:1")))
- quid "3780E323012F"
- label "environmentProperties"
- supplier "Logical View::common::EnvEntry"
- quidu "371BC77800E2"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$2"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-002b-005d9e6adec4:1")))
- quid "3780E3230139"
- roles (list role_list
- (object Role "$UNNAMED$3"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-002c-005d9e6adec4:1")))
- quid "3780E323013A"
- supplier "Logical View::common::JNDIEnvRefsGroup"
- quidu "3E4D53950349"
- is_aggregate TRUE)
- (object Role "resourceRefs"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-002d-005d9e6adec4:1")))
- quid "3780E323013B"
- label "resourceRefs"
- supplier "Logical View::common::ResourceRef"
- quidu "371BC79303C6"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "EjbToRoles"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-002e-005d9e6adec4:1")))
- quid "3780E3230144"
- roles (list role_list
- (object Role "$UNNAMED$4"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-002f-005d9e6adec4:1")))
- quid "3780E3230145"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A"
- is_aggregate TRUE)
- (object Role "securityRoleRefs"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0030-005d9e6adec4:1")))
- quid "3780E3230146"
- label "securityRoleRefs"
- supplier "Logical View::common::SecurityRoleRef"
- quidu "371BC7A0025C"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "AssemblyDescriptorToMethodPermissions"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0031-005d9e6adec4:1")))
- quid "3780E35000D1"
- roles (list role_list
- (object Role "assemblyDescriptor"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0032-005d9e6adec4:1")))
- quid "3780E35000D2"
- label "assemblyDescriptor"
- supplier "Logical View::ejb::AssemblyDescriptor"
- quidu "3780E35000D4"
- client_cardinality (value cardinality "1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "methodPermissions"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0033-005d9e6adec4:1")))
- quid "3780E35000D3"
- label "methodPermissions"
- supplier "Logical View::ejb::MethodPermission"
- quidu "3780E35000D0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "MethodPermissionToMethods"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0034-005d9e6adec4:1")))
- quid "3780E35000EA"
- roles (list role_list
- (object Role "/methods"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0035-005d9e6adec4:1")))
- quid "3780E35000EB"
- label "/methods"
- supplier "Logical View::java::Method"
- quidu "3654AE910271"
- client_cardinality (value cardinality "1..n")
- is_navigable TRUE)
- (object Role "/methodPermission"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0036-005d9e6adec4:1")))
- quid "3780E35000EC"
- label "/methodPermission"
- supplier "Logical View::ejb::MethodPermission"
- quidu "3780E35000D0"
- client_cardinality (value cardinality "0..n")))
- derived TRUE)
- (object Association "AssemblyDescriptorToMethodTransactions"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0037-005d9e6adec4:1")))
- quid "3780E35000D5"
- roles (list role_list
- (object Role "assemblyDescriptor"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0038-005d9e6adec4:1")))
- quid "3780E35000D6"
- label "assemblyDescriptor"
- supplier "Logical View::ejb::AssemblyDescriptor"
- quidu "3780E35000D4"
- client_cardinality (value cardinality "1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "methodTransactions"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0039-005d9e6adec4:1")))
- quid "3780E35000D7"
- documentation "Specifies how the container must manage transaction scopes for the enterprise bean's method invocations. The element consists of an optional description, a list of method elements, and a transaction attribute.The transaction attribute is to be applied to all the specified methods."
- label "methodTransactions"
- supplier "Logical View::ejb::MethodTransaction"
- quidu "3780E35000DE"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$5"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-003a-005d9e6adec4:1")))
- quid "3780E35000E0"
- roles (list role_list
- (object Role "/methods"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-003b-005d9e6adec4:1")))
- quid "3780E35000E1"
- label "/methods"
- supplier "Logical View::java::Method"
- quidu "3654AE910271"
- client_cardinality (value cardinality "1..n")
- is_navigable TRUE)
- (object Role "/transactions"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-003c-005d9e6adec4:1")))
- quid "3780E35000E2"
- label "/transactions"
- supplier "Logical View::ejb::MethodTransaction"
- quidu "3780E35000DE"
- client_cardinality (value cardinality "0..n"))))
- (object Association "ejbClass"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-003d-005d9e6adec4:1")))
- quid "380FDC3402C7"
- documentation "The ejb-class element contains the fully-qualified name of the enterprise bean's class. Example: <ejb-class>com.wombat.empl.EmployeeServiceBean</ejb-class>"
- roles (list role_list
- (object Role "ejbClass"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-003e-005d9e6adec4:1")))
- quid "380FDC3501EC"
- label "ejbClass"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)
- (object Role "ejb"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-003f-005d9e6adec4:1")))
- quid "380FDC3501F6"
- label "ejb"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A")))
- (object Association "homeInterface"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0040-005d9e6adec4:1")))
- quid "380FDC3701C7"
- documentation "The home element contains the fully-qualified name of the enterprise bean's home interface."
- roles (list role_list
- (object Role "homeInterface"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0041-005d9e6adec4:1")))
- quid "380FDC440143"
- label "homeInterface"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)
- (object Role "ejb"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0042-005d9e6adec4:1")))
- quid "380FDC44014D"
- label "ejb"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A")))
- (object Association "remoteInterface"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0043-005d9e6adec4:1")))
- quid "380FDC46006A"
- documentation
-|The remote element contains the fully-qualified name of the enterprise bean's remote interface.
-|Example: <remote>com.wombat.empl.EmployeeService</remote>
-|
-
- roles (list role_list
- (object Role "remoteInterface"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0044-005d9e6adec4:1")))
- quid "380FDC470166"
- label "remoteInterface"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)
- (object Role "ejb"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0045-005d9e6adec4:1")))
- quid "380FDC470167"
- label "ejb"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A")))
- (object Association "primaryKey"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0046-005d9e6adec4:1")))
- quid "380FDDDF006B"
- roles (list role_list
- (object Role "primaryKey"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0047-005d9e6adec4:1")))
- quid "380FDDE00117"
- documentation
-|The primkey-field element is used to specify the name of the primary key field for an entity with container-managed persistence. The primkey-field must be one of the fields declared in the cmp-field
-|element, and the type of the field must be the same as the primary key type. The primkey-field element is not used if the primary key maps to multiple container-managed fields (i.e. the key is a compound key). In this case, the fields of the primary key class must be public, and their names must correspond to the field names of the entity bean class that comprise the key.
-|Examples:<prim-key-class>java.lang.String</prim-key-class>
-| <prim-key-class>com.wombat.empl.EmployeeID</prim-key-class>
-| <prim-key-class>java.lang.Object</prim-key-class>
-|
-
- label "primaryKey"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)
- (object Role "ejb"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0048-005d9e6adec4:1")))
- quid "380FDDE00121"
- label "ejb"
- supplier "Logical View::ejb::Entity"
- quidu "3780E6970351")))
- (object Association "jarToAssemblyDescriptor"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0049-005d9e6adec4:1")))
- quid "38FF3CF801EE"
- roles (list role_list
- (object Role "assemblyDescriptor"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-004a-005d9e6adec4:1")))
- quid "38FF3CF90249"
- label "assemblyDescriptor"
- supplier "Logical View::ejb::AssemblyDescriptor"
- quidu "3780E35000D4"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "ejbJar"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-004b-005d9e6adec4:1")))
- quid "38FF3CF90267"
- label "ejbJar"
- supplier "Logical View::ejb::EJBJar"
- quidu "371BC55D01E1"
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "ejbJarToEnterpriseBeans"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-004c-005d9e6adec4:1")))
- quid "38FF3D1F003B"
- roles (list role_list
- (object Role "enterpriseBeans"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-004d-005d9e6adec4:1")))
- quid "38FF3D1F037A"
- documentation "The enterprise-beans element contains the declarations of one or more enterprise beans."
- label "enterpriseBeans"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "ejbJar"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-004e-005d9e6adec4:1")))
- quid "38FF3D1F03CB"
- label "ejbJar"
- supplier "Logical View::ejb::EJBJar"
- quidu "371BC55D01E1"
- client_cardinality (value cardinality "1")
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "$UNNAMED$6"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-004f-005d9e6adec4:1")))
- quid "392ED18900FC"
- roles (list role_list
- (object Role "roles"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0050-005d9e6adec4:1")))
- quid "392ED18A028E"
- label "roles"
- supplier "Logical View::common::SecurityRole"
- quidu "38C031FE012D"
- client_cardinality (value cardinality "1..n")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$7"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b4a5e0-8826-11e1-0051-005d9e6adec4:1")))
- quid "392ED18A02D4"
- supplier "Logical View::ejb::MethodPermission"
- quidu "3780E35000D0"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$8"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0000-005d9e6adec4:1")))
- quid "392ED2880077"
- roles (list role_list
- (object Role "methodElements"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0001-005d9e6adec4:1")))
- quid "392ED289001E"
- label "methodElements"
- supplier "Logical View::ejb::MethodElement"
- quidu "392ED22D008A"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$9"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0002-005d9e6adec4:1")))
- quid "392ED2890028"
- supplier "Logical View::ejb::MethodPermission"
- quidu "3780E35000D0"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$10"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0003-005d9e6adec4:1")))
- quid "392ED40900D4"
- roles (list role_list
- (object Role "methodElements"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0004-005d9e6adec4:1")))
- quid "392ED40A018A"
- label "methodElements"
- supplier "Logical View::ejb::MethodElement"
- quidu "392ED22D008A"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$11"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0005-005d9e6adec4:1")))
- quid "392ED40A019E"
- supplier "Logical View::ejb::MethodTransaction"
- quidu "3780E35000DE"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$12"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0006-005d9e6adec4:1")))
- quid "3937D6FF011D"
- roles (list role_list
- (object Role "enterpriseBean"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0007-005d9e6adec4:1")))
- quid "3937D7000178"
- label "enterpriseBean"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A"
- client_cardinality (value cardinality "1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "methodElement"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0008-005d9e6adec4:1")))
- quid "3937D7000218"
- label "methodElement"
- supplier "Logical View::ejb::MethodElement"
- quidu "392ED22D008A"
- client_cardinality (value cardinality "0..n")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$13"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0009-005d9e6adec4:1")))
- quid "393EBFC500B4"
- roles (list role_list
- (object Role "securityRoles"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-000a-005d9e6adec4:1")))
- quid "393EBFC60083"
- label "securityRoles"
- supplier "Logical View::common::SecurityRole"
- quidu "38C031FE012D"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$14"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-000b-005d9e6adec4:1")))
- quid "393EBFC600C0"
- supplier "Logical View::ejb::AssemblyDescriptor"
- quidu "3780E35000D4"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$15"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-000c-005d9e6adec4:1")))
- quid "39045AE401F1"
- roles (list role_list
- (object Role "$UNNAMED$16"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-000d-005d9e6adec4:1")))
- quid "39045AE50080"
- supplier "Logical View::common::JNDIEnvRefsGroup"
- quidu "3E4D53950349"
- is_aggregate TRUE)
- (object Role "ejbRefs"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-000e-005d9e6adec4:1")))
- quid "39045AE50301"
- label "ejbRefs"
- supplier "Logical View::common::EjbRef"
- quidu "371BC78202B3"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$17"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-000f-005d9e6adec4:1")))
- quid "398831C30245"
- roles (list role_list
- (object Role "persistentAttributes"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0010-005d9e6adec4:1")))
- quid "398831C50157"
- label "persistentAttributes"
- supplier "Logical View::ejb::CMPAttribute"
- quidu "3A2288630003"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "entity"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0011-005d9e6adec4:1")))
- quid "398831C5017F"
- label "entity"
- supplier "Logical View::ejb::ContainerManagedEntity"
- quidu "3780E3230174"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$18"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0012-005d9e6adec4:1")))
- quid "3988323B0355"
- roles (list role_list
- (object Role "keyAttributes"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0013-005d9e6adec4:1")))
- quid "3988323D025E"
- label "keyAttributes"
- supplier "Logical View::ejb::CMPAttribute"
- quidu "3A2288630003"
- client_cardinality (value cardinality "0..n")
- is_navigable TRUE)
- (object Role "entity"
- attributes (list Attribute_Set
- (object Attribute
- tool "IDL"
- name "uuid"
- value (value Text "DCE:d8b62c80-8826-11e1-0014-005d9e6adec4:1")))
- quid "3988323D027C"
- label "entity"
- supplier "Logical View::ejb::ContainerManagedEntity"
- quidu "3780E3230174"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$19"
- quid "39BEF8870378"
- roles (list role_list
- (object Role "relationshipList"
- quid "39BEF889003C"
- documentation
-|The relationships collection describes the relationships in which container managed persistence entity beans and dependent objects participate. The relationships element contains an optional description; a list of ejb-entity-ref elements (references to entity beans that participate in container managed relationships but whose abstract persistence schemas are not included in the ejb-jar file);
-|and a list of ejb-relation elements, which specify the container managed relationships.
-
- label "relationshipList"
- supplier "Logical View::ejb::Relationships"
- quidu "39BEF81703B3"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "ejbJar"
- quid "39BEF889003D"
- label "ejbJar"
- supplier "Logical View::ejb::EJBJar"
- quidu "371BC55D01E1"
- client_cardinality (value cardinality "1")
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "$UNNAMED$20"
- quid "39BF056702CD"
- roles (list role_list
- (object Role "queryMethod"
- quid "39BF056901EA"
- documentation
-|The query-method element is used to specify the method (DB/SR/CM-"on the home") for a finder or
-|select query.
-|
-|The method-name element specifies the name of a finder or select
-|method in the entity bean's implementation class or a select method in
-|the dependent object class.
-|
-|Each method-param must be defined for a query-method using the
-|method-params element.
-|
-|Used in: query
-|
-|Example:
-|
-|Example:
-|<query>
-| <description>Method finds large orders</description>
-| <query-method>
-| <method-name>findLargeOrders</method-name>
-| <method-params></method-params>
-| </query-method>
-| <ejb-ql>SELECT ENTITY(o) FROM Order o WHERE o.amount > 1000</ejb-ql>
-|</query>
-
- label "queryMethod"
- supplier "Logical View::ejb::QueryMethod"
- quidu "399ACD9C02DF"
- client_cardinality (value cardinality "1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "query"
- quid "39BF056901F4"
- label "query"
- supplier "Logical View::ejb::Query"
- quidu "39BF02710327"
- client_cardinality (value cardinality "1")
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "$UNNAMED$21"
- quid "39BF0C400147"
- roles (list role_list
- (object Role "ejbRelations"
- quid "39BF0C41001C"
- documentation "A list of ejb-relation elements, which specify the container managed relationships."
- label "ejbRelations"
- supplier "Logical View::ejb::EJBRelation"
- quidu "39BF0C0203BF"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "relationshipList"
- quid "39BF0C41001D"
- label "relationshipList"
- supplier "Logical View::ejb::Relationships"
- quidu "39BEF81703B3"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "$UNNAMED$22"
- quid "39BF0DE30136"
- roles (list role_list
- (object Role "relationshipRoles"
- quid "39BF0DE303D5"
- documentation
-|A collection containing exactly two relationship roles.
-|
-|@migration EJB1.1 Containment used to be by reference on relation--now by value.
-|
-
- label "relationshipRoles"
- supplier "Logical View::ejb::EJBRelationshipRole"
- quidu "39BF0DD0023D"
- client_cardinality (value cardinality "2")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "relationship"
- quid "39BF0DE303D6"
- label "relationship"
- supplier "Logical View::ejb::EJBRelation"
- quidu "39BF0C0203BF"
- client_cardinality (value cardinality "1")
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "$UNNAMED$23"
- quid "39BF14EA02FF"
- roles (list role_list
- (object Role "source"
- quid "39BF14EC0059"
- documentation
-|Designates the source of a role that participates in a relationship. A relationship-role-source element uniquely identifies an entity bean.
-|@migration EJB1.1: was ibmejbext::EjbRelationshipRole::sourceEJBName, but that may not be sufficient, as this can now refer to dependent class names or ejb refs
-
- label "source"
- supplier "Logical View::ejb::RoleSource"
- quidu "39BF147500E4"
- client_cardinality (value cardinality "1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "role"
- quid "39BF14EC005A"
- label "role"
- supplier "Logical View::ejb::EJBRelationshipRole"
- quidu "39BF0DD0023D"
- client_cardinality (value cardinality "1")
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "$UNNAMED$24"
- quid "39BF182001C1"
- roles (list role_list
- (object Role "cmrField"
- quid "39BF182100D2"
- documentation
-|A declaration of the CMRField, if any, by means of which the other side of the relationship is accessed from the perspective of the role source
-|
-|@migration EJB1.1: Used to be handled via ibmejbext::EjbRole::attributes list
-
- label "cmrField"
- supplier "Logical View::ejb::CMRField"
- quidu "39BF1810004B"
- client_cardinality (value cardinality "1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "role"
- quid "39BF182100DC"
- label "role"
- supplier "Logical View::ejb::EJBRelationshipRole"
- quidu "39BF0DD0023D"
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "$UNNAMED$25"
- quid "39BF1BBD02ED"
- roles (list role_list
- (object Role "/opposite"
- quid "39BF1BC0039C"
- label "/opposite"
- supplier "Logical View::ejb::EJBRelationshipRole"
- quidu "39BF0DD0023D"
- is_navigable TRUE)
- (object Role "$UNNAMED$26"
- quid "39BF1BC003A6"
- supplier "Logical View::ejb::EJBRelationshipRole"
- quidu "39BF0DD0023D")))
- (object Association "$UNNAMED$27"
- quid "39BF209F00C4"
- roles (list role_list
- (object Role "resourceEnvRefs"
- quid "39BF209F0395"
- documentation
-|A list of enterprise bean references to an administered object associated with a resource in the enterprise bean's environment. It consists of an optional description, the resource environment reference name, and an indication of the resource environment reference type expected by the enterprise bean code.
-|
-
- label "resourceEnvRefs"
- supplier "Logical View::common::ResourceEnvRef"
- quidu "39BF207200D3"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$28"
- quid "39BF209F0396"
- supplier "Logical View::common::JNDIEnvRefsGroup"
- quidu "3E4D53950349"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$29"
- quid "39BF2C1F018F"
- roles (list role_list
- (object Role "securityIdentity"
- quid "39BF2C200263"
- documentation
-|The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It
-|contains an optional description and a specification of the security identity to be used.
-
- label "securityIdentity"
- supplier "Logical View::common::SecurityIdentity"
- quidu "39BF2C040245"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$30"
- quid "39BF2C200264"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$31"
- quid "39BF340801FF"
- roles (list role_list
- (object Role "destination"
- quid "39BF34090052"
- documentation
-|@version J2EE1.4 deprecated, becomes activationConfig
-|An optional declaration of the intended destination type of the message-driven bean
-
- label "destination"
- supplier "Logical View::ejb::MessageDrivenDestination"
- quidu "39BF33F10044"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "bean"
- quid "39BF3409005C"
- label "bean"
- supplier "Logical View::ejb::MessageDriven"
- quidu "39BF3248010B"
- client_cardinality (value cardinality "1")
- is_navigable TRUE
- is_aggregate TRUE)))
- (object Association "$UNNAMED$32"
- quid "398863840172"
- roles (list role_list
- (object Role "ejbLocalRefs"
- quid "3988638502AA"
- label "ejbLocalRefs"
- supplier "Logical View::common::EJBLocalRef"
- quidu "398862E20101"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$33"
- quid "3988638502B4"
- supplier "Logical View::common::JNDIEnvRefsGroup"
- quidu "3E4D53950349"
- is_aggregate TRUE)))
- (object Association "localHomeInterface"
- quid "39886C2B018B"
- documentation
-|Contains the fully-qualified name of the enterprise bean’s local home interface.
-|This reference is only used for Entity and Session beans. Message Driven beans ignore the localHomeInterface if specified.
-
- roles (list role_list
- (object Role "localHomeInterface"
- quid "39886C2C02AF"
- label "localHomeInterface"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE)
- (object Role "$UNNAMED$34"
- quid "39886C2C02D7"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A")))
- (object Association "localInterface"
- quid "39886CC20283"
- documentation
-|Contains the fully-qualified name of the enterprise bean’s local interface.
-|This reference is only used for Entity and Session beans. Message Driven beans ignore the localInterface if specified.
-
- roles (list role_list
- (object Role "localInterface"
- quid "39886CC600EE"
- label "localInterface"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE)
- (object Role "$UNNAMED$35"
- quid "39886CC60120"
- supplier "Logical View::ejb::EnterpriseBean"
- quidu "3780E71A010A")))
- (object Association "$UNNAMED$36"
- quid "398884C2036E"
- roles (list role_list
- (object Role "entityBean"
- quid "398884C3027F"
- label "entityBean"
- supplier "Logical View::ejb::ContainerManagedEntity"
- quidu "3780E3230174"
- client_cardinality (value cardinality "1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$37"
- quid "398884C30289"
- supplier "Logical View::ejb::RoleSource"
- quidu "39BF147500E4"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$38"
- quid "398886F503BD"
- roles (list role_list
- (object Role "/roles"
- quid "398886F602D8"
- label "/roles"
- supplier "Logical View::ejb::EJBRelationshipRole"
- quidu "39BF0DD0023D"
- client_cardinality (value cardinality "0..n")
- is_navigable TRUE)
- (object Role "$UNNAMED$39"
- quid "398886F602E2"
- supplier "Logical View::ejb::ContainerManagedEntity"
- quidu "3780E3230174")))
- (object Association "$UNNAMED$40"
- quid "399721B602F9"
- roles (list role_list
- (object Role "excludeList"
- quid "399721B7023C"
- label "excludeList"
- supplier "Logical View::ejb::ExcludeList"
- quidu "3997216E0147"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$41"
- quid "399721B70246"
- supplier "Logical View::ejb::AssemblyDescriptor"
- quidu "3780E35000D4"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$42"
- quid "3997226501A6"
- roles (list role_list
- (object Role "methodElements"
- quid "399722660284"
- label "methodElements"
- supplier "Logical View::ejb::MethodElement"
- quidu "392ED22D008A"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$43"
- quid "399722660298"
- supplier "Logical View::ejb::ExcludeList"
- quidu "3997216E0147"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$44"
- quid "399AE0FB03D3"
- roles (list role_list
- (object Role "collectionType"
- quid "399AE0FC038F"
- label "collectionType"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE)
- (object Role "$UNNAMED$45"
- quid "399AE0FC03B7"
- supplier "Logical View::ejb::CMRField"
- quidu "39BF1810004B"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$46"
- quid "3E4D1AE2015D"
- roles (list role_list
- (object Role "configProperties"
- quid "3E4D1AE20333"
- label "configProperties"
- supplier "Logical View::ejb::ActivationConfigProperty"
- quidu "3E4D1A1A00BF"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$47"
- quid "3E4D1AE20335"
- supplier "Logical View::ejb::ActivationConfig"
- quidu "3E4D1A7E0131"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$48"
- quid "3E4D1B050149"
- roles (list role_list
- (object Role "activationConfig"
- quid "3E4D1B0700A2"
- documentation "@version J2EE1.4"
- label "activationConfig"
- supplier "Logical View::ejb::ActivationConfig"
- quidu "3E4D1A7E0131"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$49"
- quid "3E4D1B0700A4"
- supplier "Logical View::ejb::MessageDriven"
- quidu "39BF3248010B"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$50"
- quid "3E4D1BF402E7"
- roles (list role_list
- (object Role "messageDestinations"
- quid "3E4D1BF600B9"
- documentation "@version J2EE1.4"
- label "messageDestinations"
- supplier "Logical View::common::MessageDestination"
- quidu "3E4C211001CF"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$51"
- quid "3E4D1BF600C3"
- supplier "Logical View::ejb::AssemblyDescriptor"
- quidu "3780E35000D4"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$52"
- quid "3E4D23AA024F"
- roles (list role_list
- (object Role "messageDestinationRefs"
- quid "3E4D23AD01AA"
- label "messageDestinationRefs"
- supplier "Logical View::common::MessageDestinationRef"
- quidu "3E4C1F52028C"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$53"
- quid "3E4D23AD01B4"
- supplier "Logical View::common::JNDIEnvRefsGroup"
- quidu "3E4D53950349"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$54"
- quid "3E4D25D600F0"
- roles (list role_list
- (object Role "entity"
- quid "3E4D25D600F1"
- label "entity"
- supplier "Logical View::ejb::ContainerManagedEntity"
- quidu "3780E3230174"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "queries"
- quid "3E4D25D600F2"
- documentation
-|@version J2EE1.4 moved from CME
-|The optional query elements must be present if the persistence-type is Container and the cmp-version is 2.x and query methods other than findByPrimaryKey have been defined for the entity bean.
-|
-|@invariant see description
-|
-
- label "queries"
- supplier "Logical View::ejb::Query"
- quidu "39BF02710327"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$55"
- quid "3E4D298201E2"
- roles (list role_list
- (object Role "messageDestination"
- quid "3E4D29830270"
- documentation "@version J2EE1.4"
- label "messageDestination"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "0..1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$56"
- quid "3E4D2983027A"
- supplier "Logical View::ejb::MessageDriven"
- quidu "39BF3248010B")))
- (object Association "$UNNAMED$57"
- quid "3E4D2FA901C9"
- roles (list role_list
- (object Role "serviceRefs"
- quid "3E4D2FAA02C5"
- label "serviceRefs"
- supplier "Logical View::wsclient::ServiceRef"
- quidu "3E4D2F560184"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$58"
- quid "3E4D2FAA02CF"
- supplier "Logical View::common::JNDIEnvRefsGroup"
- quidu "3E4D53950349"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$59"
- quid "3E4D2FE101FC"
- roles (list role_list
- (object Role "serviceInterface"
- quid "3E4D2FE4012E"
- documentation
-|The service-interface element declares the fully qualified class
-| name of the JAX-RPC Service interface the client depends on.
-| In most cases the value will be javax.xml.rpc.Service. A JAX-RPC
-| generated Service Interface class may also be specified.
-
- label "serviceInterface"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$60"
- quid "3E4D2FE4014C"
- supplier "Logical View::wsclient::ServiceRef"
- quidu "3E4D2F560184")))
- (object Association "$UNNAMED$61"
- quid "3E562D9E0254"
- roles (list role_list
- (object Role "messagingType"
- quid "3E562D9F0183"
- documentation
-|@version J2EE1.4
-|The messaging-type element specifies the message
-| listener interface of the message-driven bean. If
-| the messaging-type element is not specified, it is
-| assumed to be javax.jms.MessageListener.
-
- label "messagingType"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "0..1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$62"
- quid "3E562D9F0197"
- supplier "Logical View::ejb::MessageDriven"
- quidu "39BF3248010B")))
- (object Association "$UNNAMED$63"
- quid "3E4D1AAD00AC"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D1AAD03A5"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$64"
- quid "3E4D1AAD03CD"
- supplier "Logical View::ejb::ActivationConfig"
- quidu "3E4D1A7E0131"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$65"
- quid "3E4D1FCB01AA"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D1FCC00C5"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$66"
- quid "3E4D1FCC00E3"
- supplier "Logical View::ejb::EJBRelation"
- quidu "39BF0C0203BF"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$67"
- quid "3E4D28600218"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D28620152"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$68"
- quid "3E4D28620198"
- supplier "Logical View::ejb::MethodElement"
- quidu "392ED22D008A"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$69"
- quid "3E4D210300CD"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D210502EC"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$70"
- quid "3E4D2105030A"
- supplier "Logical View::ejb::RoleSource"
- quidu "39BF147500E4"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$71"
- quid "3E4D1D1F0161"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D1D2001DA"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$72"
- quid "3E4D1D2001EE"
- supplier "Logical View::ejb::CMPAttribute"
- quidu "3A2288630003"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$73"
- quid "3E4D1FBF01CB"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D1FC1001F"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$74"
- quid "3E4D1FC10047"
- supplier "Logical View::ejb::Relationships"
- quidu "39BEF81703B3"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$75"
- quid "3E4D26BB00FA"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D26BC02F0"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$76"
- quid "3E4D26BC0318"
- supplier "Logical View::ejb::MethodPermission"
- quidu "3780E35000D0"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$77"
- quid "3E4D20C102C6"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D20C400CC"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$78"
- quid "3E4D20C400EA"
- supplier "Logical View::ejb::EJBRelationshipRole"
- quidu "39BF0DD0023D"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$79"
- quid "3E4D1F230090"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D1F2303D9"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$80"
- quid "3E4D1F24000F"
- supplier "Logical View::ejb::MethodTransaction"
- quidu "3780E35000DE"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$81"
- quid "3E4D26680317"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D266A00D5"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$82"
- quid "3E4D266A00F3"
- supplier "Logical View::ejb::ExcludeList"
- quidu "3997216E0147"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$83"
- quid "3E56500D0259"
- roles (list role_list
- (object Role "descriptions"
- quid "3E56500E0142"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$84"
- quid "3E56500E0174"
- supplier "Logical View::ejb::Query"
- quidu "39BF02710327"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$85"
- quid "3E567CA2007F"
- roles (list role_list
- (object Role "serviceEndpoint"
- quid "3E567CA30225"
- documentation
-|@version J2EE1.4
-|The service-endpoint element contains the
-| fully-qualified name of the enterprise bean's web
-| service endpoint interface. The service-endpoint
-| element may only be specified for a stateless
-| session bean. The specified interface must be a
-| valid JAX-RPC service endpoint interface.
-
- label "serviceEndpoint"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "0..1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$86"
- quid "3E567CA30243"
- supplier "Logical View::ejb::Session"
- quidu "3780E5F901EB")))
- (object Association "$UNNAMED$87"
- quid "3FA688620267"
- roles (list role_list
- (object Role "$UNNAMED$88"
- quid "3FA68866035D"
- supplier "Logical View::ejb::CMPAttribute"
- quidu "3A2288630003"
- is_navigable TRUE)
- (object Role "$UNNAMED$89"
- quid "3FA68866035F"
- supplier "Logical View::ejb::ContainerManagedEntity"
- quidu "3780E3230174")))
- (object Association "$UNNAMED$90"
- quid "3FA695890240"
- roles (list role_list
- (object Role "primKeyField"
- quid "3FA6958B0008"
- label "primKeyField"
- supplier "Logical View::ejb::CMPAttribute"
- quidu "3A2288630003"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE)
- (object Role "entity"
- quid "3FA6958B0012"
- label "entity"
- supplier "Logical View::ejb::ContainerManagedEntity"
- quidu "3780E3230174"
- is_aggregate TRUE))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "EJB Jar"
- quid "3780E2870251"
- title "EJB Jar"
- documentation
-|Based on the Moscone DD, translating class name elements to class references.
-|
-|Note that EJB-links only appear in the deployment model, at anlysis/design time, they might be derived from the association roles for the EJB.
-|
-|Also, see notes on EnterpriseJavaBean.
-
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 2363
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::ejb::Session" @1
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1133, 1756)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (766, 1625)
- fill_color 13434879
- nlines 2
- max_width 734
- justify 0
- label "Session")
- icon_style "Icon"
- line_color 10485760
- fill_color 14472649
- quidu "3780E5F901EB"
- compartment (object Compartment
- Parent_View @1
- location (766, 1686)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 631)
- width 752
- height 286
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::Entity" @2
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1776, 1756)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (1575, 1650)
- fill_color 13434879
- nlines 2
- max_width 402
- justify 0
- label "Entity")
- icon_style "Icon"
- line_color 10485760
- fill_color 14472649
- quidu "3780E6970351"
- compartment (object Compartment
- Parent_View @2
- location (1575, 1711)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 346)
- width 420
- height 236
- autoResize TRUE)
- (object Label @3
- location (159, 47)
- font (object Font
- size 12
- face "Arial"
- bold TRUE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 1
- max_width 1300
- label "EJB 2.1 Model (EJB2.0 & 1.1 Backward Compatible)")
- (object NoteView @4
- location (526, 2067)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @4
- location (260, 2002)
- fill_color 13434879
- nlines 2
- max_width 496
- label "See detail on separate class diagrams...")
- fill_color 14679807
- width 556
- height 143)
- (object ClassView "Class" "Logical View::ejb::ContainerManagedEntity" @5
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1773, 2140)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @5
- location (1537, 2099)
- fill_color 13434879
- nlines 1
- max_width 472
- justify 0
- label "ContainerManagedEntity")
- icon_style "Icon"
- line_color 10485760
- fill_color 14472649
- quidu "3780E3230174"
- width 490
- height 107
- annotation 8
- autoResize TRUE)
- (object InheritView "" @6
- stereotype TRUE
- line_color 10485760
- quidu "3780E3230175"
- client @5
- supplier @2
- vertices (list Points
- (1775, 2087)
- (1775, 1874))
- line_style 3
- origin_attachment (1775, 2087)
- terminal_attachment (1775, 1874))
- (object ClassView "Class" "Logical View::ejb::MessageDriven" @7
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2275, 1683)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @7
- location (2119, 1642)
- fill_color 13434879
- nlines 1
- max_width 312
- justify 0
- label "MessageDriven")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF3248010B"
- width 330
- height 107
- annotation 8
- autoResize TRUE)
- (object NoteView @8
- location (2431, 1971)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @8
- location (2218, 1865)
- fill_color 13434879
- nlines 4
- max_width 390
- label "See EJB2.0 Message Driven Bean diagram for details.")
- fill_color 14679807
- width 450
- height 225)
- (object AttachView "" @9
- stereotype TRUE
- client @8
- supplier @7
- vertices (list Points
- (2369, 1858)
- (2303, 1736))
- line_style 0)
- (object NoteView @10
- location (1597, 2412)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @10
- location (1394, 2306)
- fill_color 13434879
- nlines 4
- max_width 371
- label "See Container Managed Entity diagram for details.")
- fill_color 14679807
- width 431
- height 225)
- (object AttachView "" @11
- stereotype TRUE
- client @10
- supplier @5
- vertices (list Points
- (1669, 2299)
- (1738, 2193))
- line_style 0)
- (object NoteView @12
- location (845, 1388)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @12
- location (617, 1307)
- fill_color 13434879
- nlines 3
- max_width 421
- label "Added ejbJar back reference")
- fill_color 14679807
- width 481
- height 175)
- (object NoteView @13
- location (381, 378)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @13
- location (62, 134)
- fill_color 13434879
- nlines 9
- max_width 603
- label
-|Deprecations:
-|EJBJar::description
-|EJBJar::displayName
-|EJBJar::smallIcon
-|EJBJar::largeIcon
-|EnterpriseBean::description
-|EnterpriseBean::displayName
-|EnterpriseBean::smallIcon
-|EnterpriseBean::largeIcon
- )
- line_color 3342489
- fill_color 13434879
- width 663
- height 500)
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @14
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2250, 1040)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @14
- location (2072, 961)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4D451F01FB"
- width 374
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::AssemblyDescriptor" @15
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1322, 842)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @15
- location (1212, 776)
- fill_color 13434879
- nlines 2
- max_width 220
- justify 0
- label "AssemblyDescriptor")
- icon_style "Icon"
- line_color 10485760
- fill_color 14472649
- quidu "3780E35000D4"
- width 238
- height 157
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::Relationships" @16
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (334, 1742)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @16
- location (253, 1676)
- fill_color 13434879
- nlines 2
- max_width 162
- justify 0
- label "Relationships")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BEF81703B3"
- height 157
- annotation 8
- autoResize TRUE)
- (object AttachView "" @17
- stereotype TRUE
- client @4
- supplier @16
- vertices (list Points
- (484, 1995)
- (380, 1820))
- line_style 0)
- (object ClassView "Class" "Logical View::ejb::EnterpriseBean" @18
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1404, 1259)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @18
- location (1182, 1078)
- fill_color 13434879
- nlines 1
- max_width 444
- justify 0
- label "EnterpriseBean")
- icon_style "Icon"
- line_color 10485760
- fill_color 14472649
- quidu "3780E71A010A"
- compartment (object Compartment
- Parent_View @18
- location (1182, 1139)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 253)
- width 462
- height 386
- autoResize TRUE)
- (object InheritTreeView "" @19
- location (1404, 1547)
- line_color 10485760
- fill_color 14472649
- supplier @18
- vertices (list Points
- (1404, 1547)
- (1404, 1452)))
- (object InheritView "" @20
- stereotype TRUE
- line_color 10485760
- quidu "3780E8080095"
- client @2
- supplier @18
- vertices (list Points
- (1847, 1637)
- (1847, 1547))
- line_style 3
- origin_attachment (1847, 1637)
- terminal_attachment (1847, 1547)
- drawSupplier @19)
- (object InheritView "" @21
- stereotype TRUE
- line_color 10485760
- quidu "3780E3230120"
- client @1
- supplier @18
- vertices (list Points
- (1153, 1613)
- (1153, 1547))
- line_style 3
- origin_attachment (1153, 1613)
- terminal_attachment (1153, 1547)
- drawSupplier @19)
- (object ClassView "Class" "Logical View::ejb::EJBJar" @22
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (367, 936)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @22
- location (130, 752)
- fill_color 13434879
- nlines 1
- max_width 474
- justify 0
- label "EJBJar")
- stereotype (object ItemLabel
- Parent_View @22
- location (130, 702)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 474
- justify 0
- label "<<component>>")
- icon_style "Icon"
- line_color 10485760
- fill_color 14472649
- quidu "371BC55D01E1"
- compartment (object Compartment
- Parent_View @22
- location (130, 813)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 412)
- width 492
- height 492
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "jarToAssemblyDescriptor" @23
- location (908, 810)
- stereotype TRUE
- line_color 10485760
- quidu "38FF3CF801EE"
- roleview_list (list RoleViews
- (object RoleView "assemblyDescriptor" @24
- Parent_View @23
- location (684, 570)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @25
- Parent_View @24
- location (1007, 768)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 383
- justify 0
- label "+assemblyDescriptor"
- pctDist 0.335385
- height 43
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3CF90249"
- client @23
- supplier @15
- vertices (list Points
- (908, 810)
- (1203, 810))
- line_style 3
- origin_attachment (908, 810)
- terminal_attachment (1203, 810)
- label (object SegLabel @26
- Parent_View @24
- location (1143, 863)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.795107
- height 53
- orientation 1))
- (object RoleView "ejbJar" @27
- Parent_View @23
- location (684, 570)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3CF90267"
- client @23
- supplier @22
- vertices (list Points
- (908, 810)
- (613, 810))
- line_style 3
- origin_attachment (908, 810)
- terminal_attachment (613, 810))))
- (object AssociationViewNew "$UNNAMED$19" @28
- location (278, 1422)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 4227072
- quidu "39BEF8870378"
- roleview_list (list RoleViews
- (object RoleView "relationshipList" @29
- Parent_View @28
- location (-58, 1022)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @30
- Parent_View @29
- location (450, 1566)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 304
- justify 0
- label "+relationshipList"
- pctDist 0.597510
- height 172
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BEF889003C"
- client @28
- supplier @16
- vertices (list Points
- (278, 1422)
- (278, 1663))
- line_style 3
- origin_attachment (278, 1422)
- terminal_attachment (278, 1663)
- label (object SegLabel @31
- Parent_View @29
- location (348, 1616)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.805031
- height 70
- orientation 0))
- (object RoleView "ejbJar" @32
- Parent_View @28
- location (-58, 1022)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @33
- Parent_View @32
- location (384, 1253)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 137
- justify 0
- label "+ejbJar"
- pctDist 0.707602
- height 106
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BEF889003D"
- client @28
- supplier @22
- vertices (list Points
- (278, 1422)
- (278, 1182))
- line_style 3
- origin_attachment (278, 1422)
- terminal_attachment (278, 1182)
- label (object SegLabel @34
- Parent_View @32
- location (332, 1207)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))))
- (object AssociationViewNew "ejbJarToEnterpriseBeans" @35
- location (893, 1122)
- stereotype TRUE
- line_color 10485760
- quidu "38FF3D1F003B"
- roleview_list (list RoleViews
- (object RoleView "enterpriseBeans" @36
- Parent_View @35
- location (669, 882)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @37
- Parent_View @36
- location (1005, 1159)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 335
- justify 0
- label "+enterpriseBeans"
- pctDist 0.403279
- height 37
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3D1F037A"
- client @35
- supplier @18
- vertices (list Points
- (893, 1122)
- (1173, 1122))
- line_style 3
- origin_attachment (893, 1122)
- terminal_attachment (1173, 1122)
- label (object SegLabel @38
- Parent_View @36
- location (1080, 1085)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.666113
- height 38
- orientation 0))
- (object RoleView "ejbJar" @39
- Parent_View @35
- location (669, 882)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @40
- Parent_View @39
- location (669, 1081)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 137
- justify 0
- label "+ejbJar"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38FF3D1F03CB"
- client @35
- supplier @22
- vertices (list Points
- (893, 1122)
- (613, 1122))
- line_style 3
- origin_attachment (893, 1122)
- terminal_attachment (613, 1122)
- label (object SegLabel @41
- Parent_View @39
- location (642, 1176)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AttachView "" @42
- stereotype TRUE
- client @12
- supplier @40
- vertices (list Points
- (794, 1300)
- (684, 1107))
- line_style 0)
- (object InheritView "" @43
- stereotype TRUE
- line_color 4227072
- quidu "39BF3253026F"
- client @7
- supplier @18
- vertices (list Points
- (2269, 1630)
- (2269, 1519)
- (1397, 1519)
- (1397, 1452))
- line_style 3
- origin_attachment (2269, 1630)
- terminal_attachment (1397, 1452))))
- (object ClassDiagram "Enterprise Bean"
- quid "3805531D02C3"
- title "Enterprise Bean"
- documentation
-|Roles are shared by multiple EJBs.
-|
-
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 2388
- origin_y 656
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::common::JNDIEnvRefsGroup" @44
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (478, 418)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @44
- location (281, 339)
- fill_color 13434879
- nlines 1
- max_width 394
- justify 0
- label "JNDIEnvRefsGroup")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4D53950349"
- width 412
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::SecurityRoleRef" @45
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2868, 765)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @45
- location (2646, 680)
- nlines 2
- max_width 444
- justify 0
- label "SecurityRoleRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "371BC7A0025C"
- width 462
- height 194
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::java::JavaClass" @46
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2817, 389)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @46
- location (2703, 335)
- fill_color 13434879
- nlines 1
- max_width 228
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "36549FCC00FA"
- width 246
- height 132
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::EnterpriseBean" @47
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (944, 928)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @47
- location (791, 850)
- fill_color 13434879
- nlines 1
- max_width 306
- justify 0
- label "EnterpriseBean")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E71A010A"
- compartment (object Compartment
- Parent_View @47
- location (791, 911)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 244)
- width 324
- height 180
- autoResize TRUE)
- (object AssociationViewNew "EjbToRoles" @48
- location (1871, 841)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @49
- Parent_View @48
- location (1867, 751)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 356
- justify 0
- label "EjbToRoles"
- pctDist 0.450000
- height 91
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3780E3230144"
- roleview_list (list RoleViews
- (object RoleView "securityRoleRefs" @50
- Parent_View @48
- location (991, 297)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @51
- Parent_View @50
- location (2367, 801)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 454
- justify 0
- label "+securityRoleRefs"
- pctDist 0.648529
- height 41
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3780E3230146"
- client @48
- supplier @45
- vertices (list Points
- (1871, 841)
- (2637, 841))
- line_style 3
- origin_attachment (1871, 841)
- terminal_attachment (2637, 841)
- label (object SegLabel @52
- Parent_View @50
- location (2537, 878)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 70
- justify 0
- label "0..n"
- pctDist 0.870629
- height 37
- orientation 1))
- (object RoleView "$UNNAMED$4" @53
- Parent_View @48
- location (991, 297)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @54
- Parent_View @53
- location (1259, 800)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3780E3230145"
- client @48
- supplier @47
- vertices (list Points
- (1871, 841)
- (1106, 841))
- line_style 3
- origin_attachment (1871, 841)
- terminal_attachment (1106, 841))))
- (object AssociationViewNew "ejbClass" @55
- location (1791, 538)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @56
- Parent_View @55
- location (1791, 479)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label "ejbClass"
- pctDist 0.500000
- height 60
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC3402C7"
- roleview_list (list RoleViews
- (object RoleView "ejb" @57
- Parent_View @55
- location (1521, -572)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @58
- Parent_View @57
- location (1083, 628)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "+ejb"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC3501F6"
- client @55
- supplier @47
- vertices (list Points
- (1791, 538)
- (1041, 538)
- (1041, 838))
- line_style 3
- origin_attachment (1791, 538)
- terminal_attachment (1041, 838))
- (object RoleView "ejbClass" @59
- Parent_View @55
- location (1521, -572)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @60
- Parent_View @59
- location (2630, 580)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 190
- justify 0
- label "+ejbClass"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC3501EC"
- client @55
- supplier @46
- vertices (list Points
- (1791, 538)
- (2757, 538)
- (2757, 455))
- line_style 3
- origin_attachment (1791, 538)
- terminal_attachment (2757, 455)
- label (object SegLabel @61
- Parent_View @59
- location (2734, 485)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "homeInterface" @62
- location (1991, 634)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @63
- Parent_View @62
- location (1991, 575)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label "homeInterface"
- pctDist 0.500000
- height 60
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC3701C7"
- roleview_list (list RoleViews
- (object RoleView "ejb" @64
- Parent_View @62
- location (1721, -476)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @65
- Parent_View @64
- location (1116, 676)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "+ejb"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC44014D"
- client @62
- supplier @47
- vertices (list Points
- (1991, 634)
- (1100, 634)
- (1100, 838))
- line_style 3
- origin_attachment (1991, 634)
- terminal_attachment (1100, 838))
- (object RoleView "homeInterface" @66
- Parent_View @62
- location (1721, -476)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @67
- Parent_View @66
- location (2732, 512)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 283
- justify 0
- label "+homeInterface"
- pctDist 0.948617
- height 176
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC440143"
- client @62
- supplier @46
- vertices (list Points
- (1991, 634)
- (2907, 634)
- (2907, 455))
- line_style 3
- origin_attachment (1991, 634)
- terminal_attachment (2907, 455)
- label (object SegLabel @68
- Parent_View @66
- location (2854, 565)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "remoteInterface" @69
- location (1611, 406)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @70
- Parent_View @69
- location (1611, 347)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label "remoteInterface"
- pctDist 0.500000
- height 60
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC46006A"
- roleview_list (list RoleViews
- (object RoleView "ejb" @71
- Parent_View @69
- location (1341, -704)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @72
- Parent_View @71
- location (1002, 621)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "+ejb"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC470167"
- client @69
- supplier @47
- vertices (list Points
- (1611, 406)
- (960, 406)
- (960, 838))
- line_style 3
- origin_attachment (1611, 406)
- terminal_attachment (960, 838))
- (object RoleView "remoteInterface" @73
- Parent_View @69
- location (1341, -704)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @74
- Parent_View @73
- location (2476, 448)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 304
- justify 0
- label "+remoteInterface"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC470166"
- client @69
- supplier @46
- vertices (list Points
- (1611, 406)
- (2694, 406))
- line_style 3
- origin_attachment (1611, 406)
- terminal_attachment (2694, 406)
- label (object SegLabel @75
- Parent_View @73
- location (2586, 353)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "localHomeInterface" @76
- location (1554, 256)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @77
- Parent_View @76
- location (1554, 197)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label "localHomeInterface"
- pctDist 0.500000
- height 60
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39886C2B018B"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$34" @78
- Parent_View @76
- location (1284, -854)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @79
- Parent_View @78
- location (967, 596)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39886C2C02D7"
- client @76
- supplier @47
- vertices (list Points
- (1554, 256)
- (925, 256)
- (925, 838))
- line_style 3
- origin_attachment (1554, 256)
- terminal_attachment (925, 838))
- (object RoleView "localHomeInterface" @80
- Parent_View @76
- location (1284, -854)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @81
- Parent_View @80
- location (2522, 298)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 374
- justify 0
- label "+localHomeInterface"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39886C2C02AF"
- client @76
- supplier @46
- vertices (list Points
- (1554, 256)
- (2698, 256)
- (2698, 323))
- line_style 3
- origin_attachment (1554, 256)
- terminal_attachment (2698, 323)
- label (object SegLabel @82
- Parent_View @80
- location (2643, 203)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "localInterface" @83
- location (1609, 113)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @84
- Parent_View @83
- location (1609, 54)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label "localInterface"
- pctDist 0.500000
- height 60
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39886CC20283"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$35" @85
- Parent_View @83
- location (1339, -997)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @86
- Parent_View @85
- location (930, 549)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39886CC60120"
- client @83
- supplier @47
- vertices (list Points
- (1609, 113)
- (888, 113)
- (888, 838))
- line_style 3
- origin_attachment (1609, 113)
- terminal_attachment (888, 838))
- (object RoleView "localInterface" @87
- Parent_View @83
- location (1339, -997)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @88
- Parent_View @87
- location (2766, 155)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 261
- justify 0
- label "+localInterface"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39886CC600EE"
- client @83
- supplier @46
- vertices (list Points
- (1609, 113)
- (2845, 113)
- (2845, 323))
- line_style 3
- origin_attachment (1609, 113)
- terminal_attachment (2845, 323)
- label (object SegLabel @89
- Parent_View @87
- location (2899, 178)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object InheritView "" @90
- stereotype TRUE
- line_color 10949559
- quidu "3E4D54C30090"
- client @47
- supplier @44
- vertices (list Points
- (860, 837)
- (561, 509))
- line_style 0)
- (object ClassView "Class" "Logical View::common::SecurityIdentity" @91
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1725, 1368)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @91
- location (1547, 1262)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "SecurityIdentity")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39BF2C040245"
- compartment (object Compartment
- Parent_View @91
- location (1547, 1377)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 391)
- width 374
- height 236
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$29" @92
- location (1321, 1139)
- stereotype TRUE
- line_color 3342489
- quidu "39BF2C1F018F"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$30" @93
- Parent_View @92
- location (-114, -670)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @94
- Parent_View @93
- location (1128, 1079)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BF2C200264"
- client @92
- supplier @47
- vertices (list Points
- (1321, 1139)
- (1105, 1018))
- line_style 0)
- (object RoleView "securityIdentity" @95
- Parent_View @92
- location (-114, -670)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @96
- Parent_View @95
- location (1268, 1344)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 299
- justify 0
- label "+securityIdentity"
- pctDist 0.219644
- height 205
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF2C200263"
- client @92
- supplier @91
- vertices (list Points
- (1321, 1139)
- (1537, 1261))
- line_style 0
- label (object SegLabel @97
- Parent_View @95
- location (1566, 1185)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.957062
- height 81
- orientation 0))))))
- (object ClassDiagram "Container Managed Entity"
- quid "3805550C008A"
- title "Container Managed Entity"
- documentation
-|The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.
-|
-
- zoom 95
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 1198
- items (list diagram_item_list
- (object NoteView @98
- location (2288, 400)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @98
- location (1932, 216)
- fill_color 13434879
- nlines 7
- max_width 677
- label "The keyFeatures relationship also determines the primkey-field setting. If there is a single key feature, we will deploy that using primkey-field. Conversely, if a descriptor uses primkey-field, we will set a single keyFeature. (? BMP case ?)")
- line_color 3342489
- fill_color 13434879
- width 737
- height 381)
- (object NoteView @99
- location (1472, 1568)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @99
- location (1070, 1390)
- fill_color 13434879
- nlines 7
- max_width 769
- label "We have switched from explicitly referring from an Entity to its Java Fields to deriving that from its attributes and association ends. The implementation should still support listing the key fields and persistent fields, but not adding or removing them.")
- line_color 3342489
- fill_color 13434879
- width 829
- height 369)
- (object NoteView @100
- location (608, 1600)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @100
- location (189, 1465)
- fill_color 13434879
- nlines 6
- max_width 802
- label "Leaving the keyAttributes and persistentAttributes relationships typed to eAttribute for compatibility purposes. This may change in the future to be typed to CMPAttribute.")
- line_color 3342489
- fill_color 13434879
- width 862
- height 283)
- (object NoteView @101
- location (480, 1152)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @101
- location (65, 990)
- fill_color 13434879
- nlines 6
- max_width 795
- label
-|EJB2.0 -
-| Added version:String
-| Added abstractSchemaName:String
-|TODO: Other new attrs:
-| SecurityIdentity
- )
- line_color 4227072
- fill_color 13434833
- width 855
- height 336)
- (object NoteView @102
- location (624, 832)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @102
- location (426, 743)
- fill_color 13434879
- nlines 3
- max_width 361
- label "See further detail in EJB2.0 - Query diagram")
- line_color 4227072
- fill_color 13434833
- width 421
- height 191)
- (object ClassView "Class" "Logical View::ejb::Query" @103
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (448, 576)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @103
- location (367, 525)
- fill_color 13434879
- nlines 2
- max_width 162
- justify 0
- label "Query")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF02710327"
- height 126
- annotation 8
- autoResize TRUE)
- (object AttachView "" @104
- stereotype TRUE
- line_color 4227072
- client @102
- supplier @103
- vertices (list Points
- (558, 736)
- (491, 639))
- line_style 0)
- (object ClassView "Class" "Logical View::ecore::EAttribute" @105
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1581, 233)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @105
- location (1369, 77)
- nlines 2
- max_width 424
- justify 0
- label "EAttribute")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "39238472039D"
- compartment (object Compartment
- Parent_View @105
- location (1369, 191)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- anchor 2
- nlines 2
- max_width 275)
- width 442
- height 336
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::CMRField" @106
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1595, 929)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @106
- location (1485, 878)
- fill_color 13434879
- nlines 1
- max_width 220
- justify 0
- label "CMRField")
- icon_style "Icon"
- line_color 32768
- fill_color 13434833
- quidu "39BF1810004B"
- width 238
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::java::JavaClass" @107
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1600, 1232)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @107
- location (1503, 1154)
- nlines 2
- max_width 194
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "36549FCC00FA"
- width 212
- height 180
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$44" @108
- location (1596, 1066)
- stereotype TRUE
- line_color 3342489
- quidu "399AE0FB03D3"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$45" @109
- Parent_View @108
- location (-4, -166)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @110
- Parent_View @109
- location (1554, 1008)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "399AE0FC03B7"
- client @108
- supplier @106
- vertices (list Points
- (1596, 1066)
- (1595, 992))
- line_style 0)
- (object RoleView "collectionType" @111
- Parent_View @108
- location (-4, -166)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @112
- Parent_View @111
- location (1432, 1113)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 291
- justify 0
- label "+collectionType"
- pctDist 0.597227
- height 166
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "399AE0FC038F"
- client @108
- supplier @107
- vertices (list Points
- (1596, 1066)
- (1597, 1141))
- line_style 0
- label (object SegLabel @113
- Parent_View @111
- location (1668, 1111)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.599360
- height 71
- orientation 0))))
- (object ClassView "Class" "Logical View::common::Description" @114
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2871, 729)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @114
- location (2704, 598)
- fill_color 13434879
- nlines 1
- max_width 334
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @114
- location (2704, 712)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 283)
- width 352
- height 286
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::CMPAttribute" @115
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1581, 630)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @115
- location (1297, 526)
- fill_color 13434879
- nlines 2
- max_width 568
- justify 0
- label "CMPAttribute")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3A2288630003"
- compartment (object Compartment
- Parent_View @115
- location (1297, 586)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 565)
- width 586
- height 232
- annotation 8
- autoResize TRUE)
- (object InheritView "" @116
- stereotype TRUE
- line_color 3342489
- quidu "3A2288770341"
- client @115
- supplier @105
- vertices (list Points
- (1536, 514)
- (1536, 400))
- line_style 3
- origin_attachment (1536, 514)
- terminal_attachment (1536, 400))
- (object InheritView "" @117
- stereotype TRUE
- line_color 32768
- quidu "399AD4690170"
- client @106
- supplier @115
- vertices (list Points
- (1563, 866)
- (1563, 745))
- line_style 3
- origin_attachment (1563, 866)
- terminal_attachment (1563, 745))
- (object AssociationViewNew "$UNNAMED$71" @118
- location (2284, 674)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D1D1F0161"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @119
- Parent_View @118
- location (674, 51)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @120
- Parent_View @119
- location (2569, 734)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.695136
- height 60
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1D2001DA"
- client @118
- supplier @114
- vertices (list Points
- (2284, 674)
- (2695, 674))
- line_style 3
- origin_attachment (2284, 674)
- terminal_attachment (2695, 674)
- label (object SegLabel @121
- Parent_View @119
- location (2562, 611)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.677276
- height 64
- orientation 0))
- (object RoleView "$UNNAMED$72" @122
- Parent_View @118
- location (674, 51)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1D2001EE"
- client @118
- supplier @115
- vertices (list Points
- (2284, 674)
- (1874, 674))
- line_style 3
- origin_attachment (2284, 674)
- terminal_attachment (1874, 674))))
- (object ClassView "Class" "Logical View::ejb::ContainerManagedEntity" @123
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (447, 176)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @123
- location (76, 73)
- fill_color 13434879
- nlines 1
- max_width 742
- justify 0
- label "ContainerManagedEntity")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E3230174"
- compartment (object Compartment
- Parent_View @123
- location (76, 133)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 739)
- width 760
- height 230
- autoResize TRUE)
- (object AttachView "" @124
- stereotype TRUE
- line_color 4227072
- client @101
- supplier @123
- vertices (list Points
- (171, 983)
- (171, 291))
- line_style 3
- origin_attachment (171, 983)
- terminal_attachment (171, 291))
- (object AssociationViewNew "$UNNAMED$17" @125
- location (759, 709)
- stereotype TRUE
- line_color 3342489
- quidu "398831C30245"
- roleview_list (list RoleViews
- (object RoleView "persistentAttributes" @126
- Parent_View @125
- location (407, -43)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @127
- Parent_View @126
- location (959, 672)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 453
- justify 0
- label "+persistentAttributes"
- pctDist 0.378601
- height 38
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "398831C50157"
- client @125
- supplier @115
- vertices (list Points
- (759, 709)
- (1288, 709))
- line_style 3
- origin_attachment (759, 709)
- terminal_attachment (1288, 709)
- label (object SegLabel @128
- Parent_View @126
- location (1238, 747)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.905340
- height 38
- orientation 1))
- (object RoleView "entity" @129
- Parent_View @125
- location (407, -43)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "398831C5017F"
- client @125
- supplier @123
- vertices (list Points
- (759, 709)
- (648, 709)
- (648, 291))
- line_style 3
- origin_attachment (759, 709)
- terminal_attachment (648, 291))))
- (object AssociationViewNew "$UNNAMED$90" @130
- location (939, 527)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3FA695890240"
- roleview_list (list RoleViews
- (object RoleView "primKeyField" @131
- Parent_View @130
- location (492, 351)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @132
- Parent_View @131
- location (1099, 489)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 272
- justify 0
- label "+primKeyField"
- pctDist 0.462046
- height 39
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3FA6958B0008"
- client @130
- supplier @115
- vertices (list Points
- (939, 527)
- (1288, 527))
- line_style 3
- origin_attachment (939, 527)
- terminal_attachment (1288, 527)
- label (object SegLabel @133
- Parent_View @131
- location (1228, 567)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.831683
- height 40
- orientation 1))
- (object RoleView "entity" @134
- Parent_View @130
- location (492, 351)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3FA6958B0012"
- client @130
- supplier @123
- vertices (list Points
- (939, 527)
- (825, 527)
- (825, 291))
- line_style 3
- origin_attachment (939, 527)
- terminal_attachment (825, 291))))
- (object AssociationViewNew "$UNNAMED$18" @135
- location (844, 632)
- stereotype TRUE
- line_color 3342489
- quidu "3988323B0355"
- roleview_list (list RoleViews
- (object RoleView "keyAttributes" @136
- Parent_View @135
- location (492, 408)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @137
- Parent_View @136
- location (1100, 602)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 315
- justify 0
- label "+keyAttributes"
- pctDist 0.579070
- height 31
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3988323D025E"
- client @135
- supplier @115
- vertices (list Points
- (844, 632)
- (1288, 632))
- line_style 3
- origin_attachment (844, 632)
- terminal_attachment (1288, 632)
- label (object SegLabel @138
- Parent_View @136
- location (1236, 663)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.885942
- height 31
- orientation 1))
- (object RoleView "entity" @139
- Parent_View @135
- location (492, 408)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3988323D027C"
- client @135
- supplier @123
- vertices (list Points
- (844, 632)
- (740, 632)
- (740, 291))
- line_style 3
- origin_attachment (844, 632)
- terminal_attachment (740, 291))))))
- (object ClassDiagram "Assembly"
- quid "3780E28E01B1"
- title "Assembly"
- documentation
-|I kept this portion of the model separate to reflect the spec. It might be easier to work with if we integrated it more closely with the beans we are assembling. On the other hand, this separation supports splitting the creation and assembly roles.
-|
-|An assembly descriptor basically contains method permissions and "Container Transactions".
-|
-|In order to support the full power of the method element in the XML DD, we need to hold these method elements. The actual methods will be derived. Keeping with the method element, all method will be designated by the name "*".
-|
-|The methods relationship from MethodPermission and MethodTransaction will be derived in helper methods.
-|
-|
-
- zoom 87
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 1834
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::ejb::TransactionAttributeType" @140
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2147, 2019)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @140
- location (1866, 1819)
- fill_color 13434879
- nlines 1
- max_width 562
- justify 0
- label "TransactionAttributeType")
- stereotype (object ItemLabel
- Parent_View @140
- location (1866, 1769)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 562
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "379F634503C0"
- compartment (object Compartment
- Parent_View @140
- location (1866, 1884)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 7
- max_width 256)
- width 580
- height 524
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::MethodElementKind" @141
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1239, 2445)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @141
- location (1003, 2245)
- fill_color 13434879
- nlines 1
- max_width 472
- justify 0
- label "MethodElementKind")
- stereotype (object ItemLabel
- Parent_View @141
- location (1003, 2195)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 472
- justify 0
- label "<<enumeration>>")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "392ED2E70240"
- compartment (object Compartment
- Parent_View @141
- location (1003, 2310)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 7
- max_width 300)
- width 490
- height 524
- autoResize TRUE)
- (object NoteView @142
- location (3407, 808)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @142
- location (3117, 728)
- fill_color 13434879
- nlines 3
- max_width 544
- label "This is the container-transaction element")
- line_color 3342489
- fill_color 13434879
- width 604
- height 172)
- (object NoteView @143
- location (594, 2267)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @143
- location (247, 2173)
- fill_color 13434879
- nlines 4
- max_width 659
- label "Local, LocalHome have been added for EJB2.0. These correspond to the valid values for the methodIntf (methodType) field.")
- line_color 16384
- fill_color 13434833
- width 719
- height 201)
- (object AttachView "" @144
- stereotype TRUE
- line_color 16384
- client @143
- supplier @141
- vertices (list Points
- (953, 2335)
- (994, 2335))
- line_style 3
- origin_attachment (953, 2335)
- terminal_attachment (994, 2335))
- (object NoteView @145
- location (675, 1976)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @145
- location (425, 1914)
- fill_color 13434879
- nlines 2
- max_width 464
- label "EJB2.0 pfd 2 added unchecked attribute.")
- line_color 32768
- fill_color 13434833
- width 524
- height 137)
- (object NoteView @146
- location (431, 2626)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @146
- location (141, 2503)
- fill_color 13434879
- nlines 5
- max_width 544
- label
-|@version J2EE1.4
-|
-|Added ServiceEndpoint
- )
- line_color 10949559
- fill_color 15778042
- width 604
- height 258)
- (object AttachView "" @147
- stereotype TRUE
- line_color 3342489
- client @146
- supplier @141
- vertices (list Points
- (733, 2557)
- (993, 2498))
- line_style 0)
- (object ClassView "Class" "Logical View::common::Description" @148
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (206, 208)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @148
- location (38, 77)
- fill_color 13434879
- nlines 1
- max_width 336
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @148
- location (38, 196)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 308)
- width 354
- height 286
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::MessageDestination" @149
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2945, 424)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @149
- location (2739, 317)
- fill_color 13434879
- nlines 1
- max_width 412
- justify 0
- label "MessageDestination")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4C211001CF"
- compartment (object Compartment
- Parent_View @149
- location (2739, 436)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 319)
- width 430
- height 238
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::SecurityRole" @150
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1028, 787)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @150
- location (860, 733)
- fill_color 13434879
- nlines 1
- max_width 336
- justify 0
- label "SecurityRole")
- icon_style "Label"
- line_color 8421504
- fill_color 12632256
- quidu "38C031FE012D"
- width 354
- height 132
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::EnterpriseBean" @151
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (1470, 767)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @151
- location (1360, 691)
- fill_color 13434879
- nlines 2
- max_width 220
- justify 0
- label "EnterpriseBean")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "3780E71A010A"
- width 238
- height 176
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::MethodPermission" @152
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (467, 1122)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @152
- location (256, 994)
- fill_color 13434879
- nlines 2
- max_width 422
- justify 0
- label "MethodPermission")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E35000D0"
- compartment (object Compartment
- Parent_View @152
- location (256, 1059)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 467)
- width 440
- height 280
- annotation 8
- autoResize TRUE)
- (object AttachView "" @153
- stereotype TRUE
- line_color 32768
- client @145
- supplier @152
- vertices (list Points
- (535, 1907)
- (535, 1262))
- line_style 3
- origin_attachment (535, 1907)
- terminal_attachment (535, 1262))
- (object AssociationViewNew "$UNNAMED$6" @154
- location (640, 842)
- stereotype TRUE
- line_color 3342489
- quidu "392ED18900FC"
- roleview_list (list RoleViews
- (object RoleView "roles" @155
- Parent_View @154
- location (320, 330)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @156
- Parent_View @155
- location (745, 879)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 159
- justify 0
- label "+roles"
- pctDist 0.500000
- height 37
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "392ED18A028E"
- client @154
- supplier @150
- vertices (list Points
- (640, 842)
- (851, 842))
- line_style 3
- origin_attachment (640, 842)
- terminal_attachment (851, 842)
- label (object SegLabel @157
- Parent_View @155
- location (770, 805)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.620690
- height 38
- orientation 0))
- (object RoleView "$UNNAMED$7" @158
- Parent_View @154
- location (320, 330)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @159
- Parent_View @158
- location (528, 939)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "392ED18A02D4"
- client @154
- supplier @152
- vertices (list Points
- (640, 842)
- (569, 842)
- (569, 982))
- line_style 3
- origin_attachment (640, 842)
- terminal_attachment (569, 982))))
- (object AssociationViewNew "$UNNAMED$75" @160
- location (68, 828)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D26BB00FA"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @161
- Parent_View @160
- location (-399, -294)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @162
- Parent_View @161
- location (215, 391)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 279
- justify 0
- label "+descriptions"
- pctDist 0.917184
- height 147
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D26BC02F0"
- client @160
- supplier @148
- vertices (list Points
- (68, 828)
- (68, 351))
- line_style 3
- origin_attachment (68, 828)
- terminal_attachment (68, 351)
- label (object SegLabel @163
- Parent_View @161
- location (134, 443)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.807453
- height 66
- orientation 1))
- (object RoleView "$UNNAMED$76" @164
- Parent_View @160
- location (-399, -294)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D26BC0318"
- client @160
- supplier @152
- vertices (list Points
- (68, 828)
- (68, 1127)
- (247, 1127))
- line_style 3
- origin_attachment (68, 828)
- terminal_attachment (247, 1127))))
- (object ClassView "Class" "Logical View::ejb::ExcludeList" @165
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1940, 659)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @165
- location (1748, 555)
- fill_color 13434879
- nlines 2
- max_width 384
- justify 0
- label "ExcludeList")
- icon_style "Icon"
- line_color 32768
- fill_color 13434833
- quidu "3997216E0147"
- compartment (object Compartment
- Parent_View @165
- location (1748, 620)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 423)
- width 402
- height 232
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::java::Method" @166
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1329, 1826)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @166
- location (1034, 1551)
- nlines 1
- max_width 590
- justify 0
- label "Method")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "3654AE910271"
- compartment (object Compartment
- Parent_View @166
- location (1034, 1670)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- anchor 2
- nlines 9
- max_width 646)
- width 608
- height 574
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "MethodPermissionToMethods" @167
- location (624, 1612)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000EA"
- roleview_list (list RoleViews
- (object RoleView "/methods" @168
- Parent_View @167
- location (299, 1172)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @169
- Parent_View @168
- location (761, 1568)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 256
- justify 0
- label "+/methods"
- pctDist 0.342105
- height 45
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000EB"
- client @167
- supplier @166
- vertices (list Points
- (624, 1612)
- (1025, 1612))
- line_style 3
- origin_attachment (624, 1612)
- terminal_attachment (1025, 1612)
- label (object SegLabel @170
- Parent_View @168
- location (953, 1670)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 70
- justify 0
- label "1..n"
- pctDist 0.822680
- height 58
- orientation 1))
- (object RoleView "/methodPermission" @171
- Parent_View @167
- location (299, 1172)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000EC"
- client @167
- supplier @152
- vertices (list Points
- (624, 1612)
- (564, 1612)
- (564, 1262))
- line_style 3
- origin_attachment (624, 1612)
- terminal_attachment (564, 1262)
- label (object SegLabel @172
- Parent_View @171
- location (528, 1333)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 70
- justify 0
- label "0..n"
- pctDist 0.826923
- height 37
- orientation 0))))
- (object ClassView "Class" "Logical View::ejb::AssemblyDescriptor" @173
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1172, 419)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @173
- location (971, 368)
- fill_color 13434879
- nlines 1
- max_width 402
- justify 0
- label "AssemblyDescriptor")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E35000D4"
- width 420
- height 126
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$50" @174
- location (2056, 381)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D1BF402E7"
- roleview_list (list RoleViews
- (object RoleView "messageDestinations" @175
- Parent_View @174
- location (1048, 253)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @176
- Parent_View @175
- location (2523, 337)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 468
- justify 0
- label "+messageDestinations"
- pctDist 0.692762
- height 45
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1BF600B9"
- client @174
- supplier @149
- vertices (list Points
- (2056, 381)
- (2730, 381))
- line_style 3
- origin_attachment (2056, 381)
- terminal_attachment (2730, 381)
- label (object SegLabel @177
- Parent_View @175
- location (2662, 435)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$51" @178
- Parent_View @174
- location (1048, 253)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1BF600C3"
- client @174
- supplier @173
- vertices (list Points
- (2056, 381)
- (1382, 381))
- line_style 3
- origin_attachment (2056, 381)
- terminal_attachment (1382, 381))))
- (object AssociationViewNew "$UNNAMED$13" @179
- location (1116, 601)
- stereotype TRUE
- line_color 3342489
- quidu "393EBFC500B4"
- roleview_list (list RoleViews
- (object RoleView "securityRoles" @180
- Parent_View @179
- location (108, 473)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @181
- Parent_View @180
- location (969, 675)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 364
- justify 0
- label "+securityRoles"
- pctDist 0.617284
- height 148
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "393EBFC60083"
- client @179
- supplier @150
- vertices (list Points
- (1116, 601)
- (1116, 721))
- line_style 3
- origin_attachment (1116, 601)
- terminal_attachment (1116, 721)
- label (object SegLabel @182
- Parent_View @180
- location (1175, 684)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.703704
- height 59
- orientation 0))
- (object RoleView "$UNNAMED$14" @183
- Parent_View @179
- location (108, 473)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @184
- Parent_View @183
- location (1075, 506)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "393EBFC600C0"
- client @179
- supplier @173
- vertices (list Points
- (1116, 601)
- (1116, 482))
- line_style 3
- origin_attachment (1116, 601)
- terminal_attachment (1116, 482))))
- (object AssociationViewNew "AssemblyDescriptorToMethodPermissions" @185
- location (399, 451)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000D1"
- roleview_list (list RoleViews
- (object RoleView "assemblyDescriptor" @186
- Parent_View @185
- location (74, 11)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @187
- Parent_View @186
- location (632, 348)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 512
- justify 0
- label "+assemblyDescriptor"
- pctDist 0.471564
- height 44
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000D2"
- client @185
- supplier @173
- vertices (list Points
- (399, 451)
- (399, 391)
- (962, 391))
- line_style 3
- origin_attachment (399, 451)
- terminal_attachment (962, 391)
- label (object SegLabel @188
- Parent_View @186
- location (899, 445)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 72
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "methodPermissions" @189
- Parent_View @185
- location (74, 11)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @190
- Parent_View @189
- location (388, 907)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 508
- justify 0
- label "+methodPermissions"
- pctDist 0.859155
- height 12
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000D3"
- client @185
- supplier @152
- vertices (list Points
- (399, 451)
- (399, 982))
- line_style 3
- origin_attachment (399, 451)
- terminal_attachment (399, 982)
- label (object SegLabel @191
- Parent_View @189
- location (453, 944)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 70
- justify 0
- label "0..n"
- pctDist 0.929577
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$40" @192
- location (1498, 589)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "399721B602F9"
- roleview_list (list RoleViews
- (object RoleView "excludeList" @193
- Parent_View @192
- location (490, 461)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @194
- Parent_View @193
- location (1626, 548)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 310
- justify 0
- label "+excludeList"
- pctDist 0.530120
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "399721B7023C"
- client @192
- supplier @165
- vertices (list Points
- (1498, 589)
- (1739, 589))
- line_style 3
- origin_attachment (1498, 589)
- terminal_attachment (1739, 589)
- label (object SegLabel @195
- Parent_View @193
- location (1683, 629)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.767068
- height 40
- orientation 1))
- (object RoleView "$UNNAMED$41" @196
- Parent_View @192
- location (490, 461)
- stereotype TRUE
- line_color 3342489
- quidu "399721B70246"
- client @192
- supplier @173
- vertices (list Points
- (1498, 589)
- (1364, 589)
- (1364, 482))
- line_style 3
- origin_attachment (1498, 589)
- terminal_attachment (1364, 482))))
- (object ClassView "Class" "Logical View::ejb::MethodElement" @197
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1270, 1223)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @197
- location (1008, 1072)
- fill_color 13434879
- nlines 1
- max_width 524
- justify 0
- label "MethodElement")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "392ED22D008A"
- compartment (object Compartment
- Parent_View @197
- location (1008, 1137)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 567)
- width 542
- height 326
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$12" @198
- location (1356, 957)
- stereotype TRUE
- line_color 3342489
- quidu "3937D6FF011D"
- roleview_list (list RoleViews
- (object RoleView "enterpriseBean" @199
- Parent_View @198
- location (-468, 480)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3937D7000178"
- client @198
- supplier @151
- vertices (list Points
- (1356, 957)
- (1356, 855))
- line_style 3
- origin_attachment (1356, 957)
- terminal_attachment (1356, 855)
- label (object SegLabel @200
- Parent_View @199
- location (1396, 891)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.648649
- height 40
- orientation 1))
- (object RoleView "methodElement" @201
- Parent_View @198
- location (-468, 480)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3937D7000218"
- client @198
- supplier @197
- vertices (list Points
- (1356, 957)
- (1356, 1060))
- line_style 3
- origin_attachment (1356, 957)
- terminal_attachment (1356, 1060)
- label (object SegLabel @202
- Parent_View @201
- location (1428, 1027)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.693333
- height 72
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$8" @203
- location (936, 2428)
- stereotype TRUE
- line_color 3342489
- quidu "392ED2880077"
- roleview_list (list RoleViews
- (object RoleView "methodElements" @204
- Parent_View @203
- location (616, 1916)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @205
- Parent_View @204
- location (1191, 2389)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 433
- justify 0
- label "+methodElements"
- pctDist 0.179688
- height 40
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "392ED289001E"
- client @203
- supplier @197
- vertices (list Points
- (936, 2428)
- (1311, 2428)
- (1311, 1386))
- line_style 3
- origin_attachment (936, 2428)
- terminal_attachment (1311, 1386)
- label (object SegLabel @206
- Parent_View @204
- location (1357, 1757)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.738636
- height 46
- orientation 1))
- (object RoleView "$UNNAMED$9" @207
- Parent_View @203
- location (616, 1916)
- stereotype TRUE
- line_color 3342489
- quidu "392ED2890028"
- client @203
- supplier @152
- vertices (list Points
- (936, 2428)
- (685, 2428)
- (685, 1262))
- line_style 3
- origin_attachment (936, 2428)
- terminal_attachment (685, 1262))))
- (object AssociationViewNew "$UNNAMED$42" @208
- location (1853, 1037)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "3997226501A6"
- roleview_list (list RoleViews
- (object RoleView "methodElements" @209
- Parent_View @208
- location (77, 669)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @210
- Parent_View @209
- location (1764, 1139)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 433
- justify 0
- label "+methodElements"
- pctDist 0.400000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "399722660284"
- client @208
- supplier @197
- vertices (list Points
- (1853, 1037)
- (1853, 1097)
- (1541, 1097))
- line_style 3
- origin_attachment (1853, 1037)
- terminal_attachment (1541, 1097)
- label (object SegLabel @211
- Parent_View @209
- location (1630, 1073)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.761719
- height 25
- orientation 1))
- (object RoleView "$UNNAMED$43" @212
- Parent_View @208
- location (77, 669)
- stereotype TRUE
- line_color 3342489
- quidu "399722660298"
- client @208
- supplier @165
- vertices (list Points
- (1853, 1037)
- (1853, 775))
- line_style 3
- origin_attachment (1853, 1037)
- terminal_attachment (1853, 775))))
- (object ClassView "Class" "Logical View::common::Description" @213
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2782, 1692)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @213
- location (2614, 1561)
- fill_color 13434879
- nlines 1
- max_width 336
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @213
- location (2614, 1680)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 309)
- width 354
- height 286
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$67" @214
- location (1953, 1623)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D28600218"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @215
- Parent_View @214
- location (649, 438)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @216
- Parent_View @215
- location (2475, 1582)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 279
- justify 0
- label "+descriptions"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D28620152"
- client @214
- supplier @213
- vertices (list Points
- (1953, 1623)
- (2605, 1623))
- line_style 3
- origin_attachment (1953, 1623)
- terminal_attachment (2605, 1623)
- label (object SegLabel @217
- Parent_View @215
- location (2540, 1677)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$68" @218
- Parent_View @214
- location (649, 438)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D28620198"
- client @214
- supplier @197
- vertices (list Points
- (1953, 1623)
- (1810, 1623)
- (1810, 1383)
- (1541, 1383))
- line_style 3
- origin_attachment (1953, 1623)
- terminal_attachment (1541, 1383))))
- (object AssociationViewNew "$UNNAMED$81" @219
- location (2874, 737)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D26680317"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @220
- Parent_View @219
- location (934, 78)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @221
- Parent_View @220
- location (3017, 1493)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 279
- justify 0
- label "+descriptions"
- pctDist 0.932432
- height 143
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D266A00D5"
- client @219
- supplier @213
- vertices (list Points
- (2874, 737)
- (2874, 1549))
- line_style 3
- origin_attachment (2874, 737)
- terminal_attachment (2874, 1549)
- label (object SegLabel @222
- Parent_View @220
- location (2928, 1468)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$82" @223
- Parent_View @219
- location (934, 78)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D266A00F3"
- client @219
- supplier @165
- vertices (list Points
- (2874, 737)
- (2874, 659)
- (2141, 659))
- line_style 3
- origin_attachment (2874, 737)
- terminal_attachment (2141, 659))))
- (object ClassView "Class" "Logical View::ejb::MethodTransaction" @224
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2752, 1159)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @224
- location (2305, 1031)
- fill_color 13434879
- nlines 2
- max_width 894
- justify 0
- label "MethodTransaction")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E35000DE"
- compartment (object Compartment
- Parent_View @224
- location (2305, 1096)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 952)
- width 912
- height 280
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$5" @225
- location (2293, 1612)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000E0"
- roleview_list (list RoleViews
- (object RoleView "/methods" @226
- Parent_View @225
- location (548, 1243)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @227
- Parent_View @226
- location (2060, 1561)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 256
- justify 0
- label "+/methods"
- pctDist 0.355263
- height 52
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000E1"
- client @225
- supplier @166
- vertices (list Points
- (2293, 1612)
- (1633, 1612))
- line_style 3
- origin_attachment (2293, 1612)
- terminal_attachment (1633, 1612)
- label (object SegLabel @228
- Parent_View @226
- location (1805, 1666)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 70
- justify 0
- label "1..n"
- pctDist 0.738775
- height 54
- orientation 0))
- (object RoleView "/transactions" @229
- Parent_View @225
- location (548, 1243)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000E2"
- client @225
- supplier @224
- vertices (list Points
- (2293, 1612)
- (2640, 1612)
- (2640, 1299))
- line_style 3
- origin_attachment (2293, 1612)
- terminal_attachment (2640, 1299)
- label (object SegLabel @230
- Parent_View @229
- location (2587, 1394)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 70
- justify 0
- label "0..n"
- pctDist 0.858086
- height 54
- orientation 0))))
- (object AttachView "" @231
- stereotype TRUE
- line_color 3342489
- client @142
- supplier @224
- vertices (list Points
- (3244, 894)
- (3010, 1018))
- line_style 0)
- (object AssociationViewNew "AssemblyDescriptorToMethodTransactions" @232
- location (2318, 456)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000D5"
- roleview_list (list RoleViews
- (object RoleView "assemblyDescriptor" @233
- Parent_View @232
- location (573, 87)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @234
- Parent_View @233
- location (1818, 417)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 512
- justify 0
- label "+assemblyDescriptor"
- pctDist 0.535519
- height 40
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000D6"
- client @232
- supplier @173
- vertices (list Points
- (2318, 456)
- (1382, 456))
- line_style 3
- origin_attachment (2318, 456)
- terminal_attachment (1382, 456)
- label (object SegLabel @235
- Parent_View @233
- location (1476, 510)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 70
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "methodTransactions" @236
- Parent_View @232
- location (573, 87)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @237
- Parent_View @236
- location (2923, 947)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 515
- justify 0
- label "+methodTransactions"
- pctDist 0.923684
- height 232
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3780E35000D7"
- client @232
- supplier @224
- vertices (list Points
- (2318, 456)
- (2691, 456)
- (2691, 1019))
- line_style 3
- origin_attachment (2318, 456)
- terminal_attachment (2691, 1019)
- label (object SegLabel @238
- Parent_View @236
- location (2603, 961)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 70
- justify 0
- label "0..n"
- pctDist 0.938326
- height 89
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$10" @239
- location (1918, 1261)
- stereotype TRUE
- line_color 3342489
- quidu "392ED40900D4"
- roleview_list (list RoleViews
- (object RoleView "methodElements" @240
- Parent_View @239
- location (94, 781)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @241
- Parent_View @240
- location (1906, 1223)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 433
- justify 0
- label "+methodElements"
- pctDist 0.035294
- height 39
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "392ED40A018A"
- client @239
- supplier @197
- vertices (list Points
- (1918, 1261)
- (1541, 1261))
- line_style 3
- origin_attachment (1918, 1261)
- terminal_attachment (1541, 1261)
- label (object SegLabel @242
- Parent_View @240
- location (1673, 1314)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.653846
- height 53
- orientation 0))
- (object RoleView "$UNNAMED$11" @243
- Parent_View @239
- location (94, 781)
- stereotype TRUE
- line_color 3342489
- quidu "392ED40A019E"
- client @239
- supplier @224
- vertices (list Points
- (1918, 1261)
- (2296, 1261))
- line_style 3
- origin_attachment (1918, 1261)
- terminal_attachment (2296, 1261))))
- (object AssociationViewNew "$UNNAMED$79" @244
- location (3119, 1485)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D1F230090"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @245
- Parent_View @244
- location (779, 298)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @246
- Parent_View @245
- location (3031, 1405)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 279
- justify 0
- label "+descriptions"
- pctDist 0.677966
- height 141
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1F2303D9"
- client @244
- supplier @213
- vertices (list Points
- (3119, 1485)
- (3119, 1545)
- (2959, 1545))
- line_style 3
- origin_attachment (3119, 1485)
- terminal_attachment (2959, 1545)
- label (object SegLabel @247
- Parent_View @245
- location (3031, 1613)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.675214
- height 68
- orientation 0))
- (object RoleView "$UNNAMED$80" @248
- Parent_View @244
- location (779, 298)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1F24000F"
- client @244
- supplier @224
- vertices (list Points
- (3119, 1485)
- (3119, 1299))
- line_style 3
- origin_attachment (3119, 1485)
- terminal_attachment (3119, 1299))))))
- (object ClassDiagram "EJB Implementation"
- quid "380FDB7B01DA"
- title "EJB Implementation"
- documentation "The session-type element describes whether the session bean is a stateful session, or stateless session."
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 1631
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::ejb::EJBMethodCategory" @249
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (306, 261)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @249
- location (193, 185)
- fill_color 13434879
- nlines 2
- max_width 226
- justify 0
- label "EJBMethodCategory")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3810D0380344"
- width 244
- height 176
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::Entity" @250
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (1771, 1761)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @250
- location (1690, 1685)
- fill_color 13434879
- nlines 2
- max_width 162
- justify 0
- label "Entity")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E6970351"
- height 176
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::EnterpriseBean" @251
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (982, 1194)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @251
- location (828, 1144)
- fill_color 13434879
- nlines 1
- max_width 308
- justify 0
- label "EnterpriseBean")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E71A010A"
- width 326
- height 124
- annotation 8
- autoResize TRUE)
- (object InheritTreeView "" @252
- location (982, 1481)
- line_color 3342489
- fill_color 13434879
- supplier @251
- vertices (list Points
- (982, 1481)
- (982, 1256)))
- (object InheritView "" @253
- stereotype TRUE
- line_color 3342489
- quidu "3780E8080095"
- client @250
- supplier @251
- vertices (list Points
- (1713, 1673)
- (1713, 1481))
- line_style 3
- origin_attachment (1713, 1673)
- terminal_attachment (1713, 1481)
- drawSupplier @252)
- (object ClassView "Class" "Logical View::java::JavaClass" @254
- ShowCompartmentStereotypes TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1035, 545)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @254
- location (881, 390)
- nlines 2
- max_width 308
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "36549FCC00FA"
- compartment (object Compartment
- Parent_View @254
- location (881, 505)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- anchor 2
- nlines 3
- max_width 335)
- width 326
- height 334
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "primaryKey" @255
- location (1820, 753)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @256
- Parent_View @255
- location (1937, 414)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 204
- justify 0
- label "primaryKey"
- pctDist 2.450000
- height 340
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "380FDDDF006B"
- roleview_list (list RoleViews
- (object RoleView "primaryKey" @257
- Parent_View @255
- location (364, -751)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "380FDDE00117"
- client @255
- supplier @254
- vertices (list Points
- (1820, 753)
- (1820, 455)
- (1198, 455))
- line_style 3
- origin_attachment (1820, 753)
- terminal_attachment (1198, 455)
- label (object SegLabel @258
- Parent_View @257
- location (1290, 402)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "ejb" @259
- Parent_View @255
- location (364, -751)
- stereotype TRUE
- line_color 3342489
- quidu "380FDDE00121"
- client @255
- supplier @250
- vertices (list Points
- (1820, 753)
- (1820, 1673))
- line_style 3
- origin_attachment (1820, 753)
- terminal_attachment (1820, 1673))))
- (object AssociationViewNew "remoteInterface" @260
- location (934, 921)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @261
- Parent_View @260
- location (974, 920)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 600
- justify 0
- label "remoteInterface"
- pctDist 1.183333
- height 2
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC46006A"
- roleview_list (list RoleViews
- (object RoleView "remoteInterface" @262
- Parent_View @260
- location (335, 192)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC470166"
- client @260
- supplier @254
- vertices (list Points
- (934, 921)
- (934, 711))
- line_style 3
- origin_attachment (934, 921)
- terminal_attachment (934, 711)
- label (object SegLabel @263
- Parent_View @262
- location (881, 733)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "ejb" @264
- Parent_View @260
- location (335, 192)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC470167"
- client @260
- supplier @251
- vertices (list Points
- (934, 921)
- (934, 1132))
- line_style 3
- origin_attachment (934, 921)
- terminal_attachment (934, 1132))))
- (object AssociationViewNew "homeInterface" @265
- location (819, 864)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @266
- Parent_View @265
- location (841, 1013)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 274
- justify 0
- label "homeInterface"
- pctDist 0.883333
- height 149
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC3701C7"
- roleview_list (list RoleViews
- (object RoleView "homeInterface" @267
- Parent_View @265
- location (227, 128)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC440143"
- client @265
- supplier @254
- vertices (list Points
- (819, 864)
- (819, 804)
- (766, 804)
- (766, 699)
- (872, 699))
- line_style 3
- origin_attachment (819, 864)
- terminal_attachment (872, 699)
- label (object SegLabel @268
- Parent_View @267
- location (833, 667)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.881919
- height 33
- orientation 0))
- (object RoleView "ejb" @269
- Parent_View @265
- location (227, 128)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC44014D"
- client @265
- supplier @251
- vertices (list Points
- (819, 864)
- (819, 1132))
- line_style 3
- origin_attachment (819, 864)
- terminal_attachment (819, 1132))))
- (object AssociationViewNew "ejbClass" @270
- location (1131, 921)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @271
- Parent_View @270
- location (1125, 1031)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 157
- justify 0
- label "ejbClass"
- pctDist 0.400000
- height 110
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC3402C7"
- roleview_list (list RoleViews
- (object RoleView "ejbClass" @272
- Parent_View @270
- location (539, 185)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC3501EC"
- client @270
- supplier @254
- vertices (list Points
- (1131, 921)
- (1131, 712))
- line_style 3
- origin_attachment (1131, 921)
- terminal_attachment (1131, 712)
- label (object SegLabel @273
- Parent_View @272
- location (1091, 740)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.870550
- height 41
- orientation 0))
- (object RoleView "ejb" @274
- Parent_View @270
- location (539, 185)
- stereotype TRUE
- line_color 3342489
- quidu "380FDC3501F6"
- client @270
- supplier @251
- vertices (list Points
- (1131, 921)
- (1131, 1131))
- line_style 3
- origin_attachment (1131, 921)
- terminal_attachment (1131, 1131))))
- (object AssociationViewNew "localHomeInterface" @275
- location (1431, 941)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @276
- Parent_View @275
- location (1385, 978)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 32768
- default_color FALSE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 356
- justify 0
- label "localHomeInterface"
- pctDist -0.266667
- height 37
- orientation 1)
- stereotype TRUE
- line_color 16384
- quidu "39886C2B018B"
- roleview_list (list RoleViews
- (object RoleView "localHomeInterface" @277
- Parent_View @275
- location (439, -275)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "39886C2C02AF"
- client @275
- supplier @254
- vertices (list Points
- (1431, 941)
- (1431, 625)
- (1198, 625))
- line_style 3
- origin_attachment (1431, 941)
- terminal_attachment (1198, 625)
- label (object SegLabel @278
- Parent_View @277
- location (1290, 696)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 32768
- default_color FALSE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.834746
- height 71
- orientation 0))
- (object RoleView "$UNNAMED$34" @279
- Parent_View @275
- location (439, -275)
- stereotype TRUE
- line_color 3342489
- quidu "39886C2C02D7"
- client @275
- supplier @251
- vertices (list Points
- (1431, 941)
- (1431, 1204)
- (1145, 1204))
- line_style 3
- origin_attachment (1431, 941)
- terminal_attachment (1145, 1204))))
- (object AssociationViewNew "localInterface" @280
- location (481, 874)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @281
- Parent_View @280
- location (450, 831)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 32768
- default_color FALSE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 243
- justify 0
- label "localInterface"
- pctDist -0.016667
- height 44
- orientation 0)
- stereotype TRUE
- line_color 16384
- quidu "39886CC20283"
- roleview_list (list RoleViews
- (object RoleView "localInterface" @282
- Parent_View @280
- location (-511, -342)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "39886CC600EE"
- client @280
- supplier @254
- vertices (list Points
- (481, 874)
- (481, 606)
- (872, 606))
- line_style 3
- origin_attachment (481, 874)
- terminal_attachment (872, 606)
- label (object SegLabel @283
- Parent_View @282
- location (736, 648)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 32768
- default_color FALSE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.793375
- height 42
- orientation 1))
- (object RoleView "$UNNAMED$35" @284
- Parent_View @280
- location (-511, -342)
- stereotype TRUE
- line_color 3342489
- quidu "39886CC60120"
- client @280
- supplier @251
- vertices (list Points
- (481, 874)
- (481, 1194)
- (819, 1194))
- line_style 3
- origin_attachment (481, 874)
- terminal_attachment (819, 1194))))
- (object ClassView "Class" "Logical View::ejb::Session" @285
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (696, 1762)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @285
- location (371, 1660)
- fill_color 13434879
- nlines 1
- max_width 650
- justify 0
- label "Session")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E5F901EB"
- compartment (object Compartment
- Parent_View @285
- location (371, 1721)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 672)
- width 668
- height 228
- annotation 8
- autoResize TRUE)
- (object InheritView "" @286
- stereotype TRUE
- line_color 3342489
- quidu "3780E3230120"
- client @285
- supplier @251
- vertices (list Points
- (719, 1648)
- (719, 1481))
- line_style 3
- origin_attachment (719, 1648)
- terminal_attachment (719, 1481)
- drawSupplier @252)
- (object AssociationViewNew "$UNNAMED$85" @287
- location (97, 860)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E567CA2007F"
- roleview_list (list RoleViews
- (object RoleView "serviceEndpoint" @288
- Parent_View @287
- location (-630, -686)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @289
- Parent_View @288
- location (701, 477)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 310
- justify 0
- label "+serviceEndpoint"
- pctDist 0.847826
- height 43
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E567CA30225"
- client @287
- supplier @254
- vertices (list Points
- (97, 860)
- (97, 519)
- (872, 519))
- line_style 3
- origin_attachment (97, 860)
- terminal_attachment (872, 519)
- label (object SegLabel @290
- Parent_View @288
- location (771, 557)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.909420
- height 38
- orientation 1))
- (object RoleView "$UNNAMED$86" @291
- Parent_View @287
- location (-630, -686)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E567CA30243"
- client @287
- supplier @285
- vertices (list Points
- (97, 860)
- (97, 1711)
- (362, 1711))
- line_style 3
- origin_attachment (97, 860)
- terminal_attachment (362, 1711))))))
- (object ClassDiagram "Data Types"
- quid "3810D69C01E4"
- title "Data Types"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::ejb::SessionType" @292
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (272, 176)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @292
- location (109, 92)
- fill_color 13434879
- nlines 1
- max_width 326
- justify 0
- label "SessionType")
- stereotype (object ItemLabel
- Parent_View @292
- location (109, 42)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 326
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "371BCA07010C"
- compartment (object Compartment
- Parent_View @292
- location (109, 153)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 231)
- width 344
- height 292
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::TransactionType" @293
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (704, 192)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @293
- location (541, 108)
- fill_color 13434879
- nlines 1
- max_width 326
- justify 0
- label "TransactionType")
- stereotype (object ItemLabel
- Parent_View @293
- location (541, 58)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 326
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "37FCA48702EF"
- compartment (object Compartment
- Parent_View @293
- location (541, 169)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 231)
- width 344
- height 292
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::TransactionAttributeType" @294
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1216, 272)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @294
- location (978, 88)
- fill_color 13434879
- nlines 1
- max_width 476
- justify 0
- label "TransactionAttributeType")
- stereotype (object ItemLabel
- Parent_View @294
- location (978, 38)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 476
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "379F634503C0"
- compartment (object Compartment
- Parent_View @294
- location (978, 149)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 7
- max_width 306)
- width 494
- height 492
- annotation 8
- autoResize TRUE)))
- (object ClassDiagram "EJB2.1 - Relationships"
- quid "39BEF9C4039C"
- title "EJB2.1 - Relationships"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 1876
- items (list diagram_item_list
- (object Label @295
- location (31, 31)
- font (object Font
- size 12
- face "Arial"
- bold TRUE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 1
- max_width 600
- label "EJB 2.1 Relationships")
- (object Label @296
- location (90, 3042)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 39
- max_width 1925
- label
-|An entity bean may have relationships with other entity beans with container managed persistence.
-|Relationships may be one-to-one, one-to-many, or many-to-many relationships.
-|Container managed relationships can exist only among entity beans within the same local relationship
-|scope, as defined by the relationships element in the deployment descriptor. Container managed
-|relationships are defined in terms of the local interfaces of the related beans.
-|
-|Relationships may be either bidirectional or unidirectional. If a relationship is bidirectional, it can be
-|navigated in both directions, whereas a unidirectional relationship can be navigated in one direction
-|only.
-|
-|A unidirectional relationship is implemented with a cmr-field on the entity bean instance from which
-|navigation can take place, and no related cmr-field on the entity bean instance that is the target of the
-|relationship. Unidirectional relationships are typically used when the Bean Provider wishes to restrict
-|the visibility of a relationship.
-|
-|An entity bean that does not have a local interface can have only unidirectional relationships from itself
-|to other entity beans. The lack of a local interface prevents other entity beans from having a relationship
-|to it.
-|
-|The bean developer navigates or manipulates logical relationships by using the get and set accessor
-|methods for the container managed relationship fields and the java.util.Collection API for
-|collection-valued container managed relationship fields.
-|
-|The bean provider must consider the type and cardinality of relationships when the entity bean classes
-|are programmed. The get method for a cmr-field must return either the local interface of the entity bean
-|or a collection (more precisely, either java.util.Collection or java.util.Set) of the
-|same. The set method for the relationship must take as an argument the entity bean’s local interface or a
-|collection of the same.
- )
- (object Label @297
- location (90, 2962)
- font (object Font
- size 12
- face "Arial"
- bold TRUE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 1
- max_width 600
- label "Regarding Relationships")
- (object ClassView "Class" "Logical View::ejb::CMPAttribute" @298
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (880, 2816)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @298
- location (615, 2713)
- fill_color 13434879
- nlines 2
- max_width 530
- justify 0
- label "CMPAttribute")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3A2288630003"
- compartment (object Compartment
- Parent_View @298
- location (615, 2774)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 572)
- width 548
- height 230
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::MultiplicityKind" @299
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2690, 1532)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @299
- location (2528, 1448)
- fill_color 13434879
- nlines 1
- max_width 324
- justify 0
- label "MultiplicityKind")
- stereotype (object ItemLabel
- Parent_View @299
- location (2528, 1398)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 321
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 32768
- fill_color 13434833
- quidu "399AEBCB02B7"
- compartment (object Compartment
- Parent_View @299
- location (2528, 1509)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 159)
- width 342
- height 292
- annotation 8
- autoResize TRUE)
- (object NoteView @300
- location (3339, 2015)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @300
- location (2583, 1871)
- fill_color 13434879
- nlines 5
- max_width 1477
- label "CCM - This was originally modeled as an eMultiplicity, but has been simplified to a specific set of enum values. The enumeration type is different from eMultiplicity, which captures much more information, like upper and lower bounds. If we find that the additional information captured by eMultiplicity is required, it can be added in an extension to RelationshipRole.")
- line_color 32768
- fill_color 13434833
- width 1537
- height 300)
- (object NoteView @301
- location (1924, 2428)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @301
- location (1367, 2156)
- fill_color 13434879
- nlines 10
- max_width 1078
- label
-|The cmr-field-name element specifies the name of a logical relationship field in the entity bean class. The name of the cmr-field must begin with a lowercase letter. This field is accessed by methods whose names consists of the name of the field specified by cmr-field-name in which the first letter is uppercased, prefixed by "get" or "set".
-|
-|@invariant The name of the cmr-field must begin with a lowercase letter.
- )
- line_color 3342489
- fill_color 13434879
- width 1138
- height 556)
- (object AttachView "" @302
- stereotype TRUE
- line_color 3342489
- client @300
- supplier @299
- vertices (list Points
- (2748, 1864)
- (2748, 1678))
- line_style 3
- origin_attachment (2748, 1864)
- terminal_attachment (2748, 1678))
- (object ClassView "Class" "Logical View::java::JavaClass" @303
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (416, 2656)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @303
- location (323, 2577)
- nlines 2
- max_width 186
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "36549FCC00FA"
- width 204
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::EJBJar" @304
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (544, 256)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @304
- location (384, 233)
- fill_color 13434879
- nlines 1
- max_width 320
- justify 0
- label "EJBJar")
- stereotype (object ItemLabel
- Parent_View @304
- location (384, 183)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 317
- justify 0
- label "<<component>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "371BC55D01E1"
- width 338
- height 170
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::CMRField" @305
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (432, 2304)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @305
- location (328, 2254)
- fill_color 13434879
- nlines 1
- max_width 208
- justify 0
- label "CMRField")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF1810004B"
- width 226
- height 124
- annotation 8
- autoResize TRUE)
- (object InheritView "" @306
- stereotype TRUE
- line_color 32768
- quidu "399AD4690170"
- client @305
- supplier @298
- vertices (list Points
- (486, 2366)
- (778, 2700))
- line_style 0)
- (object AssociationViewNew "$UNNAMED$44" @307
- location (416, 2465)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "399AE0FB03D3"
- roleview_list (list RoleViews
- (object RoleView "collectionType" @308
- Parent_View @307
- location (0, 593)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @309
- Parent_View @308
- location (247, 2529)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 291
- justify 0
- label "+collectionType"
- pctDist 0.650813
- height 170
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "399AE0FC038F"
- client @307
- supplier @303
- vertices (list Points
- (416, 2465)
- (416, 2565))
- line_style 3
- origin_attachment (416, 2465)
- terminal_attachment (416, 2565)
- label (object SegLabel @310
- Parent_View @308
- location (471, 2540)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.747475
- height 55
- orientation 0))
- (object RoleView "$UNNAMED$45" @311
- Parent_View @307
- location (0, 593)
- stereotype TRUE
- line_color 3342489
- quidu "399AE0FC03B7"
- client @307
- supplier @305
- vertices (list Points
- (416, 2465)
- (416, 2366))
- line_style 3
- origin_attachment (416, 2465)
- terminal_attachment (416, 2366))))
- (object ClassView "Class" "Logical View::ejb::EJBRelation" @312
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (616, 992)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @312
- location (351, 865)
- fill_color 13434879
- nlines 2
- max_width 530
- justify 0
- label "EJBRelation")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF0C0203BF"
- compartment (object Compartment
- Parent_View @312
- location (351, 926)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 572)
- width 548
- height 278
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::Relationships" @313
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (528, 577)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @313
- location (263, 499)
- fill_color 13434879
- nlines 1
- max_width 530
- justify 0
- label "Relationships")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BEF81703B3"
- compartment (object Compartment
- Parent_View @313
- location (263, 560)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 572)
- width 548
- height 180
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$19" @314
- location (550, 413)
- stereotype TRUE
- line_color 32768
- quidu "39BEF8870378"
- roleview_list (list RoleViews
- (object RoleView "ejbJar" @315
- Parent_View @314
- location (54, 109)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @316
- Parent_View @315
- location (653, 369)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 137
- justify 0
- label "+ejbJar"
- pctDist 0.608108
- height 103
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BEF889003D"
- client @314
- supplier @304
- vertices (list Points
- (550, 413)
- (550, 340))
- line_style 3
- origin_attachment (550, 413)
- terminal_attachment (550, 340)
- label (object SegLabel @317
- Parent_View @315
- location (493, 364)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.675676
- height 58
- orientation 0))
- (object RoleView "relationshipList" @318
- Parent_View @314
- location (54, 109)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @319
- Parent_View @318
- location (725, 459)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 304
- justify 0
- label "+relationshipList"
- pctDist 0.637363
- height 175
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BEF889003C"
- client @314
- supplier @313
- vertices (list Points
- (550, 413)
- (550, 487))
- line_style 3
- origin_attachment (550, 413)
- terminal_attachment (550, 487)
- label (object SegLabel @320
- Parent_View @318
- location (487, 463)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.670330
- height 64
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$21" @321
- location (641, 759)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 4227072
- quidu "39BF0C400147"
- roleview_list (list RoleViews
- (object RoleView "ejbRelations" @322
- Parent_View @321
- location (273, 503)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @323
- Parent_View @322
- location (492, 793)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 244
- justify 0
- label "+ejbRelations"
- pctDist 0.379310
- height 150
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF0C41001C"
- client @321
- supplier @312
- vertices (list Points
- (641, 759)
- (641, 852))
- line_style 3
- origin_attachment (641, 759)
- terminal_attachment (641, 852)
- label (object SegLabel @324
- Parent_View @322
- location (697, 805)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.500000
- height 56
- orientation 0))
- (object RoleView "relationshipList" @325
- Parent_View @321
- location (273, 503)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @326
- Parent_View @325
- location (840, 701)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 304
- justify 0
- label "+relationshipList"
- pctDist 0.622222
- height 199
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF0C41001D"
- client @321
- supplier @313
- vertices (list Points
- (641, 759)
- (641, 666))
- line_style 3
- origin_attachment (641, 759)
- terminal_attachment (641, 666)
- label (object SegLabel @327
- Parent_View @325
- location (568, 694)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.711111
- height 74
- orientation 0))))
- (object ClassView "Class" "Logical View::ejb::EJBRelationshipRole" @328
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (537, 1569)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @328
- location (272, 1420)
- fill_color 13434879
- nlines 1
- max_width 530
- justify 0
- label "EJBRelationshipRole")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF0DD0023D"
- compartment (object Compartment
- Parent_View @328
- location (272, 1481)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 572)
- width 548
- height 322
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$25" @329
- location (101, 1910)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 4227072
- quidu "39BF1BBD02ED"
- roleview_list (list RoleViews
- (object RoleView "/opposite" @330
- Parent_View @329
- location (-411, 774)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @331
- Parent_View @330
- location (493, 1785)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 188
- justify 0
- label "+/opposite"
- pctDist 0.905192
- height 124
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF1BC0039C"
- client @329
- supplier @328
- vertices (list Points
- (101, 1910)
- (101, 1970)
- (369, 1970)
- (369, 1730))
- line_style 3
- origin_attachment (101, 1910)
- terminal_attachment (369, 1730))
- (object RoleView "$UNNAMED$26" @332
- Parent_View @329
- location (-411, 774)
- stereotype TRUE
- line_color 3342489
- quidu "39BF1BC003A6"
- client @329
- supplier @328
- vertices (list Points
- (101, 1910)
- (101, 1590)
- (263, 1590))
- line_style 3
- origin_attachment (101, 1910)
- terminal_attachment (263, 1590))))
- (object AssociationViewNew "$UNNAMED$24" @333
- location (500, 1986)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 4227072
- quidu "39BF182001C1"
- roleview_list (list RoleViews
- (object RoleView "cmrField" @334
- Parent_View @333
- location (-12, 850)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @335
- Parent_View @334
- location (383, 2193)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 182
- justify 0
- label "+cmrField"
- pctDist 0.809524
- height 118
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF182100D2"
- client @333
- supplier @305
- vertices (list Points
- (500, 1986)
- (500, 2242))
- line_style 3
- origin_attachment (500, 1986)
- terminal_attachment (500, 2242)
- label (object SegLabel @336
- Parent_View @334
- location (539, 2179)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.752294
- height 39
- orientation 0))
- (object RoleView "role" @337
- Parent_View @333
- location (-12, 850)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @338
- Parent_View @337
- location (572, 1780)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 104
- justify 0
- label "+role"
- pctDist 0.805714
- height 72
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF182100DC"
- client @333
- supplier @328
- vertices (list Points
- (500, 1986)
- (500, 1730))
- line_style 3
- origin_attachment (500, 1986)
- terminal_attachment (500, 1730))))
- (object AssociationViewNew "$UNNAMED$22" @339
- location (647, 1268)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 4227072
- quidu "39BF0DE30136"
- roleview_list (list RoleViews
- (object RoleView "relationshipRoles" @340
- Parent_View @339
- location (151, 564)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @341
- Parent_View @340
- location (460, 1363)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 332
- justify 0
- label "+relationshipRoles"
- pctDist 0.685185
- height 188
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF0DE303D5"
- client @339
- supplier @328
- vertices (list Points
- (647, 1268)
- (647, 1407))
- line_style 3
- origin_attachment (647, 1268)
- terminal_attachment (647, 1407)
- label (object SegLabel @342
- Parent_View @340
- location (684, 1374)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "2"
- pctDist 0.761905
- height 37
- orientation 0))
- (object RoleView "relationship" @343
- Parent_View @339
- location (151, 564)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @344
- Parent_View @343
- location (494, 1190)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 236
- justify 0
- label "+relationship"
- pctDist 0.575342
- height 154
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BF0DE303D6"
- client @339
- supplier @312
- vertices (list Points
- (647, 1268)
- (647, 1130))
- line_style 3
- origin_attachment (647, 1268)
- terminal_attachment (647, 1130)
- label (object SegLabel @345
- Parent_View @343
- location (686, 1172)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.698630
- height 39
- orientation 1))))
- (object ClassView "Class" "Logical View::common::Description" @346
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1596, 471)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @346
- location (1468, 342)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @346
- location (1468, 457)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 285)
- width 274
- height 282
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$65" @347
- location (1042, 613)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D1FCB01AA"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @348
- Parent_View @347
- location (531, -379)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @349
- Parent_View @348
- location (1310, 597)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.645621
- height 17
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1FCC00C5"
- client @347
- supplier @346
- vertices (list Points
- (1042, 613)
- (1459, 613))
- line_style 3
- origin_attachment (1042, 613)
- terminal_attachment (1459, 613)
- label (object SegLabel @350
- Parent_View @348
- location (1366, 654)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.775967
- height 41
- orientation 1))
- (object RoleView "$UNNAMED$66" @351
- Parent_View @347
- location (531, -379)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1FCC00E3"
- client @347
- supplier @312
- vertices (list Points
- (1042, 613)
- (865, 613)
- (865, 853))
- line_style 3
- origin_attachment (1042, 613)
- terminal_attachment (865, 853))))
- (object AssociationViewNew "$UNNAMED$73" @352
- location (1130, 506)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D1FBF01CB"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @353
- Parent_View @352
- location (602, -70)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @354
- Parent_View @353
- location (1299, 463)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.512903
- height 44
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1FC1001F"
- client @352
- supplier @346
- vertices (list Points
- (1130, 506)
- (1459, 506))
- line_style 3
- origin_attachment (1130, 506)
- terminal_attachment (1459, 506)
- label (object SegLabel @355
- Parent_View @353
- location (1344, 542)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.654839
- height 36
- orientation 1))
- (object RoleView "$UNNAMED$74" @356
- Parent_View @352
- location (602, -70)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1FC10047"
- client @352
- supplier @313
- vertices (list Points
- (1130, 506)
- (802, 506))
- line_style 3
- origin_attachment (1130, 506)
- terminal_attachment (802, 506))))
- (object AssociationViewNew "$UNNAMED$77" @357
- location (1285, 1169)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D20C102C6"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @358
- Parent_View @357
- location (748, -400)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @359
- Parent_View @358
- location (1409, 724)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.861596
- height 125
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D20C400CC"
- client @357
- supplier @346
- vertices (list Points
- (1285, 1169)
- (1533, 1169)
- (1533, 612))
- line_style 3
- origin_attachment (1285, 1169)
- terminal_attachment (1533, 612)
- label (object SegLabel @360
- Parent_View @358
- location (1481, 676)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.921446
- height 53
- orientation 0))
- (object RoleView "$UNNAMED$78" @361
- Parent_View @357
- location (748, -400)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D20C400EA"
- client @357
- supplier @328
- vertices (list Points
- (1285, 1169)
- (719, 1169)
- (719, 1408))
- line_style 3
- origin_attachment (1285, 1169)
- terminal_attachment (719, 1408))))
- (object ClassView "Class" "Logical View::ejb::ContainerManagedEntity" @362
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2321, 1138)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @362
- location (1949, 1036)
- fill_color 13434879
- nlines 1
- max_width 744
- justify 0
- label "ContainerManagedEntity")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E3230174"
- compartment (object Compartment
- Parent_View @362
- location (1949, 1097)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 779)
- width 762
- height 228
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$38" @363
- location (1290, 1233)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "398886F503BD"
- roleview_list (list RoleViews
- (object RoleView "/roles" @364
- Parent_View @363
- location (-966, -143)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @365
- Parent_View @364
- location (882, 1363)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 140
- justify 0
- label "+/roles"
- pctDist 0.892857
- height 41
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "398886F602D8"
- client @363
- supplier @328
- vertices (list Points
- (1290, 1233)
- (1079, 1233)
- (1079, 1403)
- (811, 1403))
- line_style 3
- origin_attachment (1290, 1233)
- terminal_attachment (811, 1403)
- label (object SegLabel @366
- Parent_View @364
- location (875, 1440)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900794
- height 37
- orientation 0))
- (object RoleView "$UNNAMED$39" @367
- Parent_View @363
- location (-966, -143)
- stereotype TRUE
- line_color 3342489
- quidu "398886F602E2"
- client @363
- supplier @362
- vertices (list Points
- (1290, 1233)
- (1940, 1233))
- line_style 3
- origin_attachment (1290, 1233)
- terminal_attachment (1940, 1233))))
- (object ClassView "Class" "Logical View::ejb::RoleSource" @368
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1456, 1808)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @368
- location (1278, 1705)
- fill_color 13434879
- nlines 2
- max_width 356
- justify 0
- label "RoleSource")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF147500E4"
- compartment (object Compartment
- Parent_View @368
- location (1278, 1766)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 391)
- width 374
- height 230
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$23" @369
- location (1040, 1717)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 4227072
- quidu "39BF14EA02FF"
- roleview_list (list RoleViews
- (object RoleView "source" @370
- Parent_View @369
- location (528, 581)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @371
- Parent_View @370
- location (1191, 1663)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 145
- justify 0
- label "+source"
- pctDist 0.659389
- height 55
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BF14EC0059"
- client @369
- supplier @368
- vertices (list Points
- (1040, 1717)
- (1269, 1717))
- line_style 3
- origin_attachment (1040, 1717)
- terminal_attachment (1269, 1717)
- label (object SegLabel @372
- Parent_View @370
- location (1245, 1771)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "role" @373
- Parent_View @369
- location (528, 581)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @374
- Parent_View @373
- location (888, 1661)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 104
- justify 0
- label "+role"
- pctDist 0.663755
- height 57
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF14EC005A"
- client @369
- supplier @328
- vertices (list Points
- (1040, 1717)
- (811, 1717))
- line_style 3
- origin_attachment (1040, 1717)
- terminal_attachment (811, 1717)
- label (object SegLabel @375
- Parent_View @373
- location (835, 1771)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$69" @376
- location (1644, 1152)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D210300CD"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @377
- Parent_View @376
- location (188, -656)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @378
- Parent_View @377
- location (1797, 726)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.790657
- height 153
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D210502EC"
- client @376
- supplier @346
- vertices (list Points
- (1644, 1152)
- (1644, 612))
- line_style 3
- origin_attachment (1644, 1152)
- terminal_attachment (1644, 612)
- label (object SegLabel @379
- Parent_View @377
- location (1698, 667)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$70" @380
- Parent_View @376
- location (188, -656)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D2105030A"
- client @376
- supplier @368
- vertices (list Points
- (1644, 1152)
- (1644, 1693))
- line_style 3
- origin_attachment (1644, 1152)
- terminal_attachment (1644, 1693))))
- (object AssociationViewNew "$UNNAMED$36" @381
- location (1942, 1652)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "398884C2036E"
- roleview_list (list RoleViews
- (object RoleView "entityBean" @382
- Parent_View @381
- location (710, 260)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @383
- Parent_View @382
- location (1964, 1917)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 228
- justify 0
- label "+entityBean"
- pctDist -0.664634
- height 22
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "398884C3027F"
- client @381
- supplier @362
- vertices (list Points
- (1942, 1652)
- (1942, 1252))
- line_style 3
- origin_attachment (1942, 1652)
- terminal_attachment (1942, 1252)
- label (object SegLabel @384
- Parent_View @382
- location (1996, 1293)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$37" @385
- Parent_View @381
- location (710, 260)
- stereotype TRUE
- line_color 3342489
- quidu "398884C30289"
- client @381
- supplier @368
- vertices (list Points
- (1942, 1652)
- (1942, 1754)
- (1643, 1754))
- line_style 3
- origin_attachment (1942, 1652)
- terminal_attachment (1643, 1754))))))
- (object ClassDiagram "EJB2.1 - Query"
- quid "39BF241E0193"
- title "EJB2.1 - Query"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 338
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::ejb::ReturnTypeMapping" @386
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (368, 1891)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @386
- location (168, 1807)
- fill_color 13434879
- nlines 1
- max_width 400
- justify 0
- label "ReturnTypeMapping")
- stereotype (object ItemLabel
- Parent_View @386
- location (168, 1757)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 400
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 16384
- fill_color 13434833
- quidu "398870D30276"
- compartment (object Compartment
- Parent_View @386
- location (168, 1868)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 200)
- width 418
- height 292
- annotation 8
- autoResize TRUE)
- (object Label @387
- location (199, 56)
- font (object Font
- size 14
- face "Arial"
- bold TRUE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 1
- max_width 600
- label "EJB2.1 Query")
- (object ClassView "Class" "Logical View::ejb::MethodElement" @388
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1754, 1063)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @388
- location (1505, 914)
- fill_color 13434879
- nlines 1
- max_width 498
- justify 0
- label "MethodElement")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "392ED22D008A"
- compartment (object Compartment
- Parent_View @388
- location (1505, 975)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 532)
- width 516
- height 322
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::EnterpriseBean" @389
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3072, 983)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @389
- location (2858, 802)
- fill_color 13434879
- nlines 1
- max_width 428
- justify 0
- label "EnterpriseBean")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E71A010A"
- compartment (object Compartment
- Parent_View @389
- location (2858, 863)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 303)
- width 446
- height 386
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$12" @390
- location (2446, 945)
- stereotype TRUE
- line_color 3342489
- quidu "3937D6FF011D"
- roleview_list (list RoleViews
- (object RoleView "methodElement" @391
- Parent_View @390
- location (-164, 465)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @392
- Parent_View @391
- location (2198, 932)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 322
- justify 0
- label "+methodElement"
- pctDist 0.600998
- height 47
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3937D7000218"
- client @390
- supplier @388
- vertices (list Points
- (2446, 945)
- (2446, 978)
- (2012, 978))
- line_style 3
- origin_attachment (2446, 945)
- terminal_attachment (2012, 978)
- label (object SegLabel @393
- Parent_View @391
- location (2083, 1029)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.850374
- height 51
- orientation 0))
- (object RoleView "enterpriseBean" @394
- Parent_View @390
- location (-164, 465)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @395
- Parent_View @394
- location (2673, 866)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 299
- justify 0
- label "+enterpriseBean"
- pctDist 0.599503
- height 47
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3937D7000178"
- client @390
- supplier @389
- vertices (list Points
- (2446, 945)
- (2446, 912)
- (2849, 912))
- line_style 3
- origin_attachment (2446, 945)
- terminal_attachment (2849, 912)
- label (object SegLabel @396
- Parent_View @394
- location (2804, 966)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))))
- (object ClassView "Class" "Logical View::ejb::Entity" @397
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1591, 361)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @397
- location (1408, 258)
- fill_color 13434879
- nlines 2
- max_width 366
- justify 0
- label "Entity")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E6970351"
- compartment (object Compartment
- Parent_View @397
- location (1408, 319)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 388)
- width 384
- height 230
- annotation 8
- autoResize TRUE)
- (object InheritView "" @398
- stereotype TRUE
- line_color 3342489
- quidu "3780E8080095"
- client @397
- supplier @389
- vertices (list Points
- (1783, 440)
- (2848, 889))
- line_style 0)
- (object ClassView "Class" "Logical View::ejb::QueryMethod" @399
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1984, 1481)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @399
- location (1896, 1405)
- fill_color 13434879
- nlines 2
- max_width 176
- justify 0
- label "QueryMethod")
- icon_style "Icon"
- line_color 32768
- fill_color 13434833
- quidu "399ACD9C02DF"
- width 194
- height 176
- annotation 8
- autoResize TRUE)
- (object InheritView "" @400
- stereotype TRUE
- line_color 32768
- quidu "399AD23802A9"
- client @399
- supplier @388
- vertices (list Points
- (1953, 1392)
- (1953, 1224))
- line_style 3
- origin_attachment (1953, 1392)
- terminal_attachment (1953, 1224))
- (object ClassView "Class" "Logical View::common::Description" @401
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (918, 2037)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @401
- location (790, 1907)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 3342489
- fill_color 15778042
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @401
- location (790, 2022)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 285)
- width 274
- height 284
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::ContainerManagedEntity" @402
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (660, 397)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @402
- location (288, 270)
- fill_color 13434879
- nlines 2
- max_width 744
- justify 0
- label "ContainerManagedEntity")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E3230174"
- compartment (object Compartment
- Parent_View @402
- location (288, 331)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 779)
- width 762
- height 278
- annotation 8
- autoResize TRUE)
- (object InheritView "" @403
- stereotype TRUE
- line_color 3342489
- quidu "3780E3230175"
- client @402
- supplier @397
- vertices (list Points
- (1041, 366)
- (1399, 366))
- line_style 3
- origin_attachment (1041, 366)
- terminal_attachment (1399, 366))
- (object ClassView "Class" "Logical View::ejb::Query" @404
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (782, 1478)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @404
- location (305, 1353)
- fill_color 13434879
- nlines 1
- max_width 954
- justify 0
- label "Query")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF02710327"
- compartment (object Compartment
- Parent_View @404
- location (305, 1414)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 973)
- width 972
- height 274
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$20" @405
- location (1577, 1475)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 4227072
- quidu "39BF056702CD"
- roleview_list (list RoleViews
- (object RoleView "queryMethod" @406
- Parent_View @405
- location (1257, 131)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @407
- Parent_View @406
- location (1729, 1438)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 262
- justify 0
- label "+queryMethod"
- pctDist 0.491525
- height 38
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BF056901EA"
- client @405
- supplier @399
- vertices (list Points
- (1577, 1475)
- (1887, 1475))
- line_style 3
- origin_attachment (1577, 1475)
- terminal_attachment (1887, 1475)
- label (object SegLabel @408
- Parent_View @406
- location (1855, 1529)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "query" @409
- Parent_View @405
- location (1257, 131)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @410
- Parent_View @409
- location (1330, 1434)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 138
- justify 0
- label "+query"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF056901F4"
- client @405
- supplier @404
- vertices (list Points
- (1577, 1475)
- (1268, 1475))
- line_style 3
- origin_attachment (1577, 1475)
- terminal_attachment (1268, 1475)
- label (object SegLabel @411
- Parent_View @409
- location (1299, 1529)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$83" @412
- location (849, 1754)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E56500D0259"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @413
- Parent_View @412
- location (67, 276)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @414
- Parent_View @413
- location (1015, 1844)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.874408
- height 140
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E56500E0142"
- client @412
- supplier @401
- vertices (list Points
- (849, 1754)
- (883, 1894))
- line_style 0
- label (object SegLabel @415
- Parent_View @413
- location (818, 1852)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.607463
- height 55
- orientation 1))
- (object RoleView "$UNNAMED$84" @416
- Parent_View @412
- location (67, 276)
- stereotype TRUE
- line_color 3342489
- quidu "3E56500E0174"
- client @412
- supplier @404
- vertices (list Points
- (849, 1754)
- (815, 1615))
- line_style 0)))
- (object AssociationViewNew "$UNNAMED$54" @417
- location (638, 1013)
- stereotype TRUE
- line_color 32768
- quidu "3E4D25D600F0"
- roleview_list (list RoleViews
- (object RoleView "entity" @418
- Parent_View @417
- location (174, -171)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @419
- Parent_View @418
- location (696, 570)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 136
- justify 0
- label "+entity"
- pctDist 0.938272
- height 118
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D25D600F1"
- client @417
- supplier @402
- vertices (list Points
- (638, 1013)
- (578, 1013)
- (578, 536))
- line_style 3
- origin_attachment (638, 1013)
- terminal_attachment (578, 536)
- label (object SegLabel @420
- Parent_View @418
- location (509, 572)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.934568
- height 70
- orientation 0))
- (object RoleView "queries" @421
- Parent_View @417
- location (174, -171)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @422
- Parent_View @421
- location (910, 1283)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 158
- justify 0
- label "+queries"
- pctDist 0.883951
- height 113
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D25D600F2"
- client @417
- supplier @404
- vertices (list Points
- (638, 1013)
- (797, 1013)
- (797, 1341))
- line_style 3
- origin_attachment (638, 1013)
- terminal_attachment (797, 1341)
- label (object SegLabel @423
- Parent_View @421
- location (883, 1320)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.958025
- height 86
- orientation 0))))))
- (object ClassDiagram "EJB2.1 - Message Driven Bean"
- quid "39BF2749030C"
- title "EJB2.1 - Message Driven Bean"
- documentation
-|@version J2EE1.4
-|The messaging-type element specifies the message
-| listener interface of the message-driven bean. If
-| the messaging-type element is not specified, it is
-| assumed to be javax.jms.MessageListener.
-
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 1931
- items (list diagram_item_list
- (object Label @424
- location (50, 41)
- font (object Font
- size 12
- face "Arial"
- bold TRUE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 1
- max_width 762
- label "EJB2.1 Message Driven Bean")
- (object ClassView "Class" "Logical View::ejb::EnterpriseBean" @425
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (396, 361)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @425
- location (242, 315)
- fill_color 13434879
- nlines 1
- max_width 308
- justify 0
- label "EnterpriseBean")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E71A010A"
- width 326
- height 117
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::TransactionType" @426
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1825, 497)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @426
- location (1659, 413)
- fill_color 13434879
- nlines 1
- max_width 332
- justify 0
- label "TransactionType")
- stereotype (object ItemLabel
- Parent_View @426
- location (1659, 363)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 332
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "37FCA48702EF"
- compartment (object Compartment
- Parent_View @426
- location (1659, 474)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 231)
- width 350
- height 292
- annotation 8
- autoResize TRUE)
- (object NoteView @427
- location (1626, 897)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @427
- location (1488, 797)
- fill_color 13434879
- nlines 4
- max_width 240
- label "Was already used/defined by Session bean")
- line_color 3342489
- fill_color 13434879
- width 300
- height 212)
- (object AttachView "" @428
- stereotype TRUE
- line_color 3342489
- client @427
- supplier @426
- vertices (list Points
- (1678, 790)
- (1751, 643))
- line_style 0)
- (object ClassView "Class" "Logical View::ejb::AcknowledgeMode" @429
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (784, 1169)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @429
- location (564, 1085)
- fill_color 13434879
- nlines 1
- max_width 440
- justify 0
- label "AcknowledgeMode")
- stereotype (object ItemLabel
- Parent_View @429
- location (564, 1035)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 440
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF36D703E4"
- compartment (object Compartment
- Parent_View @429
- location (564, 1146)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 446)
- width 458
- height 292
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::SubscriptionDurabilityKind" @430
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1056, 1968)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @430
- location (805, 1884)
- fill_color 13434879
- nlines 1
- max_width 502
- justify 0
- label "SubscriptionDurabilityKind")
- stereotype (object ItemLabel
- Parent_View @430
- location (805, 1834)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 502
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF38F0029C"
- compartment (object Compartment
- Parent_View @430
- location (805, 1945)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 268)
- width 520
- height 292
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::DestinationType" @431
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (544, 1968)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @431
- location (376, 1884)
- fill_color 13434879
- nlines 1
- max_width 336
- justify 0
- label "DestinationType")
- stereotype (object ItemLabel
- Parent_View @431
- location (376, 1834)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 336
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 32768
- fill_color 13434833
- quidu "39978F5C0106"
- compartment (object Compartment
- Parent_View @431
- location (376, 1945)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 178)
- width 354
- height 292
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::MessageDrivenDestination" @432
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (568, 1616)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @432
- location (112, 1489)
- fill_color 13434879
- nlines 2
- max_width 912
- justify 0
- label "MessageDrivenDestination")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF33F10044"
- compartment (object Compartment
- Parent_View @432
- location (112, 1550)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 951)
- width 930
- height 278
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::java::JavaClass" @433
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1428, 547)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @433
- location (1303, 450)
- fill_color 13434879
- nlines 1
- max_width 251
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "36549FCC00FA"
- width 269
- height 219
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::ActivationConfigProperty" @434
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2620, 1797)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @434
- location (2488, 1670)
- fill_color 13434879
- nlines 2
- max_width 264
- justify 0
- label "ActivationConfigProperty")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4D1A1A00BF"
- compartment (object Compartment
- Parent_View @434
- location (2488, 1781)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 294)
- width 282
- height 278
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::MessageDriven" @435
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (564, 799)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @435
- location (104, 650)
- fill_color 13434879
- nlines 1
- max_width 920
- justify 0
- label "MessageDriven")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BF3248010B"
- compartment (object Compartment
- Parent_View @435
- location (104, 711)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 944)
- width 938
- height 322
- annotation 8
- autoResize TRUE)
- (object InheritView "" @436
- stereotype TRUE
- line_color 4227072
- quidu "39BF3253026F"
- client @435
- supplier @425
- vertices (list Points
- (406, 637)
- (406, 419))
- line_style 3
- origin_attachment (406, 637)
- terminal_attachment (406, 419))
- (object AssociationViewNew "$UNNAMED$31" @437
- location (353, 1218)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 4227072
- quidu "39BF340801FF"
- roleview_list (list RoleViews
- (object RoleView "destination" @438
- Parent_View @437
- location (-47, 418)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @439
- Parent_View @438
- location (502, 1436)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 228
- justify 0
- label "+destination"
- pctDist 0.849817
- height 149
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BF34090052"
- client @437
- supplier @432
- vertices (list Points
- (353, 1218)
- (353, 1476))
- line_style 3
- origin_attachment (353, 1218)
- terminal_attachment (353, 1476)
- label (object SegLabel @440
- Parent_View @438
- location (316, 1422)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.790984
- height 38
- orientation 1))
- (object RoleView "bean" @441
- Parent_View @437
- location (-47, 418)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @442
- Parent_View @441
- location (440, 998)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 128
- justify 0
- label "+bean"
- pctDist 0.857143
- height 87
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BF3409005C"
- client @437
- supplier @435
- vertices (list Points
- (353, 1218)
- (353, 960))
- line_style 3
- origin_attachment (353, 1218)
- terminal_attachment (353, 960)
- label (object SegLabel @443
- Parent_View @441
- location (296, 1001)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.845865
- height 58
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$55" @444
- location (951, 340)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D298201E2"
- roleview_list (list RoleViews
- (object RoleView "messageDestination" @445
- Parent_View @444
- location (454, -460)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @446
- Parent_View @445
- location (1179, 292)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 396
- justify 0
- label "+messageDestination"
- pctDist 0.424176
- height 49
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D29830270"
- client @444
- supplier @433
- vertices (list Points
- (951, 340)
- (1393, 340)
- (1393, 438))
- line_style 3
- origin_attachment (951, 340)
- terminal_attachment (1393, 438)
- label (object SegLabel @447
- Parent_View @445
- location (1340, 383)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$56" @448
- Parent_View @444
- location (454, -460)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D2983027A"
- client @444
- supplier @435
- vertices (list Points
- (951, 340)
- (708, 340)
- (708, 638))
- line_style 3
- origin_attachment (951, 340)
- terminal_attachment (708, 638))))
- (object AssociationViewNew "$UNNAMED$61" @449
- location (1077, 584)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E562D9E0254"
- roleview_list (list RoleViews
- (object RoleView "messagingType" @450
- Parent_View @449
- location (580, -216)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @451
- Parent_View @450
- location (1129, 552)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 312
- justify 0
- label "+messagingType"
- pctDist 0.245455
- height 33
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E562D9F0183"
- client @449
- supplier @433
- vertices (list Points
- (1077, 584)
- (1294, 584))
- line_style 3
- origin_attachment (1077, 584)
- terminal_attachment (1294, 584)
- label (object SegLabel @452
- Parent_View @450
- location (1243, 639)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.768182
- height 55
- orientation 1))
- (object RoleView "$UNNAMED$62" @453
- Parent_View @449
- location (580, -216)
- stereotype TRUE
- line_color 3342489
- quidu "3E562D9F0197"
- client @449
- supplier @435
- vertices (list Points
- (1077, 584)
- (914, 584)
- (914, 638))
- line_style 3
- origin_attachment (1077, 584)
- terminal_attachment (914, 638))))
- (object ClassView "Class" "Logical View::common::Description" @454
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2490, 687)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @454
- location (2362, 558)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @454
- location (2362, 673)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 285)
- width 274
- height 282
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::ejb::ActivationConfig" @455
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1848, 1387)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @455
- location (1752, 1311)
- fill_color 13434879
- nlines 2
- max_width 192
- justify 0
- label "ActivationConfig")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4D1A7E0131"
- width 210
- height 176
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$46" @456
- location (2044, 1713)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D1AE2015D"
- roleview_list (list RoleViews
- (object RoleView "configProperties" @457
- Parent_View @456
- location (196, 326)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @458
- Parent_View @457
- location (2299, 1776)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 314
- justify 0
- label "+configProperties"
- pctDist 0.585480
- height 63
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1AE20333"
- client @456
- supplier @434
- vertices (list Points
- (2044, 1713)
- (2479, 1713))
- line_style 3
- origin_attachment (2044, 1713)
- terminal_attachment (2479, 1713)
- label (object SegLabel @459
- Parent_View @457
- location (2322, 1656)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.641164
- height 58
- orientation 0))
- (object RoleView "$UNNAMED$47" @460
- Parent_View @456
- location (196, 326)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1AE20335"
- client @456
- supplier @455
- vertices (list Points
- (2044, 1713)
- (1847, 1713)
- (1847, 1475))
- line_style 3
- origin_attachment (2044, 1713)
- terminal_attachment (1847, 1475))))
- (object AssociationViewNew "$UNNAMED$48" @461
- location (1318, 1145)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D1B050149"
- roleview_list (list RoleViews
- (object RoleView "activationConfig" @462
- Parent_View @461
- location (822, 345)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @463
- Parent_View @462
- location (1574, 1318)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 309
- justify 0
- label "+activationConfig"
- pctDist 0.737631
- height 45
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1B0700A2"
- client @461
- supplier @455
- vertices (list Points
- (1318, 1145)
- (1318, 1362)
- (1743, 1362))
- line_style 3
- origin_attachment (1318, 1145)
- terminal_attachment (1743, 1362)
- label (object SegLabel @464
- Parent_View @462
- location (1679, 1416)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$49" @465
- Parent_View @461
- location (822, 345)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1B0700A4"
- client @461
- supplier @435
- vertices (list Points
- (1318, 1145)
- (1318, 787)
- (1033, 787))
- line_style 3
- origin_attachment (1318, 1145)
- terminal_attachment (1033, 787))))
- (object AssociationViewNew "$UNNAMED$63" @466
- location (1949, 807)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D1AAD00AC"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @467
- Parent_View @466
- location (101, -580)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @468
- Parent_View @467
- location (2200, 668)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.691023
- height 51
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1AAD03A5"
- client @466
- supplier @454
- vertices (list Points
- (1949, 807)
- (1949, 718)
- (2353, 718))
- line_style 3
- origin_attachment (1949, 807)
- terminal_attachment (2353, 718)
- label (object SegLabel @469
- Parent_View @467
- location (2290, 772)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.872651
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$64" @470
- Parent_View @466
- location (101, -580)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D1AAD03CD"
- client @466
- supplier @455
- vertices (list Points
- (1949, 807)
- (1949, 1299))
- line_style 3
- origin_attachment (1949, 807)
- terminal_attachment (1949, 1299))))))))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/j2ee.mdl b/plugins/org.eclipse.jst.j2ee.core/rose/j2ee.mdl deleted file mode 100644 index f4aa4d5f2..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/j2ee.mdl +++ /dev/null @@ -1,5834 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Design "Logical View"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "IDE"
- value "Internal Editor")
- (object Attribute
- tool "Java"
- name "UserDefineTagName1"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagText1"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagApply1"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagName2"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagText2"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagApply2"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagName3"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagText3"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineTagApply3"
- value ""))
- quid "39EE0E7F014C"
- enforceClosureAutoLoad FALSE
- defaults (object defaults
- rightMargin 0.250000
- leftMargin 0.250000
- topMargin 0.250000
- bottomMargin 0.500000
- pageOverlap 0.250000
- clipIconLabels TRUE
- autoResize TRUE
- snapToGrid FALSE
- gridX 16
- gridY 16
- defaultFont (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- showMessageNum 1
- showClassOfObject TRUE
- notation "Unified")
- root_usecase_package (object Class_Category "Use Case View"
- quid "39EE0E7F014E"
- exportControl "Public"
- global TRUE
- logical_models (list unit_reference_list)
- logical_presentations (list unit_reference_list
- (object UseCaseDiagram "Main"
- quid "39EE0E8001F9"
- title "Main"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list))))
- root_category (object Class_Category "Logical View"
- quid "39EE0E7F014D"
- exportControl "Public"
- global TRUE
- subsystem "Component View"
- quidu "39EE0E7F014F"
- logical_models (list unit_reference_list
- (object Class_Category "ecore"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.emf.ecore\\model\\org.eclipse.emf.Ecore.cat"
- quid "39A5ED04004E")
- (object Class_Category "java"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jem\\rose\\edocjava2.cat"
- quid "36549F2C004E")
- (object Class_Category "client"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\client.cat"
- quid "38C0280700C0")
- (object Class_Category "application"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\application.cat"
- quid "38C03008014E")
- (object Class_Category "common"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\common.cat"
- quid "38C08F0F038D")
- (object Class_Category "ejb"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\ejbschema.cat"
- quid "3780E272032D")
- (object Class_Category "taglib"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\taglib_1_1.cat"
- quid "39A6BA5F0070")
- (object Class_Category "webapplication"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\webapplication.cat"
- quid "38C076D603DD")
- (object Class_Category "jca"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\jca1_0.cat"
- quid "3C60904200BB")
- (object Class_Category "wsclient"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\webservices_client_1_0.cat"
- quid "3E4D2F4B02AA")
- (object Class_Category "jsp"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\jsp_2_0.cat"
- quid "3E4D4F69036B")
- (object Class_Category "wscommon"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\wscommon.cat"
- quid "3E15B4C0016F")
- (object Class_Category "wsdd"
- is_unit TRUE
- is_loaded FALSE
- file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\wsdd.cat"
- quid "3E109EAD0319"))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "Main"
- quid "39EE0E8001FA"
- title "Main"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object CategoryView "Logical View::ecore" @1
- location (225, 218)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (81, 134)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "ecore")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39A5ED04004E"
- width 300
- height 180)
- (object CategoryView "Logical View::java" @2
- location (687, 222)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (533, 187)
- fill_color 13434879
- nlines 2
- max_width 308
- justify 0
- label "java")
- stereotype (object ItemLabel
- Parent_View @2
- location (533, 137)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 308
- justify 0
- label "<<metamodel>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "36549F2C004E"
- width 320
- height 182)
- (object CategoryView "Logical View::client" @3
- location (1109, 231)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (965, 147)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "client")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0280700C0"
- width 300
- height 180)
- (object CategoryView "Logical View::application" @4
- location (1543, 222)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @4
- location (1399, 138)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "application")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C03008014E"
- width 300
- height 180)
- (object CategoryView "Logical View::common" @5
- location (1965, 218)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @5
- location (1821, 134)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "common")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C08F0F038D"
- width 300
- height 180)
- (object CategoryView "Logical View::ejb" @6
- location (1189, 609)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @6
- location (1035, 574)
- fill_color 13434879
- nlines 2
- max_width 308
- justify 0
- label "ejb")
- stereotype (object ItemLabel
- Parent_View @6
- location (1035, 524)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 308
- justify 0
- label "<<metamodel>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3780E272032D"
- width 320
- height 182)
- (object CategoryView "Logical View::taglib" @7
- location (1621, 612)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @7
- location (1477, 528)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "taglib")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39A6BA5F0070"
- width 300
- height 180)
- (object CategoryView "Logical View::webapplication" @8
- location (303, 614)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @8
- location (159, 530)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "webapplication")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C076D603DD"
- width 300
- height 180)
- (object CategoryView "Logical View::jca" @9
- location (737, 627)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @9
- location (593, 543)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "jca")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C60904200BB"
- width 300
- height 180)
- (object CategoryView "Logical View::wsclient" @10
- location (2009, 618)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @10
- location (1865, 534)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "wsclient")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E4D2F4B02AA"
- width 300
- height 180)
- (object CategoryView "Logical View::wscommon" @11
- location (325, 934)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @11
- location (181, 850)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "wscommon")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E15B4C0016F"
- width 300
- height 180)
- (object CategoryView "Logical View::wsdd" @12
- location (750, 940)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @12
- location (606, 856)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "wsdd")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E109EAD0319"
- width 300
- height 180)))))
- root_subsystem (object SubSystem "Component View"
- quid "39EE0E7F014F"
- physical_models (list unit_reference_list)
- physical_presentations (list unit_reference_list
- (object Module_Diagram "Main"
- quid "39EE0E8001F8"
- title "Main"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list)))
- category "Logical View"
- quidu "4307861E0238")
- process_structure (object Processes
- quid "39EE0E7F0150"
- ProcsNDevs (list
- (object Process_Diagram "Deployment View"
- quid "39EE0E7F0152"
- title "Deployment View"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list))))
- properties (object Properties
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "propertyId"
- value "809135969")
- (object Attribute
- tool "Ecore"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "packageName"
- value "")
- (object Attribute
- tool "Ecore"
- name "nsPrefix"
- value "")
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value "")
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value "")
- (object Attribute
- tool "Ecore"
- name "prefix"
- value "")
- (object Attribute
- tool "Ecore"
- name "annotation"
- value "")))
- (object Attribute
- tool "Ecore"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "classifierName"
- value "")
- (object Attribute
- tool "Ecore"
- name "xmlName"
- value "")
- (object Attribute
- tool "Ecore"
- name "xmlContentKind"
- value ("ContentKind" 0))
- (object Attribute
- tool "Ecore"
- name "ContentKind"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "Unspecified"
- value 0)
- (object Attribute
- tool "Ecore"
- name "Empty"
- value 1)
- (object Attribute
- tool "Ecore"
- name "Simple"
- value 2)
- (object Attribute
- tool "Ecore"
- name "Mixed"
- value 3)
- (object Attribute
- tool "Ecore"
- name "ElementOnly"
- value 4)))
- (object Attribute
- tool "Ecore"
- name "annotation"
- value "")))
- (object Attribute
- tool "Ecore"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "operationName"
- value "")
- (object Attribute
- tool "Ecore"
- name "annotation"
- value "")))
- (object Attribute
- tool "Ecore"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "attributeName"
- value "")
- (object Attribute
- tool "Ecore"
- name "isTransient"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isVolatile"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isChangeable"
- value TRUE)
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isUnique"
- value TRUE)
- (object Attribute
- tool "Ecore"
- name "isID"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "xmlName"
- value "")
- (object Attribute
- tool "Ecore"
- name "xmlNamespace"
- value "")
- (object Attribute
- tool "Ecore"
- name "xmlFeatureKind"
- value ("FeatureKind" 0))
- (object Attribute
- tool "Ecore"
- name "FeatureKind"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "Unspecified"
- value 0)
- (object Attribute
- tool "Ecore"
- name "Simple"
- value 1)
- (object Attribute
- tool "Ecore"
- name "Attribute"
- value 2)
- (object Attribute
- tool "Ecore"
- name "Element"
- value 4)))
- (object Attribute
- tool "Ecore"
- name "annotation"
- value "")))
- (object Attribute
- tool "Ecore"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "referenceName"
- value "")
- (object Attribute
- tool "Ecore"
- name "isTransient"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isVolatile"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isChangeable"
- value TRUE)
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value FALSE)
- (object Attribute
- tool "Ecore"
- name "isResolveProxies"
- value TRUE)
- (object Attribute
- tool "Ecore"
- name "xmlName"
- value "")
- (object Attribute
- tool "Ecore"
- name "xmlNamespace"
- value "")
- (object Attribute
- tool "Ecore"
- name "xmlFeatureKind"
- value ("FeatureKind" 0))
- (object Attribute
- tool "Ecore"
- name "FeatureKind"
- value (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "Unspecified"
- value 0)
- (object Attribute
- tool "Ecore"
- name "Simple"
- value 1)
- (object Attribute
- tool "Ecore"
- name "Attribute"
- value 2)
- (object Attribute
- tool "Ecore"
- name "Element"
- value 4)))
- (object Attribute
- tool "Ecore"
- name "annotation"
- value "")))
- (object Attribute
- tool "Cplusplus"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "Cplusplus"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "InitialValue"
- value "")))
- (object Attribute
- tool "Cplusplus"
- name "default__Inherit"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)))
- (object Attribute
- tool "Cplusplus"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "RevEngRootDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "RootPackage"
- value "C++ Reverse Engineered")
- (object Attribute
- tool "Cplusplus"
- name "RevEngDirectoriesAsPackages"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "HeaderFileExtension"
- value ".h")
- (object Attribute
- tool "Cplusplus"
- name "ImplementationFileExtension"
- value ".cpp")
- (object Attribute
- tool "Cplusplus"
- name "NewHeaderFileDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "NewImplementationFileDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "FileCapitalization"
- value ("FileCapitalizationSet" 0))
- (object Attribute
- tool "Cplusplus"
- name "CodeGenExtraDirectories"
- value ("CodeGenExtraDirectoriesSet" 0))
- (object Attribute
- tool "Cplusplus"
- name "StripClassPrefix"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "UseTabs"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "TabWidth"
- value 8)
- (object Attribute
- tool "Cplusplus"
- name "IndentWidth"
- value 4)
- (object Attribute
- tool "Cplusplus"
- name "AccessIndentation"
- value -2)
- (object Attribute
- tool "Cplusplus"
- name "CreateBackupFiles"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "ModelIdCommentRules"
- value ("ModelIdCommentRulesSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "CommentRules"
- value ("CommentRulesSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "PageWidth"
- value 80)
- (object Attribute
- tool "Cplusplus"
- name "ClassMemberOrder"
- value ("MemberOrderSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "OneParameterPerLine"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "NamespaceBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "ClassBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "FunctionBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "Copyright"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "InitialHeaderIncludes"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "InitialBodyIncludes"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "CodeGenExtraDirectoriesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "None"
- value 0)
- (object Attribute
- tool "Cplusplus"
- name "Namespaces"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Packages"
- value 2)))
- (object Attribute
- tool "Cplusplus"
- name "FileCapitalizationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Same as model"
- value 0)
- (object Attribute
- tool "Cplusplus"
- name "Lower case"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Upper case"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Lower case with underscores"
- value 3)))
- (object Attribute
- tool "Cplusplus"
- name "BraceStyleSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "B1"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "B2"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "B3"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "B4"
- value 4)
- (object Attribute
- tool "Cplusplus"
- name "B5"
- value 5)))
- (object Attribute
- tool "Cplusplus"
- name "MemberOrderSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Public First"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Private First"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Order by kind"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "Unordered"
- value 4)))
- (object Attribute
- tool "Cplusplus"
- name "ModelIdCommentRulesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Code generation only"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Code generation and reverse engineering"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Never generate model IDs"
- value 3)))
- (object Attribute
- tool "Cplusplus"
- name "CommentRulesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Always synchronize"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Code generation only"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Reverse engineering only"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "Never synchronize"
- value 4)))))
- (object Attribute
- tool "Cplusplus"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "RevEngRootDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "RootPackage"
- value "C++ Reverse Engineered")
- (object Attribute
- tool "Cplusplus"
- name "RevEngDirectoriesAsPackages"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "HeaderFileExtension"
- value ".h")
- (object Attribute
- tool "Cplusplus"
- name "ImplementationFileExtension"
- value ".cpp")
- (object Attribute
- tool "Cplusplus"
- name "NewHeaderFileDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "NewImplementationFileDirectory"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "FileCapitalization"
- value ("FileCapitalizationSet" 0))
- (object Attribute
- tool "Cplusplus"
- name "CodeGenExtraDirectories"
- value ("CodeGenExtraDirectoriesSet" 0))
- (object Attribute
- tool "Cplusplus"
- name "StripClassPrefix"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "UseTabs"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "TabWidth"
- value 8)
- (object Attribute
- tool "Cplusplus"
- name "IndentWidth"
- value 4)
- (object Attribute
- tool "Cplusplus"
- name "AccessIndentation"
- value -2)
- (object Attribute
- tool "Cplusplus"
- name "CreateBackupFiles"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "ModelIdCommentRules"
- value ("ModelIdCommentRulesSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "CommentRules"
- value ("CommentRulesSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "PageWidth"
- value 80)
- (object Attribute
- tool "Cplusplus"
- name "ClassMemberOrder"
- value ("MemberOrderSet" 1))
- (object Attribute
- tool "Cplusplus"
- name "OneParameterPerLine"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "NamespaceBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "ClassBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "FunctionBraceStyle"
- value ("BraceStyleSet" 2))
- (object Attribute
- tool "Cplusplus"
- name "Copyright"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "InitialHeaderIncludes"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "InitialBodyIncludes"
- value (value Text ""))
- (object Attribute
- tool "Cplusplus"
- name "CodeGenExtraDirectoriesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "None"
- value 0)
- (object Attribute
- tool "Cplusplus"
- name "Namespaces"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Packages"
- value 2)))
- (object Attribute
- tool "Cplusplus"
- name "FileCapitalizationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Same as model"
- value 0)
- (object Attribute
- tool "Cplusplus"
- name "Lower case"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Upper case"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Lower case with underscores"
- value 3)))
- (object Attribute
- tool "Cplusplus"
- name "BraceStyleSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "B1"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "B2"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "B3"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "B4"
- value 4)
- (object Attribute
- tool "Cplusplus"
- name "B5"
- value 5)))
- (object Attribute
- tool "Cplusplus"
- name "MemberOrderSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Public First"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Private First"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Order by kind"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "Unordered"
- value 4)))
- (object Attribute
- tool "Cplusplus"
- name "ModelIdCommentRulesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Code generation only"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Code generation and reverse engineering"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Never generate model IDs"
- value 3)))
- (object Attribute
- tool "Cplusplus"
- name "CommentRulesSet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Always synchronize"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "Code generation only"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "Reverse engineering only"
- value 3)
- (object Attribute
- tool "Cplusplus"
- name "Never synchronize"
- value 4)))))
- (object Attribute
- tool "Cplusplus"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")))
- (object Attribute
- tool "Cplusplus"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")))
- (object Attribute
- tool "Cplusplus"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "InitialCodeBody"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "Inline"
- value FALSE)
- (object Attribute
- tool "Cplusplus"
- name "GenerateFunctionBody"
- value ("GenerateFunctionBodySet" 2))
- (object Attribute
- tool "Cplusplus"
- name "GenerateFunctionBodySet"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Default"
- value 2)
- (object Attribute
- tool "Cplusplus"
- name "True"
- value 1)
- (object Attribute
- tool "Cplusplus"
- name "False"
- value 0)))))
- (object Attribute
- tool "Cplusplus"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "Synchronize"
- value TRUE)
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "ImplementationType"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "HeaderSourceFile"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "BodySourceFile"
- value "")))
- (object Attribute
- tool "Cplusplus"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "CodeName"
- value "")
- (object Attribute
- tool "Cplusplus"
- name "IsNamespace"
- value FALSE)))
- (object Attribute
- tool "Cplusplus"
- name "default__Uses"
- value (list Attribute_Set
- (object Attribute
- tool "Cplusplus"
- name "BodyReferenceOnly"
- value FALSE)))
- (object Attribute
- tool "Cplusplus"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "ANSIConvert"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "propertyId"
- value "838326200")
- (object Attribute
- tool "Ada83"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "SpecFileExtension"
- value "1.ada")
- (object Attribute
- tool "Ada83"
- name "SpecFileBackupExtension"
- value "1.ad~")
- (object Attribute
- tool "Ada83"
- name "SpecFileTemporaryExtension"
- value "1.ad#")
- (object Attribute
- tool "Ada83"
- name "BodyFileExtension"
- value "2.ada")
- (object Attribute
- tool "Ada83"
- name "BodyFileBackupExtension"
- value "2.ad~")
- (object Attribute
- tool "Ada83"
- name "BodyFileTemporaryExtension"
- value "2.ad#")
- (object Attribute
- tool "Ada83"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "GenerateBodies"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "GenerateAccessorOperations"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "GenerateStandardOperations"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "DefaultCodeBody"
- value "[statement]")
- (object Attribute
- tool "Ada83"
- name "ImplicitParameter"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "CommentWidth"
- value 60)
- (object Attribute
- tool "Ada83"
- name "StopOnError"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "ErrorLimit"
- value 30)
- (object Attribute
- tool "Ada83"
- name "UseFileName"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "Directory"
- value "$ROSEADA83_SOURCE")))
- (object Attribute
- tool "Ada83"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada83"
- name "ClassName"
- value "Object")
- (object Attribute
- tool "Ada83"
- name "ClassAccess"
- value ("ImplementationSet" 43))
- (object Attribute
- tool "Ada83"
- name "ImplementationType"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "IsSubtype"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "PolymorphicUnit"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "HandleName"
- value "Handle")
- (object Attribute
- tool "Ada83"
- name "HandleAccess"
- value ("ImplementationSet" 45))
- (object Attribute
- tool "Ada83"
- name "Discriminant"
- value "")
- (object Attribute
- tool "Ada83"
- name "Variant"
- value "")
- (object Attribute
- tool "Ada83"
- name "EnumerationLiteralPrefix"
- value "A_")
- (object Attribute
- tool "Ada83"
- name "RecordFieldPrefix"
- value "The_")
- (object Attribute
- tool "Ada83"
- name "GenerateAccessorOperations"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "GenerateStandardOperations"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "ImplicitParameter"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "ClassParameterName"
- value "This")
- (object Attribute
- tool "Ada83"
- name "DefaultConstructorKind"
- value ("ConstructorKindSet" 199))
- (object Attribute
- tool "Ada83"
- name "DefaultConstructorName"
- value "Create")
- (object Attribute
- tool "Ada83"
- name "InlineDefaultConstructor"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "CopyConstructorKind"
- value ("ConstructorKindSet" 199))
- (object Attribute
- tool "Ada83"
- name "CopyConstructorName"
- value "Copy")
- (object Attribute
- tool "Ada83"
- name "InlineCopyConstructor"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "DestructorName"
- value "Free")
- (object Attribute
- tool "Ada83"
- name "InlineDestructor"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "ClassEqualityOperation"
- value "")
- (object Attribute
- tool "Ada83"
- name "HandleEqualityOperation"
- value "")
- (object Attribute
- tool "Ada83"
- name "InlineEquality"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "IsTask"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "ImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Public"
- value 45)
- (object Attribute
- tool "Ada83"
- name "Private"
- value 43)
- (object Attribute
- tool "Ada83"
- name "LimitedPrivate"
- value 200)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada83"
- name "ConstructorKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada83"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada83"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "FileName"
- value "")
- (object Attribute
- tool "Ada83"
- name "ReturnType"
- value "")
- (object Attribute
- tool "Ada83"
- name "GenericFormalParameters"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "AdditionalWiths"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "AdditionalUses"
- value (value Text ""))))
- (object Attribute
- tool "Ada83"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "FileName"
- value "")
- (object Attribute
- tool "Ada83"
- name "ReturnType"
- value "")
- (object Attribute
- tool "Ada83"
- name "AdditionalWiths"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "IsSubunit"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "AdditionalUses"
- value (value Text ""))))
- (object Attribute
- tool "Ada83"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada83"
- name "SubprogramImplementation"
- value ("SubprogramImplementationSet" 2))
- (object Attribute
- tool "Ada83"
- name "Renames"
- value "")
- (object Attribute
- tool "Ada83"
- name "ClassParameterMode"
- value ("ParameterModeSet" 203))
- (object Attribute
- tool "Ada83"
- name "Inline"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "EntryCode"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "ExitCode"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "InitialCodeBody"
- value "${default}")
- (object Attribute
- tool "Ada83"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "SubprogramImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Spec"
- value 224)
- (object Attribute
- tool "Ada83"
- name "Body"
- value 2)
- (object Attribute
- tool "Ada83"
- name "Renaming"
- value 222)
- (object Attribute
- tool "Ada83"
- name "Separate"
- value 223)))
- (object Attribute
- tool "Ada83"
- name "ParameterModeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Default"
- value 232)
- (object Attribute
- tool "Ada83"
- name "In"
- value 204)
- (object Attribute
- tool "Ada83"
- name "Out"
- value 205)
- (object Attribute
- tool "Ada83"
- name "InOut"
- value 203)
- (object Attribute
- tool "Ada83"
- name "FunctionReturn"
- value 206)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada83"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Mode"
- value ("ParameterModeSet" 232))
- (object Attribute
- tool "Ada83"
- name "ParameterModeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Default"
- value 232)
- (object Attribute
- tool "Ada83"
- name "In"
- value 204)
- (object Attribute
- tool "Ada83"
- name "Out"
- value 205)
- (object Attribute
- tool "Ada83"
- name "InOut"
- value 203)))
- (object Attribute
- tool "Ada83"
- name "GenericFormal"
- value ("GenericFormalSet" 1))
- (object Attribute
- tool "Ada83"
- name "AssociationMapping"
- value ("AssociationMappingSet" 1))
- (object Attribute
- tool "Ada83"
- name "GenericFormalSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Default"
- value 1)
- (object Attribute
- tool "Ada83"
- name "Object"
- value 2)
- (object Attribute
- tool "Ada83"
- name "Type"
- value 3)
- (object Attribute
- tool "Ada83"
- name "Procedure"
- value 4)
- (object Attribute
- tool "Ada83"
- name "Function"
- value 5)))
- (object Attribute
- tool "Ada83"
- name "AssociationMappingSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Name"
- value 1)
- (object Attribute
- tool "Ada83"
- name "Type"
- value 2)))))
- (object Attribute
- tool "Ada83"
- name "default__Has"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada83"
- name "NameIfUnlabeled"
- value "The_${supplier}")
- (object Attribute
- tool "Ada83"
- name "DataMemberName"
- value "${relationship}")
- (object Attribute
- tool "Ada83"
- name "GetName"
- value "Get_${relationship}")
- (object Attribute
- tool "Ada83"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "SetName"
- value "Set_${relationship}")
- (object Attribute
- tool "Ada83"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada83"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada83"
- name "Variant"
- value "")
- (object Attribute
- tool "Ada83"
- name "ContainerGeneric"
- value "List")
- (object Attribute
- tool "Ada83"
- name "ContainerType"
- value "")
- (object Attribute
- tool "Ada83"
- name "ContainerDeclarations"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "SelectorName"
- value "")
- (object Attribute
- tool "Ada83"
- name "SelectorType"
- value "")
- (object Attribute
- tool "Ada83"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada83"
- name "After"
- value 234)))))
- (object Attribute
- tool "Ada83"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada83"
- name "DataMemberName"
- value "${attribute}")
- (object Attribute
- tool "Ada83"
- name "GetName"
- value "Get_${attribute}")
- (object Attribute
- tool "Ada83"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "SetName"
- value "Set_${attribute}")
- (object Attribute
- tool "Ada83"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada83"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada83"
- name "Variant"
- value "")
- (object Attribute
- tool "Ada83"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada83"
- name "After"
- value 234)))))
- (object Attribute
- tool "Ada83"
- name "default__Association"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "NameIfUnlabeled"
- value "The_${targetClass}")
- (object Attribute
- tool "Ada83"
- name "GetName"
- value "Get_${association}")
- (object Attribute
- tool "Ada83"
- name "InlineGet"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "SetName"
- value "Set_${association}")
- (object Attribute
- tool "Ada83"
- name "InlineSet"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "GenerateAssociate"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada83"
- name "AssociateName"
- value "Associate")
- (object Attribute
- tool "Ada83"
- name "InlineAssociate"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "GenerateDissociate"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada83"
- name "DissociateName"
- value "Dissociate")
- (object Attribute
- tool "Ada83"
- name "InlineDissociate"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada83"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada83"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada83"
- name "NameIfUnlabeled"
- value "The_${targetClass}")
- (object Attribute
- tool "Ada83"
- name "DataMemberName"
- value "${target}")
- (object Attribute
- tool "Ada83"
- name "GetName"
- value "Get_${target}")
- (object Attribute
- tool "Ada83"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "SetName"
- value "Set_${target}")
- (object Attribute
- tool "Ada83"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada83"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada83"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada83"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada83"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "ContainerGeneric"
- value "List")
- (object Attribute
- tool "Ada83"
- name "ContainerType"
- value "")
- (object Attribute
- tool "Ada83"
- name "ContainerDeclarations"
- value (value Text ""))
- (object Attribute
- tool "Ada83"
- name "SelectorName"
- value "")
- (object Attribute
- tool "Ada83"
- name "SelectorType"
- value "")
- (object Attribute
- tool "Ada83"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada83"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada83"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada83"
- name "After"
- value 234)))))
- (object Attribute
- tool "Ada83"
- name "default__Subsystem"
- value (list Attribute_Set
- (object Attribute
- tool "Ada83"
- name "Directory"
- value "AUTO GENERATE")))
- (object Attribute
- tool "Ada83"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "propertyId"
- value "838326200")
- (object Attribute
- tool "Ada95"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "SpecFileExtension"
- value "1.ada")
- (object Attribute
- tool "Ada95"
- name "SpecFileBackupExtension"
- value "1.ad~")
- (object Attribute
- tool "Ada95"
- name "SpecFileTemporaryExtension"
- value "1.ad#")
- (object Attribute
- tool "Ada95"
- name "BodyFileExtension"
- value "2.ada")
- (object Attribute
- tool "Ada95"
- name "BodyFileBackupExtension"
- value "2.ad~")
- (object Attribute
- tool "Ada95"
- name "BodyFileTemporaryExtension"
- value "2.ad#")
- (object Attribute
- tool "Ada95"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "UseColonNotation"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateBodies"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateAccessorOperations"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateStandardOperations"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "DefaultCodeBody"
- value "[statement]")
- (object Attribute
- tool "Ada95"
- name "ImplicitParameter"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "CommentWidth"
- value 60)
- (object Attribute
- tool "Ada95"
- name "StopOnError"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "ErrorLimit"
- value 30)
- (object Attribute
- tool "Ada95"
- name "UseFileName"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "Directory"
- value "$ROSEADA95_SOURCE")))
- (object Attribute
- tool "Ada95"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada95"
- name "TypeName"
- value "Object")
- (object Attribute
- tool "Ada95"
- name "TypeVisibility"
- value ("TypeVisibilitySet" 43))
- (object Attribute
- tool "Ada95"
- name "TypeImplementation"
- value ("TypeImplementationSet" 208))
- (object Attribute
- tool "Ada95"
- name "IncompleteType"
- value ("IncompleteTypeSet" 1))
- (object Attribute
- tool "Ada95"
- name "TypeControl"
- value ("TypeControlSet" 225))
- (object Attribute
- tool "Ada95"
- name "TypeControlName"
- value "Controlled_${type}")
- (object Attribute
- tool "Ada95"
- name "TypeControlVisibility"
- value ("TypeVisibilitySet" 43))
- (object Attribute
- tool "Ada95"
- name "TypeDefinition"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "RecordImplementation"
- value ("RecordImplementationSet" 209))
- (object Attribute
- tool "Ada95"
- name "RecordKindPackageName"
- value "${class}_Record_Kinds")
- (object Attribute
- tool "Ada95"
- name "IsLimited"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "IsSubtype"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateAccessType"
- value ("GenerateAccessTypeSet" 230))
- (object Attribute
- tool "Ada95"
- name "AccessTypeName"
- value "Handle")
- (object Attribute
- tool "Ada95"
- name "AccessTypeVisibility"
- value ("TypeVisibilitySet" 45))
- (object Attribute
- tool "Ada95"
- name "AccessTypeDefinition"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "AccessClassWide"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "MaybeAliased"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "ParameterizedImplementation"
- value ("ParameterizedImplementationSet" 11))
- (object Attribute
- tool "Ada95"
- name "ParentClassName"
- value "Superclass")
- (object Attribute
- tool "Ada95"
- name "EnumerationLiteralPrefix"
- value "A_")
- (object Attribute
- tool "Ada95"
- name "RecordFieldPrefix"
- value "The_")
- (object Attribute
- tool "Ada95"
- name "ArrayOfTypeName"
- value "Array_Of_${type}")
- (object Attribute
- tool "Ada95"
- name "AccessArrayOfTypeName"
- value "Access_Array_Of_${type}")
- (object Attribute
- tool "Ada95"
- name "ArrayOfAccessTypeName"
- value "Array_Of_${access_type}")
- (object Attribute
- tool "Ada95"
- name "AccessArrayOfAccessTypeName"
- value "Access_Array_Of_${access_type}")
- (object Attribute
- tool "Ada95"
- name "ArrayIndexDefinition"
- value "Positive range <>")
- (object Attribute
- tool "Ada95"
- name "GenerateAccessorOperations"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateStandardOperations"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "ImplicitParameter"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "ImplicitParameterName"
- value "This")
- (object Attribute
- tool "Ada95"
- name "GenerateDefaultConstructor"
- value ("SubprogramKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "DefaultConstructorName"
- value "Create")
- (object Attribute
- tool "Ada95"
- name "InlineDefaultConstructor"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateCopyConstructor"
- value ("SubprogramKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "CopyConstructorName"
- value "Copy")
- (object Attribute
- tool "Ada95"
- name "InlineCopyConstructor"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateDestructor"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "DestructorName"
- value "Free")
- (object Attribute
- tool "Ada95"
- name "InlineDestructor"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateTypeEquality"
- value ("FunctionKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "TypeEqualityName"
- value (value Text
-|"="
- ))
- (object Attribute
- tool "Ada95"
- name "InlineEquality"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "TypeImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Tagged"
- value 208)
- (object Attribute
- tool "Ada95"
- name "Record"
- value 210)
- (object Attribute
- tool "Ada95"
- name "Mixin"
- value 211)
- (object Attribute
- tool "Ada95"
- name "Protected"
- value 44)
- (object Attribute
- tool "Ada95"
- name "Task"
- value 212)))
- (object Attribute
- tool "Ada95"
- name "IncompleteTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "DoNotDeclare"
- value 1)
- (object Attribute
- tool "Ada95"
- name "NoDiscriminantPart"
- value 2)
- (object Attribute
- tool "Ada95"
- name "UnknownDiscriminantPart"
- value 3)
- (object Attribute
- tool "Ada95"
- name "KnownDiscriminantPart"
- value 4)))
- (object Attribute
- tool "Ada95"
- name "RecordImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "SingleType"
- value 209)
- (object Attribute
- tool "Ada95"
- name "MultipleTypes"
- value 213)))
- (object Attribute
- tool "Ada95"
- name "ParameterizedImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Generic"
- value 11)
- (object Attribute
- tool "Ada95"
- name "Unconstrained"
- value 214)))
- (object Attribute
- tool "Ada95"
- name "TypeVisibilitySet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Public"
- value 45)
- (object Attribute
- tool "Ada95"
- name "Private"
- value 43)))
- (object Attribute
- tool "Ada95"
- name "SubprogramKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "TypeControlSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "None"
- value 225)
- (object Attribute
- tool "Ada95"
- name "InitializationOnly"
- value 226)
- (object Attribute
- tool "Ada95"
- name "AssignmentFinalizationOnly"
- value 227)
- (object Attribute
- tool "Ada95"
- name "All"
- value 228)))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Always"
- value 229)
- (object Attribute
- tool "Ada95"
- name "Auto"
- value 230)))
- (object Attribute
- tool "Ada95"
- name "IndefiniteType"
- value FALSE)))
- (object Attribute
- tool "Ada95"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "FileName"
- value "")
- (object Attribute
- tool "Ada95"
- name "ReturnType"
- value "")
- (object Attribute
- tool "Ada95"
- name "GenericFormalParameters"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "AdditionalWiths"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "IsPrivate"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "AdditionalUses"
- value (value Text ""))))
- (object Attribute
- tool "Ada95"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "FileName"
- value "")
- (object Attribute
- tool "Ada95"
- name "ReturnType"
- value "")
- (object Attribute
- tool "Ada95"
- name "AdditionalWiths"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "IsSubunit"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "AdditionalUses"
- value (value Text ""))))
- (object Attribute
- tool "Ada95"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada95"
- name "SubprogramImplementation"
- value ("SubprogramImplementationSet" 2))
- (object Attribute
- tool "Ada95"
- name "Renames"
- value "")
- (object Attribute
- tool "Ada95"
- name "GenerateOverriding"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "ImplicitParameterMode"
- value ("ParameterModeSet" 203))
- (object Attribute
- tool "Ada95"
- name "ImplicitParameterClassWide"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateAccessOperation"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "Inline"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "EntryCode"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "ExitCode"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "InitialCodeBody"
- value "${default}")
- (object Attribute
- tool "Ada95"
- name "EntryBarrierCondition"
- value "True")
- (object Attribute
- tool "Ada95"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "SubprogramImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Spec"
- value 224)
- (object Attribute
- tool "Ada95"
- name "Body"
- value 2)
- (object Attribute
- tool "Ada95"
- name "Abstract"
- value 221)
- (object Attribute
- tool "Ada95"
- name "Renaming"
- value 222)
- (object Attribute
- tool "Ada95"
- name "RenamingAsBody"
- value 231)
- (object Attribute
- tool "Ada95"
- name "Separate"
- value 223)))
- (object Attribute
- tool "Ada95"
- name "ParameterModeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Default"
- value 232)
- (object Attribute
- tool "Ada95"
- name "In"
- value 204)
- (object Attribute
- tool "Ada95"
- name "Out"
- value 205)
- (object Attribute
- tool "Ada95"
- name "InOut"
- value 203)
- (object Attribute
- tool "Ada95"
- name "Access"
- value 220)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada95"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Mode"
- value ("ParameterModeSet" 232))
- (object Attribute
- tool "Ada95"
- name "ParameterModeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Default"
- value 232)
- (object Attribute
- tool "Ada95"
- name "In"
- value 204)
- (object Attribute
- tool "Ada95"
- name "Out"
- value 205)
- (object Attribute
- tool "Ada95"
- name "InOut"
- value 203)
- (object Attribute
- tool "Ada95"
- name "Access"
- value 220)))
- (object Attribute
- tool "Ada95"
- name "GenericFormal"
- value ("GenericFormalSet" 1))
- (object Attribute
- tool "Ada95"
- name "AssociationMapping"
- value ("AssociationMappingSet" 1))
- (object Attribute
- tool "Ada95"
- name "GenericFormalSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Default"
- value 1)
- (object Attribute
- tool "Ada95"
- name "Object"
- value 2)
- (object Attribute
- tool "Ada95"
- name "Type"
- value 3)
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 4)
- (object Attribute
- tool "Ada95"
- name "Function"
- value 5)
- (object Attribute
- tool "Ada95"
- name "Package"
- value 6)))
- (object Attribute
- tool "Ada95"
- name "AssociationMappingSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Name"
- value 1)
- (object Attribute
- tool "Ada95"
- name "Type"
- value 2)))))
- (object Attribute
- tool "Ada95"
- name "default__Has"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada95"
- name "NameIfUnlabeled"
- value "The_${supplier}")
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementation"
- value ("RecordFieldImplementationSet" 216))
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminantClassWide"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "RecordFieldName"
- value "${relationship}")
- (object Attribute
- tool "Ada95"
- name "GenerateGet"
- value ("FunctionKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessGet"
- value ("FunctionKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "GetName"
- value "Get_${relationship}")
- (object Attribute
- tool "Ada95"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateSet"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessSet"
- value ("ProcedureKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "SetName"
- value "Set_${relationship}")
- (object Attribute
- tool "Ada95"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "IsAliased"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada95"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada95"
- name "ContainerImplementation"
- value ("ContainerImplementationSet" 217))
- (object Attribute
- tool "Ada95"
- name "ContainerGeneric"
- value "List")
- (object Attribute
- tool "Ada95"
- name "ContainerType"
- value "")
- (object Attribute
- tool "Ada95"
- name "ContainerDeclarations"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "SelectorName"
- value "")
- (object Attribute
- tool "Ada95"
- name "SelectorType"
- value "")
- (object Attribute
- tool "Ada95"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada95"
- name "After"
- value 234)))
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Component"
- value 216)
- (object Attribute
- tool "Ada95"
- name "Discriminant"
- value 218)
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminant"
- value 219)))
- (object Attribute
- tool "Ada95"
- name "ContainerImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Array"
- value 217)
- (object Attribute
- tool "Ada95"
- name "Generic"
- value 11)))
- (object Attribute
- tool "Ada95"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada95"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementation"
- value ("RecordFieldImplementationSet" 216))
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminantClassWide"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "RecordFieldName"
- value "${attribute}")
- (object Attribute
- tool "Ada95"
- name "GenerateGet"
- value ("FunctionKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessGet"
- value ("FunctionKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "GetName"
- value "Get_${attribute}")
- (object Attribute
- tool "Ada95"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateSet"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessSet"
- value ("ProcedureKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "SetName"
- value "Set_${attribute}")
- (object Attribute
- tool "Ada95"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "IsAliased"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada95"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada95"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada95"
- name "After"
- value 234)))
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Component"
- value 216)
- (object Attribute
- tool "Ada95"
- name "Discriminant"
- value 218)
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminant"
- value 219)))
- (object Attribute
- tool "Ada95"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada95"
- name "default__Association"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "NameIfUnlabeled"
- value "The_${targetClass}")
- (object Attribute
- tool "Ada95"
- name "GenerateGet"
- value ("FunctionKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "GetName"
- value "Get_${association}")
- (object Attribute
- tool "Ada95"
- name "InlineGet"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateSet"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "SetName"
- value "Set_${association}")
- (object Attribute
- tool "Ada95"
- name "InlineSet"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateAssociate"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "AssociateName"
- value "Associate")
- (object Attribute
- tool "Ada95"
- name "InlineAssociate"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "GenerateDissociate"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "DissociateName"
- value "Dissociate")
- (object Attribute
- tool "Ada95"
- name "InlineDissociate"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada95"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "CodeName"
- value "")
- (object Attribute
- tool "Ada95"
- name "NameIfUnlabeled"
- value "The_${targetClass}")
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementation"
- value ("RecordFieldImplementationSet" 216))
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminantClassWide"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "RecordFieldName"
- value "${target}")
- (object Attribute
- tool "Ada95"
- name "GenerateGet"
- value ("FunctionKindSet" 199))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessGet"
- value ("FunctionKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "GetName"
- value "Get_${target}")
- (object Attribute
- tool "Ada95"
- name "InlineGet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "GenerateSet"
- value ("ProcedureKindSet" 202))
- (object Attribute
- tool "Ada95"
- name "GenerateAccessSet"
- value ("ProcedureKindSet" 201))
- (object Attribute
- tool "Ada95"
- name "SetName"
- value "Set_${target}")
- (object Attribute
- tool "Ada95"
- name "InlineSet"
- value TRUE)
- (object Attribute
- tool "Ada95"
- name "IsAliased"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "IsConstant"
- value FALSE)
- (object Attribute
- tool "Ada95"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Ada95"
- name "Declare"
- value ("DeclareSet" 234))
- (object Attribute
- tool "Ada95"
- name "Representation"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "ContainerImplementation"
- value ("ContainerImplementationSet" 217))
- (object Attribute
- tool "Ada95"
- name "ContainerGeneric"
- value "List")
- (object Attribute
- tool "Ada95"
- name "ContainerType"
- value "")
- (object Attribute
- tool "Ada95"
- name "ContainerDeclarations"
- value (value Text ""))
- (object Attribute
- tool "Ada95"
- name "SelectorName"
- value "")
- (object Attribute
- tool "Ada95"
- name "SelectorType"
- value "")
- (object Attribute
- tool "Ada95"
- name "ProcedureKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Procedure"
- value 202)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))
- (object Attribute
- tool "Ada95"
- name "DeclareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Before"
- value 233)
- (object Attribute
- tool "Ada95"
- name "After"
- value 234)))
- (object Attribute
- tool "Ada95"
- name "RecordFieldImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Component"
- value 216)
- (object Attribute
- tool "Ada95"
- name "Discriminant"
- value 218)
- (object Attribute
- tool "Ada95"
- name "AccessDiscriminant"
- value 219)))
- (object Attribute
- tool "Ada95"
- name "ContainerImplementationSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Array"
- value 217)
- (object Attribute
- tool "Ada95"
- name "Generic"
- value 11)))
- (object Attribute
- tool "Ada95"
- name "FunctionKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Function"
- value 199)
- (object Attribute
- tool "Ada95"
- name "DoNotCreate"
- value 201)))))
- (object Attribute
- tool "Ada95"
- name "default__Subsystem"
- value (list Attribute_Set
- (object Attribute
- tool "Ada95"
- name "Directory"
- value "AUTO GENERATE")))
- (object Attribute
- tool "Ada95"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "CORBA"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "CORBA"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "CORBA"
- name "Editor"
- value ("EditorType" 100))
- (object Attribute
- tool "CORBA"
- name "IncludePath"
- value "")
- (object Attribute
- tool "CORBA"
- name "StopOnError"
- value TRUE)
- (object Attribute
- tool "CORBA"
- name "EditorType"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "BuiltIn"
- value 100)
- (object Attribute
- tool "CORBA"
- name "WindowsShell"
- value 101)))
- (object Attribute
- tool "CORBA"
- name "PathSeparator"
- value "")))
- (object Attribute
- tool "CORBA"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "ArrayDimensions"
- value "")
- (object Attribute
- tool "CORBA"
- name "ConstValue"
- value "")
- (object Attribute
- tool "CORBA"
- name "ImplementationType"
- value "")))
- (object Attribute
- tool "CORBA"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "AdditionalIncludes"
- value (value Text ""))
- (object Attribute
- tool "CORBA"
- name "CmIdentification"
- value (value Text " %X% %Q% %Z% %W%"))
- (object Attribute
- tool "CORBA"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "CORBA"
- name "InclusionProtectionSymbol"
- value "AUTO GENERATE")))
- (object Attribute
- tool "CORBA"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "AdditionalIncludes"
- value (value Text ""))
- (object Attribute
- tool "CORBA"
- name "CmIdentification"
- value (value Text " %X% %Q% %Z% %W%"))
- (object Attribute
- tool "CORBA"
- name "CopyrightNotice"
- value (value Text ""))
- (object Attribute
- tool "CORBA"
- name "InclusionProtectionSymbol"
- value "AUTO GENERATE")))
- (object Attribute
- tool "CORBA"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "Context"
- value "")
- (object Attribute
- tool "CORBA"
- name "OperationIsOneWay"
- value FALSE)))
- (object Attribute
- tool "CORBA"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "ArrayDimensions"
- value "")
- (object Attribute
- tool "CORBA"
- name "CaseSpecifier"
- value "")
- (object Attribute
- tool "CORBA"
- name "IsReadOnly"
- value FALSE)
- (object Attribute
- tool "CORBA"
- name "Order"
- value "")))
- (object Attribute
- tool "CORBA"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "ArrayDimensions"
- value "")
- (object Attribute
- tool "CORBA"
- name "CaseSpecifier"
- value "")
- (object Attribute
- tool "CORBA"
- name "GenerateForwardReference"
- value FALSE)
- (object Attribute
- tool "CORBA"
- name "IsReadOnly"
- value FALSE)
- (object Attribute
- tool "CORBA"
- name "Order"
- value "")
- (object Attribute
- tool "CORBA"
- name "BoundedRoleType"
- value ("AssocTypeSet" 47))
- (object Attribute
- tool "CORBA"
- name "AssocTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "Array"
- value 24)
- (object Attribute
- tool "CORBA"
- name "Sequence"
- value 47)))))
- (object Attribute
- tool "CORBA"
- name "default__Uses"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "GenerateForwardReference"
- value FALSE)))
- (object Attribute
- tool "CORBA"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "Direction"
- value ("ParamDirectionTypeSet" 102))
- (object Attribute
- tool "CORBA"
- name "ParamDirectionTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "CORBA"
- name "in"
- value 102)
- (object Attribute
- tool "CORBA"
- name "inout"
- value 103)
- (object Attribute
- tool "CORBA"
- name "out"
- value 104)))))
- (object Attribute
- tool "CORBA"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "Data Modeler"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "project"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TableCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "ViewCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "DomainCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "SPPackageCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "TriggerCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "IndexCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "ConstraintCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "StoreProcedureCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "PrimaryKeyCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "ForeignKeyCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "JoinCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "TableSpaceCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "cONTAINERCounter"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "TablePrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ViewPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "DomainPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TriggerPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IndexPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ConstraintPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "StoreProcedurePrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "PrimaryKeyPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ForeignKeyPrefix"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TableSpacePrefix"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsDatabase"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "TargetDatabase"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Location"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsTableSpace"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "TableSpaceType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsDeault"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "BufferPool"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ExtentSize"
- value 1)
- (object Attribute
- tool "Data Modeler"
- name "PrefetchSize"
- value 1)
- (object Attribute
- tool "Data Modeler"
- name "PageSize"
- value 4)
- (object Attribute
- tool "Data Modeler"
- name "ManagedBy"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ContainerList"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Category"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "dmSchema"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "dmDomainPackage"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsSchema"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsDomainPackage"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsRootSchema"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsRootDomainPackage"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsSchemaPackage"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DatabaseID"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "DBMS"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsTable"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsView"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsDomain"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsSPPackage"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "Synonymns"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TableSpaceID"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SourceId"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SourceType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "CorrelationName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SelectClause"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsUpdateable"
- value TRUE)
- (object Attribute
- tool "Data Modeler"
- name "CheckOption"
- value "None")
- (object Attribute
- tool "Data Modeler"
- name "IsSnapShot"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsDistinct"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "PersistToServer"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsPackage"
- value FALSE)))
- (object Attribute
- tool "Data Modeler"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Ordinal"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "IsIdentity"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsUnique"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "NullsAllowed"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "Length"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "Scale"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "ColumnType"
- value "Native")
- (object Attribute
- tool "Data Modeler"
- name "ForBitData"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DefaultValueType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "DefaultValue"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SourceId"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SourceType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "OID"
- value FALSE)))
- (object Attribute
- tool "Data Modeler"
- name "default__Association"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsRelationship"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "SourceId"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "SourceType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "RIMethod"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ParentUpdateRule"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ParentUpdateRuleName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ParentDeleteRule"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ParentDeleteRuleName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ChildInsertRestrict"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "ChildInsertRestrictName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ChildMultiplicity"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "ChildMultiplicityName"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ConstraintName"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsConstraint"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "ConstraintType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsIndex"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsTrigger"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsStoredProcedure"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsCluster"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "TableSpace"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "FillFactor"
- value 0)
- (object Attribute
- tool "Data Modeler"
- name "KeyList"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "CheckPredicate"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsUnique"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DeferalMode"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "InitialCheckTime"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "TriggerType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsInsertEvent"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsUpdateEvent"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "IsDeleteEvent"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "RefOldTable"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "RefNewTable"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "RefOldRow"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "RefNewRow"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsRow"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "WhenClause"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Language"
- value "SQL")
- (object Attribute
- tool "Data Modeler"
- name "ProcType"
- value "Procedure")
- (object Attribute
- tool "Data Modeler"
- name "IsDeterministic"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "ParameterStyle"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ReturnedNull"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "ExternalName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Length"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Scale"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ForBitData"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DefaultValue"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "DefaultValueType"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "default__Parameter"
- value (list Attribute_Set
- (object Attribute
- tool "Data Modeler"
- name "dmItem"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DMName"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "IsInParameter"
- value TRUE)
- (object Attribute
- tool "Data Modeler"
- name "IsOutParameter"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "Ordinal"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Length"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "Scale"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "ForBitData"
- value FALSE)
- (object Attribute
- tool "Data Modeler"
- name "DefaultValueType"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "DefaultValue"
- value "")
- (object Attribute
- tool "Data Modeler"
- name "OperationID"
- value "")))
- (object Attribute
- tool "Data Modeler"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Data Modeler Communicator"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Deploy"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Java"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "Java"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "RootDir"
- value "")
- (object Attribute
- tool "Java"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "Java"
- name "StopOnError"
- value FALSE)
- (object Attribute
- tool "Java"
- name "UsePrefixes"
- value FALSE)
- (object Attribute
- tool "Java"
- name "AutoSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "NotShowRoseIDDlg"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ShowCodegenDlg"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateRoseID"
- value TRUE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultJ2EEJavadoc"
- value TRUE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultReturnLine"
- value TRUE)
- (object Attribute
- tool "Java"
- name "JavadocDefaultAuthor"
- value "")
- (object Attribute
- tool "Java"
- name "JavadocDefaultVersion"
- value "")
- (object Attribute
- tool "Java"
- name "JavadocDefaultSince"
- value "")
- (object Attribute
- tool "Java"
- name "UserDefineJavaDocTags"
- value "")
- (object Attribute
- tool "Java"
- name "JavadocNumAsterisks"
- value 0)
- (object Attribute
- tool "Java"
- name "MaxNumChars"
- value 80)
- (object Attribute
- tool "Java"
- name "Editor"
- value ("EditorType" 100))
- (object Attribute
- tool "Java"
- name "VM"
- value ("VMType" 200))
- (object Attribute
- tool "Java"
- name "ClassPath"
- value ";D:\\j2sdk1.4.2_08\\jre\\lib\\charsets.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\jce.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\jsse.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\rt.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\sunrsasign.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\ext\\dnsns.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\ext\\ldapsec.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\ext\\localedata.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\ext\\sunjce_provider.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\security\\local_policy.jar;D:\\j2sdk1.4.2_08\\jre\\lib\\security\\US_export_policy.jar;D:\\j2sdk1.4.2_08\\lib\\dt.jar;D:\\j2sdk1.4.2_08\\lib\\htmlconverter.jar;D:\\j2sdk1.4.2_08\\lib\\tools.jar")
- (object Attribute
- tool "Java"
- name "ReferenceClasspath"
- value "")
- (object Attribute
- tool "Java"
- name "EditorType"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "BuiltIn"
- value 100)))
- (object Attribute
- tool "Java"
- name "VMType"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Sun"
- value 200)))
- (object Attribute
- tool "Java"
- name "VAJavaWorkingFolder"
- value "")
- (object Attribute
- tool "Java"
- name "InstanceVariablePrefix"
- value "")
- (object Attribute
- tool "Java"
- name "ClassVariablePrefix"
- value "")
- (object Attribute
- tool "Java"
- name "DefaultAttributeDataType"
- value "int")
- (object Attribute
- tool "Java"
- name "DefaultOperationReturnType"
- value "void")
- (object Attribute
- tool "Java"
- name "NoClassCustomDlg"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GlobalImports"
- value (value Text ""))
- (object Attribute
- tool "Java"
- name "OpenBraceClassStyle"
- value TRUE)
- (object Attribute
- tool "Java"
- name "OpenBraceMethodStyle"
- value TRUE)
- (object Attribute
- tool "Java"
- name "UseTabs"
- value FALSE)
- (object Attribute
- tool "Java"
- name "UseSpaces"
- value TRUE)
- (object Attribute
- tool "Java"
- name "SpacingItems"
- value 3)
- (object Attribute
- tool "Java"
- name "RoseDefaultCommentStyle"
- value TRUE)
- (object Attribute
- tool "Java"
- name "AsteriskCommentStyle"
- value TRUE)
- (object Attribute
- tool "Java"
- name "JavaCommentStyle"
- value TRUE)
- (object Attribute
- tool "Java"
- name "JavadocAuthor"
- value FALSE)
- (object Attribute
- tool "Java"
- name "JavadocSince"
- value FALSE)
- (object Attribute
- tool "Java"
- name "JavadocVersion"
- value FALSE)
- (object Attribute
- tool "Java"
- name "BeanPrefix"
- value "")
- (object Attribute
- tool "Java"
- name "BeanSuffix"
- value "")
- (object Attribute
- tool "Java"
- name "RemotePrefix"
- value "")
- (object Attribute
- tool "Java"
- name "RemoteSuffix"
- value "")
- (object Attribute
- tool "Java"
- name "HomePrefix"
- value "")
- (object Attribute
- tool "Java"
- name "HomeSuffix"
- value "")
- (object Attribute
- tool "Java"
- name "LocalPrefix"
- value "")
- (object Attribute
- tool "Java"
- name "LocalSuffix"
- value "")
- (object Attribute
- tool "Java"
- name "LocalHomePrefix"
- value "")
- (object Attribute
- tool "Java"
- name "LocalHomeSuffix"
- value "")
- (object Attribute
- tool "Java"
- name "PrimaryKeyPrefix"
- value "")
- (object Attribute
- tool "Java"
- name "PrimaryKeySuffix"
- value "")
- (object Attribute
- tool "Java"
- name "EJBDTDLocation"
- value "")
- (object Attribute
- tool "Java"
- name "ServletDTDLocation"
- value "")
- (object Attribute
- tool "Java"
- name "DefaultEJBVersion"
- value "")
- (object Attribute
- tool "Java"
- name "DefaultServletVersion"
- value "")
- (object Attribute
- tool "Java"
- name "SourceControl"
- value FALSE)
- (object Attribute
- tool "Java"
- name "SCCSelected"
- value FALSE)
- (object Attribute
- tool "Java"
- name "SCCProjectSourceRoot"
- value "")
- (object Attribute
- tool "Java"
- name "SCCProjectName"
- value "")
- (object Attribute
- tool "Java"
- name "SCCComment"
- value FALSE)
- (object Attribute
- tool "Java"
- name "FundamentalType"
- value "boolean; char; byte; short; int; long; float; double; Boolean; Byte; Character; Double; Float; Integer; Long; Object; Short; String; StringBuffer; Void; java.math.BigDecimal; java.math.BigInteger; java.sql.Date; java.sql.Time; java.sql.Timestamp; java.util.AbstractCollection; java.util.AbstractList;java.util.AbstractMap; java.util.AbstractSequentialList; java.util.AbstractSet; java.util.ArrayList; java.util.Arrays; java.util.BitSet; java.util.Calendar; java.util.Collections; java.util.Date; java.util.Date; java.util.Dictionary; java.util.EventObject; java.util.GregorianCalendar; java.util.HashMap; java.util.HashSet; java.util.Hashtable; java.util.LinkedList; java.util.ListResourceBundle; java.util.Locale; java.util.Observable; java.util.Properties; java.util.PropertyPermission; java.util.PropertyResourceBundle; java.util.Random; java.util.ResourceBundle; java.util.SimpleTimeZone; java.util.Stack; java.util.StringTokenizer; java.util.Timer; java.util.TimerTask; java.util.TimeZone; java.util.TreeMap; java.util.TreeSet; java.util.Vector; java.util.WeakHashMap")))
- (object Attribute
- tool "Java"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Static"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultConstructor"
- value TRUE)
- (object Attribute
- tool "Java"
- name "ConstructorIs"
- value ("Ctor_Set" 62))
- (object Attribute
- tool "Java"
- name "Ctor_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "public"
- value 62)
- (object Attribute
- tool "Java"
- name "protected"
- value 63)
- (object Attribute
- tool "Java"
- name "private"
- value 64)
- (object Attribute
- tool "Java"
- name "package"
- value 65)))
- (object Attribute
- tool "Java"
- name "GenerateFinalizer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateStaticInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateInstanceInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateCode"
- value TRUE)
- (object Attribute
- tool "Java"
- name "DisableAutoSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ReadOnly"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Strictfp"
- value FALSE)))
- (object Attribute
- tool "Java"
- name "Default_Servlet__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "ServletName"
- value "")
- (object Attribute
- tool "Java"
- name "ServletContextRef"
- value FALSE)
- (object Attribute
- tool "Java"
- name "IsSingleThread"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletInitParameter"
- value "")
- (object Attribute
- tool "Java"
- name "ServletInitParameterNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletIsSecure"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletRequestDispatcher"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletRequestDispatcherPath"
- value "")
- (object Attribute
- tool "Java"
- name "DispatcherInclude"
- value FALSE)
- (object Attribute
- tool "Java"
- name "DispatcherForward"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletSecurityRoles"
- value "")
- (object Attribute
- tool "Java"
- name "ServletgetInfo"
- value "")
- (object Attribute
- tool "Java"
- name "ServletXMLFilePath"
- value "")))
- (object Attribute
- tool "Java"
- name "Http_Servlet__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "ServletRequestAttribute"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestAttributesNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForRequestAttributes"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestParameter"
- value "")
- (object Attribute
- tool "Java"
- name "ServletRequestParameterNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForRequestParameters"
- value "")
- (object Attribute
- tool "Java"
- name "ServletHeader"
- value "")
- (object Attribute
- tool "Java"
- name "ServletHeaderNames"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForHeaders"
- value "")
- (object Attribute
- tool "Java"
- name "ServletIntHeader"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletDateHeader"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ServletCookie"
- value FALSE)
- (object Attribute
- tool "Java"
- name "MethodForCookie"
- value "")
- (object Attribute
- tool "Java"
- name "ServletContentType"
- value "")
- (object Attribute
- tool "Java"
- name "GenerateHTML"
- value FALSE)))
- (object Attribute
- tool "Java"
- name "Default_EJB__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Generate_XML_DD"
- value TRUE)
- (object Attribute
- tool "Java"
- name "EJBCmpField"
- value "")
- (object Attribute
- tool "Java"
- name "EJBEnvironmentProperties"
- value "")
- (object Attribute
- tool "Java"
- name "EJBCnxFactory"
- value "")
- (object Attribute
- tool "Java"
- name "EJBReferences"
- value "")
- (object Attribute
- tool "Java"
- name "EJBSecurityRoles"
- value "")
- (object Attribute
- tool "Java"
- name "EJBNameInJAR"
- value "")
- (object Attribute
- tool "Java"
- name "EJBSessionType"
- value ("EJBSessionType_Set" 200))
- (object Attribute
- tool "Java"
- name "EJBSessionType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name ""
- value 200)
- (object Attribute
- tool "Java"
- name "Stateless"
- value 201)
- (object Attribute
- tool "Java"
- name "Stateful"
- value 202)))
- (object Attribute
- tool "Java"
- name "EJBTransactionType"
- value ("EJBTransactionType_Set" 211))
- (object Attribute
- tool "Java"
- name "EJBTransactionType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Container"
- value 211)
- (object Attribute
- tool "Java"
- name "Bean"
- value 212)))
- (object Attribute
- tool "Java"
- name "EJBPersistenceType"
- value ("EJBPersistenceType_Set" 220))
- (object Attribute
- tool "Java"
- name "EJBPersistenceType_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name ""
- value 220)
- (object Attribute
- tool "Java"
- name "Bean"
- value 221)
- (object Attribute
- tool "Java"
- name "Container"
- value 222)))
- (object Attribute
- tool "Java"
- name "EJBReentrant"
- value FALSE)
- (object Attribute
- tool "Java"
- name "EJBSessionSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "EJBVersion"
- value ("EJBVersion_Set" 230))
- (object Attribute
- tool "Java"
- name "EJBVersion_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "2.0"
- value 230)
- (object Attribute
- tool "Java"
- name "1.x"
- value 231)))
- (object Attribute
- tool "Java"
- name "EJBXMLFilePath"
- value "")))
- (object Attribute
- tool "Java"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "CmIdentification"
- value (value Text ""))
- (object Attribute
- tool "Java"
- name "CopyrightNotice"
- value (value Text ""))))
- (object Attribute
- tool "Java"
- name "default__Module-Body"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "CmIdentification"
- value (value Text ""))
- (object Attribute
- tool "Java"
- name "CopyrightNotice"
- value (value Text ""))))
- (object Attribute
- tool "Java"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Abstract"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Static"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Native"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Synchronized"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedReturn"
- value FALSE)
- (object Attribute
- tool "Java"
- name "ReplaceExistingCode"
- value TRUE)
- (object Attribute
- tool "Java"
- name "Strictfp"
- value FALSE)))
- (object Attribute
- tool "Java"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Transient"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Volatile"
- value FALSE)
- (object Attribute
- tool "Java"
- name "PropertyType"
- value ("BeanProperty_Set" 71))
- (object Attribute
- tool "Java"
- name "BeanProperty_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Not A Property"
- value 71)
- (object Attribute
- tool "Java"
- name "Simple"
- value 72)
- (object Attribute
- tool "Java"
- name "Bound"
- value 73)
- (object Attribute
- tool "Java"
- name "Constrained"
- value 74)))
- (object Attribute
- tool "Java"
- name "IndividualChangeMgt"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Read/Write"
- value ("Read/Write_Set" 81))
- (object Attribute
- tool "Java"
- name "Read/Write_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Read & Write"
- value 81)
- (object Attribute
- tool "Java"
- name "Read Only"
- value 82)
- (object Attribute
- tool "Java"
- name "Write Only"
- value 83)))
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedTypes"
- value FALSE)))
- (object Attribute
- tool "Java"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "ContainerClass"
- value "")
- (object Attribute
- tool "Java"
- name "InitialValue"
- value "")
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Transient"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Volatile"
- value FALSE)
- (object Attribute
- tool "Java"
- name "PropertyType"
- value ("BeanProperty_Set" 71))
- (object Attribute
- tool "Java"
- name "BeanProperty_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Not A Property"
- value 71)
- (object Attribute
- tool "Java"
- name "Simple"
- value 72)
- (object Attribute
- tool "Java"
- name "Bound"
- value 73)
- (object Attribute
- tool "Java"
- name "Constrained"
- value 74)))
- (object Attribute
- tool "Java"
- name "IndividualChangeMgt"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Read/Write"
- value ("Read/Write_Set" 81))
- (object Attribute
- tool "Java"
- name "Read/Write_Set"
- value (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Read & Write"
- value 81)
- (object Attribute
- tool "Java"
- name "Read Only"
- value 82)
- (object Attribute
- tool "Java"
- name "Write Only"
- value 83)))
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedTypes"
- value FALSE)
- (object Attribute
- tool "Java"
- name "IsNavigable"
- value TRUE)))
- (object Attribute
- tool "Java"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "propertyId"
- value "360000002")
- (object Attribute
- tool "Oracle8"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "DDLScriptFilename"
- value "DDL1.SQL")
- (object Attribute
- tool "Oracle8"
- name "DropClause"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "PrimaryKeyColumnName"
- value "_ID")
- (object Attribute
- tool "Oracle8"
- name "PrimaryKeyColumnType"
- value "NUMBER(5,0)")
- (object Attribute
- tool "Oracle8"
- name "SchemaNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "SchemaNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TableNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TableNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TypeNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TypeNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "ViewNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "ViewNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "VarrayNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "VarrayNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "NestedTableNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "NestedTableNameSuffix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "ObjectTableNamePrefix"
- value "")
- (object Attribute
- tool "Oracle8"
- name "ObjectTableNameSuffix"
- value "")))
- (object Attribute
- tool "Oracle8"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "IsSchema"
- value FALSE)))
- (object Attribute
- tool "Oracle8"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "OID"
- value "")
- (object Attribute
- tool "Oracle8"
- name "WhereClause"
- value "")
- (object Attribute
- tool "Oracle8"
- name "CheckConstraint"
- value "")
- (object Attribute
- tool "Oracle8"
- name "CollectionTypeLength"
- value "")
- (object Attribute
- tool "Oracle8"
- name "CollectionTypePrecision"
- value "")
- (object Attribute
- tool "Oracle8"
- name "CollectionTypeScale"
- value "")
- (object Attribute
- tool "Oracle8"
- name "CollectionOfREFS"
- value FALSE)))
- (object Attribute
- tool "Oracle8"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "MethodKind"
- value ("MethodKindSet" 1903))
- (object Attribute
- tool "Oracle8"
- name "OverloadID"
- value "")
- (object Attribute
- tool "Oracle8"
- name "OrderNumber"
- value "")
- (object Attribute
- tool "Oracle8"
- name "IsReadNoDataState"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "IsReadNoProcessState"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "IsWriteNoDataState"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "IsWriteNoProcessState"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "IsSelfish"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "TriggerType"
- value ("TriggerTypeSet" 1801))
- (object Attribute
- tool "Oracle8"
- name "TriggerEvent"
- value ("TriggerEventSet" 1601))
- (object Attribute
- tool "Oracle8"
- name "TriggerText"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TriggerReferencingNames"
- value "")
- (object Attribute
- tool "Oracle8"
- name "TriggerForEach"
- value ("TriggerForEachSet" 1701))
- (object Attribute
- tool "Oracle8"
- name "TriggerWhenClause"
- value "")
- (object Attribute
- tool "Oracle8"
- name "MethodKindSet"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "MapMethod"
- value 1901)
- (object Attribute
- tool "Oracle8"
- name "OrderMethod"
- value 1902)
- (object Attribute
- tool "Oracle8"
- name "Function"
- value 1903)
- (object Attribute
- tool "Oracle8"
- name "Procedure"
- value 1904)
- (object Attribute
- tool "Oracle8"
- name "Operator"
- value 1905)
- (object Attribute
- tool "Oracle8"
- name "Constructor"
- value 1906)
- (object Attribute
- tool "Oracle8"
- name "Destructor"
- value 1907)
- (object Attribute
- tool "Oracle8"
- name "Trigger"
- value 1908)
- (object Attribute
- tool "Oracle8"
- name "Calculated"
- value 1909)))
- (object Attribute
- tool "Oracle8"
- name "TriggerTypeSet"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "AFTER"
- value 1801)
- (object Attribute
- tool "Oracle8"
- name "BEFORE"
- value 1802)
- (object Attribute
- tool "Oracle8"
- name "INSTEAD OF"
- value 1803)))
- (object Attribute
- tool "Oracle8"
- name "TriggerForEachSet"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "ROW"
- value 1701)
- (object Attribute
- tool "Oracle8"
- name "STATEMENT"
- value 1702)))
- (object Attribute
- tool "Oracle8"
- name "TriggerEventSet"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "INSERT"
- value 1601)
- (object Attribute
- tool "Oracle8"
- name "UPDATE"
- value 1602)
- (object Attribute
- tool "Oracle8"
- name "DELETE"
- value 1603)
- (object Attribute
- tool "Oracle8"
- name "INSERT OR UPDATE"
- value 1604)
- (object Attribute
- tool "Oracle8"
- name "INSERT OR DELETE"
- value 1605)
- (object Attribute
- tool "Oracle8"
- name "UPDATE OR DELETE"
- value 1606)
- (object Attribute
- tool "Oracle8"
- name "INSERT OR UPDATE OR DELETE"
- value 1607)))))
- (object Attribute
- tool "Oracle8"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "OrderNumber"
- value "")))
- (object Attribute
- tool "Oracle8"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Oracle8"
- name "OrderNumber"
- value "")
- (object Attribute
- tool "Oracle8"
- name "IsUnique"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "NullsAllowed"
- value TRUE)
- (object Attribute
- tool "Oracle8"
- name "Length"
- value "")
- (object Attribute
- tool "Oracle8"
- name "Precision"
- value "2")
- (object Attribute
- tool "Oracle8"
- name "Scale"
- value "6")
- (object Attribute
- tool "Oracle8"
- name "IsIndex"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "IsPrimaryKey"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "CompositeUnique"
- value FALSE)
- (object Attribute
- tool "Oracle8"
- name "CheckConstraint"
- value "")))
- (object Attribute
- tool "Oracle8"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "ComponentTest"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Rose Model Integrator"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Rose Web Publisher"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "TopLink"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "COM"
- name "propertyId"
- value "783606378")
- (object Attribute
- tool "COM"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "TypeKinds"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "enum"
- value 100)
- (object Attribute
- tool "COM"
- name "record"
- value 101)
- (object Attribute
- tool "COM"
- name "module"
- value 102)
- (object Attribute
- tool "COM"
- name "interface"
- value 103)
- (object Attribute
- tool "COM"
- name "dispinterface"
- value 104)
- (object Attribute
- tool "COM"
- name "coclass"
- value 105)
- (object Attribute
- tool "COM"
- name "alias"
- value 106)
- (object Attribute
- tool "COM"
- name "union"
- value 107)
- (object Attribute
- tool "COM"
- name "max"
- value 108)
- (object Attribute
- tool "COM"
- name "(none)"
- value 109)))
- (object Attribute
- tool "COM"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "COM"
- name "kind"
- value ("TypeKinds" 109))
- (object Attribute
- tool "COM"
- name "uuid"
- value "")
- (object Attribute
- tool "COM"
- name "version"
- value "")
- (object Attribute
- tool "COM"
- name "helpstring"
- value "")
- (object Attribute
- tool "COM"
- name "helpcontext"
- value "")
- (object Attribute
- tool "COM"
- name "attributes"
- value "")
- (object Attribute
- tool "COM"
- name "dllname"
- value "")
- (object Attribute
- tool "COM"
- name "alias"
- value "")))
- (object Attribute
- tool "COM"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "COM"
- name "id"
- value "")
- (object Attribute
- tool "COM"
- name "helpstring"
- value "")
- (object Attribute
- tool "COM"
- name "attributes"
- value "")))
- (object Attribute
- tool "COM"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "COM"
- name "id"
- value "")
- (object Attribute
- tool "COM"
- name "helpstring"
- value "")
- (object Attribute
- tool "COM"
- name "attributes"
- value "")))
- (object Attribute
- tool "COM"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "Generate"
- value TRUE)
- (object Attribute
- tool "COM"
- name "filename"
- value "")
- (object Attribute
- tool "COM"
- name "library"
- value "")
- (object Attribute
- tool "COM"
- name "uuid"
- value "")
- (object Attribute
- tool "COM"
- name "version"
- value "")
- (object Attribute
- tool "COM"
- name "helpstring"
- value "")
- (object Attribute
- tool "COM"
- name "helpfile"
- value "")
- (object Attribute
- tool "COM"
- name "helpcontext"
- value "")
- (object Attribute
- tool "COM"
- name "lcid"
- value "")
- (object Attribute
- tool "COM"
- name "attributes"
- value "")))
- (object Attribute
- tool "COM"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "COM"
- name "attributes"
- value "")))
- (object Attribute
- tool "COM"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Version Control"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "propertyId"
- value "783606378")
- (object Attribute
- tool "Visual Basic"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "UpdateCode"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "UpdateModel"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "InstancingSet"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "Private"
- value 221)
- (object Attribute
- tool "Visual Basic"
- name "PublicNotCreatable"
- value 213)
- (object Attribute
- tool "Visual Basic"
- name "SingleUse"
- value 214)
- (object Attribute
- tool "Visual Basic"
- name "GlobalSingleUse"
- value 215)
- (object Attribute
- tool "Visual Basic"
- name "MultiUse"
- value 219)
- (object Attribute
- tool "Visual Basic"
- name "GlobalMultiUse"
- value 220)))
- (object Attribute
- tool "Visual Basic"
- name "BaseSet"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "(none)"
- value 222)
- (object Attribute
- tool "Visual Basic"
- name "0"
- value 223)
- (object Attribute
- tool "Visual Basic"
- name "1"
- value 224)))
- (object Attribute
- tool "Visual Basic"
- name "OptionBase"
- value ("BaseSet" 222))
- (object Attribute
- tool "Visual Basic"
- name "OptionExplicit"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "OptionCompare"
- value ("CompareSet" 202))
- (object Attribute
- tool "Visual Basic"
- name "Instancing"
- value ("InstancingSet" 219))
- (object Attribute
- tool "Visual Basic"
- name "CompareSet"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "(none)"
- value 202)
- (object Attribute
- tool "Visual Basic"
- name "Binary"
- value 203)
- (object Attribute
- tool "Visual Basic"
- name "Text"
- value 204)))))
- (object Attribute
- tool "Visual Basic"
- name "default__Operation"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "LibraryName"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "AliasName"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "IsStatic"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "ProcedureID"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "ReplaceExistingBody"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "DefaultBody"
- value (value Text ""))))
- (object Attribute
- tool "Visual Basic"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "New"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "WithEvents"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "ProcedureID"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "PropertyName"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "Subscript"
- value "")))
- (object Attribute
- tool "Visual Basic"
- name "default__Role"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "UpdateCode"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "New"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "WithEvents"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "FullName"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "ProcedureID"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "PropertyName"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "Subscript"
- value "")))
- (object Attribute
- tool "Visual Basic"
- name "default__Inherit"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "ImplementsDelegation"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "FullName"
- value FALSE)))
- (object Attribute
- tool "Visual Basic"
- name "default__Param"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "ByVal"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "ByRef"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "Optional"
- value FALSE)
- (object Attribute
- tool "Visual Basic"
- name "ParamArray"
- value FALSE)))
- (object Attribute
- tool "Visual Basic"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "Visual Basic"
- name "ProjectFile"
- value "")
- (object Attribute
- tool "Visual Basic"
- name "UpdateCode"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "UpdateModel"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "ImportReferences"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "QuickImport"
- value TRUE)
- (object Attribute
- tool "Visual Basic"
- name "ImportBinary"
- value FALSE)))
- (object Attribute
- tool "Visual Basic"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "VisualStudio"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "Web Modeler"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "XML_DTD"
- name "propertyId"
- value "809135966")
- (object Attribute
- tool "XML_DTD"
- name "default__Project"
- value (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "CreateMissingDirectories"
- value TRUE)
- (object Attribute
- tool "XML_DTD"
- name "Editor"
- value ("EditorType" 100))
- (object Attribute
- tool "XML_DTD"
- name "StopOnError"
- value TRUE)
- (object Attribute
- tool "XML_DTD"
- name "EditorType"
- value (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "BuiltIn"
- value 100)
- (object Attribute
- tool "XML_DTD"
- name "WindowsShell"
- value 101)))))
- (object Attribute
- tool "XML_DTD"
- name "default__Class"
- value (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "Entity_SystemID"
- value "")
- (object Attribute
- tool "XML_DTD"
- name "Entity_PublicID"
- value "")
- (object Attribute
- tool "XML_DTD"
- name "NotationValue"
- value "")
- (object Attribute
- tool "XML_DTD"
- name "InternalValue"
- value "")
- (object Attribute
- tool "XML_DTD"
- name "ParameterEntity"
- value FALSE)
- (object Attribute
- tool "XML_DTD"
- name "ExternalEntity"
- value FALSE)
- (object Attribute
- tool "XML_DTD"
- name "Notation_SystemID"
- value "")
- (object Attribute
- tool "XML_DTD"
- name "Notation_PublicID"
- value "")))
- (object Attribute
- tool "XML_DTD"
- name "default__Attribute"
- value (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "DefaultDeclType"
- value "")))
- (object Attribute
- tool "XML_DTD"
- name "default__Module-Spec"
- value (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "Assign All"
- value FALSE)
- (object Attribute
- tool "XML_DTD"
- name "ComponentPath"
- value "")))
- (object Attribute
- tool "XML_DTD"
- name "HiddenTool"
- value FALSE)
- (object Attribute
- tool "framework"
- name "HiddenTool"
- value FALSE))
- quid "39EE0E7F0151"))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/j2ee_codegen.scrapbook b/plugins/org.eclipse.jst.j2ee.core/rose/j2ee_codegen.scrapbook deleted file mode 100644 index 78057e161..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/j2ee_codegen.scrapbook +++ /dev/null @@ -1,28 +0,0 @@ -//WebSphere Config Model generation
-String[] args = {"R2X",
-"(-file", "j2ee.mdl",
-"-xmiDir", "umlxmi",
-"-nameuuid", "true",
-"-extensions", "true",
-"-pathMap", "ECLIPSE_RESOURCES=C:/dev/eclipse35/IDE/project_resources)"};
-//String[] args = {"?"};
-com.ibm.etools.java.init.JavaInit.executeToolkit(args)
-
-// Copy files up one dir then execute...
-
-String[] args = {
-"-modelPrefix","JavaRef","java",
-"-model", "j2ee.xml",
-"-dir", "C:/dev/eclipse35/IDE/project_resources/eTools EJB Libraries/src",
-"-package", "com.ibm.etools",
-// Logical names of level-1 packages within the model which will be generated. Nesting not supported.
-"-genAdapters",
-"-genPackage", "common", "com.ibm.etools.j2ee","common","common.xmi",
-"-genPackage", "ejb","com.ibm.etools", "ejb","ejb.xmi",
-"-genPackage", "client","com.ibm.etools","client","client.xmi",
-"-genPackage", "application","com.ibm.etools","application","application.xmi",
-"-genPackage", "webapplication","com.ibm.etools","webapplication","webapplication.xmi",
-"-genPackage", "taglib","com.ibm.etools","taglib","taglib.xmi",
-"-refPackage", "ecore", "com.ibm.etools.emf",
-"-4"};
-com.ibm.etools.java.init.JavaInit.executeU2M(args)
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/jaxrpcmap.cat b/plugins/org.eclipse.jst.j2ee.core/rose/jaxrpcmap.cat deleted file mode 100644 index ff51a2057..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/jaxrpcmap.cat +++ /dev/null @@ -1,4728 +0,0 @@ - -(object Petal - version 47 - _written "Rose 8.0.0303.1400" - charSet 0) - -(object Class_Category "jaxrpcmap" - is_unit TRUE - is_loaded TRUE - attributes (list Attribute_Set - (object Attribute - tool "Ecore" - name "basePackage" - value (value Text "org.eclipse.jst.j2ee.webservice")) - (object Attribute - tool "Ecore" - name "prefix" - value (value Text "Jaxrpcmap")) - (object Attribute - tool "Ecore" - name "nsURI" - value (value Text "jaxrpcmap.xmi"))) - quid "3E161FA90266" - exportControl "Public" - logical_models (list unit_reference_list - (object Class "JavaWSDLMapping" - quid "3E1621C30168" - documentation -|The element describes the Java mapping to a known WSDL document.It contains the mapping between package names and XML namespaces, -|WSDL root types and Java artifacts, and the set of mappings for services. - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1626A800F4" - type "String" - exportControl "Public")) - language "Java") - (object Class "PackageMapping" - quid "3E1621DB0360" - documentation -|The package-mapping indicates the mapping between java-package-name and XML namespace in the WSDL document. -| -|Used in: java-wsdl-mapping - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1626B101A1" - type "String" - exportControl "Public") - (object ClassAttribute "packageType" - quid "3E5B83B50174" - documentation -|The package-type indicates the Java package name. It must be a fully qualified name. -| -|Used in: package-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "namespaceURI" - quid "3E5B83C100D1" - type "String" - exportControl "Public")) - language "Java") - (object Class "JavaXMLTypeMapping" - quid "3E1621EB016D" - documentation -|The java-xml-type-mapping element contains a class-type that is the fully qualified name of the Java class, QName of the XML root type, the WSDL type scope the QName applies to and the set of variable -|mappings for each public variable within the Java class. -| -|Used in: java-wsdl-mapping - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1626BE0068" - type "String" - exportControl "Public") - (object ClassAttribute "classType" - quid "3E5B84D500EC" - documentation -|The class-type element is the fully qualified class name of a Java class. -| -|Used in: java-xml-type-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "qnameScope" - quid "3E5B85280290" - documentation -|The qname-scope elements scopes the reference of a QName to the WSDL element type it applies to. The value of qname-scope may be simpleType, complexType, or element. -| -|Used in: java-xml-type-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "anonymousTypeQname" - quid "3F9EFC4C00FF" - type "String" - exportControl "Public")) - language "Java") - (object Class "ExceptionMapping" - quid "3E16220001C6" - documentation -|The exception-mapping element defines the mapping between the service specific exception types and the wsdl faults. -| -|This element should be interpreted with respect to the -|mapping between a method and an operation which provides the mapping context. -| -|Used in: service-endpoint-method-mapping - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1626E4010A" - type "String" - exportControl "Public") - (object ClassAttribute "exceptionType" - quid "3E5B8B9602F1" - documentation -|The exception-type element defines Java type of the exception. It may be a service specific exception. -| -|It must be a fully qualified class name. -| -|Used in: exception-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "wsdlMessagePartName" - quid "3F75E65F0303" - type "String" - exportControl "Public")) - language "Java") - (object Class "ServiceInterfaceMapping" - quid "3E16222D009B" - documentation -|The service-interface-mapping element defines how a Java type for the service interface maps to a WSDL service. -| -|Used in: java-wsdl-mapping -| - - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - quid "3E5B9B670325" - supplier "Logical View::jaxrpcmap::InterfaceMapping" - quidu "3E162BC200DD")) - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1626EB01AA" - type "String" - exportControl "Public") - (object ClassAttribute "serviceInterface" - quid "3E5B9D3F033C" - documentation -|The service-interface element defines the Java type for the service. For static services, it is javax.xml.rpc.Service interface. For generated service, it would be the generated interface name. -| -|The name must be a fully qualified class name. -| -|Used in: service-interface-mapping - - type "String" - exportControl "Public")) - language "Java") - (object Class "ServiceEndpointInterfaceMapping" - quid "3E1622380259" - documentation -|The service-endpoint-interface-mapping defines a tuple -|to specify Service Endpoint Interfaces to WSDL port types and WSDL bindings. -| -|An interface may be mapped to a port-type and binding multiple times. This happens rarely. -| -|Used in: java-wsdl-mapping - - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - quid "3E5B9C9202ED" - supplier "Logical View::jaxrpcmap::InterfaceMapping" - quidu "3E162BC200DD")) - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E16271302F9" - type "String" - exportControl "Public") - (object ClassAttribute "serviceEndpointInterface" - quid "3E5B9FC501DE" - documentation -|The service-endpoint-interface element defines the Java type for the endpoint interface. The name must be a fully qualified class name. -| -|Used in: service-endpoint-interface-mapping - - type "String" - exportControl "Public")) - language "Java") - (object Class "PackageType" - quid "3E16226900F7" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E16271B005B" - type "String" - exportControl "Public") - (object ClassAttribute "packageType" - quid "3E19B21C023A" - type "String" - exportControl "Public")) - language "Java") - (object Class "ClassType" - quid "3E16227C005D" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E162721024E" - type "String" - exportControl "Public") - (object ClassAttribute "classType" - quid "3E19B26600D3" - type "String" - exportControl "Public")) - language "Java") - (object Class "RootTypeQname" - quid "3E16229B00C3" - documentation -|The root-type-qname identifies the WSDL QName of an XML type. -| -|Used in: java-xml-type-mapping - - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - quid "3F46744A027C" - supplier "Logical View::common::QName" - quidu "3F3BEF5D02C0")) - language "Java") - (object Class "QnameScope" - quid "3E1622AA0273" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E162732005D" - type "String" - exportControl "Public") - (object ClassAttribute "qnameScope" - quid "3E19B2AA03E3" - type "String" - exportControl "Public")) - language "Java") - (object Class "VariableMapping" - quid "3E1622B9033B" - documentation -|The variable-mapping element defines the correlation between a Java class data member or JavaBeans property to an XML element name of an XML root type. If the data-member element is present, the Java variable name is a public data member. If data-member -|is not present, the Java variable name is a JavaBeans property. -| -|Used in: java-xml-type-mapping - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627390048" - type "String" - exportControl "Public") - (object ClassAttribute "javaVariableName" - quid "3E5B861D0346" - documentation -|The java-variable-name defines the name of a public data member or JavaBeans property within a Java class. -| -|Used in: variable-mapping -| - - type "String" - exportControl "Public") - (object ClassAttribute "xmlElementName" - quid "3E5B86300037" - documentation -|The xml-element-name element defines name attribute value of a WSDL element within a root type. -| -|Used in: variable-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "dataMember" - attributes (list Attribute_Set - (object Attribute - tool "Ecore" - name "isUnsettable" - value TRUE)) - quid "3F467518029C" - type "boolean" - exportControl "Public") - (object ClassAttribute "xmlAttributeName" - quid "3F75E92900A7" - type "String" - exportControl "Public") - (object ClassAttribute "xmlWildcard" - attributes (list Attribute_Set - (object Attribute - tool "Ecore" - name "isUnsettable" - value TRUE)) - quid "3F75EA0202B2" - type "boolean" - exportControl "Public")) - language "Java") - (object Class "ExceptionType" - quid "3E1622D301E2" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E16273F017D" - type "String" - exportControl "Public") - (object ClassAttribute "name" - quid "3E19B571022D" - type "String" - exportControl "Public")) - language "Java") - (object Class "WSDLMessage" - quid "3E1622E002BD" - documentation -|The wsdl-message element defines a WSDL message by a QNAME. -| -|Used in: wsdl-message-mapping, wsdl-return-value-mapping - - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - quid "3F46722B03CB" - supplier "Logical View::common::QName" - quidu "3F3BEF5D02C0")) - language "Java") - (object Class "ConstructorParameterOrder" - attributes (list Attribute_Set - (object Attribute - tool "Java" - name "DisableAutoSync" - value FALSE) - (object Attribute - tool "Java" - name "Final" - value FALSE) - (object Attribute - tool "Java" - name "Static" - value FALSE) - (object Attribute - tool "Java" - name "Strictfp" - value FALSE) - (object Attribute - tool "Java" - name "GenerateDefaultConstructor" - value TRUE) - (object Attribute - tool "Java" - name "GenerateFinalizer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateStaticInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateInstanceInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateCode" - value TRUE) - (object Attribute - tool "Java" - name "ReadOnly" - value FALSE) - (object Attribute - tool "Java" - name "GenerateFullyQualifiedExtends" - value "") - (object Attribute - tool "Java" - name "GenerateFullyQualifiedImplements" - value "") - (object Attribute - tool "Java" - name "ConstructorIs" - value ("Ctor_Set" 62))) - quid "3E1622EC01A1" - documentation -|The constructor-parameter-order element defines the order that complexType element values are applied to a Java exception constructor. Element names are specified for each parameter of the constructor, including element names of inherited types if necessary. -| -|Used in: exception-mapping - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E16274F023D" - type "String" - exportControl "Public")) - language "Java") - (object Class "JavaVariableName" - quid "3E16235C0262" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E162756039B" - type "String" - exportControl "Public") - (object ClassAttribute "javaVariableName" - quid "3E19B362029A" - type "String" - exportControl "Public")) - language "Java") - (object Class "XMLElementName" - quid "3E1623A1039D" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627620366" - type "String" - exportControl "Public") - (object ClassAttribute "xmlElementName" - quid "3E19B37D039B" - type "String" - exportControl "Public")) - language "Java") - (object Class "ElementName" - quid "3E1623B9006B" - documentation -|The element-name element defines the name of a complexType element name attribute value. -| -|Used in: constructor-parameter-order - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627680115" - type "String" - exportControl "Public") - (object ClassAttribute "text" - quid "3E19B5A202D4" - type "String" - exportControl "Public")) - language "Java") - (object Class "WSDLServiceName" - quid "3E16242903AD" - documentation -|The wsdl-service-name element defines the wsdl service name by a QNAME which uniquely identifies the service. -| -|Used in: service-interface-mapping - - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - quid "3F4672A70143" - supplier "Logical View::common::QName" - quidu "3F3BEF5D02C0")) - language "Java") - (object Class "PortMapping" - quid "3E16243E03A2" - documentation -|The port-mapping defines the mapping of the WSDL port name attribute to the Java name used to generate the Generated Service Interface method get<java-name>. -| -|Used in: service-interface-mapping - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E162772030D" - type "String" - exportControl "Public") - (object ClassAttribute "portName" - quid "3E5B9EC702EC" - documentation -|The port-name is the attribute value of a name attribute of a WSDL port element. -| -|Used in: port-mapping -| - - type "String" - exportControl "Public") - (object ClassAttribute "javaPortName" - quid "3E5B9ECE0075" - documentation -|The java-port-name element is the string to use as the port name in Java. It is used in generating the Generated Service Interface method -|get<java-port-name>. -| -|Used in: port-mapping - - type "String" - exportControl "Public")) - language "Java") - (object Class "JavaPortName" - quid "3E1624A301C9" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627780063" - type "String" - exportControl "Public") - (object ClassAttribute "javaPortName" - quid "3E19C09800E9" - type "String" - exportControl "Public")) - language "Java") - (object Class "WSDLPortType" - quid "3E1624EB0326" - documentation -|The wsdl-port-type element defines the wsdl port type -|by a QNAME which uniquely identifies the port type. -| -|Used in: service-endpoint-interface-mapping - - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - quid "3F4672C40083" - supplier "Logical View::common::QName" - quidu "3F3BEF5D02C0")) - language "Java") - (object Class "WSDLBinding" - quid "3E16250602A1" - documentation -|The wsdl-binding element defines the wsdl binding -|by a QNAME which uniquely identifies the binding. -| -|Used in: service-endpoint-interface-mapping - - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - quid "3F46737A0033" - supplier "Logical View::common::QName" - quidu "3F3BEF5D02C0")) - language "Java") - (object Class "ServiceEndpointMethodMapping" - quid "3E1625140124" - documentation -|The service-endpoint-method-mapping element defines the mapping of Java methods to operations (which are not uniquely qualified by qnames). -| -|The wsdl-operation should be interpreted with respect to the portType and binding in which this definition is embedded within. See the definitions for service-endpoint-interface-mapping and -|service-interface-mapping to acquire the proper context. The wrapped-element indicator should only be specified when a WSDL message wraps an element type. The wsdl-return-value-mapping is not specified for one-way operations. -| -|Used in: service-endpoint-interface-mapping - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E16278A031A" - type "String" - exportControl "Public") - (object ClassAttribute "javaMethodName" - quid "3E5BA15D0077" - documentation -|The java-method-name element defines the name of a Java method within an interface. -| -|Used in: service-endpoint-method-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "wsdlOperation" - quid "3E5BA16502F9" - documentation -|The wsdl-operation element defines an operation within a WSDL document. It must be interpreted with respect to a port type. -| -|Used in: service-endpoint-method-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "wrappedElement" - attributes (list Attribute_Set - (object Attribute - tool "Ecore" - name "isUnsettable" - value TRUE)) - quid "3F4675BF0274" - type "boolean" - exportControl "Public")) - language "Java") - (object Class "JavaMethodName" - quid "3E16252900BE" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E162790030E" - type "String" - exportControl "Public") - (object ClassAttribute "javaMethodName" - quid "3E19C3110121" - type "String" - exportControl "Public")) - language "Java") - (object Class "WSDLOperation" - quid "3E16253603C9" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627970340" - type "String" - exportControl "Public") - (object ClassAttribute "wsdlOperation" - quid "3E19C2B4019C" - type "String" - exportControl "Public")) - language "Java") - (object Class "MethodParamPartsMapping" - quid "3E16256A0171" - documentation -|The method-param-parts-mapping element defines the mapping between a Java method parameters and a wsdl-message. -| -|Used in: service-endpoint-method-mapping - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627A703BA" - type "String" - exportControl "Public") - (object ClassAttribute "paramPosition" - quid "3E5BA26002C3" - documentation -|The param-position element defines the position of a parameter within a Java method. It must be an integer starting from 0. -| -|Used in: method-param-parts-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "paramType" - quid "3E5BA2690366" - documentation -|The param-type element defines the Java type of a parameter within a Java method. It must be defined by a fully qualified name of a class. -| -|Used in: method-param-parts-mapping -| - - type "String" - exportControl "Public")) - language "Java") - (object Class "WSDLReturnValueMapping" - attributes (list Attribute_Set - (object Attribute - tool "Java" - name "DisableAutoSync" - value FALSE) - (object Attribute - tool "Java" - name "Final" - value FALSE) - (object Attribute - tool "Java" - name "Static" - value FALSE) - (object Attribute - tool "Java" - name "Strictfp" - value FALSE) - (object Attribute - tool "Java" - name "GenerateDefaultConstructor" - value TRUE) - (object Attribute - tool "Java" - name "GenerateFinalizer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateStaticInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateInstanceInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateCode" - value TRUE) - (object Attribute - tool "Java" - name "ReadOnly" - value FALSE) - (object Attribute - tool "Java" - name "GenerateFullyQualifiedExtends" - value "") - (object Attribute - tool "Java" - name "GenerateFullyQualifiedImplements" - value "") - (object Attribute - tool "Java" - name "ConstructorIs" - value ("Ctor_Set" 62))) - quid "3E1625870243" - documentation -|The wsdl-return-value-mapping element defines the mapping for the method's return value. It defines the mapping to a specific message and its part. Together they define uniquely the mapping for a specific parameter. Parts within a message context are uniquely -|identified with their names. The wsdl-message-part-name is not -|specified if there is no return value or OUT parameters. -| -|Used in: service-endpoint-method-mapping - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627AD0174" - type "String" - exportControl "Public") - (object ClassAttribute "methodReturnValue" - quid "3E5BA4F601E9" - documentation -|The method-return-value element defines a fully qualified class name or void type for the method's return value type. -| -|Used in: wsdl-return-value-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "wsdlMessagePartName" - quid "3E5BA41D02B2" - documentation -|Interpretation of the wsdl-message-part-name element depends on whether or not wrapped-element has been defined in the service-endpoint-method-mapping. If wrapped-element is not specified, wsdl-message-part-name defines a WSDL message part. It should always be interpreter with respect to a wsdl-message element. If wrapped-element is specified, wsdl-message-part-name refers to an element -|name of the element type. -| -|Used in: wsdl-message-mapping, wsdl-return-value-mapping - - type "String" - exportControl "Public")) - language "Java") - (object Class "ParamPosition" - quid "3E1625CF02F6" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627B300D2" - type "String" - exportControl "Public") - (object ClassAttribute "paramPosition" - quid "3E19C4110059" - type "String" - exportControl "Public")) - language "Java") - (object Class "ParamType" - quid "3E1625E20085" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627BC01C4" - type "String" - exportControl "Public") - (object ClassAttribute "paramType" - quid "3E19C41A03C2" - type "String" - exportControl "Public")) - language "Java") - (object Class "WSDLMessageMapping" - quid "3E1625FA038B" - documentation -|The wsdl-message-mapping element defines the mapping to a specific message and its part. Together they define uniquely the mapping for a specific parameter. Parts within a message context are uniquely -|identified with their names. -| -|The parameter-mode is defined by the mapping to indicate whether the mapping will be IN, OUT, or INOUT.. The presence of the soap-header -|element indicates that the parameter is mapped to a soap header only. When absent, it means that the wsdl-message is mapped to a Java parameter. The soap headers are interpreted in the order they are -|provided in the mapping. -| -|Used in: method-param-parts-mapping - - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627C3000B" - type "String" - exportControl "Public") - (object ClassAttribute "wsdlMessagePartName" - quid "3E5BA2AD019D" - documentation -|Interpretation of the wsdl-message-part-name element depends on whether or not wrapped-element has been defined in the service-endpoint-method-mapping. If wrapped-element is not specified, wsdl-message-part-name defines a WSDL message part. It should always be interpreter with respect to a wsdl-message element. If wrapped-element is specified, wsdl-message-part-name refers to an element -|name of the element type. -| -|Used in: wsdl-message-mapping, wsdl-return-value-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "parameterMode" - quid "3E5BA32F01C4" - documentation -|The parameter-mode element defines the mode of the parameter. It can have only three values, IN, OUT, INOUT. -| -|Used in: wsdl-message-mapping - - type "String" - exportControl "Public") - (object ClassAttribute "soapHeader" - attributes (list Attribute_Set - (object Attribute - tool "Ecore" - name "isUnsettable" - value TRUE)) - quid "3F46765B00CB" - type "boolean" - exportControl "Public")) - language "Java") - (object Class "WSDLMessagePartName" - quid "3E1626250394" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627DA01C5" - type "String" - exportControl "Public") - (object ClassAttribute "wsdlMessagePartName" - quid "3E19B4B3004C" - type "String" - exportControl "Public")) - language "Java") - (object Class "ParameterMode" - quid "3E16264800C1" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627E10161" - type "String" - exportControl "Public") - (object ClassAttribute "parameterMode" - quid "3E19B4CB0190" - type "String" - exportControl "Public")) - language "Java") - (object Class "MethodReturnValue" - quid "3E16267A02F0" - class_attributes (list class_attribute_list - (object ClassAttribute "id" - quid "3E1627F002CA" - type "String" - exportControl "Public") - (object ClassAttribute "methodReturnValue" - quid "3E19C3360117" - type "String" - exportControl "Public")) - language "Java") - (object Class "InterfaceMapping" - quid "3E162BC200DD" - language "Java") - (object Association "$UNNAMED$0" - quid "3E188B0E0371" - roles (list role_list - (object Role "packageMappings" - quid "3E188B1002AC" - label "packageMappings" - supplier "Logical View::jaxrpcmap::PackageMapping" - quidu "3E1621DB0360" - client_cardinality (value cardinality "1..n") - Constraints "1" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$1" - quid "3E188B1002B6" - supplier "Logical View::jaxrpcmap::JavaWSDLMapping" - quidu "3E1621C30168" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$2" - quid "3E188EAF01F6" - roles (list role_list - (object Role "rootTypeQname" - quid "3E188EB003A6" - label "rootTypeQname" - supplier "Logical View::jaxrpcmap::RootTypeQname" - quidu "3E16229B00C3" - client_cardinality (value cardinality "1") - Constraints "2" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$3" - quid "3E188EB003A8" - supplier "Logical View::jaxrpcmap::JavaXMLTypeMapping" - quidu "3E1621EB016D" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$4" - quid "3E188EC50084" - roles (list role_list - (object Role "variableMappings" - quid "3E188EC70271" - label "variableMappings" - supplier "Logical View::jaxrpcmap::VariableMapping" - quidu "3E1622B9033B" - client_cardinality (value cardinality "0..n") - Constraints "4" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$5" - quid "3E188EC70273" - supplier "Logical View::jaxrpcmap::JavaXMLTypeMapping" - quidu "3E1621EB016D" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$6" - quid "3E18919400B9" - roles (list role_list - (object Role "javaXMLTypeMappings" - quid "3E1891950382" - label "javaXMLTypeMappings" - supplier "Logical View::jaxrpcmap::JavaXMLTypeMapping" - quidu "3E1621EB016D" - client_cardinality (value cardinality "0..n") - Constraints "2" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$7" - quid "3E1891950384" - supplier "Logical View::jaxrpcmap::JavaWSDLMapping" - quidu "3E1621C30168" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$8" - quid "3E18A1AE00EB" - roles (list role_list - (object Role "exceptionMappings" - quid "3E18A1AF001A" - label "exceptionMappings" - supplier "Logical View::jaxrpcmap::ExceptionMapping" - quidu "3E16220001C6" - client_cardinality (value cardinality "0..n") - Constraints "3" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$9" - quid "3E18A1AF001C" - supplier "Logical View::jaxrpcmap::JavaWSDLMapping" - quidu "3E1621C30168" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$10" - quid "3E18A1B5019F" - roles (list role_list - (object Role "wsdlMessage" - quid "3E18A1B6020E" - label "wsdlMessage" - supplier "Logical View::jaxrpcmap::WSDLMessage" - quidu "3E1622E002BD" - client_cardinality (value cardinality "1") - Constraints "2" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$11" - quid "3E18A1B60210" - supplier "Logical View::jaxrpcmap::ExceptionMapping" - quidu "3E16220001C6" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$12" - quid "3E18A1BB03E2" - roles (list role_list - (object Role "constructorParameterOrder" - quid "3E18A1BD0037" - label "constructorParameterOrder" - supplier "Logical View::jaxrpcmap::ConstructorParameterOrder" - quidu "3E1622EC01A1" - client_cardinality (value cardinality "0..1") - Constraints "3" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$13" - quid "3E18A1BD0039" - supplier "Logical View::jaxrpcmap::ExceptionMapping" - quidu "3E16220001C6" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$14" - quid "3E18A1D80066" - roles (list role_list - (object Role "elementNames" - quid "3E18A1DA0023" - label "elementNames" - supplier "Logical View::jaxrpcmap::ElementName" - quidu "3E1623B9006B" - client_cardinality (value cardinality "1..n") - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$15" - quid "3E18A1DA0025" - supplier "Logical View::jaxrpcmap::ConstructorParameterOrder" - quidu "3E1622EC01A1" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$16" - quid "3E18A543024E" - roles (list role_list - (object Role "interfaceMappings" - quid "3E18A5440322" - label "interfaceMappings" - supplier "Logical View::jaxrpcmap::InterfaceMapping" - quidu "3E162BC200DD" - client_cardinality (value cardinality "0..n") - Constraints "4" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$17" - quid "3E18A5440324" - supplier "Logical View::jaxrpcmap::JavaWSDLMapping" - quidu "3E1621C30168" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$18" - quid "3E18A5680096" - roles (list role_list - (object Role "wsdlServiceName" - quid "3E18A56803AD" - label "wsdlServiceName" - supplier "Logical View::jaxrpcmap::WSDLServiceName" - quidu "3E16242903AD" - client_cardinality (value cardinality "1") - Constraints "2" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$19" - quid "3E18A56803AF" - supplier "Logical View::jaxrpcmap::ServiceInterfaceMapping" - quidu "3E16222D009B" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$20" - quid "3E18A575004E" - roles (list role_list - (object Role "portMappings" - quid "3E18A576001D" - label "portMappings" - supplier "Logical View::jaxrpcmap::PortMapping" - quidu "3E16243E03A2" - client_cardinality (value cardinality "0..n") - Constraints "3" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$21" - quid "3E18A5760027" - supplier "Logical View::jaxrpcmap::ServiceInterfaceMapping" - quidu "3E16222D009B" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$22" - quid "3E18A583022D" - roles (list role_list - (object Role "wsdlPortType" - quid "3E18A587014D" - label "wsdlPortType" - supplier "Logical View::jaxrpcmap::WSDLPortType" - quidu "3E1624EB0326" - client_cardinality (value cardinality "1") - Constraints "2" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$23" - quid "3E18A5870157" - supplier "Logical View::jaxrpcmap::ServiceEndpointInterfaceMapping" - quidu "3E1622380259" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$24" - quid "3E18A5BD036D" - roles (list role_list - (object Role "wsdlBinding" - quid "3E18A5BE038D" - label "wsdlBinding" - supplier "Logical View::jaxrpcmap::WSDLBinding" - quidu "3E16250602A1" - client_cardinality (value cardinality "1") - Constraints "3" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$25" - quid "3E18A5BE0397" - supplier "Logical View::jaxrpcmap::ServiceEndpointInterfaceMapping" - quidu "3E1622380259" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$26" - quid "3E18A5E30351" - roles (list role_list - (object Role "serviceEndpointMethodMappings" - quid "3E18A5E502D2" - label "serviceEndpointMethodMappings" - supplier "Logical View::jaxrpcmap::ServiceEndpointMethodMapping" - quidu "3E1625140124" - client_cardinality (value cardinality "0..n") - Constraints "4" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$27" - quid "3E18A5E502DC" - supplier "Logical View::jaxrpcmap::ServiceEndpointInterfaceMapping" - quidu "3E1622380259" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$28" - quid "3E19A09E005D" - roles (list role_list - (object Role "methodParamPartsMappings" - quid "3E19A09F004A" - label "methodParamPartsMappings" - supplier "Logical View::jaxrpcmap::MethodParamPartsMapping" - quidu "3E16256A0171" - client_cardinality (value cardinality "0..n") - Constraints "4" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$29" - quid "3E19A09F004C" - supplier "Logical View::jaxrpcmap::ServiceEndpointMethodMapping" - quidu "3E1625140124" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$30" - quid "3E19A0A3028A" - roles (list role_list - (object Role "wsdlReturnValueMapping" - quid "3E19A0A40354" - label "wsdlReturnValueMapping" - supplier "Logical View::jaxrpcmap::WSDLReturnValueMapping" - quidu "3E1625870243" - client_cardinality (value cardinality "0..1") - Constraints "5" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$31" - quid "3E19A0A4035E" - supplier "Logical View::jaxrpcmap::ServiceEndpointMethodMapping" - quidu "3E1625140124" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$32" - quid "3E19A121008E" - roles (list role_list - (object Role "wsdlMessage" - quid "3E19A1220017" - label "wsdlMessage" - supplier "Logical View::jaxrpcmap::WSDLMessage" - quidu "3E1622E002BD" - client_cardinality (value cardinality "1") - Constraints "2" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$33" - quid "3E19A1220022" - supplier "Logical View::jaxrpcmap::WSDLReturnValueMapping" - quidu "3E1625870243" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$34" - quid "3E19A5D401CA" - roles (list role_list - (object Role "wsdlMessageMapping" - quid "3E19A5D5008B" - label "wsdlMessageMapping" - supplier "Logical View::jaxrpcmap::WSDLMessageMapping" - quidu "3E1625FA038B" - client_cardinality (value cardinality "1") - Constraints "3" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$35" - quid "3E19A5D5008D" - supplier "Logical View::jaxrpcmap::MethodParamPartsMapping" - quidu "3E16256A0171" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$36" - quid "3E19A5DB0011" - roles (list role_list - (object Role "wsdlMessage" - quid "3E19A5DB0383" - label "wsdlMessage" - supplier "Logical View::jaxrpcmap::WSDLMessage" - quidu "3E1622E002BD" - client_cardinality (value cardinality "1") - Constraints "1" - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$37" - quid "3E19A5DB038E" - supplier "Logical View::jaxrpcmap::WSDLMessageMapping" - quidu "3E1625FA038B" - client_cardinality (value cardinality "1") - is_aggregate TRUE)))) - logical_presentations (list unit_reference_list - (object ClassDiagram "PackageMapping" - quid "3E188A5A02CB" - title "PackageMapping" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "Logical View::jaxrpcmap::PackageMapping" @1 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1056, 208) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @1 - location (826, 100) - fill_color 13434879 - nlines 1 - max_width 460 - justify 0 - label "PackageMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1621DB0360" - width 478 - height 236 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::JavaWSDLMapping" @2 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (304, 208) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @2 - location (109, 141) - fill_color 13434879 - nlines 1 - max_width 390 - justify 0 - label "JavaWSDLMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1621C30168" - width 408 - height 154 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$0" @3 - location (662, 208) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E188B0E0371" - roleview_list (list RoleViews - (object RoleView "packageMappings" @4 - Parent_View @3 - location (362, 0) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @5 - Parent_View @4 - location (716, 87) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 294 - justify 0 - label "+packageMappings" - pctDist 0.349727 - height 122 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E188B1002AC" - client @3 - supplier @1 - line_style 0 - label (object SegLabel @6 - Parent_View @4 - location (744, 151) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "1..n" - pctDist 0.535519 - height 58 - orientation 0) - label (object SegLabel @7 - Parent_View @4 - location (786, 253) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 50 - justify 0 - label "{1}" - pctDist 0.814208 - height 45 - orientation 1)) - (object RoleView "$UNNAMED$1" @8 - Parent_View @3 - location (362, 0) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E188B1002B6" - client @3 - supplier @2 - line_style 0 - label (object SegLabel @9 - Parent_View @8 - location (523, 262) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.901099 - height 54 - orientation 0)))))) - (object ClassDiagram "JavaXMLTypeMapping" - quid "3E188BF0014A" - title "JavaXMLTypeMapping" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "Logical View::jaxrpcmap::RootTypeQname" @10 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1184, 720) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @10 - location (1018, 678) - fill_color 13434879 - nlines 1 - max_width 332 - justify 0 - label "RootTypeQname") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E16229B00C3" - width 350 - height 104 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::VariableMapping" @11 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1184, 1232) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @11 - location (923, 1063) - fill_color 13434879 - nlines 1 - max_width 522 - justify 0 - label "VariableMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1622B9033B" - width 540 - height 358 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::JavaXMLTypeMapping" @12 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (320, 848) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @12 - location (14, 720) - fill_color 13434879 - nlines 1 - max_width 612 - justify 0 - label "JavaXMLTypeMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1621EB016D" - width 630 - height 276 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$2" @13 - location (821, 773) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E188EAF01F6" - roleview_list (list RoleViews - (object RoleView "rootTypeQname" @14 - Parent_View @13 - location (505, -75) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @15 - Parent_View @14 - location (890, 720) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 262 - justify 0 - label "+rootTypeQname" - pctDist 0.403230 - height 43 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E188EB003A6" - client @13 - supplier @10 - line_style 0 - label (object SegLabel @16 - Parent_View @14 - location (956, 690) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.767360 - height 64 - orientation 0) - label (object SegLabel @17 - Parent_View @14 - location (984, 682) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 50 - justify 0 - label "{2}" - pctDist 0.925304 - height 68 - orientation 0)) - (object RoleView "$UNNAMED$3" @18 - Parent_View @13 - location (505, -75) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E188EB003A8" - client @13 - supplier @12 - line_style 0 - label (object SegLabel @19 - Parent_View @18 - location (663, 851) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.896000 - height 54 - orientation 0)))) - (object AssociationViewNew "$UNNAMED$4" @20 - location (771, 1048) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E188EC50084" - roleview_list (list RoleViews - (object RoleView "variableMappings" @21 - Parent_View @20 - location (450, 199) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @22 - Parent_View @21 - location (812, 1149) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 292 - justify 0 - label "+variableMappings" - pctDist 0.510648 - height 76 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E188EC70271" - client @20 - supplier @11 - line_style 0 - label (object SegLabel @23 - Parent_View @21 - location (847, 1103) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "0..n" - pctDist 0.594874 - height 20 - orientation 1) - label (object SegLabel @24 - Parent_View @21 - location (794, 1117) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 50 - justify 0 - label "{4}" - pctDist 0.310863 - height 55 - orientation 1)) - (object RoleView "$UNNAMED$5" @25 - Parent_View @20 - location (450, 199) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E188EC70273" - client @20 - supplier @12 - line_style 0 - label (object SegLabel @26 - Parent_View @25 - location (666, 944) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.896312 - height 53 - orientation 1)))) - (object ClassView "Class" "Logical View::jaxrpcmap::JavaWSDLMapping" @27 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (272, 160) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @27 - location (77, 93) - fill_color 13434879 - nlines 1 - max_width 390 - justify 0 - label "JavaWSDLMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1621C30168" - width 408 - height 154 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$6" @28 - location (293, 473) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18919400B9" - roleview_list (list RoleViews - (object RoleView "javaXMLTypeMappings" @29 - Parent_View @28 - location (21, 320) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @30 - Parent_View @29 - location (267, 665) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 370 - justify 0 - label "+javaXMLTypeMappings" - pctDist 0.797753 - height 41 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E1891950382" - client @28 - supplier @12 - line_style 0 - label (object SegLabel @31 - Parent_View @29 - location (362, 681) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "0..n" - pctDist 0.898876 - height 54 - orientation 0) - label (object SegLabel @32 - Parent_View @29 - location (416, 677) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 50 - justify 0 - label "{2}" - pctDist 0.898876 - height 108 - orientation 0)) - (object RoleView "$UNNAMED$7" @33 - Parent_View @28 - location (21, 320) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E1891950384" - client @28 - supplier @27 - line_style 0 - label (object SegLabel @34 - Parent_View @33 - location (333, 258) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.898496 - height 54 - orientation 1)))) - (object ClassView "Class" "Logical View::common::QName" @35 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1184, 224) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @35 - location (898, 77) - fill_color 13434879 - nlines 1 - max_width 572 - justify 0 - label "QName") - icon_style "Icon" - line_color 3342489 - fill_color 16766421 - quidu "3F3BEF5D02C0" - width 590 - height 314 - annotation 8 - autoResize TRUE) - (object InheritView "" @36 - stereotype TRUE - line_color 3342489 - quidu "3F46744A027C" - client @10 - supplier @35 - line_style 0))) - (object ClassDiagram "ExceptionMapping" - quid "3E18934B039F" - title "ExceptionMapping" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "Logical View::jaxrpcmap::JavaWSDLMapping" @37 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (304, 128) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @37 - location (109, 61) - fill_color 13434879 - nlines 1 - max_width 390 - justify 0 - label "JavaWSDLMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1621C30168" - width 408 - height 154 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::WSDLMessage" @38 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1072, 656) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @38 - location (923, 614) - fill_color 13434879 - nlines 1 - max_width 298 - justify 0 - label "WSDLMessage") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1622E002BD" - width 316 - height 104 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::ExceptionMapping" @39 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (304, 656) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @39 - location (7, 548) - fill_color 13434879 - nlines 1 - max_width 594 - justify 0 - label "ExceptionMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E16220001C6" - width 612 - height 236 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$8" @40 - location (304, 371) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A1AE00EB" - roleview_list (list RoleViews - (object RoleView "exceptionMappings" @41 - Parent_View @40 - location (0, 250) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @42 - Parent_View @41 - location (265, 475) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 323 - justify 0 - label "+exceptionMappings" - pctDist 0.631016 - height 40 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E18A1AF001A" - client @40 - supplier @39 - line_style 0 - label (object SegLabel @43 - Parent_View @41 - location (358, 519) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "0..n" - pctDist 0.893048 - height 54 - orientation 0) - label (object SegLabel @44 - Parent_View @41 - location (412, 519) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 50 - justify 0 - label "{3}" - pctDist 0.893048 - height 108 - orientation 0)) - (object RoleView "$UNNAMED$9" @45 - Parent_View @40 - location (0, 250) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A1AF001C" - client @40 - supplier @37 - line_style 0 - label (object SegLabel @46 - Parent_View @45 - location (358, 223) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.892473 - height 54 - orientation 1)))) - (object AssociationViewNew "$UNNAMED$10" @47 - location (761, 656) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A1B5019F" - roleview_list (list RoleViews - (object RoleView "wsdlMessage" @48 - Parent_View @47 - location (461, -6) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @49 - Parent_View @48 - location (784, 618) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 230 - justify 0 - label "+wsdlMessage" - pctDist 0.156463 - height 39 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E18A1B6020E" - client @47 - supplier @38 - line_style 0 - label (object SegLabel @50 - Parent_View @48 - location (896, 710) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.896552 - height 54 - orientation 1) - label (object SegLabel @51 - Parent_View @48 - location (862, 701) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 50 - justify 0 - label "{2}" - pctDist 0.666667 - height 45 - orientation 1)) - (object RoleView "$UNNAMED$11" @52 - Parent_View @47 - location (461, -6) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A1B60210" - client @47 - supplier @39 - line_style 0 - label (object SegLabel @53 - Parent_View @52 - location (626, 710) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.898635 - height 54 - orientation 0)))) - (object ClassView "Class" "Logical View::jaxrpcmap::ElementName" @54 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1888, 1424) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @54 - location (1738, 1336) - fill_color 13434879 - nlines 1 - max_width 300 - justify 0 - label "ElementName") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1623B9006B" - width 318 - height 196 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::ConstructorParameterOrder" @55 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1152, 1088) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @55 - location (902, 1021) - fill_color 13434879 - nlines 1 - max_width 500 - justify 0 - label "ConstructorParameterOrder") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1622EC01A1" - width 518 - height 154 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$12" @56 - location (768, 892) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A1BB03E2" - roleview_list (list RoleViews - (object RoleView "constructorParameterOrder" @57 - Parent_View @56 - location (463, 235) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @58 - Parent_View @57 - location (688, 997) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 422 - justify 0 - label "+constructorParameterOrder" - pctDist -0.102003 - height 130 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E18A1BD0037" - client @56 - supplier @55 - line_style 0 - label (object SegLabel @59 - Parent_View @57 - location (1039, 980) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "0..1" - pctDist 1.082131 - height 45 - orientation 0) - label (object SegLabel @60 - Parent_View @57 - location (983, 940) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 50 - justify 0 - label "{3}" - pctDist 0.817677 - height 55 - orientation 0)) - (object RoleView "$UNNAMED$13" @61 - Parent_View @56 - location (463, 235) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A1BD0039" - client @56 - supplier @39 - line_style 0 - label (object SegLabel @62 - Parent_View @61 - location (584, 739) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.896194 - height 54 - orientation 1)))) - (object AssociationViewNew "$UNNAMED$14" @63 - location (1525, 1257) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A1D80066" - roleview_list (list RoleViews - (object RoleView "elementNames" @64 - Parent_View @63 - location (323, -167) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @65 - Parent_View @64 - location (1718, 1264) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 240 - justify 0 - label "+elementNames" - pctDist 0.804782 - height 75 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E18A1DA0023" - client @63 - supplier @54 - line_style 0 - label (object SegLabel @66 - Parent_View @64 - location (1672, 1374) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "1..n" - pctDist 0.810582 - height 46 - orientation 1)) - (object RoleView "$UNNAMED$15" @67 - Parent_View @63 - location (323, -167) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A1DA0025" - client @63 - supplier @55 - line_style 0 - label (object SegLabel @68 - Parent_View @67 - location (1321, 1223) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.902256 - height 54 - orientation 0)))) - (object ClassView "Class" "Logical View::common::QName" @69 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1600, 192) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @69 - location (1314, 45) - fill_color 13434879 - nlines 1 - max_width 572 - justify 0 - label "QName") - icon_style "Icon" - line_color 3342489 - fill_color 16766421 - quidu "3F3BEF5D02C0" - width 590 - height 314 - annotation 8 - autoResize TRUE) - (object InheritView "" @70 - stereotype TRUE - line_color 3342489 - quidu "3F46722B03CB" - client @38 - supplier @69 - line_style 0))) - (object ClassDiagram "InterfaceMapping" - quid "3E18A3F50002" - title "InterfaceMapping" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 2001 - origin_y 1669 - items (list diagram_item_list - (object ClassView "Class" "Logical View::jaxrpcmap::ServiceEndpointMethodMapping" @71 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (2112, 2336) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @71 - location (1806, 2208) - fill_color 13434879 - nlines 1 - max_width 612 - justify 0 - label "ServiceEndpointMethodMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1625140124" - width 630 - height 276 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::WSDLPortType" @72 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (2064, 1504) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @72 - location (1909, 1462) - fill_color 13434879 - nlines 1 - max_width 310 - justify 0 - label "WSDLPortType") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1624EB0326" - width 328 - height 104 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::WSDLBinding" @73 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (2064, 1888) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @73 - location (1921, 1846) - fill_color 13434879 - nlines 1 - max_width 286 - justify 0 - label "WSDLBinding") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E16250602A1" - width 304 - height 104 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::ServiceEndpointInterfaceMapping" @74 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1120, 1504) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @74 - location (801, 1416) - fill_color 13434879 - nlines 1 - max_width 638 - justify 0 - label "ServiceEndpointInterfaceMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1622380259" - width 656 - height 196 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$26" @75 - location (1592, 1899) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A5E30351" - roleview_list (list RoleViews - (object RoleView "serviceEndpointMethodMappings" @76 - Parent_View @75 - location (479, 394) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @77 - Parent_View @76 - location (1672, 2194) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 508 - justify 0 - label "+serviceEndpointMethodMappings" - pctDist 0.543006 - height 175 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E18A5E502D2" - client @75 - supplier @71 - line_style 0 - label (object SegLabel @78 - Parent_View @76 - location (1692, 2158) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "0..n" - pctDist 0.522836 - height 134 - orientation 1) - label (object SegLabel @79 - Parent_View @76 - location (1843, 2152) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 48 - justify 0 - label "{4}" - pctDist 0.765691 - height 33 - orientation 1)) - (object RoleView "$UNNAMED$27" @80 - Parent_View @75 - location (479, 394) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A5E502DC" - client @75 - supplier @74 - line_style 0 - label (object SegLabel @81 - Parent_View @80 - location (1308, 1594) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.895582 - height 52 - orientation 1)))) - (object AssociationViewNew "$UNNAMED$22" @82 - location (1673, 1504) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A583022D" - roleview_list (list RoleViews - (object RoleView "wsdlPortType" @83 - Parent_View @82 - location (547, 2) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @84 - Parent_View @83 - location (1843, 1433) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 231 - justify 0 - label "+wsdlPortType" - pctDist 0.755187 - height 72 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E18A587014D" - client @82 - supplier @72 - line_style 0 - label (object SegLabel @85 - Parent_View @83 - location (1877, 1543) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.906704 - height 39 - orientation 1) - label (object SegLabel @86 - Parent_View @83 - location (1839, 1471) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 48 - justify 0 - label "{2}" - pctDist 0.734016 - height 34 - orientation 0)) - (object RoleView "$UNNAMED$23" @87 - Parent_View @82 - location (547, 2) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A5870157" - client @82 - supplier @74 - line_style 0 - label (object SegLabel @88 - Parent_View @87 - location (1471, 1452) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.901961 - height 53 - orientation 1)))) - (object AssociationViewNew "$UNNAMED$24" @89 - location (1648, 1718) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @90 - Parent_View @89 - location (1648, 1659) - font (object Font - size 8 - face "Arial" - bold FALSE - italics TRUE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - hidden TRUE - anchor 1 - anchor_loc 1 - nlines 1 - max_width 60 - justify 0 - label "" - pctDist 0.500000 - height 60 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E18A5BD036D" - roleview_list (list RoleViews - (object RoleView "wsdlBinding" @91 - Parent_View @89 - location (520, 221) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @92 - Parent_View @91 - location (2051, 1792) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 204 - justify 0 - label "+wsdlBinding" - pctDist 1.297847 - height 84 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E18A5BE038D" - client @89 - supplier @73 - line_style 0 - label (object SegLabel @93 - Parent_View @91 - location (1888, 1848) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.869694 - height 30 - orientation 1) - label (object SegLabel @94 - Parent_View @91 - location (1891, 1782) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 48 - justify 0 - label "{3}" - pctDist 0.801582 - height 34 - orientation 0)) - (object RoleView "$UNNAMED$25" @95 - Parent_View @89 - location (520, 221) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A5BE0397" - client @89 - supplier @74 - line_style 0 - label (object SegLabel @96 - Parent_View @95 - location (1413, 1567) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.891640 - height 53 - orientation 1)))) - (object ClassView "Class" "Logical View::jaxrpcmap::InterfaceMapping" @97 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (288, 1088) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @97 - location (113, 1046) - fill_color 13434879 - nlines 1 - max_width 350 - justify 0 - label "InterfaceMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E162BC200DD" - width 368 - height 104 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::JavaWSDLMapping" @98 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (288, 128) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @98 - location (93, 61) - fill_color 13434879 - nlines 1 - max_width 390 - justify 0 - label "JavaWSDLMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1621C30168" - width 408 - height 154 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$16" @99 - location (288, 620) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A543024E" - roleview_list (list RoleViews - (object RoleView "interfaceMappings" @100 - Parent_View @99 - location (0, 496) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @101 - Parent_View @100 - location (248, 951) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 296 - justify 0 - label "+interfaceMappings" - pctDist 0.798526 - height 41 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E18A5440322" - client @99 - supplier @97 - line_style 0 - label (object SegLabel @102 - Parent_View @100 - location (342, 993) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "0..n" - pctDist 0.899263 - height 54 - orientation 0) - label (object SegLabel @103 - Parent_View @100 - location (396, 993) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 48 - justify 0 - label "{4}" - pctDist 0.899263 - height 108 - orientation 0)) - (object RoleView "$UNNAMED$17" @104 - Parent_View @99 - location (0, 496) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A5440324" - client @99 - supplier @98 - line_style 0 - label (object SegLabel @105 - Parent_View @104 - location (342, 247) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.899263 - height 54 - orientation 1)))) - (object ClassView "Class" "Logical View::jaxrpcmap::WSDLServiceName" @106 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1984, 736) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @106 - location (1795, 694) - fill_color 13434879 - nlines 1 - max_width 378 - justify 0 - label "WSDLServiceName") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E16242903AD" - width 396 - height 104 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::PortMapping" @107 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1920, 1072) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @107 - location (1698, 964) - fill_color 13434879 - nlines 1 - max_width 444 - justify 0 - label "PortMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E16243E03A2" - width 462 - height 236 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::ServiceInterfaceMapping" @108 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1040, 736) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @108 - location (799, 649) - fill_color 13434879 - nlines 1 - max_width 482 - justify 0 - label "ServiceInterfaceMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E16222D009B" - width 500 - height 194 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$18" @109 - location (1537, 736) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A5680096" - roleview_list (list RoleViews - (object RoleView "wsdlServiceName" @110 - Parent_View @109 - location (487, 0) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @111 - Parent_View @110 - location (1733, 632) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 290 - justify 0 - label "+wsdlServiceName" - pctDist 0.788546 - height 105 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E18A56803AD" - client @109 - supplier @106 - line_style 0 - label (object SegLabel @112 - Parent_View @110 - location (1758, 790) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.893750 - height 54 - orientation 1) - label (object SegLabel @113 - Parent_View @110 - location (1741, 702) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 50 - justify 0 - label "{2}" - pctDist 0.828194 - height 35 - orientation 0)) - (object RoleView "$UNNAMED$19" @114 - Parent_View @109 - location (487, 0) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A56803AF" - client @109 - supplier @108 - line_style 0 - label (object SegLabel @115 - Parent_View @114 - location (1316, 790) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.899371 - height 54 - orientation 0)))) - (object AssociationViewNew "$UNNAMED$20" @116 - location (1489, 906) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A575004E" - roleview_list (list RoleViews - (object RoleView "portMappings" @117 - Parent_View @116 - location (456, 168) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @118 - Parent_View @117 - location (1660, 930) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 221 - justify 0 - label "+portMappings" - pctDist 0.793804 - height 40 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E18A576001D" - client @116 - supplier @107 - line_style 0 - label (object SegLabel @119 - Parent_View @117 - location (1649, 1023) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "0..n" - pctDist 0.899322 - height 52 - orientation 1) - label (object SegLabel @120 - Parent_View @117 - location (1630, 1074) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 48 - justify 0 - label "{3}" - pctDist 0.899516 - height 107 - orientation 1)) - (object RoleView "$UNNAMED$21" @121 - Parent_View @116 - location (456, 168) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E18A5760027" - client @116 - supplier @108 - line_style 0 - label (object SegLabel @122 - Parent_View @121 - location (1329, 791) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.898004 - height 52 - orientation 1)))) - (object InheritView "" @123 - stereotype TRUE - line_color 3342489 - quidu "3E5B9B670325" - client @108 - supplier @97 - line_style 0) - (object InheritView "" @124 - stereotype TRUE - line_color 3342489 - quidu "3E5B9C9202ED" - client @74 - supplier @97 - line_style 0) - (object ClassView "Class" "Logical View::common::QName" @125 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1984, 240) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @125 - location (1697, 93) - fill_color 13434879 - nlines 1 - max_width 574 - justify 0 - label "QName") - icon_style "Icon" - line_color 3342489 - fill_color 16766421 - quidu "3F3BEF5D02C0" - width 592 - height 314 - annotation 8 - autoResize TRUE) - (object InheritView "" @126 - stereotype TRUE - line_color 3342489 - quidu "3F4672A70143" - client @106 - supplier @125 - line_style 0) - (object InheritView "" @127 - stereotype TRUE - line_color 3342489 - quidu "3F4672C40083" - client @72 - supplier @125 - vertices (list Points - (2228, 1504) - (2686, 1504) - (2679, 238) - (2280, 239)) - line_style 0) - (object InheritView "" @128 - stereotype TRUE - line_color 3342489 - quidu "3F46737A0033" - client @73 - supplier @125 - vertices (list Points - (2216, 1887) - (2586, 1887) - (2586, 237) - (2280, 238)) - line_style 0))) - (object ClassDiagram "ServiceEndpointMethodMapping" - quid "3E199C510009" - title "ServiceEndpointMethodMapping" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 1589 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "Logical View::jaxrpcmap::MethodParamPartsMapping" @129 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1744, 576) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @129 - location (1478, 468) - fill_color 13434879 - nlines 1 - max_width 532 - justify 0 - label "MethodParamPartsMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E16256A0171" - width 550 - height 236 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::ServiceEndpointMethodMapping" @130 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (368, 576) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @130 - location (62, 448) - fill_color 13434879 - nlines 1 - max_width 612 - justify 0 - label "ServiceEndpointMethodMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1625140124" - width 630 - height 276 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$28" @131 - location (1075, 576) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E19A09E005D" - roleview_list (list RoleViews - (object RoleView "methodParamPartsMappings" @132 - Parent_View @131 - location (699, -305) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @133 - Parent_View @132 - location (1020, 594) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 451 - justify 0 - label "+methodParamPartsMappings" - pctDist -0.144160 - height 18 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E19A09F004A" - client @131 - supplier @129 - line_style 0 - label (object SegLabel @134 - Parent_View @132 - location (1400, 608) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "0..n" - pctDist 0.830508 - height 32 - orientation 1) - label (object SegLabel @135 - Parent_View @132 - location (1073, 560) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 48 - justify 0 - label "{4}" - pctDist -0.006768 - height 17 - orientation 0)) - (object RoleView "$UNNAMED$29" @136 - Parent_View @131 - location (699, -305) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E19A09F004C" - client @131 - supplier @130 - line_style 0 - label (object SegLabel @137 - Parent_View @136 - location (723, 524) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.900100 - height 53 - orientation 1)))) - (object ClassView "Class" "Logical View::jaxrpcmap::WSDLMessage" @138 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1776, 1664) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @138 - location (1627, 1622) - fill_color 13434879 - nlines 1 - max_width 298 - justify 0 - label "WSDLMessage") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1622E002BD" - width 316 - height 104 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::WSDLReturnValueMapping" @139 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1776, 992) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @139 - location (1479, 884) - fill_color 13434879 - nlines 1 - max_width 594 - justify 0 - label "WSDLReturnValueMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1625870243" - width 612 - height 236 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$30" @140 - location (1076, 784) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E19A0A3028A" - roleview_list (list RoleViews - (object RoleView "wsdlReturnValueMapping" @141 - Parent_View @140 - location (715, -89) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @142 - Parent_View @141 - location (1029, 831) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 406 - justify 0 - label "+wsdlReturnValueMapping" - pctDist -0.082016 - height 58 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E19A0A40354" - client @140 - supplier @139 - line_style 0 - label (object SegLabel @143 - Parent_View @141 - location (1334, 902) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 68 - justify 0 - label "0..1" - pctDist 0.683353 - height 40 - orientation 1) - label (object SegLabel @144 - Parent_View @141 - location (1239, 899) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 48 - justify 0 - label "{5}" - pctDist 0.459699 - height 64 - orientation 1)) - (object RoleView "$UNNAMED$31" @145 - Parent_View @140 - location (715, -89) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E19A0A4035E" - client @140 - supplier @130 - line_style 0 - label (object SegLabel @146 - Parent_View @145 - location (739, 631) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.898596 - height 52 - orientation 1)))) - (object AssociationViewNew "$UNNAMED$32" @147 - location (1776, 1360) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E19A121008E" - roleview_list (list RoleViews - (object RoleView "wsdlMessage" @148 - Parent_View @147 - location (116, -432) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @149 - Parent_View @148 - location (1817, 1560) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 230 - justify 0 - label "+wsdlMessage" - pctDist 0.798165 - height 41 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E19A1220017" - client @147 - supplier @138 - line_style 0 - label (object SegLabel @150 - Parent_View @148 - location (1723, 1584) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.896024 - height 54 - orientation 1) - label (object SegLabel @151 - Parent_View @148 - location (1669, 1584) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 48 - justify 0 - label "{2}" - pctDist 0.896024 - height 108 - orientation 1)) - (object RoleView "$UNNAMED$33" @152 - Parent_View @147 - location (116, -432) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E19A1220022" - client @147 - supplier @139 - line_style 0 - label (object SegLabel @153 - Parent_View @152 - location (1723, 1136) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.896024 - height 54 - orientation 0)))))) - (object ClassDiagram "MethodParamPartsMapping" - quid "3E19A4EF0073" - title "MethodParamPartsMapping" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 431 - items (list diagram_item_list - (object ClassView "Class" "Logical View::jaxrpcmap::MethodParamPartsMapping" @154 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (336, 672) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @154 - location (70, 564) - fill_color 13434879 - nlines 1 - max_width 532 - justify 0 - label "MethodParamPartsMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E16256A0171" - width 550 - height 236 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::WSDLMessage" @155 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (2064, 688) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @155 - location (1915, 646) - fill_color 13434879 - nlines 1 - max_width 298 - justify 0 - label "WSDLMessage") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1622E002BD" - width 316 - height 104 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::jaxrpcmap::WSDLMessageMapping" @156 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1232, 912) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @156 - location (935, 784) - fill_color 13434879 - nlines 1 - max_width 594 - justify 0 - label "WSDLMessageMapping") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E1625FA038B" - width 612 - height 276 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$34" @157 - location (768, 787) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E19A5D401CA" - roleview_list (list RoleViews - (object RoleView "wsdlMessageMapping" @158 - Parent_View @157 - location (431, 114) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @159 - Parent_View @158 - location (728, 852) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 348 - justify 0 - label "+wsdlMessageMapping" - pctDist -0.144660 - height 74 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E19A5D5008B" - client @157 - supplier @156 - line_style 0 - label (object SegLabel @160 - Parent_View @158 - location (924, 775) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.899024 - height 53 - orientation 0) - label (object SegLabel @161 - Parent_View @158 - location (893, 774) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 50 - justify 0 - label "{3}" - pctDist 0.720715 - height 46 - orientation 0)) - (object RoleView "$UNNAMED$35" @162 - Parent_View @157 - location (431, 114) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E19A5D5008D" - client @157 - supplier @154 - line_style 0 - label (object SegLabel @163 - Parent_View @162 - location (642, 700) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.893115 - height 53 - orientation 1)))) - (object AssociationViewNew "$UNNAMED$36" @164 - location (1721, 779) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E19A5DB0011" - roleview_list (list RoleViews - (object RoleView "wsdlMessage" @165 - Parent_View @164 - location (782, -113) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @166 - Parent_View @165 - location (1775, 698) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 230 - justify 0 - label "+wsdlMessage" - pctDist 0.378885 - height 65 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E19A5DB0383" - client @164 - supplier @155 - line_style 0 - label (object SegLabel @167 - Parent_View @165 - location (1882, 678) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.952522 - height 57 - orientation 0) - label (object SegLabel @168 - Parent_View @165 - location (1789, 656) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 3 - anchor_loc 1 - nlines 1 - max_width 50 - justify 0 - label "{1}" - pctDist 0.512327 - height 102 - orientation 0)) - (object RoleView "$UNNAMED$37" @169 - Parent_View @164 - location (782, -113) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E19A5DB038E" - client @164 - supplier @156 - line_style 0 - label (object SegLabel @170 - Parent_View @169 - location (1573, 874) - font (object Font - size 8 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 30 - justify 0 - label "1" - pctDist 0.892489 - height 54 - orientation 0)))))))) diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/jca1_0.cat b/plugins/org.eclipse.jst.j2ee.core/rose/jca1_0.cat deleted file mode 100644 index 63e0bf170..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/jca1_0.cat +++ /dev/null @@ -1,4353 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Class_Category "jca"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "jca.xmi"))
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Jca")))
- quid "3C60904200BB"
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "Connector"
- quid "3C609091010F"
- documentation
-|The connector element is the root element of the deployment descriptor for the resource adapter. This element includes general information - vendor name, version, specification version supported, icon - about the resource adapter module. It also includes information specific to the implementation of the resource adapter library as specified through the element resourceadapter.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023B0790134"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "vendorName"
- quid "3C6090F3021E"
- documentation
-|Specifies the name of resource adapter provider vendor.
-|Example: Wombat Corp.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "specVersion"
- quid "3C6090FC019F"
- documentation
-|Specifies the version of the connector architecture specification that is supported by this resource adapter. This information enables deployer to configure the resource adapter to support deployment and runtime requirements of the corresponding connector architecture specification.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "eisType"
- quid "3C6091000123"
- documentation
-|Contains information about the type of the EIS. For example, the type of an EIS can be product name of EIS independent of any version info.
-|
-|This helps in identifying EIS instances that can be used with
-|this resource adapter.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "version"
- quid "3C609106010D"
- documentation
-|Specifies a string-based version of the resource adapter from the resource adapter provider.
-|
-|Example: 1.5
-
- type "String"
- exportControl "Public")))
- (object Class "ResourceAdapter"
- quid "3C60912A02A9"
- documentation
-|Specifies information about the resource adapter. The information includes fully-qualified names of class/interfaces required as part of the connector architecture specified contracts, level of transaction support provided, configurable properties for ManagedConnectionFactory instances, one or more authentication mechanisms supported and additional
-|required security permissions.
-|
-|If there is no authentication-mechanism specified as part of
-|resource adapter element then the resource adapter does not
-|support any standard security authentication mechanisms as part
-|of security contract. The application server ignores the security
-|part of the system contracts in this case.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "managedConnectionFactoryClass"
- quid "3C60936003DA"
- documentation
-|@version J2EE1.4 deprecated, becomes outboundResourceAdapter.connectionDefinitions.managedConnectionFactoryClass
-|Specifies the fully qualified name of the Java class that implements the javax.resource.spi.Managed-ConnectionFactory interface. This Java class is provided as part of resource adapter's implementation of connector architecture specified contracts.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "connectionFactoryInterface"
- quid "3C60936C00C0"
- documentation
-|@version J2EE1.4 deprecated, becomes outboundResourceAdapter.connectionDefinitions.connectionFactoryInterface
-|Specifies the fully-qualified name of the ConnectionFactory interface supported by the resource adapter.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "connectionFactoryImplClass"
- quid "3C609375013B"
- documentation
-|@version J2EE1.4 deprecated, becomes outboundResourceAdapter.connectionDefinitions.connectionFactoryImplClass
-|Specifies the fully-qualified name of the ConnectionFactory class that implements resource adapter specific ConnectionFactory interface.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "connectionInterface"
- quid "3C60937E021A"
- documentation "@version J2EE1.4 deprecated, becomes outboundResourceAdapter.connectionDefinitions.connectionInterface"
- type "String"
- exportControl "Public")
- (object ClassAttribute "connectionImplClass"
- quid "3C60939503D6"
- documentation
-|@version J2EE1.4 deprecated, becomes outboundResourceAdapter.connectionDefinitions.connectionImplClass
-|Specifies the fully-qualified name of the Connection interface supported by the resource adapter.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "transactionSupport"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3C60939F03DA"
- documentation
-|@version J2EE1.4 deprecated, becomes outboundResourceAdapter.transactionSupport
-|The transaction-support element specifies the level of transaction
-|support provided by the resource adapter.
-|The value of transaction-support must be one of the following:
-| NoTransaction
-| LocalTransaction
-| XATransaction
-
- type "TransactionSupportKind"
- quidu "3C6098C80394"
- exportControl "Public")
- (object ClassAttribute "reauthenticationSupport"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3C6093A8031F"
- documentation
-|@version J2EE1.4 deprecated, becomes outboundResourceAdapter.reauthenticationSupport
-|Specifies whether the resource adapter implementation supports re-authentication of existing Managed-Connection instance. Note that this information is for the resource adapter implementation and not for the underlying EIS instance.
-
- type "boolean"
- exportControl "Public")
- (object ClassAttribute "resourceAdapterClass"
- quid "3E4AAD3302DC"
- documentation
-|The element resourceadapter-class specifies the
-| fully qualified name of a Java class that implements
-| the javax.resource.spi.ResourceAdapter
-| interface. This Java class is provided as part of
-| resource adapter's implementation of connector
-| architecture specified contracts. The implementation
-| of this class is required to be a JavaBean.
-
- type "String"
- exportControl "Public")))
- (object Class "AuthenticationMechanism"
- quid "3C60914003CE"
- documentation
-|The element authentication-mechanism specifies an authentication mechanism supported by the resource adapter. Note that this support is for the resource adapter and not for the underlying EIS instance. The optional description specifies any resource adapter specific requirement for the support of security contract and authentication mechanism.
-|
-|Note that BasicPassword mechanism type should support the
-|javax.resource.spi.security.PasswordCredential interface.
-|The Kerbv5 mechanism type should support the
-|javax.resource.spi.security.GenericCredential interface.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "3C6091760371"
- documentation "@version J2EE1.4 deprecated, becomes descriptions"
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "authenticationMechanism"
- quid "3E4AA98F0368"
- type "String"
- exportControl "Public")
- (object ClassAttribute "authenticationMechanismType"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3C6091820057"
- documentation
-|@deprecated See authenticationMechanism
-|
-|The authentication-mechanism-type specifies type of an authentication mechanism.
-|
-|The example values are:
-| - BasicPassword
-| - Kerbv5
-|
-|Any additional security mechanisms are outside the scope of the
-|Connector architecture specification.
-|
-
- type "AuthenticationMechanismType"
- quidu "3C6091C302A9"
- exportControl "Public")
- (object ClassAttribute "credentialInterface"
- quid "3C6091AA0380"
- documentation
-|Specifies the interface that the resource adapter implementation supports for the representation of the credentials. This element should be used by application server to find out the Credential interface it should use as part of the security contract.
-|
-|The possible values are:
-| javax.resource.spi.security.PasswordCredential
-| javax.resource.spi.security.GenericCredential
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "customAuthMechType"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isTransient"
- value TRUE))
- quid "3D99E208038A"
- documentation
-|@deprecated
-|This is an internal variable used to store the AthenticationMechanismType when it is something other than BasicPassword or Kerbv5. AuthenticationMecanismType is set to 'Custom' in those cases. This attribute should not be used by runtime. It is only used by the writer to write back out the custom AuthenticationMechanismType string in the case of custom AuthenticationMechanismType's.
-|This variable is internal, used only by the reader/writer classes, and can change or disappear without notice.
-
- type "String"
- exportControl "Public")))
- (object Class "AuthenticationMechanismType"
- quid "3C6091C302A9"
- documentation
-|@version J2EE1.4
-|BasicPassword=0
-|Kerbv5=1
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "BasicPassword"
- quid "3C6091D000DC"
- exportControl "Public")
- (object ClassAttribute "Kerbv5"
- quid "3C6091D5011F"
- exportControl "Public")))
- (object Class "ConfigProperty"
- quid "3C60922C0188"
- documentation
-|The config property contains a declaration of a single
-|configuration property for a ManagedConnectionFactory instance.
-|
-|Each ManagedConnectionFactory instance creates connections to a specific EIS instance based on the properties configured on the ManagedConnectionFactory instance. The configurable properties are specified only once in the deployment descriptor, even though a resource adapter can be used to configure multiple ManagedConnnection-Factory instances (that create connections to different instances of the same EIS).
-|
-|The declaration consists of an optional description, name, type
-|and an optional value of the configuration property. If the resource
-|adapter provider does not specify a value than the deployer is
-|responsible for providing a valid value for a configuration property.
-|
-|Any bounds or well-defined values of properties should be described in the description.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "3C60923203B7"
- documentation "@version J2EE1.4 deprecated, becomes descriptions"
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "name"
- quid "3C60923F0199"
- documentation
-|Contains the name of a configuration property.
-|
-|The connector architecture defines a set of well-defined properties all of type java.lang.String. These are as follows:
-|
-| ServerName
-| PortNumber
-| UserName
-| Password
-| ConnectionURL
-|
-|A resource adapter provider can extend this property set to include properties specific to the resource adapter and its underlying EIS.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "type"
- quid "3C6092450198"
- documentation
-|Contains the fully qualified Java type of a configuration property as required by ManagedConnection-Factory instance.
-|
-|The following are the legal values of config-property-type:
-| java.lang.Boolean, java.lang.String, java.lang.Integer,
-| java.lang.Double, java.lang.Byte, java.lang.Short,
-| java.lang.Long, java.lang.Float, java.lang.Character
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "value"
- quid "3C60924802DD"
- documentation
-|The element config-property-value contains the value
-| of a configuration entry. Note, it is possible for a
-| resource adapter deployer to override this
-| configuration information during deployment.
-|
-| Example:
-| <config-property-value>WombatServer</config-property-value>
-
- stereotype "0..1"
- type "String"
- exportControl "Public")))
- (object Class "SecurityPermission"
- quid "3C6093C100F4"
- documentation
-|Specifies a security permission that is required by the resource adapter code.
-|
-|The security permission listed in the deployment descriptor are ones that are different from those required by the default permission set as specified in the connector specification. The optional description can mention specific reason that resource adapter requires a given security permission.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "3C6097E90162"
- documentation "@version J2EE1.4 deprecated, becomes descriptions"
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "specification"
- quid "3C6097F503CC"
- documentation
-|The element permission-spec specifies a security permission based on the Security policy file syntax.
-|
-
- type "String"
- exportControl "Public")))
- (object Class "License"
- quid "3C609529008E"
- documentation "Specifies licensing requirements for the resource adapter module. Specifies whether a license is required to deploy and use this resource adapter, and an optional description of the licensing terms (examples: duration of license, number of connection restrictions)."
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "3C60953E0084"
- documentation
-|@deprecated Replaced with descriptions
-|The description is used to provide text describing the license.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "required"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3C60959F017E"
- type "boolean"
- exportControl "Public")))
- (object Class "TransactionSupportKind"
- quid "3C6098C80394"
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "NoTransaction"
- quid "3C6098D201FE"
- exportControl "Public")
- (object ClassAttribute "LocalTransaction"
- quid "3C6098D60235"
- exportControl "Public")
- (object ClassAttribute "XATransaction"
- quid "3C6098DB0233"
- exportControl "Public")))
- (object Class "InboundResourceAdapter"
- quid "3E4AA1DD0257"
- documentation
-|@version J2EE1.4
-|The inbound-resourceadapterType specifies information
-|about an inbound resource adapter. This contains information
-|specific to the implementation of the resource adapter
-|library as specified through the messageadapter element.
- )
- (object Class "OutboundResourceAdapter"
- quid "3E4AA1E6023C"
- documentation
-|@version J2EE1.4
-|The outbound-resourceadapterType specifies information about
-|an outbound resource adapter. The information includes fully
-|qualified names of classes/interfaces required as part of
-|the connector architecture specified contracts for
-|connection management, level of transaction support
-|provided, one or more authentication mechanisms supported
-|and additional required security permissions.
-|
-|If there is no authentication-mechanism specified as part of
-|resource adapter element then the resource adapter does not
-|support any standard security authentication mechanisms as
-|part of security contract. The application server ignores
-|the security part of the system contracts in this case.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "reauthenticationSupport"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3E4AA5BA003C"
- documentation
-|The element reauthentication-support specifies
-| whether the resource adapter implementation supports
-| re-authentication of existing Managed- Connection
-| instance. Note that this information is for the
-| resource adapter implementation and not for the
-| underlying EIS instance. This element must have
-| either a "true" or "false" value.
-
- type "boolean"
- exportControl "Public")
- (object ClassAttribute "transactionSupport"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3E4AA862026B"
- type "TransactionSupportKind"
- quidu "3C6098C80394"
- exportControl "Public")))
- (object Class "MessageAdapter"
- quid "3E4AA2D601F1"
- documentation
-|@version J2EE1.4
-|The messageadapterType specifies information about the
-|messaging capabilities of the resource adapter. This
-|contains information specific to the implementation of the
-|resource adapter library as specified through the
-|messagelistener element.
- )
- (object Class "ConnectionDefinition"
- quid "3E4AA4CF00F2"
- documentation
-|@version J2EE1.4
-|The connection-definitionType defines a set of connection
-|interfaces and classes pertaining to a particular connection
-|type. This also includes configurable properties for
-|ManagedConnectionFactory instances that may be produced out
-|of this set.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "managedConnectionFactoryClass"
- quid "3E4AA6C203AD"
- documentation
-|The element managedconnectionfactory-class specifies
-| the fully qualified name of the Java class that
-| implements the
-| javax.resource.spi.ManagedConnectionFactory interface.
-| This Java class is provided as part of resource
-| adapter's implementation of connector architecture
-| specified contracts. The implementation of this
-| class is required to be a JavaBean.
-|
-| Example:
-| <managedconnectionfactory-class>
-| com.wombat.ManagedConnectionFactoryImpl
-| </managedconnectionfactory-class>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "connectionFactoryInterface"
- quid "3E4AA7480388"
- documentation
-|The element connectionfactory-interface specifies
-| the fully qualified name of the ConnectionFactory
-| interface supported by the resource adapter.
-|
-| Example:
-| <connectionfactory-interface>com.wombat.ConnectionFactory
-| </connectionfactory-interface>
-|
-| OR
-|
-| <connectionfactory-interface>javax.resource.cci.ConnectionFactory
-| </connectionfactory-interface>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "connectionFactoryImplClass"
- quid "3E4AA7500180"
- documentation
-|The element connectionfactory-impl-class specifies
-| the fully qualified name of the ConnectionFactory
-| class that implements resource adapter
-| specific ConnectionFactory interface.
-|
-| Example:
-|
-| <connectionfactory-impl-class>com.wombat.ConnectionFactoryImpl
-| </connectionfactory-impl-class>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "connectionInterface"
- quid "3E4AA75E01BD"
- documentation
-|The connection-interface element specifies the fully
-| qualified name of the Connection interface supported
-| by the resource adapter.
-|
-| Example:
-|
-| <connection-interface>javax.resource.cci.Connection
-| </connection-interface>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "connectionImplClass"
- quid "3E4AA7770118"
- documentation
-|The connection-impl-classType specifies the fully
-| qualified name of the Connection class that
-| implements resource adapter specific Connection
-| interface. It is used by the connection-impl-class
-| elements.
-|
-| Example:
-|
-| <connection-impl-class>com.wombat.ConnectionImpl
-| </connection-impl-class>
-
- type "String"
- exportControl "Public")))
- (object Class "AdminObject"
- quid "3E4AADD6004B"
- documentation
-|@version J2EE1.4
-|The adminobjectType specifies information about an
-|administered object. Administered objects are specific to a
-|messaging style or message provider. This contains
-|information on the Java type of the interface implemented by
-|an administered object, its Java class name and its
-|configuration properties.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "adminObjectInterface"
- quid "3E4AB12B0188"
- documentation
-|The element adminobject-interface specifies the
-| fully qualified name of the Java type of the
-| interface implemented by an administered object.
-|
-| Example:
-| <adminobject-interface>javax.jms.Destination
-| </adminobject-interface>
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "adminObjectClass"
- quid "3E4AB1310000"
- documentation
-|The element adminobject-class specifies the fully
-| qualified Java class name of an administered object.
-|
-| Example:
-| <adminobject-class>com.wombat.DestinationImpl
-| </adminobject-class>
-
- type "String"
- exportControl "Public")))
- (object Class "MessageListener"
- quid "3E4AAEC102FC"
- documentation
-|@version J2EE1.4
-|The messagelistenerType specifies information about a
-|specific message listener supported by the messaging
-|resource adapter. It contains information on the Java type
-|of the message listener interface and an activation
-|specification.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "messageListenerType"
- quid "3E4AAEF901A8"
- documentation
-|The element messagelistener-type specifies the fully
-| qualified name of the Java type of a message
-| listener interface.
-|
-| Example:
-|
-| <messagelistener-type>javax.jms.MessageListener
-| </messagelistener-type>
-
- type "String"
- exportControl "Public")))
- (object Class "ActivationSpec"
- quid "3E4AAF320042"
- documentation
-|@version J2EE1.4
-|The activationspecType specifies an activation
-|specification. The information includes fully qualified
-|Java class name of an activation specification and a set of
-|required configuration property names.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "activationSpecClass"
- quid "3E4AAF9403AA"
- documentation
-|The element activationspec-class specifies the fully
-| qualified Java class name of the activation
-| specification class. This class must implement the
-| javax.resource.spi.ActivationSpec interface. The
-| implementation of this class is required to be a
-| JavaBean.
-|
-| Example:
-| <activationspec-class>com.wombat.ActivationSpecImpl
-| </activationspec-class>
-
- type "String"
- exportControl "Public")))
- (object Class "RequiredConfigPropertyType"
- quid "3E4AAFD601A6"
- documentation
-|@version J2EE1.4
-|The required-config-propertyType contains a declaration
-|of a single configuration property used for specifying a
-|required configuration property name. It is used
-|by required-config-property elements.
-|
-|Example:
-|
-|<required-config-property>Destination</required-config-property>
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "3E4AB01F01BF"
- type "String"
- exportControl "Public")))
- (object Association "$UNNAMED$0"
- quid "3C6093CC001E"
- roles (list role_list
- (object Role "securityPermissions"
- quid "3C6093CC0367"
- documentation "@deprecated"
- label "securityPermissions"
- supplier "Logical View::jca::SecurityPermission"
- quidu "3C6093C100F4"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$1"
- quid "3C6093CC0369"
- supplier "Logical View::jca::ResourceAdapter"
- quidu "3C60912A02A9"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$2"
- quid "3C6094120028"
- roles (list role_list
- (object Role "authenticationMechanisms"
- quid "3C6094120390"
- label "authenticationMechanisms"
- supplier "Logical View::jca::AuthenticationMechanism"
- quidu "3C60914003CE"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$3"
- quid "3C6094120392"
- supplier "Logical View::jca::ResourceAdapter"
- quidu "3C60912A02A9"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$4"
- quid "3C60944C00D6"
- roles (list role_list
- (object Role "configProperties"
- quid "3C60944D0196"
- label "configProperties"
- supplier "Logical View::jca::ConfigProperty"
- quidu "3C60922C0188"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$5"
- quid "3C60944D0198"
- supplier "Logical View::jca::ResourceAdapter"
- quidu "3C60912A02A9"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$6"
- quid "3C6095310180"
- roles (list role_list
- (object Role "license"
- quid "3C609532000E"
- documentation
-|Specifies licensing requirements for the resource adapter module. This element specifies whether a license is required to deploy and use this resource adapter, and an optional description of the licensing terms (examples: duration of license, number of
-|connection restrictions).
-
- label "license"
- supplier "Logical View::jca::License"
- quidu "3C609529008E"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$7"
- quid "3C6095320010"
- supplier "Logical View::jca::Connector"
- quidu "3C609091010F"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$8"
- quid "3C60998900C0"
- roles (list role_list
- (object Role "resourceAdapter"
- quid "3C60998902AB"
- label "resourceAdapter"
- supplier "Logical View::jca::ResourceAdapter"
- quidu "3C60912A02A9"
- client_cardinality (value cardinality "1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$9"
- quid "3C60998902B5"
- supplier "Logical View::jca::Connector"
- quidu "3C609091010F"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$10"
- quid "3E4AA3630302"
- roles (list role_list
- (object Role "outboundResourceAdapter"
- quid "3E4AA3650369"
- documentation
-|@version J2EE1.4
-|The connectionfactory-interface element content must be
-| unique in the outbound-resourceadapter. Multiple connection-definitions
-| can not use the same connectionfactory-type.
-
- label "outboundResourceAdapter"
- supplier "Logical View::jca::OutboundResourceAdapter"
- quidu "3E4AA1E6023C"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$11"
- quid "3E4AA365036B"
- supplier "Logical View::jca::ResourceAdapter"
- quidu "3C60912A02A9"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$12"
- quid "3E4AA4DC026E"
- roles (list role_list
- (object Role "connectionDefinitions"
- quid "3E4AA4DD005C"
- label "connectionDefinitions"
- supplier "Logical View::jca::ConnectionDefinition"
- quidu "3E4AA4CF00F2"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$13"
- quid "3E4AA4DD0066"
- supplier "Logical View::jca::OutboundResourceAdapter"
- quidu "3E4AA1E6023C"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$14"
- quid "3E4AA54400FB"
- roles (list role_list
- (object Role "authenticationMechanisms"
- quid "3E4AA545028D"
- label "authenticationMechanisms"
- supplier "Logical View::jca::AuthenticationMechanism"
- quidu "3C60914003CE"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$15"
- quid "3E4AA545028F"
- supplier "Logical View::jca::OutboundResourceAdapter"
- quidu "3E4AA1E6023C"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$16"
- quid "3E4AA6F20117"
- roles (list role_list
- (object Role "configProperties"
- quid "3E4AA6F30169"
- label "configProperties"
- supplier "Logical View::jca::ConfigProperty"
- quidu "3C60922C0188"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$17"
- quid "3E4AA6F30173"
- supplier "Logical View::jca::ConnectionDefinition"
- quidu "3E4AA4CF00F2"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$18"
- quid "3E4AADCD036A"
- roles (list role_list
- (object Role "inboundResourceAdapter"
- quid "3E4AADCF0312"
- documentation "@version J2EE1.4"
- label "inboundResourceAdapter"
- supplier "Logical View::jca::InboundResourceAdapter"
- quidu "3E4AA1DD0257"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$19"
- quid "3E4AADCF0314"
- supplier "Logical View::jca::ResourceAdapter"
- quidu "3C60912A02A9"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$20"
- quid "3E4AAE020320"
- roles (list role_list
- (object Role "adminObjects"
- quid "3E4AAE040160"
- documentation "@version J2EE1.4"
- label "adminObjects"
- supplier "Logical View::jca::AdminObject"
- quidu "3E4AADD6004B"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$21"
- quid "3E4AAE04016B"
- supplier "Logical View::jca::ResourceAdapter"
- quidu "3C60912A02A9"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$22"
- quid "3E4AAE38025F"
- roles (list role_list
- (object Role "messageAdapter"
- quid "3E4AAE390094"
- documentation
-|The messagelistener-type element content must be
-| unique in the messageadapter. Several messagelisteners
-| can not use the same messagelistener-type.
-
- label "messageAdapter"
- supplier "Logical View::jca::MessageAdapter"
- quidu "3E4AA2D601F1"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$23"
- quid "3E4AAE39009E"
- supplier "Logical View::jca::InboundResourceAdapter"
- quidu "3E4AA1DD0257"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$24"
- quid "3E4AAECC0077"
- roles (list role_list
- (object Role "messageListeners"
- quid "3E4AAECC03A2"
- label "messageListeners"
- supplier "Logical View::jca::MessageListener"
- quidu "3E4AAEC102FC"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$25"
- quid "3E4AAECC03A4"
- supplier "Logical View::jca::MessageAdapter"
- quidu "3E4AA2D601F1"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$26"
- quid "3E4AAF480011"
- roles (list role_list
- (object Role "activationSpec"
- quid "3E4AAF490103"
- label "activationSpec"
- supplier "Logical View::jca::ActivationSpec"
- quidu "3E4AAF320042"
- client_cardinality (value cardinality "1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$27"
- quid "3E4AAF490105"
- supplier "Logical View::jca::MessageListener"
- quidu "3E4AAEC102FC"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$28"
- quid "3E4AAFAA027F"
- roles (list role_list
- (object Role "requiredConfigProperties"
- quid "3E4AAFAB0349"
- label "requiredConfigProperties"
- supplier "Logical View::jca::RequiredConfigPropertyType"
- quidu "3E4AAFD601A6"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$29"
- quid "3E4AAFAB0353"
- supplier "Logical View::jca::ActivationSpec"
- quidu "3E4AAF320042"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$30"
- quid "3E4AB14A02B9"
- roles (list role_list
- (object Role "configProperties"
- quid "3E4AB14B0347"
- label "configProperties"
- supplier "Logical View::jca::ConfigProperty"
- quidu "3C60922C0188"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$31"
- quid "3E4AB14B0351"
- supplier "Logical View::jca::AdminObject"
- quidu "3E4AADD6004B"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$32"
- quid "3E4AA8A2001E"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4AA8A30033"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$33"
- quid "3E4AA8A3003D"
- supplier "Logical View::jca::AuthenticationMechanism"
- quidu "3C60914003CE"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$34"
- quid "3E4A9C86002A"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4A9C8603B0"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$35"
- quid "3E4A9C8603B2"
- supplier "Logical View::jca::License"
- quidu "3C609529008E"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$36"
- quid "3E4AAFEC01BC"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4AAFF40019"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$37"
- quid "3E4AAFF40024"
- supplier "Logical View::jca::RequiredConfigPropertyType"
- quidu "3E4AAFD601A6"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$38"
- quid "3E4AAB5A034A"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4AAB6100BF"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$39"
- quid "3E4AAB6100C9"
- supplier "Logical View::jca::ConfigProperty"
- quidu "3C60922C0188"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$40"
- quid "3E4AAA3202FE"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4AAA340012"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$41"
- quid "3E4AAA34001C"
- supplier "Logical View::jca::SecurityPermission"
- quidu "3C6093C100F4"
- is_aggregate TRUE))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "Connector Details"
- quid "3C60905E00E4"
- title "Connector Details"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 1808
- items (list diagram_item_list
- (object Label @1
- location (53, 44)
- font (object Font
- size 12
- face "Arial"
- bold TRUE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 1
- max_width 981
- label "JCA 1.5 Deployment Descriptor")
- (object NoteView @2
- location (871, 368)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (71, 187)
- fill_color 13434879
- nlines 7
- max_width 1565
- label
-|Deprecated: (Note: the deprecated version becomes volatile and gets implementation redirected into list with new J2EE type)
-|displayName replaced with displayNames:List<DisplayName>
-|description replaced with descriptions:List<DescriptionType>
-|smallIcon replaced with icons:List<IconType>
-|largeIcon replaced with icons:List<IconType>
-|version replaced with resourceVersion:String
- )
- line_color 3342489
- fill_color 13434879
- width 1625
- height 375)
- (object NoteView @3
- location (1350, 1628)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (843, 1516)
- fill_color 13434879
- nlines 4
- max_width 978
- label "The real XML tag for specVersion in JCA1.5 is <version>. In JCA1.0 it was <spec-version>. In other words, JCA1.5 version elements will deserialize into the specVersion attribute.")
- line_color 3342489
- fill_color 13434879
- width 1038
- height 237)
- (object NoteView @4
- location (2200, 356)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @4
- location (1709, 240)
- fill_color 13434879
- nlines 4
- max_width 946
- label
-|Deprecated: (Note: the deprecated version becomes volatile and gets implementation redirected into list version)
-|description replaced with descriptions:List<String>
- )
- line_color 3342489
- fill_color 13434879
- width 1006
- height 244)
- (object NoteView @5
- location (2421, 125)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @5
- location (1708, 34)
- fill_color 13434879
- nlines 3
- max_width 1390
- label "Many descriptive attributes have been changed to 'n' multiplicity to support localization of text and icons")
- line_color 3342489
- fill_color 13434879
- width 1450
- height 194)
- (object Label @6
- location (163, 2084)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 3
- max_width 894
- label
-|SEE "RESOURCEADAPTER DETAILS" DIAGRAM
- )
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @7
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1749, 973)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @7
- location (1571, 894)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 12632256
- quidu "3E4D451F01FB"
- width 374
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jca::ResourceAdapter" @8
- ShowCompartmentStereotypes TRUE
- IncludeOperation TRUE
- location (577, 1967)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @8
- location (402, 1916)
- fill_color 13434879
- nlines 1
- max_width 350
- justify 0
- label "ResourceAdapter")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C60912A02A9"
- width 368
- height 126
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jca::Connector" @9
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (616, 1059)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @9
- location (309, 803)
- fill_color 13434879
- nlines 1
- max_width 614
- justify 0
- label "Connector")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C609091010F"
- compartment (object Compartment
- Parent_View @9
- location (309, 864)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 428)
- width 632
- height 536
- annotation 8
- autoResize TRUE)
- (object AttachView "" @10
- stereotype TRUE
- line_color 3342489
- client @2
- supplier @9
- vertices (list Points
- (801, 555)
- (714, 790))
- line_style 0)
- (object AttachView "" @11
- stereotype TRUE
- line_color 3342489
- client @3
- supplier @9
- vertices (list Points
- (1198, 1509)
- (932, 1303))
- line_style 0)
- (object AssociationViewNew "$UNNAMED$8" @12
- location (522, 1615)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3C60998900C0"
- roleview_list (list RoleViews
- (object RoleView "resourceAdapter" @13
- Parent_View @12
- location (-22, 1023)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @14
- Parent_View @13
- location (325, 1688)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 332
- justify 0
- label "+resourceAdapter"
- pctDist 0.256881
- height 198
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3C60998902AB"
- client @12
- supplier @8
- vertices (list Points
- (522, 1615)
- (522, 1904))
- line_style 3
- origin_attachment (522, 1615)
- terminal_attachment (522, 1904)
- label (object SegLabel @15
- Parent_View @13
- location (561, 1715)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.350877
- height 39
- orientation 0))
- (object RoleView "$UNNAMED$9" @16
- Parent_View @12
- location (-22, 1023)
- stereotype TRUE
- line_color 3342489
- quidu "3C60998902B5"
- client @12
- supplier @9
- vertices (list Points
- (522, 1615)
- (522, 1326))
- line_style 3
- origin_attachment (522, 1615)
- terminal_attachment (522, 1326))))
- (object ClassView "Class" "Logical View::common::Description" @17
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2624, 706)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @17
- location (2480, 552)
- fill_color 13434879
- nlines 2
- max_width 288
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @17
- location (2480, 657)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 285)
- width 306
- height 332
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jca::License" @18
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1810, 700)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @18
- location (1522, 594)
- fill_color 13434879
- nlines 1
- max_width 576
- justify 0
- label "License")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C609529008E"
- compartment (object Compartment
- Parent_View @18
- location (1522, 655)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 572)
- width 594
- height 236
- annotation 8
- autoResize TRUE)
- (object AttachView "" @19
- stereotype TRUE
- line_color 3342489
- client @4
- supplier @18
- vertices (list Points
- (2059, 478)
- (1942, 581))
- line_style 0)
- (object AssociationViewNew "$UNNAMED$6" @20
- location (1222, 796)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3C6095310180"
- roleview_list (list RoleViews
- (object RoleView "license" @21
- Parent_View @20
- location (870, 348)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @22
- Parent_View @21
- location (1354, 758)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 151
- justify 0
- label "+license"
- pctDist 0.457447
- height 39
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C609532000E"
- client @20
- supplier @18
- vertices (list Points
- (1222, 796)
- (1513, 796))
- line_style 3
- origin_attachment (1222, 796)
- terminal_attachment (1513, 796)
- label (object SegLabel @23
- Parent_View @21
- location (1466, 850)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.841549
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$7" @24
- Parent_View @20
- location (870, 348)
- stereotype TRUE
- line_color 3342489
- quidu "3C6095320010"
- client @20
- supplier @9
- vertices (list Points
- (1222, 796)
- (932, 796))
- line_style 3
- origin_attachment (1222, 796)
- terminal_attachment (932, 796))))
- (object AssociationViewNew "$UNNAMED$34" @25
- location (2289, 653)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4A9C86002A"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @26
- Parent_View @25
- location (473, -50)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @27
- Parent_View @26
- location (2354, 604)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.356886
- height 50
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4A9C8603B0"
- client @25
- supplier @17
- vertices (list Points
- (2289, 653)
- (2471, 653))
- line_style 3
- origin_attachment (2289, 653)
- terminal_attachment (2471, 653)
- label (object SegLabel @28
- Parent_View @26
- location (2429, 704)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.767123
- height 51
- orientation 1))
- (object RoleView "$UNNAMED$35" @29
- Parent_View @25
- location (473, -50)
- stereotype TRUE
- line_color 3342489
- quidu "3E4A9C8603B2"
- client @25
- supplier @18
- vertices (list Points
- (2289, 653)
- (2107, 653))
- line_style 3
- origin_attachment (2289, 653)
- terminal_attachment (2107, 653))))))
- (object ClassDiagram "Resource Adapter Details"
- quid "3E4AB21901B3"
- title "Resource Adapter Details"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 7305
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::jca::AuthenticationMechanismType" @30
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3365, 1379)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @30
- location (3070, 1295)
- fill_color 13434879
- nlines 1
- max_width 590
- justify 0
- label "AuthenticationMechanismType")
- stereotype (object ItemLabel
- Parent_View @30
- location (3070, 1245)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 590
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C6091C302A9"
- compartment (object Compartment
- Parent_View @30
- location (3070, 1356)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 340)
- width 608
- height 292
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jca::TransactionSupportKind" @31
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3348, 2338)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @31
- location (3118, 2229)
- fill_color 13434879
- nlines 1
- max_width 460
- justify 0
- label "TransactionSupportKind")
- stereotype (object ItemLabel
- Parent_View @31
- location (3118, 2179)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 460
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C6098C80394"
- compartment (object Compartment
- Parent_View @31
- location (3118, 2290)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 365)
- width 478
- height 342
- annotation 8
- autoResize TRUE)
- (object Label @32
- location (53, 44)
- font (object Font
- size 12
- face "Arial"
- bold TRUE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 1
- max_width 981
- label
-|JCA 1.5 Deployment Descriptor
-|Resource Adapter Details
- )
- (object NoteView @33
- location (875, 362)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @33
- location (75, 181)
- fill_color 13434879
- nlines 7
- max_width 1565
- label
-|Deprecated: (Note: the deprecated version becomes volatile and gets implementation redirected into list with new J2EE type)
-|displayName replaced with displayNames:List<DisplayName>
-|description replaced with descriptions:List<DescriptionType>
-|smallIcon replaced with icons:List<IconType>
-|largeIcon replaced with icons:List<IconType>
-|version replaced with resourceVersion:String
- )
- line_color 3342489
- fill_color 13434879
- width 1625
- height 375)
- (object NoteView @34
- location (2200, 356)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @34
- location (1709, 240)
- fill_color 13434879
- nlines 4
- max_width 946
- label
-|Deprecated: (Note: the deprecated version becomes volatile and gets implementation redirected into list version)
-|description replaced with descriptions:List<String>
- )
- line_color 3342489
- fill_color 13434879
- width 1006
- height 244)
- (object NoteView @35
- location (2421, 125)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @35
- location (1708, 34)
- fill_color 13434879
- nlines 3
- max_width 1390
- label "Many descriptive attributes have been changed to 'n' multiplicity to support localization of text and icons")
- line_color 3342489
- fill_color 13434879
- width 1450
- height 194)
- (object NoteView @36
- location (4017, 1845)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @36
- location (3782, 1729)
- fill_color 13434879
- nlines 4
- max_width 434
- label "Need to check collapseWhitespace attribute")
- line_color 3342489
- fill_color 13434879
- width 494
- height 244)
- (object NoteView @37
- location (2132, 2082)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @37
- location (1903, 1945)
- fill_color 13434879
- nlines 5
- max_width 422
- label
-|Need basic type, AnyURI (place this in same package as new Password--maybe "common-datatypes")
- )
- line_color 3342489
- fill_color 13434879
- width 482
- height 287)
- (object NoteView @38
- location (1175, 4758)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @38
- location (178, 4514)
- fill_color 13434879
- nlines 9
- max_width 1959
- label
-|managedConnectionFactoryClass is replaced by ra.outboundRA.connectionDefinitions.managedConnectionFactoryClass
-|connectionFactoryInterface is replaced by ra.outboundRA.connectionDefinitions.connectionFactoryInterface
-|connectionFactoryImplClass is replaced by ra.outboundRA.connectionDefinitions.connectionFactoryImplClass
-|transactionSupport is replaced by ra.outboundRA.transactionSupport
-|connectionInterface is replaced by ra.outboundRA.connectionDefinitions.connectionInterface
-|connectionImplClass is replaced by ra.outboundRA.connectionDefinitions.connectionImplClass
- )
- line_color 3342489
- fill_color 13434879
- width 2019
- height 500)
- (object NoteView @39
- location (1156, 5175)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @39
- location (34, 5097)
- fill_color 13434879
- nlines 3
- max_width 2209
- label "Readers will need to determine if the string type can be converted to the datatype specified. See the spec. Or maybe instead provide helpers to retrieve the value converted to the specified type?")
- line_color 3342489
- fill_color 13434879
- width 2269
- height 169)
- (object Label @40
- location (244, 2353)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 5
- max_width 488
- label "There are some uniqueness constraints that must be validated here.")
- (object NoteView @41
- location (3386, 625)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @41
- location (2717, 522)
- fill_color 13434879
- nlines 4
- max_width 1303
- label
-|Deprecations
-|customAuthMechType replaced by authenticationMechanism
-|authenticationMechanismType replaced by authenticationMechanism
-|description replaced with descriptions:List<DescriptionType>
- )
- line_color 3342489
- fill_color 13434879
- width 1363
- height 219)
- (object ClassView "Class" "Logical View::jca::MessageListener" @42
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2774, 3537)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @42
- location (2477, 3456)
- fill_color 13434879
- nlines 1
- max_width 594
- justify 0
- label "MessageListener")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4AAEC102FC"
- compartment (object Compartment
- Parent_View @42
- location (2477, 3517)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 591)
- width 612
- height 186
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jca::MessageAdapter" @43
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2792, 3139)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @43
- location (2625, 3088)
- fill_color 13434879
- nlines 1
- max_width 334
- justify 0
- label "MessageAdapter")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4AA2D601F1"
- width 352
- height 126
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$24" @44
- location (2746, 3322)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AAECC0077"
- roleview_list (list RoleViews
- (object RoleView "messageListeners" @45
- Parent_View @44
- location (-31, -446)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @46
- Parent_View @45
- location (2534, 3402)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 367
- justify 0
- label "+messageListeners"
- pctDist 0.666667
- height 213
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAECC03A2"
- client @44
- supplier @42
- vertices (list Points
- (2746, 3322)
- (2746, 3444))
- line_style 3
- origin_attachment (2746, 3322)
- terminal_attachment (2746, 3444)
- label (object SegLabel @47
- Parent_View @45
- location (2838, 3405)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.677778
- height 92
- orientation 0))
- (object RoleView "$UNNAMED$25" @48
- Parent_View @44
- location (-31, -446)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAECC03A4"
- client @44
- supplier @43
- vertices (list Points
- (2746, 3322)
- (2746, 3201))
- line_style 3
- origin_attachment (2746, 3322)
- terminal_attachment (2746, 3201))))
- (object ClassView "Class" "Logical View::jca::ActivationSpec" @49
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2749, 3959)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @49
- location (2468, 3878)
- fill_color 13434879
- nlines 1
- max_width 562
- justify 0
- label "ActivationSpec")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4AAF320042"
- compartment (object Compartment
- Parent_View @49
- location (2468, 3939)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 560)
- width 580
- height 186
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$26" @50
- location (2753, 3747)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AAF480011"
- roleview_list (list RoleViews
- (object RoleView "activationSpec" @51
- Parent_View @50
- location (-87, -371)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @52
- Parent_View @51
- location (2578, 3835)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 294
- justify 0
- label "+activationSpec"
- pctDist 0.741657
- height 176
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAF490103"
- client @50
- supplier @49
- vertices (list Points
- (2753, 3747)
- (2753, 3866))
- line_style 3
- origin_attachment (2753, 3747)
- terminal_attachment (2753, 3866)
- label (object SegLabel @53
- Parent_View @51
- location (2801, 3838)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.761905
- height 48
- orientation 0))
- (object RoleView "$UNNAMED$27" @54
- Parent_View @50
- location (-87, -371)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAF490105"
- client @50
- supplier @42
- vertices (list Points
- (2753, 3747)
- (2753, 3629))
- line_style 3
- origin_attachment (2753, 3747)
- terminal_attachment (2753, 3629))))
- (object ClassView "Class" "Logical View::jca::ConnectionDefinition" @55
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3021, 1915)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @55
- location (2618, 1734)
- fill_color 13434879
- nlines 1
- max_width 806
- justify 0
- label "ConnectionDefinition")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4AA4CF00F2"
- compartment (object Compartment
- Parent_View @55
- location (2618, 1795)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 6
- max_width 803)
- width 824
- height 386
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jca::InboundResourceAdapter" @56
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1720, 3126)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @56
- location (1475, 3075)
- fill_color 13434879
- nlines 1
- max_width 490
- justify 0
- label "InboundResourceAdapter")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4AA1DD0257"
- width 508
- height 126
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$22" @57
- location (2295, 3134)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AAE38025F"
- roleview_list (list RoleViews
- (object RoleView "messageAdapter" @58
- Parent_View @57
- location (317, -634)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @59
- Parent_View @58
- location (2431, 3090)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 340
- justify 0
- label "+messageAdapter"
- pctDist 0.425000
- height 45
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAE390094"
- client @57
- supplier @43
- vertices (list Points
- (2295, 3134)
- (2616, 3134))
- line_style 3
- origin_attachment (2295, 3134)
- terminal_attachment (2616, 3134)
- label (object SegLabel @60
- Parent_View @58
- location (2567, 3179)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.851803
- height 45
- orientation 1))
- (object RoleView "$UNNAMED$23" @61
- Parent_View @57
- location (317, -634)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @62
- Parent_View @61
- location (2038, 3093)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAE39009E"
- client @57
- supplier @56
- vertices (list Points
- (2295, 3134)
- (1974, 3134))
- line_style 3
- origin_attachment (2295, 3134)
- terminal_attachment (1974, 3134))))
- (object ClassView "Class" "Logical View::jca::AdminObject" @63
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1026, 4060)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @63
- location (737, 3954)
- fill_color 13434879
- nlines 1
- max_width 578
- justify 0
- label "AdminObject")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4AADD6004B"
- compartment (object Compartment
- Parent_View @63
- location (737, 4015)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 575)
- width 596
- height 236
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jca::RequiredConfigPropertyType" @64
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3798, 3913)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @64
- location (3527, 3832)
- fill_color 13434879
- nlines 1
- max_width 542
- justify 0
- label "RequiredConfigPropertyType")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4AAFD601A6"
- compartment (object Compartment
- Parent_View @64
- location (3527, 3893)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 294)
- width 560
- height 186
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$28" @65
- location (3278, 3984)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AAFAA027F"
- roleview_list (list RoleViews
- (object RoleView "requiredConfigProperties" @66
- Parent_View @65
- location (422, -597)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @67
- Parent_View @66
- location (3312, 3938)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 468
- justify 0
- label "+requiredConfigProperties"
- pctDist 0.145695
- height 47
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAFAB0349"
- client @65
- supplier @64
- vertices (list Points
- (3278, 3984)
- (3518, 3984))
- line_style 3
- origin_attachment (3278, 3984)
- terminal_attachment (3518, 3984)
- label (object SegLabel @68
- Parent_View @66
- location (3470, 4032)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.801324
- height 48
- orientation 1))
- (object RoleView "$UNNAMED$29" @69
- Parent_View @65
- location (422, -597)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAFAB0353"
- client @65
- supplier @49
- vertices (list Points
- (3278, 3984)
- (3039, 3984))
- line_style 3
- origin_attachment (3278, 3984)
- terminal_attachment (3039, 3984))))
- (object ClassView "Class" "Logical View::jca::ConfigProperty" @70
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (346, 3777)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @70
- location (58, 3621)
- fill_color 13434879
- nlines 1
- max_width 576
- justify 0
- label "ConfigProperty")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C60922C0188"
- compartment (object Compartment
- Parent_View @70
- location (58, 3682)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 572)
- width 594
- height 336
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$16" @71
- location (723, 1903)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AA6F20117"
- roleview_list (list RoleViews
- (object RoleView "configProperties" @72
- Parent_View @71
- location (-2159, -1529)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @73
- Parent_View @72
- location (578, 3385)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 314
- justify 0
- label "+configProperties"
- pctDist 0.881853
- height 36
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA6F30169"
- client @71
- supplier @70
- vertices (list Points
- (723, 1903)
- (542, 1903)
- (542, 3609))
- line_style 3
- origin_attachment (723, 1903)
- terminal_attachment (542, 3609)
- label (object SegLabel @74
- Parent_View @72
- location (596, 3419)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$17" @75
- Parent_View @71
- location (-2159, -1529)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA6F30173"
- client @71
- supplier @55
- vertices (list Points
- (723, 1903)
- (2609, 1903))
- line_style 3
- origin_attachment (723, 1903)
- terminal_attachment (2609, 1903))))
- (object AttachView "" @76
- stereotype TRUE
- line_color 3342489
- client @39
- supplier @70
- vertices (list Points
- (125, 5090)
- (125, 3944))
- line_style 3
- origin_attachment (125, 5090)
- terminal_attachment (125, 3944))
- (object AssociationViewNew "$UNNAMED$30" @77
- location (491, 4071)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AB14A02B9"
- roleview_list (list RoleViews
- (object RoleView "configProperties" @78
- Parent_View @77
- location (-404, -143)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @79
- Parent_View @78
- location (546, 4032)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 314
- justify 0
- label "+configProperties"
- pctDist -0.240876
- height 40
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AB14B0347"
- client @77
- supplier @70
- vertices (list Points
- (491, 4071)
- (381, 4071)
- (381, 3945))
- line_style 3
- origin_attachment (491, 4071)
- terminal_attachment (381, 3945)
- label (object SegLabel @80
- Parent_View @78
- location (435, 3969)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$31" @81
- Parent_View @77
- location (-404, -143)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AB14B0351"
- client @77
- supplier @63
- vertices (list Points
- (491, 4071)
- (728, 4071))
- line_style 3
- origin_attachment (491, 4071)
- terminal_attachment (728, 4071))))
- (object ClassView "Class" "Logical View::jca::SecurityPermission" @82
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1781, 2528)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @82
- location (1494, 2422)
- fill_color 13434879
- nlines 1
- max_width 574
- justify 0
- label "SecurityPermission")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C6093C100F4"
- compartment (object Compartment
- Parent_View @82
- location (1494, 2483)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 572)
- width 592
- height 236
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jca::OutboundResourceAdapter" @83
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1881, 1657)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @83
- location (1450, 1551)
- fill_color 13434879
- nlines 1
- max_width 862
- justify 0
- label "OutboundResourceAdapter")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4AA1E6023C"
- compartment (object Compartment
- Parent_View @83
- location (1450, 1612)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 860)
- width 880
- height 236
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$12" @84
- location (2581, 1622)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AA4DC026E"
- roleview_list (list RoleViews
- (object RoleView "connectionDefinitions" @85
- Parent_View @84
- location (925, -1807)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @86
- Parent_View @85
- location (2648, 1580)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 420
- justify 0
- label "+connectionDefinitions"
- pctDist 0.262548
- height 43
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA4DD005C"
- client @84
- supplier @55
- vertices (list Points
- (2581, 1622)
- (2740, 1622)
- (2740, 1722))
- line_style 3
- origin_attachment (2581, 1622)
- terminal_attachment (2740, 1722)
- label (object SegLabel @87
- Parent_View @85
- location (2694, 1656)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.439516
- height 34
- orientation 1))
- (object RoleView "$UNNAMED$13" @88
- Parent_View @84
- location (925, -1807)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA4DD0066"
- client @84
- supplier @83
- vertices (list Points
- (2581, 1622)
- (2321, 1622))
- line_style 3
- origin_attachment (2581, 1622)
- terminal_attachment (2321, 1622))))
- (object ClassView "Class" "Logical View::jca::ResourceAdapter" @89
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (612, 1045)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @89
- location (181, 789)
- fill_color 13434879
- nlines 1
- max_width 862
- justify 0
- label "ResourceAdapter")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C60912A02A9"
- compartment (object Compartment
- Parent_View @89
- location (181, 850)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 9
- max_width 860)
- width 880
- height 536
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$10" @90
- location (1060, 1643)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AA3630302"
- roleview_list (list RoleViews
- (object RoleView "outboundResourceAdapter" @91
- Parent_View @90
- location (483, -324)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @92
- Parent_View @91
- location (1168, 1741)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 500
- justify 0
- label "+outboundResourceAdapter"
- pctDist 0.283465
- height 98
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA3650369"
- client @90
- supplier @83
- vertices (list Points
- (1060, 1643)
- (1441, 1643))
- line_style 3
- origin_attachment (1060, 1643)
- terminal_attachment (1441, 1643)
- label (object SegLabel @93
- Parent_View @91
- location (1403, 1697)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$11" @94
- Parent_View @90
- location (483, -324)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA365036B"
- client @90
- supplier @89
- vertices (list Points
- (1060, 1643)
- (1000, 1643)
- (1000, 1313))
- line_style 3
- origin_attachment (1060, 1643)
- terminal_attachment (1000, 1313))))
- (object AttachView "" @95
- stereotype TRUE
- line_color 3342489
- client @38
- supplier @89
- vertices (list Points
- (291, 4507)
- (291, 1313))
- line_style 3
- origin_attachment (291, 4507)
- terminal_attachment (291, 1313))
- (object AssociationViewNew "$UNNAMED$18" @96
- location (834, 2535)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AADCD036A"
- roleview_list (list RoleViews
- (object RoleView "inboundResourceAdapter" @97
- Parent_View @96
- location (257, 568)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @98
- Parent_View @97
- location (1199, 3079)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 489
- justify 0
- label "+inboundResourceAdapter"
- pctDist 0.781739
- height 46
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AADCF0312"
- client @96
- supplier @56
- vertices (list Points
- (834, 2535)
- (834, 3124)
- (1466, 3124))
- line_style 3
- origin_attachment (834, 2535)
- terminal_attachment (1466, 3124)
- label (object SegLabel @99
- Parent_View @97
- location (1343, 3178)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$19" @100
- Parent_View @96
- location (257, 568)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AADCF0314"
- client @96
- supplier @89
- vertices (list Points
- (834, 2535)
- (834, 1313))
- line_style 3
- origin_attachment (834, 2535)
- terminal_attachment (834, 1313))))
- (object AssociationViewNew "$UNNAMED$20" @101
- location (787, 2626)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAE020320"
- roleview_list (list RoleViews
- (object RoleView "adminObjects" @102
- Parent_View @101
- location (210, 659)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @103
- Parent_View @102
- location (963, 3896)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 279
- justify 0
- label "+adminObjects"
- pctDist 0.966472
- height 176
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAE040160"
- client @101
- supplier @63
- vertices (list Points
- (787, 2626)
- (787, 3941))
- line_style 3
- origin_attachment (787, 2626)
- terminal_attachment (787, 3941)
- label (object SegLabel @104
- Parent_View @102
- location (728, 3913)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.978863
- height 60
- orientation 1))
- (object RoleView "$UNNAMED$21" @105
- Parent_View @101
- location (210, 659)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAE04016B"
- client @101
- supplier @89
- vertices (list Points
- (787, 2626)
- (787, 1312))
- line_style 3
- origin_attachment (787, 2626)
- terminal_attachment (787, 1312))))
- (object AssociationViewNew "$UNNAMED$4" @106
- location (244, 2461)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3C60944C00D6"
- roleview_list (list RoleViews
- (object RoleView "configProperties" @107
- Parent_View @106
- location (-348, 1245)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @108
- Parent_View @107
- location (246, 3406)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 314
- justify 0
- label "+configProperties"
- pctDist 0.823782
- height 2
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C60944D0196"
- client @106
- supplier @70
- vertices (list Points
- (244, 2461)
- (244, 3609))
- line_style 3
- origin_attachment (244, 2461)
- terminal_attachment (244, 3609)
- label (object SegLabel @109
- Parent_View @107
- location (192, 3494)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.899727
- height 53
- orientation 1))
- (object RoleView "$UNNAMED$5" @110
- Parent_View @106
- location (-348, 1245)
- stereotype TRUE
- line_color 3342489
- quidu "3C60944D0198"
- client @106
- supplier @89
- vertices (list Points
- (244, 2461)
- (244, 1313))
- line_style 3
- origin_attachment (244, 2461)
- terminal_attachment (244, 1313))))
- (object AssociationViewNew "$UNNAMED$0" @111
- location (931, 2174)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3C6093CC001E"
- roleview_list (list RoleViews
- (object RoleView "securityPermissions" @112
- Parent_View @111
- location (339, 958)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @113
- Parent_View @112
- location (1271, 2442)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 407
- justify 0
- label "+securityPermissions"
- pctDist 0.752688
- height 39
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C6093CC0367"
- client @111
- supplier @82
- vertices (list Points
- (931, 2174)
- (931, 2480)
- (1485, 2480))
- line_style 3
- origin_attachment (931, 2174)
- terminal_attachment (1485, 2480)
- label (object SegLabel @114
- Parent_View @112
- location (1408, 2533)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.910000
- height 53
- orientation 1))
- (object RoleView "$UNNAMED$1" @115
- Parent_View @111
- location (339, 958)
- stereotype TRUE
- line_color 3342489
- quidu "3C6093CC0369"
- client @111
- supplier @89
- vertices (list Points
- (931, 2174)
- (931, 1313))
- line_style 3
- origin_attachment (931, 2174)
- terminal_attachment (931, 1313))))
- (object ClassView "Class" "Logical View::common::Description" @116
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2775, 2668)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @116
- location (2631, 2539)
- fill_color 13434879
- nlines 1
- max_width 288
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @116
- location (2631, 2644)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 284)
- width 306
- height 282
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$36" @117
- location (3856, 2786)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AAFEC01BC"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @118
- Parent_View @117
- location (3375, -2308)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @119
- Parent_View @118
- location (3066, 2712)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.867906
- height 32
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAFF40019"
- client @117
- supplier @116
- vertices (list Points
- (3856, 2786)
- (3856, 2680)
- (2928, 2680))
- line_style 3
- origin_attachment (3856, 2786)
- terminal_attachment (2928, 2680)
- label (object SegLabel @120
- Parent_View @118
- location (2990, 2758)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.941292
- height 78
- orientation 0))
- (object RoleView "$UNNAMED$37" @121
- Parent_View @117
- location (3375, -2308)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAFF40024"
- client @117
- supplier @64
- vertices (list Points
- (3856, 2786)
- (3856, 3820))
- line_style 3
- origin_attachment (3856, 2786)
- terminal_attachment (3856, 3820))))
- (object AssociationViewNew "$UNNAMED$38" @122
- location (1193, 2734)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAB5A034A"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @123
- Parent_View @122
- location (887, -1040)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @124
- Parent_View @123
- location (2463, 2634)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.889044
- height 101
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAB6100BF"
- client @122
- supplier @116
- vertices (list Points
- (1193, 2734)
- (2622, 2734))
- line_style 3
- origin_attachment (1193, 2734)
- terminal_attachment (2622, 2734)
- label (object SegLabel @125
- Parent_View @123
- location (2550, 2785)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.949756
- height 51
- orientation 1))
- (object RoleView "$UNNAMED$39" @126
- Parent_View @122
- location (887, -1040)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAB6100C9"
- client @122
- supplier @70
- vertices (list Points
- (1193, 2734)
- (640, 2734)
- (640, 3609))
- line_style 3
- origin_attachment (1193, 2734)
- terminal_attachment (640, 3609))))
- (object AssociationViewNew "$UNNAMED$40" @127
- location (2349, 2600)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AAA3202FE"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @128
- Parent_View @127
- location (738, -240)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @129
- Parent_View @128
- location (3081, 2580)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 2.684982
- height 21
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAA340012"
- client @127
- supplier @116
- vertices (list Points
- (2349, 2600)
- (2622, 2600))
- line_style 3
- origin_attachment (2349, 2600)
- terminal_attachment (2622, 2600)
- label (object SegLabel @130
- Parent_View @128
- location (2563, 2557)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.783883
- height 44
- orientation 0))
- (object RoleView "$UNNAMED$41" @131
- Parent_View @127
- location (738, -240)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AAA34001C"
- client @127
- supplier @82
- vertices (list Points
- (2349, 2600)
- (2077, 2600))
- line_style 3
- origin_attachment (2349, 2600)
- terminal_attachment (2077, 2600))))
- (object ClassView "Class" "Logical View::jca::AuthenticationMechanism" @132
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2231, 1040)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @132
- location (1633, 859)
- fill_color 13434879
- nlines 1
- max_width 1196
- justify 0
- label "AuthenticationMechanism")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3C60914003CE"
- compartment (object Compartment
- Parent_View @132
- location (1633, 920)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 6
- max_width 1194)
- width 1214
- height 386
- annotation 8
- autoResize TRUE)
- (object AttachView "" @133
- stereotype TRUE
- line_color 3342489
- client @33
- supplier @132
- vertices (list Points
- (1250, 549)
- (1846, 846))
- line_style 0)
- (object AssociationViewNew "$UNNAMED$14" @134
- location (2041, 1386)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA54400FB"
- roleview_list (list RoleViews
- (object RoleView "authenticationMechanisms" @135
- Parent_View @134
- location (385, -2043)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @136
- Parent_View @135
- location (2359, 1318)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 509
- justify 0
- label "+authenticationMechanisms"
- pctDist 0.444444
- height 318
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA545028D"
- client @134
- supplier @132
- vertices (list Points
- (2041, 1386)
- (2041, 1233))
- line_style 3
- origin_attachment (2041, 1386)
- terminal_attachment (2041, 1233)
- label (object SegLabel @137
- Parent_View @135
- location (2142, 1258)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.834370
- height 101
- orientation 1))
- (object RoleView "$UNNAMED$15" @138
- Parent_View @134
- location (385, -2043)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA545028F"
- client @134
- supplier @83
- vertices (list Points
- (2041, 1386)
- (2041, 1539))
- line_style 3
- origin_attachment (2041, 1386)
- terminal_attachment (2041, 1539))))
- (object AssociationViewNew "$UNNAMED$2" @139
- location (1338, 1050)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3C6094120028"
- roleview_list (list RoleViews
- (object RoleView "authenticationMechanisms" @140
- Parent_View @139
- location (746, -166)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @141
- Parent_View @140
- location (1410, 1018)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 509
- justify 0
- label "+authenticationMechanisms"
- pctDist 0.253394
- height 33
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3C6094120390"
- client @139
- supplier @132
- vertices (list Points
- (1338, 1050)
- (1624, 1050))
- line_style 3
- origin_attachment (1338, 1050)
- terminal_attachment (1624, 1050)
- label (object SegLabel @142
- Parent_View @140
- location (1595, 1104)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.898601
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$3" @143
- Parent_View @139
- location (746, -166)
- stereotype TRUE
- line_color 3342489
- quidu "3C6094120392"
- client @139
- supplier @89
- vertices (list Points
- (1338, 1050)
- (1052, 1050))
- line_style 3
- origin_attachment (1338, 1050)
- terminal_attachment (1052, 1050))))
- (object AttachView "" @144
- stereotype TRUE
- line_color 3342489
- client @41
- supplier @132
- vertices (list Points
- (3078, 734)
- (2765, 846))
- line_style 0)
- (object AssociationViewNew "$UNNAMED$32" @145
- location (3734, 1703)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4AA8A2001E"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @146
- Parent_View @145
- location (1463, -801)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @147
- Parent_View @146
- location (0, 2830)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 6.560976
- height 205
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA8A30033"
- client @145
- supplier @116
- vertices (list Points
- (3734, 1703)
- (3734, 2625)
- (2928, 2625))
- line_style 3
- origin_attachment (3734, 1703)
- terminal_attachment (2928, 2625)
- label (object SegLabel @148
- Parent_View @146
- location (2993, 2515)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.962138
- height 111
- orientation 1))
- (object RoleView "$UNNAMED$33" @149
- Parent_View @145
- location (1463, -801)
- stereotype TRUE
- line_color 3342489
- quidu "3E4AA8A3003D"
- client @145
- supplier @132
- vertices (list Points
- (3734, 1703)
- (3734, 871)
- (2838, 871))
- line_style 3
- origin_attachment (3734, 1703)
- terminal_attachment (2838, 871))))))))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/jsp_2_0.cat b/plugins/org.eclipse.jst.j2ee.core/rose/jsp_2_0.cat deleted file mode 100644 index ab6eb7ffe..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/jsp_2_0.cat +++ /dev/null @@ -1,618 +0,0 @@ -
-(object Petal
- version 47
- _written "Rose 8.0.0303.1400"
- charSet 0)
-
-(object Class_Category "jsp"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Jsp"))
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "jsp.xmi")))
- quid "3E4D4F69036B"
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "JSPConfig"
- quid "3E4D4A3A01C8"
- documentation
-|@version J2EE1.4
-|The jsp-configType is used to provide global configuration
-|information for the JSP files in a web application. It has
-|two subelements, taglib and jsp-property-group.
- )
- (object Class "JSPPropertyGroup"
- quid "3E4D4A970353"
- documentation
-|@version J2EE1.4
-|The jsp-property-groupType is used to group a number of
-|files so they can be given global property information.
-|All files so described are deemed to be JSP files. The
-|following additional properties can be described:
-|
-|- Control enabling of EL evaluation. - Control enabling
-|of Scripting elements. - Indicate pageEncoding
-|information. - Indicating that a resource is a JSP
-|document - Prelude and Coda automatic includes.
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3E4D4CCD0144"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "urlPattern"
- quid "3E4D4CDC0236"
- stereotype "0..*"
- type "String"
- exportControl "Public")
- (object ClassAttribute "elIgnored"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3E4D4CE302B8"
- documentation
-|Can be used to easily set the isELIgnored
-| property of a group of JSP pages. By default,
-| the EL evaluation is enabled for Web
-| Applications using a Servlet 2.4 or greater
-| web.xml, and disabled otherwise.
-
- type "boolean"
- initv "true"
- exportControl "Public")
- (object ClassAttribute "pageEncoding"
- quid "3E4D4D33010E"
- documentation
-|The valid values of page-encoding are those of
-| the pageEncoding page directive. It is a
-| translation-time error to name different
-| encodings in the pageEncoding attribute of the
-| page directive of a JSP page and in a JSP
-| configuration element matching the page. It is
-| also a translation-time error to name different
-| encodings in the prolog of a document in XML
-| syntax and in a JSP configuration element
-| matching the document. It is legal to name the
-| same encoding through mulitple mechanisms.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "scriptingInvalid"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3E4D4D5803E3"
- documentation
-|Can be used to easily disable scripting in a
-| group of JSP pages. By default, scripting is
-| enabled.
-
- stereotype "0..1"
- type "boolean"
- initv "true"
- exportControl "Public")
- (object ClassAttribute "isXML"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "3E4D4DBA0018"
- documentation
-|If true, denotes that the group of resources
-| that match the URL pattern are JSP documents,
-| and thus must be interpreted as XML documents.
-| If false, the resources are assumed to not be
-| JSP documents, unless there is another property
-| group that indicates otherwise.
-
- stereotype "0..1"
- type "boolean"
- initv "false"
- exportControl "Public")
- (object ClassAttribute "includePreludes"
- quid "3E4D4E1700EE"
- documentation
-|The include-prelude element is a
-| context-relative path that must correspond to
-| an element in the Web Application. When the
-| element is present, the given path will be
-| automatically included (as in an include
-| directive) at the beginning of each JSP page in
-| this jsp-property-group.
-
- stereotype "0..*"
- type "String"
- exportControl "Public")
- (object ClassAttribute "includeCodas"
- quid "3E4D4E370235"
- documentation
-|The include-coda element is a context-relative
-| path that must correspond to an element in the
-| Web Application. When the element is present,
-| the given path will be automatically included
-| (as in an include directive) at the end of each
-| JSP page in this jsp-property-group.
-
- stereotype "0..*"
- type "String"
- exportControl "Public")))
- (object Class "TagLibRefType"
- quid "3E4D4C370148"
- documentation
-|@version J2EE1.4
-|A taglib can be used to provide information on a tag
-|library that is used by a JSP page within the Web
-|Application.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "taglibURI"
- quid "3E4D4C4A02CC"
- documentation
-| A taglib-uri element describes a URI identifying a
-| tag library used in the web application. The body
-| of the taglib-uri element may be either an
-| absolute URI specification, or a relative URI.
-| There should be no entries in web.xml with the
-| same taglib-uri value.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "taglibLocation"
- quid "3E4D4C4F03B0"
- documentation
-|the taglib-location element contains the location
-| (as a resource relative to the root of the web
-| application) where to find the Tag Library
-| Description file for the tag library.
-
- type "String"
- exportControl "Public")))
- (object Association "$UNNAMED$0"
- quid "3E4D4B560249"
- roles (list role_list
- (object Role "tagLibs"
- quid "3E4D4B570074"
- label "tagLibs"
- supplier "Logical View::jsp::TagLibRefType"
- quidu "3E4D4C370148"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$1"
- quid "3E4D4B570076"
- supplier "Logical View::jsp::JSPConfig"
- quidu "3E4D4A3A01C8"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$2"
- quid "3E4D4C9D03DA"
- roles (list role_list
- (object Role "propertyGroups"
- quid "3E4D4C9E034F"
- label "propertyGroups"
- supplier "Logical View::jsp::JSPPropertyGroup"
- quidu "3E4D4A970353"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$3"
- quid "3E4D4C9E0351"
- supplier "Logical View::jsp::JSPConfig"
- quidu "3E4D4A3A01C8"
- is_aggregate TRUE))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "JSP_2_0"
- quid "3E4D4FA203A9"
- title "JSP_2_0"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 531
- origin_y 1684
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::jsp::JSPPropertyGroup" @1
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1056, 1791)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (591, 1560)
- fill_color 13434879
- nlines 1
- max_width 930
- justify 0
- label "JSPPropertyGroup")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4D4A970353"
- compartment (object Compartment
- Parent_View @1
- location (591, 1621)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 8
- max_width 800)
- width 948
- height 486
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jsp::TagLibRefType" @2
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2000, 1680)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (1737, 1574)
- fill_color 13434879
- nlines 1
- max_width 526
- justify 0
- label "TagLibRefType")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4D4C370148"
- compartment (object Compartment
- Parent_View @2
- location (1737, 1635)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 444)
- width 544
- height 236
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jsp::JSPConfig" @3
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1520, 1184)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (1383, 1133)
- fill_color 13434879
- nlines 1
- max_width 274
- justify 0
- label "JSPConfig")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4D4A3A01C8"
- width 292
- height 126
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$2" @4
- location (1054, 1168)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D4C9D03DA"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$3" @5
- Parent_View @4
- location (173, -1612)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @6
- Parent_View @5
- location (1310, 1127)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D4C9E0351"
- client @4
- supplier @3
- line_style 3
- origin_attachment (1054, 1168)
- terminal_attachment (1374, 1168))
- (object RoleView "propertyGroups" @7
- Parent_View @4
- location (173, -1612)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @8
- Parent_View @7
- location (819, 1504)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 308
- justify 0
- label "+propertyGroups"
- pctDist 0.899498
- height 176
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D4C9E034F"
- client @4
- supplier @1
- vertices (list Points
- (1054, 1168)
- (994, 1168)
- (994, 1548))
- line_style 3
- origin_attachment (1054, 1168)
- terminal_attachment (994, 1548)
- label (object SegLabel @9
- Parent_View @7
- location (1061, 1509)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.912060
- height 67
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$0" @10
- location (2006, 1222)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D4B560249"
- roleview_list (list RoleViews
- (object RoleView "tagLibs" @11
- Parent_View @10
- location (1676, 916)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @12
- Parent_View @11
- location (1901, 1516)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 172
- justify 0
- label "+tagLibs"
- pctDist 0.866995
- height 106
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D4B570074"
- client @10
- supplier @2
- line_style 3
- origin_attachment (2006, 1222)
- terminal_attachment (2006, 1562)
- label (object SegLabel @13
- Parent_View @11
- location (2070, 1514)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.859606
- height 64
- orientation 0))
- (object RoleView "$UNNAMED$1" @14
- Parent_View @10
- location (1676, 916)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D4B570076"
- client @10
- supplier @3
- vertices (list Points
- (2006, 1222)
- (2006, 1162)
- (1666, 1162))
- line_style 3
- origin_attachment (2006, 1222)
- terminal_attachment (1666, 1162))))
- (object ClassView "Class" "Logical View::common::CompatibilityDescriptionGroup" @15
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (411, 1233)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @15
- location (65, 1054)
- fill_color 13434879
- nlines 1
- max_width 692
- justify 0
- label "CompatibilityDescriptionGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "4023ADF20197"
- compartment (object Compartment
- Parent_View @15
- location (65, 1159)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 13434879
- anchor 2
- nlines 5
- max_width 437)
- width 710
- height 382
- annotation 8
- autoResize TRUE)
- (object InheritView "" @16
- stereotype TRUE
- line_color 10949559
- quidu "3E4D4CCD0144"
- client @1
- supplier @15
- vertices (list Points
- (582, 1548)
- (509, 1548)
- (509, 1424))
- line_style 3
- origin_attachment (582, 1548)
- terminal_attachment (509, 1424))))))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/taglib_1_1.cat b/plugins/org.eclipse.jst.j2ee.core/rose/taglib_1_1.cat deleted file mode 100644 index d0cd58014..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/taglib_1_1.cat +++ /dev/null @@ -1,3446 +0,0 @@ -
-(object Petal
- version 47
- _written "Rose 8.0.0303.1400"
- charSet 0)
-
-(object Class_Category "taglib"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "taglib.xmi"))
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Taglib")))
- quid "39A6BA5F0070"
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "TagLib"
- attributes (list Attribute_Set)
- quid "39A6BA5F00E8"
- documentation
-|The taglib tag is the document root, it defines:
-|
-|description a simple string describing the "use" of this taglib,
-| should be user discernable
-|
-|display-name the display-name element contains a
-| short name that is intended to be displayed
-| by tools
-|
-|icon optional icon that can be used by tools
-|
-|tlib-version the version of the tag library implementation
-|
-|short-name a simple default short name that could be
-| used by a JSP authoring tool to create
-| names with a mnemonic value; for example,
-| the it may be used as the prefered prefix
-| value in taglib directives
-|
-|uri a uri uniquely identifying this taglib
-|
-|validator optional TagLibraryValidator information
-|
-|listener optional event listener specification
-|
-|tag one or more tags in the tag library
-|
-|tag-file one or more tag files in the tag library
-|
-|function zero or more EL functions defined in this
-| tag library
-|
-|taglib-extension zero or more extensions that provide extra
-| information about this taglib, for tool
-| consumption
-
- stereotype "component"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023B12101F3"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "tagLibVersion"
- attributes (list Attribute_Set
- (object Attribute
- tool "XML_DTD"
- name "DefaultDeclType"
- value "#IMPLIED"))
- quid "39A6BA5F0160"
- documentation
-|Describes this version number of the tag library (dewey decimal).
-|@regexp [0-9]*{ "."[0-9] }0..3
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "jspVersion"
- quid "39A6C5FA0221"
- documentation
-|Describes the JSP version (number) this tag library requires in order to function (dewey decimal). Default is 1.2
-|@regexp [0-9]*{ "."[0-9] }0..3
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "shortName"
- quid "39A6C60001A7"
- documentation "The value of the short-name element is a name that could be used by a JSP authoring tool to create names with a mnemonic value; for example, it may be used as the prefered prefix value in taglib directives. Do not use white space, and do not start with digits or underscore."
- type "String"
- exportControl "Public")
- (object ClassAttribute "uri"
- quid "39A6C60600C9"
- documentation "The value of the uri element is a public URI that uniquely identifies the exact semantics of this taglibrary."
- type "String"
- exportControl "Public"))
- module "Component View::web-jsptaglibrary_1_1"
- quidu "39A6BA5F00C1"
- language "XML_DTD")
- (object Class "JSPTag"
- attributes (list Attribute_Set)
- quid "39A6BA5F0108"
- documentation
-|The tag element defines an action in this tag library. The tag element has one attribute, id.
-|The tag element may have several subelements defining:
-|name -- The unique action name
-|tag-class -- The tag handler class implementing javax.servlet.jsp.tagext.Tag
-|tei-class -- An optional subclass of javax.servlet.jsp.tagext.TagExtraInfo
-|body-content -- The body content type
-|display-name -- A short name that is intended to be displayed by tools
-|small-icon -- Optional small-icon that can be used by tools
-|large-icon -- Optional large-icon that can be used by tools
-|description -- Optional tag-specific information
-|variable -- Optional scripting variable information
-|attribute -- All attributes of this action
-|example -- Optional informal description of an example of a use of this action.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3E5A978E00CA"
- supplier "Logical View::common::DescriptionGroup"
- quidu "3E4D451F01FB"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "bodyContent"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "39A6C904016B"
- documentation
-|Provides a hint as to the content of the body of this tag. Primarily intended for use by page composition tools.There are currently three values specified:
-|
-|tagdependent - The body of the tag is interpreted by the tag implementation itself, and is most likely in a different "langage", e.g embedded SQL statements.
-|
-|JSP - The body of the tag contains nested JSP syntax
-|
-|empty - The body must be emptyThe default (if not defined) is JSP#PCDATA ::= tagdependent | JSP | empty
-
- stereotype "0..1"
- type "BodyContentType"
- quidu "39ABE974027D"
- exportControl "Public")
- (object ClassAttribute "example"
- quid "398967990188"
- documentation "The example element provides an informal description of an example of the use of a tag."
- type "String"
- exportControl "Public")
- (object ClassAttribute "name"
- quid "3E5A97D50127"
- type "String"
- exportControl "Public")
- (object ClassAttribute "dynamicAttributes"
- quid "3E5A9A11009D"
- type "boolean"
- exportControl "Public"))
- module "Component View::web-jsptaglibrary_1_1"
- quidu "39A6BA5F00C1"
- language "XML_DTD")
- (object Class "JSPTagAttribute"
- attributes (list Attribute_Set)
- quid "39A6BA5F0114"
- documentation "The attribute tag defines an attribute for the nesting tag"
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "39A6C76E01F3"
- documentation "Defines the canonical name of a tag or attribute being defined (required)."
- type "String"
- exportControl "Public")
- (object ClassAttribute "required"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "39A6C7720181"
- documentation "Defines if the nesting attribute is required or optional."
- type "boolean"
- exportControl "Public")
- (object ClassAttribute "rtExprValue"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "39A6C7760209"
- documentation
-|Defines if the nesting attribute can have scriptlet expressions asa value, i.e the value of the attribute may be dynamically calculatedat request time, as opposed to a static value determined at translationtime. (optional)
-|Default = false
-
- stereotype "0..1"
- type "boolean"
- initv "false"
- exportControl "Public")
- (object ClassAttribute "fragment"
- quid "3E67B8AE0095"
- documentation "@version J2EE1.4"
- stereotype "0..1"
- type "boolean"
- exportControl "Public"))
- module "Component View::web-jsptaglibrary_1_1"
- quidu "39A6BA5F00C1"
- language "XML_DTD")
- (object Class "BodyContentType"
- quid "39ABE974027D"
- documentation
-|@version J2EE1.4, added TAGDEPENDENT,EMPTY,scriptless,SCRIPTLESS
-|Provides a hint as to the content of the body of this tag.
-|Primarily intended for use by page composition tools.
-|
-|There are currently four values specified:
-|
-|tagdependent The body of the tag is interpreted by the tag
-| implementation itself, and is most likely
-| in a different "langage", e.g embedded SQL
-| statements.
-|
-|JSP The body of the tag contains nested JSP
-| syntax.
-|
-|empty The body must be empty
-|
-|scriptless The body accepts only template text, EL
-| Expressions, and JSP action elements. No
-| scripting elements are allowed.
-|JSP=0
-|empty=1
-|tagdependent=2
-|TAGDEPENDENT=3
-|EMPTY=4
-|scriptless=5
-|SCRIPTLESS=6
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "tagdependent"
- quid "3ECD280702B0")
- (object ClassAttribute "JSP"
- quid "3ECD28150094")
- (object ClassAttribute "empty"
- quid "3ECD281A0005")
- (object ClassAttribute "scriptless"
- quid "3ECD282002C0")))
- (object Class "Validator"
- quid "398962CA014C"
- documentation
-|The validator element provides information on an optional validator that can be used to validate the conformance of a JSP page to using this tag library.
-|
- )
- (object Class "JSPVariable"
- quid "398965A900B3"
- class_attributes (list class_attribute_list
- (object ClassAttribute "nameGiven"
- quid "398967F80384"
- documentation
-|The name-given element provides the name for the scripting variable.
-|
-|One of name-given or name-from-attribute is required.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "nameFromAttribute"
- quid "398968440134"
- documentation "The name of an attribute whose (translation-time) value will give the name of the variable."
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "declare"
- quid "398968CA0295"
- documentation
-|The value of the declare element indicates whether the scripting variable is to be defined or not. See TagExtraInfo for details.
-|This element is optional and is the default is true.
-|
-
- stereotype "0..1"
- type "boolean"
- exportControl "Public")
- (object ClassAttribute "scope"
- quid "3989692A03AC"
- stereotype "0..1"
- type "JSPScriptingVariableScope"
- quidu "398968FD025D"
- exportControl "Public")))
- (object Class "JSPScriptingVariableScope"
- quid "398968FD025D"
- documentation
-|NESTED=0
-|AT_BEGIN=1
-|AT_END=2
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "NESTED"
- quid "398969100105"
- exportControl "Public")
- (object ClassAttribute "AT_BEGIN"
- quid "398969130164"
- exportControl "Public")
- (object ClassAttribute "AT_END"
- quid "3989691702D2"
- exportControl "Public")))
- (object Class "Function"
- quid "3E5A875400E5"
- documentation
-|@version J2EE1.4
-|The function element is used to provide information on each
-|function in the tag library that is to be exposed to the EL.
-|
-|The function element may have several subelements defining:
-|
-|description Optional tag-specific information
-|
-|display-name A short name that is intended to be
-| displayed by tools
-|
-|icon Optional icon element that can be used
-| by tools
-|
-|name A unique name for this function
-|
-|function-class Provides the name of the Java class that
-| implements the function
-|
-|function-signature Provides the signature, as in the Java
-| Language Specification, of the Java
-| method that is to be used to implement
-| the function.
-|
-|example Optional informal description of an
-| example of a use of this function
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3E5A876A0340"
- supplier "Logical View::common::DescriptionGroup"
- quidu "3E4D451F01FB"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "3E5A87870066"
- type "String"
- exportControl "Public")
- (object ClassAttribute "signature"
- quid "3E5A898B039E"
- documentation
-|Provides the signature, as in the Java Language
-| Specification, of the static Java method that is
-| to be used to implement the function.
-|
-| Example:
-|
-| java.lang.String nickName( java.lang.String, int )
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "example"
- quid "3E5A8AAE0306"
- documentation
-|The example element contains an informal description
-| of an example of the use of this function.
-
- stereotype "0..1"
- type "String"
- exportControl "Public")))
- (object Class "TagFile"
- quid "3E5A96DE029E"
- documentation
-|@version J2EE1.4
-|Defines an action in this tag library that is implemented
-|as a .tag file.
-|
-|The tag-file element has two required subelements:
-|
-|name The unique action name
-|
-|path Where to find the .tag file implementing this
-| action, relative to the root of the web application or
-| the root of the JAR file for a tag library packaged in
-| a JAR. This must begin with /WEB-INF/tags if the .tag
-| file resides in the WAR, or /META-INF/tags if the .tag
-| file resides in a JAR.
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3ECD2DE4011E"
- supplier "Logical View::common::DescriptionGroup"
- quidu "3E4D451F01FB"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "3E5A96F803C8"
- type "String"
- exportControl "Public")
- (object ClassAttribute "path"
- quid "3E5A970E00E4"
- type "String"
- exportControl "Public")
- (object ClassAttribute "example"
- quid "3ECD2DFF022B"
- stereotype "0..1"
- type "String"
- exportControl "Public")))
- (object Class "TldExtension"
- quid "3ECD2A8D016F"
- class_attributes (list class_attribute_list
- (object ClassAttribute "namespace"
- quid "3ECD2CD202C9"
- type "String"
- exportControl "Public")))
- (object Class "ExtensibleType"
- quid "3ECD2C2A00F1"
- class_attributes (list class_attribute_list
- (object ClassAttribute "value"
- quid "3ECD2C3801E1"
- type "String"
- exportControl "Public"))
- abstract TRUE)
- (object Association "tag"
- attributes (list Attribute_Set)
- quid "39A6BA5F0156"
- roles (list role_list
- (object Role "$UNNAMED$0"
- quid "39A6BA5F0157"
- supplier "Logical View::taglib::TagLib"
- quidu "39A6BA5F00E8"
- is_aggregate TRUE)
- (object Role "tags"
- quid "39A6BA5F0158"
- label "tags"
- supplier "Logical View::taglib::JSPTag"
- quidu "39A6BA5F0108"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "attribute"
- attributes (list Attribute_Set)
- quid "39A6BA5F01BA"
- roles (list role_list
- (object Role "$UNNAMED$1"
- quid "39A6BA5F01BB"
- supplier "Logical View::taglib::JSPTag"
- quidu "39A6BA5F0108"
- Containment "By Value"
- is_aggregate TRUE)
- (object Role "attributes"
- quid "39A6BA5F01BC"
- label "attributes"
- supplier "Logical View::taglib::JSPTagAttribute"
- quidu "39A6BA5F0114"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$2"
- quid "398962E3003A"
- roles (list role_list
- (object Role "validator"
- quid "398962E3033D"
- documentation
-|The validator element provides information on an optional validator that can be used to validate the conformance of a JSP page to using this tag library.
-|
-
- label "validator"
- supplier "Logical View::taglib::Validator"
- quidu "398962CA014C"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$3"
- quid "398962E30347"
- supplier "Logical View::taglib::TagLib"
- quidu "39A6BA5F00E8"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$4"
- quid "3989632E01A0"
- roles (list role_list
- (object Role "validatorClass"
- quid "3989632E039F"
- documentation
-|defines the TagLibraryValidator class that can be
-|used to validate the conformance of a JSP page to using this tag library.
-
- label "validatorClass"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "0..1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$5"
- quid "3989632E03D1"
- supplier "Logical View::taglib::Validator"
- quidu "398962CA014C"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$6"
- quid "398963F40082"
- roles (list role_list
- (object Role "initParams"
- quid "398963F4032B"
- label "initParams"
- supplier "Logical View::webapplication::InitParam"
- quidu "38C08E9D0325"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$7"
- quid "398963F4032C"
- supplier "Logical View::taglib::Validator"
- quidu "398962CA014C"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$8"
- quid "398964E80322"
- roles (list role_list
- (object Role "listeners"
- quid "398964E90279"
- label "listeners"
- supplier "Logical View::common::Listener"
- quidu "39BFB26001BD"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$9"
- quid "398964E90283"
- supplier "Logical View::taglib::TagLib"
- quidu "39A6BA5F00E8"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$10"
- quid "398965BE00F9"
- roles (list role_list
- (object Role "variables"
- quid "398965BF00E7"
- documentation
-|The variable element provides information on the scripting variables defined by this tag.
-|It is a (translation time) error for an action that has one or more variable subelements to have a TagExtraInfo class that returns a non-null object.
-|The subelements of variable are of the form:
-|name-given -- The variable name as a constant
-|name-from-attribute -- The name of an attribute whose (translation time) value will give the name of the variable. One of name-given or namefrom-attribute is required.
-|variable-class -- Name of the class of the variable. java.lang.String is default.
-|declare -- Whether the variable is declared or not. True is the default.
-|scope -- The scope of the scripting variable defined. NESTED is default.
-|
-
- label "variables"
- supplier "Logical View::taglib::JSPVariable"
- quidu "398965A900B3"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$11"
- quid "398965BF00E8"
- supplier "Logical View::taglib::JSPTag"
- quidu "39A6BA5F0108"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$12"
- quid "398966A3031F"
- roles (list role_list
- (object Role "tagClass"
- quid "398966A4028A"
- documentation
-|The tag-class element indicates the subclass of javax.serlvet.jsp.tagext.Tag that implements the request time semantics for this tag. This element is required.
-|@regexp fully qualified Java class name
-|
-
- label "tagClass"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$13"
- quid "398966A402C7"
- supplier "Logical View::taglib::JSPTag"
- quidu "39A6BA5F0108"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$14"
- quid "398966C20175"
- roles (list role_list
- (object Role "teiClass"
- quid "398966C3005E"
- documentation
-|The tei-class element indicates the subclass of javax.servlet.jsp.tagext.TagExtraInfo for this tag. The class is instantiated at translation time. This element is optional.
-|@regexp fully qualified Java class name
-
- label "teiClass"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$15"
- quid "398966C3009A"
- supplier "Logical View::taglib::JSPTag"
- quidu "39A6BA5F0108"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$16"
- quid "3989688A0366"
- documentation
-|The name of the class for the scripting variable.
-|This element is optional; the default is java.lang.String.
-|
-
- roles (list role_list
- (object Role "variableClass"
- quid "3989688D002B"
- label "variableClass"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "0..1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$17"
- quid "3989688D0067"
- supplier "Logical View::taglib::JSPVariable"
- quidu "398965A900B3"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$18"
- quid "398969910273"
- roles (list role_list
- (object Role "type"
- quid "3989699200EE"
- documentation
-|The value of the type element describes the Java type of the attributes value.
-|For static values (those determined at translation time) the type is always java.lang.String.
-
- label "type"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "0..1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$19"
- quid "39896992013E"
- supplier "Logical View::taglib::JSPTagAttribute"
- quidu "39A6BA5F0114"
- client_cardinality (value cardinality "0..1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$20"
- quid "3E5A87CE03C6"
- roles (list role_list
- (object Role "functionClass"
- quid "3E5A87CF034F"
- documentation
-|Provides the fully-qualified class name of the Java
-| class containing the static method that implements
-| the function.
-
- label "functionClass"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$21"
- quid "3E5A87CF036D"
- supplier "Logical View::taglib::Function"
- quidu "3E5A875400E5"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$22"
- quid "3E5A9881000C"
- roles (list role_list
- (object Role "descriptions"
- quid "3E5A9881025A"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$23"
- quid "3E5A98810282"
- supplier "Logical View::taglib::JSPTagAttribute"
- quidu "39A6BA5F0114"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$24"
- quid "3E67B391027D"
- roles (list role_list
- (object Role "functions"
- quid "3E67B3920329"
- documentation "@version J2EE1.4"
- label "functions"
- supplier "Logical View::taglib::Function"
- quidu "3E5A875400E5"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$25"
- quid "3E67B392032B"
- supplier "Logical View::taglib::TagLib"
- quidu "39A6BA5F00E8"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$26"
- quid "3E67B9FE034B"
- roles (list role_list
- (object Role "descriptions"
- quid "3E67B9FF0392"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$27"
- quid "3E67B9FF03B0"
- supplier "Logical View::taglib::Validator"
- quidu "398962CA014C"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$28"
- quid "3E67BAA402B3"
- roles (list role_list
- (object Role "descriptions"
- quid "3E67BAA50297"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$29"
- quid "3E67BAA502B5"
- supplier "Logical View::taglib::JSPVariable"
- quidu "398965A900B3"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$30"
- quid "3ECD2C970011"
- roles (list role_list
- (object Role "extensionElements"
- quid "3ECD2C9701CA"
- label "extensionElements"
- supplier "Logical View::taglib::ExtensibleType"
- quidu "3ECD2C2A00F1"
- client_cardinality (value cardinality "1..*")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$31"
- quid "3ECD2C9701CC"
- supplier "Logical View::taglib::TldExtension"
- quidu "3ECD2A8D016F"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$32"
- quid "3ECD2D5701DA"
- roles (list role_list
- (object Role "functionExtensions"
- quid "3ECD2D58016D"
- label "functionExtensions"
- supplier "Logical View::taglib::TldExtension"
- quidu "3ECD2A8D016F"
- client_cardinality (value cardinality "0..*")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$33"
- quid "3ECD2D580178"
- supplier "Logical View::taglib::Function"
- quidu "3E5A875400E5"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$34"
- quid "3ECD2E5403C8"
- roles (list role_list
- (object Role "tagExtensions"
- quid "3ECD2E590072"
- label "tagExtensions"
- supplier "Logical View::taglib::TldExtension"
- quidu "3ECD2A8D016F"
- client_cardinality (value cardinality "0..*")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$35"
- quid "3ECD2E59007C"
- supplier "Logical View::taglib::TagFile"
- quidu "3E5A96DE029E"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$36"
- quid "3ECD2EE3003F"
- roles (list role_list
- (object Role "taglibExtensions"
- quid "3ECD2EE503D1"
- label "taglibExtensions"
- supplier "Logical View::taglib::TldExtension"
- quidu "3ECD2A8D016F"
- client_cardinality (value cardinality "0..*")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$37"
- quid "3ECD2EE503DB"
- supplier "Logical View::taglib::TagLib"
- quidu "39A6BA5F00E8"
- is_aggregate TRUE))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "TagLib"
- quid "39A6BA810155"
- title "TagLib"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 1962
- origin_y 1318
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::taglib::BodyContentType" @1
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2589, 366)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (2374, 232)
- fill_color 13434879
- nlines 1
- max_width 430
- justify 0
- label "BodyContentType")
- stereotype (object ItemLabel
- Parent_View @1
- location (2374, 182)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 430
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39ABE974027D"
- width 448
- height 392
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::taglib::JSPScriptingVariableScope" @2
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3254, 2227)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (2983, 2124)
- fill_color 13434879
- nlines 1
- max_width 542
- justify 0
- label "JSPScriptingVariableScope")
- stereotype (object ItemLabel
- Parent_View @2
- location (2983, 2074)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 542
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 32768
- fill_color 13434833
- quidu "398968FD025D"
- width 560
- height 330
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @3
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (284, 572)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (106, 493)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4D451F01FB"
- width 374
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::InitParam" @4
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (914, 1967)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @4
- location (670, 1788)
- fill_color 13434879
- nlines 2
- max_width 488
- justify 0
- label "InitParam")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C08E9D0325"
- width 506
- height 382
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::Description" @5
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1295, 2418)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @5
- location (1126, 2289)
- fill_color 13434879
- nlines 1
- max_width 338
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E4A98D602E0"
- width 356
- height 282
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::java::JavaClass" @6
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1381, 1453)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @6
- location (1268, 1371)
- nlines 2
- max_width 226
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- quidu "36549FCC00FA"
- width 244
- height 188
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::taglib::JSPTagAttribute" @7
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2024, 1723)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @7
- location (1579, 1567)
- fill_color 13434879
- nlines 1
- max_width 890
- justify 0
- label "JSPTagAttribute")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39A6BA5F0114"
- width 908
- height 336
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$22" @8
- location (1297, 1949)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "3E5A9881000C"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @9
- Parent_View @8
- location (-727, 226)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @10
- Parent_View @9
- location (1430, 2151)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.615854
- height 133
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E5A9881025A"
- client @8
- supplier @5
- line_style 3
- origin_attachment (1297, 1949)
- terminal_attachment (1297, 2277)
- label (object SegLabel @11
- Parent_View @9
- location (1248, 2154)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.625000
- height 50
- orientation 1))
- (object RoleView "$UNNAMED$23" @12
- Parent_View @8
- location (-727, 226)
- stereotype TRUE
- line_color 3342489
- quidu "3E5A98810282"
- client @8
- supplier @7
- vertices (list Points
- (1297, 1949)
- (1297, 1889)
- (1570, 1889))
- line_style 3
- origin_attachment (1297, 1949)
- terminal_attachment (1570, 1889))))
- (object AssociationViewNew "$UNNAMED$18" @13
- location (1403, 1745)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "398969910273"
- roleview_list (list RoleViews
- (object RoleView "type" @14
- Parent_View @13
- location (-197, 241)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @15
- Parent_View @14
- location (1474, 1637)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 108
- justify 0
- label "+type"
- pctDist 0.551587
- height 71
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3989699200EE"
- client @13
- supplier @6
- line_style 3
- origin_attachment (1403, 1745)
- terminal_attachment (1403, 1546)
- label (object SegLabel @16
- Parent_View @14
- location (1457, 1567)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$19" @17
- Parent_View @13
- location (-197, 241)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "39896992013E"
- client @13
- supplier @7
- vertices (list Points
- (1403, 1745)
- (1403, 1805)
- (1570, 1805))
- line_style 3
- origin_attachment (1403, 1745)
- terminal_attachment (1570, 1805)
- label (object SegLabel @18
- Parent_View @17
- location (1508, 0)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist -7.929577
- height 105
- orientation 0))))
- (object ClassView "Class" "Logical View::taglib::JSPVariable" @19
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3093, 1712)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @19
- location (2578, 1531)
- fill_color 13434879
- nlines 2
- max_width 1030
- justify 0
- label "JSPVariable")
- icon_style "Icon"
- line_color 32768
- fill_color 13434833
- quidu "398965A900B3"
- width 1048
- height 386
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$28" @20
- location (2387, 2351)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "3E67BAA402B3"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @21
- Parent_View @20
- location (-593, 639)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @22
- Parent_View @21
- location (1715, 2306)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.736734
- height 46
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E67BAA50297"
- client @20
- supplier @5
- line_style 3
- origin_attachment (2387, 2351)
- terminal_attachment (1473, 2351)
- label (object SegLabel @23
- Parent_View @21
- location (1564, 2405)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$29" @24
- Parent_View @20
- location (-593, 639)
- stereotype TRUE
- line_color 3342489
- quidu "3E67BAA502B5"
- client @20
- supplier @19
- vertices (list Points
- (2387, 2351)
- (2856, 2351)
- (2856, 1905))
- line_style 3
- origin_attachment (2387, 2351)
- terminal_attachment (2856, 1905))))
- (object AssociationViewNew "$UNNAMED$16" @25
- location (1859, 2002)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "3989688A0366"
- roleview_list (list RoleViews
- (object RoleView "variableClass" @26
- Parent_View @25
- location (-413, 530)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @27
- Parent_View @26
- location (1192, 1616)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 279
- justify 0
- label "+variableClass"
- pctDist 0.930155
- height 137
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3989688D002B"
- client @25
- supplier @6
- vertices (list Points
- (1859, 2002)
- (1328, 2002)
- (1328, 1547))
- line_style 3
- origin_attachment (1859, 2002)
- terminal_attachment (1328, 1547)
- label (object SegLabel @28
- Parent_View @26
- location (1287, 1660)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.885809
- height 42
- orientation 0))
- (object RoleView "$UNNAMED$17" @29
- Parent_View @25
- location (-413, 530)
- stereotype TRUE
- line_color 3342489
- quidu "3989688D0067"
- client @25
- supplier @19
- vertices (list Points
- (1859, 2002)
- (2749, 2002)
- (2749, 1905))
- line_style 3
- origin_attachment (1859, 2002)
- terminal_attachment (2749, 1905))))
- (object ClassView "Class" "Logical View::taglib::ExtensibleType" @30
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (887, 2544)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @30
- location (706, 2463)
- fill_color 13434879
- nlines 1
- max_width 362
- justify 0
- label "ExtensibleType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3ECD2C2A00F1"
- width 380
- height 186
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::taglib::TagFile" @31
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1946, 240)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @31
- location (1634, 109)
- fill_color 13434879
- nlines 1
- max_width 624
- justify 0
- label "TagFile")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E5A96DE029E"
- width 642
- height 286
- annotation 8
- autoResize TRUE)
- (object InheritView "" @32
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2DE4011E"
- client @31
- supplier @3
- vertices (list Points
- (1625, 162)
- (417, 162)
- (417, 481))
- line_style 3
- origin_attachment (1625, 162)
- terminal_attachment (417, 481))
- (object ClassView "Class" "Logical View::common::Listener" @33
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1312, 1073)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @33
- location (1180, 974)
- fill_color 13434879
- nlines 2
- max_width 264
- justify 0
- label "Listener")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39BFB26001BD"
- width 282
- height 222
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "" @34
- location (1425, 1271)
- stereotype TRUE
- line_color 3342489
- quidu "39C03E6C035A"
- roleview_list (list RoleViews
- (object RoleView "" @35
- Parent_View @34
- location (1041, -169)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @36
- Parent_View @35
- location (1384, 1202)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39C03E6D02CF"
- client @34
- supplier @33
- vertices (list Points
- (1425, 1271)
- (1441, 1271)
- (1441, 1184))
- line_style 3
- origin_attachment (1425, 1271)
- terminal_attachment (1441, 1184))
- (object RoleView "listenerClass" @37
- Parent_View @34
- location (1041, -169)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @38
- Parent_View @37
- location (1513, 1325)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 262
- justify 0
- label "+listenerClass"
- pctDist 0.608696
- height 88
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39C03E6D02A7"
- client @34
- supplier @6
- line_style 3
- origin_attachment (1425, 1271)
- terminal_attachment (1425, 1359)
- label (object SegLabel @39
- Parent_View @37
- location (1463, 1301)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.335404
- height 38
- orientation 0))))
- (object ClassView "Class" "Logical View::taglib::Function" @40
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (321, 1415)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @40
- location (9, 1284)
- fill_color 13434879
- nlines 1
- max_width 624
- justify 0
- label "Function")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E5A875400E5"
- width 642
- height 286
- annotation 8
- autoResize TRUE)
- (object InheritView "" @41
- stereotype TRUE
- line_color 3342489
- quidu "3E5A876A0340"
- client @40
- supplier @3
- line_style 3
- origin_attachment (281, 1272)
- terminal_attachment (281, 663))
- (object AssociationViewNew "$UNNAMED$20" @42
- location (950, 1484)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E5A87CE03C6"
- roleview_list (list RoleViews
- (object RoleView "functionClass" @43
- Parent_View @42
- location (628, 75)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @44
- Parent_View @43
- location (1197, 1443)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 279
- justify 0
- label "+functionClass"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E5A87CF034F"
- client @42
- supplier @6
- line_style 3
- origin_attachment (950, 1484)
- terminal_attachment (1259, 1484)
- label (object SegLabel @45
- Parent_View @43
- location (1228, 1538)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$21" @46
- Parent_View @42
- location (628, 75)
- stereotype TRUE
- line_color 3342489
- quidu "3E5A87CF036D"
- client @42
- supplier @40
- line_style 3
- origin_attachment (950, 1484)
- terminal_attachment (642, 1484))))
- (object ClassView "Class" "Logical View::taglib::Validator" @47
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (848, 1259)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @47
- location (734, 1208)
- fill_color 13434879
- nlines 1
- max_width 228
- justify 0
- label "Validator")
- icon_style "Icon"
- line_color 32768
- fill_color 13434833
- quidu "398962CA014C"
- width 246
- height 126
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$6" @48
- location (953, 1548)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "398963F40082"
- roleview_list (list RoleViews
- (object RoleView "initParams" @49
- Parent_View @48
- location (409, 492)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @50
- Parent_View @49
- location (816, 1741)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 228
- justify 0
- label "+initParams"
- pctDist 0.852761
- height 138
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "398963F4032B"
- client @48
- supplier @4
- line_style 3
- origin_attachment (953, 1548)
- terminal_attachment (953, 1775)
- label (object SegLabel @51
- Parent_View @49
- location (1007, 1752)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$7" @52
- Parent_View @48
- location (409, 492)
- stereotype TRUE
- line_color 3342489
- quidu "398963F4032C"
- client @48
- supplier @47
- line_style 3
- origin_attachment (953, 1548)
- terminal_attachment (953, 1322))))
- (object AssociationViewNew "$UNNAMED$4" @53
- location (1215, 1222)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "3989632E01A0"
- roleview_list (list RoleViews
- (object RoleView "validatorClass" @54
- Parent_View @53
- location (671, 166)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @55
- Parent_View @54
- location (1233, 1309)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 291
- justify 0
- label "+validatorClass"
- pctDist 0.078067
- height 87
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3989632E039F"
- client @53
- supplier @6
- vertices (list Points
- (1215, 1222)
- (1322, 1222)
- (1322, 1359))
- line_style 3
- origin_attachment (1215, 1222)
- terminal_attachment (1322, 1359)
- label (object SegLabel @56
- Parent_View @54
- location (1291, 1283)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.692568
- height 32
- orientation 1))
- (object RoleView "$UNNAMED$5" @57
- Parent_View @53
- location (671, 166)
- stereotype TRUE
- line_color 3342489
- quidu "3989632E03D1"
- client @53
- supplier @47
- line_style 3
- origin_attachment (1215, 1222)
- terminal_attachment (971, 1222))))
- (object AssociationViewNew "$UNNAMED$26" @58
- location (1112, 1694)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "3E67B9FE034B"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @59
- Parent_View @58
- location (264, 435)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @60
- Parent_View @59
- location (1029, 2230)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.928460
- height 144
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E67B9FF0392"
- client @58
- supplier @5
- vertices (list Points
- (1112, 1694)
- (1172, 1694)
- (1172, 2277))
- line_style 3
- origin_attachment (1112, 1694)
- terminal_attachment (1172, 2277)
- label (object SegLabel @61
- Parent_View @59
- location (1226, 2212)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$27" @62
- Parent_View @58
- location (264, 435)
- stereotype TRUE
- line_color 3342489
- quidu "3E67B9FF03B0"
- client @58
- supplier @47
- vertices (list Points
- (1112, 1694)
- (894, 1694)
- (894, 1322))
- line_style 3
- origin_attachment (1112, 1694)
- terminal_attachment (894, 1322))))
- (object ClassView "Class" "Logical View::taglib::JSPTag" @63
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1998, 1021)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @63
- location (1516, 865)
- fill_color 13434879
- nlines 1
- max_width 964
- justify 0
- label "JSPTag")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39A6BA5F0108"
- width 982
- height 336
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$12" @64
- location (1762, 1398)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "398966A3031F"
- roleview_list (list RoleViews
- (object RoleView "tagClass" @65
- Parent_View @64
- location (178, 598)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @66
- Parent_View @65
- location (1689, 1433)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 190
- justify 0
- label "+tagClass"
- pctDist 0.283262
- height 35
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "398966A4028A"
- client @64
- supplier @6
- line_style 3
- origin_attachment (1762, 1398)
- terminal_attachment (1503, 1398)
- label (object SegLabel @67
- Parent_View @65
- location (1563, 1433)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.771930
- height 35
- orientation 0))
- (object RoleView "$UNNAMED$13" @68
- Parent_View @64
- location (178, 598)
- stereotype TRUE
- line_color 3342489
- quidu "398966A402C7"
- client @64
- supplier @63
- vertices (list Points
- (1762, 1398)
- (1822, 1398)
- (1822, 1189))
- line_style 3
- origin_attachment (1762, 1398)
- terminal_attachment (1822, 1189))))
- (object AssociationViewNew "$UNNAMED$14" @69
- location (1858, 1481)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "398966C20175"
- roleview_list (list RoleViews
- (object RoleView "teiClass" @70
- Parent_View @69
- location (274, 681)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @71
- Parent_View @70
- location (1649, 1535)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 178
- justify 0
- label "+teiClass"
- pctDist 0.589286
- height 54
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "398966C3005E"
- client @69
- supplier @6
- line_style 3
- origin_attachment (1858, 1481)
- terminal_attachment (1503, 1481)
- label (object SegLabel @72
- Parent_View @70
- location (1539, 1535)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$15" @73
- Parent_View @69
- location (274, 681)
- stereotype TRUE
- line_color 3342489
- quidu "398966C3009A"
- client @69
- supplier @63
- vertices (list Points
- (1858, 1481)
- (1922, 1481)
- (1922, 1189))
- line_style 3
- origin_attachment (1858, 1481)
- terminal_attachment (1922, 1189))))
- (object InheritView "" @74
- stereotype TRUE
- line_color 3342489
- quidu "3E5A978E00CA"
- client @63
- supplier @3
- vertices (list Points
- (1562, 853)
- (1562, 109)
- (287, 109)
- (287, 481))
- line_style 3
- origin_attachment (1562, 853)
- terminal_attachment (287, 481))
- (object AssociationViewNew "attribute" @75
- location (2031, 1371)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "39A6BA5F01BA"
- roleview_list (list RoleViews
- (object RoleView "attributes" @76
- Parent_View @75
- location (815, 363)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @77
- Parent_View @76
- location (2151, 1514)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 193
- justify 0
- label "+attributes"
- pctDist 0.780488
- height 120
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39A6BA5F01BC"
- client @75
- supplier @7
- line_style 3
- origin_attachment (2031, 1371)
- terminal_attachment (2031, 1555)
- label (object SegLabel @78
- Parent_View @76
- location (1978, 1537)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$1" @79
- Parent_View @75
- location (815, 363)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @80
- Parent_View @79
- location (2073, 1226)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39A6BA5F01BB"
- client @75
- supplier @63
- line_style 3
- origin_attachment (2031, 1371)
- terminal_attachment (2031, 1188))))
- (object AssociationViewNew "$UNNAMED$10" @81
- location (2946, 1104)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "398965BE00F9"
- roleview_list (list RoleViews
- (object RoleView "variables" @82
- Parent_View @81
- location (1362, 304)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @83
- Parent_View @82
- location (3128, 1449)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 181
- justify 0
- label "+variables"
- pctDist 0.854671
- height 122
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "398965BF00E7"
- client @81
- supplier @19
- vertices (list Points
- (2946, 1104)
- (3006, 1104)
- (3006, 1519))
- line_style 3
- origin_attachment (2946, 1104)
- terminal_attachment (3006, 1519)
- label (object SegLabel @84
- Parent_View @82
- location (3076, 1389)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.726644
- height 70
- orientation 0))
- (object RoleView "$UNNAMED$11" @85
- Parent_View @81
- location (1362, 304)
- stereotype TRUE
- line_color 3342489
- quidu "398965BF00E8"
- client @81
- supplier @63
- line_style 3
- origin_attachment (2946, 1104)
- terminal_attachment (2489, 1104))))
- (object ClassView "Class" "Logical View::taglib::TldExtension" @86
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (271, 2221)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @86
- location (32, 2140)
- fill_color 13434879
- nlines 1
- max_width 478
- justify 0
- label "TldExtension")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3ECD2A8D016F"
- width 496
- height 186
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$30" @87
- location (580, 2382)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2C970011"
- roleview_list (list RoleViews
- (object RoleView "extensionElements" @88
- Parent_View @87
- location (309, 161)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @89
- Parent_View @88
- location (905, 2405)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 378
- justify 0
- label "+extensionElements"
- pctDist 2.034346
- height 131
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2C9701CA"
- client @87
- supplier @30
- line_style 0
- label (object SegLabel @90
- Parent_View @88
- location (641, 2470)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..*"
- pctDist 0.639913
- height 50
- orientation 1))
- (object RoleView "$UNNAMED$31" @91
- Parent_View @87
- location (309, 161)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2C9701CC"
- client @87
- supplier @86
- line_style 0)))
- (object AssociationViewNew "$UNNAMED$32" @92
- location (293, 1842)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2D5701DA"
- roleview_list (list RoleViews
- (object RoleView "functionExtensions" @93
- Parent_View @92
- location (-19, 427)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @94
- Parent_View @93
- location (194, 2021)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 371
- justify 0
- label "+functionExtensions"
- pctDist 0.643493
- height 89
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2D58016D"
- client @92
- supplier @86
- line_style 0
- label (object SegLabel @95
- Parent_View @93
- location (214, 2077)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..*"
- pctDist 0.834111
- height 66
- orientation 1))
- (object RoleView "$UNNAMED$33" @96
- Parent_View @92
- location (-19, 427)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2D580178"
- client @92
- supplier @40
- line_style 0)))
- (object AssociationViewNew "$UNNAMED$34" @97
- location (684, 832)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2E5403C8"
- roleview_list (list RoleViews
- (object RoleView "tagExtensions" @98
- Parent_View @97
- location (-1262, 592)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @99
- Parent_View @98
- location (484, 2226)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 286
- justify 0
- label "+tagExtensions"
- pctDist 1.022972
- height 1
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2E590072"
- client @97
- supplier @86
- vertices (list Points
- (684, 832)
- (684, 2225)
- (519, 2225))
- line_style 3
- origin_attachment (684, 832)
- terminal_attachment (519, 2225)
- label (object SegLabel @100
- Parent_View @98
- location (608, 2200)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..*"
- pctDist 0.942839
- height 26
- orientation 1))
- (object RoleView "$UNNAMED$35" @101
- Parent_View @97
- location (-1262, 592)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2E59007C"
- client @97
- supplier @31
- vertices (list Points
- (684, 832)
- (684, 216)
- (1625, 216))
- line_style 3
- origin_attachment (684, 832)
- terminal_attachment (1625, 216))))
- (object ClassView "Class" "Logical View::taglib::TagLib" @102
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1228, 534)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @102
- location (967, 300)
- fill_color 13434879
- nlines 1
- max_width 522
- justify 0
- label "TagLib")
- stereotype (object ItemLabel
- Parent_View @102
- location (967, 250)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 522
- justify 0
- label "<<component>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39A6BA5F00E8"
- compartment (object Compartment
- Parent_View @102
- location (967, 361)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 0)
- width 540
- height 592
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$8" @103
- location (1231, 895)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "398964E80322"
- roleview_list (list RoleViews
- (object RoleView "listeners" @104
- Parent_View @103
- location (527, 543)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @105
- Parent_View @104
- location (1350, 902)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 186
- justify 0
- label "+listeners"
- pctDist 0.103448
- height 119
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "398964E90279"
- client @103
- supplier @33
- line_style 3
- origin_attachment (1231, 895)
- terminal_attachment (1231, 961)
- label (object SegLabel @106
- Parent_View @104
- location (1287, 941)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.712121
- height 56
- orientation 0))
- (object RoleView "$UNNAMED$9" @107
- Parent_View @103
- location (527, 543)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @108
- Parent_View @107
- location (1190, 842)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 200
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "398964E90283"
- client @103
- supplier @102
- line_style 3
- origin_attachment (1231, 895)
- terminal_attachment (1231, 829))))
- (object AssociationViewNew "$UNNAMED$24" @109
- location (503, 755)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E67B391027D"
- roleview_list (list RoleViews
- (object RoleView "functions" @110
- Parent_View @109
- location (-725, 255)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @111
- Parent_View @110
- location (410, 1157)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 190
- justify 0
- label "+functions"
- pctDist 0.802444
- height 34
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E67B3920329"
- client @109
- supplier @40
- vertices (list Points
- (503, 755)
- (443, 755)
- (443, 1272))
- line_style 3
- origin_attachment (503, 755)
- terminal_attachment (443, 1272)
- label (object SegLabel @112
- Parent_View @110
- location (497, 1214)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$25" @113
- Parent_View @109
- location (-725, 255)
- stereotype TRUE
- line_color 3342489
- quidu "3E67B392032B"
- client @109
- supplier @102
- line_style 3
- origin_attachment (503, 755)
- terminal_attachment (958, 755))))
- (object AssociationViewNew "$UNNAMED$2" @114
- location (869, 953)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "398962E3003A"
- roleview_list (list RoleViews
- (object RoleView "validator" @115
- Parent_View @114
- location (165, 601)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @116
- Parent_View @115
- location (751, 1126)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 183
- justify 0
- label "+validator"
- pctDist 0.716763
- height 119
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "398962E3033D"
- client @114
- supplier @47
- line_style 3
- origin_attachment (869, 953)
- terminal_attachment (869, 1196)
- label (object SegLabel @117
- Parent_View @115
- location (953, 1147)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.803468
- height 84
- orientation 0))
- (object RoleView "$UNNAMED$3" @118
- Parent_View @114
- location (165, 601)
- stereotype TRUE
- line_color 3342489
- quidu "398962E30347"
- client @114
- supplier @102
- vertices (list Points
- (869, 953)
- (869, 799)
- (958, 799))
- line_style 3
- origin_attachment (869, 953)
- terminal_attachment (958, 799))))
- (object AssociationViewNew "tag" @119
- location (1910, 518)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @120
- Parent_View @119
- location (1910, 459)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 600
- justify 0
- label "tag"
- pctDist 0.500000
- height 60
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39A6BA5F0156"
- roleview_list (list RoleViews
- (object RoleView "tags" @121
- Parent_View @119
- location (1638, -234)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @122
- Parent_View @121
- location (2059, 811)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 108
- justify 0
- label "+tags"
- pctDist 0.898190
- height 72
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39A6BA5F0158"
- client @119
- supplier @63
- vertices (list Points
- (1910, 518)
- (1987, 518)
- (1987, 853))
- line_style 3
- origin_attachment (1910, 518)
- terminal_attachment (1987, 853)
- label (object SegLabel @123
- Parent_View @121
- location (1933, 815)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.907240
- height 55
- orientation 1))
- (object RoleView "$UNNAMED$0" @124
- Parent_View @119
- location (1638, -234)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @125
- Parent_View @124
- location (1581, 477)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39A6BA5F0157"
- client @119
- supplier @102
- line_style 3
- origin_attachment (1910, 518)
- terminal_attachment (1498, 518))))
- (object AssociationViewNew "$UNNAMED$36" @126
- location (665, 1456)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2EE3003F"
- roleview_list (list RoleViews
- (object RoleView "taglibExtensions" @127
- Parent_View @126
- location (-563, 922)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @128
- Parent_View @127
- location (581, 2057)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 325
- justify 0
- label "+taglibExtensions"
- pctDist 0.922742
- height 163
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2EE503D1"
- client @126
- supplier @86
- vertices (list Points
- (665, 1456)
- (665, 1781)
- (418, 1781)
- (418, 2128))
- line_style 3
- origin_attachment (665, 1456)
- terminal_attachment (418, 2128)
- label (object SegLabel @129
- Parent_View @127
- location (380, 2069)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..*"
- pctDist 0.935800
- height 38
- orientation 1))
- (object RoleView "$UNNAMED$37" @130
- Parent_View @126
- location (-563, 922)
- stereotype TRUE
- line_color 3342489
- quidu "3ECD2EE503DB"
- client @126
- supplier @102
- vertices (list Points
- (665, 1456)
- (665, 831)
- (958, 831))
- line_style 3
- origin_attachment (665, 1456)
- terminal_attachment (958, 831))))))))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/tcg.pty b/plugins/org.eclipse.jst.j2ee.core/rose/tcg.pty deleted file mode 100644 index 67523e030..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/tcg.pty +++ /dev/null @@ -1,590 +0,0 @@ -# -# Copyright (c) 2001, International Business Machines Corporation. ALL RIGHTS RESERVED -# Thin Client Generator (TCG) properties file -# -(object Petal version 42) - -(list Attribute_Set - (object Attribute - tool "TCG" - name "roseId" - value "837263636" - ) - (object Attribute - tool "TCG" - name "propertyId" - value "984747394" - ) - # - # Class properties - # - (object Attribute - tool "TCG" - name "default__Class" - value (list Attribute_Set - # A description to use when displaying this class' name on panels or within text. - (object Attribute - tool "TCG" - name "DisplayName" - value "" - ) - # A comma delimited list of user roles which this field is used by - (object Attribute - tool "TCG" - name "AppliesToRoles" - value "" - ) - # A classification of user experience level which would use this type - (object Attribute - tool "TCG" - name "UserExperienceLevel" - value ("UserExpLevel_Set" 100) - ) - (object Attribute - tool "TCG" - name "UserExpLevel_Set" - value (list Attribute_Set - (object Attribute - tool "TCG" - name "BASIC" - value 100 - ) - (object Attribute - tool "TCG" - name "ADVANCED" - value 101 - ) - (object Attribute - tool "TCG" - name "EXPERT" - value 102 - ) - ) - ) - # A description to use for the title of detail panels containing an object of this class. - (object Attribute - tool "TCG" - name "StdDetailPanelTitle" - value "" - ) - # Contains a comma-separated list of attribute id's in the order they should appear on the - # default detail panel for this class. - (object Attribute - tool "TCG" - name "StdDetailPanelFieldsInOrder" - value "" - ) - # A description to use for the title of collection panels containing elements of this class. - (object Attribute - tool "TCG" - name "StdCollectionPanelTitle" - value "" - ) - # Contains a comma-separated list of attribute id's in the order they should appear on the - # default collection panel for this class. - (object Attribute - tool "TCG" - name "StdCollectionPanelFieldsInOrder" - value "" - ) - # A string containing attribute name parameter slots which will be filled in with values from the attributes. - # Typically used to calculate a tree node description for an object. - (object Attribute - tool "TCG" - name "DescriptionPattern" - value "" - ) - # A uri to content which will be included just above the description area of the detail page for this class - (object Attribute - tool "TCG" - name "PreDescriptionIncludeURI" - value "" - ) - # A uri to content which will be included just above the form area of the detail page for this class - (object Attribute - tool "TCG" - name "PreFormIncludeURI" - value "" - ) - # A uri to content which will be included in the footer area of the detail page for this class - (object Attribute - tool "TCG" - name "FooterIncludeURI" - value "" - ) - # Whether views should be generated for this type - (object Attribute - tool "TCG" - name "SkipViewGeneration" - value FALSE - ) - # The icon file uri for small 16x16 icon representing this class. - (object Attribute - tool "TCG" - name "SmallIcon" - value "" - ) - # The icon file uri for large 32x32 icon representing this class. - (object Attribute - tool "TCG" - name "LargeIcon" - value "" - ) - # An alternate uri (absolute or relative to web app root) to include as the description in the - # detail panel. - (object Attribute - tool "TCG" - name "AltDescriptionURI" - value "" - ) - ) - ) - # - # Class Attribute Properties - # - (object Attribute - tool "TCG" - name "default__Attribute" - value (list Attribute_Set - # The label text to use when displaying this attribute (without ':') - (object Attribute - tool "TCG" - name "DisplayName" - value "" - ) - (object Attribute - tool "TCG" - name "IsRequired" - value TRUE - ) - # A string which can be used to group this field with other fields with the same categoryId - (object Attribute - tool "TCG" - name "CategoryId" - value "" - ) - # A comma delimited list of user roles which this field is used by - (object Attribute - tool "TCG" - name "AppliesToRoles" - value "" - ) - # A classification of user experience level which would use this type - (object Attribute - tool "TCG" - name "UserExperienceLevel" - value ("UserExpLevel_Set" 100) - ) - (object Attribute - tool "TCG" - name "UserExpLevel_Set" - value (list Attribute_Set - (object Attribute - tool "TCG" - name "BASIC" - value 100 - ) - (object Attribute - tool "TCG" - name "ADVANCED" - value 101 - ) - (object Attribute - tool "TCG" - name "EXPERT" - value 102 - ) - ) - ) - (object Attribute - tool "TCG" - name "FieldType" - value ("FieldType_Set" 71) - ) - (object Attribute - tool "TCG" - name "FieldType_Set" - value (list Attribute_Set - (object Attribute - tool "TCG" - name "TEXT_FIELD" - value 71 - ) - (object Attribute - tool "TCG" - name "TEXT_AREA" - value 72 - ) - (object Attribute - tool "TCG" - name "COMBO_BOX" - value 73 - ) - (object Attribute - tool "TCG" - name "LIST_BOX" - value 74 - ) - (object Attribute - tool "TCG" - name "CHECK_BOX" - value 75 - ) - (object Attribute - tool "TCG" - name "OPTION" - value 76 - ) - (object Attribute - tool "TCG" - name "TEXT_READ_ONLY" - value 77 - ) - (object Attribute - tool "TCG" - name "CUSTOM" - value 78 - ) - (object Attribute - tool "TCG" - name "FILE" - value 79 - ) - (object Attribute - tool "TCG" - name "URI" - value 80 - ) - (object Attribute - tool "TCG" - name "PASSWORD" - value 81 - ) - ) - ) - (object Attribute - tool "TCG" - name "MaxLength" - value "" - ) - (object Attribute - tool "TCG" - name "BooleanValueKind" - value ("BooleanValueKind_Set" 91) - ) - (object Attribute - tool "TCG" - name "BooleanValueKind_Set" - value (list Attribute_Set - (object Attribute - tool "TCG" - name "TRUE_FALSE" - value 91 - ) - (object Attribute - tool "TCG" - name "ENABLE_DISABLE" - value 92 - ) - (object Attribute - tool "TCG" - name "YES_NO" - value 93 - ) - (object Attribute - tool "TCG" - name "ON_OFF" - value 94 - ) - ) - ) - (object Attribute - tool "TCG" - name "ColumnWidthPercent" - value "" - ) - (object Attribute - tool "TCG" - name "VisibleSize" - value "" - ) - (object Attribute - tool "TCG" - name "IncludeActionURI" - value "" - ) - (object Attribute - tool "TCG" - name "IncludeJSPURI" - value "" - ) - (object Attribute - tool "TCG" - name "AltDescriptionURI" - value "" - ) - (object Attribute - tool "TCG" - name "ValidationMinValue" - value "" - ) - (object Attribute - tool "TCG" - name "ValidationMaxValue" - value "" - ) - (object Attribute - tool "TCG" - name "ValidationPattern" - value "" - ) - # A text description of special validation requirements that apply to this field - (object Attribute - tool "TCG" - name "SpecialValidationReqs" - value "" - ) - # The validation class which implements the special validation requirements for this field. - (object Attribute - tool "TCG" - name "SpecialValidationClass" - value "" - ) - ) - ) - - # - # Role Properties - # - (object Attribute - tool "TCG" - name "default__Role" - value (list Attribute_Set - # The label text to use when displaying this attribute (without ':') - (object Attribute - tool "TCG" - name "DisplayName" - value "" - ) - # Specifies that this field should not appear in any views - (object Attribute - tool "TCG" - name "SkipGeneration" - value FALSE - ) - (object Attribute - tool "TCG" - name "IsRequired" - value TRUE - ) - # Whether or not to show this field in the tree if it is a composite field with card 0..1 or 1 - # When FALSE, the code generator should embed the detail page of the contained type within - # the detail page of the container type. - (object Attribute - tool "TCG" - name "ShowCompositeInTree" - value TRUE - ) - # When TRUE, the code generator should embed the collection page of the contained types within - # the properties page of the detail page of the container type. - (object Attribute - tool "TCG" - name "ShowAsPropertiesPage" - value FALSE - ) - # A comma delimited list of user roles which this field is used by - (object Attribute - tool "TCG" - name "AppliesToRoles" - value "" - ) - # A classification of user experience level which would use this type - (object Attribute - tool "TCG" - name "UserExperienceLevel" - value ("UserExpLevel_Set" 100) - ) - (object Attribute - tool "TCG" - name "UserExpLevel_Set" - value (list Attribute_Set - (object Attribute - tool "TCG" - name "BASIC" - value 100 - ) - (object Attribute - tool "TCG" - name "ADVANCED" - value 101 - ) - (object Attribute - tool "TCG" - name "EXPERT" - value 102 - ) - ) - ) - # A string which can be used to group this field with other fields with the same categoryId - (object Attribute - tool "TCG" - name "CategoryId" - value "" - ) - (object Attribute - tool "TCG" - name "FieldType" - value ("FieldType_Set" 71) - ) - (object Attribute - tool "TCG" - name "FieldType_Set" - value (list Attribute_Set - (object Attribute - tool "TCG" - name "TEXT_FIELD" - value 71 - ) - (object Attribute - tool "TCG" - name "TEXT_AREA" - value 72 - ) - (object Attribute - tool "TCG" - name "COMBO_BOX" - value 73 - ) - (object Attribute - tool "TCG" - name "LIST_BOX" - value 74 - ) - (object Attribute - tool "TCG" - name "CHECK_BOX" - value 75 - ) - (object Attribute - tool "TCG" - name "OPTION" - value 76 - ) - (object Attribute - tool "TCG" - name "TEXT_READ_ONLY" - value 77 - ) - (object Attribute - tool "TCG" - name "CUSTOM" - value 78 - ) - (object Attribute - tool "TCG" - name "FILE" - value 79 - ) - (object Attribute - tool "TCG" - name "URI" - value 80 - ) - (object Attribute - tool "TCG" - name "PASSWORD" - value 81 - ) - ) - ) - (object Attribute - tool "TCG" - name "MaxLength" - value "" - ) - (object Attribute - tool "TCG" - name "BooleanValueKind" - value ("BooleanValueKind_Set" 91) - ) - (object Attribute - tool "TCG" - name "BooleanValueKind_Set" - value (list Attribute_Set - (object Attribute - tool "TCG" - name "TRUE_FALSE" - value 91 - ) - (object Attribute - tool "TCG" - name "ENABLE_DISABLE" - value 92 - ) - (object Attribute - tool "TCG" - name "YES_NO" - value 93 - ) - (object Attribute - tool "TCG" - name "ON_OFF" - value 94 - ) - ) - ) - (object Attribute - tool "TCG" - name "ColumnWidthPercent" - value "" - ) - (object Attribute - tool "TCG" - name "VisibleSize" - value "" - ) - (object Attribute - tool "TCG" - name "IncludeActionURI" - value "" - ) - (object Attribute - tool "TCG" - name "IncludeJSPURI" - value "" - ) - (object Attribute - tool "TCG" - name "AltDescriptionURI" - value "" - ) - (object Attribute - tool "TCG" - name "ValidationMinValue" - value "" - ) - (object Attribute - tool "TCG" - name "ValidationMaxValue" - value "" - ) - (object Attribute - tool "TCG" - name "ValidationPattern" - value "" - ) - # A text description of special validation requirements that apply to this field - (object Attribute - tool "TCG" - name "SpecialValidationReqs" - value "" - ) - # The validation class which implements the special validation requirements for this field. - (object Attribute - tool "TCG" - name "SpecialValidationClass" - value "" - ) - ) - ) -) diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/webapplication.cat b/plugins/org.eclipse.jst.j2ee.core/rose/webapplication.cat deleted file mode 100644 index 83e1e0b75..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/webapplication.cat +++ /dev/null @@ -1,10347 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Class_Category "webapplication"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "webapplication.xmi"))
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Webapplication")))
- quid "38C076D603DD"
- visible_categories (list visibility_relationship_list
- (object Visibility_Relationship
- quid "38FF3C150151"
- supplier "Logical View::common"
- quidu "38C08F0F038D"))
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "WebApp"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C077FB0352"
- documentation
-|The web-app element is the root of the deployment descriptor for
-|a web application.
-
- stereotype "component"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3E4D55CA03E2"
- supplier "Logical View::common::JNDIEnvRefsGroup"
- quidu "3E4D53950349"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "distributable"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "38C0782D0231"
- documentation "The distributable element, by its presence in a web application deployment descriptor, indicates that this web application is programmed appropriately to be deployed into a distributed servlet container"
- type "boolean"
- exportControl "Public")
- (object ClassAttribute "version"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Volatile"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Transient"
- value FALSE)
- (object Attribute
- tool "Java"
- name "IndividualChangeMgt"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedTypes"
- value FALSE)
- (object Attribute
- tool "Java"
- name "PropertyType"
- value ("BeanProperty_Set" 71))
- (object Attribute
- tool "Java"
- name "Read/Write"
- value ("Read/Write_Set" 81)))
- quid "3E4D57C20179"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "ContextParam"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C078B602A6"
- documentation
-|@version J2EE1.4 deprecated
-|The context-param element contains the declaration of a web application's servlet context initialization parameters.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "paramName"
- quid "38C078C602F0"
- documentation
-|@deprecated
-|The param-name element contains the name of a parameter.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "paramValue"
- quid "38C078DB039A"
- documentation
-|@deprecated
-|The param-value element contains the value of a parameter.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "description"
- quid "38C078EA0319"
- documentation "@deprecated"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "Servlet"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C079140251"
- documentation "The servlet element contains the declarative data of a servlet. If a jsp-file is specified and the load-on-startup element is present, then the JSP should be precompiled and loaded."
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023B1040300"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "servletName"
- quid "38C079300067"
- documentation "The servlet-name element contains the canonical name of the servlet."
- type "String"
- exportControl "Public")
- (object ClassAttribute "loadOnStartup"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "38C079550147"
- documentation
-|The load-on-startup element indicates that this servlet should be loaded on the startup of the web application. The optional contents of these element must be a positive integer indicating the order in which the servlet should be loaded. Lower integers are loaded before higher integers. If no value is specified, or if the value specified is not a positive integer, the container is free to load it at any time in the startup sequence.
-|
-
- stereotype "0..1"
- type "Integer"
- exportControl "Public"))
- language "Java")
- (object Class "ServletMapping"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C079BD02B9"
- documentation "The servlet-mapping element defines a mapping between a servlet and a url pattern"
- class_attributes (list class_attribute_list
- (object ClassAttribute "urlPattern"
- quid "38C079DD0391"
- documentation "The url-pattern element contains the url pattern of the mapping. Must follow the rules specified in Section 10 of the Servlet API Specification."
- type "String"
- exportControl "Public")
- (object ClassAttribute "name"
- quid "3E67C27A00D7"
- documentation
-|@version J2EE1.4
-|The servlet-name element contains the canonical name of the
-|servlet. Each servlet name is unique within the web
-|application.
-
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "SessionConfig"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07A5301BD"
- documentation "The session-config element defines the session parameters for this web application."
- class_attributes (list class_attribute_list
- (object ClassAttribute "sessionTimeout"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "38C07A5B0205"
- documentation
-|The session-timeout element defines the default
-| session timeout interval for all sessions created
-| in this web application. The specified timeout
-| must be expressed in a whole number of minutes.
-| If the timeout is 0 or less, the container ensures
-| the default behaviour of sessions is never to time
-| out. If this element is not specified, the container
-| must set its default timeout period.
-
- type "int"
- exportControl "Public"))
- language "Java")
- (object Class "MimeMapping"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07A7500FE"
- documentation
-|The mime-mapping element defines a mapping between an extension and a mime type.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "extension"
- quid "38C07A830017"
- documentation
-|The extension element contains a string describing an extension. example: "txt"
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "mimeType"
- quid "38C07A8C01BF"
- documentation
-|The mime-type element contains a defined mime type. example: "text/plain"
-
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "WelcomeFileList"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07AAD01A8"
- documentation "The welcome-file-list contains an ordered list of welcome files elements."
- language "Java")
- (object Class "ErrorPage"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07ACF03E2"
- documentation "The error-page element contains a mapping between an error code or exception type to the path of a resource in the web application"
- class_attributes (list class_attribute_list
- (object ClassAttribute "location"
- quid "38C07AEB02AC"
- documentation "The location element contains the location of the resource in the web application"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "TagLibRef"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07B3002E7"
- documentation
-|@version J2EE1.4 deprecated, becomes jsp::TagLibRef
-|The taglib element is used to describe a JSP tag library.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "taglibURI"
- quid "38C07B3700A2"
- documentation
-|@deprecated See jsp::TagLibRef
-|
-|The taglib-uri element describes a URI, relative to the location of the web.xml document, identifying a Tag Library used in the Web Application.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "taglibLocation"
- quid "38C07B4B0318"
- documentation
-|@deprecated See jsp::TagLibRef
-|
-|The taglib-location element contains the location (as a resource relative to the root of the web application) where to find the Tag Libary Description file for the tag library.
-
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "SecurityConstraint"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07B6A02AE"
- documentation "The security-constraint element is used to associate security constraints with one or more web resource collections"
- class_attributes (list class_attribute_list
- (object ClassAttribute "displayName"
- quid "3E89D7E8012D"
- documentation "@version J2EE1.4 deprecated, becomes displayNames"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "WebResourceCollection"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07B8703AB"
- documentation
-|The web-resource-collection element is used to identify a subset of the resources and HTTP methods on those resources within a web application to which a security constraint applies. If no HTTP methods are specified, then the security constraint applies to all HTTP methods.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "webResourceName"
- quid "38C07BA303D3"
- documentation "The web-resource-name contains the name of this web resource collection"
- type "String"
- exportControl "Public")
- (object ClassAttribute "description"
- quid "38C07BB80152"
- documentation "@version J2EE1.4 deprecated, becomes descriptions"
- type "String"
- exportControl "Public")
- (object ClassAttribute "urlPattern"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnique"
- value FALSE))
- quid "3E4D51EA0345"
- documentation "@version J2EE1.4"
- stereotype "1..*"
- type "String"
- exportControl "Public")
- (object ClassAttribute "httpMethod"
- quid "3E4D52020123"
- documentation "@version J2EE1.4"
- stereotype "0..*"
- type "HTTPMethodTypeEnum"
- quidu "38C0A2E200C6"
- exportControl "Public"))
- language "Java")
- (object Class "AuthConstraint"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07C8001A0"
- documentation
-|The auth-constraintType indicates the user roles that
-|should be permitted access to this resource
-|collection. The role-name used here must either correspond
-|to the role-name of one of the security-role elements
-|defined for this web application, or be the specially
-|reserved role-name "*" that is a compact syntax for
-|indicating all roles in the web application. If both "*"
-|and rolenames appear, the container interprets this as all
-|roles. If no roles are defined, no user is allowed access
-|to the portion of the web application described by the
-|containing security-constraint. The container matches
-|role names case sensitively when determining access.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "38C07C9703B6"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|A description of the auth constraint.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "roles"
- quid "39C7AA9403D9"
- documentation
-|A list of role names for the auth constraint. Each element specifies the name of a security role (a String).
-|
-
- stereotype "0..*"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "UserDataConstraint"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07CB800B0"
- documentation "The user-data-constraint element is used to indicate how data communicated between the client and container should be protected"
- class_attributes (list class_attribute_list
- (object ClassAttribute "description"
- quid "38C07CC6002E"
- documentation
-|@version J2EE1.4 deprecated, becomes descriptions
-|A description for the user data constraint.
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "transportGuarantee"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "38C07CD8035F"
- documentation
-|The transport-guarantee element specifies that the communication between client and server should be NONE, INTEGRAL, or CONFIDENTIAL. NONE means that the application does not require any
-|transport guarantees. A value of INTEGRAL means that the application requires that the data sent between the client and server be sent in such a way that it can't be changed in transit. CONFIDENTIAL means that the application requires that the data be transmitted in a fashion that prevents other entities from observing the contents of the transmission. In most cases, the presence of the INTEGRAL or CONFIDENTIAL flag will indicate that the use of SSL is required.
-
- type "TransportGuaranteeType"
- quidu "390461A9018F"
- exportControl "Public"))
- language "Java")
- (object Class "LoginConfig"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07D0F006F"
- documentation
-|The login-config element is used to configure the authentication method that should be used, the realm name that should be used for this application, and the attributes that are needed by the form login
-|mechanism.
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "authMethod"
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "isUnsettable"
- value TRUE))
- quid "38C07D170066"
- documentation
-|@version J2EE1.4 deprecated, becomes initParamValues
-|
-|
-|The auth-method element is used to configure the authentication mechanism for the web application. As a prerequisite to gaining access to any web resources which are protected by an authorization constraint, a user must have authenticated using the configured mechanism. Legal values for this element are "BASIC", "DIGEST", "FORM", or "CLIENT-CERT".
-
- type "AuthMethodKind"
- quidu "3EE0A2D8029A"
- exportControl "Public")
- (object ClassAttribute "realmName"
- quid "38C07D26034D"
- documentation "The realm name element specifies the realm name to use in HTTP Basic authorization"
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "authorizationMethod"
- quid "3EE0A4300014"
- documentation "@version J2EE1.4"
- stereotype "0..1"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "FormLoginConfig"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C07D390296"
- documentation "The form-login-config element specifies the login and error pages that should be used in form based login. If form based authentication is not used, these elements are ignored."
- class_attributes (list class_attribute_list
- (object ClassAttribute "formLoginPage"
- quid "38C07D44017A"
- documentation "The form-login-page element defines the location in the web app where the page that can be used for login can be found"
- type "String"
- exportControl "Public")
- (object ClassAttribute "formErrorPage"
- quid "38C07D570235"
- documentation "The form-error-page element defines the location in the web app where the error page that is displayed when login is not successful can be found"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "InitParam"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C08E9D0325"
- documentation
-|@version J2EE1.4 deprecated
-|The init-param element contains a name/value pair as an initialization param of the servlet
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "paramName"
- quid "38C08EB30330"
- documentation
-|@deprecated
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "paramValue"
- quid "38C08EC70221"
- documentation "@deprecated"
- type "String"
- exportControl "Public")
- (object ClassAttribute "description"
- quid "38C08ED901D7"
- documentation "@deprecated"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "ResAuthServletType"
- quid "38C09EEA0265"
- documentation
-|CONTAINER=0
-|SERVLET=1
-|
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "CONTAINER"
- quid "399301960226"
- exportControl "Public")
- (object ClassAttribute "SERVLET"
- quid "39930198000C"
- exportControl "Public"))
- language "Java")
- (object Class "WebType"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C0A1F70294"
- language "Java"
- abstract TRUE)
- (object Class "ServletType"
- quid "38C0A2320311"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "38C0A28C02AD"
- supplier "Logical View::webapplication::WebType"
- quidu "38C0A1F70294"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "className"
- quid "3904604200D5"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "JSPType"
- quid "38C0A2640273"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "38C0A2900258"
- supplier "Logical View::webapplication::WebType"
- quidu "38C0A1F70294"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "jspFile"
- quid "38C0A2760355"
- documentation
-|The jsp-file element contains the full path to a JSP file within the web application.
-|
-
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "URLPatternType"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C0A2C50042"
- class_attributes (list class_attribute_list
- (object ClassAttribute "urlPattern"
- quid "38C0A2CF0136"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "HTTPMethodTypeEnum"
- quid "38C0A2E200C6"
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "GET"
- quid "38C0A2FC004B"
- documentation "The http-method contains an HTTP method (GET | POST |...)"
- exportControl "Public")
- (object ClassAttribute "POST"
- quid "3E4D52380134"
- exportControl "Public")
- (object ClassAttribute "PUT"
- quid "3E4D52390352"
- exportControl "Public")
- (object ClassAttribute "DELETE"
- quid "3E4D523B00DE"
- exportControl "Public")
- (object ClassAttribute "HEAD"
- quid "3E4D523C0393"
- exportControl "Public")
- (object ClassAttribute "OPTIONS"
- quid "3E4D523F0012"
- exportControl "Public")
- (object ClassAttribute "TRACE"
- quid "3E4D524001CC"
- exportControl "Public"))
- language "Java")
- (object Class "RoleNameType"
- quid "38C0A3400139"
- class_attributes (list class_attribute_list
- (object ClassAttribute "roleName"
- quid "38C0A347003F"
- type "String"))
- language "Java")
- (object Class "WelcomeFile"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "38C0A5A800E9"
- documentation
-|The welcome-file element contains file name to use as a default welcome file, such as index.html
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "welcomeFile"
- quid "38C0A5B1016E"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "TransportGuaranteeType"
- quid "390461A9018F"
- documentation
-|NONE=1
-|INTEGRAL=2
-|CONFIDENTIAL=3
-
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "NONE"
- quid "399301820214"
- exportControl "Public")
- (object ClassAttribute "INTEGRAL"
- quid "39930183032D"
- exportControl "Public")
- (object ClassAttribute "CONFIDENTIAL"
- quid "3993018E00E4"
- exportControl "Public")))
- (object Class "ExceptionTypeErrorPage"
- quid "39883E110154"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "39883E3A0058"
- supplier "Logical View::webapplication::ErrorPage"
- quidu "38C07ACF03E2")))
- (object Class "ErrorCodeErrorPage"
- quid "39883E6C0209"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "39883E9400A8"
- supplier "Logical View::webapplication::ErrorPage"
- quidu "38C07ACF03E2"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "errorCode"
- quid "39883E8202AB"
- documentation
-|The error-code contains an HTTP error code, ex: 404
-|
-
- type "String"
- exportControl "Public")))
- (object Class "FilterMapping"
- quid "39BFB14C03DD"
- documentation
-|Declaration of the filter mappings in this web application. The container uses the filter-mapping declarations to decide which filters to apply to a request, and in what order. The container matches the request URI to a Servlet in the normal way. To determine which filters to apply it matches filter-mapping declarations either on servlet-name, or on url-pattern for each filter-mapping element, depending on which style is used. The order in which filters are invoked is the order in which filter-mapping declarations that match a request URI for a servlet appear in the list of filter-mapping elements.The filter-name value must be the value of the <filtername> sub-elements of one of the <filter> declarations in the deployment descriptor.
-|
-|@invariant The filter-name value must be the value of the Filter::name of one of the Filter declarations in the deployment descriptor.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "urlPattern"
- quid "39BFB1890236"
- documentation "The url-pattern element contains the url pattern of the mapping. Must follow the rules specified in Section 10 of the Servlet API Specification."
- stereotype "0..1"
- type "String"
- exportControl "Public")
- (object ClassAttribute "dispatcherType"
- quid "3E4D447E0376"
- stereotype "0..4"
- type "DispatcherType"
- quidu "3E4D445B0376"
- exportControl "Public")))
- (object Class "Filter"
- quid "39BFB15503CC"
- documentation
-|Declares a filter in the web application application. The filter is mapped to either a servlet or a URL pattern in the filter-mapping element, using the filter-name value to reference. Filters can access the initialization parameters declared in the deployment descriptor at runtime via the FilterConfig interface.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023B08E0379"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "name"
- quid "39BFB1BC032A"
- documentation "The logical name of the filter. This name is used to map the filter."
- type "String"
- exportControl "Public")))
- (object Class "DispatcherType"
- quid "3E4D445B0376"
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "FORWARD"
- quid "3E4D446400BC"
- exportControl "Public")
- (object ClassAttribute "INCLUDE"
- quid "3E4D446703A5"
- exportControl "Public")
- (object ClassAttribute "REQUEST"
- quid "3E4D446902AE"
- exportControl "Public")
- (object ClassAttribute "ERROR"
- quid "3E4D446B0152"
- exportControl "Public")))
- (object Class "LocalEncodingMappingList"
- quid "3E4D56DA023E")
- (object Class "LocalEncodingMapping"
- quid "3E4D56F20170"
- class_attributes (list class_attribute_list
- (object ClassAttribute "locale"
- quid "3E4D570501F0"
- type "String"
- exportControl "Public")
- (object ClassAttribute "encoding"
- quid "3E4D57080276"
- type "String"
- exportControl "Public")))
- (object Class "HTTPMethodType"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E930B050065"
- class_attributes (list class_attribute_list
- (object ClassAttribute "httpMethod"
- quid "3E930B050066"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "AuthMethodKind"
- quid "3EE0A2D8029A"
- stereotype "enumeration"
- class_attributes (list class_attribute_list
- (object ClassAttribute "UNSPECIFIED"
- quid "3EE0A2FE037B"
- exportControl "Public")
- (object ClassAttribute "BASIC"
- quid "3EE0A30F033A"
- exportControl "Public")
- (object ClassAttribute "DIGEST"
- quid "3EE0A313023B"
- exportControl "Public")
- (object ClassAttribute "FORM"
- quid "3EE0A31801F2"
- exportControl "Public")
- (object ClassAttribute "CLIENT_CERT"
- quid "3EE0A31A0390"
- exportControl "Public")))
- (object Association "$UNNAMED$0"
- quid "38C11CE60213"
- roles (list role_list
- (object Role "webApp"
- quid "38C11CE8000D"
- label "webApp"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "contexts"
- quid "38C11CE8000E"
- documentation "@deprecated see contextParams"
- label "contexts"
- supplier "Logical View::webapplication::ContextParam"
- quidu "38C078B602A6"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$1"
- quid "38C11CF301A3"
- roles (list role_list
- (object Role "webApp"
- quid "38C11CF4026D"
- label "webApp"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "errorPages"
- quid "38C11CF40277"
- label "errorPages"
- supplier "Logical View::webapplication::ErrorPage"
- quidu "38C07ACF03E2"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$2"
- quid "38C11CF7034E"
- roles (list role_list
- (object Role "webApp"
- quid "38C11CF803B3"
- label "webApp"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "fileList"
- quid "38C11CF803B4"
- label "fileList"
- supplier "Logical View::webapplication::WelcomeFileList"
- quidu "38C07AAD01A8"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$3"
- quid "38C11CFB0281"
- documentation "@version J2EE14 deprecated, replaced by tagLibRefs"
- roles (list role_list
- (object Role "webApp"
- quid "38C11CFD00A3"
- label "webApp"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "tagLibs"
- quid "38C11CFD00A4"
- documentation
-|@deprecated See jsp::TagLibRef
-|
-
- label "tagLibs"
- supplier "Logical View::webapplication::TagLibRef"
- quidu "38C07B3002E7"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$4"
- quid "38C11D000134"
- roles (list role_list
- (object Role "webApp"
- quid "38C11D01018F"
- label "webApp"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "constraints"
- quid "38C11D010199"
- label "constraints"
- supplier "Logical View::webapplication::SecurityConstraint"
- quidu "38C07B6A02AE"
- client_cardinality (value cardinality "0..n")
- Constraints "ordered"
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$5"
- quid "38C11D110188"
- roles (list role_list
- (object Role "webApp"
- quid "38C11D120067"
- label "webApp"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "loginConfig"
- quid "38C11D120071"
- label "loginConfig"
- supplier "Logical View::webapplication::LoginConfig"
- quidu "38C07D0F006F"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$6"
- quid "38C11D1501C0"
- roles (list role_list
- (object Role "webApp"
- quid "38C11D17023B"
- label "webApp"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "mimeMappings"
- quid "38C11D170245"
- label "mimeMappings"
- supplier "Logical View::webapplication::MimeMapping"
- quidu "38C07A7500FE"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$7"
- quid "38C11D1B0327"
- roles (list role_list
- (object Role "webApp"
- quid "38C11D1C01F2"
- label "webApp"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "sessionConfig"
- quid "38C11D1C01F3"
- label "sessionConfig"
- supplier "Logical View::webapplication::SessionConfig"
- quidu "38C07A5301BD"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$8"
- quid "38C11D1F02AB"
- roles (list role_list
- (object Role "webApp"
- quid "38C11D200298"
- label "webApp"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "servletMappings"
- quid "38C11D2002A2"
- label "servletMappings"
- supplier "Logical View::webapplication::ServletMapping"
- quidu "38C079BD02B9"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$9"
- quid "38C11D230120"
- roles (list role_list
- (object Role "webApp"
- quid "38C11D2402DA"
- label "webApp"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "servlets"
- quid "38C11D2402E4"
- label "servlets"
- supplier "Logical View::webapplication::Servlet"
- quidu "38C079140251"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$10"
- quid "38C11D2701DA"
- roles (list role_list
- (object Role "$UNNAMED$11"
- quid "38C11D2802C2"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- client_cardinality (value cardinality "0..1")
- is_aggregate TRUE)
- (object Role "securityRoles"
- quid "38C11D2802CC"
- label "securityRoles"
- supplier "Logical View::common::SecurityRole"
- quidu "38C031FE012D"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$12"
- quid "38C121ED02D6"
- roles (list role_list
- (object Role "secConstraint"
- quid "38C121EE01E7"
- label "secConstraint"
- supplier "Logical View::webapplication::SecurityConstraint"
- quidu "38C07B6A02AE"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "webResourceCollections"
- quid "38C121EE01F1"
- label "webResourceCollections"
- supplier "Logical View::webapplication::WebResourceCollection"
- quidu "38C07B8703AB"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$13"
- quid "38C121F200E9"
- roles (list role_list
- (object Role "secConstraint"
- quid "38C121F3039D"
- label "secConstraint"
- supplier "Logical View::webapplication::SecurityConstraint"
- quidu "38C07B6A02AE"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "authConstraint"
- quid "38C121F303A7"
- label "authConstraint"
- supplier "Logical View::webapplication::AuthConstraint"
- quidu "38C07C8001A0"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$14"
- quid "38C121F70208"
- roles (list role_list
- (object Role "secConstraint"
- quid "38C121F801EC"
- label "secConstraint"
- supplier "Logical View::webapplication::SecurityConstraint"
- quidu "38C07B6A02AE"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "userDataConstraint"
- quid "38C121F801ED"
- label "userDataConstraint"
- supplier "Logical View::webapplication::UserDataConstraint"
- quidu "38C07CB800B0"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$15"
- quid "38C122AC014A"
- roles (list role_list
- (object Role "servlet"
- quid "38C122AD0001"
- label "servlet"
- supplier "Logical View::webapplication::Servlet"
- quidu "38C079140251"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_aggregate TRUE)
- (object Role "webType"
- quid "38C122AD0015"
- label "webType"
- supplier "Logical View::webapplication::WebType"
- quidu "38C0A1F70294"
- client_cardinality (value cardinality "1")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$16"
- quid "38C122B501BB"
- roles (list role_list
- (object Role "$UNNAMED$17"
- quid "38C122B60145"
- supplier "Logical View::webapplication::Servlet"
- quidu "38C079140251"
- client_cardinality (value cardinality "0..1")
- is_aggregate TRUE)
- (object Role "params"
- quid "38C122B60159"
- documentation "@version J2EE1.4 deprecated, becomes initParams"
- label "params"
- supplier "Logical View::webapplication::InitParam"
- quidu "38C08E9D0325"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$18"
- quid "38C122C00199"
- roles (list role_list
- (object Role "$UNNAMED$19"
- quid "38C122C1028B"
- supplier "Logical View::webapplication::Servlet"
- quidu "38C079140251"
- is_aggregate TRUE)
- (object Role "securityRoleRefs"
- quid "38C122C1029F"
- label "securityRoleRefs"
- supplier "Logical View::common::SecurityRoleRef"
- quidu "371BC7A0025C"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$20"
- quid "38C123AF02C4"
- roles (list role_list
- (object Role "fileList"
- quid "38C123B30111"
- label "fileList"
- supplier "Logical View::webapplication::WelcomeFileList"
- quidu "38C07AAD01A8"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "file"
- quid "38C123B3011B"
- label "file"
- supplier "Logical View::webapplication::WelcomeFile"
- quidu "38C0A5A800E9"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$21"
- quid "38C124090179"
- roles (list role_list
- (object Role "resCollection"
- quid "38C1240A0256"
- label "resCollection"
- supplier "Logical View::webapplication::WebResourceCollection"
- quidu "38C07B8703AB"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "URLs"
- quid "38C1240A0260"
- documentation "@version J2EE1.4 deprecated, becomes urlPattern"
- label "URLs"
- supplier "Logical View::webapplication::URLPatternType"
- quidu "38C0A2C50042"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$22"
- quid "38C1248900BE"
- roles (list role_list
- (object Role "loginConfig"
- quid "38C124890303"
- label "loginConfig"
- supplier "Logical View::webapplication::LoginConfig"
- quidu "38C07D0F006F"
- client_cardinality (value cardinality "0..1")
- is_navigable TRUE
- is_aggregate TRUE)
- (object Role "formLoginConfig"
- quid "38C12489030D"
- label "formLoginConfig"
- supplier "Logical View::webapplication::FormLoginConfig"
- quidu "38C07D390296"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)))
- (object Association "$UNNAMED$23"
- quid "39045E720204"
- roles (list role_list
- (object Role "exceptionType"
- quid "39045E730364"
- documentation "The exception type contains a fully qualified class name of a Java exception type."
- label "exceptionType"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "errorPage"
- quid "39045E7401C1"
- label "errorPage"
- supplier "Logical View::webapplication::ExceptionTypeErrorPage"
- quidu "39883E110154"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$24"
- quid "390460AA0189"
- roles (list role_list
- (object Role "servlet"
- quid "390460AB0234"
- label "servlet"
- supplier "Logical View::webapplication::Servlet"
- quidu "38C079140251"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)
- (object Role "$UNNAMED$25"
- quid "390460AB02B6"
- supplier "Logical View::webapplication::ServletMapping"
- quidu "38C079BD02B9")))
- (object Association "$UNNAMED$26"
- quid "39BFB3B101CC"
- roles (list role_list
- (object Role "filters"
- quid "39BFB3B20123"
- label "filters"
- supplier "Logical View::webapplication::Filter"
- quidu "39BFB15503CC"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$27"
- quid "39BFB3B2012D"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$28"
- quid "39BFB4150298"
- roles (list role_list
- (object Role "filterMappings"
- quid "39BFB4160127"
- documentation "Filter mappings defined for the web app"
- label "filterMappings"
- supplier "Logical View::webapplication::FilterMapping"
- quidu "39BFB14C03DD"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$29"
- quid "39BFB4160128"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$30"
- quid "39BFB54D01EC"
- roles (list role_list
- (object Role "listeners"
- quid "39BFB54E0215"
- documentation "The listeners collection contains deployment properties for a web application listener beans in the web app."
- label "listeners"
- supplier "Logical View::common::Listener"
- quidu "39BFB26001BD"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$31"
- quid "39BFB54E0220"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$32"
- quid "39C0026E02D1"
- roles (list role_list
- (object Role "initParams"
- quid "39C0026F0160"
- documentation
-|@version J2EE1.4 deprecated, becomes initParamValues
-|The init-params contain a name/value pairs as initialization params for the filter
-|
-
- label "initParams"
- supplier "Logical View::webapplication::InitParam"
- quidu "38C08E9D0325"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$33"
- quid "39C0026F016A"
- supplier "Logical View::webapplication::Filter"
- quidu "39BFB15503CC"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$34"
- quid "39C0056A0293"
- roles (list role_list
- (object Role "filter"
- quid "39C0056B0321"
- documentation "The filter being mapped"
- label "filter"
- supplier "Logical View::webapplication::Filter"
- quidu "39BFB15503CC"
- client_cardinality (value cardinality "1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$35"
- quid "39C0056B032B"
- supplier "Logical View::webapplication::FilterMapping"
- quidu "39BFB14C03DD"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$36"
- quid "39C005BB00B9"
- roles (list role_list
- (object Role "servlet"
- quid "39C005BC004D"
- documentation "An optional servlet that is mapped by a filter mapping. servletName is used to resolve the servlet reference."
- label "servlet"
- supplier "Logical View::webapplication::Servlet"
- quidu "38C079140251"
- client_cardinality (value cardinality "0..1")
- Containment "By Reference"
- is_navigable TRUE)
- (object Role "$UNNAMED$37"
- quid "39C005BC0061"
- supplier "Logical View::webapplication::FilterMapping"
- quidu "39BFB14C03DD"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$38"
- quid "39C03C280356"
- roles (list role_list
- (object Role "filterClass"
- quid "39C03C290267"
- documentation "The fully qualified classname of the filter."
- label "filterClass"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)
- (object Role "$UNNAMED$39"
- quid "39C03C29028F"
- supplier "Logical View::webapplication::Filter"
- quidu "39BFB15503CC"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$40"
- quid "39C03E6C035A"
- roles (list role_list
- (object Role "listenerClass"
- quid "39C03E6D02A7"
- documentation "The listener-class element declares a class in the application must be registered as a web application listener bean."
- label "listenerClass"
- supplier "Logical View::java::JavaClass"
- quidu "36549FCC00FA"
- client_cardinality (value cardinality "1")
- is_navigable TRUE)
- (object Role "$UNNAMED$41"
- quid "39C03E6D02CF"
- supplier "Logical View::common::Listener"
- quidu "39BFB26001BD"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$42"
- quid "39982A2E0255"
- roles (list role_list
- (object Role "runAs"
- quid "39982A2F0184"
- documentation "If defined for a servlet, overrides the security identity used to call an EJB by that servlet in this web application. The role-name is one of the security roles already defined for this web application."
- label "runAs"
- supplier "Logical View::common::RunAsSpecifiedIdentity"
- quidu "39BF2C9E02C8"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$43"
- quid "39982A2F018E"
- supplier "Logical View::webapplication::Servlet"
- quidu "38C079140251"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$44"
- quid "3E4D42CA027F"
- roles (list role_list
- (object Role "contextParams"
- quid "3E4D42CB0118"
- label "contextParams"
- supplier "Logical View::common::ParamValue"
- quidu "3E4C221202C1"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$45"
- quid "3E4D42CB0122"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$46"
- quid "3E4D43AA000A"
- roles (list role_list
- (object Role "initParamValues"
- quid "3E4D43AA0245"
- documentation
-|@version J2EE1.4
-|The init-param element contains a name/value pair as
-| an initialization param of a servlet filter
-
- label "initParamValues"
- supplier "Logical View::common::ParamValue"
- quidu "3E4C221202C1"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$47"
- quid "3E4D43AA024F"
- supplier "Logical View::webapplication::Filter"
- quidu "39BFB15503CC"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$48"
- quid "3E4D46E70387"
- roles (list role_list
- (object Role "initParams"
- quid "3E4D46E90005"
- label "initParams"
- supplier "Logical View::common::ParamValue"
- quidu "3E4C221202C1"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$49"
- quid "3E4D46E90019"
- supplier "Logical View::webapplication::Servlet"
- quidu "38C079140251"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$50"
- quid "3E4D4BFF01C0"
- roles (list role_list
- (object Role "jspConfig"
- quid "3E4D4C000225"
- label "jspConfig"
- supplier "Logical View::jsp::JSPConfig"
- quidu "3E4D4A3A01C8"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$51"
- quid "3E4D4C000227"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$52"
- quid "3E4D51010264"
- roles (list role_list
- (object Role "displayNames"
- quid "3E4D5102025B"
- label "displayNames"
- supplier "Logical View::common::DisplayName"
- quidu "3E4A9922000E"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$53"
- quid "3E4D51020265"
- supplier "Logical View::webapplication::SecurityConstraint"
- quidu "38C07B6A02AE"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$54"
- quid "3E4D56A50224"
- roles (list role_list
- (object Role "messageDestinations"
- quid "3E4D56A60257"
- label "messageDestinations"
- supplier "Logical View::common::MessageDestination"
- quidu "3E4C211001CF"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$55"
- quid "3E4D56A60261"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$56"
- quid "3E4D57140378"
- roles (list role_list
- (object Role "localEncodingMappings"
- quid "3E4D57150135"
- label "localEncodingMappings"
- supplier "Logical View::webapplication::LocalEncodingMapping"
- quidu "3E4D56F20170"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$57"
- quid "3E4D5715013F"
- supplier "Logical View::webapplication::LocalEncodingMappingList"
- quidu "3E4D56DA023E"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$58"
- quid "3E4D572C0083"
- roles (list role_list
- (object Role "localEncodingMappingList"
- quid "3E4D572C02DC"
- label "localEncodingMappingList"
- supplier "Logical View::webapplication::LocalEncodingMappingList"
- quidu "3E4D56DA023E"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$59"
- quid "3E4D572C02DE"
- supplier "Logical View::webapplication::WebApp"
- quidu "38C077FB0352"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$60"
- quid "3E4D515001BD"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D515101BE"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$61"
- quid "3E4D515101DC"
- supplier "Logical View::webapplication::UserDataConstraint"
- quidu "38C07CB800B0"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$62"
- quid "3E4D514D0317"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D514E0106"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$63"
- quid "3E4D514E0124"
- supplier "Logical View::webapplication::AuthConstraint"
- quidu "38C07C8001A0"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$64"
- quid "3E4D514B0089"
- roles (list role_list
- (object Role "descriptions"
- quid "3E4D514B03AA"
- documentation "@version J2EE1.4"
- label "descriptions"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$65"
- quid "3E4D514B03C8"
- supplier "Logical View::webapplication::WebResourceCollection"
- quidu "38C07B8703AB"
- is_aggregate TRUE)))
- (object Association "$UNNAMED$66"
- quid "3E930B11030B"
- roles (list role_list
- (object Role "HTTPs"
- quid "3E930B1200DC"
- documentation "@version J2EE1.4 deprecated, becomes httpMethod"
- label "HTTPs"
- supplier "Logical View::webapplication::HTTPMethodType"
- quidu "3E930B050065"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "resCollection"
- quid "3E930B1200E6"
- label "resCollection"
- supplier "Logical View::webapplication::WebResourceCollection"
- quidu "38C07B8703AB"
- client_cardinality (value cardinality "0..1")
- is_aggregate TRUE))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "Web Application"
- quid "38C08C880292"
- title "Web Application"
- documentation "@version J2EE1.4 deprecated, becomes descriptions"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object NoteView @1
- location (781, 3113)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (455, 2987)
- fill_color 13434879
- nlines 4
- max_width 617
- label
-|the servlet class reference is resolved via Beans.instantiate(),
-|this is probably a reference to a JavaBean object
- )
- line_color 3342489
- fill_color 13434879
- width 677
- height 264)
- (object ClassView "Class" "Logical View::webapplication::ServletType" @2
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1520, 2832)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (1320, 2751)
- fill_color 13434879
- nlines 1
- max_width 400
- justify 0
- label "ServletType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0A2320311"
- compartment (object Compartment
- Parent_View @2
- location (1320, 2812)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 397)
- width 418
- height 186
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::JSPType" @3
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2000, 2832)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (1843, 2751)
- fill_color 13434879
- nlines 1
- max_width 314
- justify 0
- label "JSPType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0A2640273"
- compartment (object Compartment
- Parent_View @3
- location (1843, 2812)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 313)
- width 332
- height 186
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::ErrorCodeErrorPage" @4
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (240, 960)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @4
- location (39, 879)
- fill_color 13434879
- nlines 1
- max_width 402
- justify 0
- label "ErrorCodeErrorPage")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "39883E6C0209"
- compartment (object Compartment
- Parent_View @4
- location (39, 940)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 369)
- width 420
- height 186
- annotation 8
- autoResize TRUE)
- (object NoteView @5
- location (1125, 1431)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @5
- location (834, 1368)
- fill_color 13434879
- nlines 2
- max_width 546
- label
-|DEPRECATED:
-|ContextParam
- )
- line_color 10949559
- fill_color 15778042
- width 606
- height 138)
- (object ClassView "Class" "Logical View::common::JNDIEnvRefsGroup" @6
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2987, 848)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @6
- location (2790, 769)
- fill_color 13434879
- nlines 1
- max_width 394
- justify 0
- label "JNDIEnvRefsGroup")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4D53950349"
- width 412
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::java::JavaClass" @7
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeOperation TRUE
- location (669, 1522)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @7
- location (576, 1443)
- nlines 2
- max_width 186
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "36549FCC00FA"
- width 204
- height 182
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::ExceptionTypeErrorPage" @8
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (448, 1216)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @8
- location (205, 1165)
- fill_color 13434879
- nlines 1
- max_width 486
- justify 0
- label "ExceptionTypeErrorPage")
- icon_style "Label"
- line_color 3342489
- fill_color 13434879
- quidu "39883E110154"
- width 504
- height 126
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$23" @9
- location (588, 1354)
- stereotype TRUE
- line_color 3342489
- quidu "39045E720204"
- roleview_list (list RoleViews
- (object RoleView "exceptionType" @10
- Parent_View @9
- location (-132, 410)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @11
- Parent_View @10
- location (417, 1397)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 480
- justify 0
- label "+exceptionType"
- pctDist 0.555556
- height 172
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39045E730364"
- client @9
- supplier @7
- vertices (list Points
- (588, 1354)
- (588, 1431))
- line_style 3
- origin_attachment (588, 1354)
- terminal_attachment (588, 1431)
- label (object SegLabel @12
- Parent_View @10
- location (642, 1423)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "errorPage" @13
- Parent_View @9
- location (-132, 410)
- stereotype TRUE
- line_color 3342489
- quidu "39045E7401C1"
- client @9
- supplier @8
- vertices (list Points
- (588, 1354)
- (588, 1278))
- line_style 3
- origin_attachment (588, 1354)
- terminal_attachment (588, 1278))))
- (object ClassView "Class" "Logical View::webapplication::FormLoginConfig" @14
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3936, 2448)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @14
- location (3704, 2342)
- fill_color 13434879
- nlines 1
- max_width 464
- justify 0
- label "FormLoginConfig")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07D390296"
- compartment (object Compartment
- Parent_View @14
- location (3704, 2403)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 463)
- width 482
- height 236
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::WebType" @15
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1776, 2480)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @15
- location (1674, 2429)
- fill_color 13434879
- nlines 1
- max_width 204
- justify 0
- label "WebType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0A1F70294"
- width 222
- height 126
- annotation 8
- autoResize TRUE)
- (object InheritTreeView "" @16
- location (1776, 2635)
- line_color 3342489
- fill_color 13434879
- supplier @15
- vertices (list Points
- (1776, 2635)
- (1776, 2543)))
- (object InheritView "" @17
- stereotype TRUE
- line_color 3342489
- quidu "38C0A2900258"
- client @3
- supplier @15
- vertices (list Points
- (1949, 2739)
- (1949, 2635))
- line_style 3
- origin_attachment (1949, 2739)
- terminal_attachment (1949, 2635)
- drawSupplier @16)
- (object InheritView "" @18
- stereotype TRUE
- line_color 3342489
- quidu "38C0A28C02AD"
- client @2
- supplier @15
- vertices (list Points
- (1519, 2739)
- (1519, 2635))
- line_style 3
- origin_attachment (1519, 2739)
- terminal_attachment (1519, 2635)
- drawSupplier @16)
- (object ClassView "Class" "Logical View::common::SecurityRoleRef" @19
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (241, 1782)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @19
- location (44, 1603)
- fill_color 13434879
- nlines 2
- max_width 394
- justify 0
- label "SecurityRoleRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "371BC7A0025C"
- compartment (object Compartment
- Parent_View @19
- location (44, 1708)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 391)
- width 412
- height 382
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::LocalEncodingMapping" @20
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3248, 256)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @20
- location (3022, 150)
- fill_color 13434879
- nlines 1
- max_width 452
- justify 0
- label "LocalEncodingMapping")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4D56F20170"
- compartment (object Compartment
- Parent_View @20
- location (3022, 211)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 356)
- width 470
- height 236
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::ContextParam" @21
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1088, 1296)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @21
- location (943, 1255)
- nlines 1
- max_width 290
- justify 0
- label "ContextParam")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "38C078B602A6"
- width 308
- height 107
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::ErrorPage" @22
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (304, 592)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @22
- location (136, 511)
- fill_color 13434879
- nlines 1
- max_width 336
- justify 0
- label "ErrorPage")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07ACF03E2"
- compartment (object Compartment
- Parent_View @22
- location (136, 572)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 335)
- width 354
- height 186
- annotation 8
- autoResize TRUE)
- (object InheritTreeView "" @23
- location (304, 800)
- line_color 3342489
- fill_color 13434879
- supplier @22
- vertices (list Points
- (304, 800)
- (304, 685)))
- (object InheritView "" @24
- stereotype TRUE
- line_color 3342489
- quidu "39883E3A0058"
- client @8
- supplier @22
- vertices (list Points
- (447, 1153)
- (447, 800))
- line_style 3
- origin_attachment (447, 1153)
- terminal_attachment (447, 800)
- drawSupplier @23)
- (object InheritView "" @25
- stereotype TRUE
- line_color 3342489
- quidu "39883E9400A8"
- client @4
- supplier @22
- vertices (list Points
- (209, 867)
- (209, 800))
- line_style 3
- origin_attachment (209, 867)
- terminal_attachment (209, 800)
- drawSupplier @23)
- (object ClassView "Class" "Logical View::webapplication::WelcomeFileList" @26
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (272, 320)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @26
- location (100, 279)
- fill_color 13434879
- nlines 1
- max_width 344
- justify 0
- label "WelcomeFileList")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07AAD01A8"
- width 362
- height 107
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::TagLibRef" @27
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1280, 144)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @27
- location (1057, 38)
- fill_color 13434879
- nlines 1
- max_width 446
- justify 0
- label "TagLibRef")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07B3002E7"
- compartment (object Compartment
- Parent_View @27
- location (1057, 99)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 444)
- width 464
- height 236
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::SecurityConstraint" @28
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1712, 128)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @28
- location (1528, 87)
- fill_color 13434879
- nlines 1
- max_width 368
- justify 0
- label "SecurityConstraint")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07B6A02AE"
- width 386
- height 107
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::LoginConfig" @29
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3840, 1792)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @29
- location (3469, 1661)
- fill_color 13434879
- nlines 1
- max_width 742
- justify 0
- label "LoginConfig")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07D0F006F"
- compartment (object Compartment
- Parent_View @29
- location (3469, 1722)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 741)
- width 760
- height 286
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$22" @30
- location (3918, 2132)
- stereotype TRUE
- line_color 3342489
- quidu "38C1248900BE"
- roleview_list (list RoleViews
- (object RoleView "formLoginConfig" @31
- Parent_View @30
- location (291, 263)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @32
- Parent_View @31
- location (4103, 2263)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 327
- justify 0
- label "+formLoginConfig"
- pctDist 0.671498
- height 185
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C12489030D"
- client @30
- supplier @14
- vertices (list Points
- (3918, 2132)
- (3918, 2329))
- line_style 3
- origin_attachment (3918, 2132)
- terminal_attachment (3918, 2329)
- label (object SegLabel @33
- Parent_View @31
- location (3972, 2308)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "loginConfig" @34
- Parent_View @30
- location (291, 263)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @35
- Parent_View @34
- location (4089, 2033)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 229
- justify 0
- label "+loginConfig"
- pctDist 0.500139
- height 171
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C124890303"
- client @30
- supplier @29
- vertices (list Points
- (3918, 2132)
- (3918, 1935))
- line_style 3
- origin_attachment (3918, 2132)
- terminal_attachment (3918, 1935)
- label (object SegLabel @36
- Parent_View @34
- location (3992, 1971)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.820777
- height 74
- orientation 1))))
- (object ClassView "Class" "Logical View::webapplication::MimeMapping" @37
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2848, 1888)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @37
- location (2656, 1782)
- fill_color 13434879
- nlines 1
- max_width 384
- justify 0
- label "MimeMapping")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07A7500FE"
- compartment (object Compartment
- Parent_View @37
- location (2656, 1843)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 381)
- width 402
- height 236
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::SessionConfig" @38
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2640, 2304)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @38
- location (2431, 2223)
- fill_color 13434879
- nlines 1
- max_width 418
- justify 0
- label "SessionConfig")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07A5301BD"
- compartment (object Compartment
- Parent_View @38
- location (2431, 2284)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 416)
- width 436
- height 186
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::ServletMapping" @39
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1968, 2192)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @39
- location (1782, 2086)
- fill_color 13434879
- nlines 1
- max_width 372
- justify 0
- label "ServletMapping")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C079BD02B9"
- compartment (object Compartment
- Parent_View @39
- location (1782, 2147)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 369)
- width 390
- height 236
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::Servlet" @40
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (992, 2416)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @40
- location (666, 2310)
- fill_color 13434879
- nlines 1
- max_width 652
- justify 0
- label "Servlet")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C079140251"
- compartment (object Compartment
- Parent_View @40
- location (666, 2371)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 650)
- width 670
- height 236
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$15" @41
- location (1496, 2475)
- stereotype TRUE
- line_color 3342489
- quidu "38C122AC014A"
- roleview_list (list RoleViews
- (object RoleView "webType" @42
- Parent_View @41
- location (760, 171)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @43
- Parent_View @42
- location (1523, 2509)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label "+webType"
- pctDist 0.166667
- height 34
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C122AD0015"
- client @41
- supplier @15
- vertices (list Points
- (1496, 2475)
- (1665, 2475))
- line_style 3
- origin_attachment (1496, 2475)
- terminal_attachment (1665, 2475)
- label (object SegLabel @44
- Parent_View @42
- location (1647, 2529)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "servlet" @45
- Parent_View @41
- location (760, 171)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "38C122AD0001"
- client @41
- supplier @40
- vertices (list Points
- (1496, 2475)
- (1327, 2475))
- line_style 3
- origin_attachment (1496, 2475)
- terminal_attachment (1327, 2475)
- label (object SegLabel @46
- Parent_View @45
- location (1368, 2526)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.763636
- height 51
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$24" @47
- location (1609, 2352)
- stereotype TRUE
- line_color 3342489
- quidu "390460AA0189"
- roleview_list (list RoleViews
- (object RoleView "servlet" @48
- Parent_View @47
- location (-39, 144)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @49
- Parent_View @48
- location (1457, 2312)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 245
- justify 0
- label "+servlet"
- pctDist 0.543478
- height 41
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "390460AB0234"
- client @47
- supplier @40
- vertices (list Points
- (1609, 2352)
- (1327, 2352))
- line_style 3
- origin_attachment (1609, 2352)
- terminal_attachment (1327, 2352)
- label (object SegLabel @50
- Parent_View @48
- location (1356, 2406)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$25" @51
- Parent_View @47
- location (-39, 144)
- stereotype TRUE
- line_color 3342489
- quidu "390460AB02B6"
- client @47
- supplier @39
- vertices (list Points
- (1609, 2352)
- (1848, 2352)
- (1848, 2310))
- line_style 3
- origin_attachment (1609, 2352)
- terminal_attachment (1848, 2310))))
- (object AssociationViewNew "$UNNAMED$18" @52
- location (368, 2293)
- stereotype TRUE
- line_color 3342489
- quidu "38C122C00199"
- roleview_list (list RoleViews
- (object RoleView "securityRoleRefs" @53
- Parent_View @52
- location (-688, -11)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @54
- Parent_View @53
- location (551, 2046)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 540
- justify 0
- label "+securityRoleRefs"
- pctDist 0.770492
- height 183
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C122C1029F"
- client @52
- supplier @19
- vertices (list Points
- (368, 2293)
- (368, 1973))
- line_style 3
- origin_attachment (368, 2293)
- terminal_attachment (368, 1973)
- label (object SegLabel @55
- Parent_View @53
- location (439, 2172)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.377049
- height 71
- orientation 1))
- (object RoleView "$UNNAMED$19" @56
- Parent_View @52
- location (-688, -11)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @57
- Parent_View @56
- location (467, 2257)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 245
- justify 0
- label ""
- pctDist 0.455285
- height 97
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C122C1028B"
- client @52
- supplier @40
- vertices (list Points
- (368, 2293)
- (368, 2353)
- (657, 2353))
- line_style 3
- origin_attachment (368, 2293)
- terminal_attachment (657, 2353))))
- (object ClassView "Class" "Logical View::common::SecurityRole" @58
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1238, 1770)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @58
- location (1041, 1641)
- fill_color 13434879
- nlines 1
- max_width 394
- justify 0
- label "SecurityRole")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C031FE012D"
- compartment (object Compartment
- Parent_View @58
- location (1041, 1746)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 391)
- width 412
- height 282
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "" @59
- location (716, 1835)
- stereotype TRUE
- line_color 3342489
- quidu "3904632A005C"
- roleview_list (list RoleViews
- (object RoleView "" @60
- Parent_View @59
- location (-372, 139)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @61
- Parent_View @60
- location (541, 1789)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 505
- justify 0
- label ""
- pctDist 0.671141
- height 63
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3904632B01BC"
- client @59
- supplier @19
- vertices (list Points
- (716, 1835)
- (716, 1851)
- (447, 1851))
- line_style 3
- origin_attachment (716, 1835)
- terminal_attachment (447, 1851)
- label (object SegLabel @62
- Parent_View @60
- location (588, 1851)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 5
- anchor_loc 1
- nlines 1
- max_width 244
- justify 0
- label "name : String"
- pctDist 0.900000
- height 12
- orientation 1))
- (object RoleView "/linkedSecurityRole" @63
- Parent_View @59
- location (-372, 139)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @64
- Parent_View @63
- location (866, 1728)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 602
- justify 0
- label "+/linkedSecurityRole"
- pctDist 0.500000
- height 92
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3904632B016C"
- client @59
- supplier @58
- vertices (list Points
- (716, 1835)
- (716, 1819)
- (1032, 1819))
- line_style 3
- origin_attachment (716, 1835)
- terminal_attachment (1032, 1819)
- label (object SegLabel @65
- Parent_View @63
- location (999, 1873)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))))
- (object ClassView "Class" "Logical View::common::ParamValue" @66
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (778, 969)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @66
- location (581, 815)
- fill_color 13434879
- nlines 1
- max_width 394
- justify 0
- label "ParamValue")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4C221202C1"
- compartment (object Compartment
- Parent_View @66
- location (581, 920)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 391)
- width 412
- height 332
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::jsp::JSPConfig" @67
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (688, 192)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @67
- location (551, 114)
- fill_color 13434879
- nlines 1
- max_width 274
- justify 0
- label "JSPConfig")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4D4A3A01C8"
- width 292
- height 180
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::MessageDestination" @68
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (3040, 1168)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @68
- location (2837, 1064)
- fill_color 13434879
- nlines 1
- max_width 406
- justify 0
- label "MessageDestination")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4C211001CF"
- compartment (object Compartment
- Parent_View @68
- location (2837, 1169)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 294)
- width 424
- height 232
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::LocalEncodingMappingList" @69
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2032, 272)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @69
- location (1769, 221)
- fill_color 13434879
- nlines 1
- max_width 526
- justify 0
- label "LocalEncodingMappingList")
- icon_style "Icon"
- line_color 10949559
- fill_color 16711935
- quidu "3E4D56DA023E"
- width 544
- height 126
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$56" @70
- location (2658, 263)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D57140378"
- roleview_list (list RoleViews
- (object RoleView "localEncodingMappings" @71
- Parent_View @70
- location (604, 13)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @72
- Parent_View @71
- location (2704, 208)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 460
- justify 0
- label "+localEncodingMappings"
- pctDist 0.130252
- height 55
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D57150135"
- client @70
- supplier @20
- vertices (list Points
- (2658, 263)
- (3012, 259))
- line_style 0
- label (object SegLabel @73
- Parent_View @71
- location (2926, 313)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.755633
- height 53
- orientation 1))
- (object RoleView "$UNNAMED$57" @74
- Parent_View @70
- location (604, 13)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D5715013F"
- client @70
- supplier @69
- vertices (list Points
- (2658, 263)
- (2304, 268))
- line_style 0)))
- (object ClassView "Class" "Logical View::webapplication::WebApp" @75
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1904, 1168)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @75
- location (1679, 1084)
- fill_color 13434879
- nlines 1
- max_width 450
- justify 0
- label "WebApp")
- stereotype (object ItemLabel
- Parent_View @75
- location (1679, 1034)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 450
- justify 0
- label "<<component>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C077FB0352"
- compartment (object Compartment
- Parent_View @75
- location (1679, 1145)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 447)
- width 468
- height 292
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$0" @76
- location (1455, 1237)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CE60213"
- roleview_list (list RoleViews
- (object RoleView "webApp" @77
- Parent_View @76
- location (1135, -155)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @78
- Parent_View @77
- location (1622, 1169)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 267
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CE8000D"
- client @76
- supplier @75
- vertices (list Points
- (1455, 1237)
- (1669, 1204))
- line_style 0
- label (object SegLabel @79
- Parent_View @77
- location (1655, 1260)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "contexts" @80
- Parent_View @76
- location (1135, -155)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @81
- Parent_View @80
- location (1363, 1205)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 289
- justify 0
- label "+contexts"
- pctDist 0.396886
- height 48
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CE8000E"
- client @76
- supplier @21
- vertices (list Points
- (1455, 1237)
- (1242, 1271))
- line_style 0
- label (object SegLabel @82
- Parent_View @80
- location (1312, 1306)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 74
- justify 0
- label "0..n"
- pctDist 0.707751
- height 46
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$1" @83
- location (1075, 869)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CF301A3"
- roleview_list (list RoleViews
- (object RoleView "webApp" @84
- Parent_View @83
- location (707, -75)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @85
- Parent_View @84
- location (1563, 1001)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 267
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CF4026D"
- client @83
- supplier @75
- vertices (list Points
- (1075, 869)
- (1669, 1083))
- line_style 0
- label (object SegLabel @86
- Parent_View @84
- location (1591, 1112)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "errorPages" @87
- Parent_View @83
- location (707, -75)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @88
- Parent_View @87
- location (615, 659)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 364
- justify 0
- label "+errorPages"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CF40277"
- client @83
- supplier @22
- vertices (list Points
- (1075, 869)
- (481, 655))
- line_style 0
- label (object SegLabel @89
- Parent_View @87
- location (525, 728)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 74
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$2" @90
- location (1021, 709)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CF7034E"
- roleview_list (list RoleViews
- (object RoleView "webApp" @91
- Parent_View @90
- location (669, 149)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @92
- Parent_View @91
- location (1558, 942)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 267
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CF803B3"
- client @90
- supplier @75
- vertices (list Points
- (1021, 709)
- (1669, 1045))
- line_style 0
- label (object SegLabel @93
- Parent_View @91
- location (1579, 1059)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "fileList" @94
- Parent_View @90
- location (669, 149)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @95
- Parent_View @94
- location (523, 404)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 241
- justify 0
- label "+fileList"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CF803B4"
- client @90
- supplier @26
- vertices (list Points
- (1021, 709)
- (374, 373))
- line_style 0
- label (object SegLabel @96
- Parent_View @94
- location (386, 423)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.954993
- height 39
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$3" @97
- location (1582, 641)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CFB0281"
- roleview_list (list RoleViews
- (object RoleView "webApp" @98
- Parent_View @97
- location (1086, 401)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @99
- Parent_View @98
- location (1803, 924)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 267
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CFD00A3"
- client @97
- supplier @75
- vertices (list Points
- (1582, 641)
- (1813, 1021))
- line_style 0
- label (object SegLabel @100
- Parent_View @98
- location (1745, 1011)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "tagLibs" @101
- Parent_View @97
- location (1086, 401)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @102
- Parent_View @101
- location (1434, 318)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 258
- justify 0
- label "+tagLibs"
- pctDist 0.799648
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11CFD00A4"
- client @97
- supplier @27
- vertices (list Points
- (1582, 641)
- (1351, 262))
- line_style 0
- label (object SegLabel @103
- Parent_View @101
- location (1329, 328)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 74
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$4" @104
- location (1799, 601)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D000134"
- roleview_list (list RoleViews
- (object RoleView "webApp" @105
- Parent_View @104
- location (647, 329)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @106
- Parent_View @105
- location (1821, 944)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 267
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D01018F"
- client @104
- supplier @75
- vertices (list Points
- (1799, 601)
- (1877, 1021))
- line_style 0
- label (object SegLabel @107
- Parent_View @105
- location (1922, 969)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "constraints" @108
- Parent_View @104
- location (647, 329)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @109
- Parent_View @108
- location (1869, 348)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 364
- justify 0
- label "+constraints"
- pctDist 0.558074
- height 115
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D010199"
- client @104
- supplier @28
- vertices (list Points
- (1799, 601)
- (1721, 181))
- line_style 0
- label (object SegLabel @110
- Parent_View @108
- location (1837, 400)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 74
- justify 0
- label "0..n"
- pctDist 0.449356
- height 74
- orientation 1)
- label (object SegLabel @111
- Parent_View @108
- location (1854, 290)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 3
- anchor_loc 1
- nlines 1
- max_width 163
- justify 0
- label "{ordered}"
- pctDist 0.697317
- height 111
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$5" @112
- location (2798, 1456)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D110188"
- roleview_list (list RoleViews
- (object RoleView "webApp" @113
- Parent_View @112
- location (30, -48)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @114
- Parent_View @113
- location (2283, 1247)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 267
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D120067"
- client @112
- supplier @75
- vertices (list Points
- (2798, 1456)
- (2138, 1243))
- line_style 0
- label (object SegLabel @115
- Parent_View @113
- location (2188, 1315)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "loginConfig" @116
- Parent_View @112
- location (30, -48)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @117
- Parent_View @116
- location (3339, 1587)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 369
- justify 0
- label "+loginConfig"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D120071"
- client @112
- supplier @29
- vertices (list Points
- (2798, 1456)
- (3459, 1669))
- line_style 0
- label (object SegLabel @118
- Parent_View @116
- location (3376, 1698)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 74
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$6" @119
- location (2394, 1541)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D1501C0"
- roleview_list (list RoleViews
- (object RoleView "webApp" @120
- Parent_View @119
- location (-262, -411)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @121
- Parent_View @120
- location (2180, 1328)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 267
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D17023B"
- client @119
- supplier @75
- vertices (list Points
- (2394, 1541)
- (2095, 1314))
- line_style 0
- label (object SegLabel @122
- Parent_View @120
- location (2094, 1380)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "mimeMappings" @123
- Parent_View @119
- location (-262, -411)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @124
- Parent_View @123
- location (2869, 1728)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 502
- justify 0
- label "+mimeMappings"
- pctDist 1.308311
- height 141
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D170245"
- client @119
- supplier @37
- vertices (list Points
- (2394, 1541)
- (2693, 1769))
- line_style 0
- label (object SegLabel @125
- Parent_View @123
- location (2615, 1774)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 74
- justify 0
- label "0..n"
- pctDist 0.839808
- height 51
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$7" @126
- location (2288, 1762)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D1B0327"
- roleview_list (list RoleViews
- (object RoleView "webApp" @127
- Parent_View @126
- location (192, -622)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @128
- Parent_View @127
- location (2023, 1427)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 267
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D1C01F2"
- client @126
- supplier @75
- vertices (list Points
- (2288, 1762)
- (1998, 1314))
- line_style 0
- label (object SegLabel @129
- Parent_View @127
- location (2072, 1330)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "sessionConfig" @130
- Parent_View @126
- location (192, -622)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @131
- Parent_View @130
- location (2361, 2141)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 492
- justify 0
- label "+sessionConfig"
- pctDist 0.668862
- height 146
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D1C01F3"
- client @126
- supplier @38
- vertices (list Points
- (2288, 1762)
- (2579, 2210))
- line_style 0
- label (object SegLabel @132
- Parent_View @130
- location (2437, 2089)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.665477
- height 54
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$8" @133
- location (1936, 1693)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D1F02AB"
- roleview_list (list RoleViews
- (object RoleView "webApp" @134
- Parent_View @133
- location (496, -723)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @135
- Parent_View @134
- location (1877, 1393)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 303
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D200298"
- client @133
- supplier @75
- vertices (list Points
- (1936, 1693)
- (1913, 1314))
- line_style 0
- label (object SegLabel @136
- Parent_View @134
- location (1969, 1351)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "servletMappings" @137
- Parent_View @133
- location (496, -723)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @138
- Parent_View @137
- location (1787, 2031)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 543
- justify 0
- label "+servletMappings"
- pctDist 0.859756
- height 171
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D2002A2"
- client @133
- supplier @39
- vertices (list Points
- (1936, 1693)
- (1960, 2073))
- line_style 0
- label (object SegLabel @139
- Parent_View @137
- location (1916, 1977)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 74
- justify 0
- label "0..n"
- pctDist 0.745715
- height 39
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$9" @140
- location (1437, 1805)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D230120"
- roleview_list (list RoleViews
- (object RoleView "webApp" @141
- Parent_View @140
- location (637, -643)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @142
- Parent_View @141
- location (1691, 1389)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 267
- justify 0
- label "+webApp"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D2402DA"
- client @140
- supplier @75
- vertices (list Points
- (1437, 1805)
- (1797, 1314))
- line_style 0
- label (object SegLabel @143
- Parent_View @141
- location (1805, 1395)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "servlets" @144
- Parent_View @140
- location (637, -643)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @145
- Parent_View @144
- location (1233, 2207)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 281
- justify 0
- label "+servlets"
- pctDist 0.730379
- height 73
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D2402E4"
- client @140
- supplier @40
- vertices (list Points
- (1437, 1805)
- (1077, 2297))
- line_style 0
- label (object SegLabel @146
- Parent_View @144
- location (1195, 2256)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 74
- justify 0
- label "0..n"
- pctDist 0.833390
- height 71
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$10" @147
- location (1566, 1471)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D2701DA"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$11" @148
- Parent_View @147
- location (1198, -417)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @149
- Parent_View @148
- location (1677, 1316)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 267
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D2802C2"
- client @147
- supplier @75
- vertices (list Points
- (1566, 1471)
- (1740, 1314))
- line_style 0
- label (object SegLabel @150
- Parent_View @148
- location (1758, 1370)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 80
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "securityRoles" @151
- Parent_View @147
- location (1198, -417)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @152
- Parent_View @151
- location (1401, 1566)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 457
- justify 0
- label "+securityRoles"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C11D2802CC"
- client @147
- supplier @58
- vertices (list Points
- (1566, 1471)
- (1392, 1628))
- line_style 0
- label (object SegLabel @153
- Parent_View @151
- location (1446, 1652)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 74
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$44" @154
- location (1326, 1065)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D42CA027F"
- roleview_list (list RoleViews
- (object RoleView "contextParams" @155
- Parent_View @154
- location (-577, -102)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @156
- Parent_View @155
- location (1186, 981)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 316
- justify 0
- label "+contextParams"
- pctDist 0.437430
- height 59
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D42CB0118"
- client @154
- supplier @66
- vertices (list Points
- (1326, 1065)
- (984, 1004))
- line_style 0
- label (object SegLabel @157
- Parent_View @155
- location (1011, 1063)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$45" @158
- Parent_View @154
- location (-577, -102)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D42CB0122"
- client @154
- supplier @75
- vertices (list Points
- (1326, 1065)
- (1669, 1126))
- line_style 0)))
- (object AssociationViewNew "$UNNAMED$50" @159
- location (1261, 651)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D4BFF01C0"
- roleview_list (list RoleViews
- (object RoleView "jspConfig" @160
- Parent_View @159
- location (-642, -516)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @161
- Parent_View @160
- location (827, 382)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 190
- justify 0
- label "+jspConfig"
- pctDist 0.861516
- height 62
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D4C000225"
- client @159
- supplier @67
- vertices (list Points
- (1261, 651)
- (800, 282))
- line_style 0
- label (object SegLabel @162
- Parent_View @160
- location (760, 323)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 1.012447
- height 57
- orientation 0))
- (object RoleView "$UNNAMED$51" @163
- Parent_View @159
- location (-642, -516)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D4C000227"
- client @159
- supplier @75
- vertices (list Points
- (1261, 651)
- (1722, 1021))
- line_style 0)))
- (object InheritView "" @164
- stereotype TRUE
- line_color 10949559
- quidu "3E4D55CA03E2"
- client @75
- supplier @6
- vertices (list Points
- (2138, 1098)
- (2780, 908))
- line_style 0)
- (object AssociationViewNew "$UNNAMED$54" @165
- location (2482, 1168)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D56A50224"
- roleview_list (list RoleViews
- (object RoleView "messageDestinations" @166
- Parent_View @165
- location (579, 1)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @167
- Parent_View @166
- location (2562, 1122)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 424
- justify 0
- label "+messageDestinations"
- pctDist 0.231859
- height 47
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D56A60257"
- client @165
- supplier @68
- vertices (list Points
- (2482, 1168)
- (2827, 1168))
- line_style 0
- label (object SegLabel @168
- Parent_View @166
- location (2768, 1219)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.827856
- height 51
- orientation 1))
- (object RoleView "$UNNAMED$55" @169
- Parent_View @165
- location (579, 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D56A60261"
- client @165
- supplier @75
- vertices (list Points
- (2482, 1168)
- (2138, 1168))
- line_style 0)))
- (object AssociationViewNew "$UNNAMED$58" @170
- location (1974, 678)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D572C0083"
- roleview_list (list RoleViews
- (object RoleView "localEncodingMappingList" @171
- Parent_View @170
- location (71, -489)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @172
- Parent_View @171
- location (2300, 370)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 496
- justify 0
- label "+localEncodingMappingList"
- pctDist 1.015374
- height 279
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D572C02DC"
- client @170
- supplier @69
- vertices (list Points
- (1974, 678)
- (2023, 335))
- line_style 0
- label (object SegLabel @173
- Parent_View @171
- location (1953, 375)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.861045
- height 65
- orientation 0))
- (object RoleView "$UNNAMED$59" @174
- Parent_View @170
- location (71, -489)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D572C02DE"
- client @170
- supplier @75
- vertices (list Points
- (1974, 678)
- (1925, 1021))
- line_style 0)))))
- (object ClassDiagram "Security Constraint"
- quid "38C08DCB020A"
- title "Security Constraint"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::webapplication::HTTPMethodTypeEnum" @175
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (304, 1840)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @175
- location (74, 1643)
- fill_color 13434879
- nlines 1
- max_width 460
- justify 0
- label "HTTPMethodTypeEnum")
- stereotype (object ItemLabel
- Parent_View @175
- location (74, 1593)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 460
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "38C0A2E200C6"
- compartment (object Compartment
- Parent_View @175
- location (74, 1704)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 8
- max_width 228)
- width 478
- height 518
- annotation 8
- autoResize TRUE)
- (object NoteView @176
- location (234, 1187)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @176
- location (56, 1009)
- fill_color 13434879
- nlines 7
- max_width 321
- label
-|@version J2EE1.4
-|urlPattern
-|httpMethod
- )
- line_color 10949559
- fill_color 15778042
- width 381
- height 369)
- (object ClassView "Class" "Logical View::webapplication::TransportGuaranteeType" @177
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2752, 688)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @177
- location (2514, 585)
- fill_color 13434879
- nlines 1
- max_width 476
- justify 0
- label "TransportGuaranteeType")
- stereotype (object ItemLabel
- Parent_View @177
- location (2514, 535)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 476
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "390461A9018F"
- compartment (object Compartment
- Parent_View @177
- location (2514, 646)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 338)
- width 494
- height 330
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::DisplayName" @178
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2503, 175)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @178
- location (2287, 46)
- fill_color 13434879
- nlines 1
- max_width 432
- justify 0
- label "DisplayName")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A9922000E"
- compartment (object Compartment
- Parent_View @178
- location (2287, 161)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 466)
- width 450
- height 282
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::UserDataConstraint" @179
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2208, 1248)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @179
- location (1772, 1147)
- fill_color 13434879
- nlines 1
- max_width 872
- justify 0
- label "UserDataConstraint")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07CB800B0"
- compartment (object Compartment
- Parent_View @179
- location (1772, 1208)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 878)
- width 890
- height 226
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::AuthConstraint" @180
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1488, 832)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @180
- location (1280, 731)
- fill_color 13434879
- nlines 1
- max_width 416
- justify 0
- label "AuthConstraint")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07C8001A0"
- compartment (object Compartment
- Parent_View @180
- location (1280, 792)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 456)
- width 434
- height 226
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::SecurityConstraint" @181
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1088, 128)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @181
- location (890, 50)
- fill_color 13434879
- nlines 1
- max_width 396
- justify 0
- label "SecurityConstraint")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07B6A02AE"
- compartment (object Compartment
- Parent_View @181
- location (890, 111)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 428)
- width 414
- height 180
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$52" @182
- location (1786, 88)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D51010264"
- roleview_list (list RoleViews
- (object RoleView "displayNames" @183
- Parent_View @182
- location (698, -40)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @184
- Parent_View @183
- location (2118, 45)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 286
- justify 0
- label "+displayNames"
- pctDist 0.675510
- height 44
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D5102025B"
- client @182
- supplier @178
- vertices (list Points
- (1786, 88)
- (2278, 88))
- line_style 3
- origin_attachment (1786, 88)
- terminal_attachment (2278, 88)
- label (object SegLabel @185
- Parent_View @183
- location (2228, 142)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$53" @186
- Parent_View @182
- location (698, -40)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D51020265"
- client @182
- supplier @181
- vertices (list Points
- (1786, 88)
- (1295, 88))
- line_style 3
- origin_attachment (1786, 88)
- terminal_attachment (1295, 88))))
- (object AssociationViewNew "$UNNAMED$14" @187
- location (2097, 234)
- stereotype TRUE
- line_color 3342489
- quidu "38C121F70208"
- roleview_list (list RoleViews
- (object RoleView "secConstraint" @188
- Parent_View @187
- location (257, -582)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @189
- Parent_View @188
- location (1599, 208)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 276
- justify 0
- label "+secConstraint"
- pctDist 0.662192
- height 73
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C121F801EC"
- client @187
- supplier @181
- vertices (list Points
- (2097, 234)
- (2097, 135)
- (1295, 135))
- line_style 3
- origin_attachment (2097, 234)
- terminal_attachment (1295, 135)
- label (object SegLabel @190
- Parent_View @188
- location (1479, 121)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.796421
- height 15
- orientation 1))
- (object RoleView "userDataConstraint" @191
- Parent_View @187
- location (257, -582)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @192
- Parent_View @191
- location (2296, 959)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 372
- justify 0
- label "+userDataConstraint"
- pctDist 0.805369
- height 199
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C121F801ED"
- client @187
- supplier @179
- vertices (list Points
- (2097, 234)
- (2097, 1135))
- line_style 3
- origin_attachment (2097, 234)
- terminal_attachment (2097, 1135)
- label (object SegLabel @193
- Parent_View @191
- location (2151, 1044)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$13" @194
- location (1412, 422)
- stereotype TRUE
- line_color 3342489
- quidu "38C121F200E9"
- roleview_list (list RoleViews
- (object RoleView "secConstraint" @195
- Parent_View @194
- location (324, -362)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @196
- Parent_View @195
- location (1540, 216)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 276
- justify 0
- label "+secConstraint"
- pctDist 0.648069
- height 149
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C121F3039D"
- client @194
- supplier @181
- vertices (list Points
- (1412, 422)
- (1391, 422)
- (1391, 188)
- (1295, 188))
- line_style 3
- origin_attachment (1412, 422)
- terminal_attachment (1295, 188)
- label (object SegLabel @197
- Parent_View @195
- location (1330, 135)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "authConstraint" @198
- Parent_View @194
- location (324, -362)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @199
- Parent_View @198
- location (1586, 610)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 288
- justify 0
- label "+authConstraint"
- pctDist 0.662393
- height 152
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C121F303A7"
- client @194
- supplier @180
- vertices (list Points
- (1412, 422)
- (1434, 422)
- (1434, 719))
- line_style 3
- origin_attachment (1412, 422)
- terminal_attachment (1434, 719)
- label (object SegLabel @200
- Parent_View @198
- location (1488, 687)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object ClassView "Class" "Logical View::common::Description" @201
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1247, 1695)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @201
- location (1119, 1566)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @201
- location (1119, 1681)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 284)
- width 274
- height 282
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$60" @202
- location (1860, 1625)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 8421504
- quidu "3E4D515001BD"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @203
- Parent_View @202
- location (-44, 889)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @204
- Parent_View @203
- location (1615, 1699)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.516224
- height 74
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D515101BE"
- client @202
- supplier @201
- vertices (list Points
- (1860, 1625)
- (1384, 1625))
- line_style 3
- origin_attachment (1860, 1625)
- terminal_attachment (1384, 1625)
- label (object SegLabel @205
- Parent_View @203
- location (1432, 1679)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$61" @206
- Parent_View @202
- location (-44, 889)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D515101DC"
- client @202
- supplier @179
- vertices (list Points
- (1860, 1625)
- (2071, 1625)
- (2071, 1361))
- line_style 3
- origin_attachment (1860, 1625)
- terminal_attachment (2071, 1361))))
- (object AssociationViewNew "$UNNAMED$62" @207
- location (1331, 1263)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 8421504
- quidu "3E4D514D0317"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @208
- Parent_View @207
- location (195, 495)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @209
- Parent_View @208
- location (1149, 1437)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.649007
- height 143
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D514E0106"
- client @207
- supplier @201
- vertices (list Points
- (1331, 1263)
- (1291, 1263)
- (1291, 1554))
- line_style 3
- origin_attachment (1331, 1263)
- terminal_attachment (1291, 1554)
- label (object SegLabel @210
- Parent_View @208
- location (1372, 1462)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.721854
- height 81
- orientation 0))
- (object RoleView "$UNNAMED$63" @211
- Parent_View @207
- location (195, 495)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D514E0124"
- client @207
- supplier @180
- vertices (list Points
- (1331, 1263)
- (1371, 1263)
- (1371, 945))
- line_style 3
- origin_attachment (1331, 1263)
- terminal_attachment (1371, 945))))
- (object ClassView "Class" "Logical View::webapplication::WebResourceCollection" @212
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (592, 720)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @212
- location (158, 572)
- fill_color 13434879
- nlines 1
- max_width 868
- justify 0
- label "WebResourceCollection")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07B8703AB"
- compartment (object Compartment
- Parent_View @212
- location (158, 633)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 894)
- width 886
- height 320
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$12" @213
- location (494, 110)
- stereotype TRUE
- line_color 3342489
- quidu "38C121ED02D6"
- roleview_list (list RoleViews
- (object RoleView "secConstraint" @214
- Parent_View @213
- location (174, -658)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @215
- Parent_View @214
- location (770, 71)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 276
- justify 0
- label "+secConstraint"
- pctDist 0.715719
- height 40
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C121EE01E7"
- client @213
- supplier @181
- vertices (list Points
- (494, 110)
- (881, 110))
- line_style 3
- origin_attachment (494, 110)
- terminal_attachment (881, 110)
- label (object SegLabel @216
- Parent_View @214
- location (842, 164)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "webResourceCollections" @217
- Parent_View @213
- location (174, -658)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @218
- Parent_View @217
- location (685, 528)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 468
- justify 0
- label "+webResourceCollections"
- pctDist 0.939655
- height 251
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C121EE01F1"
- client @213
- supplier @212
- vertices (list Points
- (494, 110)
- (434, 110)
- (434, 560))
- line_style 3
- origin_attachment (494, 110)
- terminal_attachment (434, 560)
- label (object SegLabel @219
- Parent_View @217
- location (501, 481)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1..n"
- pctDist 0.847769
- height 67
- orientation 0))))
- (object AttachView "" @220
- stereotype TRUE
- line_color 3342489
- client @176
- supplier @212
- vertices (list Points
- (373, 1002)
- (466, 880))
- line_style 0)
- (object AssociationViewNew "$UNNAMED$64" @221
- location (691, 1474)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 8421504
- quidu "3E4D514B0089"
- roleview_list (list RoleViews
- (object RoleView "descriptions" @222
- Parent_View @221
- location (307, 722)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @223
- Parent_View @222
- location (889, 1610)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 260
- justify 0
- label "+descriptions"
- pctDist 0.627204
- height 39
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D514B03AA"
- client @221
- supplier @201
- vertices (list Points
- (691, 1474)
- (691, 1648)
- (1110, 1648))
- line_style 3
- origin_attachment (691, 1474)
- terminal_attachment (1110, 1648)
- label (object SegLabel @224
- Parent_View @222
- location (1008, 1690)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.828715
- height 42
- orientation 1))
- (object RoleView "$UNNAMED$65" @225
- Parent_View @221
- location (307, 722)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D514B03C8"
- client @221
- supplier @212
- vertices (list Points
- (691, 1474)
- (691, 880))
- line_style 3
- origin_attachment (691, 1474)
- terminal_attachment (691, 880))))))
- (object ClassDiagram "Servlet Descriptors"
- quid "38C08E5C01F5"
- title "Servlet Descriptors"
- documentation "The servlet-class element contains the fully qualified class name of the servlet."
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 1220
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @226
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (837, 2048)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @226
- location (659, 1970)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4D451F01FB"
- width 374
- height 180
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::ServletType" @227
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2000, 96)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @227
- location (1818, 18)
- fill_color 13434879
- nlines 1
- max_width 364
- justify 0
- label "ServletType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0A2320311"
- compartment (object Compartment
- Parent_View @227
- location (1818, 79)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 397)
- width 382
- height 180
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::JSPType" @228
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1424, 112)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @228
- location (1286, 34)
- fill_color 13434879
- nlines 1
- max_width 276
- justify 0
- label "JSPType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0A2640273"
- compartment (object Compartment
- Parent_View @228
- location (1286, 95)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 313)
- width 294
- height 180
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::InitParam" @229
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (288, 1136)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @229
- location (94, 1011)
- nlines 1
- max_width 388
- justify 0
- label "InitParam")
- icon_style "Icon"
- line_color 3342489
- fill_color 16777215
- quidu "38C08E9D0325"
- compartment (object Compartment
- Parent_View @229
- location (94, 1072)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- anchor 2
- nlines 4
- max_width 413)
- width 406
- height 274
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::SecurityRoleRef" @230
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1824, 752)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @230
- location (1646, 574)
- fill_color 13434879
- nlines 2
- max_width 356
- justify 0
- label "SecurityRoleRef")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "371BC7A0025C"
- compartment (object Compartment
- Parent_View @230
- location (1646, 689)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 391)
- width 374
- height 380
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::WebType" @231
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1792, 416)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @231
- location (1690, 366)
- fill_color 13434879
- nlines 1
- max_width 204
- justify 0
- label "WebType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0A1F70294"
- width 222
- height 124
- annotation 8
- autoResize TRUE)
- (object InheritView "" @232
- stereotype TRUE
- line_color 3342489
- quidu "38C0A28C02AD"
- client @227
- supplier @231
- vertices (list Points
- (1941, 186)
- (1832, 353))
- line_style 0)
- (object InheritView "" @233
- stereotype TRUE
- line_color 3342489
- quidu "38C0A2900258"
- client @228
- supplier @231
- vertices (list Points
- (1533, 202)
- (1716, 353))
- line_style 0)
- (object ClassView "Class" "Logical View::common::RunAsSpecifiedIdentity" @234
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1847, 1164)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @234
- location (1622, 1055)
- fill_color 13434879
- nlines 1
- max_width 450
- justify 0
- label "RunAsSpecifiedIdentity")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "39BF2C9E02C8"
- width 468
- height 242
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::ParamValue" @235
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (484, 1637)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @235
- location (307, 1484)
- fill_color 13434879
- nlines 1
- max_width 354
- justify 0
- label "ParamValue")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4C221202C1"
- compartment (object Compartment
- Parent_View @235
- location (307, 1599)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 391)
- width 372
- height 330
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::Servlet" @236
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (496, 336)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @236
- location (186, 235)
- fill_color 13434879
- nlines 1
- max_width 620
- justify 0
- label "Servlet")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C079140251"
- compartment (object Compartment
- Parent_View @236
- location (186, 296)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 650)
- width 638
- height 226
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$16" @237
- location (393, 723)
- stereotype TRUE
- line_color 3342489
- quidu "38C122B501BB"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$17" @238
- Parent_View @237
- location (73, -413)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @239
- Parent_View @238
- location (309, 532)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 144
- justify 0
- label ""
- pctDist 0.698718
- height 85
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C122B60145"
- client @237
- supplier @236
- vertices (list Points
- (393, 723)
- (393, 448))
- line_style 3
- origin_attachment (393, 723)
- terminal_attachment (393, 448)
- label (object SegLabel @240
- Parent_View @238
- location (465, 532)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.698718
- height 72
- orientation 1))
- (object RoleView "params" @241
- Parent_View @237
- location (73, -413)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @242
- Parent_View @241
- location (486, 916)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 165
- justify 0
- label "+params"
- pctDist 0.707182
- height 93
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C122B60159"
- client @237
- supplier @229
- vertices (list Points
- (393, 723)
- (393, 998))
- line_style 3
- origin_attachment (393, 723)
- terminal_attachment (393, 998)
- label (object SegLabel @243
- Parent_View @241
- location (350, 915)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.700637
- height 44
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$18" @244
- location (1310, 396)
- stereotype TRUE
- line_color 3342489
- quidu "38C122C00199"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$19" @245
- Parent_View @244
- location (-594, -772)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @246
- Parent_View @245
- location (897, 360)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.836449
- height 37
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C122C1028B"
- client @244
- supplier @236
- vertices (list Points
- (1310, 396)
- (815, 396))
- line_style 3
- origin_attachment (1310, 396)
- terminal_attachment (815, 396))
- (object RoleView "securityRoleRefs" @247
- Parent_View @244
- location (-594, -772)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @248
- Parent_View @247
- location (1573, 365)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 336
- justify 0
- label "+securityRoleRefs"
- pctDist 0.533816
- height 32
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C122C1029F"
- client @244
- supplier @230
- vertices (list Points
- (1310, 396)
- (1639, 396)
- (1639, 562))
- line_style 3
- origin_attachment (1310, 396)
- terminal_attachment (1639, 562)
- label (object SegLabel @249
- Parent_View @247
- location (1603, 448)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.770531
- height 37
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$15" @250
- location (1248, 359)
- stereotype TRUE
- line_color 3342489
- quidu "38C122AC014A"
- roleview_list (list RoleViews
- (object RoleView "webType" @251
- Parent_View @250
- location (112, 39)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @252
- Parent_View @251
- location (1562, 402)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 188
- justify 0
- label "+webType"
- pctDist 0.724390
- height 43
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C122AD0015"
- client @250
- supplier @231
- vertices (list Points
- (1248, 359)
- (1681, 359))
- line_style 3
- origin_attachment (1248, 359)
- terminal_attachment (1681, 359)
- label (object SegLabel @253
- Parent_View @251
- location (1637, 306)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "servlet" @254
- Parent_View @250
- location (112, 39)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @255
- Parent_View @254
- location (903, 401)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 141
- justify 0
- label "+servlet"
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C122AD0001"
- client @250
- supplier @236
- vertices (list Points
- (1248, 359)
- (815, 359))
- line_style 3
- origin_attachment (1248, 359)
- terminal_attachment (815, 359)
- label (object SegLabel @256
- Parent_View @254
- location (877, 322)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.858537
- height 38
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$42" @257
- location (746, 1169)
- stereotype TRUE
- line_color 3342489
- quidu "39982A2E0255"
- roleview_list (list RoleViews
- (object RoleView "$UNNAMED$43" @258
- Parent_View @257
- location (-334, 239)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @259
- Parent_View @258
- location (558, 622)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 450
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39982A2F018E"
- client @257
- supplier @236
- vertices (list Points
- (746, 1169)
- (599, 1169)
- (599, 449))
- line_style 3
- origin_attachment (746, 1169)
- terminal_attachment (599, 449))
- (object RoleView "runAs" @260
- Parent_View @257
- location (-334, 239)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @261
- Parent_View @260
- location (1516, 1223)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 136
- justify 0
- label "+runAs"
- pctDist 0.889843
- height 54
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39982A2F0184"
- client @257
- supplier @234
- vertices (list Points
- (746, 1169)
- (1613, 1169))
- line_style 3
- origin_attachment (746, 1169)
- terminal_attachment (1613, 1169)
- label (object SegLabel @262
- Parent_View @260
- location (1543, 1126)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.919886
- height 44
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$48" @263
- location (528, 960)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D46E70387"
- roleview_list (list RoleViews
- (object RoleView "initParams" @264
- Parent_View @263
- location (14, 570)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @265
- Parent_View @264
- location (404, 1406)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 228
- justify 0
- label "+initParams"
- pctDist 0.871622
- height 125
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D46E90005"
- client @263
- supplier @235
- vertices (list Points
- (528, 960)
- (528, 1472))
- line_style 3
- origin_attachment (528, 960)
- terminal_attachment (528, 1472)
- label (object SegLabel @266
- Parent_View @264
- location (582, 1421)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$49" @267
- Parent_View @263
- location (14, 570)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D46E90019"
- client @263
- supplier @236
- vertices (list Points
- (528, 960)
- (528, 449))
- line_style 3
- origin_attachment (528, 960)
- terminal_attachment (528, 449))))))
- (object ClassDiagram "WelcomeFile Relation"
- quid "38C0A8210287"
- title "WelcomeFile Relation"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::webapplication::WelcomeFileList" @268
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1120, 192)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @268
- location (948, 142)
- fill_color 13434879
- nlines 1
- max_width 344
- justify 0
- label "WelcomeFileList")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07AAD01A8"
- width 362
- height 124
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::WelcomeFile" @269
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1088, 672)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @269
- location (894, 594)
- fill_color 13434879
- nlines 1
- max_width 388
- justify 0
- label "WelcomeFile")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0A5A800E9"
- compartment (object Compartment
- Parent_View @269
- location (894, 655)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 419)
- width 406
- height 180
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$20" @270
- location (1003, 417)
- stereotype TRUE
- line_color 3342489
- quidu "38C123AF02C4"
- roleview_list (list RoleViews
- (object RoleView "fileList" @271
- Parent_View @270
- location (-69, -191)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @272
- Parent_View @271
- location (899, 287)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 144
- justify 0
- label "+fileList"
- pctDist 0.797101
- height 105
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C123B30111"
- client @270
- supplier @268
- vertices (list Points
- (1003, 417)
- (1003, 254))
- line_style 3
- origin_attachment (1003, 417)
- terminal_attachment (1003, 254)
- label (object SegLabel @273
- Parent_View @271
- location (1074, 291)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.775362
- height 71
- orientation 1))
- (object RoleView "file" @274
- Parent_View @270
- location (-69, -191)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @275
- Parent_View @274
- location (962, 548)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 72
- justify 0
- label "+file"
- pctDist 0.800000
- height 42
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C123B3011B"
- client @270
- supplier @269
- vertices (list Points
- (1003, 417)
- (1003, 581))
- line_style 3
- origin_attachment (1003, 417)
- terminal_attachment (1003, 581)
- label (object SegLabel @276
- Parent_View @274
- location (1058, 543)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.776978
- height 55
- orientation 0))))))
- (object ClassDiagram "WebResourceCollection Relation"
- quid "38C0A8600241"
- title "WebResourceCollection Relation"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 175
- origin_y 106
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::webapplication::HTTPMethodTypeEnum" @277
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1888, 688)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @277
- location (1658, 479)
- fill_color 13434879
- nlines 1
- max_width 460
- justify 0
- label "HTTPMethodTypeEnum")
- stereotype (object ItemLabel
- Parent_View @277
- location (1658, 429)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 460
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0A2E200C6"
- compartment (object Compartment
- Parent_View @277
- location (1658, 540)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 8
- max_width 228)
- width 478
- height 542
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::URLPatternType" @278
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (656, 864)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @278
- location (470, 783)
- fill_color 13434879
- nlines 1
- max_width 372
- justify 0
- label "URLPatternType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C0A2C50042"
- compartment (object Compartment
- Parent_View @278
- location (470, 844)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 369)
- width 390
- height 186
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::HTTPMethodType" @279
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1376, 832)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @279
- location (1176, 751)
- fill_color 13434879
- nlines 1
- max_width 400
- justify 0
- label "HTTPMethodType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E930B050065"
- compartment (object Compartment
- Parent_View @279
- location (1176, 812)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 397)
- width 418
- height 186
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::WebResourceCollection" @280
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1040, 240)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @280
- location (592, 84)
- fill_color 13434879
- nlines 1
- max_width 896
- justify 0
- label "WebResourceCollection")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07B8703AB"
- compartment (object Compartment
- Parent_View @280
- location (592, 145)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 894)
- width 914
- height 336
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$21" @281
- location (824, 589)
- stereotype TRUE
- line_color 3342489
- quidu "38C124090179"
- roleview_list (list RoleViews
- (object RoleView "resCollection" @282
- Parent_View @281
- location (136, -115)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @283
- Parent_View @282
- location (750, 472)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 264
- justify 0
- label "+resCollection"
- pctDist 0.289589
- height 126
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C1240A0256"
- client @281
- supplier @280
- vertices (list Points
- (824, 589)
- (935, 408))
- line_style 0
- label (object SegLabel @284
- Parent_View @282
- location (810, 513)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.274733
- height 53
- orientation 0))
- (object RoleView "URLs" @285
- Parent_View @281
- location (136, -115)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @286
- Parent_View @285
- location (627, 711)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 132
- justify 0
- label "+URLs"
- pctDist 0.976229
- height 106
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C1240A0260"
- client @281
- supplier @278
- vertices (list Points
- (824, 589)
- (713, 770))
- line_style 0
- label (object SegLabel @287
- Parent_View @285
- location (802, 739)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.663320
- height 60
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$66" @288
- location (1228, 573)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E930B11030B"
- roleview_list (list RoleViews
- (object RoleView "HTTPs" @289
- Parent_View @288
- location (183, 328)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @290
- Parent_View @289
- location (1189, 679)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 145
- justify 0
- label "+HTTPs"
- pctDist 0.381010
- height 87
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E930B1200DC"
- client @288
- supplier @279
- vertices (list Points
- (1228, 573)
- (1322, 738))
- line_style 0
- label (object SegLabel @291
- Parent_View @289
- location (1359, 695)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "resCollection" @292
- Parent_View @288
- location (183, 328)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @293
- Parent_View @292
- location (1332, 468)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 257
- justify 0
- label "+resCollection"
- pctDist 0.218163
- height 142
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E930B1200E6"
- client @288
- supplier @280
- vertices (list Points
- (1228, 573)
- (1135, 408))
- line_style 0
- label (object SegLabel @294
- Parent_View @292
- location (1100, 466)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.827573
- height 60
- orientation 0))))))
- (object ClassDiagram "loginConfig Relation"
- quid "38C0A8BF03E2"
- title "loginConfig Relation"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 13
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::webapplication::LoginConfig" @295
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1104, 208)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @295
- location (753, 83)
- fill_color 13434879
- nlines 1
- max_width 702
- justify 0
- label "LoginConfig")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07D0F006F"
- compartment (object Compartment
- Parent_View @295
- location (753, 144)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 742)
- width 720
- height 274
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::FormLoginConfig" @296
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1136, 896)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @296
- location (917, 795)
- fill_color 13434879
- nlines 1
- max_width 438
- justify 0
- label "FormLoginConfig")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C07D390296"
- compartment (object Compartment
- Parent_View @296
- location (917, 856)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 463)
- width 456
- height 226
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$22" @297
- location (1136, 564)
- stereotype TRUE
- line_color 3342489
- quidu "38C1248900BE"
- roleview_list (list RoleViews
- (object RoleView "loginConfig" @298
- Parent_View @297
- location (0, -332)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @299
- Parent_View @298
- location (1004, 369)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 228
- justify 0
- label "+loginConfig"
- pctDist 0.892952
- height 133
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "38C124890303"
- client @297
- supplier @295
- vertices (list Points
- (1136, 564)
- (1136, 345))
- line_style 3
- origin_attachment (1136, 564)
- terminal_attachment (1136, 345)
- label (object SegLabel @300
- Parent_View @298
- location (1190, 367)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "formLoginConfig" @301
- Parent_View @297
- location (0, -332)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @302
- Parent_View @301
- location (968, 748)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 327
- justify 0
- label "+formLoginConfig"
- pctDist 0.844073
- height 169
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "38C12489030D"
- client @297
- supplier @296
- vertices (list Points
- (1136, 564)
- (1136, 783))
- line_style 3
- origin_attachment (1136, 564)
- terminal_attachment (1136, 783)
- label (object SegLabel @303
- Parent_View @301
- location (1190, 761)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object ClassView "Class" "Logical View::webapplication::AuthMethodKind" @304
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (368, 640)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @304
- location (190, 490)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "AuthMethodKind")
- stereotype (object ItemLabel
- Parent_View @304
- location (190, 440)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 353
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3EE0A2D8029A"
- compartment (object Compartment
- Parent_View @304
- location (190, 551)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 6
- max_width 319)
- width 374
- height 424
- annotation 8
- autoResize TRUE)))
- (object ClassDiagram "data types"
- quid "39048A240321"
- title "data types"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::webapplication::TransportGuaranteeType" @305
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (352, 432)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @305
- location (114, 329)
- fill_color 13434879
- nlines 1
- max_width 476
- justify 0
- label "TransportGuaranteeType")
- stereotype (object ItemLabel
- Parent_View @305
- location (114, 279)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 476
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "390461A9018F"
- compartment (object Compartment
- Parent_View @305
- location (114, 390)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 338)
- width 494
- height 330
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::ResAuthTypeBase" @306
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (944, 240)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @306
- location (755, 108)
- fill_color 13434879
- nlines 1
- max_width 378
- justify 0
- label "ResAuthTypeBase")
- stereotype (object ItemLabel
- Parent_View @306
- location (755, 58)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 378
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C09ED400B4"
- compartment (object Compartment
- Parent_View @306
- location (755, 223)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 259)
- width 396
- height 388
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::ResAuthServletType" @307
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (944, 736)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @307
- location (741, 657)
- fill_color 13434879
- nlines 1
- max_width 406
- justify 0
- label "ResAuthServletType")
- stereotype (object ItemLabel
- Parent_View @307
- location (741, 607)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 406
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C09EEA0265"
- compartment (object Compartment
- Parent_View @307
- location (741, 718)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 281)
- width 424
- height 282
- annotation 8
- autoResize TRUE)))
- (object ClassDiagram "Servlet2.4 - Filters"
- quid "39BFB13E021A"
- title "Servlet2.4 - Filters"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object NoteView @308
- location (3070, 200)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 16777215
- default_color FALSE)
- label (object ItemLabel
- Parent_View @308
- location (2691, 81)
- fill_color 13434879
- nlines 4
- max_width 722
- label "TODO: Implement helpers for resolution of Servlet and Filter for FilterMapping by servletName and name. Since we have refs, we may want to remove the names.")
- line_color 3342489
- fill_color 255
- width 782
- height 250)
- (object ClassView "Class" "Logical View::webapplication::Servlet" @309
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2160, 544)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @309
- location (2079, 498)
- fill_color 13434879
- nlines 1
- max_width 162
- justify 0
- label "Servlet")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C079140251"
- height 117
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::Listener" @310
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2267, 115)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @310
- location (2147, 37)
- fill_color 13434879
- nlines 1
- max_width 240
- justify 0
- label "Listener")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434833
- quidu "39BFB26001BD"
- width 258
- height 180
- annotation 8
- autoResize TRUE)
- (object AttachView "" @311
- stereotype TRUE
- line_color 3342489
- client @308
- supplier @310
- vertices (list Points
- (2678, 157)
- (2396, 127))
- line_style 0)
- (object ClassView "Class" "Logical View::webapplication::InitParam" @312
- ShowCompartmentStereotypes TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (256, 1168)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @312
- location (62, 1067)
- fill_color 13434879
- nlines 1
- max_width 388
- justify 0
- label "InitParam")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C08E9D0325"
- compartment (object Compartment
- Parent_View @312
- location (62, 1128)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 413)
- width 406
- height 226
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::FilterMapping" @313
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1408, 576)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @313
- location (1011, 475)
- fill_color 13434879
- nlines 1
- max_width 794
- justify 0
- label "FilterMapping")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BFB14C03DD"
- compartment (object Compartment
- Parent_View @313
- location (1011, 536)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 826)
- width 812
- height 226
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$36" @314
- location (1942, 538)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "39C005BB00B9"
- roleview_list (list RoleViews
- (object RoleView "servlet" @315
- Parent_View @314
- location (694, -6)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @316
- Parent_View @315
- location (2006, 499)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 141
- justify 0
- label "+servlet"
- pctDist 0.497041
- height 40
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39C005BC004D"
- client @314
- supplier @309
- vertices (list Points
- (1942, 538)
- (2070, 538))
- line_style 3
- origin_attachment (1942, 538)
- terminal_attachment (2070, 538)
- label (object SegLabel @317
- Parent_View @315
- location (2034, 591)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.715976
- height 53
- orientation 1))
- (object RoleView "$UNNAMED$37" @318
- Parent_View @314
- location (694, -6)
- stereotype TRUE
- line_color 3342489
- quidu "39C005BC0061"
- client @314
- supplier @313
- vertices (list Points
- (1942, 538)
- (1814, 538))
- line_style 3
- origin_attachment (1942, 538)
- terminal_attachment (1814, 538))))
- (object ClassView "Class" "Logical View::webapplication::WebApp" @319
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (912, 112)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @319
- location (818, 66)
- fill_color 13434879
- nlines 1
- max_width 188
- justify 0
- label "WebApp")
- icon_style "None"
- line_color 3342489
- fill_color 13434879
- quidu "38C077FB0352"
- width 206
- height 117
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$28" @320
- location (1233, 207)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "39BFB4150298"
- roleview_list (list RoleViews
- (object RoleView "filterMappings" @321
- Parent_View @320
- location (321, 95)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @322
- Parent_View @321
- location (1398, 401)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 286
- justify 0
- label "+filterMappings"
- pctDist 0.757813
- height 165
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BFB4160127"
- client @320
- supplier @313
- vertices (list Points
- (1233, 207)
- (1233, 463))
- line_style 3
- origin_attachment (1233, 207)
- terminal_attachment (1233, 463)
- label (object SegLabel @323
- Parent_View @321
- location (1179, 393)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.726563
- height 55
- orientation 1))
- (object RoleView "$UNNAMED$29" @324
- Parent_View @320
- location (321, 95)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @325
- Parent_View @324
- location (1072, 189)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.800000
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BFB4160128"
- client @320
- supplier @319
- vertices (list Points
- (1233, 207)
- (1233, 147)
- (1015, 147))
- line_style 3
- origin_attachment (1233, 207)
- terminal_attachment (1015, 147))))
- (object AssociationViewNew "$UNNAMED$30" @326
- location (1576, 119)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "39BFB54D01EC"
- roleview_list (list RoleViews
- (object RoleView "listeners" @327
- Parent_View @326
- location (664, 7)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @328
- Parent_View @327
- location (1915, 179)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 186
- justify 0
- label "+listeners"
- pctDist 0.605735
- height 60
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39BFB54E0215"
- client @326
- supplier @310
- vertices (list Points
- (1576, 119)
- (2138, 119))
- line_style 3
- origin_attachment (1576, 119)
- terminal_attachment (2138, 119)
- label (object SegLabel @329
- Parent_View @327
- location (2083, 49)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.904412
- height 71
- orientation 0))
- (object RoleView "$UNNAMED$31" @330
- Parent_View @326
- location (664, 7)
- stereotype TRUE
- line_color 3342489
- quidu "39BFB54E0220"
- client @326
- supplier @319
- vertices (list Points
- (1576, 119)
- (1015, 119))
- line_style 3
- origin_attachment (1576, 119)
- terminal_attachment (1015, 119))))
- (object ClassView "Class" "Logical View::java::JavaClass" @331
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2258, 922)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @331
- location (2165, 843)
- fill_color 13434879
- nlines 2
- max_width 186
- justify 0
- label "JavaClass")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "36549FCC00FA"
- width 204
- height 182
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$40" @332
- location (2328, 518)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "39C03E6C035A"
- roleview_list (list RoleViews
- (object RoleView "listenerClass" @333
- Parent_View @332
- location (424, 358)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @334
- Parent_View @333
- location (2191, 785)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 275
- justify 0
- label "+listenerClass"
- pctDist 0.856269
- height 138
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39C03E6D02A7"
- client @332
- supplier @331
- vertices (list Points
- (2328, 518)
- (2328, 831))
- line_style 3
- origin_attachment (2328, 518)
- terminal_attachment (2328, 831)
- label (object SegLabel @335
- Parent_View @333
- location (2382, 775)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.821918
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$41" @336
- Parent_View @332
- location (424, 358)
- stereotype TRUE
- line_color 3342489
- quidu "39C03E6D02CF"
- client @332
- supplier @310
- vertices (list Points
- (2328, 518)
- (2328, 205))
- line_style 3
- origin_attachment (2328, 518)
- terminal_attachment (2328, 205))))
- (object ClassView "Class" "Logical View::common::ParamValue" @337
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (384, 1538)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @337
- location (207, 1385)
- fill_color 13434879
- nlines 1
- max_width 354
- justify 0
- label "ParamValue")
- icon_style "Icon"
- line_color 8421504
- fill_color 12632256
- quidu "3E4C221202C1"
- compartment (object Compartment
- Parent_View @337
- location (207, 1500)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 391)
- width 372
- height 330
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::webapplication::Filter" @338
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (368, 576)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @338
- location (237, 498)
- fill_color 13434879
- nlines 1
- max_width 262
- justify 0
- label "Filter")
- icon_style "Icon"
- line_color 4227072
- fill_color 13434833
- quidu "39BFB15503CC"
- compartment (object Compartment
- Parent_View @338
- location (237, 559)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 294)
- width 280
- height 180
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$32" @339
- location (265, 860)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "39C0026E02D1"
- roleview_list (list RoleViews
- (object RoleView "initParams" @340
- Parent_View @339
- location (-87, 284)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @341
- Parent_View @340
- location (122, 977)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 228
- justify 0
- label "+initParams"
- pctDist 0.600000
- height 144
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39C0026F0160"
- client @339
- supplier @312
- vertices (list Points
- (265, 860)
- (265, 1055))
- line_style 3
- origin_attachment (265, 860)
- terminal_attachment (265, 1055)
- label (object SegLabel @342
- Parent_View @340
- location (320, 977)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.600000
- height 55
- orientation 0))
- (object RoleView "$UNNAMED$33" @343
- Parent_View @339
- location (-87, 284)
- stereotype TRUE
- line_color 3342489
- quidu "39C0026F016A"
- client @339
- supplier @338
- vertices (list Points
- (265, 860)
- (265, 666))
- line_style 3
- origin_attachment (265, 860)
- terminal_attachment (265, 666))))
- (object AssociationViewNew "$UNNAMED$34" @344
- location (755, 538)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "39C0056A0293"
- roleview_list (list RoleViews
- (object RoleView "filter" @345
- Parent_View @344
- location (-493, -6)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @346
- Parent_View @345
- location (616, 498)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 106
- justify 0
- label "+filter"
- pctDist 0.566176
- height 41
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39C0056B0321"
- client @344
- supplier @338
- vertices (list Points
- (755, 538)
- (508, 538))
- line_style 3
- origin_attachment (755, 538)
- terminal_attachment (508, 538)
- label (object SegLabel @347
- Parent_View @345
- location (561, 591)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.786765
- height 53
- orientation 0))
- (object RoleView "$UNNAMED$35" @348
- Parent_View @344
- location (-493, -6)
- stereotype TRUE
- line_color 3342489
- quidu "39C0056B032B"
- client @344
- supplier @313
- vertices (list Points
- (755, 538)
- (1002, 538))
- line_style 3
- origin_attachment (755, 538)
- terminal_attachment (1002, 538))))
- (object AssociationViewNew "$UNNAMED$26" @349
- location (475, 112)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "39BFB3B101CC"
- roleview_list (list RoleViews
- (object RoleView "filters" @350
- Parent_View @349
- location (-437, 0)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @351
- Parent_View @350
- location (502, 439)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 134
- justify 0
- label "+filters"
- pctDist 0.893891
- height 87
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BFB3B20123"
- client @349
- supplier @338
- vertices (list Points
- (475, 112)
- (415, 112)
- (415, 486))
- line_style 3
- origin_attachment (475, 112)
- terminal_attachment (415, 486)
- label (object SegLabel @352
- Parent_View @350
- location (358, 439)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.893891
- height 58
- orientation 1))
- (object RoleView "$UNNAMED$27" @353
- Parent_View @349
- location (-437, 0)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @354
- Parent_View @353
- location (672, 72)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- hidden TRUE
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 60
- justify 0
- label ""
- pctDist 0.589342
- height 41
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39BFB3B2012D"
- client @349
- supplier @319
- vertices (list Points
- (475, 112)
- (809, 112))
- line_style 3
- origin_attachment (475, 112)
- terminal_attachment (809, 112))))
- (object AssociationViewNew "$UNNAMED$38" @355
- location (1211, 871)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "39C03C280356"
- roleview_list (list RoleViews
- (object RoleView "filterClass" @356
- Parent_View @355
- location (859, 295)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @357
- Parent_View @356
- location (1886, 925)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 215
- justify 0
- label "+filterClass"
- pctDist 0.714542
- height 54
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "39C03C290267"
- client @355
- supplier @331
- vertices (list Points
- (1211, 871)
- (2156, 871))
- line_style 3
- origin_attachment (1211, 871)
- terminal_attachment (2156, 871)
- label (object SegLabel @358
- Parent_View @356
- location (2061, 925)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$39" @359
- Parent_View @355
- location (859, 295)
- stereotype TRUE
- line_color 3342489
- quidu "39C03C29028F"
- client @355
- supplier @338
- vertices (list Points
- (1211, 871)
- (922, 871)
- (922, 629)
- (508, 629))
- line_style 3
- origin_attachment (1211, 871)
- terminal_attachment (508, 629))))
- (object AttachView "" @360
- stereotype TRUE
- line_color 3342489
- client @308
- supplier @338
- vertices (list Points
- (2678, 253)
- (508, 555))
- line_style 0)
- (object AssociationViewNew "$UNNAMED$46" @361
- location (384, 1019)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 10949559
- quidu "3E4D43AA000A"
- roleview_list (list RoleViews
- (object RoleView "initParamValues" @362
- Parent_View @361
- location (32, 443)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @363
- Parent_View @362
- location (219, 1311)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 320
- justify 0
- label "+initParamValues"
- pctDist 0.825420
- height 166
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D43AA0245"
- client @361
- supplier @337
- vertices (list Points
- (384, 1019)
- (384, 1373))
- line_style 3
- origin_attachment (384, 1019)
- terminal_attachment (384, 1373)
- label (object SegLabel @364
- Parent_View @362
- location (438, 1338)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..n"
- pctDist 0.900000
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$47" @365
- Parent_View @361
- location (32, 443)
- stereotype TRUE
- line_color 3342489
- quidu "3E4D43AA024F"
- client @361
- supplier @338
- vertices (list Points
- (384, 1019)
- (384, 666))
- line_style 3
- origin_attachment (384, 1019)
- terminal_attachment (384, 666))))
- (object ClassView "Class" "Logical View::webapplication::DispatcherType" @366
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2736, 624)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @366
- location (2558, 498)
- fill_color 13434879
- nlines 1
- max_width 356
- justify 0
- label "DispatcherType")
- stereotype (object ItemLabel
- Parent_View @366
- location (2558, 448)
- fill_color 13434879
- anchor 10
- nlines 1
- max_width 353
- justify 0
- label "<<enumeration>>")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4D445B0376"
- compartment (object Compartment
- Parent_View @366
- location (2558, 559)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 260)
- width 374
- height 376
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @367
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1553, 1188)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics TRUE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @367
- location (1374, 1110)
- fill_color 13434879
- nlines 1
- max_width 358
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 10949559
- fill_color 15778042
- quidu "3E4D451F01FB"
- width 376
- height 180
- annotation 8
- autoResize TRUE)))
- (object ClassDiagram "Servlet2.4 - Security"
- quid "399829CD0197"
- title "Servlet2.4 - Security"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object NoteView @368
- location (1104, 704)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @368
- location (825, 641)
- fill_color 13434879
- nlines 2
- max_width 522
- label "See common::Security diagram for further details.")
- line_color 3342489
- fill_color 13434833
- width 582
- height 138)
- (object ClassView "Class" "Logical View::common::RunAsSpecifiedIdentity" @369
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1056, 368)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @369
- location (919, 289)
- fill_color 13434879
- nlines 2
- max_width 274
- justify 0
- label "RunAsSpecifiedIdentity")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "39BF2C9E02C8"
- width 292
- height 182
- annotation 8
- autoResize TRUE)
- (object AttachView "" @370
- stereotype TRUE
- line_color 3342489
- client @368
- supplier @369
- vertices (list Points
- (1093, 634)
- (1068, 459))
- line_style 0)
- (object ClassView "Class" "Logical View::webapplication::Servlet" @371
- ShowCompartmentStereotypes TRUE
- SuppressAttribute TRUE
- SuppressOperation TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (320, 352)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @371
- location (239, 306)
- fill_color 13434879
- nlines 1
- max_width 162
- justify 0
- label "Servlet")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "38C079140251"
- height 117
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$42" @372
- location (660, 347)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 32768
- quidu "39982A2E0255"
- roleview_list (list RoleViews
- (object RoleView "runAs" @373
- Parent_View @372
- location (340, -5)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @374
- Parent_View @373
- location (803, 306)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 136
- justify 0
- label "+runAs"
- pctDist 0.572816
- height 42
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "39982A2F0184"
- client @372
- supplier @369
- vertices (list Points
- (660, 347)
- (910, 347))
- line_style 3
- origin_attachment (660, 347)
- terminal_attachment (910, 347)
- label (object SegLabel @375
- Parent_View @373
- location (847, 383)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "0..1"
- pctDist 0.747573
- height 36
- orientation 1))
- (object RoleView "$UNNAMED$43" @376
- Parent_View @372
- location (340, -5)
- stereotype TRUE
- line_color 3342489
- quidu "39982A2F018E"
- client @372
- supplier @371
- vertices (list Points
- (660, 347)
- (410, 347))
- line_style 3
- origin_attachment (660, 347)
- terminal_attachment (410, 347))))
- (object Label @377
- location (80, 80)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- nlines 1
- max_width 1173
- label "Servlet 2.3 has introduced RunAs security identity for Servlets:")))))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/webservice-j2ee.mdl b/plugins/org.eclipse.jst.j2ee.core/rose/webservice-j2ee.mdl deleted file mode 100644 index b0c003f6b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/webservice-j2ee.mdl +++ /dev/null @@ -1,8928 +0,0 @@ - -(object Petal - version 47 - _written "Rose 8.0.0303.1400" - charSet 0) - -(object Design "Logical View" - is_unit TRUE - is_loaded TRUE - attributes (list Attribute_Set - (object Attribute - tool "Java" - name "IDE" - value "Internal Editor") - (object Attribute - tool "Java" - name "UserDefineTagName1" - value "") - (object Attribute - tool "Java" - name "UserDefineTagText1" - value "") - (object Attribute - tool "Java" - name "UserDefineTagApply1" - value "") - (object Attribute - tool "Java" - name "UserDefineTagName2" - value "") - (object Attribute - tool "Java" - name "UserDefineTagText2" - value "") - (object Attribute - tool "Java" - name "UserDefineTagApply2" - value "") - (object Attribute - tool "Java" - name "UserDefineTagName3" - value "") - (object Attribute - tool "Java" - name "UserDefineTagText3" - value "") - (object Attribute - tool "Java" - name "UserDefineTagApply3" - value "")) - quid "3E109E88030F" - defaults (object defaults - rightMargin 0.250000 - leftMargin 0.250000 - topMargin 0.250000 - bottomMargin 0.500000 - pageOverlap 0.250000 - clipIconLabels TRUE - autoResize TRUE - snapToGrid TRUE - gridX 16 - gridY 16 - defaultFont (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - showMessageNum 1 - showClassOfObject TRUE - notation "Unified") - root_usecase_package (object Class_Category "Use Case View" - quid "3E109E880311" - exportControl "Public" - global TRUE - logical_models (list unit_reference_list) - logical_presentations (list unit_reference_list - (object UseCaseDiagram "Main" - quid "3E109E8A0178" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list)))) - root_category (object Class_Category "Logical View" - quid "3E109E880310" - exportControl "Public" - global TRUE - subsystem "Component View" - quidu "3E109E880312" - logical_models (list unit_reference_list - (object Class_Category "wscommon" - is_unit TRUE - is_loaded FALSE - file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\wscommon.cat" - quid "3E15B4C0016F") - (object Class_Category "jaxrpcmap" - is_unit TRUE - is_loaded FALSE - file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\jaxrpcmap.cat" - quid "3E161FA90266") - (object Class_Category "wsdd" - is_unit TRUE - is_loaded FALSE - file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\wsdd.cat" - quid "3E109EAD0319") - (object Class_Category "common" - is_unit TRUE - is_loaded FALSE - file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\common.cat" - quid "38C08F0F038D") - (object Class_Category "java" - is_unit TRUE - is_loaded FALSE - file_name "$WORKSPACE_ROOT\\org.eclipse.jem\\rose\\edocjava2.cat" - quid "36549F2C004E") - (object Class_Category "ecore" - is_unit TRUE - is_loaded FALSE - file_name "$WORKSPACE_ROOT\\org.eclipse.emf.ecore\\src-ecore\\model\\org.eclipse.emf.Ecore.cat" - quid "39A5ED04004E") - (object Class_Category "ejb" - is_unit TRUE - is_loaded FALSE - file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\ejbschema.cat" - quid "3780E272032D") - (object Class_Category "webapplication" - is_unit TRUE - is_loaded FALSE - file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\webapplication.cat" - quid "38C076D603DD") - (object Class_Category "wsclient" - is_unit TRUE - is_loaded FALSE - file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\webservices_client_1_0.cat" - quid "3E4D2F4B02AA") - (object Class_Category "jsp" - is_unit TRUE - is_loaded FALSE - file_name "$WORKSPACE_ROOT\\org.eclipse.jst.j2ee.core\\rose\\jsp_2_0.cat" - quid "3E4D4F69036B")) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - quid "3E15B47D02E0" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object CategoryView "Logical View::common" @1 - location (688, 768) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @1 - location (544, 684) - fill_color 13434879 - nlines 2 - max_width 288 - justify 0 - label "common") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "38C08F0F038D" - width 300 - height 180) - (object CategoryView "Logical View::ecore" @2 - location (1104, 496) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @2 - location (960, 412) - fill_color 13434879 - nlines 2 - max_width 288 - justify 0 - label "ecore") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "39A5ED04004E" - width 300 - height 180) - (object CategoryView "Logical View::ejb" @3 - location (1104, 496) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @3 - location (960, 462) - fill_color 13434879 - nlines 2 - max_width 288 - justify 0 - label "ejb") - stereotype (object ItemLabel - Parent_View @3 - location (960, 412) - fill_color 13434879 - anchor 10 - nlines 1 - max_width 288 - justify 0 - label "<<metamodel>>") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3780E272032D" - width 300 - height 180))))) - root_subsystem (object SubSystem "Component View" - quid "3E109E880312" - physical_models (list unit_reference_list) - physical_presentations (list unit_reference_list - (object Module_Diagram "Main" - quid "3E109E8A0177" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list)))) - process_structure (object Processes - quid "3E109E880313" - ProcsNDevs (list - (object Process_Diagram "Deployment View" - quid "3E109E880315" - title "Deployment View" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list)))) - properties (object Properties - attributes (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "propertyId" - value "809135966") - (object Attribute - tool "Cplusplus" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Synchronize" - value TRUE) - (object Attribute - tool "Cplusplus" - name "CodeName" - value "") - (object Attribute - tool "Cplusplus" - name "InitialValue" - value "") - (object Attribute - tool "Cplusplus" - name "Const" - value FALSE))) - (object Attribute - tool "Cplusplus" - name "default__Inherit" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Synchronize" - value TRUE))) - (object Attribute - tool "Cplusplus" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Synchronize" - value TRUE) - (object Attribute - tool "Cplusplus" - name "RevEngRootDirectory" - value "") - (object Attribute - tool "Cplusplus" - name "RootPackage" - value "C++ Reverse Engineered") - (object Attribute - tool "Cplusplus" - name "RevEngDirectoriesAsPackages" - value FALSE) - (object Attribute - tool "Cplusplus" - name "HeaderFileExtension" - value ".h") - (object Attribute - tool "Cplusplus" - name "ImplementationFileExtension" - value ".cpp") - (object Attribute - tool "Cplusplus" - name "NewHeaderFileDirectory" - value "") - (object Attribute - tool "Cplusplus" - name "NewImplementationFileDirectory" - value "") - (object Attribute - tool "Cplusplus" - name "FileCapitalization" - value ("FileCapitalizationSet" 0)) - (object Attribute - tool "Cplusplus" - name "CodeGenExtraDirectories" - value ("CodeGenExtraDirectoriesSet" 0)) - (object Attribute - tool "Cplusplus" - name "StripClassPrefix" - value "") - (object Attribute - tool "Cplusplus" - name "UseTabs" - value FALSE) - (object Attribute - tool "Cplusplus" - name "TabWidth" - value 8) - (object Attribute - tool "Cplusplus" - name "IndentWidth" - value 4) - (object Attribute - tool "Cplusplus" - name "AccessIndentation" - value -2) - (object Attribute - tool "Cplusplus" - name "ModelIdCommentRules" - value ("ModelIdCommentRulesSet" 1)) - (object Attribute - tool "Cplusplus" - name "PageWidth" - value 80) - (object Attribute - tool "Cplusplus" - name "ClassMemberOrder" - value ("MemberOrderSet" 1)) - (object Attribute - tool "Cplusplus" - name "OneParameterPerLine" - value FALSE) - (object Attribute - tool "Cplusplus" - name "NamespaceBraceStyle" - value ("BraceStyleSet" 2)) - (object Attribute - tool "Cplusplus" - name "ClassBraceStyle" - value ("BraceStyleSet" 2)) - (object Attribute - tool "Cplusplus" - name "FunctionBraceStyle" - value ("BraceStyleSet" 2)) - (object Attribute - tool "Cplusplus" - name "Copyright" - value (value Text "")) - (object Attribute - tool "Cplusplus" - name "InitialHeaderIncludes" - value (value Text "")) - (object Attribute - tool "Cplusplus" - name "InitialBodyIncludes" - value (value Text "")) - (object Attribute - tool "Cplusplus" - name "CodeGenExtraDirectoriesSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "None" - value 0) - (object Attribute - tool "Cplusplus" - name "Namespaces" - value 1) - (object Attribute - tool "Cplusplus" - name "Packages" - value 2))) - (object Attribute - tool "Cplusplus" - name "FileCapitalizationSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Same as model" - value 0) - (object Attribute - tool "Cplusplus" - name "Lower case" - value 1) - (object Attribute - tool "Cplusplus" - name "Upper case" - value 2) - (object Attribute - tool "Cplusplus" - name "Lower case with underscores" - value 3))) - (object Attribute - tool "Cplusplus" - name "BraceStyleSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "B1" - value 1) - (object Attribute - tool "Cplusplus" - name "B2" - value 2) - (object Attribute - tool "Cplusplus" - name "B3" - value 3) - (object Attribute - tool "Cplusplus" - name "B4" - value 4) - (object Attribute - tool "Cplusplus" - name "B5" - value 5))) - (object Attribute - tool "Cplusplus" - name "MemberOrderSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Public First" - value 1) - (object Attribute - tool "Cplusplus" - name "Private First" - value 2) - (object Attribute - tool "Cplusplus" - name "Order by kind" - value 3) - (object Attribute - tool "Cplusplus" - name "Unordered" - value 4))) - (object Attribute - tool "Cplusplus" - name "ModelIdCommentRulesSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Code generation only" - value 1) - (object Attribute - tool "Cplusplus" - name "Code generation and reverse engineering" - value 2) - (object Attribute - tool "Cplusplus" - name "Never generate model IDs" - value 3))) - (object Attribute - tool "Cplusplus" - name "CreateBackupFiles" - value FALSE) - (object Attribute - tool "Cplusplus" - name "CommentRules" - value ("CommentRulesSet" 1)) - (object Attribute - tool "Cplusplus" - name "CommentRulesSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Always synchronize" - value 1) - (object Attribute - tool "Cplusplus" - name "Code generation only" - value 2) - (object Attribute - tool "Cplusplus" - name "Reverse engineering only" - value 3) - (object Attribute - tool "Cplusplus" - name "Never synchronize" - value 4))))) - (object Attribute - tool "Cplusplus" - name "default__Module-Body" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Synchronize" - value TRUE) - (object Attribute - tool "Cplusplus" - name "RevEngRootDirectory" - value "") - (object Attribute - tool "Cplusplus" - name "RootPackage" - value "C++ Reverse Engineered") - (object Attribute - tool "Cplusplus" - name "RevEngDirectoriesAsPackages" - value FALSE) - (object Attribute - tool "Cplusplus" - name "HeaderFileExtension" - value ".h") - (object Attribute - tool "Cplusplus" - name "ImplementationFileExtension" - value ".cpp") - (object Attribute - tool "Cplusplus" - name "NewHeaderFileDirectory" - value "") - (object Attribute - tool "Cplusplus" - name "NewImplementationFileDirectory" - value "") - (object Attribute - tool "Cplusplus" - name "FileCapitalization" - value ("FileCapitalizationSet" 0)) - (object Attribute - tool "Cplusplus" - name "CodeGenExtraDirectories" - value ("CodeGenExtraDirectoriesSet" 0)) - (object Attribute - tool "Cplusplus" - name "StripClassPrefix" - value "") - (object Attribute - tool "Cplusplus" - name "UseTabs" - value FALSE) - (object Attribute - tool "Cplusplus" - name "TabWidth" - value 8) - (object Attribute - tool "Cplusplus" - name "IndentWidth" - value 4) - (object Attribute - tool "Cplusplus" - name "AccessIndentation" - value -2) - (object Attribute - tool "Cplusplus" - name "ModelIdCommentRules" - value ("ModelIdCommentRulesSet" 1)) - (object Attribute - tool "Cplusplus" - name "PageWidth" - value 80) - (object Attribute - tool "Cplusplus" - name "ClassMemberOrder" - value ("MemberOrderSet" 1)) - (object Attribute - tool "Cplusplus" - name "OneParameterPerLine" - value FALSE) - (object Attribute - tool "Cplusplus" - name "NamespaceBraceStyle" - value ("BraceStyleSet" 2)) - (object Attribute - tool "Cplusplus" - name "ClassBraceStyle" - value ("BraceStyleSet" 2)) - (object Attribute - tool "Cplusplus" - name "FunctionBraceStyle" - value ("BraceStyleSet" 2)) - (object Attribute - tool "Cplusplus" - name "Copyright" - value (value Text "")) - (object Attribute - tool "Cplusplus" - name "InitialHeaderIncludes" - value (value Text "")) - (object Attribute - tool "Cplusplus" - name "InitialBodyIncludes" - value (value Text "")) - (object Attribute - tool "Cplusplus" - name "CodeGenExtraDirectoriesSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "None" - value 0) - (object Attribute - tool "Cplusplus" - name "Namespaces" - value 1) - (object Attribute - tool "Cplusplus" - name "Packages" - value 2))) - (object Attribute - tool "Cplusplus" - name "FileCapitalizationSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Same as model" - value 0) - (object Attribute - tool "Cplusplus" - name "Lower case" - value 1) - (object Attribute - tool "Cplusplus" - name "Upper case" - value 2) - (object Attribute - tool "Cplusplus" - name "Lower case with underscores" - value 3))) - (object Attribute - tool "Cplusplus" - name "BraceStyleSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "B1" - value 1) - (object Attribute - tool "Cplusplus" - name "B2" - value 2) - (object Attribute - tool "Cplusplus" - name "B3" - value 3) - (object Attribute - tool "Cplusplus" - name "B4" - value 4) - (object Attribute - tool "Cplusplus" - name "B5" - value 5))) - (object Attribute - tool "Cplusplus" - name "MemberOrderSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Public First" - value 1) - (object Attribute - tool "Cplusplus" - name "Private First" - value 2) - (object Attribute - tool "Cplusplus" - name "Order by kind" - value 3) - (object Attribute - tool "Cplusplus" - name "Unordered" - value 4))) - (object Attribute - tool "Cplusplus" - name "ModelIdCommentRulesSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Code generation only" - value 1) - (object Attribute - tool "Cplusplus" - name "Code generation and reverse engineering" - value 2) - (object Attribute - tool "Cplusplus" - name "Never generate model IDs" - value 3))) - (object Attribute - tool "Cplusplus" - name "CreateBackupFiles" - value FALSE) - (object Attribute - tool "Cplusplus" - name "CommentRules" - value ("CommentRulesSet" 1)) - (object Attribute - tool "Cplusplus" - name "CommentRulesSet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Always synchronize" - value 1) - (object Attribute - tool "Cplusplus" - name "Code generation only" - value 2) - (object Attribute - tool "Cplusplus" - name "Reverse engineering only" - value 3) - (object Attribute - tool "Cplusplus" - name "Never synchronize" - value 4))))) - (object Attribute - tool "Cplusplus" - name "default__Param" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "CodeName" - value ""))) - (object Attribute - tool "Cplusplus" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Synchronize" - value TRUE) - (object Attribute - tool "Cplusplus" - name "CodeName" - value ""))) - (object Attribute - tool "Cplusplus" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Synchronize" - value TRUE) - (object Attribute - tool "Cplusplus" - name "CodeName" - value "") - (object Attribute - tool "Cplusplus" - name "InitialCodeBody" - value "") - (object Attribute - tool "Cplusplus" - name "Inline" - value FALSE) - (object Attribute - tool "Cplusplus" - name "GenerateFunctionBody" - value ("GenerateFunctionBodySet" 2)) - (object Attribute - tool "Cplusplus" - name "GenerateFunctionBodySet" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Default" - value 2) - (object Attribute - tool "Cplusplus" - name "True" - value 1) - (object Attribute - tool "Cplusplus" - name "False" - value 0))))) - (object Attribute - tool "Cplusplus" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "Synchronize" - value TRUE) - (object Attribute - tool "Cplusplus" - name "CodeName" - value "") - (object Attribute - tool "Cplusplus" - name "ImplementationType" - value "") - (object Attribute - tool "Cplusplus" - name "HeaderSourceFile" - value "") - (object Attribute - tool "Cplusplus" - name "BodySourceFile" - value ""))) - (object Attribute - tool "Cplusplus" - name "default__Category" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "CodeName" - value "") - (object Attribute - tool "Cplusplus" - name "IsNamespace" - value FALSE))) - (object Attribute - tool "Cplusplus" - name "HiddenTool" - value FALSE) - (object Attribute - tool "ANSI C++ Event Watcher" - name "HiddenTool" - value FALSE) - (object Attribute - tool "ANSIConvert" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Ada83" - name "propertyId" - value "838326200") - (object Attribute - tool "Ada83" - name "default__Project" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "SpecFileExtension" - value "1.ada") - (object Attribute - tool "Ada83" - name "SpecFileBackupExtension" - value "1.ad~") - (object Attribute - tool "Ada83" - name "SpecFileTemporaryExtension" - value "1.ad#") - (object Attribute - tool "Ada83" - name "BodyFileExtension" - value "2.ada") - (object Attribute - tool "Ada83" - name "BodyFileBackupExtension" - value "2.ad~") - (object Attribute - tool "Ada83" - name "BodyFileTemporaryExtension" - value "2.ad#") - (object Attribute - tool "Ada83" - name "CreateMissingDirectories" - value TRUE) - (object Attribute - tool "Ada83" - name "GenerateBodies" - value TRUE) - (object Attribute - tool "Ada83" - name "GenerateAccessorOperations" - value TRUE) - (object Attribute - tool "Ada83" - name "GenerateStandardOperations" - value TRUE) - (object Attribute - tool "Ada83" - name "DefaultCodeBody" - value "[statement]") - (object Attribute - tool "Ada83" - name "ImplicitParameter" - value TRUE) - (object Attribute - tool "Ada83" - name "CommentWidth" - value 60) - (object Attribute - tool "Ada83" - name "StopOnError" - value FALSE) - (object Attribute - tool "Ada83" - name "ErrorLimit" - value 30) - (object Attribute - tool "Ada83" - name "UseFileName" - value FALSE) - (object Attribute - tool "Ada83" - name "Directory" - value "$ROSEADA83_SOURCE"))) - (object Attribute - tool "Ada83" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "CodeName" - value "") - (object Attribute - tool "Ada83" - name "ClassName" - value "Object") - (object Attribute - tool "Ada83" - name "ClassAccess" - value ("ImplementationSet" 43)) - (object Attribute - tool "Ada83" - name "ImplementationType" - value (value Text "")) - (object Attribute - tool "Ada83" - name "IsSubtype" - value FALSE) - (object Attribute - tool "Ada83" - name "PolymorphicUnit" - value FALSE) - (object Attribute - tool "Ada83" - name "HandleName" - value "Handle") - (object Attribute - tool "Ada83" - name "HandleAccess" - value ("ImplementationSet" 45)) - (object Attribute - tool "Ada83" - name "Discriminant" - value "") - (object Attribute - tool "Ada83" - name "Variant" - value "") - (object Attribute - tool "Ada83" - name "EnumerationLiteralPrefix" - value "A_") - (object Attribute - tool "Ada83" - name "RecordFieldPrefix" - value "The_") - (object Attribute - tool "Ada83" - name "GenerateAccessorOperations" - value TRUE) - (object Attribute - tool "Ada83" - name "GenerateStandardOperations" - value TRUE) - (object Attribute - tool "Ada83" - name "ImplicitParameter" - value TRUE) - (object Attribute - tool "Ada83" - name "ClassParameterName" - value "This") - (object Attribute - tool "Ada83" - name "DefaultConstructorKind" - value ("ConstructorKindSet" 199)) - (object Attribute - tool "Ada83" - name "DefaultConstructorName" - value "Create") - (object Attribute - tool "Ada83" - name "InlineDefaultConstructor" - value FALSE) - (object Attribute - tool "Ada83" - name "CopyConstructorKind" - value ("ConstructorKindSet" 199)) - (object Attribute - tool "Ada83" - name "CopyConstructorName" - value "Copy") - (object Attribute - tool "Ada83" - name "InlineCopyConstructor" - value FALSE) - (object Attribute - tool "Ada83" - name "DestructorName" - value "Free") - (object Attribute - tool "Ada83" - name "InlineDestructor" - value FALSE) - (object Attribute - tool "Ada83" - name "ClassEqualityOperation" - value "") - (object Attribute - tool "Ada83" - name "HandleEqualityOperation" - value "") - (object Attribute - tool "Ada83" - name "InlineEquality" - value FALSE) - (object Attribute - tool "Ada83" - name "IsTask" - value FALSE) - (object Attribute - tool "Ada83" - name "Representation" - value (value Text "")) - (object Attribute - tool "Ada83" - name "ImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Public" - value 45) - (object Attribute - tool "Ada83" - name "Private" - value 43) - (object Attribute - tool "Ada83" - name "LimitedPrivate" - value 200) - (object Attribute - tool "Ada83" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada83" - name "ConstructorKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Procedure" - value 202) - (object Attribute - tool "Ada83" - name "Function" - value 199) - (object Attribute - tool "Ada83" - name "DoNotCreate" - value 201))))) - (object Attribute - tool "Ada83" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Generate" - value TRUE) - (object Attribute - tool "Ada83" - name "CopyrightNotice" - value (value Text "")) - (object Attribute - tool "Ada83" - name "FileName" - value "") - (object Attribute - tool "Ada83" - name "ReturnType" - value "") - (object Attribute - tool "Ada83" - name "GenericFormalParameters" - value (value Text "")) - (object Attribute - tool "Ada83" - name "AdditionalWiths" - value (value Text "")))) - (object Attribute - tool "Ada83" - name "default__Module-Body" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Generate" - value TRUE) - (object Attribute - tool "Ada83" - name "CopyrightNotice" - value (value Text "")) - (object Attribute - tool "Ada83" - name "FileName" - value "") - (object Attribute - tool "Ada83" - name "ReturnType" - value "") - (object Attribute - tool "Ada83" - name "AdditionalWiths" - value (value Text "")) - (object Attribute - tool "Ada83" - name "IsSubunit" - value FALSE))) - (object Attribute - tool "Ada83" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "CodeName" - value "") - (object Attribute - tool "Ada83" - name "SubprogramImplementation" - value ("SubprogramImplementationSet" 2)) - (object Attribute - tool "Ada83" - name "Renames" - value "") - (object Attribute - tool "Ada83" - name "ClassParameterMode" - value ("ParameterModeSet" 203)) - (object Attribute - tool "Ada83" - name "Inline" - value FALSE) - (object Attribute - tool "Ada83" - name "EntryCode" - value (value Text "")) - (object Attribute - tool "Ada83" - name "ExitCode" - value (value Text "")) - (object Attribute - tool "Ada83" - name "InitialCodeBody" - value "${default}") - (object Attribute - tool "Ada83" - name "Representation" - value (value Text "")) - (object Attribute - tool "Ada83" - name "SubprogramImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Spec" - value 224) - (object Attribute - tool "Ada83" - name "Body" - value 2) - (object Attribute - tool "Ada83" - name "Renaming" - value 222) - (object Attribute - tool "Ada83" - name "Separate" - value 223))) - (object Attribute - tool "Ada83" - name "ParameterModeSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Default" - value 232) - (object Attribute - tool "Ada83" - name "In" - value 204) - (object Attribute - tool "Ada83" - name "Out" - value 205) - (object Attribute - tool "Ada83" - name "InOut" - value 203) - (object Attribute - tool "Ada83" - name "FunctionReturn" - value 206) - (object Attribute - tool "Ada83" - name "DoNotCreate" - value 201))))) - (object Attribute - tool "Ada83" - name "default__Param" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Mode" - value ("ParameterModeSet" 232)) - (object Attribute - tool "Ada83" - name "ParameterModeSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Default" - value 232) - (object Attribute - tool "Ada83" - name "In" - value 204) - (object Attribute - tool "Ada83" - name "Out" - value 205) - (object Attribute - tool "Ada83" - name "InOut" - value 203))))) - (object Attribute - tool "Ada83" - name "default__Has" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "CodeName" - value "") - (object Attribute - tool "Ada83" - name "NameIfUnlabeled" - value "The_${supplier}") - (object Attribute - tool "Ada83" - name "DataMemberName" - value "${relationship}") - (object Attribute - tool "Ada83" - name "GetName" - value "Get_${relationship}") - (object Attribute - tool "Ada83" - name "InlineGet" - value TRUE) - (object Attribute - tool "Ada83" - name "SetName" - value "Set_${relationship}") - (object Attribute - tool "Ada83" - name "InlineSet" - value TRUE) - (object Attribute - tool "Ada83" - name "IsConstant" - value FALSE) - (object Attribute - tool "Ada83" - name "InitialValue" - value "") - (object Attribute - tool "Ada83" - name "Declare" - value ("DeclareSet" 234)) - (object Attribute - tool "Ada83" - name "Variant" - value "") - (object Attribute - tool "Ada83" - name "ContainerGeneric" - value "List") - (object Attribute - tool "Ada83" - name "ContainerType" - value "") - (object Attribute - tool "Ada83" - name "ContainerDeclarations" - value (value Text "")) - (object Attribute - tool "Ada83" - name "SelectorName" - value "") - (object Attribute - tool "Ada83" - name "SelectorType" - value "") - (object Attribute - tool "Ada83" - name "DeclareSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Before" - value 233) - (object Attribute - tool "Ada83" - name "After" - value 234))))) - (object Attribute - tool "Ada83" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "CodeName" - value "") - (object Attribute - tool "Ada83" - name "DataMemberName" - value "${attribute}") - (object Attribute - tool "Ada83" - name "GetName" - value "Get_${attribute}") - (object Attribute - tool "Ada83" - name "InlineGet" - value TRUE) - (object Attribute - tool "Ada83" - name "SetName" - value "Set_${attribute}") - (object Attribute - tool "Ada83" - name "InlineSet" - value TRUE) - (object Attribute - tool "Ada83" - name "IsConstant" - value FALSE) - (object Attribute - tool "Ada83" - name "InitialValue" - value "") - (object Attribute - tool "Ada83" - name "Declare" - value ("DeclareSet" 234)) - (object Attribute - tool "Ada83" - name "Variant" - value "") - (object Attribute - tool "Ada83" - name "Representation" - value (value Text "")) - (object Attribute - tool "Ada83" - name "DeclareSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Before" - value 233) - (object Attribute - tool "Ada83" - name "After" - value 234))))) - (object Attribute - tool "Ada83" - name "default__Association" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "NameIfUnlabeled" - value "The_${targetClass}") - (object Attribute - tool "Ada83" - name "GetName" - value "Get_${association}") - (object Attribute - tool "Ada83" - name "InlineGet" - value FALSE) - (object Attribute - tool "Ada83" - name "SetName" - value "Set_${association}") - (object Attribute - tool "Ada83" - name "InlineSet" - value FALSE) - (object Attribute - tool "Ada83" - name "GenerateAssociate" - value ("ProcedureKindSet" 202)) - (object Attribute - tool "Ada83" - name "AssociateName" - value "Associate") - (object Attribute - tool "Ada83" - name "InlineAssociate" - value FALSE) - (object Attribute - tool "Ada83" - name "GenerateDissociate" - value ("ProcedureKindSet" 202)) - (object Attribute - tool "Ada83" - name "DissociateName" - value "Dissociate") - (object Attribute - tool "Ada83" - name "InlineDissociate" - value FALSE) - (object Attribute - tool "Ada83" - name "ProcedureKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Procedure" - value 202) - (object Attribute - tool "Ada83" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada83" - name "FunctionKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Function" - value 199) - (object Attribute - tool "Ada83" - name "DoNotCreate" - value 201))))) - (object Attribute - tool "Ada83" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "CodeName" - value "") - (object Attribute - tool "Ada83" - name "NameIfUnlabeled" - value "The_${targetClass}") - (object Attribute - tool "Ada83" - name "DataMemberName" - value "${target}") - (object Attribute - tool "Ada83" - name "GetName" - value "Get_${target}") - (object Attribute - tool "Ada83" - name "InlineGet" - value TRUE) - (object Attribute - tool "Ada83" - name "SetName" - value "Set_${target}") - (object Attribute - tool "Ada83" - name "InlineSet" - value TRUE) - (object Attribute - tool "Ada83" - name "IsConstant" - value FALSE) - (object Attribute - tool "Ada83" - name "InitialValue" - value "") - (object Attribute - tool "Ada83" - name "Declare" - value ("DeclareSet" 234)) - (object Attribute - tool "Ada83" - name "ContainerGeneric" - value "List") - (object Attribute - tool "Ada83" - name "ContainerType" - value "") - (object Attribute - tool "Ada83" - name "ContainerDeclarations" - value (value Text "")) - (object Attribute - tool "Ada83" - name "SelectorName" - value "") - (object Attribute - tool "Ada83" - name "SelectorType" - value "") - (object Attribute - tool "Ada83" - name "ProcedureKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Procedure" - value 202) - (object Attribute - tool "Ada83" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada83" - name "DeclareSet" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Before" - value 233) - (object Attribute - tool "Ada83" - name "After" - value 234))) - (object Attribute - tool "Ada83" - name "Representation" - value (value Text "")))) - (object Attribute - tool "Ada83" - name "default__Subsystem" - value (list Attribute_Set - (object Attribute - tool "Ada83" - name "Directory" - value "AUTO GENERATE"))) - (object Attribute - tool "Ada83" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Ada95" - name "propertyId" - value "838326200") - (object Attribute - tool "Ada95" - name "default__Project" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "SpecFileExtension" - value "1.ada") - (object Attribute - tool "Ada95" - name "SpecFileBackupExtension" - value "1.ad~") - (object Attribute - tool "Ada95" - name "SpecFileTemporaryExtension" - value "1.ad#") - (object Attribute - tool "Ada95" - name "BodyFileExtension" - value "2.ada") - (object Attribute - tool "Ada95" - name "BodyFileBackupExtension" - value "2.ad~") - (object Attribute - tool "Ada95" - name "BodyFileTemporaryExtension" - value "2.ad#") - (object Attribute - tool "Ada95" - name "CreateMissingDirectories" - value TRUE) - (object Attribute - tool "Ada95" - name "UseColonNotation" - value TRUE) - (object Attribute - tool "Ada95" - name "GenerateBodies" - value TRUE) - (object Attribute - tool "Ada95" - name "GenerateAccessorOperations" - value TRUE) - (object Attribute - tool "Ada95" - name "GenerateStandardOperations" - value TRUE) - (object Attribute - tool "Ada95" - name "DefaultCodeBody" - value "[statement]") - (object Attribute - tool "Ada95" - name "ImplicitParameter" - value TRUE) - (object Attribute - tool "Ada95" - name "CommentWidth" - value 60) - (object Attribute - tool "Ada95" - name "StopOnError" - value FALSE) - (object Attribute - tool "Ada95" - name "ErrorLimit" - value 30) - (object Attribute - tool "Ada95" - name "UseFileName" - value FALSE) - (object Attribute - tool "Ada95" - name "Directory" - value "$ROSEADA95_SOURCE"))) - (object Attribute - tool "Ada95" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "CodeName" - value "") - (object Attribute - tool "Ada95" - name "TypeName" - value "Object") - (object Attribute - tool "Ada95" - name "TypeVisibility" - value ("TypeVisibilitySet" 43)) - (object Attribute - tool "Ada95" - name "TypeImplementation" - value ("TypeImplementationSet" 208)) - (object Attribute - tool "Ada95" - name "TypeControl" - value ("TypeControlSet" 225)) - (object Attribute - tool "Ada95" - name "TypeControlName" - value "Controlled_${type}") - (object Attribute - tool "Ada95" - name "TypeDefinition" - value (value Text "")) - (object Attribute - tool "Ada95" - name "RecordImplementation" - value ("RecordImplementationSet" 209)) - (object Attribute - tool "Ada95" - name "RecordKindPackageName" - value "${class}_Record_Kinds") - (object Attribute - tool "Ada95" - name "IsLimited" - value FALSE) - (object Attribute - tool "Ada95" - name "IsSubtype" - value FALSE) - (object Attribute - tool "Ada95" - name "GenerateAccessType" - value ("GenerateAccessTypeSet" 230)) - (object Attribute - tool "Ada95" - name "AccessTypeName" - value "Handle") - (object Attribute - tool "Ada95" - name "AccessTypeVisibility" - value ("TypeVisibilitySet" 45)) - (object Attribute - tool "Ada95" - name "AccessTypeDefinition" - value (value Text "")) - (object Attribute - tool "Ada95" - name "AccessClassWide" - value TRUE) - (object Attribute - tool "Ada95" - name "MaybeAliased" - value FALSE) - (object Attribute - tool "Ada95" - name "ParameterizedImplementation" - value ("ParameterizedImplementationSet" 11)) - (object Attribute - tool "Ada95" - name "ParentClassName" - value "Superclass") - (object Attribute - tool "Ada95" - name "EnumerationLiteralPrefix" - value "A_") - (object Attribute - tool "Ada95" - name "RecordFieldPrefix" - value "The_") - (object Attribute - tool "Ada95" - name "ArrayOfTypeName" - value "Array_Of_${type}") - (object Attribute - tool "Ada95" - name "AccessArrayOfTypeName" - value "Access_Array_Of_${type}") - (object Attribute - tool "Ada95" - name "ArrayOfAccessTypeName" - value "Array_Of_${access_type}") - (object Attribute - tool "Ada95" - name "AccessArrayOfAccessTypeName" - value "Access_Array_Of_${access_type}") - (object Attribute - tool "Ada95" - name "ArrayIndexDefinition" - value "Positive range <>") - (object Attribute - tool "Ada95" - name "GenerateAccessorOperations" - value TRUE) - (object Attribute - tool "Ada95" - name "GenerateStandardOperations" - value TRUE) - (object Attribute - tool "Ada95" - name "ImplicitParameter" - value TRUE) - (object Attribute - tool "Ada95" - name "ImplicitParameterName" - value "This") - (object Attribute - tool "Ada95" - name "GenerateDefaultConstructor" - value ("SubprogramKindSet" 199)) - (object Attribute - tool "Ada95" - name "DefaultConstructorName" - value "Create") - (object Attribute - tool "Ada95" - name "InlineDefaultConstructor" - value FALSE) - (object Attribute - tool "Ada95" - name "GenerateCopyConstructor" - value ("SubprogramKindSet" 199)) - (object Attribute - tool "Ada95" - name "CopyConstructorName" - value "Copy") - (object Attribute - tool "Ada95" - name "InlineCopyConstructor" - value FALSE) - (object Attribute - tool "Ada95" - name "GenerateDestructor" - value ("ProcedureKindSet" 202)) - (object Attribute - tool "Ada95" - name "DestructorName" - value "Free") - (object Attribute - tool "Ada95" - name "InlineDestructor" - value FALSE) - (object Attribute - tool "Ada95" - name "GenerateTypeEquality" - value ("FunctionKindSet" 201)) - (object Attribute - tool "Ada95" - name "TypeEqualityName" - value "${quote}=${quote}") - (object Attribute - tool "Ada95" - name "InlineEquality" - value FALSE) - (object Attribute - tool "Ada95" - name "Representation" - value (value Text "")) - (object Attribute - tool "Ada95" - name "TypeImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Tagged" - value 208) - (object Attribute - tool "Ada95" - name "Record" - value 210) - (object Attribute - tool "Ada95" - name "Mixin" - value 211) - (object Attribute - tool "Ada95" - name "Protected" - value 44) - (object Attribute - tool "Ada95" - name "Task" - value 212))) - (object Attribute - tool "Ada95" - name "RecordImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "SingleType" - value 209) - (object Attribute - tool "Ada95" - name "MultipleTypes" - value 213))) - (object Attribute - tool "Ada95" - name "ParameterizedImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Generic" - value 11) - (object Attribute - tool "Ada95" - name "Unconstrained" - value 214))) - (object Attribute - tool "Ada95" - name "TypeVisibilitySet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Public" - value 45) - (object Attribute - tool "Ada95" - name "Private" - value 43))) - (object Attribute - tool "Ada95" - name "SubprogramKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Procedure" - value 202) - (object Attribute - tool "Ada95" - name "Function" - value 199) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada95" - name "ProcedureKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Procedure" - value 202) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada95" - name "FunctionKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Function" - value 199) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada95" - name "TypeControlSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "None" - value 225) - (object Attribute - tool "Ada95" - name "InitializationOnly" - value 226) - (object Attribute - tool "Ada95" - name "AssignmentFinalizationOnly" - value 227) - (object Attribute - tool "Ada95" - name "All" - value 228))) - (object Attribute - tool "Ada95" - name "GenerateAccessTypeSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Always" - value 229) - (object Attribute - tool "Ada95" - name "Auto" - value 230))) - (object Attribute - tool "Ada95" - name "IncompleteType" - value ("IncompleteTypeSet" 1)) - (object Attribute - tool "Ada95" - name "TypeControlVisibility" - value ("TypeVisibilitySet" 43)) - (object Attribute - tool "Ada95" - name "IncompleteTypeSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "DoNotDeclare" - value 1) - (object Attribute - tool "Ada95" - name "NoDiscriminantPart" - value 2) - (object Attribute - tool "Ada95" - name "UnknownDiscriminantPart" - value 3) - (object Attribute - tool "Ada95" - name "KnownDiscriminantPart" - value 4))))) - (object Attribute - tool "Ada95" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Generate" - value TRUE) - (object Attribute - tool "Ada95" - name "CopyrightNotice" - value (value Text "")) - (object Attribute - tool "Ada95" - name "FileName" - value "") - (object Attribute - tool "Ada95" - name "ReturnType" - value "") - (object Attribute - tool "Ada95" - name "GenericFormalParameters" - value (value Text "")) - (object Attribute - tool "Ada95" - name "AdditionalWiths" - value (value Text "")) - (object Attribute - tool "Ada95" - name "IsPrivate" - value FALSE))) - (object Attribute - tool "Ada95" - name "default__Module-Body" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Generate" - value TRUE) - (object Attribute - tool "Ada95" - name "CopyrightNotice" - value (value Text "")) - (object Attribute - tool "Ada95" - name "FileName" - value "") - (object Attribute - tool "Ada95" - name "ReturnType" - value "") - (object Attribute - tool "Ada95" - name "AdditionalWiths" - value (value Text "")) - (object Attribute - tool "Ada95" - name "IsSubunit" - value FALSE))) - (object Attribute - tool "Ada95" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "CodeName" - value "") - (object Attribute - tool "Ada95" - name "SubprogramImplementation" - value ("SubprogramImplementationSet" 2)) - (object Attribute - tool "Ada95" - name "Renames" - value "") - (object Attribute - tool "Ada95" - name "GenerateOverriding" - value TRUE) - (object Attribute - tool "Ada95" - name "ImplicitParameterMode" - value ("ParameterModeSet" 203)) - (object Attribute - tool "Ada95" - name "ImplicitParameterClassWide" - value FALSE) - (object Attribute - tool "Ada95" - name "GenerateAccessOperation" - value FALSE) - (object Attribute - tool "Ada95" - name "Inline" - value FALSE) - (object Attribute - tool "Ada95" - name "EntryCode" - value (value Text "")) - (object Attribute - tool "Ada95" - name "ExitCode" - value (value Text "")) - (object Attribute - tool "Ada95" - name "InitialCodeBody" - value "${default}") - (object Attribute - tool "Ada95" - name "EntryBarrierCondition" - value "True") - (object Attribute - tool "Ada95" - name "Representation" - value (value Text "")) - (object Attribute - tool "Ada95" - name "SubprogramImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Spec" - value 224) - (object Attribute - tool "Ada95" - name "Body" - value 2) - (object Attribute - tool "Ada95" - name "Abstract" - value 221) - (object Attribute - tool "Ada95" - name "Renaming" - value 222) - (object Attribute - tool "Ada95" - name "RenamingAsBody" - value 231) - (object Attribute - tool "Ada95" - name "Separate" - value 223))) - (object Attribute - tool "Ada95" - name "ParameterModeSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Default" - value 232) - (object Attribute - tool "Ada95" - name "In" - value 204) - (object Attribute - tool "Ada95" - name "Out" - value 205) - (object Attribute - tool "Ada95" - name "InOut" - value 203) - (object Attribute - tool "Ada95" - name "Access" - value 220) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))))) - (object Attribute - tool "Ada95" - name "default__Param" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Mode" - value ("ParameterModeSet" 232)) - (object Attribute - tool "Ada95" - name "ParameterModeSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Default" - value 232) - (object Attribute - tool "Ada95" - name "In" - value 204) - (object Attribute - tool "Ada95" - name "Out" - value 205) - (object Attribute - tool "Ada95" - name "InOut" - value 203) - (object Attribute - tool "Ada95" - name "Access" - value 220))))) - (object Attribute - tool "Ada95" - name "default__Has" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "CodeName" - value "") - (object Attribute - tool "Ada95" - name "NameIfUnlabeled" - value "The_${supplier}") - (object Attribute - tool "Ada95" - name "RecordFieldImplementation" - value ("RecordFieldImplementationSet" 216)) - (object Attribute - tool "Ada95" - name "RecordFieldName" - value "${relationship}") - (object Attribute - tool "Ada95" - name "GenerateGet" - value ("FunctionKindSet" 199)) - (object Attribute - tool "Ada95" - name "GenerateAccessGet" - value ("FunctionKindSet" 201)) - (object Attribute - tool "Ada95" - name "GetName" - value "Get_${relationship}") - (object Attribute - tool "Ada95" - name "InlineGet" - value TRUE) - (object Attribute - tool "Ada95" - name "GenerateSet" - value ("ProcedureKindSet" 202)) - (object Attribute - tool "Ada95" - name "GenerateAccessSet" - value ("ProcedureKindSet" 201)) - (object Attribute - tool "Ada95" - name "SetName" - value "Set_${relationship}") - (object Attribute - tool "Ada95" - name "InlineSet" - value TRUE) - (object Attribute - tool "Ada95" - name "IsAliased" - value FALSE) - (object Attribute - tool "Ada95" - name "IsConstant" - value FALSE) - (object Attribute - tool "Ada95" - name "InitialValue" - value "") - (object Attribute - tool "Ada95" - name "Declare" - value ("DeclareSet" 234)) - (object Attribute - tool "Ada95" - name "ContainerImplementation" - value ("ContainerImplementationSet" 217)) - (object Attribute - tool "Ada95" - name "ContainerGeneric" - value "List") - (object Attribute - tool "Ada95" - name "ContainerType" - value "") - (object Attribute - tool "Ada95" - name "ContainerDeclarations" - value (value Text "")) - (object Attribute - tool "Ada95" - name "SelectorName" - value "") - (object Attribute - tool "Ada95" - name "SelectorType" - value "") - (object Attribute - tool "Ada95" - name "DeclareSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Before" - value 233) - (object Attribute - tool "Ada95" - name "After" - value 234))) - (object Attribute - tool "Ada95" - name "RecordFieldImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Component" - value 216) - (object Attribute - tool "Ada95" - name "Discriminant" - value 218) - (object Attribute - tool "Ada95" - name "AccessDiscriminant" - value 219))) - (object Attribute - tool "Ada95" - name "ContainerImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Array" - value 217) - (object Attribute - tool "Ada95" - name "Generic" - value 11))) - (object Attribute - tool "Ada95" - name "ProcedureKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Procedure" - value 202) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada95" - name "FunctionKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Function" - value 199) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada95" - name "AccessDiscriminantClassWide" - value FALSE))) - (object Attribute - tool "Ada95" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "CodeName" - value "") - (object Attribute - tool "Ada95" - name "RecordFieldImplementation" - value ("RecordFieldImplementationSet" 216)) - (object Attribute - tool "Ada95" - name "RecordFieldName" - value "${attribute}") - (object Attribute - tool "Ada95" - name "GenerateGet" - value ("FunctionKindSet" 199)) - (object Attribute - tool "Ada95" - name "GenerateAccessGet" - value ("FunctionKindSet" 201)) - (object Attribute - tool "Ada95" - name "GetName" - value "Get_${attribute}") - (object Attribute - tool "Ada95" - name "InlineGet" - value TRUE) - (object Attribute - tool "Ada95" - name "GenerateSet" - value ("ProcedureKindSet" 202)) - (object Attribute - tool "Ada95" - name "GenerateAccessSet" - value ("ProcedureKindSet" 201)) - (object Attribute - tool "Ada95" - name "SetName" - value "Set_${attribute}") - (object Attribute - tool "Ada95" - name "InlineSet" - value TRUE) - (object Attribute - tool "Ada95" - name "IsAliased" - value FALSE) - (object Attribute - tool "Ada95" - name "IsConstant" - value FALSE) - (object Attribute - tool "Ada95" - name "InitialValue" - value "") - (object Attribute - tool "Ada95" - name "Declare" - value ("DeclareSet" 234)) - (object Attribute - tool "Ada95" - name "Representation" - value (value Text "")) - (object Attribute - tool "Ada95" - name "DeclareSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Before" - value 233) - (object Attribute - tool "Ada95" - name "After" - value 234))) - (object Attribute - tool "Ada95" - name "RecordFieldImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Component" - value 216) - (object Attribute - tool "Ada95" - name "Discriminant" - value 218) - (object Attribute - tool "Ada95" - name "AccessDiscriminant" - value 219))) - (object Attribute - tool "Ada95" - name "ProcedureKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Procedure" - value 202) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada95" - name "FunctionKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Function" - value 199) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada95" - name "AccessDiscriminantClassWide" - value FALSE))) - (object Attribute - tool "Ada95" - name "default__Association" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "NameIfUnlabeled" - value "The_${targetClass}") - (object Attribute - tool "Ada95" - name "GenerateGet" - value ("FunctionKindSet" 199)) - (object Attribute - tool "Ada95" - name "GetName" - value "Get_${association}") - (object Attribute - tool "Ada95" - name "InlineGet" - value FALSE) - (object Attribute - tool "Ada95" - name "GenerateSet" - value ("ProcedureKindSet" 202)) - (object Attribute - tool "Ada95" - name "SetName" - value "Set_${association}") - (object Attribute - tool "Ada95" - name "InlineSet" - value FALSE) - (object Attribute - tool "Ada95" - name "GenerateAssociate" - value ("ProcedureKindSet" 202)) - (object Attribute - tool "Ada95" - name "AssociateName" - value "Associate") - (object Attribute - tool "Ada95" - name "InlineAssociate" - value FALSE) - (object Attribute - tool "Ada95" - name "GenerateDissociate" - value ("ProcedureKindSet" 202)) - (object Attribute - tool "Ada95" - name "DissociateName" - value "Dissociate") - (object Attribute - tool "Ada95" - name "InlineDissociate" - value FALSE) - (object Attribute - tool "Ada95" - name "ProcedureKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Procedure" - value 202) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada95" - name "FunctionKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Function" - value 199) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))))) - (object Attribute - tool "Ada95" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "CodeName" - value "") - (object Attribute - tool "Ada95" - name "NameIfUnlabeled" - value "The_${targetClass}") - (object Attribute - tool "Ada95" - name "RecordFieldImplementation" - value ("RecordFieldImplementationSet" 216)) - (object Attribute - tool "Ada95" - name "RecordFieldName" - value "${target}") - (object Attribute - tool "Ada95" - name "GenerateGet" - value ("FunctionKindSet" 199)) - (object Attribute - tool "Ada95" - name "GenerateAccessGet" - value ("FunctionKindSet" 201)) - (object Attribute - tool "Ada95" - name "GetName" - value "Get_${target}") - (object Attribute - tool "Ada95" - name "InlineGet" - value TRUE) - (object Attribute - tool "Ada95" - name "GenerateSet" - value ("ProcedureKindSet" 202)) - (object Attribute - tool "Ada95" - name "GenerateAccessSet" - value ("ProcedureKindSet" 201)) - (object Attribute - tool "Ada95" - name "SetName" - value "Set_${target}") - (object Attribute - tool "Ada95" - name "InlineSet" - value TRUE) - (object Attribute - tool "Ada95" - name "IsAliased" - value FALSE) - (object Attribute - tool "Ada95" - name "IsConstant" - value FALSE) - (object Attribute - tool "Ada95" - name "InitialValue" - value "") - (object Attribute - tool "Ada95" - name "Declare" - value ("DeclareSet" 234)) - (object Attribute - tool "Ada95" - name "ContainerImplementation" - value ("ContainerImplementationSet" 217)) - (object Attribute - tool "Ada95" - name "ContainerGeneric" - value "List") - (object Attribute - tool "Ada95" - name "ContainerType" - value "") - (object Attribute - tool "Ada95" - name "ContainerDeclarations" - value (value Text "")) - (object Attribute - tool "Ada95" - name "SelectorName" - value "") - (object Attribute - tool "Ada95" - name "SelectorType" - value "") - (object Attribute - tool "Ada95" - name "ProcedureKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Procedure" - value 202) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada95" - name "DeclareSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Before" - value 233) - (object Attribute - tool "Ada95" - name "After" - value 234))) - (object Attribute - tool "Ada95" - name "RecordFieldImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Component" - value 216) - (object Attribute - tool "Ada95" - name "Discriminant" - value 218) - (object Attribute - tool "Ada95" - name "AccessDiscriminant" - value 219))) - (object Attribute - tool "Ada95" - name "ContainerImplementationSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Array" - value 217) - (object Attribute - tool "Ada95" - name "Generic" - value 11))) - (object Attribute - tool "Ada95" - name "FunctionKindSet" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Function" - value 199) - (object Attribute - tool "Ada95" - name "DoNotCreate" - value 201))) - (object Attribute - tool "Ada95" - name "AccessDiscriminantClassWide" - value FALSE) - (object Attribute - tool "Ada95" - name "Representation" - value (value Text "")))) - (object Attribute - tool "Ada95" - name "default__Subsystem" - value (list Attribute_Set - (object Attribute - tool "Ada95" - name "Directory" - value "AUTO GENERATE"))) - (object Attribute - tool "Ada95" - name "HiddenTool" - value FALSE) - (object Attribute - tool "CORBA" - name "propertyId" - value "809135966") - (object Attribute - tool "CORBA" - name "default__Project" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "CreateMissingDirectories" - value TRUE) - (object Attribute - tool "CORBA" - name "Editor" - value ("EditorType" 100)) - (object Attribute - tool "CORBA" - name "IncludePath" - value "") - (object Attribute - tool "CORBA" - name "StopOnError" - value TRUE) - (object Attribute - tool "CORBA" - name "EditorType" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "BuiltIn" - value 100) - (object Attribute - tool "CORBA" - name "WindowsShell" - value 101))) - (object Attribute - tool "CORBA" - name "PathSeparator" - value ""))) - (object Attribute - tool "CORBA" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "ArrayDimensions" - value "") - (object Attribute - tool "CORBA" - name "ConstValue" - value "") - (object Attribute - tool "CORBA" - name "ImplementationType" - value ""))) - (object Attribute - tool "CORBA" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "AdditionalIncludes" - value (value Text "")) - (object Attribute - tool "CORBA" - name "CmIdentification" - value (value Text " %X% @(#) code/webservice/webservice-j2ee.mdl, WCCM.J2EE.WEBSERVICES, WCCM, 6.0.0-td-h")) - (object Attribute - tool "CORBA" - name "CopyrightNotice" - value (value Text "")) - (object Attribute - tool "CORBA" - name "InclusionProtectionSymbol" - value "AUTO GENERATE"))) - (object Attribute - tool "CORBA" - name "default__Module-Body" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "AdditionalIncludes" - value (value Text "")) - (object Attribute - tool "CORBA" - name "CmIdentification" - value (value Text " %X% @(#) code/webservice/webservice-j2ee.mdl, WCCM.J2EE.WEBSERVICES, WCCM, 6.0.0-td-h")) - (object Attribute - tool "CORBA" - name "CopyrightNotice" - value (value Text "")) - (object Attribute - tool "CORBA" - name "InclusionProtectionSymbol" - value "AUTO GENERATE"))) - (object Attribute - tool "CORBA" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "Context" - value "") - (object Attribute - tool "CORBA" - name "OperationIsOneWay" - value FALSE))) - (object Attribute - tool "CORBA" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "ArrayDimensions" - value "") - (object Attribute - tool "CORBA" - name "CaseSpecifier" - value "") - (object Attribute - tool "CORBA" - name "IsReadOnly" - value FALSE) - (object Attribute - tool "CORBA" - name "Order" - value ""))) - (object Attribute - tool "CORBA" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "ArrayDimensions" - value "") - (object Attribute - tool "CORBA" - name "CaseSpecifier" - value "") - (object Attribute - tool "CORBA" - name "GenerateForwardReference" - value FALSE) - (object Attribute - tool "CORBA" - name "IsReadOnly" - value FALSE) - (object Attribute - tool "CORBA" - name "Order" - value "") - (object Attribute - tool "CORBA" - name "BoundedRoleType" - value ("AssocTypeSet" 47)) - (object Attribute - tool "CORBA" - name "AssocTypeSet" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "Array" - value 24) - (object Attribute - tool "CORBA" - name "Sequence" - value 47))))) - (object Attribute - tool "CORBA" - name "default__Uses" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "GenerateForwardReference" - value FALSE))) - (object Attribute - tool "CORBA" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Data Modeler" - name "propertyId" - value "809135966") - (object Attribute - tool "Data Modeler" - name "default__Project" - value (list Attribute_Set - (object Attribute - tool "Data Modeler" - name "project" - value "") - (object Attribute - tool "Data Modeler" - name "TableCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "ViewCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "DomainCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "SPPackageCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "TriggerCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "IndexCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "ConstraintCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "StoreProcedureCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "PrimaryKeyCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "ForeignKeyCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "JoinCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "TableSpaceCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "cONTAINERCounter" - value 0) - (object Attribute - tool "Data Modeler" - name "TablePrefix" - value "") - (object Attribute - tool "Data Modeler" - name "ViewPrefix" - value "") - (object Attribute - tool "Data Modeler" - name "DomainPrefix" - value "") - (object Attribute - tool "Data Modeler" - name "TriggerPrefix" - value "") - (object Attribute - tool "Data Modeler" - name "IndexPrefix" - value "") - (object Attribute - tool "Data Modeler" - name "ConstraintPrefix" - value "") - (object Attribute - tool "Data Modeler" - name "StoreProcedurePrefix" - value "") - (object Attribute - tool "Data Modeler" - name "PrimaryKeyPrefix" - value "") - (object Attribute - tool "Data Modeler" - name "ForeignKeyPrefix" - value "") - (object Attribute - tool "Data Modeler" - name "TableSpacePrefix" - value ""))) - (object Attribute - tool "Data Modeler" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "Data Modeler" - name "dmItem" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DMName" - value "") - (object Attribute - tool "Data Modeler" - name "IsDatabase" - value FALSE) - (object Attribute - tool "Data Modeler" - name "TargetDatabase" - value "") - (object Attribute - tool "Data Modeler" - name "Location" - value "") - (object Attribute - tool "Data Modeler" - name "IsTableSpace" - value FALSE) - (object Attribute - tool "Data Modeler" - name "TableSpaceType" - value "") - (object Attribute - tool "Data Modeler" - name "IsDeault" - value FALSE) - (object Attribute - tool "Data Modeler" - name "BufferPool" - value "") - (object Attribute - tool "Data Modeler" - name "ExtentSize" - value 1) - (object Attribute - tool "Data Modeler" - name "PrefetchSize" - value 1) - (object Attribute - tool "Data Modeler" - name "PageSize" - value 4) - (object Attribute - tool "Data Modeler" - name "ManagedBy" - value "") - (object Attribute - tool "Data Modeler" - name "ContainerList" - value ""))) - (object Attribute - tool "Data Modeler" - name "default__Category" - value (list Attribute_Set - (object Attribute - tool "Data Modeler" - name "dmItem" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DMName" - value "") - (object Attribute - tool "Data Modeler" - name "dmSchema" - value "") - (object Attribute - tool "Data Modeler" - name "dmDomainPackage" - value "") - (object Attribute - tool "Data Modeler" - name "IsSchema" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsDomainPackage" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsRootSchema" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsRootDomainPackage" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsSchemaPackage" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DatabaseID" - value "") - (object Attribute - tool "Data Modeler" - name "DBMS" - value ""))) - (object Attribute - tool "Data Modeler" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "Data Modeler" - name "dmItem" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DMName" - value "") - (object Attribute - tool "Data Modeler" - name "IsTable" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsView" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsDomain" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsSPPackage" - value FALSE) - (object Attribute - tool "Data Modeler" - name "Synonymns" - value "") - (object Attribute - tool "Data Modeler" - name "TableSpaceID" - value "") - (object Attribute - tool "Data Modeler" - name "SourceId" - value "") - (object Attribute - tool "Data Modeler" - name "SourceType" - value "") - (object Attribute - tool "Data Modeler" - name "CorrelationName" - value "") - (object Attribute - tool "Data Modeler" - name "SelectClause" - value "") - (object Attribute - tool "Data Modeler" - name "IsUpdateable" - value TRUE) - (object Attribute - tool "Data Modeler" - name "CheckOption" - value 0) - (object Attribute - tool "Data Modeler" - name "IsSnapShot" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsDistinct" - value FALSE) - (object Attribute - tool "Data Modeler" - name "PersistToServer" - value "") - (object Attribute - tool "Data Modeler" - name "IsPackage" - value FALSE) - (object Attribute - tool "Data Modeler" - name "TableSpace" - value "") - (object Attribute - tool "Data Modeler" - name "IsUpdatable" - value FALSE))) - (object Attribute - tool "Data Modeler" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "Data Modeler" - name "dmItem" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DMName" - value "") - (object Attribute - tool "Data Modeler" - name "Ordinal" - value 0) - (object Attribute - tool "Data Modeler" - name "IsIdentity" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsUnique" - value FALSE) - (object Attribute - tool "Data Modeler" - name "NullsAllowed" - value FALSE) - (object Attribute - tool "Data Modeler" - name "Length" - value 0) - (object Attribute - tool "Data Modeler" - name "Scale" - value 0) - (object Attribute - tool "Data Modeler" - name "ColumnType" - value "Native") - (object Attribute - tool "Data Modeler" - name "ForBitData" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DefaultValueType" - value "") - (object Attribute - tool "Data Modeler" - name "DefaultValue" - value "") - (object Attribute - tool "Data Modeler" - name "SourceId" - value "") - (object Attribute - tool "Data Modeler" - name "SourceType" - value "") - (object Attribute - tool "Data Modeler" - name "OID" - value FALSE))) - (object Attribute - tool "Data Modeler" - name "default__Association" - value (list Attribute_Set - (object Attribute - tool "Data Modeler" - name "dmItem" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DMName" - value "") - (object Attribute - tool "Data Modeler" - name "IsRelationship" - value FALSE) - (object Attribute - tool "Data Modeler" - name "SourceId" - value "") - (object Attribute - tool "Data Modeler" - name "SourceType" - value "") - (object Attribute - tool "Data Modeler" - name "RIMethod" - value "") - (object Attribute - tool "Data Modeler" - name "ParentUpdateRule" - value "") - (object Attribute - tool "Data Modeler" - name "ParentUpdateRuleName" - value "") - (object Attribute - tool "Data Modeler" - name "ParentDeleteRule" - value "") - (object Attribute - tool "Data Modeler" - name "ParentDeleteRuleName" - value "") - (object Attribute - tool "Data Modeler" - name "ChildInsertRestrict" - value FALSE) - (object Attribute - tool "Data Modeler" - name "ChildInsertRestrictName" - value "") - (object Attribute - tool "Data Modeler" - name "ChildMultiplicity" - value FALSE) - (object Attribute - tool "Data Modeler" - name "ChildMultiplicityName" - value ""))) - (object Attribute - tool "Data Modeler" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "Data Modeler" - name "dmItem" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DMName" - value "") - (object Attribute - tool "Data Modeler" - name "ConstraintName" - value ""))) - (object Attribute - tool "Data Modeler" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "Data Modeler" - name "dmItem" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DMName" - value "") - (object Attribute - tool "Data Modeler" - name "IsConstraint" - value FALSE) - (object Attribute - tool "Data Modeler" - name "ConstraintType" - value "") - (object Attribute - tool "Data Modeler" - name "IsIndex" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsTrigger" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsStoredProcedure" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsCluster" - value FALSE) - (object Attribute - tool "Data Modeler" - name "TableSpace" - value "") - (object Attribute - tool "Data Modeler" - name "FillFactor" - value 0) - (object Attribute - tool "Data Modeler" - name "KeyList" - value "") - (object Attribute - tool "Data Modeler" - name "CheckPredicate" - value "") - (object Attribute - tool "Data Modeler" - name "IsUnique" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DeferalMode" - value "") - (object Attribute - tool "Data Modeler" - name "InitialCheckTime" - value "") - (object Attribute - tool "Data Modeler" - name "TriggerType" - value "") - (object Attribute - tool "Data Modeler" - name "IsInsertEvent" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsUpdateEvent" - value FALSE) - (object Attribute - tool "Data Modeler" - name "IsDeleteEvent" - value FALSE) - (object Attribute - tool "Data Modeler" - name "RefOldTable" - value "") - (object Attribute - tool "Data Modeler" - name "RefNewTable" - value "") - (object Attribute - tool "Data Modeler" - name "RefOldRow" - value "") - (object Attribute - tool "Data Modeler" - name "RefNewRow" - value "") - (object Attribute - tool "Data Modeler" - name "IsRow" - value FALSE) - (object Attribute - tool "Data Modeler" - name "WhenClause" - value "") - (object Attribute - tool "Data Modeler" - name "Language" - value "SQL") - (object Attribute - tool "Data Modeler" - name "ProcType" - value "Procedure") - (object Attribute - tool "Data Modeler" - name "IsDeterministic" - value FALSE) - (object Attribute - tool "Data Modeler" - name "ParameterStyle" - value "") - (object Attribute - tool "Data Modeler" - name "ReturnedNull" - value FALSE) - (object Attribute - tool "Data Modeler" - name "ExternalName" - value "") - (object Attribute - tool "Data Modeler" - name "Length" - value "") - (object Attribute - tool "Data Modeler" - name "Scale" - value "") - (object Attribute - tool "Data Modeler" - name "ForBitData" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DefaultValue" - value "") - (object Attribute - tool "Data Modeler" - name "DefaultValueType" - value ""))) - (object Attribute - tool "Data Modeler" - name "default__Parameter" - value (list Attribute_Set - (object Attribute - tool "Data Modeler" - name "dmItem" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DMName" - value "") - (object Attribute - tool "Data Modeler" - name "IsInParameter" - value TRUE) - (object Attribute - tool "Data Modeler" - name "IsOutParameter" - value FALSE) - (object Attribute - tool "Data Modeler" - name "Ordinal" - value "") - (object Attribute - tool "Data Modeler" - name "Length" - value "") - (object Attribute - tool "Data Modeler" - name "Scale" - value "") - (object Attribute - tool "Data Modeler" - name "ForBitData" - value FALSE) - (object Attribute - tool "Data Modeler" - name "DefaultValueType" - value "") - (object Attribute - tool "Data Modeler" - name "DefaultValue" - value "") - (object Attribute - tool "Data Modeler" - name "OperationID" - value ""))) - (object Attribute - tool "Data Modeler" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Data Modeler Communicator" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Deploy" - name "HiddenTool" - value FALSE) - (object Attribute - tool "framework" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Java" - name "propertyId" - value "809135966") - (object Attribute - tool "Java" - name "default__Project" - value (list Attribute_Set - (object Attribute - tool "Java" - name "RootDir" - value "") - (object Attribute - tool "Java" - name "CreateMissingDirectories" - value TRUE) - (object Attribute - tool "Java" - name "StopOnError" - value FALSE) - (object Attribute - tool "Java" - name "UsePrefixes" - value FALSE) - (object Attribute - tool "Java" - name "AutoSync" - value FALSE) - (object Attribute - tool "Java" - name "NotShowRoseIDDlg" - value FALSE) - (object Attribute - tool "Java" - name "ShowCodegenDlg" - value FALSE) - (object Attribute - tool "Java" - name "GenerateRoseID" - value TRUE) - (object Attribute - tool "Java" - name "GenerateDefaultJ2EEJavadoc" - value TRUE) - (object Attribute - tool "Java" - name "GenerateDefaultReturnLine" - value TRUE) - (object Attribute - tool "Java" - name "JavadocDefaultAuthor" - value "") - (object Attribute - tool "Java" - name "JavadocDefaultVersion" - value "") - (object Attribute - tool "Java" - name "JavadocDefaultSince" - value "") - (object Attribute - tool "Java" - name "UserDefineJavaDocTags" - value "") - (object Attribute - tool "Java" - name "JavadocNumAsterisks" - value 0) - (object Attribute - tool "Java" - name "MaxNumChars" - value 80) - (object Attribute - tool "Java" - name "Editor" - value ("EditorType" 100)) - (object Attribute - tool "Java" - name "VM" - value ("VMType" 200)) - (object Attribute - tool "Java" - name "ClassPath" - value "") - (object Attribute - tool "Java" - name "ReferenceClasspath" - value "") - (object Attribute - tool "Java" - name "EditorType" - value (list Attribute_Set - (object Attribute - tool "Java" - name "BuiltIn" - value 100) - (object Attribute - tool "Java" - name "WindowsShell" - value 101))) - (object Attribute - tool "Java" - name "VMType" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Sun" - value 200) - (object Attribute - tool "Java" - name "Microsoft" - value 201) - (object Attribute - tool "Java" - name "IBM" - value 202))) - (object Attribute - tool "Java" - name "VAJavaWorkingFolder" - value "") - (object Attribute - tool "Java" - name "InstanceVariablePrefix" - value "m_") - (object Attribute - tool "Java" - name "ClassVariablePrefix" - value "s_") - (object Attribute - tool "Java" - name "DefaultAttributeDataType" - value "int") - (object Attribute - tool "Java" - name "DefaultOperationReturnType" - value "void") - (object Attribute - tool "Java" - name "NoClassCustomDlg" - value FALSE) - (object Attribute - tool "Java" - name "GlobalImports" - value (value Text "")) - (object Attribute - tool "Java" - name "OpenBraceClassStyle" - value TRUE) - (object Attribute - tool "Java" - name "OpenBraceMethodStyle" - value TRUE) - (object Attribute - tool "Java" - name "UseTabs" - value FALSE) - (object Attribute - tool "Java" - name "UseSpaces" - value TRUE) - (object Attribute - tool "Java" - name "SpacingItems" - value 3) - (object Attribute - tool "Java" - name "RoseDefaultCommentStyle" - value TRUE) - (object Attribute - tool "Java" - name "AsteriskCommentStyle" - value FALSE) - (object Attribute - tool "Java" - name "JavaCommentStyle" - value FALSE) - (object Attribute - tool "Java" - name "JavadocAuthor" - value FALSE) - (object Attribute - tool "Java" - name "JavadocSince" - value FALSE) - (object Attribute - tool "Java" - name "JavadocVersion" - value FALSE) - (object Attribute - tool "Java" - name "BeanPrefix" - value "") - (object Attribute - tool "Java" - name "BeanSuffix" - value "") - (object Attribute - tool "Java" - name "RemotePrefix" - value "") - (object Attribute - tool "Java" - name "RemoteSuffix" - value "") - (object Attribute - tool "Java" - name "HomePrefix" - value "") - (object Attribute - tool "Java" - name "HomeSuffix" - value "") - (object Attribute - tool "Java" - name "LocalPrefix" - value "") - (object Attribute - tool "Java" - name "LocalSuffix" - value "") - (object Attribute - tool "Java" - name "LocalHomePrefix" - value "") - (object Attribute - tool "Java" - name "LocalHomeSuffix" - value "") - (object Attribute - tool "Java" - name "PrimaryKeyPrefix" - value "") - (object Attribute - tool "Java" - name "PrimaryKeySuffix" - value "") - (object Attribute - tool "Java" - name "EJBDTDLocation" - value "") - (object Attribute - tool "Java" - name "ServletDTDLocation" - value "") - (object Attribute - tool "Java" - name "DefaultEJBVersion" - value "") - (object Attribute - tool "Java" - name "DefaultServletVersion" - value "") - (object Attribute - tool "Java" - name "SourceControl" - value FALSE) - (object Attribute - tool "Java" - name "SCCSelected" - value FALSE) - (object Attribute - tool "Java" - name "SCCProjectSourceRoot" - value "") - (object Attribute - tool "Java" - name "SCCProjectName" - value "") - (object Attribute - tool "Java" - name "SCCComment" - value FALSE))) - (object Attribute - tool "Java" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Final" - value FALSE) - (object Attribute - tool "Java" - name "Static" - value FALSE) - (object Attribute - tool "Java" - name "GenerateDefaultConstructor" - value TRUE) - (object Attribute - tool "Java" - name "ConstructorIs" - value ("Ctor_Set" 62)) - (object Attribute - tool "Java" - name "Ctor_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "public" - value 62) - (object Attribute - tool "Java" - name "protected" - value 63) - (object Attribute - tool "Java" - name "private" - value 64) - (object Attribute - tool "Java" - name "package" - value 65))) - (object Attribute - tool "Java" - name "GenerateFinalizer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateStaticInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateInstanceInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateCode" - value TRUE) - (object Attribute - tool "Java" - name "DisableAutoSync" - value FALSE) - (object Attribute - tool "Java" - name "ReadOnly" - value FALSE) - (object Attribute - tool "Java" - name "Strictfp" - value FALSE) - (object Attribute - tool "Java" - name "ServletName" - value "") - (object Attribute - tool "Java" - name "ServletContextRef" - value FALSE) - (object Attribute - tool "Java" - name "IsSingleThread" - value FALSE) - (object Attribute - tool "Java" - name "ServletInitParameter" - value "") - (object Attribute - tool "Java" - name "ServletInitParameterNames" - value FALSE) - (object Attribute - tool "Java" - name "ServletIsSecure" - value FALSE) - (object Attribute - tool "Java" - name "ServletRequestDispatcher" - value FALSE) - (object Attribute - tool "Java" - name "ServletRequestDispatcherPath" - value "") - (object Attribute - tool "Java" - name "DispatcherInclude" - value FALSE) - (object Attribute - tool "Java" - name "DispatcherForward" - value FALSE) - (object Attribute - tool "Java" - name "ServletSecurityRoles" - value "") - (object Attribute - tool "Java" - name "ServletgetInfo" - value "") - (object Attribute - tool "Java" - name "ServletRequestAttribute" - value "") - (object Attribute - tool "Java" - name "ServletRequestAttributesNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForRequestAttributes" - value "") - (object Attribute - tool "Java" - name "ServletRequestParameter" - value "") - (object Attribute - tool "Java" - name "ServletRequestParameterNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForRequestParameters" - value "") - (object Attribute - tool "Java" - name "ServletHeader" - value "") - (object Attribute - tool "Java" - name "ServletHeaderNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForHeaders" - value "") - (object Attribute - tool "Java" - name "ServletIntHeader" - value FALSE) - (object Attribute - tool "Java" - name "ServletDateHeader" - value FALSE) - (object Attribute - tool "Java" - name "ServletCookie" - value FALSE) - (object Attribute - tool "Java" - name "MethodForCookie" - value "") - (object Attribute - tool "Java" - name "ServletContentType" - value "") - (object Attribute - tool "Java" - name "GenerateHTML" - value FALSE) - (object Attribute - tool "Java" - name "Generate_XML_DD" - value TRUE) - (object Attribute - tool "Java" - name "EJBCmpField" - value "") - (object Attribute - tool "Java" - name "EJBEnvironmentProperties" - value "") - (object Attribute - tool "Java" - name "EJBCnxFactory" - value "") - (object Attribute - tool "Java" - name "EJBReferences" - value "") - (object Attribute - tool "Java" - name "EJBSecurityRoles" - value "") - (object Attribute - tool "Java" - name "EJBNameInJAR" - value "") - (object Attribute - tool "Java" - name "EJBSessionType" - value ("EJBSessionType_Set" 200)) - (object Attribute - tool "Java" - name "EJBSessionType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "" - value 200) - (object Attribute - tool "Java" - name "Stateless" - value 201) - (object Attribute - tool "Java" - name "Stateful" - value 202))) - (object Attribute - tool "Java" - name "EJBTransactionType" - value ("EJBTransactionType_Set" 211)) - (object Attribute - tool "Java" - name "EJBTransactionType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Container" - value 211) - (object Attribute - tool "Java" - name "Bean" - value 212))) - (object Attribute - tool "Java" - name "EJBPersistenceType" - value ("EJBPersistenceType_Set" 220)) - (object Attribute - tool "Java" - name "EJBPersistenceType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "" - value 220) - (object Attribute - tool "Java" - name "Bean" - value 221) - (object Attribute - tool "Java" - name "Container" - value 222))) - (object Attribute - tool "Java" - name "EJBReentrant" - value FALSE) - (object Attribute - tool "Java" - name "BMP_Extend_CMP" - value FALSE) - (object Attribute - tool "Java" - name "ServletXMLFilePath" - value "") - (object Attribute - tool "Java" - name "EJBSessionSync" - value FALSE) - (object Attribute - tool "Java" - name "EJBVersion" - value ("EJBVersion_Set" 230)) - (object Attribute - tool "Java" - name "EJBVersion_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "2.0" - value 230) - (object Attribute - tool "Java" - name "1.x" - value 231))) - (object Attribute - tool "Java" - name "EJBXMLFilePath" - value ""))) - (object Attribute - tool "Java" - name "Default_Servlet__Class" - value (list Attribute_Set - (object Attribute - tool "Java" - name "ServletName" - value "") - (object Attribute - tool "Java" - name "ServletContextRef" - value FALSE) - (object Attribute - tool "Java" - name "IsSingleThread" - value FALSE) - (object Attribute - tool "Java" - name "ServletInitParameter" - value "") - (object Attribute - tool "Java" - name "ServletInitParameterNames" - value FALSE) - (object Attribute - tool "Java" - name "ServletIsSecure" - value FALSE) - (object Attribute - tool "Java" - name "ServletRequestDispatcher" - value FALSE) - (object Attribute - tool "Java" - name "ServletRequestDispatcherPath" - value "") - (object Attribute - tool "Java" - name "DispatcherInclude" - value FALSE) - (object Attribute - tool "Java" - name "DispatcherForward" - value FALSE) - (object Attribute - tool "Java" - name "ServletSecurityRoles" - value "") - (object Attribute - tool "Java" - name "ServletgetInfo" - value "") - (object Attribute - tool "Java" - name "ServletXMLFilePath" - value "") - (object Attribute - tool "Java" - name "Final" - value FALSE) - (object Attribute - tool "Java" - name "Static" - value FALSE) - (object Attribute - tool "Java" - name "GenerateDefaultConstructor" - value TRUE) - (object Attribute - tool "Java" - name "ConstructorIs" - value ("Ctor_Set" 62)) - (object Attribute - tool "Java" - name "Ctor_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "public" - value 62) - (object Attribute - tool "Java" - name "protected" - value 63) - (object Attribute - tool "Java" - name "private" - value 64) - (object Attribute - tool "Java" - name "package" - value 65))) - (object Attribute - tool "Java" - name "GenerateFinalizer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateStaticInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateInstanceInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateCode" - value TRUE) - (object Attribute - tool "Java" - name "DisableAutoSync" - value FALSE) - (object Attribute - tool "Java" - name "ServletRequestAttribute" - value "") - (object Attribute - tool "Java" - name "ServletRequestAttributesNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForRequestAttributes" - value "") - (object Attribute - tool "Java" - name "ServletRequestParameter" - value "") - (object Attribute - tool "Java" - name "ServletRequestParameterNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForRequestParameters" - value "") - (object Attribute - tool "Java" - name "ServletHeader" - value "") - (object Attribute - tool "Java" - name "ServletHeaderNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForHeaders" - value "") - (object Attribute - tool "Java" - name "ServletIntHeader" - value FALSE) - (object Attribute - tool "Java" - name "ServletDateHeader" - value FALSE) - (object Attribute - tool "Java" - name "ServletCookie" - value FALSE) - (object Attribute - tool "Java" - name "MethodForCookie" - value "") - (object Attribute - tool "Java" - name "ServletContentType" - value "") - (object Attribute - tool "Java" - name "GenerateHTML" - value FALSE) - (object Attribute - tool "Java" - name "Generate_XML_DD" - value TRUE) - (object Attribute - tool "Java" - name "EJBCmpField" - value "") - (object Attribute - tool "Java" - name "EJBEnvironmentProperties" - value "") - (object Attribute - tool "Java" - name "EJBCnxFactory" - value "") - (object Attribute - tool "Java" - name "EJBReferences" - value "") - (object Attribute - tool "Java" - name "EJBSecurityRoles" - value "") - (object Attribute - tool "Java" - name "EJBNameInJAR" - value "") - (object Attribute - tool "Java" - name "EJBSessionType" - value ("EJBSessionType_Set" 200)) - (object Attribute - tool "Java" - name "EJBSessionType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "" - value 200) - (object Attribute - tool "Java" - name "Stateless" - value 201) - (object Attribute - tool "Java" - name "Stateful" - value 202))) - (object Attribute - tool "Java" - name "EJBTransactionType" - value ("EJBTransactionType_Set" 211)) - (object Attribute - tool "Java" - name "EJBTransactionType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Container" - value 211) - (object Attribute - tool "Java" - name "Bean" - value 212))) - (object Attribute - tool "Java" - name "EJBPersistenceType" - value ("EJBPersistenceType_Set" 220)) - (object Attribute - tool "Java" - name "EJBPersistenceType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "" - value 220) - (object Attribute - tool "Java" - name "Bean" - value 221) - (object Attribute - tool "Java" - name "Container" - value 222))) - (object Attribute - tool "Java" - name "EJBReentrant" - value FALSE) - (object Attribute - tool "Java" - name "BMP_Extend_CMP" - value FALSE) - (object Attribute - tool "Java" - name "ReadOnly" - value FALSE) - (object Attribute - tool "Java" - name "Strictfp" - value FALSE) - (object Attribute - tool "Java" - name "EJBSessionSync" - value FALSE) - (object Attribute - tool "Java" - name "EJBVersion" - value ("EJBVersion_Set" 230)) - (object Attribute - tool "Java" - name "EJBVersion_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "2.0" - value 230) - (object Attribute - tool "Java" - name "1.x" - value 231))) - (object Attribute - tool "Java" - name "EJBXMLFilePath" - value ""))) - (object Attribute - tool "Java" - name "Http_Servlet__Class" - value (list Attribute_Set - (object Attribute - tool "Java" - name "ServletRequestAttribute" - value "") - (object Attribute - tool "Java" - name "ServletRequestAttributesNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForRequestAttributes" - value "") - (object Attribute - tool "Java" - name "ServletRequestParameter" - value "") - (object Attribute - tool "Java" - name "ServletRequestParameterNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForRequestParameters" - value "") - (object Attribute - tool "Java" - name "ServletHeader" - value "") - (object Attribute - tool "Java" - name "ServletHeaderNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForHeaders" - value "") - (object Attribute - tool "Java" - name "ServletIntHeader" - value FALSE) - (object Attribute - tool "Java" - name "ServletDateHeader" - value FALSE) - (object Attribute - tool "Java" - name "ServletCookie" - value FALSE) - (object Attribute - tool "Java" - name "MethodForCookie" - value "") - (object Attribute - tool "Java" - name "ServletContentType" - value "") - (object Attribute - tool "Java" - name "GenerateHTML" - value FALSE) - (object Attribute - tool "Java" - name "Final" - value FALSE) - (object Attribute - tool "Java" - name "Static" - value FALSE) - (object Attribute - tool "Java" - name "GenerateDefaultConstructor" - value TRUE) - (object Attribute - tool "Java" - name "ConstructorIs" - value ("Ctor_Set" 62)) - (object Attribute - tool "Java" - name "Ctor_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "public" - value 62) - (object Attribute - tool "Java" - name "protected" - value 63) - (object Attribute - tool "Java" - name "private" - value 64) - (object Attribute - tool "Java" - name "package" - value 65))) - (object Attribute - tool "Java" - name "GenerateFinalizer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateStaticInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateInstanceInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateCode" - value TRUE) - (object Attribute - tool "Java" - name "DisableAutoSync" - value FALSE) - (object Attribute - tool "Java" - name "ServletName" - value "") - (object Attribute - tool "Java" - name "ServletContextRef" - value FALSE) - (object Attribute - tool "Java" - name "IsSingleThread" - value FALSE) - (object Attribute - tool "Java" - name "ServletInitParameter" - value "") - (object Attribute - tool "Java" - name "ServletInitParameterNames" - value FALSE) - (object Attribute - tool "Java" - name "ServletIsSecure" - value FALSE) - (object Attribute - tool "Java" - name "ServletRequestDispatcher" - value FALSE) - (object Attribute - tool "Java" - name "ServletRequestDispatcherPath" - value "") - (object Attribute - tool "Java" - name "DispatcherInclude" - value FALSE) - (object Attribute - tool "Java" - name "DispatcherForward" - value FALSE) - (object Attribute - tool "Java" - name "ServletSecurityRoles" - value "") - (object Attribute - tool "Java" - name "ServletgetInfo" - value "") - (object Attribute - tool "Java" - name "Generate_XML_DD" - value TRUE) - (object Attribute - tool "Java" - name "EJBCmpField" - value "") - (object Attribute - tool "Java" - name "EJBEnvironmentProperties" - value "") - (object Attribute - tool "Java" - name "EJBCnxFactory" - value "") - (object Attribute - tool "Java" - name "EJBReferences" - value "") - (object Attribute - tool "Java" - name "EJBSecurityRoles" - value "") - (object Attribute - tool "Java" - name "EJBNameInJAR" - value "") - (object Attribute - tool "Java" - name "EJBSessionType" - value ("EJBSessionType_Set" 200)) - (object Attribute - tool "Java" - name "EJBSessionType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "" - value 200) - (object Attribute - tool "Java" - name "Stateless" - value 201) - (object Attribute - tool "Java" - name "Stateful" - value 202))) - (object Attribute - tool "Java" - name "EJBTransactionType" - value ("EJBTransactionType_Set" 211)) - (object Attribute - tool "Java" - name "EJBTransactionType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Container" - value 211) - (object Attribute - tool "Java" - name "Bean" - value 212))) - (object Attribute - tool "Java" - name "EJBPersistenceType" - value ("EJBPersistenceType_Set" 220)) - (object Attribute - tool "Java" - name "EJBPersistenceType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "" - value 220) - (object Attribute - tool "Java" - name "Bean" - value 221) - (object Attribute - tool "Java" - name "Container" - value 222))) - (object Attribute - tool "Java" - name "EJBReentrant" - value FALSE) - (object Attribute - tool "Java" - name "BMP_Extend_CMP" - value FALSE) - (object Attribute - tool "Java" - name "ReadOnly" - value FALSE) - (object Attribute - tool "Java" - name "Strictfp" - value FALSE) - (object Attribute - tool "Java" - name "ServletXMLFilePath" - value "") - (object Attribute - tool "Java" - name "EJBSessionSync" - value FALSE) - (object Attribute - tool "Java" - name "EJBVersion" - value ("EJBVersion_Set" 230)) - (object Attribute - tool "Java" - name "EJBVersion_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "2.0" - value 230) - (object Attribute - tool "Java" - name "1.x" - value 231))) - (object Attribute - tool "Java" - name "EJBXMLFilePath" - value ""))) - (object Attribute - tool "Java" - name "Default_EJB__Class" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Generate_XML_DD" - value TRUE) - (object Attribute - tool "Java" - name "EJBCmpField" - value "") - (object Attribute - tool "Java" - name "EJBEnvironmentProperties" - value "") - (object Attribute - tool "Java" - name "EJBCnxFactory" - value "") - (object Attribute - tool "Java" - name "EJBReferences" - value "") - (object Attribute - tool "Java" - name "EJBSecurityRoles" - value "") - (object Attribute - tool "Java" - name "EJBNameInJAR" - value "") - (object Attribute - tool "Java" - name "EJBSessionType" - value ("EJBSessionType_Set" 200)) - (object Attribute - tool "Java" - name "EJBSessionType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "" - value 200) - (object Attribute - tool "Java" - name "Stateless" - value 201) - (object Attribute - tool "Java" - name "Stateful" - value 202))) - (object Attribute - tool "Java" - name "EJBTransactionType" - value ("EJBTransactionType_Set" 211)) - (object Attribute - tool "Java" - name "EJBTransactionType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Container" - value 211) - (object Attribute - tool "Java" - name "Bean" - value 212))) - (object Attribute - tool "Java" - name "EJBPersistenceType" - value ("EJBPersistenceType_Set" 220)) - (object Attribute - tool "Java" - name "EJBPersistenceType_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "" - value 220) - (object Attribute - tool "Java" - name "Bean" - value 221) - (object Attribute - tool "Java" - name "Container" - value 222))) - (object Attribute - tool "Java" - name "EJBReentrant" - value FALSE) - (object Attribute - tool "Java" - name "EJBSessionSync" - value FALSE) - (object Attribute - tool "Java" - name "EJBVersion" - value ("EJBVersion_Set" 230)) - (object Attribute - tool "Java" - name "EJBVersion_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "2.0" - value 230) - (object Attribute - tool "Java" - name "1.x" - value 231))) - (object Attribute - tool "Java" - name "EJBXMLFilePath" - value "") - (object Attribute - tool "Java" - name "Final" - value FALSE) - (object Attribute - tool "Java" - name "Static" - value FALSE) - (object Attribute - tool "Java" - name "GenerateDefaultConstructor" - value TRUE) - (object Attribute - tool "Java" - name "ConstructorIs" - value ("Ctor_Set" 62)) - (object Attribute - tool "Java" - name "Ctor_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "public" - value 62) - (object Attribute - tool "Java" - name "protected" - value 63) - (object Attribute - tool "Java" - name "private" - value 64) - (object Attribute - tool "Java" - name "package" - value 65))) - (object Attribute - tool "Java" - name "GenerateFinalizer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateStaticInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateInstanceInitializer" - value FALSE) - (object Attribute - tool "Java" - name "GenerateCode" - value TRUE) - (object Attribute - tool "Java" - name "DisableAutoSync" - value FALSE) - (object Attribute - tool "Java" - name "ServletName" - value "") - (object Attribute - tool "Java" - name "ServletContextRef" - value FALSE) - (object Attribute - tool "Java" - name "IsSingleThread" - value FALSE) - (object Attribute - tool "Java" - name "ServletInitParameter" - value "") - (object Attribute - tool "Java" - name "ServletInitParameterNames" - value FALSE) - (object Attribute - tool "Java" - name "ServletIsSecure" - value FALSE) - (object Attribute - tool "Java" - name "ServletRequestDispatcher" - value FALSE) - (object Attribute - tool "Java" - name "ServletRequestDispatcherPath" - value "") - (object Attribute - tool "Java" - name "DispatcherInclude" - value FALSE) - (object Attribute - tool "Java" - name "DispatcherForward" - value FALSE) - (object Attribute - tool "Java" - name "ServletSecurityRoles" - value "") - (object Attribute - tool "Java" - name "ServletgetInfo" - value "") - (object Attribute - tool "Java" - name "ServletRequestAttribute" - value "") - (object Attribute - tool "Java" - name "ServletRequestAttributesNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForRequestAttributes" - value "") - (object Attribute - tool "Java" - name "ServletRequestParameter" - value "") - (object Attribute - tool "Java" - name "ServletRequestParameterNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForRequestParameters" - value "") - (object Attribute - tool "Java" - name "ServletHeader" - value "") - (object Attribute - tool "Java" - name "ServletHeaderNames" - value FALSE) - (object Attribute - tool "Java" - name "MethodForHeaders" - value "") - (object Attribute - tool "Java" - name "ServletIntHeader" - value FALSE) - (object Attribute - tool "Java" - name "ServletDateHeader" - value FALSE) - (object Attribute - tool "Java" - name "ServletCookie" - value FALSE) - (object Attribute - tool "Java" - name "MethodForCookie" - value "") - (object Attribute - tool "Java" - name "ServletContentType" - value "") - (object Attribute - tool "Java" - name "GenerateHTML" - value FALSE) - (object Attribute - tool "Java" - name "BMP_Extend_CMP" - value FALSE) - (object Attribute - tool "Java" - name "ReadOnly" - value FALSE) - (object Attribute - tool "Java" - name "Strictfp" - value FALSE) - (object Attribute - tool "Java" - name "ServletXMLFilePath" - value ""))) - (object Attribute - tool "Java" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "Java" - name "CmIdentification" - value (value Text "")) - (object Attribute - tool "Java" - name "CopyrightNotice" - value (value Text "")))) - (object Attribute - tool "Java" - name "default__Module-Body" - value (list Attribute_Set - (object Attribute - tool "Java" - name "CmIdentification" - value (value Text "")) - (object Attribute - tool "Java" - name "CopyrightNotice" - value (value Text "")))) - (object Attribute - tool "Java" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Abstract" - value FALSE) - (object Attribute - tool "Java" - name "Static" - value FALSE) - (object Attribute - tool "Java" - name "Final" - value FALSE) - (object Attribute - tool "Java" - name "Native" - value FALSE) - (object Attribute - tool "Java" - name "Synchronized" - value FALSE) - (object Attribute - tool "Java" - name "GenerateFullyQualifiedReturn" - value FALSE) - (object Attribute - tool "Java" - name "ReplaceExistingCode" - value TRUE) - (object Attribute - tool "Java" - name "Strictfp" - value FALSE))) - (object Attribute - tool "Java" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Final" - value FALSE) - (object Attribute - tool "Java" - name "Transient" - value FALSE) - (object Attribute - tool "Java" - name "Volatile" - value FALSE) - (object Attribute - tool "Java" - name "PropertyType" - value ("BeanProperty_Set" 71)) - (object Attribute - tool "Java" - name "BeanProperty_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Not A Property" - value 71) - (object Attribute - tool "Java" - name "Simple" - value 72) - (object Attribute - tool "Java" - name "Bound" - value 73) - (object Attribute - tool "Java" - name "Constrained" - value 74))) - (object Attribute - tool "Java" - name "IndividualChangeMgt" - value FALSE) - (object Attribute - tool "Java" - name "Read/Write" - value ("Read/Write_Set" 81)) - (object Attribute - tool "Java" - name "Read/Write_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Read & Write" - value 81) - (object Attribute - tool "Java" - name "Read Only" - value 82) - (object Attribute - tool "Java" - name "Write Only" - value 83))) - (object Attribute - tool "Java" - name "GenerateFullyQualifiedTypes" - value FALSE))) - (object Attribute - tool "Java" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "Java" - name "ContainerClass" - value "") - (object Attribute - tool "Java" - name "InitialValue" - value "") - (object Attribute - tool "Java" - name "Final" - value FALSE) - (object Attribute - tool "Java" - name "Transient" - value FALSE) - (object Attribute - tool "Java" - name "Volatile" - value FALSE) - (object Attribute - tool "Java" - name "PropertyType" - value ("BeanProperty_Set" 71)) - (object Attribute - tool "Java" - name "BeanProperty_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Not A Property" - value 71) - (object Attribute - tool "Java" - name "Simple" - value 72) - (object Attribute - tool "Java" - name "Bound" - value 73) - (object Attribute - tool "Java" - name "Constrained" - value 74))) - (object Attribute - tool "Java" - name "IndividualChangeMgt" - value FALSE) - (object Attribute - tool "Java" - name "Read/Write" - value ("Read/Write_Set" 81)) - (object Attribute - tool "Java" - name "Read/Write_Set" - value (list Attribute_Set - (object Attribute - tool "Java" - name "Read & Write" - value 81) - (object Attribute - tool "Java" - name "Read Only" - value 82) - (object Attribute - tool "Java" - name "Write Only" - value 83))) - (object Attribute - tool "Java" - name "GenerateFullyQualifiedTypes" - value FALSE) - (object Attribute - tool "Java" - name "IsNavigable" - value TRUE))) - (object Attribute - tool "Java" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Oracle8" - name "propertyId" - value "360000002") - (object Attribute - tool "Oracle8" - name "default__Project" - value (list Attribute_Set - (object Attribute - tool "Oracle8" - name "DDLScriptFilename" - value "DDL1.SQL") - (object Attribute - tool "Oracle8" - name "DropClause" - value FALSE) - (object Attribute - tool "Oracle8" - name "PrimaryKeyColumnName" - value "_ID") - (object Attribute - tool "Oracle8" - name "PrimaryKeyColumnType" - value "NUMBER(5,0)") - (object Attribute - tool "Oracle8" - name "SchemaNamePrefix" - value "") - (object Attribute - tool "Oracle8" - name "SchemaNameSuffix" - value "") - (object Attribute - tool "Oracle8" - name "TableNamePrefix" - value "") - (object Attribute - tool "Oracle8" - name "TableNameSuffix" - value "") - (object Attribute - tool "Oracle8" - name "TypeNamePrefix" - value "") - (object Attribute - tool "Oracle8" - name "TypeNameSuffix" - value "") - (object Attribute - tool "Oracle8" - name "ViewNamePrefix" - value "") - (object Attribute - tool "Oracle8" - name "ViewNameSuffix" - value "") - (object Attribute - tool "Oracle8" - name "VarrayNamePrefix" - value "") - (object Attribute - tool "Oracle8" - name "VarrayNameSuffix" - value "") - (object Attribute - tool "Oracle8" - name "NestedTableNamePrefix" - value "") - (object Attribute - tool "Oracle8" - name "NestedTableNameSuffix" - value "") - (object Attribute - tool "Oracle8" - name "ObjectTableNamePrefix" - value "") - (object Attribute - tool "Oracle8" - name "ObjectTableNameSuffix" - value ""))) - (object Attribute - tool "Oracle8" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "Oracle8" - name "IsSchema" - value FALSE))) - (object Attribute - tool "Oracle8" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "Oracle8" - name "OID" - value "") - (object Attribute - tool "Oracle8" - name "WhereClause" - value "") - (object Attribute - tool "Oracle8" - name "CheckConstraint" - value "") - (object Attribute - tool "Oracle8" - name "CollectionTypeLength" - value "") - (object Attribute - tool "Oracle8" - name "CollectionTypePrecision" - value "") - (object Attribute - tool "Oracle8" - name "CollectionTypeScale" - value "") - (object Attribute - tool "Oracle8" - name "CollectionOfREFS" - value FALSE))) - (object Attribute - tool "Oracle8" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "Oracle8" - name "MethodKind" - value ("MethodKindSet" 1903)) - (object Attribute - tool "Oracle8" - name "OverloadID" - value "") - (object Attribute - tool "Oracle8" - name "OrderNumber" - value "") - (object Attribute - tool "Oracle8" - name "IsReadNoDataState" - value FALSE) - (object Attribute - tool "Oracle8" - name "IsReadNoProcessState" - value FALSE) - (object Attribute - tool "Oracle8" - name "IsWriteNoDataState" - value FALSE) - (object Attribute - tool "Oracle8" - name "IsWriteNoProcessState" - value FALSE) - (object Attribute - tool "Oracle8" - name "IsSelfish" - value FALSE) - (object Attribute - tool "Oracle8" - name "TriggerType" - value ("TriggerTypeSet" 1801)) - (object Attribute - tool "Oracle8" - name "TriggerEvent" - value ("TriggerEventSet" 1601)) - (object Attribute - tool "Oracle8" - name "TriggerText" - value "") - (object Attribute - tool "Oracle8" - name "TriggerReferencingNames" - value "") - (object Attribute - tool "Oracle8" - name "TriggerForEach" - value ("TriggerForEachSet" 1701)) - (object Attribute - tool "Oracle8" - name "TriggerWhenClause" - value "") - (object Attribute - tool "Oracle8" - name "MethodKindSet" - value (list Attribute_Set - (object Attribute - tool "Oracle8" - name "MapMethod" - value 1901) - (object Attribute - tool "Oracle8" - name "OrderMethod" - value 1902) - (object Attribute - tool "Oracle8" - name "Function" - value 1903) - (object Attribute - tool "Oracle8" - name "Procedure" - value 1904) - (object Attribute - tool "Oracle8" - name "Operator" - value 1905) - (object Attribute - tool "Oracle8" - name "Constructor" - value 1906) - (object Attribute - tool "Oracle8" - name "Destructor" - value 1907) - (object Attribute - tool "Oracle8" - name "Trigger" - value 1908) - (object Attribute - tool "Oracle8" - name "Calculated" - value 1909))) - (object Attribute - tool "Oracle8" - name "TriggerTypeSet" - value (list Attribute_Set - (object Attribute - tool "Oracle8" - name "AFTER" - value 1801) - (object Attribute - tool "Oracle8" - name "BEFORE" - value 1802) - (object Attribute - tool "Oracle8" - name "INSTEAD OF" - value 1803))) - (object Attribute - tool "Oracle8" - name "TriggerForEachSet" - value (list Attribute_Set - (object Attribute - tool "Oracle8" - name "ROW" - value 1701) - (object Attribute - tool "Oracle8" - name "STATEMENT" - value 1702))) - (object Attribute - tool "Oracle8" - name "TriggerEventSet" - value (list Attribute_Set - (object Attribute - tool "Oracle8" - name "INSERT" - value 1601) - (object Attribute - tool "Oracle8" - name "UPDATE" - value 1602) - (object Attribute - tool "Oracle8" - name "DELETE" - value 1603) - (object Attribute - tool "Oracle8" - name "INSERT OR UPDATE" - value 1604) - (object Attribute - tool "Oracle8" - name "INSERT OR DELETE" - value 1605) - (object Attribute - tool "Oracle8" - name "UPDATE OR DELETE" - value 1606) - (object Attribute - tool "Oracle8" - name "INSERT OR UPDATE OR DELETE" - value 1607))))) - (object Attribute - tool "Oracle8" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "Oracle8" - name "OrderNumber" - value ""))) - (object Attribute - tool "Oracle8" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "Oracle8" - name "OrderNumber" - value "") - (object Attribute - tool "Oracle8" - name "IsUnique" - value FALSE) - (object Attribute - tool "Oracle8" - name "NullsAllowed" - value TRUE) - (object Attribute - tool "Oracle8" - name "Length" - value "") - (object Attribute - tool "Oracle8" - name "Precision" - value "2") - (object Attribute - tool "Oracle8" - name "Scale" - value "6") - (object Attribute - tool "Oracle8" - name "IsIndex" - value FALSE) - (object Attribute - tool "Oracle8" - name "IsPrimaryKey" - value FALSE) - (object Attribute - tool "Oracle8" - name "CompositeUnique" - value FALSE) - (object Attribute - tool "Oracle8" - name "CheckConstraint" - value ""))) - (object Attribute - tool "Oracle8" - name "HiddenTool" - value FALSE) - (object Attribute - tool "ComponentTest" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Rose Model Integrator" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Rose Web Publisher" - name "HiddenTool" - value FALSE) - (object Attribute - tool "TopLink" - name "HiddenTool" - value FALSE) - (object Attribute - tool "COM" - name "propertyId" - value "783606378") - (object Attribute - tool "COM" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "COM" - name "TypeKinds" - value (list Attribute_Set - (object Attribute - tool "COM" - name "enum" - value 100) - (object Attribute - tool "COM" - name "record" - value 101) - (object Attribute - tool "COM" - name "module" - value 102) - (object Attribute - tool "COM" - name "interface" - value 103) - (object Attribute - tool "COM" - name "dispinterface" - value 104) - (object Attribute - tool "COM" - name "coclass" - value 105) - (object Attribute - tool "COM" - name "alias" - value 106) - (object Attribute - tool "COM" - name "union" - value 107) - (object Attribute - tool "COM" - name "max" - value 108) - (object Attribute - tool "COM" - name "(none)" - value 109))) - (object Attribute - tool "COM" - name "Generate" - value TRUE) - (object Attribute - tool "COM" - name "kind" - value ("TypeKinds" 109)) - (object Attribute - tool "COM" - name "uuid" - value "") - (object Attribute - tool "COM" - name "version" - value "") - (object Attribute - tool "COM" - name "helpstring" - value "") - (object Attribute - tool "COM" - name "helpcontext" - value "") - (object Attribute - tool "COM" - name "attributes" - value "") - (object Attribute - tool "COM" - name "dllname" - value "") - (object Attribute - tool "COM" - name "alias" - value ""))) - (object Attribute - tool "COM" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "COM" - name "Generate" - value TRUE) - (object Attribute - tool "COM" - name "id" - value "") - (object Attribute - tool "COM" - name "helpstring" - value "") - (object Attribute - tool "COM" - name "attributes" - value ""))) - (object Attribute - tool "COM" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "COM" - name "Generate" - value TRUE) - (object Attribute - tool "COM" - name "id" - value "") - (object Attribute - tool "COM" - name "helpstring" - value "") - (object Attribute - tool "COM" - name "attributes" - value ""))) - (object Attribute - tool "COM" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "COM" - name "Generate" - value TRUE) - (object Attribute - tool "COM" - name "filename" - value "") - (object Attribute - tool "COM" - name "library" - value "") - (object Attribute - tool "COM" - name "uuid" - value "") - (object Attribute - tool "COM" - name "version" - value "") - (object Attribute - tool "COM" - name "helpstring" - value "") - (object Attribute - tool "COM" - name "helpfile" - value "") - (object Attribute - tool "COM" - name "helpcontext" - value "") - (object Attribute - tool "COM" - name "lcid" - value "") - (object Attribute - tool "COM" - name "attributes" - value ""))) - (object Attribute - tool "COM" - name "default__Param" - value (list Attribute_Set - (object Attribute - tool "COM" - name "attributes" - value ""))) - (object Attribute - tool "COM" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Version Control" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Visual Basic" - name "propertyId" - value "783606378") - (object Attribute - tool "Visual Basic" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "Visual Basic" - name "UpdateCode" - value TRUE) - (object Attribute - tool "Visual Basic" - name "UpdateModel" - value TRUE) - (object Attribute - tool "Visual Basic" - name "InstancingSet" - value (list Attribute_Set - (object Attribute - tool "Visual Basic" - name "Private" - value 221) - (object Attribute - tool "Visual Basic" - name "PublicNotCreatable" - value 213) - (object Attribute - tool "Visual Basic" - name "SingleUse" - value 214) - (object Attribute - tool "Visual Basic" - name "GlobalSingleUse" - value 215) - (object Attribute - tool "Visual Basic" - name "MultiUse" - value 219) - (object Attribute - tool "Visual Basic" - name "GlobalMultiUse" - value 220))) - (object Attribute - tool "Visual Basic" - name "BaseSet" - value (list Attribute_Set - (object Attribute - tool "Visual Basic" - name "(none)" - value 222) - (object Attribute - tool "Visual Basic" - name "0" - value 223) - (object Attribute - tool "Visual Basic" - name "1" - value 224))) - (object Attribute - tool "Visual Basic" - name "OptionBase" - value ("BaseSet" 222)) - (object Attribute - tool "Visual Basic" - name "OptionExplicit" - value TRUE) - (object Attribute - tool "Visual Basic" - name "OptionCompare" - value ("CompareSet" 202)) - (object Attribute - tool "Visual Basic" - name "Instancing" - value ("InstancingSet" 219)) - (object Attribute - tool "Visual Basic" - name "CompareSet" - value (list Attribute_Set - (object Attribute - tool "Visual Basic" - name "(none)" - value 202) - (object Attribute - tool "Visual Basic" - name "Binary" - value 203) - (object Attribute - tool "Visual Basic" - name "Text" - value 204))))) - (object Attribute - tool "Visual Basic" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "Visual Basic" - name "LibraryName" - value "") - (object Attribute - tool "Visual Basic" - name "AliasName" - value "") - (object Attribute - tool "Visual Basic" - name "IsStatic" - value FALSE) - (object Attribute - tool "Visual Basic" - name "ProcedureID" - value "") - (object Attribute - tool "Visual Basic" - name "ReplaceExistingBody" - value FALSE) - (object Attribute - tool "Visual Basic" - name "DefaultBody" - value (value Text "")))) - (object Attribute - tool "Visual Basic" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "Visual Basic" - name "New" - value FALSE) - (object Attribute - tool "Visual Basic" - name "WithEvents" - value FALSE) - (object Attribute - tool "Visual Basic" - name "ProcedureID" - value "") - (object Attribute - tool "Visual Basic" - name "PropertyName" - value "") - (object Attribute - tool "Visual Basic" - name "Subscript" - value ""))) - (object Attribute - tool "Visual Basic" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "Visual Basic" - name "UpdateCode" - value TRUE) - (object Attribute - tool "Visual Basic" - name "New" - value FALSE) - (object Attribute - tool "Visual Basic" - name "WithEvents" - value FALSE) - (object Attribute - tool "Visual Basic" - name "FullName" - value FALSE) - (object Attribute - tool "Visual Basic" - name "ProcedureID" - value "") - (object Attribute - tool "Visual Basic" - name "PropertyName" - value "") - (object Attribute - tool "Visual Basic" - name "Subscript" - value ""))) - (object Attribute - tool "Visual Basic" - name "default__Inherit" - value (list Attribute_Set - (object Attribute - tool "Visual Basic" - name "ImplementsDelegation" - value TRUE) - (object Attribute - tool "Visual Basic" - name "FullName" - value FALSE))) - (object Attribute - tool "Visual Basic" - name "default__Param" - value (list Attribute_Set - (object Attribute - tool "Visual Basic" - name "ByVal" - value FALSE) - (object Attribute - tool "Visual Basic" - name "ByRef" - value FALSE) - (object Attribute - tool "Visual Basic" - name "Optional" - value FALSE) - (object Attribute - tool "Visual Basic" - name "ParamArray" - value FALSE))) - (object Attribute - tool "Visual Basic" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "Visual Basic" - name "ProjectFile" - value "") - (object Attribute - tool "Visual Basic" - name "UpdateCode" - value TRUE) - (object Attribute - tool "Visual Basic" - name "UpdateModel" - value TRUE) - (object Attribute - tool "Visual Basic" - name "ImportReferences" - value TRUE) - (object Attribute - tool "Visual Basic" - name "QuickImport" - value TRUE) - (object Attribute - tool "Visual Basic" - name "ImportBinary" - value FALSE))) - (object Attribute - tool "Visual Basic" - name "HiddenTool" - value FALSE) - (object Attribute - tool "VisualStudio" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Web Modeler" - name "HiddenTool" - value FALSE) - (object Attribute - tool "XML_DTD" - name "propertyId" - value "809135966") - (object Attribute - tool "XML_DTD" - name "default__Project" - value (list Attribute_Set - (object Attribute - tool "XML_DTD" - name "CreateMissingDirectories" - value TRUE) - (object Attribute - tool "XML_DTD" - name "Editor" - value ("EditorType" 100)) - (object Attribute - tool "XML_DTD" - name "StopOnError" - value TRUE) - (object Attribute - tool "XML_DTD" - name "EditorType" - value (list Attribute_Set - (object Attribute - tool "XML_DTD" - name "BuiltIn" - value 100) - (object Attribute - tool "XML_DTD" - name "WindowsShell" - value 101))))) - (object Attribute - tool "XML_DTD" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "XML_DTD" - name "Entity_SystemID" - value "") - (object Attribute - tool "XML_DTD" - name "Entity_PublicID" - value "") - (object Attribute - tool "XML_DTD" - name "NotationValue" - value "") - (object Attribute - tool "XML_DTD" - name "InternalValue" - value "") - (object Attribute - tool "XML_DTD" - name "ParameterEntity" - value FALSE) - (object Attribute - tool "XML_DTD" - name "ExternalEntity" - value FALSE) - (object Attribute - tool "XML_DTD" - name "Notation_SystemID" - value "") - (object Attribute - tool "XML_DTD" - name "Notation_PublicID" - value ""))) - (object Attribute - tool "XML_DTD" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "XML_DTD" - name "DefaultDeclType" - value ""))) - (object Attribute - tool "XML_DTD" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "XML_DTD" - name "Assign All" - value FALSE) - (object Attribute - tool "XML_DTD" - name "ComponentPath" - value ""))) - (object Attribute - tool "XML_DTD" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Ecore" - name "default__Category" - value (list Attribute_Set - (object Attribute - tool "Ecore" - name "prefix" - value "") - (object Attribute - tool "Ecore" - name "packageName" - value "") - (object Attribute - tool "Ecore" - name "basePackage" - value "") - (object Attribute - tool "Ecore" - name "nsPrefix" - value "") - (object Attribute - tool "Ecore" - name "nsURI" - value "") - (object Attribute - tool "Ecore" - name "annotation" - value ""))) - (object Attribute - tool "Ecore" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "Ecore" - name "classifierName" - value "") - (object Attribute - tool "Ecore" - name "xmlName" - value "") - (object Attribute - tool "Ecore" - name "xmlContentKind" - value ("ContentKind" 0)) - (object Attribute - tool "Ecore" - name "ContentKind" - value (list Attribute_Set - (object Attribute - tool "Ecore" - name "Unspecified" - value 0) - (object Attribute - tool "Ecore" - name "Empty" - value 1) - (object Attribute - tool "Ecore" - name "Simple" - value 2) - (object Attribute - tool "Ecore" - name "Mixed" - value 3) - (object Attribute - tool "Ecore" - name "ElementOnly" - value 4))) - (object Attribute - tool "Ecore" - name "annotation" - value ""))) - (object Attribute - tool "Ecore" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "Ecore" - name "operationName" - value "") - (object Attribute - tool "Ecore" - name "annotation" - value ""))) - (object Attribute - tool "Ecore" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "Ecore" - name "attributeName" - value "") - (object Attribute - tool "Ecore" - name "isTransient" - value FALSE) - (object Attribute - tool "Ecore" - name "isVolatile" - value FALSE) - (object Attribute - tool "Ecore" - name "isChangeable" - value TRUE) - (object Attribute - tool "Ecore" - name "isUnsettable" - value FALSE) - (object Attribute - tool "Ecore" - name "isUnique" - value TRUE) - (object Attribute - tool "Ecore" - name "isID" - value FALSE) - (object Attribute - tool "Ecore" - name "xmlName" - value "") - (object Attribute - tool "Ecore" - name "xmlNamespace" - value "") - (object Attribute - tool "Ecore" - name "xmlFeatureKind" - value ("FeatureKind" 0)) - (object Attribute - tool "Ecore" - name "FeatureKind" - value (list Attribute_Set - (object Attribute - tool "Ecore" - name "Unspecified" - value 0) - (object Attribute - tool "Ecore" - name "Simple" - value 1) - (object Attribute - tool "Ecore" - name "Attribute" - value 2) - (object Attribute - tool "Ecore" - name "Element" - value 4))) - (object Attribute - tool "Ecore" - name "annotation" - value ""))) - (object Attribute - tool "Ecore" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "Ecore" - name "referenceName" - value "") - (object Attribute - tool "Ecore" - name "isTransient" - value FALSE) - (object Attribute - tool "Ecore" - name "isVolatile" - value FALSE) - (object Attribute - tool "Ecore" - name "isChangeable" - value TRUE) - (object Attribute - tool "Ecore" - name "isUnsettable" - value FALSE) - (object Attribute - tool "Ecore" - name "isResolveProxies" - value TRUE) - (object Attribute - tool "Ecore" - name "xmlName" - value "") - (object Attribute - tool "Ecore" - name "xmlNamespace" - value "") - (object Attribute - tool "Ecore" - name "xmlFeatureKind" - value ("FeatureKind" 0)) - (object Attribute - tool "Ecore" - name "FeatureKind" - value (list Attribute_Set - (object Attribute - tool "Ecore" - name "Unspecified" - value 0) - (object Attribute - tool "Ecore" - name "Simple" - value 1) - (object Attribute - tool "Ecore" - name "Attribute" - value 2) - (object Attribute - tool "Ecore" - name "Element" - value 4))) - (object Attribute - tool "Ecore" - name "annotation" - value ""))) - (object Attribute - tool "RequisitePro" - name "HiddenTool" - value FALSE) - (object Attribute - tool "SoDA" - name "HiddenTool" - value FALSE) - (object Attribute - tool "R2Editor" - name "HiddenTool" - value FALSE) - (object Attribute - tool "cg" - name "propertyId" - value "809135966") - (object Attribute - tool "cg" - name "default__Project" - value (list Attribute_Set - (object Attribute - tool "cg" - name "AllowGenerateOverNewerAnnotations" - value FALSE) - (object Attribute - tool "cg" - name "AllowGenerateOverNewerVersion" - value FALSE) - (object Attribute - tool "cg" - name "UseMSVC" - value FALSE) - (object Attribute - tool "cg" - name "HeaderFileExtension" - value "h") - (object Attribute - tool "cg" - name "HeaderFileBackupExtension" - value "h~") - (object Attribute - tool "cg" - name "HeaderFileTemporaryExtension" - value "h#") - (object Attribute - tool "cg" - name "CodeFileExtension" - value "cpp") - (object Attribute - tool "cg" - name "CodeFileBackupExtension" - value "cp~") - (object Attribute - tool "cg" - name "CodeFileTemporaryExtension" - value "cp#") - (object Attribute - tool "cg" - name "CreateMissingDirectories" - value TRUE) - (object Attribute - tool "cg" - name "StopOnError" - value FALSE) - (object Attribute - tool "cg" - name "ErrorLimit" - value 30) - (object Attribute - tool "cg" - name "Directory" - value "$ROSECPP_SOURCE") - (object Attribute - tool "cg" - name "PathSeparator" - value "") - (object Attribute - tool "cg" - name "FileNameFormat" - value "128vx_b") - (object Attribute - tool "cg" - name "BooleanType" - value "int") - (object Attribute - tool "cg" - name "AllowTemplates" - value TRUE) - (object Attribute - tool "cg" - name "AllowExplicitInstantiations" - value FALSE) - (object Attribute - tool "cg" - name "AllowProtectedInheritance" - value TRUE) - (object Attribute - tool "cg" - name "CommentWidth" - value 60) - (object Attribute - tool "cg" - name "OneByValueContainer" - value "$targetClass") - (object Attribute - tool "cg" - name "OneByReferenceContainer" - value "$targetClass *") - (object Attribute - tool "cg" - name "OptionalByValueContainer" - value "OptionalByValue<$targetClass>") - (object Attribute - tool "cg" - name "OptionalByReferenceContainer" - value "$targetClass *") - (object Attribute - tool "cg" - name "FixedByValueContainer" - value "$targetClass[$limit]") - (object Attribute - tool "cg" - name "UnorderedFixedByValueContainer" - value "$targetClass[$limit]") - (object Attribute - tool "cg" - name "FixedByReferenceContainer" - value "$targetClass *[$limit]") - (object Attribute - tool "cg" - name "UnorderedFixedByReferenceContainer" - value "$targetClass *[$limit]") - (object Attribute - tool "cg" - name "BoundedByValueContainer" - value "BoundedListByValue<$targetClass,$limit>") - (object Attribute - tool "cg" - name "UnorderedBoundedByValueContainer" - value "BoundedSetByValue<$targetClass,$limit>") - (object Attribute - tool "cg" - name "BoundedByReferenceContainer" - value "BoundedListByReference<$targetClass,$limit>") - (object Attribute - tool "cg" - name "UnorderedBoundedByReferenceContainer" - value "BoundedSetByReference<$targetClass,$limit>") - (object Attribute - tool "cg" - name "UnboundedByValueContainer" - value "UnboundedListByValue<$targetClass>") - (object Attribute - tool "cg" - name "UnorderedUnboundedByValueContainer" - value "UnboundedSetByValue<$targetClass>") - (object Attribute - tool "cg" - name "UnboundedByReferenceContainer" - value "UnboundedListByReference<$targetClass>") - (object Attribute - tool "cg" - name "UnorderedUnboundedByReferenceContainer" - value "UnboundedSetByReference<$targetClass>") - (object Attribute - tool "cg" - name "QualifiedByValueContainer" - value "AssociationByValue<$qualtype, $qualcont>") - (object Attribute - tool "cg" - name "UnorderedQualifiedByValueContainer" - value "DictionaryByValue<$qualtype, $qualcont>") - (object Attribute - tool "cg" - name "QualifiedByReferenceContainer" - value "AssociationByReference<$qualtype, $qualcont>") - (object Attribute - tool "cg" - name "UnorderedQualifiedByReferenceContainer" - value "DictionaryByReference<$qualtype, $qualcont>") - (object Attribute - tool "cg" - name "AlwaysKeepOrphanedCode" - value FALSE))) - (object Attribute - tool "cg" - name "compiler2.1__Project" - value (list Attribute_Set - (object Attribute - tool "cg" - name "AllowGenerateOverNewerAnnotations" - value FALSE) - (object Attribute - tool "cg" - name "AllowGenerateOverNewerVersion" - value FALSE) - (object Attribute - tool "cg" - name "HeaderFileExtension" - value "h") - (object Attribute - tool "cg" - name "HeaderFileBackupExtension" - value "h~") - (object Attribute - tool "cg" - name "HeaderFileTemporaryExtension" - value "h#") - (object Attribute - tool "cg" - name "CodeFileExtension" - value "cpp") - (object Attribute - tool "cg" - name "CodeFileBackupExtension" - value "cp~") - (object Attribute - tool "cg" - name "CodeFileTemporaryExtension" - value "cp#") - (object Attribute - tool "cg" - name "CreateMissingDirectories" - value TRUE) - (object Attribute - tool "cg" - name "StopOnError" - value FALSE) - (object Attribute - tool "cg" - name "ErrorLimit" - value 30) - (object Attribute - tool "cg" - name "Directory" - value "$ROSECPP_SOURCE") - (object Attribute - tool "cg" - name "BooleanType" - value "int") - (object Attribute - tool "cg" - name "AllowTemplates" - value FALSE) - (object Attribute - tool "cg" - name "AllowExplicitInstantiations" - value FALSE) - (object Attribute - tool "cg" - name "AllowProtectedInheritance" - value FALSE) - (object Attribute - tool "cg" - name "OneByValueContainer" - value "$targetClass") - (object Attribute - tool "cg" - name "OneByReferenceContainer" - value "$targetClass *") - (object Attribute - tool "cg" - name "OptionalByValueContainer" - value "OptionalByValue(sizeof($targetClass))") - (object Attribute - tool "cg" - name "OptionalByReferenceContainer" - value "$targetClass *") - (object Attribute - tool "cg" - name "FixedByValueContainer" - value "$targetClass[$limit]") - (object Attribute - tool "cg" - name "UnorderedFixedByValueContainer" - value "$targetClass[$limit]") - (object Attribute - tool "cg" - name "FixedByReferenceContainer" - value "$targetClass *[$limit]") - (object Attribute - tool "cg" - name "UnorderedFixedByReferenceContainer" - value "$targetClass *[$limit]") - (object Attribute - tool "cg" - name "BoundedByValueContainer" - value "BoundedListByValue(sizeof($targetClass),$limit)") - (object Attribute - tool "cg" - name "UnorderedBoundedByValueContainer" - value "BoundedSetByValue(sizeof($targetClass),$limit)") - (object Attribute - tool "cg" - name "BoundedByReferenceContainer" - value "BoundedListByReference($limit)") - (object Attribute - tool "cg" - name "UnorderedBoundedByReferenceContainer" - value "BoundedSetByReference($limit)") - (object Attribute - tool "cg" - name "UnboundedByValueContainer" - value "UnboundedListByValue(sizeof($targetClass))") - (object Attribute - tool "cg" - name "UnorderedUnboundedByValueContainer" - value "UnboundedSetByValue(sizeof($targetClass))") - (object Attribute - tool "cg" - name "UnboundedByReferenceContainer" - value "UnboundedListByReference") - (object Attribute - tool "cg" - name "UnorderedUnboundedByReferenceContainer" - value "UnboundedSetByReference") - (object Attribute - tool "cg" - name "QualifiedByValueContainer" - value "AssociationByValue(sizeof($qualtype), sizeof($qualcont))") - (object Attribute - tool "cg" - name "UnorderedQualifiedByValueContainer" - value "DictionaryByValue(sizeof($qualtype), sizeof($qualcont))") - (object Attribute - tool "cg" - name "QualifiedByReferenceContainer" - value "AssociationByReference(sizeof($qualtype), sizeof($qualcont))") - (object Attribute - tool "cg" - name "UnorderedQualifiedByReferenceContainer" - value "DictionaryByReference(sizeof($qualtype), sizeof($qualcont))") - (object Attribute - tool "cg" - name "PathSeparator" - value "") - (object Attribute - tool "cg" - name "FileNameFormat" - value "128vx_b") - (object Attribute - tool "cg" - name "AlwaysKeepOrphanedCode" - value FALSE))) - (object Attribute - tool "cg" - name "compiler3.0__Project" - value (list Attribute_Set - (object Attribute - tool "cg" - name "AllowGenerateOverNewerAnnotations" - value FALSE) - (object Attribute - tool "cg" - name "AllowGenerateOverNewerVersion" - value FALSE) - (object Attribute - tool "cg" - name "HeaderFileExtension" - value "h") - (object Attribute - tool "cg" - name "HeaderFileBackupExtension" - value "h~") - (object Attribute - tool "cg" - name "HeaderFileTemporaryExtension" - value "h#") - (object Attribute - tool "cg" - name "CodeFileExtension" - value "cpp") - (object Attribute - tool "cg" - name "CodeFileBackupExtension" - value "cp~") - (object Attribute - tool "cg" - name "CodeFileTemporaryExtension" - value "cp#") - (object Attribute - tool "cg" - name "CreateMissingDirectories" - value TRUE) - (object Attribute - tool "cg" - name "StopOnError" - value FALSE) - (object Attribute - tool "cg" - name "ErrorLimit" - value 30) - (object Attribute - tool "cg" - name "Directory" - value "$ROSECPP_SOURCE") - (object Attribute - tool "cg" - name "BooleanType" - value "int") - (object Attribute - tool "cg" - name "AllowTemplates" - value TRUE) - (object Attribute - tool "cg" - name "AllowExplicitInstantiations" - value FALSE) - (object Attribute - tool "cg" - name "AllowProtectedInheritance" - value TRUE) - (object Attribute - tool "cg" - name "OneByValueContainer" - value "$targetClass") - (object Attribute - tool "cg" - name "OneByReferenceContainer" - value "$targetClass *") - (object Attribute - tool "cg" - name "OptionalByValueContainer" - value "OptionalByValue<$targetClass>") - (object Attribute - tool "cg" - name "OptionalByReferenceContainer" - value "$targetClass *") - (object Attribute - tool "cg" - name "FixedByValueContainer" - value "$targetClass[$limit]") - (object Attribute - tool "cg" - name "UnorderedFixedByValueContainer" - value "$targetClass[$limit]") - (object Attribute - tool "cg" - name "FixedByReferenceContainer" - value "$targetClass *[$limit]") - (object Attribute - tool "cg" - name "UnorderedFixedByReferenceContainer" - value "$targetClass *[$limit]") - (object Attribute - tool "cg" - name "BoundedByValueContainer" - value "BoundedListByValue<$targetClass,$limit>") - (object Attribute - tool "cg" - name "UnorderedBoundedByValueContainer" - value "BoundedSetByValue<$targetClass,$limit>") - (object Attribute - tool "cg" - name "BoundedByReferenceContainer" - value "BoundedListByReference<$targetClass,$limit>") - (object Attribute - tool "cg" - name "UnorderedBoundedByReferenceContainer" - value "BoundedSetByReference<$targetClass,$limit>") - (object Attribute - tool "cg" - name "UnboundedByValueContainer" - value "UnboundedListByValue<$targetClass>") - (object Attribute - tool "cg" - name "UnorderedUnboundedByValueContainer" - value "UnboundedSetByValue<$targetClass>") - (object Attribute - tool "cg" - name "UnboundedByReferenceContainer" - value "UnboundedListByReference<$targetClass>") - (object Attribute - tool "cg" - name "UnorderedUnboundedByReferenceContainer" - value "UnboundedSetByReference<$targetClass>") - (object Attribute - tool "cg" - name "QualifiedByValueContainer" - value "AssociationByValue<$qualtype, $qualcont>") - (object Attribute - tool "cg" - name "UnorderedQualifiedByValueContainer" - value "DictionaryByValue<$qualtype, $qualcont>") - (object Attribute - tool "cg" - name "QualifiedByReferenceContainer" - value "AssociationByReference<$qualtype, $qualcont>") - (object Attribute - tool "cg" - name "UnorderedQualifiedByReferenceContainer" - value "DictionaryByReference<$qualtype, $qualcont>") - (object Attribute - tool "cg" - name "PathSeparator" - value "") - (object Attribute - tool "cg" - name "FileNameFormat" - value "128vx_b") - (object Attribute - tool "cg" - name "AlwaysKeepOrphanedCode" - value FALSE))) - (object Attribute - tool "cg" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "cg" - name "CodeName" - value "") - (object Attribute - tool "cg" - name "ImplementationType" - value "") - (object Attribute - tool "cg" - name "ClassKey" - value "class") - (object Attribute - tool "cg" - name "GenerateEmptyRegions" - value ("GenerateEmptyRegionSet" 3)) - (object Attribute - tool "cg" - name "GenerateEmptyRegionSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "None" - value 0) - (object Attribute - tool "cg" - name "Preserved" - value 1) - (object Attribute - tool "cg" - name "Unpreserved" - value 2) - (object Attribute - tool "cg" - name "All" - value 3))) - (object Attribute - tool "cg" - name "PutBodiesInSpec" - value FALSE) - (object Attribute - tool "cg" - name "GenerateDefaultConstructor" - value ("GenerateSet" 199)) - (object Attribute - tool "cg" - name "DefaultConstructorVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "InlineDefaultConstructor" - value FALSE) - (object Attribute - tool "cg" - name "ExplicitDefaultConstructor" - value FALSE) - (object Attribute - tool "cg" - name "GenerateCopyConstructor" - value ("GenerateSet" 199)) - (object Attribute - tool "cg" - name "CopyConstructorVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "InlineCopyConstructor" - value FALSE) - (object Attribute - tool "cg" - name "ExplicitCopyConstructor" - value FALSE) - (object Attribute - tool "cg" - name "GenerateDestructor" - value TRUE) - (object Attribute - tool "cg" - name "DestructorVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "DestructorKind" - value ("ThreeKindSet" 200)) - (object Attribute - tool "cg" - name "InlineDestructor" - value FALSE) - (object Attribute - tool "cg" - name "GenerateAssignmentOperation" - value ("GenerateSet" 199)) - (object Attribute - tool "cg" - name "AssignmentVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "AssignmentKind" - value ("ThreeKindSet" 200)) - (object Attribute - tool "cg" - name "InlineAssignmentOperation" - value FALSE) - (object Attribute - tool "cg" - name "GenerateEqualityOperations" - value ("GenerateSet" 199)) - (object Attribute - tool "cg" - name "EqualityVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "EqualityKind" - value ("FriendKindSet" 200)) - (object Attribute - tool "cg" - name "InlineEqualityOperations" - value FALSE) - (object Attribute - tool "cg" - name "GenerateRelationalOperations" - value FALSE) - (object Attribute - tool "cg" - name "RelationalVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "RelationalKind" - value ("FriendKindSet" 200)) - (object Attribute - tool "cg" - name "InlineRelationalOperations" - value FALSE) - (object Attribute - tool "cg" - name "GenerateStorageMgmtOperations" - value FALSE) - (object Attribute - tool "cg" - name "StorageMgmtVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "InlineStorageMgmtOperations" - value FALSE) - (object Attribute - tool "cg" - name "GenerateSubscriptOperation" - value FALSE) - (object Attribute - tool "cg" - name "SubscriptVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "SubscriptKind" - value ("ThreeKindSet" 200)) - (object Attribute - tool "cg" - name "SubscriptResultType" - value "") - (object Attribute - tool "cg" - name "InlineSubscriptOperation" - value FALSE) - (object Attribute - tool "cg" - name "GenerateDereferenceOperation" - value FALSE) - (object Attribute - tool "cg" - name "DereferenceVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "DereferenceKind" - value ("ThreeKindSet" 200)) - (object Attribute - tool "cg" - name "DereferenceResultType" - value "") - (object Attribute - tool "cg" - name "InlineDereferenceOperation" - value FALSE) - (object Attribute - tool "cg" - name "GenerateIndirectionOperation" - value FALSE) - (object Attribute - tool "cg" - name "IndirectionVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "IndirectionKind" - value ("ThreeKindSet" 200)) - (object Attribute - tool "cg" - name "IndirectionResultType" - value "") - (object Attribute - tool "cg" - name "InlineIndirectionOperation" - value FALSE) - (object Attribute - tool "cg" - name "GenerateStreamOperations" - value FALSE) - (object Attribute - tool "cg" - name "StreamVisibility" - value ("VisibilitySet" 45)) - (object Attribute - tool "cg" - name "InlineStreamOperations" - value FALSE) - (object Attribute - tool "cg" - name "ThreeKindSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Common" - value 200) - (object Attribute - tool "cg" - name "Virtual" - value 201) - (object Attribute - tool "cg" - name "Abstract" - value 202))) - (object Attribute - tool "cg" - name "KindSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Common" - value 200) - (object Attribute - tool "cg" - name "Virtual" - value 201) - (object Attribute - tool "cg" - name "Abstract" - value 202) - (object Attribute - tool "cg" - name "Static" - value 203))) - (object Attribute - tool "cg" - name "FriendKindSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Common" - value 200) - (object Attribute - tool "cg" - name "Virtual" - value 201) - (object Attribute - tool "cg" - name "Abstract" - value 202) - (object Attribute - tool "cg" - name "Friend" - value 204))) - (object Attribute - tool "cg" - name "GenerateSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "DeclareAndDefine" - value 199) - (object Attribute - tool "cg" - name "DeclareOnly" - value 205) - (object Attribute - tool "cg" - name "DoNotDeclare" - value 206))) - (object Attribute - tool "cg" - name "VisibilitySet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Public" - value 45) - (object Attribute - tool "cg" - name "Protected" - value 44) - (object Attribute - tool "cg" - name "Private" - value 43) - (object Attribute - tool "cg" - name "Implementation" - value 14))))) - (object Attribute - tool "cg" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Generate" - value TRUE) - (object Attribute - tool "cg" - name "GenerateEmptyRegions" - value ("GenerateEmptyRegionSet" 3)) - (object Attribute - tool "cg" - name "GenerateEmptyRegionSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "None" - value 0) - (object Attribute - tool "cg" - name "Preserved" - value 1) - (object Attribute - tool "cg" - name "Unpreserved" - value 2) - (object Attribute - tool "cg" - name "All" - value 3))) - (object Attribute - tool "cg" - name "CmIdentification" - value (value Text " %X% @(#) code/webservice/webservice-j2ee.mdl, WCCM.J2EE.WEBSERVICES, WCCM60TD")) - (object Attribute - tool "cg" - name "CopyrightNotice" - value (value Text "")) - (object Attribute - tool "cg" - name "FileName" - value "AUTO GENERATE") - (object Attribute - tool "cg" - name "AllowExtensionlessFileName" - value FALSE) - (object Attribute - tool "cg" - name "InclusionProtectionSymbol" - value "AUTO GENERATE") - (object Attribute - tool "cg" - name "IncludeFormat" - value (value Text -|// $package -|#include "$file" -| - )) - (object Attribute - tool "cg" - name "IncludeBySimpleName" - value FALSE) - (object Attribute - tool "cg" - name "IncludePrecompiledHeader" - value FALSE) - (object Attribute - tool "cg" - name "IncludeOrder" - value "AMIR") - (object Attribute - tool "cg" - name "AdditionalIncludes" - value (value Text "")) - (object Attribute - tool "cg" - name "InliningStyle" - value ("InliningStyleSet" 207)) - (object Attribute - tool "cg" - name "InliningStyleSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "InClassDeclaration" - value 208) - (object Attribute - tool "cg" - name "FollowingClassDeclaration" - value 207))) - (object Attribute - tool "cg" - name "TypesDefined" - value (value Text "")) - (object Attribute - tool "cg" - name "IncludeClosure" - value (value Text "")))) - (object Attribute - tool "cg" - name "default__Module-Body" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Generate" - value TRUE) - (object Attribute - tool "cg" - name "GenerateEmptyRegions" - value ("GenerateEmptyRegionSet" 3)) - (object Attribute - tool "cg" - name "GenerateEmptyRegionSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "None" - value 0) - (object Attribute - tool "cg" - name "Preserved" - value 1) - (object Attribute - tool "cg" - name "Unpreserved" - value 2) - (object Attribute - tool "cg" - name "All" - value 3))) - (object Attribute - tool "cg" - name "CmIdentification" - value (value Text " %X% @(#) code/webservice/webservice-j2ee.mdl, WCCM.J2EE.WEBSERVICES, WCCM60TD")) - (object Attribute - tool "cg" - name "CopyrightNotice" - value (value Text "")) - (object Attribute - tool "cg" - name "FileName" - value "AUTO GENERATE") - (object Attribute - tool "cg" - name "AllowExtensionlessFileName" - value FALSE) - (object Attribute - tool "cg" - name "IncludeFormat" - value (value Text -|// $package -|#include "$file" -| - )) - (object Attribute - tool "cg" - name "IncludeBySimpleName" - value FALSE) - (object Attribute - tool "cg" - name "IncludePrecompiledHeader" - value TRUE) - (object Attribute - tool "cg" - name "IncludeOrder" - value "AMIR") - (object Attribute - tool "cg" - name "AdditionalIncludes" - value (value Text "")) - (object Attribute - tool "cg" - name "InliningStyle" - value ("InliningStyleSet" 207)) - (object Attribute - tool "cg" - name "InliningStyleSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "InClassDeclaration" - value 208) - (object Attribute - tool "cg" - name "FollowingClassDeclaration" - value 207))) - (object Attribute - tool "cg" - name "TypesDefined" - value (value Text "")) - (object Attribute - tool "cg" - name "IncludeClosure" - value (value Text "")))) - (object Attribute - tool "cg" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "cg" - name "CodeName" - value "") - (object Attribute - tool "cg" - name "OperationKind" - value ("OperationKindSet" 200)) - (object Attribute - tool "cg" - name "OperationKindSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Common" - value 200) - (object Attribute - tool "cg" - name "Virtual" - value 201) - (object Attribute - tool "cg" - name "Abstract" - value 202) - (object Attribute - tool "cg" - name "Static" - value 203) - (object Attribute - tool "cg" - name "Friend" - value 204))) - (object Attribute - tool "cg" - name "GenerateAbstractBody" - value FALSE) - (object Attribute - tool "cg" - name "SpecialDeclReturnType" - value "") - (object Attribute - tool "cg" - name "OperationIsConst" - value FALSE) - (object Attribute - tool "cg" - name "OperationIsExplicit" - value FALSE) - (object Attribute - tool "cg" - name "Inline" - value FALSE) - (object Attribute - tool "cg" - name "EntryCode" - value (value Text "")) - (object Attribute - tool "cg" - name "ExitCode" - value (value Text "")) - (object Attribute - tool "cg" - name "CCRegion" - value "") - (object Attribute - tool "cg" - name "GenerateEmptyRegions" - value ("GenerateEmptyRegionSet" 3)) - (object Attribute - tool "cg" - name "GenerateEmptyRegionSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "None" - value 0) - (object Attribute - tool "cg" - name "Preserved" - value 1) - (object Attribute - tool "cg" - name "Unpreserved" - value 2) - (object Attribute - tool "cg" - name "All" - value 3))) - (object Attribute - tool "cg" - name "BodyAnnotations" - value ""))) - (object Attribute - tool "cg" - name "default__Has" - value (list Attribute_Set - (object Attribute - tool "cg" - name "CodeName" - value "") - (object Attribute - tool "cg" - name "Ordered" - value TRUE) - (object Attribute - tool "cg" - name "NameIfUnlabeled" - value "the_$supplier") - (object Attribute - tool "cg" - name "GenerateDataMember" - value TRUE) - (object Attribute - tool "cg" - name "DataMemberName" - value "$relationship") - (object Attribute - tool "cg" - name "DataMemberVisibility" - value ("DataMemberVisibilitySet" 14)) - (object Attribute - tool "cg" - name "DataMemberVisibilitySet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Public" - value 45) - (object Attribute - tool "cg" - name "Protected" - value 44) - (object Attribute - tool "cg" - name "Private" - value 43) - (object Attribute - tool "cg" - name "Implementation" - value 14) - (object Attribute - tool "cg" - name "AtRelationshipVisibility" - value 210))) - (object Attribute - tool "cg" - name "DataMemberMutability" - value ("DataMemberMutabilitySet" 0)) - (object Attribute - tool "cg" - name "DataMemberMutabilitySet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Unrestricted" - value 0) - (object Attribute - tool "cg" - name "Mutable" - value 1) - (object Attribute - tool "cg" - name "Const" - value 2))) - (object Attribute - tool "cg" - name "DataMemberIsVolatile" - value FALSE) - (object Attribute - tool "cg" - name "DataMemberFieldSize" - value "") - (object Attribute - tool "cg" - name "InitialValue" - value (value Text "")) - (object Attribute - tool "cg" - name "GenerateGetOperation" - value TRUE) - (object Attribute - tool "cg" - name "GenerateSetOperation" - value TRUE) - (object Attribute - tool "cg" - name "GetName" - value "get_$relationship") - (object Attribute - tool "cg" - name "SetName" - value "set_$relationship") - (object Attribute - tool "cg" - name "GetSetKinds" - value ("GetSetKindsSet" 200)) - (object Attribute - tool "cg" - name "GetSetKindsSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Common" - value 200) - (object Attribute - tool "cg" - name "Virtual" - value 201) - (object Attribute - tool "cg" - name "Abstract" - value 202) - (object Attribute - tool "cg" - name "Static" - value 203) - (object Attribute - tool "cg" - name "Friend" - value 204))) - (object Attribute - tool "cg" - name "ContainerClass" - value "") - (object Attribute - tool "cg" - name "SelectorName" - value "") - (object Attribute - tool "cg" - name "SelectorType" - value "") - (object Attribute - tool "cg" - name "GetIsConst" - value TRUE) - (object Attribute - tool "cg" - name "GetResultIsConst" - value ("GetResultIsConstSet" 2)) - (object Attribute - tool "cg" - name "GetResultIsConstSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "False" - value 0) - (object Attribute - tool "cg" - name "True" - value 1) - (object Attribute - tool "cg" - name "Same_As_Function" - value 2))) - (object Attribute - tool "cg" - name "GetSetByReference" - value FALSE) - (object Attribute - tool "cg" - name "InlineGet" - value TRUE) - (object Attribute - tool "cg" - name "SetReturnsValue" - value FALSE) - (object Attribute - tool "cg" - name "InlineSet" - value TRUE) - (object Attribute - tool "cg" - name "ForwardReferenceOnly" - value FALSE) - (object Attribute - tool "cg" - name "HasRelTypeSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Array" - value 24) - (object Attribute - tool "cg" - name "Sequence" - value 47))))) - (object Attribute - tool "cg" - name "default__Association" - value (list Attribute_Set - (object Attribute - tool "cg" - name "NameIfUnlabeled" - value "the_$targetClass"))) - (object Attribute - tool "cg" - name "default__Inherit" - value (list Attribute_Set - (object Attribute - tool "cg" - name "InstanceArguments" - value ""))) - (object Attribute - tool "cg" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "cg" - name "CodeName" - value "") - (object Attribute - tool "cg" - name "ForwardReferenceOnly" - value FALSE) - (object Attribute - tool "cg" - name "NameIfUnlabeled" - value "the_$targetClass") - (object Attribute - tool "cg" - name "GenerateDataMember" - value TRUE) - (object Attribute - tool "cg" - name "DataMemberName" - value "$target") - (object Attribute - tool "cg" - name "DataMemberVisibility" - value ("DataMemberVisibilitySet" 14)) - (object Attribute - tool "cg" - name "DataMemberVisibilitySet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Public" - value 45) - (object Attribute - tool "cg" - name "Protected" - value 44) - (object Attribute - tool "cg" - name "Private" - value 43) - (object Attribute - tool "cg" - name "Implementation" - value 14) - (object Attribute - tool "cg" - name "AtRelationshipVisibility" - value 210))) - (object Attribute - tool "cg" - name "DataMemberMutability" - value ("DataMemberMutabilitySet" 0)) - (object Attribute - tool "cg" - name "DataMemberMutabilitySet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Unrestricted" - value 0) - (object Attribute - tool "cg" - name "Mutable" - value 1) - (object Attribute - tool "cg" - name "Const" - value 2))) - (object Attribute - tool "cg" - name "DataMemberIsVolatile" - value FALSE) - (object Attribute - tool "cg" - name "DataMemberFieldSize" - value "") - (object Attribute - tool "cg" - name "InitialValue" - value (value Text "")) - (object Attribute - tool "cg" - name "ContainerClass" - value "") - (object Attribute - tool "cg" - name "ContainerGet" - value "$data.get($keys)") - (object Attribute - tool "cg" - name "ContainerSet" - value "$data.set($keys,$value)") - (object Attribute - tool "cg" - name "QualifiedContainer" - value "") - (object Attribute - tool "cg" - name "AssocClassContainer" - value "$supplier *") - (object Attribute - tool "cg" - name "AssocClassInitialValue" - value (value Text "")) - (object Attribute - tool "cg" - name "GetSetKinds" - value ("GetSetKindsSet" 200)) - (object Attribute - tool "cg" - name "GetSetKindsSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Common" - value 200) - (object Attribute - tool "cg" - name "Virtual" - value 201) - (object Attribute - tool "cg" - name "Abstract" - value 202) - (object Attribute - tool "cg" - name "Static" - value 203) - (object Attribute - tool "cg" - name "Friend" - value 204))) - (object Attribute - tool "cg" - name "GetSetByReference" - value FALSE) - (object Attribute - tool "cg" - name "GenerateGetOperation" - value TRUE) - (object Attribute - tool "cg" - name "GetName" - value "get_$target") - (object Attribute - tool "cg" - name "GetIsConst" - value TRUE) - (object Attribute - tool "cg" - name "GetResultIsConst" - value ("GetResultIsConstSet" 2)) - (object Attribute - tool "cg" - name "GetResultIsConstSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "False" - value 0) - (object Attribute - tool "cg" - name "True" - value 1) - (object Attribute - tool "cg" - name "Same_As_Function" - value 2))) - (object Attribute - tool "cg" - name "InlineGet" - value TRUE) - (object Attribute - tool "cg" - name "GenerateSetOperation" - value TRUE) - (object Attribute - tool "cg" - name "SetName" - value "set_$target") - (object Attribute - tool "cg" - name "SetReturnsValue" - value FALSE) - (object Attribute - tool "cg" - name "InlineSet" - value TRUE) - (object Attribute - tool "cg" - name "QualifiedGetSetByReference" - value ("QualifiedGetSetByReferenceSet" 2)) - (object Attribute - tool "cg" - name "QualifiedGetSetByReferenceSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "False" - value 0) - (object Attribute - tool "cg" - name "True" - value 1) - (object Attribute - tool "cg" - name "Same_As_GetSetByReference" - value 2))) - (object Attribute - tool "cg" - name "GenerateQualifiedGetOperation" - value TRUE) - (object Attribute - tool "cg" - name "QualifiedGetName" - value "get_$target") - (object Attribute - tool "cg" - name "QualifiedGetIsConst" - value TRUE) - (object Attribute - tool "cg" - name "QualifiedGetResultIsConst" - value ("GetResultIsConstSet" 2)) - (object Attribute - tool "cg" - name "InlineQualifiedGet" - value TRUE) - (object Attribute - tool "cg" - name "GenerateQualifiedSetOperation" - value TRUE) - (object Attribute - tool "cg" - name "QualifiedSetName" - value "set_$target") - (object Attribute - tool "cg" - name "QualifiedSetReturnsValue" - value FALSE) - (object Attribute - tool "cg" - name "InlineQualifiedSet" - value TRUE) - (object Attribute - tool "cg" - name "GenerateAssocClassDataMember" - value TRUE) - (object Attribute - tool "cg" - name "AssocClassDataMemberName" - value "$target") - (object Attribute - tool "cg" - name "AssocClassDataMemberVisibility" - value ("DataMemberVisibilitySet" 14)) - (object Attribute - tool "cg" - name "DataMemberVisibilitySet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Public" - value 45) - (object Attribute - tool "cg" - name "Protected" - value 44) - (object Attribute - tool "cg" - name "Private" - value 43) - (object Attribute - tool "cg" - name "Implementation" - value 14) - (object Attribute - tool "cg" - name "AtRelationshipVisibility" - value 210))) - (object Attribute - tool "cg" - name "AssocClassDataMemberMutability" - value ("DataMemberMutabilitySet" 0)) - (object Attribute - tool "cg" - name "DataMemberMutabilitySet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Unrestricted" - value 0) - (object Attribute - tool "cg" - name "Mutable" - value 1) - (object Attribute - tool "cg" - name "Const" - value 2))) - (object Attribute - tool "cg" - name "AssocClassDataMemberIsVolatile" - value FALSE) - (object Attribute - tool "cg" - name "AssocClassGetSetKinds" - value ("GetSetKindsSet" 200)) - (object Attribute - tool "cg" - name "GenerateAssocClassGetOperation" - value TRUE) - (object Attribute - tool "cg" - name "AssocClassGetName" - value "get_$target") - (object Attribute - tool "cg" - name "AssocClassGetIsConst" - value TRUE) - (object Attribute - tool "cg" - name "AssocClassGetResultIsConst" - value ("GetResultIsConstSet" 2)) - (object Attribute - tool "cg" - name "InlineAssocClassGet" - value TRUE) - (object Attribute - tool "cg" - name "GenerateAssocClassSetOperation" - value TRUE) - (object Attribute - tool "cg" - name "AssocClassSetName" - value "set_$target") - (object Attribute - tool "cg" - name "AssocClassSetReturnsValue" - value FALSE) - (object Attribute - tool "cg" - name "InlineAssocClassSet" - value TRUE) - (object Attribute - tool "cg" - name "AssocClassForwardReferenceOnly" - value TRUE) - (object Attribute - tool "cg" - name "AssocTypeSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Array" - value 24) - (object Attribute - tool "cg" - name "Sequence" - value 47))))) - (object Attribute - tool "cg" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "cg" - name "CodeName" - value "") - (object Attribute - tool "cg" - name "GenerateDataMember" - value TRUE) - (object Attribute - tool "cg" - name "DataMemberName" - value "$attribute") - (object Attribute - tool "cg" - name "DataMemberVisibility" - value ("DataMemberVisibilitySet" 14)) - (object Attribute - tool "cg" - name "DataMemberVisibilitySet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Public" - value 45) - (object Attribute - tool "cg" - name "Protected" - value 44) - (object Attribute - tool "cg" - name "Private" - value 43) - (object Attribute - tool "cg" - name "Implementation" - value 14) - (object Attribute - tool "cg" - name "AtAttributeVisibility" - value 211))) - (object Attribute - tool "cg" - name "DataMemberMutability" - value ("DataMemberMutabilitySet" 0)) - (object Attribute - tool "cg" - name "DataMemberMutabilitySet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Unrestricted" - value 0) - (object Attribute - tool "cg" - name "Mutable" - value 1) - (object Attribute - tool "cg" - name "Const" - value 2))) - (object Attribute - tool "cg" - name "DataMemberIsVolatile" - value FALSE) - (object Attribute - tool "cg" - name "DataMemberFieldSize" - value "") - (object Attribute - tool "cg" - name "GenerateGetOperation" - value TRUE) - (object Attribute - tool "cg" - name "GenerateSetOperation" - value TRUE) - (object Attribute - tool "cg" - name "GetName" - value "get_$attribute") - (object Attribute - tool "cg" - name "SetName" - value "set_$attribute") - (object Attribute - tool "cg" - name "GetSetKinds" - value ("GetSetKindsSet" 200)) - (object Attribute - tool "cg" - name "GetSetKindsSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Common" - value 200) - (object Attribute - tool "cg" - name "Virtual" - value 201) - (object Attribute - tool "cg" - name "Abstract" - value 202) - (object Attribute - tool "cg" - name "Static" - value 203) - (object Attribute - tool "cg" - name "Friend" - value 204))) - (object Attribute - tool "cg" - name "GetIsConst" - value TRUE) - (object Attribute - tool "cg" - name "GetResultIsConst" - value ("GetResultIsConstSet" 2)) - (object Attribute - tool "cg" - name "GetResultIsConstSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "False" - value 0) - (object Attribute - tool "cg" - name "True" - value 1) - (object Attribute - tool "cg" - name "Same_As_Function" - value 2))) - (object Attribute - tool "cg" - name "GetSetByReference" - value FALSE) - (object Attribute - tool "cg" - name "InlineGet" - value TRUE) - (object Attribute - tool "cg" - name "SetReturnsValue" - value FALSE) - (object Attribute - tool "cg" - name "InlineSet" - value TRUE) - (object Attribute - tool "cg" - name "CCRegion" - value ""))) - (object Attribute - tool "cg" - name "default__Uses" - value (list Attribute_Set - (object Attribute - tool "cg" - name "ForwardReferenceOnly" - value FALSE) - (object Attribute - tool "cg" - name "BodyReferenceOnly" - value FALSE))) - (object Attribute - tool "cg" - name "default__Subsystem" - value (list Attribute_Set - (object Attribute - tool "cg" - name "Directory" - value "AUTO GENERATE") - (object Attribute - tool "cg" - name "DirectoryIsOnSearchList" - value FALSE) - (object Attribute - tool "cg" - name "PrecompiledHeader" - value ""))) - (object Attribute - tool "cg" - name "default__Category" - value (list Attribute_Set - (object Attribute - tool "cg" - name "IsNamespace" - value FALSE) - (object Attribute - tool "cg" - name "Indent" - value 2) - (object Attribute - tool "cg" - name "CodeName" - value "") - (object Attribute - tool "cg" - name "GenerateEmptyRegions" - value ("GenerateEmptyRegionSet" 3)) - (object Attribute - tool "cg" - name "GenerateEmptyRegionSet" - value (list Attribute_Set - (object Attribute - tool "cg" - name "None" - value 0) - (object Attribute - tool "cg" - name "Preserved" - value 1) - (object Attribute - tool "cg" - name "Unpreserved" - value 2) - (object Attribute - tool "cg" - name "All" - value 3))))) - (object Attribute - tool "MSVC" - name "propertyId" - value "809135966") - (object Attribute - tool "MSVC" - name "default__Project" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Version" - value "5.0"))) - (object Attribute - tool "MSVC" - name "default__Class" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Type" - value ("MSVCClassTypeSet" 0)) - (object Attribute - tool "MSVC" - name "MSVCClassTypeSet" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Normal" - value 0) - (object Attribute - tool "MSVC" - name "Interface_Part" - value 1) - (object Attribute - tool "MSVC" - name "Connection_Part" - value 2) - (object Attribute - tool "MSVC" - name "Class_Factory" - value 3))) - (object Attribute - tool "MSVC" - name "CObjectFunctionality" - value ("CObjectFunctionalitySet" 0)) - (object Attribute - tool "MSVC" - name "CObjectFunctionalitySet" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "None" - value 0) - (object Attribute - tool "MSVC" - name "Dynamic" - value 1) - (object Attribute - tool "MSVC" - name "Dyncreate" - value 2) - (object Attribute - tool "MSVC" - name "Serial" - value 3))) - (object Attribute - tool "MSVC" - name "GenerateOverrideGroup" - value FALSE) - (object Attribute - tool "MSVC" - name "GenerateDataGroup" - value FALSE) - (object Attribute - tool "MSVC" - name "AFX_DATA_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateFieldGroup" - value FALSE) - (object Attribute - tool "MSVC" - name "AFX_FIELD_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateMessageGroup" - value FALSE) - (object Attribute - tool "MSVC" - name "GenerateMessageMap" - value FALSE) - (object Attribute - tool "MSVC" - name "AFX_MSG_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "MESSAGE_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "OLEFactory" - value ("OLEFactorySet" 0)) - (object Attribute - tool "MSVC" - name "OLEFactorySet" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "None" - value 0) - (object Attribute - tool "MSVC" - name "Built_in" - value 1) - (object Attribute - tool "MSVC" - name "Simple" - value 2) - (object Attribute - tool "MSVC" - name "Licensed" - value 3))) - (object Attribute - tool "MSVC" - name "OLEName" - value "") - (object Attribute - tool "MSVC" - name "OLEClassID" - value "") - (object Attribute - tool "MSVC" - name "GenerateOLECtlType" - value FALSE) - (object Attribute - tool "MSVC" - name "OLECtlType" - value "") - (object Attribute - tool "MSVC" - name "GenerateOLETypeLib" - value FALSE) - (object Attribute - tool "MSVC" - name "OLETypeLibID" - value "") - (object Attribute - tool "MSVC" - name "OLETypeLibMajor" - value "") - (object Attribute - tool "MSVC" - name "OLETypeLibMinor" - value "") - (object Attribute - tool "MSVC" - name "GeneratePropPageIDs" - value FALSE) - (object Attribute - tool "MSVC" - name "OLEPropPageIDs" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateDispatchMap" - value FALSE) - (object Attribute - tool "MSVC" - name "AFX_DISPATCH_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "AFX_DISPATCH_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "DISPATCH_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "StockProperties" - value (value Text "")) - (object Attribute - tool "MSVC" - name "StockFunctions" - value (value Text "")) - (object Attribute - tool "MSVC" - name "DispatchDefValue" - value "") - (object Attribute - tool "MSVC" - name "GenerateDispIdEnum" - value FALSE) - (object Attribute - tool "MSVC" - name "AFX_DISP_ID_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateInterfaceMap" - value FALSE) - (object Attribute - tool "MSVC" - name "INTERFACE_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "InitInterface" - value "") - (object Attribute - tool "MSVC" - name "GenerateEventMap" - value FALSE) - (object Attribute - tool "MSVC" - name "AFX_EVENT_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "AFX_EVENT_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "EVENT_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "StockEvents" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateEventSinkMap" - value FALSE) - (object Attribute - tool "MSVC" - name "AFX_EVENTSINK_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "AFX_EVENTSINK_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "EVENTSINK_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "PropNotifySinks" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateConnectionMap" - value FALSE) - (object Attribute - tool "MSVC" - name "CONNECTION_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "ConnectionPointIID" - value "") - (object Attribute - tool "MSVC" - name "InheritanceType" - value "") - (object Attribute - tool "MSVC" - name "DeclSpec" - value "") - (object Attribute - tool "MSVC" - name "OLECommands" - value (value Text "")) - (object Attribute - tool "MSVC" - name "MFCDeclares" - value (value Text "")) - (object Attribute - tool "MSVC" - name "MFCImplements" - value (value Text "")) - (object Attribute - tool "MSVC" - name "ATL_Declares" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateCOMMap" - value FALSE) - (object Attribute - tool "MSVC" - name "COM_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateConnectionPointMap" - value FALSE) - (object Attribute - tool "MSVC" - name "CONNECTION_POINT_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateMsgMap" - value FALSE) - (object Attribute - tool "MSVC" - name "MSG_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GeneratePropertyMap" - value FALSE) - (object Attribute - tool "MSVC" - name "PROPERTY_MAP_Entries" - value (value Text "")))) - (object Attribute - tool "MSVC" - name "default__Operation" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Type" - value ("MSVCOperationTypeSet" 0)) - (object Attribute - tool "MSVC" - name "MSVCOperationTypeSet" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Normal" - value 0) - (object Attribute - tool "MSVC" - name "Virtual_Override" - value 1) - (object Attribute - tool "MSVC" - name "Message_Handler" - value 2) - (object Attribute - tool "MSVC" - name "Dispatch_Handler" - value 3) - (object Attribute - tool "MSVC" - name "Event_Firing_Function" - value 4) - (object Attribute - tool "MSVC" - name "Event_Sink_Handler" - value 5) - (object Attribute - tool "MSVC" - name "Std_OLE_Method" - value 6) - (object Attribute - tool "MSVC" - name "Command_Parser" - value 7) - (object Attribute - tool "MSVC" - name "Property_Get_Function" - value 8) - (object Attribute - tool "MSVC" - name "Property_Set_Function" - value 9) - (object Attribute - tool "MSVC" - name "Property_Notify_Function" - value 10) - (object Attribute - tool "MSVC" - name "Macro_Generated_Function" - value 11))) - (object Attribute - tool "MSVC" - name "AFX_MSG_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "MESSAGE_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "AFX_DISPATCH_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "DISPATCH_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "AFX_EVENT_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "EVENT_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "AFX_EVENTSINK_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "EVENTSINK_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "CallType" - value "") - (object Attribute - tool "MSVC" - name "DeclSpec" - value "") - (object Attribute - tool "MSVC" - name "BodyImage" - value (value Text "")))) - (object Attribute - tool "MSVC" - name "default__Role" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Type" - value ("MSVCAttributeTypeSet" 0)) - (object Attribute - tool "MSVC" - name "MSVCAttributeTypeSet" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Normal" - value 0) - (object Attribute - tool "MSVC" - name "Member_Property" - value 1) - (object Attribute - tool "MSVC" - name "Get_Set_Property" - value 2) - (object Attribute - tool "MSVC" - name "Dialog_Data" - value 3) - (object Attribute - tool "MSVC" - name "Field_Data" - value 4) - (object Attribute - tool "MSVC" - name "Stock_Property" - value 5))) - (object Attribute - tool "MSVC" - name "AFX_DISPATCH_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "DISPATCH_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "DeclSpec" - value "") - (object Attribute - tool "MSVC" - name "PointerBase" - value "") - (object Attribute - tool "MSVC" - name "CallType" - value "") - (object Attribute - tool "MSVC" - name "StockPropertyImplementation" - value ""))) - (object Attribute - tool "MSVC" - name "default__Has" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Type" - value ("MSVCAttributeTypeSet" 0)) - (object Attribute - tool "MSVC" - name "MSVCAttributeTypeSet" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Normal" - value 0) - (object Attribute - tool "MSVC" - name "Member_Property" - value 1) - (object Attribute - tool "MSVC" - name "Get_Set_Property" - value 2) - (object Attribute - tool "MSVC" - name "Dialog_Data" - value 3) - (object Attribute - tool "MSVC" - name "Field_Data" - value 4) - (object Attribute - tool "MSVC" - name "Stock_Property" - value 5))) - (object Attribute - tool "MSVC" - name "AFX_DISPATCH_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "DISPATCH_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "DeclSpec" - value "") - (object Attribute - tool "MSVC" - name "PointerBase" - value "") - (object Attribute - tool "MSVC" - name "CallType" - value "") - (object Attribute - tool "MSVC" - name "StockPropertyImplementation" - value ""))) - (object Attribute - tool "MSVC" - name "default__Attribute" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Type" - value ("MSVCAttributeTypeSet" 0)) - (object Attribute - tool "MSVC" - name "MSVCAttributeTypeSet" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "Normal" - value 0) - (object Attribute - tool "MSVC" - name "Member_Property" - value 1) - (object Attribute - tool "MSVC" - name "Get_Set_Property" - value 2) - (object Attribute - tool "MSVC" - name "Dialog_Data" - value 3) - (object Attribute - tool "MSVC" - name "Field_Data" - value 4) - (object Attribute - tool "MSVC" - name "Stock_Property" - value 5))) - (object Attribute - tool "MSVC" - name "AFX_DISPATCH_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "DISPATCH_MAP_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "DeclSpec" - value "") - (object Attribute - tool "MSVC" - name "PointerBase" - value "") - (object Attribute - tool "MSVC" - name "CallType" - value "") - (object Attribute - tool "MSVC" - name "StockPropertyImplementation" - value ""))) - (object Attribute - tool "MSVC" - name "default__Module-Spec" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "GenerateIncludesGroup" - value FALSE) - (object Attribute - tool "MSVC" - name "AFX_INCLUDES_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateInsertLocation" - value FALSE))) - (object Attribute - tool "MSVC" - name "default__Module-Body" - value (list Attribute_Set - (object Attribute - tool "MSVC" - name "GenerateIncludesGroup" - value FALSE) - (object Attribute - tool "MSVC" - name "AFX_INCLUDES_Entries" - value (value Text "")) - (object Attribute - tool "MSVC" - name "GenerateInsertLocation" - value FALSE))) - (object Attribute - tool "cg" - name "HiddenTool" - value FALSE) - (object Attribute - tool "Cplusplus" - name "default__Uses" - value (list Attribute_Set - (object Attribute - tool "Cplusplus" - name "BodyReferenceOnly" - value FALSE))) - (object Attribute - tool "CORBA" - name "default__Param" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "Direction" - value ("ParamDirectionTypeSet" 102)) - (object Attribute - tool "CORBA" - name "ParamDirectionTypeSet" - value (list Attribute_Set - (object Attribute - tool "CORBA" - name "in" - value 102) - (object Attribute - tool "CORBA" - name "inout" - value 103) - (object Attribute - tool "CORBA" - name "out" - value 104))))) - (object Attribute - tool "Ecore" - name "propertyId" - value "809135969")) - quid "3E109E880314")) diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/webservices_client_1_0.cat b/plugins/org.eclipse.jst.j2ee.core/rose/webservices_client_1_0.cat deleted file mode 100644 index 6840cdb42..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/webservices_client_1_0.cat +++ /dev/null @@ -1,1815 +0,0 @@ - -(object Petal - version 47 - _written "Rose 8.0.0303.1400" - charSet 0) - -(object Class_Category "wsclient" - is_unit TRUE - is_loaded TRUE - attributes (list Attribute_Set - (object Attribute - tool "Ecore" - name "prefix" - value (value Text "Webservice_client")) - (object Attribute - tool "Ecore" - name "basePackage" - value (value Text "org.eclipse.jst.j2ee.webservice")) - (object Attribute - tool "Ecore" - name "nsURI" - value (value Text "webservice_client.xmi"))) - quid "3E4D2F4B02AA" - exportControl "Public" - logical_models (list unit_reference_list - (object Class "ServiceRef" - quid "3E4D2F560184" - documentation -|The service-ref element declares a reference to a Web -| service. It contains optional description, display name and -| icons, a declaration of the required Service interface, -| an optional WSDL document location, an optional set -| of JAX-RPC mappings, an optional QName for the service element, -| an optional set of Service Endpoint Interfaces to be resolved -| by the container to a WSDL port, and an optional set of handlers. - - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - quid "4023AF2C001C" - supplier "Logical View::common::CompatibilityDescriptionGroup" - quidu "4023ADF20197")) - class_attributes (list class_attribute_list - (object ClassAttribute "serviceRefName" - quid "3E4D2FD301A1" - documentation -|The service-ref-name element declares logical name that the -| components in the module use to look up the Web service. It -| is recommended that all service reference names start with -| "service/". - - type "String" - exportControl "Public") - (object ClassAttribute "wsdlFile" - quid "3E4D30050199" - documentation -| The wsdl-file element contains the URI location of a WSDL file. The -| location is relative to the root of the module. - - stereotype "0..1" - type "String" - exportControl "Public") - (object ClassAttribute "jaxrpcMappingFile" - quid "3E4D301C03CD" - documentation -|The jaxrpc-mapping-file element contains the name of a file that -| describes the JAX-RPC mapping between the Java interaces used by -| the application and the WSDL description in the wsdl-file. The -| file name is a relative path within the module file. - - stereotype "0..1" - type "String" - exportControl "Public"))) - (object Class "PortComponentRef" - quid "3E4D30D903A7" - documentation -|The port-component-ref element declares a client dependency -| on the container for resolving a Service Endpoint Interface -| to a WSDL port. It optionally associates the Service Endpoint -| Interface with a particular port-component. This is only used -| by the container for a Service.getPort(Class) method call. - - class_attributes (list class_attribute_list - (object ClassAttribute "portComponentLink" - quid "3E4D31220348" - documentation -|The port-component-link element links a port-component-ref to a -| specific port-component required to be made available by a service -| reference. -| -| The value of a port-component-link must be the port-component-name -| of a port-component in the same module or another module in the same -| application unit. The syntax for specification follows the syntax -| defined for ejb-link in the EJB 2.0 specification. - - stereotype "0..1" - type "String" - exportControl "Public"))) - (object Class "Handler" - quid "3E4D31640072" - documentation -|Declares the handler for a port-component. Handlers can access the -| init-param name/value pairs using the HandlerInfo interface. If -| port-name is not specified, the handler is assumed to be associated -| with all ports of the service. -| -| Used in: service-ref - - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - quid "4023B0080005" - supplier "Logical View::common::CompatibilityDescriptionGroup" - quidu "4023ADF20197")) - class_attributes (list class_attribute_list - (object ClassAttribute "handlerName" - quid "3E4D31ED0097" - documentation "Defines the name of the handler. The name must be unique within the module." - type "String" - exportControl "Public") - (object ClassAttribute "soapRoles" - quid "3E4D32660285" - documentation "The soap-role element contains a SOAP actor definition that the Handler will play as a role." - stereotype "0..*" - type "String" - exportControl "Public") - (object ClassAttribute "portNames" - quid "3E4D328A0331" - documentation "The port-name element defines the WSDL port-name that a handler should be associated with." - stereotype "0..*" - type "String" - exportControl "Public"))) - (object Class "WebServicesClient" - quid "3F2EB3090267" - documentation "@version J2EE1.4 deprecated") - (object Class "ComponentScopedRefs" - quid "3F2EB42A00AA" - documentation "@version J2EE1.4 deprecated" - class_attributes (list class_attribute_list - (object ClassAttribute "componentName" - quid "3F2EB454015F" - type "String" - exportControl "Public"))) - (object Association "$UNNAMED$0" - quid "3E4D310700E6" - roles (list role_list - (object Role "serviceEndpointInterface" - quid "3E4D31080354" - documentation -|The service-endpoint-interface element defines a fully qualified -| Java class that represents the Service Endpoint Interface of a -| WSDL port. - - label "serviceEndpointInterface" - supplier "Logical View::java::JavaClass" - quidu "36549FCC00FA" - client_cardinality (value cardinality "1") - Containment "By Reference" - is_navigable TRUE) - (object Role "$UNNAMED$1" - quid "3E4D31080372" - supplier "Logical View::wsclient::PortComponentRef" - quidu "3E4D30D903A7"))) - (object Association "$UNNAMED$2" - quid "3E4D313C039F" - roles (list role_list - (object Role "portComponentRefs" - quid "3E4D313D0256" - documentation -|The port-component-ref element declares a client dependency -| on the container for resolving a Service Endpoint Interface -| to a WSDL port. It optionally associates the Service Endpoint -| Interface with a particular port-component. This is only used -| by the container for a Service.getPort(Class) method call. - - label "portComponentRefs" - supplier "Logical View::wsclient::PortComponentRef" - quidu "3E4D30D903A7" - client_cardinality (value cardinality "0..n") - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$3" - quid "3E4D313D0260" - supplier "Logical View::wsclient::ServiceRef" - quidu "3E4D2F560184" - is_aggregate TRUE))) - (object Association "$UNNAMED$4" - quid "3E4D316E031F" - roles (list role_list - (object Role "handlers" - quid "3E4D316F0258" - documentation -| Declares the handler for a port-component. Handlers can access the -| init-param name/value pairs using the HandlerInfo interface. If -| port-name is not specified, the handler is assumed to be associated -| with all ports of the service. - - label "handlers" - supplier "Logical View::wsclient::Handler" - quidu "3E4D31640072" - client_cardinality (value cardinality "0..n") - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$5" - quid "3E4D316F0262" - supplier "Logical View::wsclient::ServiceRef" - quidu "3E4D2F560184" - is_aggregate TRUE))) - (object Association "$UNNAMED$6" - quid "3E4D31F9012A" - roles (list role_list - (object Role "handlerClass" - quid "3E4D31FA0280" - documentation "Defines a fully qualified class name for the handler implementation." - label "handlerClass" - supplier "Logical View::java::JavaClass" - quidu "36549FCC00FA" - client_cardinality (value cardinality "1") - Containment "By Reference" - is_navigable TRUE) - (object Role "$UNNAMED$7" - quid "3E4D31FA02A8" - supplier "Logical View::wsclient::Handler" - quidu "3E4D31640072"))) - (object Association "$UNNAMED$8" - quid "3E4D3221002D" - roles (list role_list - (object Role "initParams" - quid "3E4D322101E6" - label "initParams" - supplier "Logical View::common::ParamValue" - quidu "3E4C221202C1" - client_cardinality (value cardinality "0..n") - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$9" - quid "3E4D322101E8" - supplier "Logical View::wsclient::Handler" - quidu "3E4D31640072" - is_aggregate TRUE))) - (object Association "$UNNAMED$10" - quid "3F2EB48E0271" - roles (list role_list - (object Role "componentScopedRefs" - quid "3F2EB4910275" - label "componentScopedRefs" - supplier "Logical View::wsclient::ComponentScopedRefs" - quidu "3F2EB42A00AA" - client_cardinality (value cardinality "0..n") - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$11" - quid "3F2EB4910277" - supplier "Logical View::wsclient::WebServicesClient" - quidu "3F2EB3090267" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$12" - quid "3F2EB52403D5" - roles (list role_list - (object Role "serviceRefs" - quid "3F2EB5270158" - label "serviceRefs" - supplier "Logical View::wsclient::ServiceRef" - quidu "3E4D2F560184" - client_cardinality (value cardinality "1..n") - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$13" - quid "3F2EB527016C" - supplier "Logical View::wsclient::ComponentScopedRefs" - quidu "3F2EB42A00AA" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$14" - quid "3F2EB59B006F" - roles (list role_list - (object Role "serviceRefs" - quid "3F2EB59B0354" - label "serviceRefs" - supplier "Logical View::wsclient::ServiceRef" - quidu "3E4D2F560184" - client_cardinality (value cardinality "0..n") - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$15" - quid "3F2EB59B0368" - supplier "Logical View::wsclient::WebServicesClient" - quidu "3F2EB3090267" - client_cardinality (value cardinality "1") - is_aggregate TRUE))) - (object Association "$UNNAMED$16" - quid "3F4392CC02FA" - roles (list role_list - (object Role "serviceQname" - quid "3F4392CD02F1" - label "serviceQname" - supplier "Logical View::common::QName" - quidu "3F3BEF5D02C0" - client_cardinality (value cardinality "1") - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$17" - quid "3F4392CD02FB" - supplier "Logical View::wsclient::ServiceRef" - quidu "3E4D2F560184" - is_aggregate TRUE))) - (object Association "$UNNAMED$18" - quid "3F43933C02A0" - roles (list role_list - (object Role "soapHeaders" - quid "3F43933D0193" - label "soapHeaders" - supplier "Logical View::common::QName" - quidu "3F3BEF5D02C0" - client_cardinality (value cardinality "0..n") - Containment "By Value" - is_navigable TRUE) - (object Role "$UNNAMED$19" - quid "3F43933D019D" - supplier "Logical View::wsclient::Handler" - quidu "3E4D31640072" - is_aggregate TRUE)))) - logical_presentations (list unit_reference_list - (object ClassDiagram "Service Ref" - quid "3E4D30A20131" - title "Service Ref" - documentation -|Declares the handler for a port-component. Handlers can access the -| init-param name/value pairs using the HandlerInfo interface. If -| port-name is not specified, the handler is assumed to be associated -| with all ports of the service. -| -| Used in: service-ref - - zoom 100 - max_height 28350 - max_width 21600 - origin_x 1050 - origin_y 138 - items (list diagram_item_list - (object Label @1 - location (53, 56) - font (object Font - size 14 - face "Arial" - bold TRUE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - nlines 1 - max_width 1006 - label "Web Services Client DD V1.1") - (object ClassView "Class" "Logical View::common::DescriptionGroup" @2 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (2820, 1918) - font (object Font - size 10 - face "Arial" - bold FALSE - italics TRUE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @2 - location (2642, 1839) - fill_color 13434879 - nlines 1 - max_width 356 - justify 0 - label "DescriptionGroup") - icon_style "Icon" - line_color 3342489 - fill_color 12632256 - quidu "3E4D451F01FB" - width 374 - height 182 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::wsclient::PortComponentRef" @3 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1824, 464) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @3 - location (1607, 414) - fill_color 13434879 - nlines 1 - max_width 434 - justify 0 - label "PortComponentRef") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E4D30D903A7" - width 452 - height 124 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::wsclient::ComponentScopedRefs" @4 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (480, 1136) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @4 - location (212, 1086) - fill_color 13434879 - nlines 1 - max_width 536 - justify 0 - label "ComponentScopedRefs") - icon_style "Icon" - line_color 3342489 - fill_color 16745727 - quidu "3F2EB42A00AA" - width 554 - height 124 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::wsclient::WebServicesClient" @5 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (576, 304) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @5 - location (352, 254) - fill_color 13434879 - nlines 1 - max_width 448 - justify 0 - label "WebServicesClient") - icon_style "Icon" - line_color 3342489 - fill_color 16745727 - quidu "3F2EB3090267" - width 466 - height 124 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$10" @6 - location (527, 719) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3F2EB48E0271" - roleview_list (list RoleViews - (object RoleView "componentScopedRefs" @7 - Parent_View @6 - location (-1687, 291) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @8 - Parent_View @7 - location (453, 997) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 444 - justify 0 - label "+componentScopedRefs" - pctDist 0.800000 - height 42 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3F2EB4910275" - client @6 - supplier @4 - line_style 0 - label (object SegLabel @9 - Parent_View @7 - location (544, 1043) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "0..n" - pctDist 0.900000 - height 54 - orientation 0)) - (object RoleView "$UNNAMED$11" @10 - Parent_View @6 - location (-1687, 291) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @11 - Parent_View @10 - location (519, 433) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - hidden TRUE - anchor 1 - anchor_loc 1 - nlines 1 - max_width 359 - justify 0 - label "" - pctDist 0.800000 - height 42 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3F2EB4910277" - client @6 - supplier @5 - line_style 0 - label (object SegLabel @12 - Parent_View @10 - location (618, 408) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 1)))) - (object ClassView "Class" "Logical View::java::JavaClass" @13 - ShowCompartmentStereotypes TRUE - SuppressAttribute TRUE - SuppressOperation TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (2767, 868) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @13 - location (2633, 818) - fill_color 13434879 - nlines 1 - max_width 268 - justify 0 - label "JavaClass") - icon_style "Icon" - line_color 3342489 - fill_color 12632256 - quidu "36549FCC00FA" - width 286 - height 124 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$0" @14 - location (2558, 491) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E4D310700E6" - roleview_list (list RoleViews - (object RoleView "serviceEndpointInterface" @15 - Parent_View @14 - location (1515, -93) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @16 - Parent_View @15 - location (2999, 698) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 470 - justify 0 - label "+serviceEndpointInterface" - pctDist 0.786070 - height 249 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E4D31080354" - client @14 - supplier @13 - vertices (list Points - (2558, 491) - (2750, 491) - (2750, 806)) - line_style 3 - origin_attachment (2558, 491) - terminal_attachment (2750, 806) - label (object SegLabel @17 - Parent_View @15 - location (2718, 692) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.776119 - height 33 - orientation 1)) - (object RoleView "$UNNAMED$1" @18 - Parent_View @14 - location (1515, -93) - stereotype TRUE - line_color 3342489 - quidu "3E4D31080372" - client @14 - supplier @3 - line_style 3 - origin_attachment (2558, 491) - terminal_attachment (2050, 491)))) - (object ClassView "Class" "Logical View::common::ParamValue" @19 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1887, 2570) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @19 - location (1655, 2416) - fill_color 13434879 - nlines 1 - max_width 464 - justify 0 - label "ParamValue") - icon_style "Icon" - line_color 3342489 - fill_color 12632256 - quidu "3E4C221202C1" - width 482 - height 332 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "Logical View::wsclient::ServiceRef" @20 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1824, 1120) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @20 - location (1694, 1070) - fill_color 13434879 - nlines 1 - max_width 260 - justify 0 - label "ServiceRef") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E4D2F560184" - compartment (object Compartment - Parent_View @20 - location (1694, 1131) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - icon_style "Icon" - fill_color 16777215 - anchor 2 - nlines 4 - max_width 0) - width 278 - height 124 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$2" @21 - location (1824, 791) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E4D313C039F" - roleview_list (list RoleViews - (object RoleView "portComponentRefs" @22 - Parent_View @21 - location (759, -387) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @23 - Parent_View @22 - location (1618, 622) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 380 - justify 0 - label "+portComponentRefs" - pctDist 0.643080 - height 207 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E4D313D0256" - client @21 - supplier @3 - line_style 0 - label (object SegLabel @24 - Parent_View @22 - location (1892, 599) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "0..n" - pctDist 0.726080 - height 68 - orientation 1)) - (object RoleView "$UNNAMED$3" @25 - Parent_View @21 - location (759, -387) - stereotype TRUE - line_color 3342489 - quidu "3E4D313D0260" - client @21 - supplier @20 - line_style 0))) - (object AssociationViewNew "" @26 - location (2370, 1060) - stereotype TRUE - line_color 3342489 - quidu "3E4D2FE101FC" - roleview_list (list RoleViews - (object RoleView "" @27 - Parent_View @26 - location (750, 940) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @28 - Parent_View @27 - location (2045, 1019) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - hidden TRUE - anchor 1 - anchor_loc 1 - nlines 1 - max_width 450 - justify 0 - label "" - pctDist 0.800000 - height 42 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E4D2FE4014C" - client @26 - supplier @20 - line_style 3 - origin_attachment (2370, 1060) - terminal_attachment (1963, 1060)) - (object RoleView "serviceInterface" @29 - Parent_View @26 - location (750, 940) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @30 - Parent_View @29 - location (2296, 1168) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 304 - justify 0 - label "+serviceInterface" - pctDist -0.185484 - height 108 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E4D2FE4012E" - client @26 - supplier @13 - vertices (list Points - (2370, 1060) - (2647, 1060) - (2647, 930)) - line_style 3 - origin_attachment (2370, 1060) - terminal_attachment (2647, 930) - label (object SegLabel @31 - Parent_View @29 - location (2701, 972) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 1)))) - (object AssociationViewNew "$UNNAMED$12" @32 - location (1220, 1126) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3F2EB52403D5" - roleview_list (list RoleViews - (object RoleView "serviceRefs" @33 - Parent_View @32 - location (-1581, -20) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @34 - Parent_View @33 - location (1590, 1081) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 240 - justify 0 - label "+serviceRefs" - pctDist 0.800000 - height 42 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3F2EB5270158" - client @32 - supplier @20 - line_style 0 - label (object SegLabel @35 - Parent_View @33 - location (1639, 1175) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1..n" - pctDist 0.900000 - height 54 - orientation 1)) - (object RoleView "$UNNAMED$13" @36 - Parent_View @32 - location (-1581, -20) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @37 - Parent_View @36 - location (851, 1090) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - hidden TRUE - anchor 1 - anchor_loc 1 - nlines 1 - max_width 444 - justify 0 - label "" - pctDist 0.800000 - height 42 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3F2EB527016C" - client @32 - supplier @4 - line_style 0 - label (object SegLabel @38 - Parent_View @36 - location (805, 1185) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 0)))) - (object AssociationViewNew "$UNNAMED$14" @39 - location (1199, 711) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3F2EB59B006F" - roleview_list (list RoleViews - (object RoleView "serviceRefs" @40 - Parent_View @39 - location (843, 424) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @41 - Parent_View @40 - location (1645, 953) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 240 - justify 0 - label "+serviceRefs" - pctDist 0.800000 - height 42 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3F2EB59B0354" - client @39 - supplier @20 - line_style 0 - label (object SegLabel @42 - Parent_View @40 - location (1646, 1067) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "0..n" - pctDist 0.900000 - height 54 - orientation 1)) - (object RoleView "$UNNAMED$15" @43 - Parent_View @39 - location (843, 424) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @44 - Parent_View @43 - location (755, 470) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - hidden TRUE - anchor 1 - anchor_loc 1 - nlines 1 - max_width 359 - justify 0 - label "" - pctDist 0.800000 - height 42 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3F2EB59B0368" - client @39 - supplier @5 - line_style 0 - label (object SegLabel @45 - Parent_View @43 - location (754, 357) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 1)))) - (object ClassView "Class" "Logical View::common::QName" @46 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (934, 1813) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @46 - location (587, 1634) - fill_color 13434879 - nlines 1 - max_width 694 - justify 0 - label "QName") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3F3BEF5D02C0" - width 712 - height 382 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$16" @47 - location (1183, 1184) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3F4392CC02FA" - roleview_list (list RoleViews - (object RoleView "serviceQname" @48 - Parent_View @47 - location (-647, 63) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @49 - Parent_View @48 - location (1078, 1521) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 300 - justify 0 - label "+serviceQname" - pctDist 0.800000 - height 42 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3F4392CD02F1" - client @47 - supplier @46 - vertices (list Points - (1183, 1184) - (1119, 1184) - (1119, 1622)) - line_style 3 - origin_attachment (1183, 1184) - terminal_attachment (1119, 1622) - label (object SegLabel @50 - Parent_View @48 - location (1150, 1458) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.675299 - height 31 - orientation 0)) - (object RoleView "$UNNAMED$17" @51 - Parent_View @47 - location (-647, 63) - stereotype TRUE - line_color 3342489 - quidu "3F4392CD02FB" - client @47 - supplier @20 - line_style 3 - origin_attachment (1183, 1184) - terminal_attachment (1685, 1184)))) - (object ClassView "Class" "Logical View::wsclient::Handler" @52 - ShowCompartmentStereotypes TRUE - IncludeAttribute TRUE - IncludeOperation TRUE - location (1856, 1952) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object ItemLabel - Parent_View @52 - location (1754, 1902) - fill_color 13434879 - nlines 1 - max_width 204 - justify 0 - label "Handler") - icon_style "Icon" - line_color 3342489 - fill_color 13434879 - quidu "3E4D31640072" - compartment (object Compartment - Parent_View @52 - location (1754, 1963) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - icon_style "Icon" - fill_color 16777215 - anchor 2 - nlines 4 - max_width 0) - width 222 - height 124 - annotation 8 - autoResize TRUE) - (object AssociationViewNew "$UNNAMED$6" @53 - location (2385, 1447) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E4D31F9012A" - roleview_list (list RoleViews - (object RoleView "handlerClass" @54 - Parent_View @53 - location (1407, -594) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @55 - Parent_View @54 - location (2613, 1025) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 276 - justify 0 - label "+handlerClass" - pctDist 0.895404 - height 154 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3E4D31FA0280" - client @53 - supplier @13 - vertices (list Points - (2385, 1447) - (2766, 1447) - (2766, 930)) - line_style 3 - origin_attachment (2385, 1447) - terminal_attachment (2766, 930) - label (object SegLabel @56 - Parent_View @54 - location (2820, 1021) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 1)) - (object RoleView "$UNNAMED$7" @57 - Parent_View @53 - location (1407, -594) - stereotype TRUE - line_color 3342489 - quidu "3E4D31FA02A8" - client @53 - supplier @52 - vertices (list Points - (2385, 1447) - (1930, 1447) - (1930, 1890)) - line_style 3 - origin_attachment (2385, 1447) - terminal_attachment (1930, 1890)))) - (object AssociationViewNew "$UNNAMED$8" @58 - location (1885, 2209) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E4D3221002D" - roleview_list (list RoleViews - (object RoleView "initParams" @59 - Parent_View @58 - location (907, 168) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @60 - Parent_View @59 - location (1757, 2309) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 228 - justify 0 - label "+initParams" - pctDist 0.515152 - height 129 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E4D322101E6" - client @58 - supplier @19 - line_style 3 - origin_attachment (1885, 2209) - terminal_attachment (1885, 2404) - label (object SegLabel @61 - Parent_View @59 - location (1958, 2345) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "0..n" - pctDist 0.697987 - height 73 - orientation 0)) - (object RoleView "$UNNAMED$9" @62 - Parent_View @58 - location (907, 168) - stereotype TRUE - line_color 3342489 - quidu "3E4D322101E8" - client @58 - supplier @52 - line_style 3 - origin_attachment (1885, 2209) - terminal_attachment (1885, 2014)))) - (object AssociationViewNew "$UNNAMED$4" @63 - location (1750, 1535) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3E4D316E031F" - roleview_list (list RoleViews - (object RoleView "handlers" @64 - Parent_View @63 - location (685, 357) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @65 - Parent_View @64 - location (1607, 1778) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 186 - justify 0 - label "+handlers" - pctDist 0.685185 - height 144 - orientation 1) - stereotype TRUE - line_color 3342489 - quidu "3E4D316F0258" - client @63 - supplier @52 - line_style 3 - origin_attachment (1750, 1535) - terminal_attachment (1750, 1889) - label (object SegLabel @66 - Parent_View @64 - location (1817, 1797) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "0..n" - pctDist 0.740741 - height 67 - orientation 0)) - (object RoleView "$UNNAMED$5" @67 - Parent_View @63 - location (685, 357) - stereotype TRUE - line_color 3342489 - quidu "3E4D316F0262" - client @63 - supplier @20 - line_style 3 - origin_attachment (1750, 1535) - terminal_attachment (1750, 1181)))) - (object AssociationViewNew "$UNNAMED$18" @68 - location (1194, 2007) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - stereotype TRUE - line_color 3342489 - quidu "3F43933C02A0" - roleview_list (list RoleViews - (object RoleView "soapHeaders" @69 - Parent_View @68 - location (-668, 54) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - label (object SegLabel @70 - Parent_View @69 - location (865, 2123) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 271 - justify 0 - label "+soapHeaders" - pctDist 0.800000 - height 42 - orientation 0) - stereotype TRUE - line_color 3342489 - quidu "3F43933D0193" - client @68 - supplier @46 - vertices (list Points - (1194, 2007) - (1134, 2007) - (1134, 2159) - (906, 2159) - (906, 2004)) - line_style 3 - origin_attachment (1194, 2007) - terminal_attachment (906, 2004) - label (object SegLabel @71 - Parent_View @69 - location (960, 2064) - font (object Font - size 10 - face "Arial" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "0..n" - pctDist 0.900000 - height 54 - orientation 1)) - (object RoleView "$UNNAMED$19" @72 - Parent_View @68 - location (-668, 54) - stereotype TRUE - line_color 3342489 - quidu "3F43933D019D" - client @68 - supplier @52 - line_style 3 - origin_attachment (1194, 2007) - terminal_attachment (1745, 2007)))))))) diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/wscommon.cat b/plugins/org.eclipse.jst.j2ee.core/rose/wscommon.cat deleted file mode 100644 index bfe1b7694..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/wscommon.cat +++ /dev/null @@ -1,103 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Class_Category "wscommon"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee.webservice"))
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Wscommon"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "wscommon.xmi")))
- quid "3E15B4C0016F"
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "InitParam"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E10AC6E0280"
- class_attributes (list class_attribute_list
- (object ClassAttribute "paramName"
- quid "3E526C580355"
- type "String"
- exportControl "Public")
- (object ClassAttribute "paramValue"
- quid "3E526C5D0013"
- type "String"
- exportControl "Public")
- (object ClassAttribute "description"
- quid "3E526C63017A"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "SOAPHeader"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E10AC99022F"
- documentation
-|Defines the QName of a SOAP header that will be processed by the handler.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3F4671870049"
- supplier "Logical View::common::QName"
- quidu "3F3BEF5D02C0"))
- language "Java")
- (object Class "SOAPRole"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E10ACBC0164"
- documentation
-|The soap-role element contains a SOAP actor definition that the Handler will play as a role.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "soapRole"
- quid "3E11E9AD02D7"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "PortName"
- quid "3E15BBC90209"
- class_attributes (list class_attribute_list
- (object ClassAttribute "portName"
- quid "3E15E4F70076"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "DescriptionType"
- quid "3F5CBC6D0353"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3F5DDB7E00C1"
- supplier "Logical View::common::Description"
- quidu "3E4A98D602E0")))
- (object Class "DisplayNameType"
- quid "3F5CBC780236"
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3F5DDB82033D"
- supplier "Logical View::common::DisplayName"
- quidu "3E4A9922000E"))))
- logical_presentations (list unit_reference_list))
diff --git a/plugins/org.eclipse.jst.j2ee.core/rose/wsdd.cat b/plugins/org.eclipse.jst.j2ee.core/rose/wsdd.cat deleted file mode 100644 index d4d557712..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/rose/wsdd.cat +++ /dev/null @@ -1,4011 +0,0 @@ -
-(object Petal
- version 50
- _written "Rose 8.3.0407.2800"
- charSet 0)
-
-(object Class_Category "wsdd"
- is_unit TRUE
- is_loaded TRUE
- attributes (list Attribute_Set
- (object Attribute
- tool "Ecore"
- name "basePackage"
- value (value Text "org.eclipse.jst.j2ee.webservice"))
- (object Attribute
- tool "Ecore"
- name "prefix"
- value (value Text "Wsdd"))
- (object Attribute
- tool "Ecore"
- name "nsURI"
- value (value Text "wsdd.xmi")))
- quid "3E109EAD0319"
- exportControl "Public"
- logical_models (list unit_reference_list
- (object Class "WebServices"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E109EEF012F"
- documentation
-|The webservices element is the root element for the web services deployment descriptor. It specifies the set of Web service descriptions that are to be deployed into the J2EE Application Server and the dependencies they have on container resources and services.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023B0DD00DD"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- language "Java")
- (object Class "WebServiceDescription"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E10A1500313"
- documentation
-|The webservice-description element defines a WSDL document file and the set of Port components associated with the WSDL ports defined in the WSDL document. There may be multiple webservice-descriptions defined within a module.
-|
-|All WSDL file ports must have a corresponding port-component element defined.
-|
-|Used in: webservices
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "jaxrpcMappingFile"
- quid "3E526A81010C"
- documentation
-|The jaxrpc-mapping-file element contains the name of a file that describes the JAX-RPC mapping between the Java interaces used by the application and the WSDL description in the wsdl-file. The file name is a relative path within the module.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "webServiceDescriptionName"
- quid "3E526A8F021A"
- documentation
-|The webservice-description-name identifies the collection of port-components associated with a WSDL file and JAX-RPC mapping. The name must be unique within the deployment descriptor.
-|
-|
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "wsdlFile"
- quid "3E526AA20392"
- documentation
-|The wsdl-file element contains the name of a WSDL file in the module. The file name is a relative path within the module.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "smallIcon"
- quid "3F5C91820023"
- type "String"
- exportControl "Public")
- (object ClassAttribute "largeIcon"
- quid "3F5C91930276"
- type "String"
- exportControl "Public")
- (object ClassAttribute "description"
- quid "3F5CE5260163"
- type "String"
- exportControl "Public")
- (object ClassAttribute "displayName"
- quid "3F5CE531003C"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "PortComponent"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E10AB8D01F6"
- documentation
-|The port-component element associates a WSDL port with a Web service interface and implementation. It defines the name of the port as a component, optional description, optional display name, optional iconic representations, WSDL port QName, Service Endpoint Interface, Service Implementation Bean.
-|
-
- class_attributes (list class_attribute_list
- (object ClassAttribute "portComponentName"
- quid "3E526B110344"
- documentation
-|The port-component-name element specifies a port component's name. This name is assigned by the module producer to name the service implementation bean in the module's deployment descriptor. The name must be unique among the port component names defined in the same module.
-|
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "serviceEndpointInterface"
- quid "3E526B180177"
- documentation
-|The service-endpoint-interface element contains the fully-qualified name of the port component's Service Endpoint Interface.
-|
-
- type "String"
- exportControl "Public")
- (object ClassAttribute "smallIcon"
- quid "3F5C91D1038D"
- type "String"
- exportControl "Public")
- (object ClassAttribute "largeIcon"
- quid "3F5C91E3019F"
- type "String"
- exportControl "Public")
- (object ClassAttribute "description"
- quid "3F5CE85902BC"
- type "String"
- exportControl "Public")
- (object ClassAttribute "displayName"
- quid "3F5CE8620070"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "WSDLPort"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E10ABC40205"
- documentation
-|Defines the name space and local name part of the WSDL port QName.
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "3F438C890363"
- supplier "Logical View::common::QName"
- quidu "3F3BEF5D02C0"))
- language "Java")
- (object Class "ServiceImplBean"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E10AC0A0016"
- documentation
-|The service-impl-bean element defines the Web service implementation.A service implementation can be an EJB bean class or JAX-RPC web component. Existing EJB implementations are exposed as a Web service using an ejb-link.
-|
-|Used in: port-component
-|
-
- language "Java")
- (object Class "ServletLink"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "DisableAutoSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Static"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Strictfp"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultConstructor"
- value TRUE)
- (object Attribute
- tool "Java"
- name "GenerateFinalizer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateStaticInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateInstanceInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateCode"
- value TRUE)
- (object Attribute
- tool "Java"
- name "ReadOnly"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedExtends"
- value "")
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedImplements"
- value "")
- (object Attribute
- tool "Java"
- name "ConstructorIs"
- value ("Ctor_Set" 62))
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E10AC1502E2"
- documentation
-|The servlet-link element is used in the service-impl-bean element to specify that a Service Implementation Bean is defined as a JAX-RPC Service Endpoint.
-|
-|The value of the servlet-link element must be the servlet-name of a JAX-RPC Service Endpoint in the same WAR file.
-|
-|Used in: service-impl-bean
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- attributes (list Attribute_Set)
- quid "3E3953A5010A"
- supplier "Logical View::wsdd::BeanLink"
- quidu "3E3952E700EC"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "servletLink"
- quid "3E11E935039B"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "EJBLink"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "DisableAutoSync"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Final"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Static"
- value FALSE)
- (object Attribute
- tool "Java"
- name "Strictfp"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateDefaultConstructor"
- value TRUE)
- (object Attribute
- tool "Java"
- name "GenerateFinalizer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateStaticInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateInstanceInitializer"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateCode"
- value TRUE)
- (object Attribute
- tool "Java"
- name "ReadOnly"
- value FALSE)
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedExtends"
- value "")
- (object Attribute
- tool "Java"
- name "GenerateFullyQualifiedImplements"
- value "")
- (object Attribute
- tool "Java"
- name "ConstructorIs"
- value ("Ctor_Set" 62))
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E10AC20028D"
- documentation
-|The ejb-link element is used in the service-impl-bean element to specify that a Service Implementation Bean is defined as a Web Service Endpoint.
-|
-|The value of the ejb-link element must be the ejb-name of an enterprise bean in the same ejb-jar file.
-|
-|Used in: service-impl-bean
-|
-|Examples:
-|<ejb-link>EmployeeRecord</ejb-link>
-| <ejb-link>../products/product.jar#ProductEJB</ejb-link>
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- attributes (list Attribute_Set)
- quid "3E39538B014B"
- supplier "Logical View::wsdd::BeanLink"
- quidu "3E3952E700EC"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "ejbLink"
- quid "3E11E9240095"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "Handler"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E10AC3B01D6"
- documentation
-|Declares the handler for a port-component. Handlers can access the init-param name/value pairs using the HandlerInfo interface.
-|
-|Used in: port-component
-|
-
- superclasses (list inheritance_relationship_list
- (object Inheritance_Relationship
- quid "4023AFA0007D"
- supplier "Logical View::common::CompatibilityDescriptionGroup"
- quidu "4023ADF20197"))
- class_attributes (list class_attribute_list
- (object ClassAttribute "handlerName"
- quid "3E526BFE0348"
- type "String"
- exportControl "Public")
- (object ClassAttribute "handlerClass"
- quid "3E526C050103"
- type "String"
- exportControl "Public"))
- language "Java")
- (object Class "BeanLink"
- attributes (list Attribute_Set
- (object Attribute
- tool "Java"
- name "cg_style"
- value "Default_EJB"))
- quid "3E3952E700EC"
- language "Java")
- (object Association "$UNNAMED$0"
- quid "3E11BD6900E8"
- roles (list role_list
- (object Role "wsdlPort"
- quid "3E11BD6A034C"
- label "wsdlPort"
- supplier "Logical View::wsdd::WSDLPort"
- quidu "3E10ABC40205"
- client_cardinality (value cardinality "1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$1"
- quid "3E11BD6A0356"
- supplier "Logical View::wsdd::PortComponent"
- quidu "3E10AB8D01F6"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$2"
- quid "3E11BD74029C"
- roles (list role_list
- (object Role "serviceImplBean"
- quid "3E11BD7602F8"
- label "serviceImplBean"
- supplier "Logical View::wsdd::ServiceImplBean"
- quidu "3E10AC0A0016"
- client_cardinality (value cardinality "1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$3"
- quid "3E11BD7602FA"
- supplier "Logical View::wsdd::PortComponent"
- quidu "3E10AB8D01F6"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$4"
- quid "3E11BD80037E"
- roles (list role_list
- (object Role "handlers "
- quid "3E11BD840293"
- label "handlers "
- supplier "Logical View::wsdd::Handler"
- quidu "3E10AC3B01D6"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$5"
- quid "3E11BD840295"
- supplier "Logical View::wsdd::PortComponent"
- quidu "3E10AB8D01F6"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$6"
- quid "3E11C37103CF"
- roles (list role_list
- (object Role "eEJBLink"
- quid "3E11C373015B"
- label "eEJBLink"
- supplier "Logical View::wsdd::EJBLink"
- quidu "3E10AC20028D"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$7"
- quid "3E11C373015D"
- supplier "Logical View::wsdd::ServiceImplBean"
- quidu "3E10AC0A0016"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$8"
- quid "3E11C379038A"
- roles (list role_list
- (object Role "eServletLink"
- quid "3E11C37C00D1"
- label "eServletLink"
- supplier "Logical View::wsdd::ServletLink"
- quidu "3E10AC1502E2"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$9"
- quid "3E11C37C00DC"
- supplier "Logical View::wsdd::ServiceImplBean"
- quidu "3E10AC0A0016"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$10"
- quid "3E10CA7303C5"
- roles (list role_list
- (object Role "webServiceDescriptions"
- quid "3E10CA760351"
- label "webServiceDescriptions"
- supplier "Logical View::wsdd::WebServiceDescription"
- quidu "3E10A1500313"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$11"
- quid "3E10CA76035B"
- supplier "Logical View::wsdd::WebServices"
- quidu "3E109EEF012F"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$12"
- quid "3E11B7C8033F"
- roles (list role_list
- (object Role "portComponents"
- quid "3E11B7CC02C3"
- label "portComponents"
- supplier "Logical View::wsdd::PortComponent"
- quidu "3E10AB8D01F6"
- client_cardinality (value cardinality "1..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$13"
- quid "3E11B7CC02CD"
- supplier "Logical View::wsdd::WebServiceDescription"
- quidu "3E10A1500313"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$14"
- quid "3E11CEDE031E"
- roles (list role_list
- (object Role "initParams "
- quid "3E11CEE00371"
- label "initParams "
- supplier "Logical View::wscommon::InitParam"
- quidu "3E10AC6E0280"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$15"
- quid "3E11CEE00373"
- supplier "Logical View::wsdd::Handler"
- quidu "3E10AC3B01D6"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$16"
- quid "3E11CEE80001"
- roles (list role_list
- (object Role "soapHeaders"
- quid "3E11CEEA0298"
- label "soapHeaders"
- supplier "Logical View::wscommon::SOAPHeader"
- quidu "3E10AC99022F"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$17"
- quid "3E11CEEA02A2"
- supplier "Logical View::wsdd::Handler"
- quidu "3E10AC3B01D6"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$18"
- quid "3E3953020189"
- roles (list role_list
- (object Role "beanLink"
- quid "3E3953050007"
- label "beanLink"
- supplier "Logical View::wsdd::BeanLink"
- quidu "3E3952E700EC"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$19"
- quid "3E3953050011"
- supplier "Logical View::wsdd::ServiceImplBean"
- quidu "3E10AC0A0016"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$20"
- quid "3E5276360293"
- roles (list role_list
- (object Role "soapRoles"
- quid "3E5276380227"
- label "soapRoles"
- supplier "Logical View::wscommon::SOAPRole"
- quidu "3E10ACBC0164"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$21"
- quid "3E5276380231"
- supplier "Logical View::wsdd::Handler"
- quidu "3E10AC3B01D6"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$22"
- quid "3F5CBEA10235"
- roles (list role_list
- (object Role "descriptionType"
- quid "3F5CBEA200D8"
- label "descriptionType"
- supplier "Logical View::wscommon::DescriptionType"
- quidu "3F5CBC6D0353"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$23"
- quid "3F5CBEA200E2"
- supplier "Logical View::wsdd::PortComponent"
- quidu "3E10AB8D01F6"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$24"
- quid "3F5CBEA700C1"
- roles (list role_list
- (object Role "displayNameType"
- quid "3F5CBEA8031B"
- label "displayNameType"
- supplier "Logical View::wscommon::DisplayNameType"
- quidu "3F5CBC780236"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$25"
- quid "3F5CBEA80325"
- supplier "Logical View::wsdd::PortComponent"
- quidu "3E10AB8D01F6"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$26"
- quid "3F5CBF8A0114"
- roles (list role_list
- (object Role "descriptionTypes"
- quid "3F5CBF8B0075"
- label "descriptionTypes"
- supplier "Logical View::wscommon::DescriptionType"
- quidu "3F5CBC6D0353"
- client_cardinality (value cardinality "0..n")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$27"
- quid "3F5CBF8B0089"
- supplier "Logical View::wscommon::InitParam"
- quidu "3E10AC6E0280"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$28"
- quid "3F5DDBB70311"
- roles (list role_list
- (object Role "descriptionType"
- quid "3F5DDBB80255"
- label "descriptionType"
- supplier "Logical View::wscommon::DescriptionType"
- quidu "3F5CBC6D0353"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$29"
- quid "3F5DDBB80269"
- supplier "Logical View::wsdd::WebServiceDescription"
- quidu "3E10A1500313"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$30"
- quid "3F5DDBBE039E"
- roles (list role_list
- (object Role "displayNameType"
- quid "3F5DDBBF0309"
- label "displayNameType"
- supplier "Logical View::wscommon::DisplayNameType"
- quidu "3F5CBC780236"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$31"
- quid "3F5DDBBF0313"
- supplier "Logical View::wsdd::WebServiceDescription"
- quidu "3E10A1500313"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$32"
- quid "3F5DDC4500F9"
- roles (list role_list
- (object Role "iconType"
- quid "3F5DDC460046"
- label "iconType"
- supplier "Logical View::common::IconType"
- quidu "3E4A99EE003A"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$33"
- quid "3F5DDC460050"
- supplier "Logical View::wsdd::WebServiceDescription"
- quidu "3E10A1500313"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE)))
- (object Association "$UNNAMED$34"
- quid "3F5DDE950122"
- roles (list role_list
- (object Role "iconType"
- quid "3F5DDE96016A"
- label "iconType"
- supplier "Logical View::common::IconType"
- quidu "3E4A99EE003A"
- client_cardinality (value cardinality "0..1")
- Containment "By Value"
- is_navigable TRUE)
- (object Role "$UNNAMED$35"
- quid "3F5DDE96017E"
- supplier "Logical View::wsdd::PortComponent"
- quidu "3E10AB8D01F6"
- client_cardinality (value cardinality "1")
- is_aggregate TRUE))))
- logical_presentations (list unit_reference_list
- (object ClassDiagram "PortComponent"
- quid "3E11BAD902A3"
- title "PortComponent"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::wsdd::EJBLink" @1
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (870, 2734)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @1
- location (725, 2661)
- fill_color 13434879
- nlines 1
- max_width 290
- justify 0
- label "EJBLink")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10AC20028D"
- compartment (object Compartment
- Parent_View @1
- location (725, 2713)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 286)
- width 308
- height 166
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wsdd::ServletLink" @2
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1567, 2719)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @2
- location (1390, 2646)
- fill_color 13434879
- nlines 1
- max_width 354
- justify 0
- label "ServletLink")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10AC1502E2"
- compartment (object Compartment
- Parent_View @2
- location (1390, 2698)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 350)
- width 372
- height 166
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::QName" @3
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1856, 672)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @3
- location (1575, 506)
- fill_color 13434879
- nlines 1
- max_width 562
- justify 0
- label "QName")
- icon_style "Icon"
- line_color 3342489
- fill_color 16766421
- quidu "3F3BEF5D02C0"
- compartment (object Compartment
- Parent_View @3
- location (1575, 602)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 558)
- width 580
- height 352
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::Description" @4
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (192, 129)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @4
- location (64, 10)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 3342489
- fill_color 16766421
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @4
- location (64, 106)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 253)
- width 274
- height 258
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::DisplayName" @5
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (640, 129)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @5
- location (424, 10)
- fill_color 13434879
- nlines 1
- max_width 432
- justify 0
- label "DisplayName")
- icon_style "Icon"
- line_color 3342489
- fill_color 16766421
- quidu "3E4A9922000E"
- compartment (object Compartment
- Parent_View @5
- location (424, 106)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 428)
- width 450
- height 258
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wsdd::BeanLink" @6
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1241, 2426)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @6
- location (1154, 2381)
- fill_color 13434879
- nlines 1
- max_width 174
- justify 0
- label "BeanLink")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E3952E700EC"
- width 192
- height 110
- annotation 8
- autoResize TRUE)
- (object InheritView "" @7
- stereotype TRUE
- line_color 3342489
- quidu "3E39538B014B"
- client @1
- supplier @6
- vertices (list Points
- (968, 2650)
- (1172, 2481))
- line_style 0)
- (object InheritView "" @8
- stereotype TRUE
- line_color 3342489
- quidu "3E3953A5010A"
- client @2
- supplier @6
- vertices (list Points
- (1474, 2635)
- (1302, 2481))
- line_style 0)
- (object ClassView "Class" "Logical View::wsdd::Handler" @9
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (336, 2239)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @9
- location (119, 2069)
- fill_color 13434879
- nlines 1
- max_width 434
- justify 0
- label "Handler")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10AC3B01D6"
- compartment (object Compartment
- Parent_View @9
- location (119, 2121)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 375)
- width 452
- height 360
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wsdd::WSDLPort" @10
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1839, 1038)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @10
- location (1747, 993)
- fill_color 13434879
- nlines 1
- max_width 184
- justify 0
- label "WSDLPort")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10ABC40205"
- width 202
- height 110
- annotation 8
- autoResize TRUE)
- (object InheritView "" @11
- stereotype TRUE
- line_color 3342489
- quidu "3F438C890363"
- client @10
- supplier @3
- vertices (list Points
- (1841, 983)
- (1841, 848))
- line_style 3
- origin_attachment (1841, 983)
- terminal_attachment (1841, 848))
- (object ClassView "Class" "Logical View::wsdd::ServiceImplBean" @12
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1231, 1409)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @12
- location (1088, 1364)
- fill_color 13434879
- nlines 1
- max_width 286
- justify 0
- label "ServiceImplBean")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10AC0A0016"
- width 304
- height 110
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$18" @13
- location (1235, 1917)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E3953020189"
- roleview_list (list RoleViews
- (object RoleView "beanLink" @14
- Parent_View @13
- location (19, 121)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @15
- Parent_View @14
- location (1102, 2172)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 162
- justify 0
- label "+beanLink"
- pctDist 0.559441
- height 137
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E3953050007"
- client @13
- supplier @6
- vertices (list Points
- (1235, 1917)
- (1240, 2370))
- line_style 0
- label (object SegLabel @16
- Parent_View @14
- location (1325, 2272)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "0..1"
- pctDist 0.783217
- height 86
- orientation 0))
- (object RoleView "$UNNAMED$19" @17
- Parent_View @13
- location (19, 121)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E3953050011"
- client @13
- supplier @12
- vertices (list Points
- (1235, 1917)
- (1231, 1464))
- line_style 0
- label (object SegLabel @18
- Parent_View @17
- location (1285, 1512)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.895105
- height 54
- orientation 1))))
- (object ClassView "Class" "Logical View::wscommon::DescriptionType" @19
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (192, 464)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @19
- location (55, 396)
- fill_color 13434879
- nlines 1
- max_width 274
- justify 0
- label "DescriptionType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3F5CBC6D0353"
- width 292
- height 156
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wscommon::DisplayNameType" @20
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (640, 464)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @20
- location (491, 396)
- fill_color 13434879
- nlines 1
- max_width 298
- justify 0
- label "DisplayNameType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3F5CBC780236"
- width 316
- height 156
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::IconType" @21
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1216, 400)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @21
- location (961, 257)
- fill_color 13434879
- nlines 1
- max_width 510
- justify 0
- label "IconType")
- icon_style "Icon"
- line_color 3342489
- fill_color 16766421
- quidu "3E4A99EE003A"
- compartment (object Compartment
- Parent_View @21
- location (961, 353)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 506)
- width 528
- height 306
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wsdd::PortComponent" @22
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (336, 1040)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @22
- location (32, 850)
- fill_color 13434879
- nlines 1
- max_width 608
- justify 0
- label "PortComponent")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10AB8D01F6"
- compartment (object Compartment
- Parent_View @22
- location (32, 902)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 7
- max_width 604)
- width 626
- height 400
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$4" @23
- location (336, 1649)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11BD80037E"
- roleview_list (list RoleViews
- (object RoleView "handlers " @24
- Parent_View @23
- location (48, 1541)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @25
- Parent_View @24
- location (296, 1976)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 149
- justify 0
- label "+handlers "
- pctDist 0.799082
- height 41
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E11BD840293"
- client @23
- supplier @9
- vertices (list Points
- (336, 1649)
- (336, 2058))
- line_style 0
- label (object SegLabel @26
- Parent_View @24
- location (390, 2016)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "0..n"
- pctDist 0.900115
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$5" @27
- Parent_View @23
- location (48, 1541)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11BD840295"
- client @23
- supplier @22
- vertices (list Points
- (336, 1649)
- (336, 1240))
- line_style 0
- label (object SegLabel @28
- Parent_View @27
- location (390, 1282)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.900115
- height 54
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$0" @29
- location (1193, 1038)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11BD6900E8"
- roleview_list (list RoleViews
- (object RoleView "wsdlPort" @30
- Parent_View @29
- location (909, 922)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @31
- Parent_View @30
- location (1422, 1083)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 192
- justify 0
- label "+wsdlPort"
- pctDist 0.421296
- height 45
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E11BD6A034C"
- client @29
- supplier @10
- vertices (list Points
- (1193, 1038)
- (1737, 1038))
- line_style 0
- label (object SegLabel @32
- Parent_View @30
- location (1737, 998)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 1.003623
- height 41
- orientation 0))
- (object RoleView "$UNNAMED$1" @33
- Parent_View @29
- location (909, 922)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11BD6A0356"
- client @29
- supplier @22
- vertices (list Points
- (1193, 1038)
- (649, 1039))
- line_style 0
- label (object SegLabel @34
- Parent_View @33
- location (707, 988)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.894737
- height 52
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$2" @35
- location (874, 1260)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11BD74029C"
- roleview_list (list RoleViews
- (object RoleView "serviceImplBean" @36
- Parent_View @35
- location (591, 1144)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @37
- Parent_View @36
- location (971, 1539)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 273
- justify 0
- label "+serviceImplBean"
- pctDist 0.797507
- height 222
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E11BD7602F8"
- client @35
- supplier @12
- vertices (list Points
- (874, 1260)
- (1100, 1353))
- line_style 0
- label (object SegLabel @38
- Parent_View @36
- location (1067, 1376)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.913571
- height 35
- orientation 1))
- (object RoleView "$UNNAMED$3" @39
- Parent_View @35
- location (591, 1144)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11BD7602FA"
- client @35
- supplier @22
- vertices (list Points
- (874, 1260)
- (649, 1168))
- line_style 0
- label (object SegLabel @40
- Parent_View @39
- location (692, 1129)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.897595
- height 53
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$22" @41
- location (248, 690)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5CBEA10235"
- roleview_list (list RoleViews
- (object RoleView "descriptionType" @42
- Parent_View @41
- location (-72, -132)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @43
- Parent_View @42
- location (179, 628)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 255
- justify 0
- label "+descriptionType"
- pctDist 0.501320
- height 53
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F5CBEA200D8"
- client @41
- supplier @19
- vertices (list Points
- (248, 690)
- (211, 542))
- line_style 0
- label (object SegLabel @44
- Parent_View @42
- location (267, 581)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 137
- justify 0
- label "0..1"
- pctDist 0.668995
- height 45
- orientation 1))
- (object RoleView "$UNNAMED$23" @45
- Parent_View @41
- location (-72, -132)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5CBEA200E2"
- client @41
- supplier @22
- vertices (list Points
- (248, 690)
- (285, 839))
- line_style 0
- label (object SegLabel @46
- Parent_View @45
- location (333, 811)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.890954
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$24" @47
- location (519, 690)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5CBEA700C1"
- roleview_list (list RoleViews
- (object RoleView "displayNameType" @48
- Parent_View @47
- location (192, -124)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @49
- Parent_View @48
- location (534, 662)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 286
- justify 0
- label "+displayNameType"
- pctDist 0.194674
- height 1
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F5CBEA8031B"
- client @47
- supplier @20
- vertices (list Points
- (519, 690)
- (598, 542))
- line_style 0
- label (object SegLabel @50
- Parent_View @48
- location (652, 612)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 157
- justify 0
- label "0..1"
- pctDist 0.778527
- height 81
- orientation 1))
- (object RoleView "$UNNAMED$25" @51
- Parent_View @47
- location (192, -124)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5CBEA80325"
- client @47
- supplier @22
- vertices (list Points
- (519, 690)
- (441, 839))
- line_style 0
- label (object SegLabel @52
- Parent_View @51
- location (497, 849)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.898276
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$34" @53
- location (807, 696)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDE950122"
- roleview_list (list RoleViews
- (object RoleView "iconType" @54
- Parent_View @53
- location (474, -345)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @55
- Parent_View @54
- location (941, 550)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 168
- justify 0
- label "+iconType"
- pctDist 0.799329
- height 41
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDE96016A"
- client @53
- supplier @21
- vertices (list Points
- (807, 696)
- (1003, 553))
- line_style 0
- label (object SegLabel @56
- Parent_View @54
- location (1015, 612)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "0..1"
- pctDist 0.900575
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$35" @57
- Parent_View @53
- location (474, -345)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDE96017E"
- client @53
- supplier @22
- vertices (list Points
- (807, 696)
- (611, 839))
- line_style 0
- label (object SegLabel @58
- Parent_View @57
- location (663, 868)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 0))))
- (object InheritView "" @59
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDB7E00C1"
- client @19
- supplier @4
- vertices (list Points
- (192, 385)
- (192, 258))
- line_style 0)
- (object InheritView "" @60
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDB82033D"
- client @20
- supplier @5
- vertices (list Points
- (640, 385)
- (640, 258))
- line_style 0)))
- (object ClassDiagram "WebServices"
- quid "3E109E8A0181"
- title "WebServices"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 0
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::wsdd::WebServiceDescription" @61
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (484, 1216)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @61
- location (142, 1002)
- fill_color 13434879
- nlines 1
- max_width 684
- justify 0
- label "WebServiceDescription")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10A1500313"
- compartment (object Compartment
- Parent_View @61
- location (142, 1054)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 8
- max_width 681)
- width 702
- height 448
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wsdd::WebServices" @62
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (487, 690)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @62
- location (374, 645)
- fill_color 13434879
- nlines 1
- max_width 226
- justify 0
- label "WebServices")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E109EEF012F"
- width 244
- height 110
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$10" @63
- location (485, 868)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E10CA7303C5"
- roleview_list (list RoleViews
- (object RoleView "webServiceDescriptions" @64
- Parent_View @63
- location (-123, 563)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @65
- Parent_View @64
- location (239, 982)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 374
- justify 0
- label "+webServiceDescriptions"
- pctDist 0.938416
- height 246
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E10CA760351"
- client @63
- supplier @61
- vertices (list Points
- (485, 868)
- (484, 991))
- line_style 0
- label (object SegLabel @66
- Parent_View @64
- location (538, 978)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 62
- justify 0
- label "1..n"
- pctDist 0.898827
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$11" @67
- Parent_View @63
- location (-123, 563)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E10CA76035B"
- client @63
- supplier @62
- vertices (list Points
- (485, 868)
- (486, 745))
- line_style 0
- label (object SegLabel @68
- Parent_View @67
- location (540, 758)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.898678
- height 54
- orientation 1))))
- (object ClassView "Class" "Logical View::common::CompatibilityDescriptionGroup" @69
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (487, 281)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @69
- location (141, 102)
- fill_color 13434879
- nlines 1
- max_width 692
- justify 0
- label "CompatibilityDescriptionGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "4023ADF20197"
- compartment (object Compartment
- Parent_View @69
- location (141, 217)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 13434879
- anchor 2
- nlines 5
- max_width 437)
- width 710
- height 382
- annotation 8
- autoResize TRUE)
- (object InheritView "" @70
- stereotype TRUE
- line_color 3342489
- quidu "4023B0DD00DD"
- client @62
- supplier @69
- vertices (list Points
- (487, 634)
- (487, 472))
- line_style 0)))
- (object ClassDiagram "WebServiceDescription"
- quid "3E10D66B02EA"
- title "WebServiceDescription"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 26
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::common::DisplayName" @71
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2176, 640)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @71
- location (1960, 521)
- fill_color 13434879
- nlines 1
- max_width 432
- justify 0
- label "DisplayName")
- icon_style "Icon"
- line_color 3342489
- fill_color 16766421
- quidu "3E4A9922000E"
- compartment (object Compartment
- Parent_View @71
- location (1960, 617)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 428)
- width 450
- height 258
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::Description" @72
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2096, 320)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @72
- location (1968, 201)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 3342489
- fill_color 16766421
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @72
- location (1968, 297)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 253)
- width 274
- height 258
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wsdd::PortComponent" @73
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (395, 1621)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @73
- location (91, 1431)
- fill_color 13434879
- nlines 1
- max_width 608
- justify 0
- label "PortComponent")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10AB8D01F6"
- compartment (object Compartment
- Parent_View @73
- location (91, 1483)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 7
- max_width 604)
- width 626
- height 400
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wscommon::DescriptionType" @74
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1408, 320)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @74
- location (1271, 252)
- fill_color 13434879
- nlines 1
- max_width 274
- justify 0
- label "DescriptionType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3F5CBC6D0353"
- width 292
- height 156
- annotation 8
- autoResize TRUE)
- (object InheritView "" @75
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDB7E00C1"
- client @74
- supplier @72
- vertices (list Points
- (1554, 320)
- (1958, 320))
- line_style 0)
- (object ClassView "Class" "Logical View::wscommon::DisplayNameType" @76
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1424, 640)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @76
- location (1275, 572)
- fill_color 13434879
- nlines 1
- max_width 298
- justify 0
- label "DisplayNameType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3F5CBC780236"
- width 316
- height 156
- annotation 8
- autoResize TRUE)
- (object InheritView "" @77
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDB82033D"
- client @76
- supplier @71
- vertices (list Points
- (1582, 640)
- (1950, 640))
- line_style 0)
- (object ClassView "Class" "Logical View::common::IconType" @78
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1488, 992)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @78
- location (1233, 849)
- fill_color 13434879
- nlines 1
- max_width 510
- justify 0
- label "IconType")
- icon_style "Icon"
- line_color 3342489
- fill_color 16766421
- quidu "3E4A99EE003A"
- compartment (object Compartment
- Parent_View @78
- location (1233, 945)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 506)
- width 528
- height 306
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wsdd::WebServiceDescription" @79
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (395, 644)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @79
- location (53, 430)
- fill_color 13434879
- nlines 1
- max_width 684
- justify 0
- label "WebServiceDescription")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10A1500313"
- compartment (object Compartment
- Parent_View @79
- location (53, 482)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 8
- max_width 681)
- width 702
- height 448
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$12" @80
- location (395, 1144)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11B7C8033F"
- roleview_list (list RoleViews
- (object RoleView "portComponents" @81
- Parent_View @80
- location (107, 983)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @82
- Parent_View @81
- location (355, 1363)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 270
- justify 0
- label "+portComponents"
- pctDist 0.797920
- height 41
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E11B7CC02C3"
- client @80
- supplier @73
- vertices (list Points
- (395, 1144)
- (395, 1420))
- line_style 0
- label (object SegLabel @83
- Parent_View @81
- location (449, 1392)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "1..n"
- pctDist 0.898960
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$13" @84
- Parent_View @80
- location (107, 983)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11B7CC02CD"
- client @80
- supplier @79
- vertices (list Points
- (395, 1144)
- (395, 868))
- line_style 0
- label (object SegLabel @85
- Parent_View @84
- location (449, 896)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.900298
- height 54
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$28" @86
- location (1003, 448)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDBB70311"
- roleview_list (list RoleViews
- (object RoleView "descriptionType" @87
- Parent_View @86
- location (648, -189)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @88
- Parent_View @87
- location (1198, 346)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 264
- justify 0
- label "+descriptionType"
- pctDist 0.796532
- height 40
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDBB80255"
- client @86
- supplier @74
- vertices (list Points
- (1003, 448)
- (1261, 366))
- line_style 0
- label (object SegLabel @89
- Parent_View @87
- location (1251, 425)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "0..1"
- pctDist 0.896416
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$29" @90
- Parent_View @86
- location (648, -189)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDBB80269"
- client @86
- supplier @79
- vertices (list Points
- (1003, 448)
- (746, 530))
- line_style 0
- label (object SegLabel @91
- Parent_View @90
- location (789, 574)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.894875
- height 55
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$30" @92
- location (1005, 641)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDBBE039E"
- roleview_list (list RoleViews
- (object RoleView "displayNameType" @93
- Parent_View @92
- location (649, 1)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @94
- Parent_View @93
- location (1211, 600)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 296
- justify 0
- label "+displayNameType"
- pctDist 0.796992
- height 41
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDBBF0309"
- client @92
- supplier @76
- vertices (list Points
- (1005, 641)
- (1265, 640))
- line_style 0
- label (object SegLabel @95
- Parent_View @93
- location (1238, 694)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "0..1"
- pctDist 0.898496
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$31" @96
- Parent_View @92
- location (649, 1)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDBBF0313"
- client @92
- supplier @79
- vertices (list Points
- (1005, 641)
- (746, 642))
- line_style 0
- label (object SegLabel @97
- Parent_View @96
- location (772, 696)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.898496
- height 54
- orientation 0))))
- (object AssociationViewNew "$UNNAMED$32" @98
- location (984, 830)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDC4500F9"
- roleview_list (list RoleViews
- (object RoleView "iconType" @99
- Parent_View @98
- location (631, 185)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @100
- Parent_View @99
- location (1187, 853)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 168
- justify 0
- label "+iconType"
- pctDist 0.795003
- height 41
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDC460046"
- client @98
- supplier @78
- vertices (list Points
- (984, 830)
- (1223, 907))
- line_style 0
- label (object SegLabel @101
- Parent_View @99
- location (1183, 950)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "0..1"
- pctDist 0.901946
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$33" @102
- Parent_View @98
- location (631, 185)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDC460050"
- client @98
- supplier @79
- vertices (list Points
- (984, 830)
- (746, 754))
- line_style 0
- label (object SegLabel @103
- Parent_View @102
- location (758, 812)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.889918
- height 53
- orientation 0))))))
- (object ClassDiagram "Handler"
- quid "3E11CC500304"
- title "Handler"
- zoom 100
- max_height 28350
- max_width 21600
- origin_x 0
- origin_y 694
- items (list diagram_item_list
- (object ClassView "Class" "Logical View::common::QName" @104
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1836, 1012)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @104
- location (1555, 846)
- fill_color 13434879
- nlines 1
- max_width 562
- justify 0
- label "QName")
- icon_style "Icon"
- line_color 3342489
- fill_color 16766421
- quidu "3F3BEF5D02C0"
- compartment (object Compartment
- Parent_View @104
- location (1555, 942)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 5
- max_width 558)
- width 580
- height 352
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wscommon::SOAPHeader" @105
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1088, 1456)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @105
- location (975, 1375)
- fill_color 13434879
- nlines 2
- max_width 226
- justify 0
- label "SOAPHeader")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10AC99022F"
- width 244
- height 182
- annotation 8
- autoResize TRUE)
- (object InheritView "" @106
- stereotype TRUE
- line_color 3342489
- quidu "3F4671870049"
- client @105
- supplier @104
- vertices (list Points
- (1210, 1382)
- (1545, 1183))
- line_style 0)
- (object ClassView "Class" "Logical View::wscommon::SOAPRole" @107
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (528, 1840)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @107
- location (348, 1734)
- fill_color 13434879
- nlines 2
- max_width 360
- justify 0
- label "SOAPRole")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10ACBC0164"
- compartment (object Compartment
- Parent_View @107
- location (348, 1830)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 2
- max_width 312)
- width 378
- height 232
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wsdd::Handler" @108
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (281, 884)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @108
- location (62, 757)
- fill_color 13434879
- nlines 1
- max_width 438
- justify 0
- label "Handler")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10AC3B01D6"
- compartment (object Compartment
- Parent_View @108
- location (62, 809)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 375)
- width 456
- height 275
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$16" @109
- location (719, 1195)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11CEE80001"
- roleview_list (list RoleViews
- (object RoleView "soapHeaders" @110
- Parent_View @109
- location (582, 1090)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @111
- Parent_View @110
- location (892, 1367)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 213
- justify 0
- label "+soapHeaders"
- pctDist 0.799970
- height 41
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E11CEEA0298"
- client @109
- supplier @105
- vertices (list Points
- (719, 1195)
- (965, 1368))
- line_style 0
- label (object SegLabel @112
- Parent_View @110
- location (970, 1308)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "0..n"
- pctDist 0.901260
- height 54
- orientation 0))
- (object RoleView "$UNNAMED$17" @113
- Parent_View @109
- location (582, 1090)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11CEEA02A2"
- client @109
- supplier @108
- vertices (list Points
- (719, 1195)
- (475, 1021))
- line_style 0
- label (object SegLabel @114
- Parent_View @113
- location (530, 996)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.897959
- height 54
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$20" @115
- location (406, 1372)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E5276360293"
- roleview_list (list RoleViews
- (object RoleView "soapRoles" @116
- Parent_View @115
- location (187, 413)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @117
- Parent_View @116
- location (375, 1655)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 180
- justify 0
- label "+soapRoles"
- pctDist 0.732968
- height 102
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E5276380227"
- client @115
- supplier @107
- vertices (list Points
- (406, 1372)
- (497, 1723))
- line_style 0
- label (object SegLabel @118
- Parent_View @116
- location (574, 1680)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "0..n"
- pctDist 0.940086
- height 86
- orientation 0))
- (object RoleView "$UNNAMED$21" @119
- Parent_View @115
- location (187, 413)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E5276380231"
- client @115
- supplier @108
- vertices (list Points
- (406, 1372)
- (315, 1021))
- line_style 0
- label (object SegLabel @120
- Parent_View @119
- location (376, 1042)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 15
- justify 0
- label "1"
- pctDist 0.900000
- height 54
- orientation 1))))
- (object ClassView "Class" "Logical View::wscommon::DescriptionType" @121
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1728, 528)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @121
- location (1591, 460)
- fill_color 13434879
- nlines 1
- max_width 274
- justify 0
- label "DescriptionType")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3F5CBC6D0353"
- width 292
- height 156
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::wscommon::InitParam" @122
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (1056, 960)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @122
- location (850, 813)
- fill_color 13434879
- nlines 2
- max_width 412
- justify 0
- label "InitParam")
- icon_style "Icon"
- line_color 3342489
- fill_color 13434879
- quidu "3E10AC6E0280"
- compartment (object Compartment
- Parent_View @122
- location (850, 909)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 4
- max_width 356)
- width 430
- height 314
- annotation 8
- autoResize TRUE)
- (object AssociationViewNew "$UNNAMED$14" @123
- location (674, 921)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11CEDE031E"
- roleview_list (list RoleViews
- (object RoleView "initParams " @124
- Parent_View @123
- location (537, 808)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @125
- Parent_View @124
- location (696, 949)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 183
- justify 0
- label "+initParams "
- pctDist 0.143590
- height 26
- orientation 1)
- stereotype TRUE
- line_color 3342489
- quidu "3E11CEE00371"
- client @123
- supplier @122
- vertices (list Points
- (674, 921)
- (840, 936))
- line_style 0
- label (object SegLabel @126
- Parent_View @124
- location (828, 885)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "0..n"
- pctDist 0.899359
- height 52
- orientation 0))
- (object RoleView "$UNNAMED$15" @127
- Parent_View @123
- location (537, 808)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3E11CEE00373"
- client @123
- supplier @108
- vertices (list Points
- (674, 921)
- (509, 904))
- line_style 0
- label (object SegLabel @128
- Parent_View @127
- location (532, 855)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.899125
- height 53
- orientation 1))))
- (object AssociationViewNew "$UNNAMED$26" @129
- location (1438, 713)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5CBF8A0114"
- roleview_list (list RoleViews
- (object RoleView "descriptionTypes" @130
- Parent_View @129
- location (386, -242)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object SegLabel @131
- Parent_View @130
- location (1552, 595)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 1
- anchor_loc 1
- nlines 1
- max_width 278
- justify 0
- label "+descriptionTypes"
- pctDist 0.803692
- height 39
- orientation 0)
- stereotype TRUE
- line_color 3342489
- quidu "3F5CBF8B0075"
- client @129
- supplier @121
- vertices (list Points
- (1438, 713)
- (1605, 606))
- line_style 0
- label (object SegLabel @132
- Parent_View @130
- location (1615, 663)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 68
- justify 0
- label "0..n"
- pctDist 0.895290
- height 54
- orientation 1))
- (object RoleView "$UNNAMED$27" @133
- Parent_View @129
- location (386, -242)
- font (object Font
- size 10
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- stereotype TRUE
- line_color 3342489
- quidu "3F5CBF8B0089"
- client @129
- supplier @122
- vertices (list Points
- (1438, 713)
- (1271, 821))
- line_style 0
- label (object SegLabel @134
- Parent_View @133
- location (1319, 854)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- anchor 2
- anchor_loc 1
- nlines 1
- max_width 30
- justify 0
- label "1"
- pctDist 0.891508
- height 54
- orientation 0))))
- (object ClassView "Class" "Logical View::common::Description" @135
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (2368, 528)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @135
- location (2240, 409)
- fill_color 13434879
- nlines 1
- max_width 256
- justify 0
- label "Description")
- icon_style "Icon"
- line_color 3342489
- fill_color 16766421
- quidu "3E4A98D602E0"
- compartment (object Compartment
- Parent_View @135
- location (2240, 505)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- icon_style "Icon"
- fill_color 16777215
- anchor 2
- nlines 3
- max_width 253)
- width 274
- height 258
- annotation 8
- autoResize TRUE)
- (object ClassView "Class" "Logical View::common::DescriptionGroup" @136
- ShowCompartmentStereotypes TRUE
- IncludeAttribute TRUE
- IncludeOperation TRUE
- location (224, 496)
- font (object Font
- size 8
- face "Arial"
- bold FALSE
- italics FALSE
- underline FALSE
- strike FALSE
- color 0
- default_color TRUE)
- label (object ItemLabel
- Parent_View @136
- location (82, 428)
- fill_color 13434879
- nlines 1
- max_width 284
- justify 0
- label "DescriptionGroup")
- icon_style "Icon"
- line_color 3342489
- fill_color 16766421
- quidu "3E4D451F01FB"
- width 302
- height 156
- annotation 8
- autoResize TRUE)
- (object InheritView "" @137
- stereotype TRUE
- line_color 3342489
- quidu "3F5DDB7E00C1"
- client @121
- supplier @135
- vertices (list Points
- (1874, 528)
- (2230, 528))
- line_style 0)))))
diff --git a/plugins/org.eclipse.jst.j2ee.core/schema/ejbModelExtender.exsd b/plugins/org.eclipse.jst.j2ee.core/schema/ejbModelExtender.exsd deleted file mode 100644 index dc014a5b7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/schema/ejbModelExtender.exsd +++ /dev/null @@ -1,111 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> -<!-- Schema file written by PDE --> -<schema targetNamespace="org.eclipse.jst.j2ee.core"> -<annotation> - <appInfo> - <meta.schema plugin="org.eclipse.jst.j2ee.core" id="ejbModelExtender" name="EJB Model Extender"/> - </appInfo> - <documentation> - This extension point allows for a helper to be contributed for deriving the JNDI name of enterprise beans, and for inheritance support. The helper can be plugged in by application -server vendors. - </documentation> - </annotation> - - <element name="extension"> - <complexType> - <sequence> - <element ref="ejbModelExtender"/> - </sequence> - <attribute name="point" type="string" use="required"> - <annotation> - <documentation> - a fully qualified identifier of the target extension point - </documentation> - </annotation> - </attribute> - <attribute name="id" type="string"> - <annotation> - <documentation> - an optional identifier of the extension instance - </documentation> - </annotation> - </attribute> - <attribute name="name" type="string"> - <annotation> - <documentation> - an optional name of the extension instance - </documentation> - </annotation> - </attribute> - </complexType> - </element> - - <element name="ejbModelExtender"> - <complexType> - <attribute name="id" type="string"> - <annotation> - <documentation> - an optional identifier for this instance of the model extender - </documentation> - </annotation> - </attribute> - <attribute name="extensionClass" type="string" use="required"> - <annotation> - <documentation> - the qualified name of the class to use to extend the EJB model - </documentation> - </annotation> - </attribute> - </complexType> - </element> - - <annotation> - <appInfo> - <meta.section type="since"/> - </appInfo> - <documentation> - <b>This extension point is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.</b> - </documentation> - </annotation> - - <annotation> - <appInfo> - <meta.section type="examples"/> - </appInfo> - <documentation> - - </documentation> - </annotation> - - <annotation> - <appInfo> - <meta.section type="apiInfo"/> - </appInfo> - <documentation> - - </documentation> - </annotation> - - <annotation> - <appInfo> - <meta.section type="implementation"/> - </appInfo> - <documentation> - - </documentation> - </annotation> - - <annotation> - <appInfo> - <meta.section type="copyright"/> - </appInfo> - <documentation> - Copyright (c) 2005 IBM Corporation and others.<br> -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 <a -href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> - </documentation> - </annotation> - -</schema> diff --git a/plugins/org.eclipse.jst.j2ee.core/schema/jndiBindingsHelpers.exsd b/plugins/org.eclipse.jst.j2ee.core/schema/jndiBindingsHelpers.exsd deleted file mode 100644 index d1c041517..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/schema/jndiBindingsHelpers.exsd +++ /dev/null @@ -1,116 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> -<!-- Schema file written by PDE --> -<schema targetNamespace="org.eclipse.jst.j2ee.core"> -<annotation> - <appInfo> - <meta.schema plugin="org.eclipse.jst.j2ee.core" id="jndiBindingsHelpers" name="jndiBindingsHelpers"/> - </appInfo> - <documentation> - This extension point allows for a helper to be contributed for deriving the JNDI binding information for enterprise beans. The helper can be plugged in by application server vendors. - </documentation> - </annotation> - - <element name="extension"> - <complexType> - <sequence> - <element ref="jndiBindingsHelper"/> - </sequence> - <attribute name="point" type="string" use="required"> - <annotation> - <documentation> - - </documentation> - </annotation> - </attribute> - <attribute name="id" type="string"> - <annotation> - <documentation> - - </documentation> - </annotation> - </attribute> - <attribute name="name" type="string"> - <annotation> - <documentation> - - </documentation> - <appInfo> - <meta.attribute translatable="true"/> - </appInfo> - </annotation> - </attribute> - </complexType> - </element> - - <element name="jndiBindingsHelper"> - <complexType> - <attribute name="id" type="string" use="required"> - <annotation> - <documentation> - the identifier for this instance of the bindings helper - </documentation> - </annotation> - </attribute> - <attribute name="class" type="string" use="required"> - <annotation> - <documentation> - The qualified class name for the helper class uses in this extension - </documentation> - <appInfo> - <meta.attribute kind="java" basedOn="org.eclipse.jst.j2ee.core.internal.bindings.AbstractBindingsHelper"/> - </appInfo> - </annotation> - </attribute> - </complexType> - </element> - - <annotation> - <appInfo> - <meta.section type="since"/> - </appInfo> - <documentation> - <b>This extension point is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.</b> - </documentation> - </annotation> - - <annotation> - <appInfo> - <meta.section type="examples"/> - </appInfo> - <documentation> - - </documentation> - </annotation> - - <annotation> - <appInfo> - <meta.section type="apiInfo"/> - </appInfo> - <documentation> - - </documentation> - </annotation> - - <annotation> - <appInfo> - <meta.section type="implementation"/> - </appInfo> - <documentation> - [Enter information about supplied implementation of this extension point.] - </documentation> - </annotation> - - <annotation> - <appInfo> - <meta.section type="copyright"/> - </appInfo> - <documentation> - Copyright (c) 2005 IBM Corporation and others.<br> -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 <a -href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> - </documentation> - </annotation> - -</schema> diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ConstructorParameterOrder.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ConstructorParameterOrder.java deleted file mode 100644 index d6df64a91..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ConstructorParameterOrder.java +++ /dev/null @@ -1,82 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Constructor Parameter Order</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The constructor-parameter-order element defines the order that complexType element values are applied to a Java exception constructor. Element names are specified for each parameter of the constructor, including element names of inherited types if necessary. - * - * Used in: exception-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder#getElementNames <em>Element Names</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getConstructorParameterOrder() - * @model - * @generated - * @since 1.0 */ -public interface ConstructorParameterOrder extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getConstructorParameterOrder_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Element Names</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Element Names</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Element Names</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getConstructorParameterOrder_ElementNames() - * @model type="org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName" containment="true" required="true" - * @generated - */ - EList getElementNames(); - -} // ConstructorParameterOrder diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ElementName.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ElementName.java deleted file mode 100644 index 8059fd3c6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ElementName.java +++ /dev/null @@ -1,91 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Element Name</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The element-name element defines the name of a complexType element name attribute value. - * - * Used in: constructor-parameter-order - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName#getText <em>Text</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getElementName() - * @model - * @generated - * @since 1.0 */ -public interface ElementName extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getElementName_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Text</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Text</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Text</em>' attribute. - * @see #setText(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getElementName_Text() - * @model - * @generated - */ - String getText(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName#getText <em>Text</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Text</em>' attribute. - * @see #getText() - * @generated - */ - void setText(String value); - -} // ElementName diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ExceptionMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ExceptionMapping.java deleted file mode 100644 index 5a1f24671..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ExceptionMapping.java +++ /dev/null @@ -1,182 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Exception Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The exception-mapping element defines the mapping between the service specific exception types and the wsdl faults. - * - * This element should be interpreted with respect to the - * mapping between a method and an operation which provides the mapping context. - * - * Used in: service-endpoint-method-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getExceptionType <em>Exception Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getWsdlMessage <em>Wsdl Message</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getConstructorParameterOrder <em>Constructor Parameter Order</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getExceptionMapping() - * @model - * @generated - * @since 1.0 */ -public interface ExceptionMapping extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getExceptionMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Exception Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Exception Type</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The exception-type element defines Java type of the exception. It may be a service specific exception. - * - * It must be a fully qualified class name. - * - * Used in: exception-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Exception Type</em>' attribute. - * @see #setExceptionType(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getExceptionMapping_ExceptionType() - * @model - * @generated - */ - String getExceptionType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getExceptionType <em>Exception Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Exception Type</em>' attribute. - * @see #getExceptionType() - * @generated - */ - void setExceptionType(String value); - - /** - * Returns the value of the '<em><b>Wsdl Message Part Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Message Part Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Message Part Name</em>' attribute. - * @see #setWsdlMessagePartName(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getExceptionMapping_WsdlMessagePartName() - * @model - * @generated - */ - String getWsdlMessagePartName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Message Part Name</em>' attribute. - * @see #getWsdlMessagePartName() - * @generated - */ - void setWsdlMessagePartName(String value); - - /** - * Returns the value of the '<em><b>Wsdl Message</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Message</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Message</em>' containment reference. - * @see #setWsdlMessage(WSDLMessage) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getExceptionMapping_WsdlMessage() - * @model containment="true" required="true" - * @generated - */ - WSDLMessage getWsdlMessage(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getWsdlMessage <em>Wsdl Message</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Message</em>' containment reference. - * @see #getWsdlMessage() - * @generated - */ - void setWsdlMessage(WSDLMessage value); - - /** - * Returns the value of the '<em><b>Constructor Parameter Order</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Constructor Parameter Order</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Constructor Parameter Order</em>' containment reference. - * @see #setConstructorParameterOrder(ConstructorParameterOrder) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getExceptionMapping_ConstructorParameterOrder() - * @model containment="true" - * @generated - */ - ConstructorParameterOrder getConstructorParameterOrder(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getConstructorParameterOrder <em>Constructor Parameter Order</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Constructor Parameter Order</em>' containment reference. - * @see #getConstructorParameterOrder() - * @generated - */ - void setConstructorParameterOrder(ConstructorParameterOrder value); - -} // ExceptionMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/InterfaceMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/InterfaceMapping.java deleted file mode 100644 index b6a996a81..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/InterfaceMapping.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Interface Mapping</b></em>'. - * <!-- end-user-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getInterfaceMapping() - * @model - * @generated - * @since 1.0 */ -public interface InterfaceMapping extends EObject{ - // InterfaceMapping -} diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JavaWSDLMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JavaWSDLMapping.java deleted file mode 100644 index 208d931a9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JavaWSDLMapping.java +++ /dev/null @@ -1,132 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Java WSDL Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The element describes the Java mapping to a known WSDL document.It contains the mapping between package names and XML namespaces, - * WSDL root types and Java artifacts, and the set of mappings for services. - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getPackageMappings <em>Package Mappings</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getJavaXMLTypeMappings <em>Java XML Type Mappings</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getExceptionMappings <em>Exception Mappings</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getInterfaceMappings <em>Interface Mappings</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaWSDLMapping() - * @model - * @generated - * @since 1.0 */ -public interface JavaWSDLMapping extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaWSDLMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Package Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Package Mappings</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Package Mappings</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaWSDLMapping_PackageMappings() - * @model type="org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping" containment="true" required="true" - * @generated - */ - EList getPackageMappings(); - - /** - * Returns the value of the '<em><b>Java XML Type Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Java XML Type Mappings</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Java XML Type Mappings</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaWSDLMapping_JavaXMLTypeMappings() - * @model type="org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping" containment="true" - * @generated - */ - EList getJavaXMLTypeMappings(); - - /** - * Returns the value of the '<em><b>Exception Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Exception Mappings</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Exception Mappings</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaWSDLMapping_ExceptionMappings() - * @model type="org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping" containment="true" - * @generated - */ - EList getExceptionMappings(); - - /** - * Returns the value of the '<em><b>Interface Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Interface Mappings</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Interface Mappings</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaWSDLMapping_InterfaceMappings() - * @model type="org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping" containment="true" - * @generated - */ - EList getInterfaceMappings(); - -} // JavaWSDLMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JavaXMLTypeMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JavaXMLTypeMapping.java deleted file mode 100644 index 157a289a8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JavaXMLTypeMapping.java +++ /dev/null @@ -1,201 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Java XML Type Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The java-xml-type-mapping element contains a class-type that is the fully qualified name of the Java class, QName of the XML root type, the WSDL type scope the QName applies to and the set of variable - * mappings for each public variable within the Java class. - * - * Used in: java-wsdl-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getClassType <em>Class Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getQnameScope <em>Qname Scope</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getAnonymousTypeQname <em>Anonymous Type Qname</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getRootTypeQname <em>Root Type Qname</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getVariableMappings <em>Variable Mappings</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaXMLTypeMapping() - * @model - * @generated - * @since 1.0 */ -public interface JavaXMLTypeMapping extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaXMLTypeMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Class Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Class Type</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The class-type element is the fully qualified class name of a Java class. - * - * Used in: java-xml-type-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Class Type</em>' attribute. - * @see #setClassType(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaXMLTypeMapping_ClassType() - * @model - * @generated - */ - String getClassType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getClassType <em>Class Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Class Type</em>' attribute. - * @see #getClassType() - * @generated - */ - void setClassType(String value); - - /** - * Returns the value of the '<em><b>Qname Scope</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Qname Scope</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The qname-scope elements scopes the reference of a QName to the WSDL element type it applies to. The value of qname-scope may be simpleType, complexType, or element. - * - * Used in: java-xml-type-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Qname Scope</em>' attribute. - * @see #setQnameScope(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaXMLTypeMapping_QnameScope() - * @model - * @generated - */ - String getQnameScope(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getQnameScope <em>Qname Scope</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Qname Scope</em>' attribute. - * @see #getQnameScope() - * @generated - */ - void setQnameScope(String value); - - /** - * Returns the value of the '<em><b>Anonymous Type Qname</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Anonymous Type Qname</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Anonymous Type Qname</em>' attribute. - * @see #setAnonymousTypeQname(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaXMLTypeMapping_AnonymousTypeQname() - * @model - * @generated - */ - String getAnonymousTypeQname(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getAnonymousTypeQname <em>Anonymous Type Qname</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Anonymous Type Qname</em>' attribute. - * @see #getAnonymousTypeQname() - * @generated - */ - void setAnonymousTypeQname(String value); - - /** - * Returns the value of the '<em><b>Root Type Qname</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Root Type Qname</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Root Type Qname</em>' containment reference. - * @see #setRootTypeQname(RootTypeQname) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaXMLTypeMapping_RootTypeQname() - * @model containment="true" required="true" - * @generated - */ - RootTypeQname getRootTypeQname(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getRootTypeQname <em>Root Type Qname</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Root Type Qname</em>' containment reference. - * @see #getRootTypeQname() - * @generated - */ - void setRootTypeQname(RootTypeQname value); - - /** - * Returns the value of the '<em><b>Variable Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Variable Mappings</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Variable Mappings</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getJavaXMLTypeMapping_VariableMappings() - * @model type="org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping" containment="true" - * @generated - */ - EList getVariableMappings(); - -} // JavaXMLTypeMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapFactory.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapFactory.java deleted file mode 100644 index 6039bdee1..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapFactory.java +++ /dev/null @@ -1,241 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EFactory; - -/** - * <!-- begin-user-doc --> - * The <b>Factory</b> for the model. - * It provides a create method for each non-abstract class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage - * @generated - * @since 1.0 */ -public interface JaxrpcmapFactory extends EFactory{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - JaxrpcmapFactory eINSTANCE = new org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapFactoryImpl(); - - /** - * Returns a new object of class '<em>Java WSDL Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Java WSDL Mapping</em>'. - * @generated - */ - JavaWSDLMapping createJavaWSDLMapping(); - - /** - * Returns a new object of class '<em>Package Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Package Mapping</em>'. - * @generated - */ - PackageMapping createPackageMapping(); - - /** - * Returns a new object of class '<em>Java XML Type Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Java XML Type Mapping</em>'. - * @generated - */ - JavaXMLTypeMapping createJavaXMLTypeMapping(); - - /** - * Returns a new object of class '<em>Exception Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Exception Mapping</em>'. - * @generated - */ - ExceptionMapping createExceptionMapping(); - - /** - * Returns a new object of class '<em>Service Interface Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Service Interface Mapping</em>'. - * @generated - */ - ServiceInterfaceMapping createServiceInterfaceMapping(); - - /** - * Returns a new object of class '<em>Service Endpoint Interface Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Service Endpoint Interface Mapping</em>'. - * @generated - */ - ServiceEndpointInterfaceMapping createServiceEndpointInterfaceMapping(); - - /** - * Returns a new object of class '<em>Root Type Qname</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Root Type Qname</em>'. - * @generated - */ - RootTypeQname createRootTypeQname(); - - /** - * Returns a new object of class '<em>Variable Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Variable Mapping</em>'. - * @generated - */ - VariableMapping createVariableMapping(); - - /** - * Returns a new object of class '<em>WSDL Message</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>WSDL Message</em>'. - * @generated - */ - WSDLMessage createWSDLMessage(); - - /** - * Returns a new object of class '<em>Constructor Parameter Order</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Constructor Parameter Order</em>'. - * @generated - */ - ConstructorParameterOrder createConstructorParameterOrder(); - - /** - * Returns a new object of class '<em>Element Name</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Element Name</em>'. - * @generated - */ - ElementName createElementName(); - - /** - * Returns a new object of class '<em>WSDL Service Name</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>WSDL Service Name</em>'. - * @generated - */ - WSDLServiceName createWSDLServiceName(); - - /** - * Returns a new object of class '<em>Port Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Port Mapping</em>'. - * @generated - */ - PortMapping createPortMapping(); - - /** - * Returns a new object of class '<em>WSDL Port Type</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>WSDL Port Type</em>'. - * @generated - */ - WSDLPortType createWSDLPortType(); - - /** - * Returns a new object of class '<em>WSDL Binding</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>WSDL Binding</em>'. - * @generated - */ - WSDLBinding createWSDLBinding(); - - /** - * Returns a new object of class '<em>Service Endpoint Method Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Service Endpoint Method Mapping</em>'. - * @generated - */ - ServiceEndpointMethodMapping createServiceEndpointMethodMapping(); - - /** - * Returns a new object of class '<em>WSDL Operation</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>WSDL Operation</em>'. - * @generated - */ - WSDLOperation createWSDLOperation(); - - /** - * Returns a new object of class '<em>Method Param Parts Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Method Param Parts Mapping</em>'. - * @generated - */ - MethodParamPartsMapping createMethodParamPartsMapping(); - - /** - * Returns a new object of class '<em>WSDL Return Value Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>WSDL Return Value Mapping</em>'. - * @generated - */ - WSDLReturnValueMapping createWSDLReturnValueMapping(); - - /** - * Returns a new object of class '<em>WSDL Message Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>WSDL Message Mapping</em>'. - * @generated - */ - WSDLMessageMapping createWSDLMessageMapping(); - - /** - * Returns a new object of class '<em>WSDL Message Part Name</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>WSDL Message Part Name</em>'. - * @generated - */ - WSDLMessagePartName createWSDLMessagePartName(); - - /** - * Returns a new object of class '<em>Interface Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Interface Mapping</em>'. - * @generated - */ - InterfaceMapping createInterfaceMapping(); - - /** - * Returns the package supported by this factory. - * <!-- begin-user-doc --> - * This method is NOT api, and may change in future releases. - * EMF package classes should be access via their "eINSTANCE" static fields - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - JaxrpcmapPackage getJaxrpcmapPackage(); - -} //JaxrpcmapFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapPackage.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapPackage.java deleted file mode 100644 index 75b709750..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapPackage.java +++ /dev/null @@ -1,2174 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jst.j2ee.common.CommonPackage; - -/** - * <!-- begin-user-doc --> - * The <b>Package</b> for the model. - * It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory - * @model kind="package" - * @generated - * @since 1.0 */ -public interface JaxrpcmapPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "jaxrpcmap";//$NON-NLS-1$ - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "jaxrpcmap.xmi";//$NON-NLS-1$ - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "org.eclipse.jst.j2ee.webservice.jaxrpcmap";//$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - JaxrpcmapPackage eINSTANCE = org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaWSDLMappingImpl <em>Java WSDL Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaWSDLMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getJavaWSDLMapping() - * @generated - */ - int JAVA_WSDL_MAPPING = 0; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_WSDL_MAPPING__ID = 0; - - /** - * The feature id for the '<em><b>Package Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_WSDL_MAPPING__PACKAGE_MAPPINGS = 1; - - /** - * The feature id for the '<em><b>Java XML Type Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_WSDL_MAPPING__JAVA_XML_TYPE_MAPPINGS = 2; - - /** - * The feature id for the '<em><b>Exception Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_WSDL_MAPPING__EXCEPTION_MAPPINGS = 3; - - /** - * The feature id for the '<em><b>Interface Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_WSDL_MAPPING__INTERFACE_MAPPINGS = 4; - - /** - * The number of structural features of the the '<em>Java WSDL Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_WSDL_MAPPING_FEATURE_COUNT = 5; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.PackageMappingImpl <em>Package Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.PackageMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getPackageMapping() - * @generated - */ - int PACKAGE_MAPPING = 1; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PACKAGE_MAPPING__ID = 0; - - /** - * The feature id for the '<em><b>Package Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PACKAGE_MAPPING__PACKAGE_TYPE = 1; - - /** - * The feature id for the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PACKAGE_MAPPING__NAMESPACE_URI = 2; - - /** - * The number of structural features of the the '<em>Package Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PACKAGE_MAPPING_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaXMLTypeMappingImpl <em>Java XML Type Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaXMLTypeMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getJavaXMLTypeMapping() - * @generated - */ - int JAVA_XML_TYPE_MAPPING = 2; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_XML_TYPE_MAPPING__ID = 0; - - /** - * The feature id for the '<em><b>Class Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_XML_TYPE_MAPPING__CLASS_TYPE = 1; - - /** - * The feature id for the '<em><b>Qname Scope</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_XML_TYPE_MAPPING__QNAME_SCOPE = 2; - - /** - * The feature id for the '<em><b>Anonymous Type Qname</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_XML_TYPE_MAPPING__ANONYMOUS_TYPE_QNAME = 3; - - /** - * The feature id for the '<em><b>Root Type Qname</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME = 4; - - /** - * The feature id for the '<em><b>Variable Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_XML_TYPE_MAPPING__VARIABLE_MAPPINGS = 5; - - /** - * The number of structural features of the the '<em>Java XML Type Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int JAVA_XML_TYPE_MAPPING_FEATURE_COUNT = 6; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ExceptionMappingImpl <em>Exception Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ExceptionMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getExceptionMapping() - * @generated - */ - int EXCEPTION_MAPPING = 3; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXCEPTION_MAPPING__ID = 0; - - /** - * The feature id for the '<em><b>Exception Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXCEPTION_MAPPING__EXCEPTION_TYPE = 1; - - /** - * The feature id for the '<em><b>Wsdl Message Part Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXCEPTION_MAPPING__WSDL_MESSAGE_PART_NAME = 2; - - /** - * The feature id for the '<em><b>Wsdl Message</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXCEPTION_MAPPING__WSDL_MESSAGE = 3; - - /** - * The feature id for the '<em><b>Constructor Parameter Order</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER = 4; - - /** - * The number of structural features of the the '<em>Exception Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int EXCEPTION_MAPPING_FEATURE_COUNT = 5; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.InterfaceMappingImpl <em>Interface Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.InterfaceMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getInterfaceMapping() - * @generated - */ - int INTERFACE_MAPPING = 21; - - /** - * The number of structural features of the the '<em>Interface Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INTERFACE_MAPPING_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceInterfaceMappingImpl <em>Service Interface Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceInterfaceMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getServiceInterfaceMapping() - * @generated - */ - int SERVICE_INTERFACE_MAPPING = 4; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_INTERFACE_MAPPING__ID = INTERFACE_MAPPING_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Service Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_INTERFACE_MAPPING__SERVICE_INTERFACE = INTERFACE_MAPPING_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Wsdl Service Name</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME = INTERFACE_MAPPING_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Port Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_INTERFACE_MAPPING__PORT_MAPPINGS = INTERFACE_MAPPING_FEATURE_COUNT + 3; - - /** - * The number of structural features of the the '<em>Service Interface Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_INTERFACE_MAPPING_FEATURE_COUNT = INTERFACE_MAPPING_FEATURE_COUNT + 4; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointInterfaceMappingImpl <em>Service Endpoint Interface Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointInterfaceMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getServiceEndpointInterfaceMapping() - * @generated - */ - int SERVICE_ENDPOINT_INTERFACE_MAPPING = 5; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_INTERFACE_MAPPING__ID = INTERFACE_MAPPING_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Service Endpoint Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_INTERFACE = INTERFACE_MAPPING_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Wsdl Port Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE = INTERFACE_MAPPING_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Wsdl Binding</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING = INTERFACE_MAPPING_FEATURE_COUNT + 3; - - /** - * The feature id for the '<em><b>Service Endpoint Method Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_METHOD_MAPPINGS = INTERFACE_MAPPING_FEATURE_COUNT + 4; - - /** - * The number of structural features of the the '<em>Service Endpoint Interface Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_INTERFACE_MAPPING_FEATURE_COUNT = INTERFACE_MAPPING_FEATURE_COUNT + 5; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.RootTypeQnameImpl <em>Root Type Qname</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.RootTypeQnameImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getRootTypeQname() - * @generated - */ - int ROOT_TYPE_QNAME = 6; - - /** - * The feature id for the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ROOT_TYPE_QNAME__NAMESPACE_URI = CommonPackage.QNAME__NAMESPACE_URI; - - /** - * The feature id for the '<em><b>Local Part</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ROOT_TYPE_QNAME__LOCAL_PART = CommonPackage.QNAME__LOCAL_PART; - - /** - * The feature id for the '<em><b>Combined QName</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ROOT_TYPE_QNAME__COMBINED_QNAME = CommonPackage.QNAME__COMBINED_QNAME; - - /** - * The feature id for the '<em><b>Internal Prefix Or Ns URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ROOT_TYPE_QNAME__INTERNAL_PREFIX_OR_NS_URI = CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI; - - /** - * The number of structural features of the the '<em>Root Type Qname</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ROOT_TYPE_QNAME_FEATURE_COUNT = CommonPackage.QNAME_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.VariableMappingImpl <em>Variable Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.VariableMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getVariableMapping() - * @generated - */ - int VARIABLE_MAPPING = 7; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VARIABLE_MAPPING__ID = 0; - - /** - * The feature id for the '<em><b>Java Variable Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VARIABLE_MAPPING__JAVA_VARIABLE_NAME = 1; - - /** - * The feature id for the '<em><b>Xml Element Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VARIABLE_MAPPING__XML_ELEMENT_NAME = 2; - - /** - * The feature id for the '<em><b>Data Member</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VARIABLE_MAPPING__DATA_MEMBER = 3; - - /** - * The feature id for the '<em><b>Xml Attribute Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VARIABLE_MAPPING__XML_ATTRIBUTE_NAME = 4; - - /** - * The feature id for the '<em><b>Xml Wildcard</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VARIABLE_MAPPING__XML_WILDCARD = 5; - - /** - * The number of structural features of the the '<em>Variable Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VARIABLE_MAPPING_FEATURE_COUNT = 6; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessageImpl <em>WSDL Message</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessageImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getWSDLMessage() - * @generated - */ - int WSDL_MESSAGE = 8; - - /** - * The feature id for the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE__NAMESPACE_URI = CommonPackage.QNAME__NAMESPACE_URI; - - /** - * The feature id for the '<em><b>Local Part</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE__LOCAL_PART = CommonPackage.QNAME__LOCAL_PART; - - /** - * The feature id for the '<em><b>Combined QName</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE__COMBINED_QNAME = CommonPackage.QNAME__COMBINED_QNAME; - - /** - * The feature id for the '<em><b>Internal Prefix Or Ns URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE__INTERNAL_PREFIX_OR_NS_URI = CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI; - - /** - * The number of structural features of the the '<em>WSDL Message</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE_FEATURE_COUNT = CommonPackage.QNAME_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ConstructorParameterOrderImpl <em>Constructor Parameter Order</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ConstructorParameterOrderImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getConstructorParameterOrder() - * @generated - */ - int CONSTRUCTOR_PARAMETER_ORDER = 9; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONSTRUCTOR_PARAMETER_ORDER__ID = 0; - - /** - * The feature id for the '<em><b>Element Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONSTRUCTOR_PARAMETER_ORDER__ELEMENT_NAMES = 1; - - /** - * The number of structural features of the the '<em>Constructor Parameter Order</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int CONSTRUCTOR_PARAMETER_ORDER_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ElementNameImpl <em>Element Name</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ElementNameImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getElementName() - * @generated - */ - int ELEMENT_NAME = 10; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ELEMENT_NAME__ID = 0; - - /** - * The feature id for the '<em><b>Text</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ELEMENT_NAME__TEXT = 1; - - /** - * The number of structural features of the the '<em>Element Name</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ELEMENT_NAME_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLServiceNameImpl <em>WSDL Service Name</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLServiceNameImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getWSDLServiceName() - * @generated - */ - int WSDL_SERVICE_NAME = 11; - - /** - * The feature id for the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_SERVICE_NAME__NAMESPACE_URI = CommonPackage.QNAME__NAMESPACE_URI; - - /** - * The feature id for the '<em><b>Local Part</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_SERVICE_NAME__LOCAL_PART = CommonPackage.QNAME__LOCAL_PART; - - /** - * The feature id for the '<em><b>Combined QName</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_SERVICE_NAME__COMBINED_QNAME = CommonPackage.QNAME__COMBINED_QNAME; - - /** - * The feature id for the '<em><b>Internal Prefix Or Ns URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_SERVICE_NAME__INTERNAL_PREFIX_OR_NS_URI = CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI; - - /** - * The number of structural features of the the '<em>WSDL Service Name</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_SERVICE_NAME_FEATURE_COUNT = CommonPackage.QNAME_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.PortMappingImpl <em>Port Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.PortMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getPortMapping() - * @generated - */ - int PORT_MAPPING = 12; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_MAPPING__ID = 0; - - /** - * The feature id for the '<em><b>Port Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_MAPPING__PORT_NAME = 1; - - /** - * The feature id for the '<em><b>Java Port Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_MAPPING__JAVA_PORT_NAME = 2; - - /** - * The number of structural features of the the '<em>Port Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PORT_MAPPING_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLPortTypeImpl <em>WSDL Port Type</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLPortTypeImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getWSDLPortType() - * @generated - */ - int WSDL_PORT_TYPE = 13; - - /** - * The feature id for the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_PORT_TYPE__NAMESPACE_URI = CommonPackage.QNAME__NAMESPACE_URI; - - /** - * The feature id for the '<em><b>Local Part</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_PORT_TYPE__LOCAL_PART = CommonPackage.QNAME__LOCAL_PART; - - /** - * The feature id for the '<em><b>Combined QName</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_PORT_TYPE__COMBINED_QNAME = CommonPackage.QNAME__COMBINED_QNAME; - - /** - * The feature id for the '<em><b>Internal Prefix Or Ns URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_PORT_TYPE__INTERNAL_PREFIX_OR_NS_URI = CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI; - - /** - * The number of structural features of the the '<em>WSDL Port Type</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_PORT_TYPE_FEATURE_COUNT = CommonPackage.QNAME_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLBindingImpl <em>WSDL Binding</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLBindingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getWSDLBinding() - * @generated - */ - int WSDL_BINDING = 14; - - /** - * The feature id for the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_BINDING__NAMESPACE_URI = CommonPackage.QNAME__NAMESPACE_URI; - - /** - * The feature id for the '<em><b>Local Part</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_BINDING__LOCAL_PART = CommonPackage.QNAME__LOCAL_PART; - - /** - * The feature id for the '<em><b>Combined QName</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_BINDING__COMBINED_QNAME = CommonPackage.QNAME__COMBINED_QNAME; - - /** - * The feature id for the '<em><b>Internal Prefix Or Ns URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_BINDING__INTERNAL_PREFIX_OR_NS_URI = CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI; - - /** - * The number of structural features of the the '<em>WSDL Binding</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_BINDING_FEATURE_COUNT = CommonPackage.QNAME_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointMethodMappingImpl <em>Service Endpoint Method Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointMethodMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getServiceEndpointMethodMapping() - * @generated - */ - int SERVICE_ENDPOINT_METHOD_MAPPING = 15; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_METHOD_MAPPING__ID = 0; - - /** - * The feature id for the '<em><b>Java Method Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_METHOD_MAPPING__JAVA_METHOD_NAME = 1; - - /** - * The feature id for the '<em><b>Wsdl Operation</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_OPERATION = 2; - - /** - * The feature id for the '<em><b>Wrapped Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_METHOD_MAPPING__WRAPPED_ELEMENT = 3; - - /** - * The feature id for the '<em><b>Method Param Parts Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_METHOD_MAPPING__METHOD_PARAM_PARTS_MAPPINGS = 4; - - /** - * The feature id for the '<em><b>Wsdl Return Value Mapping</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING = 5; - - /** - * The number of structural features of the the '<em>Service Endpoint Method Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SERVICE_ENDPOINT_METHOD_MAPPING_FEATURE_COUNT = 6; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLOperationImpl <em>WSDL Operation</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLOperationImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getWSDLOperation() - * @generated - */ - int WSDL_OPERATION = 16; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_OPERATION__ID = 0; - - /** - * The feature id for the '<em><b>Wsdl Operation</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_OPERATION__WSDL_OPERATION = 1; - - /** - * The number of structural features of the the '<em>WSDL Operation</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_OPERATION_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.MethodParamPartsMappingImpl <em>Method Param Parts Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.MethodParamPartsMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getMethodParamPartsMapping() - * @generated - */ - int METHOD_PARAM_PARTS_MAPPING = 17; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_PARAM_PARTS_MAPPING__ID = 0; - - /** - * The feature id for the '<em><b>Param Position</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_PARAM_PARTS_MAPPING__PARAM_POSITION = 1; - - /** - * The feature id for the '<em><b>Param Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_PARAM_PARTS_MAPPING__PARAM_TYPE = 2; - - /** - * The feature id for the '<em><b>Wsdl Message Mapping</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING = 3; - - /** - * The number of structural features of the the '<em>Method Param Parts Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int METHOD_PARAM_PARTS_MAPPING_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLReturnValueMappingImpl <em>WSDL Return Value Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLReturnValueMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getWSDLReturnValueMapping() - * @generated - */ - int WSDL_RETURN_VALUE_MAPPING = 18; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_RETURN_VALUE_MAPPING__ID = 0; - - /** - * The feature id for the '<em><b>Method Return Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_RETURN_VALUE_MAPPING__METHOD_RETURN_VALUE = 1; - - /** - * The feature id for the '<em><b>Wsdl Message Part Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE_PART_NAME = 2; - - /** - * The feature id for the '<em><b>Wsdl Message</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE = 3; - - /** - * The number of structural features of the the '<em>WSDL Return Value Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_RETURN_VALUE_MAPPING_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessageMappingImpl <em>WSDL Message Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessageMappingImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getWSDLMessageMapping() - * @generated - */ - int WSDL_MESSAGE_MAPPING = 19; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE_MAPPING__ID = 0; - - /** - * The feature id for the '<em><b>Wsdl Message Part Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE_MAPPING__WSDL_MESSAGE_PART_NAME = 1; - - /** - * The feature id for the '<em><b>Parameter Mode</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE_MAPPING__PARAMETER_MODE = 2; - - /** - * The feature id for the '<em><b>Soap Header</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE_MAPPING__SOAP_HEADER = 3; - - /** - * The feature id for the '<em><b>Wsdl Message</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE_MAPPING__WSDL_MESSAGE = 4; - - /** - * The number of structural features of the the '<em>WSDL Message Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE_MAPPING_FEATURE_COUNT = 5; - - /** - * The meta object id for the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessagePartNameImpl <em>WSDL Message Part Name</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessagePartNameImpl - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapPackageImpl#getWSDLMessagePartName() - * @generated - */ - int WSDL_MESSAGE_PART_NAME = 20; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE_PART_NAME__ID = 0; - - /** - * The feature id for the '<em><b>Wsdl Message Part Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE_PART_NAME__WSDL_MESSAGE_PART_NAME = 1; - - /** - * The number of structural features of the the '<em>WSDL Message Part Name</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WSDL_MESSAGE_PART_NAME_FEATURE_COUNT = 2; - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping <em>Java WSDL Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Java WSDL Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping - * @generated - */ - EClass getJavaWSDLMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getId() - * @see #getJavaWSDLMapping() - * @generated - */ - EAttribute getJavaWSDLMapping_Id(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getPackageMappings <em>Package Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Package Mappings</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getPackageMappings() - * @see #getJavaWSDLMapping() - * @generated - */ - EReference getJavaWSDLMapping_PackageMappings(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getJavaXMLTypeMappings <em>Java XML Type Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Java XML Type Mappings</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getJavaXMLTypeMappings() - * @see #getJavaWSDLMapping() - * @generated - */ - EReference getJavaWSDLMapping_JavaXMLTypeMappings(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getExceptionMappings <em>Exception Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Exception Mappings</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getExceptionMappings() - * @see #getJavaWSDLMapping() - * @generated - */ - EReference getJavaWSDLMapping_ExceptionMappings(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getInterfaceMappings <em>Interface Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Interface Mappings</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping#getInterfaceMappings() - * @see #getJavaWSDLMapping() - * @generated - */ - EReference getJavaWSDLMapping_InterfaceMappings(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping <em>Package Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Package Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping - * @generated - */ - EClass getPackageMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getId() - * @see #getPackageMapping() - * @generated - */ - EAttribute getPackageMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getPackageType <em>Package Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Package Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getPackageType() - * @see #getPackageMapping() - * @generated - */ - EAttribute getPackageMapping_PackageType(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getNamespaceURI <em>Namespace URI</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Namespace URI</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getNamespaceURI() - * @see #getPackageMapping() - * @generated - */ - EAttribute getPackageMapping_NamespaceURI(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping <em>Java XML Type Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Java XML Type Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping - * @generated - */ - EClass getJavaXMLTypeMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getId() - * @see #getJavaXMLTypeMapping() - * @generated - */ - EAttribute getJavaXMLTypeMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getClassType <em>Class Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Class Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getClassType() - * @see #getJavaXMLTypeMapping() - * @generated - */ - EAttribute getJavaXMLTypeMapping_ClassType(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getQnameScope <em>Qname Scope</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Qname Scope</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getQnameScope() - * @see #getJavaXMLTypeMapping() - * @generated - */ - EAttribute getJavaXMLTypeMapping_QnameScope(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getAnonymousTypeQname <em>Anonymous Type Qname</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Anonymous Type Qname</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getAnonymousTypeQname() - * @see #getJavaXMLTypeMapping() - * @generated - */ - EAttribute getJavaXMLTypeMapping_AnonymousTypeQname(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getRootTypeQname <em>Root Type Qname</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Root Type Qname</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getRootTypeQname() - * @see #getJavaXMLTypeMapping() - * @generated - */ - EReference getJavaXMLTypeMapping_RootTypeQname(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getVariableMappings <em>Variable Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Variable Mappings</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping#getVariableMappings() - * @see #getJavaXMLTypeMapping() - * @generated - */ - EReference getJavaXMLTypeMapping_VariableMappings(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping <em>Exception Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Exception Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping - * @generated - */ - EClass getExceptionMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getId() - * @see #getExceptionMapping() - * @generated - */ - EAttribute getExceptionMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getExceptionType <em>Exception Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Exception Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getExceptionType() - * @see #getExceptionMapping() - * @generated - */ - EAttribute getExceptionMapping_ExceptionType(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Wsdl Message Part Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getWsdlMessagePartName() - * @see #getExceptionMapping() - * @generated - */ - EAttribute getExceptionMapping_WsdlMessagePartName(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getWsdlMessage <em>Wsdl Message</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Wsdl Message</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getWsdlMessage() - * @see #getExceptionMapping() - * @generated - */ - EReference getExceptionMapping_WsdlMessage(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getConstructorParameterOrder <em>Constructor Parameter Order</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Constructor Parameter Order</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping#getConstructorParameterOrder() - * @see #getExceptionMapping() - * @generated - */ - EReference getExceptionMapping_ConstructorParameterOrder(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping <em>Service Interface Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Service Interface Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping - * @generated - */ - EClass getServiceInterfaceMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getId() - * @see #getServiceInterfaceMapping() - * @generated - */ - EAttribute getServiceInterfaceMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getServiceInterface <em>Service Interface</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Service Interface</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getServiceInterface() - * @see #getServiceInterfaceMapping() - * @generated - */ - EAttribute getServiceInterfaceMapping_ServiceInterface(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getWsdlServiceName <em>Wsdl Service Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Wsdl Service Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getWsdlServiceName() - * @see #getServiceInterfaceMapping() - * @generated - */ - EReference getServiceInterfaceMapping_WsdlServiceName(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getPortMappings <em>Port Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Port Mappings</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getPortMappings() - * @see #getServiceInterfaceMapping() - * @generated - */ - EReference getServiceInterfaceMapping_PortMappings(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping <em>Service Endpoint Interface Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Service Endpoint Interface Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping - * @generated - */ - EClass getServiceEndpointInterfaceMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getId() - * @see #getServiceEndpointInterfaceMapping() - * @generated - */ - EAttribute getServiceEndpointInterfaceMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getServiceEndpointInterface <em>Service Endpoint Interface</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Service Endpoint Interface</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getServiceEndpointInterface() - * @see #getServiceEndpointInterfaceMapping() - * @generated - */ - EAttribute getServiceEndpointInterfaceMapping_ServiceEndpointInterface(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getWsdlPortType <em>Wsdl Port Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Wsdl Port Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getWsdlPortType() - * @see #getServiceEndpointInterfaceMapping() - * @generated - */ - EReference getServiceEndpointInterfaceMapping_WsdlPortType(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getWsdlBinding <em>Wsdl Binding</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Wsdl Binding</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getWsdlBinding() - * @see #getServiceEndpointInterfaceMapping() - * @generated - */ - EReference getServiceEndpointInterfaceMapping_WsdlBinding(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getServiceEndpointMethodMappings <em>Service Endpoint Method Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Service Endpoint Method Mappings</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getServiceEndpointMethodMappings() - * @see #getServiceEndpointInterfaceMapping() - * @generated - */ - EReference getServiceEndpointInterfaceMapping_ServiceEndpointMethodMappings(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname <em>Root Type Qname</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Root Type Qname</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname - * @generated - */ - EClass getRootTypeQname(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping <em>Variable Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Variable Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping - * @generated - */ - EClass getVariableMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getId() - * @see #getVariableMapping() - * @generated - */ - EAttribute getVariableMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getJavaVariableName <em>Java Variable Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Java Variable Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getJavaVariableName() - * @see #getVariableMapping() - * @generated - */ - EAttribute getVariableMapping_JavaVariableName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getXmlElementName <em>Xml Element Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Xml Element Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getXmlElementName() - * @see #getVariableMapping() - * @generated - */ - EAttribute getVariableMapping_XmlElementName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isDataMember <em>Data Member</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Data Member</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isDataMember() - * @see #getVariableMapping() - * @generated - */ - EAttribute getVariableMapping_DataMember(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getXmlAttributeName <em>Xml Attribute Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Xml Attribute Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getXmlAttributeName() - * @see #getVariableMapping() - * @generated - */ - EAttribute getVariableMapping_XmlAttributeName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isXmlWildcard <em>Xml Wildcard</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Xml Wildcard</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isXmlWildcard() - * @see #getVariableMapping() - * @generated - */ - EAttribute getVariableMapping_XmlWildcard(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage <em>WSDL Message</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>WSDL Message</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage - * @generated - */ - EClass getWSDLMessage(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder <em>Constructor Parameter Order</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Constructor Parameter Order</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder - * @generated - */ - EClass getConstructorParameterOrder(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder#getId() - * @see #getConstructorParameterOrder() - * @generated - */ - EAttribute getConstructorParameterOrder_Id(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder#getElementNames <em>Element Names</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Element Names</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder#getElementNames() - * @see #getConstructorParameterOrder() - * @generated - */ - EReference getConstructorParameterOrder_ElementNames(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName <em>Element Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Element Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName - * @generated - */ - EClass getElementName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName#getId() - * @see #getElementName() - * @generated - */ - EAttribute getElementName_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName#getText <em>Text</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Text</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName#getText() - * @see #getElementName() - * @generated - */ - EAttribute getElementName_Text(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName <em>WSDL Service Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>WSDL Service Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName - * @generated - */ - EClass getWSDLServiceName(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping <em>Port Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Port Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping - * @generated - */ - EClass getPortMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getId() - * @see #getPortMapping() - * @generated - */ - EAttribute getPortMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getPortName <em>Port Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Port Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getPortName() - * @see #getPortMapping() - * @generated - */ - EAttribute getPortMapping_PortName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getJavaPortName <em>Java Port Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Java Port Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getJavaPortName() - * @see #getPortMapping() - * @generated - */ - EAttribute getPortMapping_JavaPortName(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType <em>WSDL Port Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>WSDL Port Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType - * @generated - */ - EClass getWSDLPortType(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding <em>WSDL Binding</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>WSDL Binding</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding - * @generated - */ - EClass getWSDLBinding(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping <em>Service Endpoint Method Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Service Endpoint Method Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping - * @generated - */ - EClass getServiceEndpointMethodMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getId() - * @see #getServiceEndpointMethodMapping() - * @generated - */ - EAttribute getServiceEndpointMethodMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getJavaMethodName <em>Java Method Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Java Method Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getJavaMethodName() - * @see #getServiceEndpointMethodMapping() - * @generated - */ - EAttribute getServiceEndpointMethodMapping_JavaMethodName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getWsdlOperation <em>Wsdl Operation</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Wsdl Operation</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getWsdlOperation() - * @see #getServiceEndpointMethodMapping() - * @generated - */ - EAttribute getServiceEndpointMethodMapping_WsdlOperation(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#isWrappedElement <em>Wrapped Element</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Wrapped Element</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#isWrappedElement() - * @see #getServiceEndpointMethodMapping() - * @generated - */ - EAttribute getServiceEndpointMethodMapping_WrappedElement(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getMethodParamPartsMappings <em>Method Param Parts Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Method Param Parts Mappings</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getMethodParamPartsMappings() - * @see #getServiceEndpointMethodMapping() - * @generated - */ - EReference getServiceEndpointMethodMapping_MethodParamPartsMappings(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getWsdlReturnValueMapping <em>Wsdl Return Value Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Wsdl Return Value Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getWsdlReturnValueMapping() - * @see #getServiceEndpointMethodMapping() - * @generated - */ - EReference getServiceEndpointMethodMapping_WsdlReturnValueMapping(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation <em>WSDL Operation</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>WSDL Operation</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation - * @generated - */ - EClass getWSDLOperation(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation#getId() - * @see #getWSDLOperation() - * @generated - */ - EAttribute getWSDLOperation_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation#getWsdlOperation <em>Wsdl Operation</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Wsdl Operation</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation#getWsdlOperation() - * @see #getWSDLOperation() - * @generated - */ - EAttribute getWSDLOperation_WsdlOperation(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping <em>Method Param Parts Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Method Param Parts Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping - * @generated - */ - EClass getMethodParamPartsMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getId() - * @see #getMethodParamPartsMapping() - * @generated - */ - EAttribute getMethodParamPartsMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getParamPosition <em>Param Position</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Param Position</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getParamPosition() - * @see #getMethodParamPartsMapping() - * @generated - */ - EAttribute getMethodParamPartsMapping_ParamPosition(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getParamType <em>Param Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Param Type</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getParamType() - * @see #getMethodParamPartsMapping() - * @generated - */ - EAttribute getMethodParamPartsMapping_ParamType(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getWsdlMessageMapping <em>Wsdl Message Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Wsdl Message Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getWsdlMessageMapping() - * @see #getMethodParamPartsMapping() - * @generated - */ - EReference getMethodParamPartsMapping_WsdlMessageMapping(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping <em>WSDL Return Value Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>WSDL Return Value Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping - * @generated - */ - EClass getWSDLReturnValueMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getId() - * @see #getWSDLReturnValueMapping() - * @generated - */ - EAttribute getWSDLReturnValueMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getMethodReturnValue <em>Method Return Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Method Return Value</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getMethodReturnValue() - * @see #getWSDLReturnValueMapping() - * @generated - */ - EAttribute getWSDLReturnValueMapping_MethodReturnValue(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Wsdl Message Part Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getWsdlMessagePartName() - * @see #getWSDLReturnValueMapping() - * @generated - */ - EAttribute getWSDLReturnValueMapping_WsdlMessagePartName(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getWsdlMessage <em>Wsdl Message</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Wsdl Message</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getWsdlMessage() - * @see #getWSDLReturnValueMapping() - * @generated - */ - EReference getWSDLReturnValueMapping_WsdlMessage(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping <em>WSDL Message Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>WSDL Message Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping - * @generated - */ - EClass getWSDLMessageMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getId() - * @see #getWSDLMessageMapping() - * @generated - */ - EAttribute getWSDLMessageMapping_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Wsdl Message Part Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getWsdlMessagePartName() - * @see #getWSDLMessageMapping() - * @generated - */ - EAttribute getWSDLMessageMapping_WsdlMessagePartName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getParameterMode <em>Parameter Mode</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Parameter Mode</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getParameterMode() - * @see #getWSDLMessageMapping() - * @generated - */ - EAttribute getWSDLMessageMapping_ParameterMode(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getWsdlMessage <em>Wsdl Message</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Wsdl Message</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getWsdlMessage() - * @see #getWSDLMessageMapping() - * @generated - */ - EReference getWSDLMessageMapping_WsdlMessage(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#isSoapHeader <em>Soap Header</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Soap Header</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#isSoapHeader() - * @see #getWSDLMessageMapping() - * @generated - */ - EAttribute getWSDLMessageMapping_SoapHeader(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName <em>WSDL Message Part Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>WSDL Message Part Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName - * @generated - */ - EClass getWSDLMessagePartName(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName#getId() - * @see #getWSDLMessagePartName() - * @generated - */ - EAttribute getWSDLMessagePartName_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Wsdl Message Part Name</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName#getWsdlMessagePartName() - * @see #getWSDLMessagePartName() - * @generated - */ - EAttribute getWSDLMessagePartName_WsdlMessagePartName(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping <em>Interface Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Interface Mapping</em>'. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping - * @generated - */ - EClass getInterfaceMapping(); - - /** - * Returns the factory that creates the instances of the model. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the factory that creates the instances of the model. - * @generated - */ - JaxrpcmapFactory getJaxrpcmapFactory(); - -} //JaxrpcmapPackage diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapResource.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapResource.java deleted file mode 100644 index e907d86eb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapResource.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.jst.j2ee.internal.common.XMLResource; - -public interface JaxrpcmapResource extends XMLResource -{ - public static final int JAXRPC_MAP_TYPE = 8; - - JavaWSDLMapping getJavaWSDLMapping(); - public boolean isJaxrpcmap1_0(); - public boolean isJaxrpcmap1_1(); - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapResourceFactory.java deleted file mode 100644 index 7a71c79d8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/JaxrpcmapResourceFactory.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver; -import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JaxrpcmapResourceImpl; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.RendererFactory; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResource; -import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory; - - -public class JaxrpcmapResourceFactory extends TranslatorResourceFactory -{ - /** - * JaxrpcmapResourceFactory constructor comment. - */ - public JaxrpcmapResourceFactory(RendererFactory aRendererFactory) - { - super(aRendererFactory); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceFactory#createResource(org.eclipse.emf.common.util.URI, com.ibm.etools.emf2xml.Renderer) - */ - protected TranslatorResource createResource(URI uri, Renderer aRenderer) { - return new JaxrpcmapResourceImpl(uri, aRenderer); - } - - /** - * Register myself with the Resource.Factory.Registry - */ - public static void registerWith(RendererFactory aRendererFactory) { - //Do nothing since the jaxrpc mapping file has no standard name. - //J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(WebServiceConstants.WEBSERVICE_DD_SHORT_NAME, new WsddResourceFactory(aRendererFactory)); - } - - /** - * register using the default renderer factory. - * @see #registerWith(RendererFactory) - */ - public static void register() { - //Do nothing since the jaxrpc mapping file has no standard name. - //registerWith(EMF2DOMRendererFactory.INSTANCE); - } - - /** - * Method registerDtds. - */ - public static void registerDtds() - { - J2EEXmlDtDEntityResolver.registerDtD(WebServiceConstants.JAXRPCMAP_SYSTEMID, "j2ee_jaxrpc_mapping_1_0.dtd");//$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(WebServiceConstants.JAXRPCMAP_SCHEMA_LOC, "j2ee_jaxrpc_mapping_1_1.xsd"); //$NON-NLS-1$ - J2EEXmlDtDEntityResolver.registerDtD(WebServiceConstants.JAXRPCMAP_SCHEMA_LOC_SUN, "j2ee_jaxrpc_mapping_1_1.xsd"); //$NON-NLS-1$ - } - -} diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/MethodParamPartsMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/MethodParamPartsMapping.java deleted file mode 100644 index c144730c7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/MethodParamPartsMapping.java +++ /dev/null @@ -1,156 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Method Param Parts Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The method-param-parts-mapping element defines the mapping between a Java method parameters and a wsdl-message. - * - * Used in: service-endpoint-method-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getParamPosition <em>Param Position</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getParamType <em>Param Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getWsdlMessageMapping <em>Wsdl Message Mapping</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getMethodParamPartsMapping() - * @model - * @generated - * @since 1.0 */ -public interface MethodParamPartsMapping extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getMethodParamPartsMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Param Position</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Param Position</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The param-position element defines the position of a parameter within a Java method. It must be an integer starting from 0. - * - * Used in: method-param-parts-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Param Position</em>' attribute. - * @see #setParamPosition(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getMethodParamPartsMapping_ParamPosition() - * @model - * @generated - */ - String getParamPosition(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getParamPosition <em>Param Position</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Param Position</em>' attribute. - * @see #getParamPosition() - * @generated - */ - void setParamPosition(String value); - - /** - * Returns the value of the '<em><b>Param Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Param Type</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The param-type element defines the Java type of a parameter within a Java method. It must be defined by a fully qualified name of a class. - * - * Used in: method-param-parts-mapping - * - * <!-- end-model-doc --> - * @return the value of the '<em>Param Type</em>' attribute. - * @see #setParamType(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getMethodParamPartsMapping_ParamType() - * @model - * @generated - */ - String getParamType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getParamType <em>Param Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Param Type</em>' attribute. - * @see #getParamType() - * @generated - */ - void setParamType(String value); - - /** - * Returns the value of the '<em><b>Wsdl Message Mapping</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Message Mapping</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Message Mapping</em>' containment reference. - * @see #setWsdlMessageMapping(WSDLMessageMapping) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getMethodParamPartsMapping_WsdlMessageMapping() - * @model containment="true" required="true" - * @generated - */ - WSDLMessageMapping getWsdlMessageMapping(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping#getWsdlMessageMapping <em>Wsdl Message Mapping</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Message Mapping</em>' containment reference. - * @see #getWsdlMessageMapping() - * @generated - */ - void setWsdlMessageMapping(WSDLMessageMapping value); - -} // MethodParamPartsMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/PackageMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/PackageMapping.java deleted file mode 100644 index b1239f6b4..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/PackageMapping.java +++ /dev/null @@ -1,123 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Package Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The package-mapping indicates the mapping between java-package-name and XML namespace in the WSDL document. - * - * Used in: java-wsdl-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getPackageType <em>Package Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getNamespaceURI <em>Namespace URI</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getPackageMapping() - * @model - * @generated - * @since 1.0 */ -public interface PackageMapping extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getPackageMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Package Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Package Type</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The package-type indicates the Java package name. It must be a fully qualified name. - * - * Used in: package-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Package Type</em>' attribute. - * @see #setPackageType(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getPackageMapping_PackageType() - * @model - * @generated - */ - String getPackageType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getPackageType <em>Package Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Package Type</em>' attribute. - * @see #getPackageType() - * @generated - */ - void setPackageType(String value); - - /** - * Returns the value of the '<em><b>Namespace URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Namespace URI</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Namespace URI</em>' attribute. - * @see #setNamespaceURI(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getPackageMapping_NamespaceURI() - * @model - * @generated - */ - String getNamespaceURI(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping#getNamespaceURI <em>Namespace URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Namespace URI</em>' attribute. - * @see #getNamespaceURI() - * @generated - */ - void setNamespaceURI(String value); - -} // PackageMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/PortMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/PortMapping.java deleted file mode 100644 index 7941c0591..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/PortMapping.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Port Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The port-mapping defines the mapping of the WSDL port name attribute to the Java name used to generate the Generated Service Interface method get<java-name>. - * - * Used in: service-interface-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getPortName <em>Port Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getJavaPortName <em>Java Port Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getPortMapping() - * @model - * @generated - * @since 1.0 */ -public interface PortMapping extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getPortMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Port Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Port Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The port-name is the attribute value of a name attribute of a WSDL port element. - * - * Used in: port-mapping - * - * <!-- end-model-doc --> - * @return the value of the '<em>Port Name</em>' attribute. - * @see #setPortName(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getPortMapping_PortName() - * @model - * @generated - */ - String getPortName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getPortName <em>Port Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Port Name</em>' attribute. - * @see #getPortName() - * @generated - */ - void setPortName(String value); - - /** - * Returns the value of the '<em><b>Java Port Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Java Port Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The java-port-name element is the string to use as the port name in Java. It is used in generating the Generated Service Interface method - * get<java-port-name>. - * - * Used in: port-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Java Port Name</em>' attribute. - * @see #setJavaPortName(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getPortMapping_JavaPortName() - * @model - * @generated - */ - String getJavaPortName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping#getJavaPortName <em>Java Port Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Java Port Name</em>' attribute. - * @see #getJavaPortName() - * @generated - */ - void setJavaPortName(String value); - -} // PortMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/RootTypeQname.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/RootTypeQname.java deleted file mode 100644 index f79e3ff88..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/RootTypeQname.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.jst.j2ee.common.QName; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Root Type Qname</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The root-type-qname identifies the WSDL QName of an XML type. - * - * Used in: java-xml-type-mapping - * <!-- end-model-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getRootTypeQname() - * @model - * @generated - * @since 1.0 */ -public interface RootTypeQname extends QName{ -// RootTypeQname -} diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ServiceEndpointInterfaceMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ServiceEndpointInterfaceMapping.java deleted file mode 100644 index a7ad0c810..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ServiceEndpointInterfaceMapping.java +++ /dev/null @@ -1,170 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Service Endpoint Interface Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The service-endpoint-interface-mapping defines a tuple - * to specify Service Endpoint Interfaces to WSDL port types and WSDL bindings. - * - * An interface may be mapped to a port-type and binding multiple times. This happens rarely. - * - * Used in: java-wsdl-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getServiceEndpointInterface <em>Service Endpoint Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getWsdlPortType <em>Wsdl Port Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getWsdlBinding <em>Wsdl Binding</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getServiceEndpointMethodMappings <em>Service Endpoint Method Mappings</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointInterfaceMapping() - * @model - * @generated - * @since 1.0 */ -public interface ServiceEndpointInterfaceMapping extends InterfaceMapping{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointInterfaceMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Service Endpoint Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Endpoint Interface</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The service-endpoint-interface element defines the Java type for the endpoint interface. The name must be a fully qualified class name. - * - * Used in: service-endpoint-interface-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Service Endpoint Interface</em>' attribute. - * @see #setServiceEndpointInterface(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointInterfaceMapping_ServiceEndpointInterface() - * @model - * @generated - */ - String getServiceEndpointInterface(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getServiceEndpointInterface <em>Service Endpoint Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Service Endpoint Interface</em>' attribute. - * @see #getServiceEndpointInterface() - * @generated - */ - void setServiceEndpointInterface(String value); - - /** - * Returns the value of the '<em><b>Wsdl Port Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Port Type</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Port Type</em>' containment reference. - * @see #setWsdlPortType(WSDLPortType) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointInterfaceMapping_WsdlPortType() - * @model containment="true" required="true" - * @generated - */ - WSDLPortType getWsdlPortType(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getWsdlPortType <em>Wsdl Port Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Port Type</em>' containment reference. - * @see #getWsdlPortType() - * @generated - */ - void setWsdlPortType(WSDLPortType value); - - /** - * Returns the value of the '<em><b>Wsdl Binding</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Binding</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Binding</em>' containment reference. - * @see #setWsdlBinding(WSDLBinding) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointInterfaceMapping_WsdlBinding() - * @model containment="true" required="true" - * @generated - */ - WSDLBinding getWsdlBinding(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping#getWsdlBinding <em>Wsdl Binding</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Binding</em>' containment reference. - * @see #getWsdlBinding() - * @generated - */ - void setWsdlBinding(WSDLBinding value); - - /** - * Returns the value of the '<em><b>Service Endpoint Method Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Endpoint Method Mappings</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Service Endpoint Method Mappings</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointInterfaceMapping_ServiceEndpointMethodMappings() - * @model type="org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping" containment="true" - * @generated - */ - EList getServiceEndpointMethodMappings(); - -} // ServiceEndpointInterfaceMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ServiceEndpointMethodMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ServiceEndpointMethodMapping.java deleted file mode 100644 index 3a559435d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ServiceEndpointMethodMapping.java +++ /dev/null @@ -1,230 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Service Endpoint Method Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The service-endpoint-method-mapping element defines the mapping of Java methods to operations (which are not uniquely qualified by qnames). - * - * The wsdl-operation should be interpreted with respect to the portType and binding in which this definition is embedded within. See the definitions for service-endpoint-interface-mapping and - * service-interface-mapping to acquire the proper context. The wrapped-element indicator should only be specified when a WSDL message wraps an element type. The wsdl-return-value-mapping is not specified for one-way operations. - * - * Used in: service-endpoint-interface-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getJavaMethodName <em>Java Method Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getWsdlOperation <em>Wsdl Operation</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#isWrappedElement <em>Wrapped Element</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getMethodParamPartsMappings <em>Method Param Parts Mappings</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getWsdlReturnValueMapping <em>Wsdl Return Value Mapping</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointMethodMapping() - * @model - * @generated - * @since 1.0 */ -public interface ServiceEndpointMethodMapping extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointMethodMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Java Method Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Java Method Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The java-method-name element defines the name of a Java method within an interface. - * - * Used in: service-endpoint-method-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Java Method Name</em>' attribute. - * @see #setJavaMethodName(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointMethodMapping_JavaMethodName() - * @model - * @generated - */ - String getJavaMethodName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getJavaMethodName <em>Java Method Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Java Method Name</em>' attribute. - * @see #getJavaMethodName() - * @generated - */ - void setJavaMethodName(String value); - - /** - * Returns the value of the '<em><b>Wsdl Operation</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Operation</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The wsdl-operation element defines an operation within a WSDL document. It must be interpreted with respect to a port type. - * - * Used in: service-endpoint-method-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Wsdl Operation</em>' attribute. - * @see #setWsdlOperation(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointMethodMapping_WsdlOperation() - * @model - * @generated - */ - String getWsdlOperation(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getWsdlOperation <em>Wsdl Operation</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Operation</em>' attribute. - * @see #getWsdlOperation() - * @generated - */ - void setWsdlOperation(String value); - - /** - * Returns the value of the '<em><b>Wrapped Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wrapped Element</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wrapped Element</em>' attribute. - * @see #isSetWrappedElement() - * @see #unsetWrappedElement() - * @see #setWrappedElement(boolean) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointMethodMapping_WrappedElement() - * @model unsettable="true" - * @generated - */ - boolean isWrappedElement(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#isWrappedElement <em>Wrapped Element</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wrapped Element</em>' attribute. - * @see #isSetWrappedElement() - * @see #unsetWrappedElement() - * @see #isWrappedElement() - * @generated - */ - void setWrappedElement(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#isWrappedElement <em>Wrapped Element</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetWrappedElement() - * @see #isWrappedElement() - * @see #setWrappedElement(boolean) - * @generated - */ - void unsetWrappedElement(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#isWrappedElement <em>Wrapped Element</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Wrapped Element</em>' attribute is set. - * @see #unsetWrappedElement() - * @see #isWrappedElement() - * @see #setWrappedElement(boolean) - * @generated - */ - boolean isSetWrappedElement(); - - /** - * Returns the value of the '<em><b>Method Param Parts Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Method Param Parts Mappings</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Method Param Parts Mappings</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointMethodMapping_MethodParamPartsMappings() - * @model type="org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping" containment="true" - * @generated - */ - EList getMethodParamPartsMappings(); - - /** - * Returns the value of the '<em><b>Wsdl Return Value Mapping</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Return Value Mapping</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Return Value Mapping</em>' containment reference. - * @see #setWsdlReturnValueMapping(WSDLReturnValueMapping) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceEndpointMethodMapping_WsdlReturnValueMapping() - * @model containment="true" - * @generated - */ - WSDLReturnValueMapping getWsdlReturnValueMapping(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping#getWsdlReturnValueMapping <em>Wsdl Return Value Mapping</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Return Value Mapping</em>' containment reference. - * @see #getWsdlReturnValueMapping() - * @generated - */ - void setWsdlReturnValueMapping(WSDLReturnValueMapping value); - -} // ServiceEndpointMethodMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ServiceInterfaceMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ServiceInterfaceMapping.java deleted file mode 100644 index dfa97dcfb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/ServiceInterfaceMapping.java +++ /dev/null @@ -1,143 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Service Interface Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The service-interface-mapping element defines how a Java type for the service interface maps to a WSDL service. - * - * Used in: java-wsdl-mapping - * - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getServiceInterface <em>Service Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getWsdlServiceName <em>Wsdl Service Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getPortMappings <em>Port Mappings</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceInterfaceMapping() - * @model - * @generated - * @since 1.0 */ -public interface ServiceInterfaceMapping extends InterfaceMapping{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceInterfaceMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Service Interface</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Service Interface</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The service-interface element defines the Java type for the service. For static services, it is javax.xml.rpc.Service interface. For generated service, it would be the generated interface name. - * - * The name must be a fully qualified class name. - * - * Used in: service-interface-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Service Interface</em>' attribute. - * @see #setServiceInterface(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceInterfaceMapping_ServiceInterface() - * @model - * @generated - */ - String getServiceInterface(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getServiceInterface <em>Service Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Service Interface</em>' attribute. - * @see #getServiceInterface() - * @generated - */ - void setServiceInterface(String value); - - /** - * Returns the value of the '<em><b>Wsdl Service Name</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Service Name</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Service Name</em>' containment reference. - * @see #setWsdlServiceName(WSDLServiceName) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceInterfaceMapping_WsdlServiceName() - * @model containment="true" required="true" - * @generated - */ - WSDLServiceName getWsdlServiceName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping#getWsdlServiceName <em>Wsdl Service Name</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Service Name</em>' containment reference. - * @see #getWsdlServiceName() - * @generated - */ - void setWsdlServiceName(WSDLServiceName value); - - /** - * Returns the value of the '<em><b>Port Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Port Mappings</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Port Mappings</em>' containment reference list. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getServiceInterfaceMapping_PortMappings() - * @model type="org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping" containment="true" - * @generated - */ - EList getPortMappings(); - -} // ServiceInterfaceMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/VariableMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/VariableMapping.java deleted file mode 100644 index 65cc57732..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/VariableMapping.java +++ /dev/null @@ -1,265 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Variable Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The variable-mapping element defines the correlation between a Java class data member or JavaBeans property to an XML element name of an XML root type. If the data-member element is present, the Java variable name is a public data member. If data-member - * is not present, the Java variable name is a JavaBeans property. - * - * Used in: java-xml-type-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getJavaVariableName <em>Java Variable Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getXmlElementName <em>Xml Element Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isDataMember <em>Data Member</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getXmlAttributeName <em>Xml Attribute Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isXmlWildcard <em>Xml Wildcard</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getVariableMapping() - * @model - * @generated - * @since 1.0 */ -public interface VariableMapping extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getVariableMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Java Variable Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Java Variable Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The java-variable-name defines the name of a public data member or JavaBeans property within a Java class. - * - * Used in: variable-mapping - * - * <!-- end-model-doc --> - * @return the value of the '<em>Java Variable Name</em>' attribute. - * @see #setJavaVariableName(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getVariableMapping_JavaVariableName() - * @model - * @generated - */ - String getJavaVariableName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getJavaVariableName <em>Java Variable Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Java Variable Name</em>' attribute. - * @see #getJavaVariableName() - * @generated - */ - void setJavaVariableName(String value); - - /** - * Returns the value of the '<em><b>Xml Element Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Xml Element Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The xml-element-name element defines name attribute value of a WSDL element within a root type. - * - * Used in: variable-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Xml Element Name</em>' attribute. - * @see #setXmlElementName(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getVariableMapping_XmlElementName() - * @model - * @generated - */ - String getXmlElementName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getXmlElementName <em>Xml Element Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Xml Element Name</em>' attribute. - * @see #getXmlElementName() - * @generated - */ - void setXmlElementName(String value); - - /** - * Returns the value of the '<em><b>Data Member</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Data Member</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Data Member</em>' attribute. - * @see #isSetDataMember() - * @see #unsetDataMember() - * @see #setDataMember(boolean) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getVariableMapping_DataMember() - * @model unsettable="true" - * @generated - */ - boolean isDataMember(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isDataMember <em>Data Member</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Data Member</em>' attribute. - * @see #isSetDataMember() - * @see #unsetDataMember() - * @see #isDataMember() - * @generated - */ - void setDataMember(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isDataMember <em>Data Member</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetDataMember() - * @see #isDataMember() - * @see #setDataMember(boolean) - * @generated - */ - void unsetDataMember(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isDataMember <em>Data Member</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Data Member</em>' attribute is set. - * @see #unsetDataMember() - * @see #isDataMember() - * @see #setDataMember(boolean) - * @generated - */ - boolean isSetDataMember(); - - /** - * Returns the value of the '<em><b>Xml Attribute Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Xml Attribute Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Xml Attribute Name</em>' attribute. - * @see #setXmlAttributeName(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getVariableMapping_XmlAttributeName() - * @model - * @generated - */ - String getXmlAttributeName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#getXmlAttributeName <em>Xml Attribute Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Xml Attribute Name</em>' attribute. - * @see #getXmlAttributeName() - * @generated - */ - void setXmlAttributeName(String value); - - /** - * Returns the value of the '<em><b>Xml Wildcard</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Xml Wildcard</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Xml Wildcard</em>' attribute. - * @see #isSetXmlWildcard() - * @see #unsetXmlWildcard() - * @see #setXmlWildcard(boolean) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getVariableMapping_XmlWildcard() - * @model unsettable="true" - * @generated - */ - boolean isXmlWildcard(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isXmlWildcard <em>Xml Wildcard</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Xml Wildcard</em>' attribute. - * @see #isSetXmlWildcard() - * @see #unsetXmlWildcard() - * @see #isXmlWildcard() - * @generated - */ - void setXmlWildcard(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isXmlWildcard <em>Xml Wildcard</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetXmlWildcard() - * @see #isXmlWildcard() - * @see #setXmlWildcard(boolean) - * @generated - */ - void unsetXmlWildcard(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping#isXmlWildcard <em>Xml Wildcard</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Xml Wildcard</em>' attribute is set. - * @see #unsetXmlWildcard() - * @see #isXmlWildcard() - * @see #setXmlWildcard(boolean) - * @generated - */ - boolean isSetXmlWildcard(); - -} // VariableMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLBinding.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLBinding.java deleted file mode 100644 index 9323e265f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLBinding.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.jst.j2ee.common.QName; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>WSDL Binding</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The wsdl-binding element defines the wsdl binding - * by a QNAME which uniquely identifies the binding. - * - * Used in: service-endpoint-interface-mapping - * <!-- end-model-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLBinding() - * @model - * @generated - * @since 1.0 */ -public interface WSDLBinding extends QName{ -// WSDLBinding -} diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLMessage.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLMessage.java deleted file mode 100644 index b3278a0dd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLMessage.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.jst.j2ee.common.QName; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>WSDL Message</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The wsdl-message element defines a WSDL message by a QNAME. - * - * Used in: wsdl-message-mapping, wsdl-return-value-mapping - * <!-- end-model-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLMessage() - * @model - * @generated - * @since 1.0 */ -public interface WSDLMessage extends QName{ -// WSDLMessage -} diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLMessageMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLMessageMapping.java deleted file mode 100644 index 5b662fa0d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLMessageMapping.java +++ /dev/null @@ -1,215 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>WSDL Message Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The wsdl-message-mapping element defines the mapping to a specific message and its part. Together they define uniquely the mapping for a specific parameter. Parts within a message context are uniquely - * identified with their names. - * - * The parameter-mode is defined by the mapping to indicate whether the mapping will be IN, OUT, or INOUT.. The presence of the soap-header - * element indicates that the parameter is mapped to a soap header only. When absent, it means that the wsdl-message is mapped to a Java parameter. The soap headers are interpreted in the order they are - * provided in the mapping. - * - * Used in: method-param-parts-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getParameterMode <em>Parameter Mode</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#isSoapHeader <em>Soap Header</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getWsdlMessage <em>Wsdl Message</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLMessageMapping() - * @model - * @generated - * @since 1.0 */ -public interface WSDLMessageMapping extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLMessageMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Wsdl Message Part Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Message Part Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * Interpretation of the wsdl-message-part-name element depends on whether or not wrapped-element has been defined in the service-endpoint-method-mapping. If wrapped-element is not specified, wsdl-message-part-name defines a WSDL message part. It should always be interpreter with respect to a wsdl-message element. If wrapped-element is specified, wsdl-message-part-name refers to an element - * name of the element type. - * - * Used in: wsdl-message-mapping, wsdl-return-value-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Wsdl Message Part Name</em>' attribute. - * @see #setWsdlMessagePartName(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLMessageMapping_WsdlMessagePartName() - * @model - * @generated - */ - String getWsdlMessagePartName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Message Part Name</em>' attribute. - * @see #getWsdlMessagePartName() - * @generated - */ - void setWsdlMessagePartName(String value); - - /** - * Returns the value of the '<em><b>Parameter Mode</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Parameter Mode</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The parameter-mode element defines the mode of the parameter. It can have only three values, IN, OUT, INOUT. - * - * Used in: wsdl-message-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Parameter Mode</em>' attribute. - * @see #setParameterMode(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLMessageMapping_ParameterMode() - * @model - * @generated - */ - String getParameterMode(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getParameterMode <em>Parameter Mode</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Parameter Mode</em>' attribute. - * @see #getParameterMode() - * @generated - */ - void setParameterMode(String value); - - /** - * Returns the value of the '<em><b>Soap Header</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Soap Header</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Soap Header</em>' attribute. - * @see #isSetSoapHeader() - * @see #unsetSoapHeader() - * @see #setSoapHeader(boolean) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLMessageMapping_SoapHeader() - * @model unsettable="true" - * @generated - */ - boolean isSoapHeader(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#isSoapHeader <em>Soap Header</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Soap Header</em>' attribute. - * @see #isSetSoapHeader() - * @see #unsetSoapHeader() - * @see #isSoapHeader() - * @generated - */ - void setSoapHeader(boolean value); - - /** - * Unsets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#isSoapHeader <em>Soap Header</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetSoapHeader() - * @see #isSoapHeader() - * @see #setSoapHeader(boolean) - * @generated - */ - void unsetSoapHeader(); - - /** - * Returns whether the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#isSoapHeader <em>Soap Header</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Soap Header</em>' attribute is set. - * @see #unsetSoapHeader() - * @see #isSoapHeader() - * @see #setSoapHeader(boolean) - * @generated - */ - boolean isSetSoapHeader(); - - /** - * Returns the value of the '<em><b>Wsdl Message</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Message</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Message</em>' containment reference. - * @see #setWsdlMessage(WSDLMessage) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLMessageMapping_WsdlMessage() - * @model containment="true" required="true" - * @generated - */ - WSDLMessage getWsdlMessage(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping#getWsdlMessage <em>Wsdl Message</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Message</em>' containment reference. - * @see #getWsdlMessage() - * @generated - */ - void setWsdlMessage(WSDLMessage value); - -} // WSDLMessageMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLMessagePartName.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLMessagePartName.java deleted file mode 100644 index 21ce4c9d8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLMessagePartName.java +++ /dev/null @@ -1,85 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>WSDL Message Part Name</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLMessagePartName() - * @model - * @generated - * @since 1.0 */ -public interface WSDLMessagePartName extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLMessagePartName_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Wsdl Message Part Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Message Part Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Message Part Name</em>' attribute. - * @see #setWsdlMessagePartName(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLMessagePartName_WsdlMessagePartName() - * @model - * @generated - */ - String getWsdlMessagePartName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Message Part Name</em>' attribute. - * @see #getWsdlMessagePartName() - * @generated - */ - void setWsdlMessagePartName(String value); - -} // WSDLMessagePartName diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLOperation.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLOperation.java deleted file mode 100644 index 278b01b84..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLOperation.java +++ /dev/null @@ -1,85 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>WSDL Operation</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation#getWsdlOperation <em>Wsdl Operation</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLOperation() - * @model - * @generated - * @since 1.0 */ -public interface WSDLOperation extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLOperation_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Wsdl Operation</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Operation</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Operation</em>' attribute. - * @see #setWsdlOperation(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLOperation_WsdlOperation() - * @model - * @generated - */ - String getWsdlOperation(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation#getWsdlOperation <em>Wsdl Operation</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Operation</em>' attribute. - * @see #getWsdlOperation() - * @generated - */ - void setWsdlOperation(String value); - -} // WSDLOperation diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLPortType.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLPortType.java deleted file mode 100644 index 57a0a825a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLPortType.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.jst.j2ee.common.QName; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>WSDL Port Type</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The wsdl-port-type element defines the wsdl port type - * by a QNAME which uniquely identifies the port type. - * - * Used in: service-endpoint-interface-mapping - * <!-- end-model-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLPortType() - * @model - * @generated - * @since 1.0 */ -public interface WSDLPortType extends QName{ -// WSDLPortType -} diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLReturnValueMapping.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLReturnValueMapping.java deleted file mode 100644 index 3caa87305..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLReturnValueMapping.java +++ /dev/null @@ -1,158 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>WSDL Return Value Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The wsdl-return-value-mapping element defines the mapping for the method's return value. It defines the mapping to a specific message and its part. Together they define uniquely the mapping for a specific parameter. Parts within a message context are uniquely - * identified with their names. The wsdl-message-part-name is not - * specified if there is no return value or OUT parameters. - * - * Used in: service-endpoint-method-mapping - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getMethodReturnValue <em>Method Return Value</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getWsdlMessage <em>Wsdl Message</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLReturnValueMapping() - * @model - * @generated - * @since 1.0 */ -public interface WSDLReturnValueMapping extends EObject{ - /** - * Returns the value of the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Id</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Id</em>' attribute. - * @see #setId(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLReturnValueMapping_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getId <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Id</em>' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the '<em><b>Method Return Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Method Return Value</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The method-return-value element defines a fully qualified class name or void type for the method's return value type. - * - * Used in: wsdl-return-value-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Method Return Value</em>' attribute. - * @see #setMethodReturnValue(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLReturnValueMapping_MethodReturnValue() - * @model - * @generated - */ - String getMethodReturnValue(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getMethodReturnValue <em>Method Return Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Method Return Value</em>' attribute. - * @see #getMethodReturnValue() - * @generated - */ - void setMethodReturnValue(String value); - - /** - * Returns the value of the '<em><b>Wsdl Message Part Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Message Part Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * Interpretation of the wsdl-message-part-name element depends on whether or not wrapped-element has been defined in the service-endpoint-method-mapping. If wrapped-element is not specified, wsdl-message-part-name defines a WSDL message part. It should always be interpreter with respect to a wsdl-message element. If wrapped-element is specified, wsdl-message-part-name refers to an element - * name of the element type. - * - * Used in: wsdl-message-mapping, wsdl-return-value-mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Wsdl Message Part Name</em>' attribute. - * @see #setWsdlMessagePartName(String) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLReturnValueMapping_WsdlMessagePartName() - * @model - * @generated - */ - String getWsdlMessagePartName(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Message Part Name</em>' attribute. - * @see #getWsdlMessagePartName() - * @generated - */ - void setWsdlMessagePartName(String value); - - /** - * Returns the value of the '<em><b>Wsdl Message</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Wsdl Message</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Wsdl Message</em>' containment reference. - * @see #setWsdlMessage(WSDLMessage) - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLReturnValueMapping_WsdlMessage() - * @model containment="true" required="true" - * @generated - */ - WSDLMessage getWsdlMessage(); - - /** - * Sets the value of the '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping#getWsdlMessage <em>Wsdl Message</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Wsdl Message</em>' containment reference. - * @see #getWsdlMessage() - * @generated - */ - void setWsdlMessage(WSDLMessage value); - -} // WSDLReturnValueMapping diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLServiceName.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLServiceName.java deleted file mode 100644 index 9e73d7010..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/WSDLServiceName.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap; - -import org.eclipse.jst.j2ee.common.QName; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>WSDL Service Name</b></em>'. - * <!-- end-user-doc --> - * - * <!-- begin-model-doc --> - * The wsdl-service-name element defines the wsdl service name by a QNAME which uniquely identifies the service. - * - * Used in: service-interface-mapping - * <!-- end-model-doc --> - * - * - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#getWSDLServiceName() - * @model - * @generated - * @since 1.0 */ -public interface WSDLServiceName extends QName{ - //Default -} // WSDLServiceName diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ConstructorParameterOrderImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ConstructorParameterOrderImpl.java deleted file mode 100644 index 5cd93cded..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ConstructorParameterOrderImpl.java +++ /dev/null @@ -1,223 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Constructor Parameter Order</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ConstructorParameterOrderImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ConstructorParameterOrderImpl#getElementNames <em>Element Names</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ConstructorParameterOrderImpl extends EObjectImpl implements ConstructorParameterOrder -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The cached value of the '{@link #getElementNames() <em>Element Names</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getElementNames() - * @generated - * @ordered - */ - protected EList elementNames = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ConstructorParameterOrderImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getConstructorParameterOrder(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getElementNames() { - if (elementNames == null) { - elementNames = new EObjectContainmentEList(ElementName.class, this, JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ELEMENT_NAMES); - } - return elementNames; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ELEMENT_NAMES: - return ((InternalEList)getElementNames()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ID: - return getId(); - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ELEMENT_NAMES: - return getElementNames(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ELEMENT_NAMES: - getElementNames().clear(); - getElementNames().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ELEMENT_NAMES: - getElementNames().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ELEMENT_NAMES: - return elementNames != null && !elementNames.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(')'); - return result.toString(); - } - -} //ConstructorParameterOrderImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ElementNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ElementNameImpl.java deleted file mode 100644 index b87f782bd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ElementNameImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Element Name</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ElementNameImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ElementNameImpl#getText <em>Text</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ElementNameImpl extends EObjectImpl implements ElementName -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getText() <em>Text</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getText() - * @generated - * @ordered - */ - protected static final String TEXT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getText() <em>Text</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getText() - * @generated - * @ordered - */ - protected String text = TEXT_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ElementNameImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getElementName(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.ELEMENT_NAME__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getText() { - return text; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setText(String newText) { - String oldText = text; - text = newText; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.ELEMENT_NAME__TEXT, oldText, text)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.ELEMENT_NAME__ID: - return getId(); - case JaxrpcmapPackage.ELEMENT_NAME__TEXT: - return getText(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.ELEMENT_NAME__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.ELEMENT_NAME__TEXT: - setText((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.ELEMENT_NAME__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.ELEMENT_NAME__TEXT: - setText(TEXT_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.ELEMENT_NAME__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.ELEMENT_NAME__TEXT: - return TEXT_EDEFAULT == null ? text != null : !TEXT_EDEFAULT.equals(text); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", text: "); - result.append(text); - result.append(')'); - return result.toString(); - } - -} //ElementNameImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ExceptionMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ExceptionMappingImpl.java deleted file mode 100644 index 486b3db01..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ExceptionMappingImpl.java +++ /dev/null @@ -1,423 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Exception Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ExceptionMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ExceptionMappingImpl#getExceptionType <em>Exception Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ExceptionMappingImpl#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ExceptionMappingImpl#getWsdlMessage <em>Wsdl Message</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ExceptionMappingImpl#getConstructorParameterOrder <em>Constructor Parameter Order</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ExceptionMappingImpl extends EObjectImpl implements ExceptionMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getExceptionType() <em>Exception Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExceptionType() - * @generated - * @ordered - */ - protected static final String EXCEPTION_TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getExceptionType() <em>Exception Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExceptionType() - * @generated - * @ordered - */ - protected String exceptionType = EXCEPTION_TYPE_EDEFAULT; - - /** - * The default value of the '{@link #getWsdlMessagePartName() <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessagePartName() - * @generated - * @ordered - */ - protected static final String WSDL_MESSAGE_PART_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWsdlMessagePartName() <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessagePartName() - * @generated - * @ordered - */ - protected String wsdlMessagePartName = WSDL_MESSAGE_PART_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getWsdlMessage() <em>Wsdl Message</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessage() - * @generated - * @ordered - */ - protected WSDLMessage wsdlMessage = null; - - /** - * The cached value of the '{@link #getConstructorParameterOrder() <em>Constructor Parameter Order</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConstructorParameterOrder() - * @generated - * @ordered - */ - protected ConstructorParameterOrder constructorParameterOrder = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ExceptionMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getExceptionMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.EXCEPTION_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getExceptionType() { - return exceptionType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setExceptionType(String newExceptionType) { - String oldExceptionType = exceptionType; - exceptionType = newExceptionType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.EXCEPTION_MAPPING__EXCEPTION_TYPE, oldExceptionType, exceptionType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWsdlMessagePartName() { - return wsdlMessagePartName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlMessagePartName(String newWsdlMessagePartName) { - String oldWsdlMessagePartName = wsdlMessagePartName; - wsdlMessagePartName = newWsdlMessagePartName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE_PART_NAME, oldWsdlMessagePartName, wsdlMessagePartName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLMessage getWsdlMessage() { - return wsdlMessage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWsdlMessage(WSDLMessage newWsdlMessage, NotificationChain msgs) { - WSDLMessage oldWsdlMessage = wsdlMessage; - wsdlMessage = newWsdlMessage; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE, oldWsdlMessage, newWsdlMessage); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlMessage(WSDLMessage newWsdlMessage) { - if (newWsdlMessage != wsdlMessage) { - NotificationChain msgs = null; - if (wsdlMessage != null) - msgs = ((InternalEObject)wsdlMessage).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE, null, msgs); - if (newWsdlMessage != null) - msgs = ((InternalEObject)newWsdlMessage).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE, null, msgs); - msgs = basicSetWsdlMessage(newWsdlMessage, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE, newWsdlMessage, newWsdlMessage)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ConstructorParameterOrder getConstructorParameterOrder() { - return constructorParameterOrder; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetConstructorParameterOrder(ConstructorParameterOrder newConstructorParameterOrder, NotificationChain msgs) { - ConstructorParameterOrder oldConstructorParameterOrder = constructorParameterOrder; - constructorParameterOrder = newConstructorParameterOrder; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER, oldConstructorParameterOrder, newConstructorParameterOrder); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setConstructorParameterOrder(ConstructorParameterOrder newConstructorParameterOrder) { - if (newConstructorParameterOrder != constructorParameterOrder) { - NotificationChain msgs = null; - if (constructorParameterOrder != null) - msgs = ((InternalEObject)constructorParameterOrder).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER, null, msgs); - if (newConstructorParameterOrder != null) - msgs = ((InternalEObject)newConstructorParameterOrder).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER, null, msgs); - msgs = basicSetConstructorParameterOrder(newConstructorParameterOrder, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER, newConstructorParameterOrder, newConstructorParameterOrder)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE: - return basicSetWsdlMessage(null, msgs); - case JaxrpcmapPackage.EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER: - return basicSetConstructorParameterOrder(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.EXCEPTION_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.EXCEPTION_MAPPING__EXCEPTION_TYPE: - return getExceptionType(); - case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE_PART_NAME: - return getWsdlMessagePartName(); - case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE: - return getWsdlMessage(); - case JaxrpcmapPackage.EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER: - return getConstructorParameterOrder(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.EXCEPTION_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.EXCEPTION_MAPPING__EXCEPTION_TYPE: - setExceptionType((String)newValue); - return; - case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE_PART_NAME: - setWsdlMessagePartName((String)newValue); - return; - case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE: - setWsdlMessage((WSDLMessage)newValue); - return; - case JaxrpcmapPackage.EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER: - setConstructorParameterOrder((ConstructorParameterOrder)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.EXCEPTION_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.EXCEPTION_MAPPING__EXCEPTION_TYPE: - setExceptionType(EXCEPTION_TYPE_EDEFAULT); - return; - case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE_PART_NAME: - setWsdlMessagePartName(WSDL_MESSAGE_PART_NAME_EDEFAULT); - return; - case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE: - setWsdlMessage((WSDLMessage)null); - return; - case JaxrpcmapPackage.EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER: - setConstructorParameterOrder((ConstructorParameterOrder)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.EXCEPTION_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.EXCEPTION_MAPPING__EXCEPTION_TYPE: - return EXCEPTION_TYPE_EDEFAULT == null ? exceptionType != null : !EXCEPTION_TYPE_EDEFAULT.equals(exceptionType); - case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE_PART_NAME: - return WSDL_MESSAGE_PART_NAME_EDEFAULT == null ? wsdlMessagePartName != null : !WSDL_MESSAGE_PART_NAME_EDEFAULT.equals(wsdlMessagePartName); - case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE: - return wsdlMessage != null; - case JaxrpcmapPackage.EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER: - return constructorParameterOrder != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", exceptionType: "); - result.append(exceptionType); - result.append(", wsdlMessagePartName: "); - result.append(wsdlMessagePartName); - result.append(')'); - return result.toString(); - } - -} //ExceptionMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/InterfaceMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/InterfaceMappingImpl.java deleted file mode 100644 index 6751e1270..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/InterfaceMappingImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Interface Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class InterfaceMappingImpl extends EObjectImpl implements InterfaceMapping -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected InterfaceMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getInterfaceMapping(); - } - -} //InterfaceMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JavaWSDLMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JavaWSDLMappingImpl.java deleted file mode 100644 index cb4fb3e13..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JavaWSDLMappingImpl.java +++ /dev/null @@ -1,334 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Java WSDL Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaWSDLMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaWSDLMappingImpl#getPackageMappings <em>Package Mappings</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaWSDLMappingImpl#getJavaXMLTypeMappings <em>Java XML Type Mappings</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaWSDLMappingImpl#getExceptionMappings <em>Exception Mappings</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaWSDLMappingImpl#getInterfaceMappings <em>Interface Mappings</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class JavaWSDLMappingImpl extends EObjectImpl implements JavaWSDLMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The cached value of the '{@link #getPackageMappings() <em>Package Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPackageMappings() - * @generated - * @ordered - */ - protected EList packageMappings = null; - - /** - * The cached value of the '{@link #getJavaXMLTypeMappings() <em>Java XML Type Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJavaXMLTypeMappings() - * @generated - * @ordered - */ - protected EList javaXMLTypeMappings = null; - - /** - * The cached value of the '{@link #getExceptionMappings() <em>Exception Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExceptionMappings() - * @generated - * @ordered - */ - protected EList exceptionMappings = null; - - /** - * The cached value of the '{@link #getInterfaceMappings() <em>Interface Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInterfaceMappings() - * @generated - * @ordered - */ - protected EList interfaceMappings = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected JavaWSDLMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.JAVA_WSDL_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getPackageMappings() { - if (packageMappings == null) { - packageMappings = new EObjectContainmentEList(PackageMapping.class, this, JaxrpcmapPackage.JAVA_WSDL_MAPPING__PACKAGE_MAPPINGS); - } - return packageMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getJavaXMLTypeMappings() { - if (javaXMLTypeMappings == null) { - javaXMLTypeMappings = new EObjectContainmentEList(JavaXMLTypeMapping.class, this, JaxrpcmapPackage.JAVA_WSDL_MAPPING__JAVA_XML_TYPE_MAPPINGS); - } - return javaXMLTypeMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getExceptionMappings() { - if (exceptionMappings == null) { - exceptionMappings = new EObjectContainmentEList(ExceptionMapping.class, this, JaxrpcmapPackage.JAVA_WSDL_MAPPING__EXCEPTION_MAPPINGS); - } - return exceptionMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getInterfaceMappings() { - if (interfaceMappings == null) { - interfaceMappings = new EObjectContainmentEList(InterfaceMapping.class, this, JaxrpcmapPackage.JAVA_WSDL_MAPPING__INTERFACE_MAPPINGS); - } - return interfaceMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__PACKAGE_MAPPINGS: - return ((InternalEList)getPackageMappings()).basicRemove(otherEnd, msgs); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__JAVA_XML_TYPE_MAPPINGS: - return ((InternalEList)getJavaXMLTypeMappings()).basicRemove(otherEnd, msgs); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__EXCEPTION_MAPPINGS: - return ((InternalEList)getExceptionMappings()).basicRemove(otherEnd, msgs); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__INTERFACE_MAPPINGS: - return ((InternalEList)getInterfaceMappings()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__PACKAGE_MAPPINGS: - return getPackageMappings(); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__JAVA_XML_TYPE_MAPPINGS: - return getJavaXMLTypeMappings(); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__EXCEPTION_MAPPINGS: - return getExceptionMappings(); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__INTERFACE_MAPPINGS: - return getInterfaceMappings(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__PACKAGE_MAPPINGS: - getPackageMappings().clear(); - getPackageMappings().addAll((Collection)newValue); - return; - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__JAVA_XML_TYPE_MAPPINGS: - getJavaXMLTypeMappings().clear(); - getJavaXMLTypeMappings().addAll((Collection)newValue); - return; - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__EXCEPTION_MAPPINGS: - getExceptionMappings().clear(); - getExceptionMappings().addAll((Collection)newValue); - return; - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__INTERFACE_MAPPINGS: - getInterfaceMappings().clear(); - getInterfaceMappings().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__PACKAGE_MAPPINGS: - getPackageMappings().clear(); - return; - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__JAVA_XML_TYPE_MAPPINGS: - getJavaXMLTypeMappings().clear(); - return; - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__EXCEPTION_MAPPINGS: - getExceptionMappings().clear(); - return; - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__INTERFACE_MAPPINGS: - getInterfaceMappings().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__PACKAGE_MAPPINGS: - return packageMappings != null && !packageMappings.isEmpty(); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__JAVA_XML_TYPE_MAPPINGS: - return javaXMLTypeMappings != null && !javaXMLTypeMappings.isEmpty(); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__EXCEPTION_MAPPINGS: - return exceptionMappings != null && !exceptionMappings.isEmpty(); - case JaxrpcmapPackage.JAVA_WSDL_MAPPING__INTERFACE_MAPPINGS: - return interfaceMappings != null && !interfaceMappings.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(')'); - return result.toString(); - } - -} //JavaWSDLMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JavaXMLTypeMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JavaXMLTypeMappingImpl.java deleted file mode 100644 index fe14218fd..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JavaXMLTypeMappingImpl.java +++ /dev/null @@ -1,452 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Java XML Type Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaXMLTypeMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaXMLTypeMappingImpl#getClassType <em>Class Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaXMLTypeMappingImpl#getQnameScope <em>Qname Scope</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaXMLTypeMappingImpl#getAnonymousTypeQname <em>Anonymous Type Qname</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaXMLTypeMappingImpl#getRootTypeQname <em>Root Type Qname</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.JavaXMLTypeMappingImpl#getVariableMappings <em>Variable Mappings</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class JavaXMLTypeMappingImpl extends EObjectImpl implements JavaXMLTypeMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getClassType() <em>Class Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getClassType() - * @generated - * @ordered - */ - protected static final String CLASS_TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getClassType() <em>Class Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getClassType() - * @generated - * @ordered - */ - protected String classType = CLASS_TYPE_EDEFAULT; - - /** - * The default value of the '{@link #getQnameScope() <em>Qname Scope</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getQnameScope() - * @generated - * @ordered - */ - protected static final String QNAME_SCOPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getQnameScope() <em>Qname Scope</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getQnameScope() - * @generated - * @ordered - */ - protected String qnameScope = QNAME_SCOPE_EDEFAULT; - - /** - * The default value of the '{@link #getAnonymousTypeQname() <em>Anonymous Type Qname</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAnonymousTypeQname() - * @generated - * @ordered - */ - protected static final String ANONYMOUS_TYPE_QNAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAnonymousTypeQname() <em>Anonymous Type Qname</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAnonymousTypeQname() - * @generated - * @ordered - */ - protected String anonymousTypeQname = ANONYMOUS_TYPE_QNAME_EDEFAULT; - - /** - * The cached value of the '{@link #getRootTypeQname() <em>Root Type Qname</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRootTypeQname() - * @generated - * @ordered - */ - protected RootTypeQname rootTypeQname = null; - - /** - * The cached value of the '{@link #getVariableMappings() <em>Variable Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVariableMappings() - * @generated - * @ordered - */ - protected EList variableMappings = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected JavaXMLTypeMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getJavaXMLTypeMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getClassType() { - return classType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setClassType(String newClassType) { - String oldClassType = classType; - classType = newClassType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__CLASS_TYPE, oldClassType, classType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getQnameScope() { - return qnameScope; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setQnameScope(String newQnameScope) { - String oldQnameScope = qnameScope; - qnameScope = newQnameScope; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__QNAME_SCOPE, oldQnameScope, qnameScope)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getAnonymousTypeQname() { - return anonymousTypeQname; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAnonymousTypeQname(String newAnonymousTypeQname) { - String oldAnonymousTypeQname = anonymousTypeQname; - anonymousTypeQname = newAnonymousTypeQname; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ANONYMOUS_TYPE_QNAME, oldAnonymousTypeQname, anonymousTypeQname)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RootTypeQname getRootTypeQname() { - return rootTypeQname; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetRootTypeQname(RootTypeQname newRootTypeQname, NotificationChain msgs) { - RootTypeQname oldRootTypeQname = rootTypeQname; - rootTypeQname = newRootTypeQname; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME, oldRootTypeQname, newRootTypeQname); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setRootTypeQname(RootTypeQname newRootTypeQname) { - if (newRootTypeQname != rootTypeQname) { - NotificationChain msgs = null; - if (rootTypeQname != null) - msgs = ((InternalEObject)rootTypeQname).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME, null, msgs); - if (newRootTypeQname != null) - msgs = ((InternalEObject)newRootTypeQname).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME, null, msgs); - msgs = basicSetRootTypeQname(newRootTypeQname, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME, newRootTypeQname, newRootTypeQname)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getVariableMappings() { - if (variableMappings == null) { - variableMappings = new EObjectContainmentEList(VariableMapping.class, this, JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__VARIABLE_MAPPINGS); - } - return variableMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME: - return basicSetRootTypeQname(null, msgs); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__VARIABLE_MAPPINGS: - return ((InternalEList)getVariableMappings()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__CLASS_TYPE: - return getClassType(); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__QNAME_SCOPE: - return getQnameScope(); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ANONYMOUS_TYPE_QNAME: - return getAnonymousTypeQname(); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME: - return getRootTypeQname(); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__VARIABLE_MAPPINGS: - return getVariableMappings(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__CLASS_TYPE: - setClassType((String)newValue); - return; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__QNAME_SCOPE: - setQnameScope((String)newValue); - return; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ANONYMOUS_TYPE_QNAME: - setAnonymousTypeQname((String)newValue); - return; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME: - setRootTypeQname((RootTypeQname)newValue); - return; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__VARIABLE_MAPPINGS: - getVariableMappings().clear(); - getVariableMappings().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__CLASS_TYPE: - setClassType(CLASS_TYPE_EDEFAULT); - return; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__QNAME_SCOPE: - setQnameScope(QNAME_SCOPE_EDEFAULT); - return; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ANONYMOUS_TYPE_QNAME: - setAnonymousTypeQname(ANONYMOUS_TYPE_QNAME_EDEFAULT); - return; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME: - setRootTypeQname((RootTypeQname)null); - return; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__VARIABLE_MAPPINGS: - getVariableMappings().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__CLASS_TYPE: - return CLASS_TYPE_EDEFAULT == null ? classType != null : !CLASS_TYPE_EDEFAULT.equals(classType); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__QNAME_SCOPE: - return QNAME_SCOPE_EDEFAULT == null ? qnameScope != null : !QNAME_SCOPE_EDEFAULT.equals(qnameScope); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ANONYMOUS_TYPE_QNAME: - return ANONYMOUS_TYPE_QNAME_EDEFAULT == null ? anonymousTypeQname != null : !ANONYMOUS_TYPE_QNAME_EDEFAULT.equals(anonymousTypeQname); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME: - return rootTypeQname != null; - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__VARIABLE_MAPPINGS: - return variableMappings != null && !variableMappings.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", classType: "); - result.append(classType); - result.append(", qnameScope: "); - result.append(qnameScope); - result.append(", anonymousTypeQname: "); - result.append(anonymousTypeQname); - result.append(')'); - return result.toString(); - } - -} //JavaXMLTypeMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JaxrpcmapFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JaxrpcmapFactoryImpl.java deleted file mode 100644 index a2d2e8044..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JaxrpcmapFactoryImpl.java +++ /dev/null @@ -1,332 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class JaxrpcmapFactoryImpl extends EFactoryImpl implements JaxrpcmapFactory -{ - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JaxrpcmapFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case JaxrpcmapPackage.JAVA_WSDL_MAPPING: return createJavaWSDLMapping(); - case JaxrpcmapPackage.PACKAGE_MAPPING: return createPackageMapping(); - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING: return createJavaXMLTypeMapping(); - case JaxrpcmapPackage.EXCEPTION_MAPPING: return createExceptionMapping(); - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING: return createServiceInterfaceMapping(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING: return createServiceEndpointInterfaceMapping(); - case JaxrpcmapPackage.ROOT_TYPE_QNAME: return createRootTypeQname(); - case JaxrpcmapPackage.VARIABLE_MAPPING: return createVariableMapping(); - case JaxrpcmapPackage.WSDL_MESSAGE: return createWSDLMessage(); - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER: return createConstructorParameterOrder(); - case JaxrpcmapPackage.ELEMENT_NAME: return createElementName(); - case JaxrpcmapPackage.WSDL_SERVICE_NAME: return createWSDLServiceName(); - case JaxrpcmapPackage.PORT_MAPPING: return createPortMapping(); - case JaxrpcmapPackage.WSDL_PORT_TYPE: return createWSDLPortType(); - case JaxrpcmapPackage.WSDL_BINDING: return createWSDLBinding(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING: return createServiceEndpointMethodMapping(); - case JaxrpcmapPackage.WSDL_OPERATION: return createWSDLOperation(); - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING: return createMethodParamPartsMapping(); - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING: return createWSDLReturnValueMapping(); - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING: return createWSDLMessageMapping(); - case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME: return createWSDLMessagePartName(); - case JaxrpcmapPackage.INTERFACE_MAPPING: return createInterfaceMapping(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaWSDLMapping createJavaWSDLMapping() { - JavaWSDLMappingImpl javaWSDLMapping = new JavaWSDLMappingImpl(); - return javaWSDLMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PackageMapping createPackageMapping() { - PackageMappingImpl packageMapping = new PackageMappingImpl(); - return packageMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JavaXMLTypeMapping createJavaXMLTypeMapping() { - JavaXMLTypeMappingImpl javaXMLTypeMapping = new JavaXMLTypeMappingImpl(); - return javaXMLTypeMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ExceptionMapping createExceptionMapping() { - ExceptionMappingImpl exceptionMapping = new ExceptionMappingImpl(); - return exceptionMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ServiceInterfaceMapping createServiceInterfaceMapping() { - ServiceInterfaceMappingImpl serviceInterfaceMapping = new ServiceInterfaceMappingImpl(); - return serviceInterfaceMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ServiceEndpointInterfaceMapping createServiceEndpointInterfaceMapping() { - ServiceEndpointInterfaceMappingImpl serviceEndpointInterfaceMapping = new ServiceEndpointInterfaceMappingImpl(); - return serviceEndpointInterfaceMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RootTypeQname createRootTypeQname() { - RootTypeQnameImpl rootTypeQname = new RootTypeQnameImpl(); - return rootTypeQname; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public VariableMapping createVariableMapping() { - VariableMappingImpl variableMapping = new VariableMappingImpl(); - return variableMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLMessage createWSDLMessage() { - WSDLMessageImpl wsdlMessage = new WSDLMessageImpl(); - return wsdlMessage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ConstructorParameterOrder createConstructorParameterOrder() { - ConstructorParameterOrderImpl constructorParameterOrder = new ConstructorParameterOrderImpl(); - return constructorParameterOrder; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ElementName createElementName() { - ElementNameImpl elementName = new ElementNameImpl(); - return elementName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLServiceName createWSDLServiceName() { - WSDLServiceNameImpl wsdlServiceName = new WSDLServiceNameImpl(); - return wsdlServiceName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PortMapping createPortMapping() { - PortMappingImpl portMapping = new PortMappingImpl(); - return portMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLPortType createWSDLPortType() { - WSDLPortTypeImpl wsdlPortType = new WSDLPortTypeImpl(); - return wsdlPortType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLBinding createWSDLBinding() { - WSDLBindingImpl wsdlBinding = new WSDLBindingImpl(); - return wsdlBinding; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ServiceEndpointMethodMapping createServiceEndpointMethodMapping() { - ServiceEndpointMethodMappingImpl serviceEndpointMethodMapping = new ServiceEndpointMethodMappingImpl(); - return serviceEndpointMethodMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLOperation createWSDLOperation() { - WSDLOperationImpl wsdlOperation = new WSDLOperationImpl(); - return wsdlOperation; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MethodParamPartsMapping createMethodParamPartsMapping() { - MethodParamPartsMappingImpl methodParamPartsMapping = new MethodParamPartsMappingImpl(); - return methodParamPartsMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLReturnValueMapping createWSDLReturnValueMapping() { - WSDLReturnValueMappingImpl wsdlReturnValueMapping = new WSDLReturnValueMappingImpl(); - return wsdlReturnValueMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLMessageMapping createWSDLMessageMapping() { - WSDLMessageMappingImpl wsdlMessageMapping = new WSDLMessageMappingImpl(); - return wsdlMessageMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLMessagePartName createWSDLMessagePartName() { - WSDLMessagePartNameImpl wsdlMessagePartName = new WSDLMessagePartNameImpl(); - return wsdlMessagePartName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public InterfaceMapping createInterfaceMapping() { - InterfaceMappingImpl interfaceMapping = new InterfaceMappingImpl(); - return interfaceMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JaxrpcmapPackage getJaxrpcmapPackage() { - return (JaxrpcmapPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static JaxrpcmapPackage getPackage() { - return JaxrpcmapPackage.eINSTANCE; - } - -} //JaxrpcmapFactoryImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JaxrpcmapPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JaxrpcmapPackageImpl.java deleted file mode 100644 index 440ec1524..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JaxrpcmapPackageImpl.java +++ /dev/null @@ -1,1358 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.impl.EcorePackageImpl; -import org.eclipse.jem.java.internal.impl.JavaRefPackageImpl; -import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl; -import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl; -import org.eclipse.jst.j2ee.common.CommonPackage; -import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl; -import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl; -import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl; -import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName; -import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl; -import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl; -import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class JaxrpcmapPackageImpl extends EPackageImpl implements JaxrpcmapPackage -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass javaWSDLMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass packageMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass javaXMLTypeMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass exceptionMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass serviceInterfaceMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass serviceEndpointInterfaceMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass rootTypeQnameEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass variableMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass wsdlMessageEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass constructorParameterOrderEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass elementNameEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass wsdlServiceNameEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass portMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass wsdlPortTypeEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass wsdlBindingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass serviceEndpointMethodMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass wsdlOperationEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass methodParamPartsMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass wsdlReturnValueMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass wsdlMessageMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass wsdlMessagePartNameEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass interfaceMappingEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - * <p>Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage#eNS_URI - * @see #init() - * @generated - */ - private JaxrpcmapPackageImpl() { - super(eNS_URI, JaxrpcmapFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - * <p>Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - * <p>Invocation of this method will not affect any packages that have - * already been initialized. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static JaxrpcmapPackage init() { - if (isInited) return (JaxrpcmapPackage)EPackage.Registry.INSTANCE.getEPackage(JaxrpcmapPackage.eNS_URI); - - // Obtain or create and register package - JaxrpcmapPackageImpl theJaxrpcmapPackage = (JaxrpcmapPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof JaxrpcmapPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new JaxrpcmapPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - ClientPackageImpl.init(); - ApplicationPackageImpl.init(); - CommonPackageImpl.init(); - EjbPackageImpl.init(); - WebapplicationPackageImpl.init(); - Webservice_clientPackageImpl.init(); - JspPackageImpl.init(); - WscommonPackageImpl.init(); - WsddPackageImpl.init(); - EcorePackageImpl.init(); - JavaRefPackageImpl.init(); - - // Create package meta-data objects - theJaxrpcmapPackage.createPackageContents(); - - // Initialize created meta-data - theJaxrpcmapPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theJaxrpcmapPackage.freeze(); - - return theJaxrpcmapPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getJavaWSDLMapping() { - return javaWSDLMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJavaWSDLMapping_Id() { - return (EAttribute)javaWSDLMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJavaWSDLMapping_PackageMappings() { - return (EReference)javaWSDLMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJavaWSDLMapping_JavaXMLTypeMappings() { - return (EReference)javaWSDLMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJavaWSDLMapping_ExceptionMappings() { - return (EReference)javaWSDLMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJavaWSDLMapping_InterfaceMappings() { - return (EReference)javaWSDLMappingEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getPackageMapping() { - return packageMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPackageMapping_Id() { - return (EAttribute)packageMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPackageMapping_PackageType() { - return (EAttribute)packageMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPackageMapping_NamespaceURI() { - return (EAttribute)packageMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getJavaXMLTypeMapping() { - return javaXMLTypeMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJavaXMLTypeMapping_Id() { - return (EAttribute)javaXMLTypeMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJavaXMLTypeMapping_ClassType() { - return (EAttribute)javaXMLTypeMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJavaXMLTypeMapping_QnameScope() { - return (EAttribute)javaXMLTypeMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getJavaXMLTypeMapping_AnonymousTypeQname() { - return (EAttribute)javaXMLTypeMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJavaXMLTypeMapping_RootTypeQname() { - return (EReference)javaXMLTypeMappingEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getJavaXMLTypeMapping_VariableMappings() { - return (EReference)javaXMLTypeMappingEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getExceptionMapping() { - return exceptionMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getExceptionMapping_Id() { - return (EAttribute)exceptionMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getExceptionMapping_ExceptionType() { - return (EAttribute)exceptionMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getExceptionMapping_WsdlMessagePartName() { - return (EAttribute)exceptionMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getExceptionMapping_WsdlMessage() { - return (EReference)exceptionMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getExceptionMapping_ConstructorParameterOrder() { - return (EReference)exceptionMappingEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getServiceInterfaceMapping() { - return serviceInterfaceMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceInterfaceMapping_Id() { - return (EAttribute)serviceInterfaceMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceInterfaceMapping_ServiceInterface() { - return (EAttribute)serviceInterfaceMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceInterfaceMapping_WsdlServiceName() { - return (EReference)serviceInterfaceMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceInterfaceMapping_PortMappings() { - return (EReference)serviceInterfaceMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getServiceEndpointInterfaceMapping() { - return serviceEndpointInterfaceMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceEndpointInterfaceMapping_Id() { - return (EAttribute)serviceEndpointInterfaceMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceEndpointInterfaceMapping_ServiceEndpointInterface() { - return (EAttribute)serviceEndpointInterfaceMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceEndpointInterfaceMapping_WsdlPortType() { - return (EReference)serviceEndpointInterfaceMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceEndpointInterfaceMapping_WsdlBinding() { - return (EReference)serviceEndpointInterfaceMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceEndpointInterfaceMapping_ServiceEndpointMethodMappings() { - return (EReference)serviceEndpointInterfaceMappingEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getRootTypeQname() { - return rootTypeQnameEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getVariableMapping() { - return variableMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getVariableMapping_Id() { - return (EAttribute)variableMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getVariableMapping_JavaVariableName() { - return (EAttribute)variableMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getVariableMapping_XmlElementName() { - return (EAttribute)variableMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getVariableMapping_DataMember() { - return (EAttribute)variableMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getVariableMapping_XmlAttributeName() { - return (EAttribute)variableMappingEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getVariableMapping_XmlWildcard() { - return (EAttribute)variableMappingEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWSDLMessage() { - return wsdlMessageEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getConstructorParameterOrder() { - return constructorParameterOrderEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getConstructorParameterOrder_Id() { - return (EAttribute)constructorParameterOrderEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getConstructorParameterOrder_ElementNames() { - return (EReference)constructorParameterOrderEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getElementName() { - return elementNameEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getElementName_Id() { - return (EAttribute)elementNameEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getElementName_Text() { - return (EAttribute)elementNameEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWSDLServiceName() { - return wsdlServiceNameEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getPortMapping() { - return portMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortMapping_Id() { - return (EAttribute)portMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortMapping_PortName() { - return (EAttribute)portMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPortMapping_JavaPortName() { - return (EAttribute)portMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWSDLPortType() { - return wsdlPortTypeEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWSDLBinding() { - return wsdlBindingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getServiceEndpointMethodMapping() { - return serviceEndpointMethodMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceEndpointMethodMapping_Id() { - return (EAttribute)serviceEndpointMethodMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceEndpointMethodMapping_JavaMethodName() { - return (EAttribute)serviceEndpointMethodMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceEndpointMethodMapping_WsdlOperation() { - return (EAttribute)serviceEndpointMethodMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServiceEndpointMethodMapping_WrappedElement() { - return (EAttribute)serviceEndpointMethodMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceEndpointMethodMapping_MethodParamPartsMappings() { - return (EReference)serviceEndpointMethodMappingEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServiceEndpointMethodMapping_WsdlReturnValueMapping() { - return (EReference)serviceEndpointMethodMappingEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWSDLOperation() { - return wsdlOperationEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLOperation_Id() { - return (EAttribute)wsdlOperationEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLOperation_WsdlOperation() { - return (EAttribute)wsdlOperationEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMethodParamPartsMapping() { - return methodParamPartsMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMethodParamPartsMapping_Id() { - return (EAttribute)methodParamPartsMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMethodParamPartsMapping_ParamPosition() { - return (EAttribute)methodParamPartsMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMethodParamPartsMapping_ParamType() { - return (EAttribute)methodParamPartsMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMethodParamPartsMapping_WsdlMessageMapping() { - return (EReference)methodParamPartsMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWSDLReturnValueMapping() { - return wsdlReturnValueMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLReturnValueMapping_Id() { - return (EAttribute)wsdlReturnValueMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLReturnValueMapping_MethodReturnValue() { - return (EAttribute)wsdlReturnValueMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLReturnValueMapping_WsdlMessagePartName() { - return (EAttribute)wsdlReturnValueMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWSDLReturnValueMapping_WsdlMessage() { - return (EReference)wsdlReturnValueMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWSDLMessageMapping() { - return wsdlMessageMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLMessageMapping_Id() { - return (EAttribute)wsdlMessageMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLMessageMapping_WsdlMessagePartName() { - return (EAttribute)wsdlMessageMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLMessageMapping_ParameterMode() { - return (EAttribute)wsdlMessageMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLMessageMapping_SoapHeader() { - return (EAttribute)wsdlMessageMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWSDLMessageMapping_WsdlMessage() { - return (EReference)wsdlMessageMappingEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWSDLMessagePartName() { - return wsdlMessagePartNameEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLMessagePartName_Id() { - return (EAttribute)wsdlMessagePartNameEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWSDLMessagePartName_WsdlMessagePartName() { - return (EAttribute)wsdlMessagePartNameEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getInterfaceMapping() { - return interfaceMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JaxrpcmapFactory getJaxrpcmapFactory() { - return (JaxrpcmapFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - javaWSDLMappingEClass = createEClass(JAVA_WSDL_MAPPING); - createEAttribute(javaWSDLMappingEClass, JAVA_WSDL_MAPPING__ID); - createEReference(javaWSDLMappingEClass, JAVA_WSDL_MAPPING__PACKAGE_MAPPINGS); - createEReference(javaWSDLMappingEClass, JAVA_WSDL_MAPPING__JAVA_XML_TYPE_MAPPINGS); - createEReference(javaWSDLMappingEClass, JAVA_WSDL_MAPPING__EXCEPTION_MAPPINGS); - createEReference(javaWSDLMappingEClass, JAVA_WSDL_MAPPING__INTERFACE_MAPPINGS); - - packageMappingEClass = createEClass(PACKAGE_MAPPING); - createEAttribute(packageMappingEClass, PACKAGE_MAPPING__ID); - createEAttribute(packageMappingEClass, PACKAGE_MAPPING__PACKAGE_TYPE); - createEAttribute(packageMappingEClass, PACKAGE_MAPPING__NAMESPACE_URI); - - javaXMLTypeMappingEClass = createEClass(JAVA_XML_TYPE_MAPPING); - createEAttribute(javaXMLTypeMappingEClass, JAVA_XML_TYPE_MAPPING__ID); - createEAttribute(javaXMLTypeMappingEClass, JAVA_XML_TYPE_MAPPING__CLASS_TYPE); - createEAttribute(javaXMLTypeMappingEClass, JAVA_XML_TYPE_MAPPING__QNAME_SCOPE); - createEAttribute(javaXMLTypeMappingEClass, JAVA_XML_TYPE_MAPPING__ANONYMOUS_TYPE_QNAME); - createEReference(javaXMLTypeMappingEClass, JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME); - createEReference(javaXMLTypeMappingEClass, JAVA_XML_TYPE_MAPPING__VARIABLE_MAPPINGS); - - exceptionMappingEClass = createEClass(EXCEPTION_MAPPING); - createEAttribute(exceptionMappingEClass, EXCEPTION_MAPPING__ID); - createEAttribute(exceptionMappingEClass, EXCEPTION_MAPPING__EXCEPTION_TYPE); - createEAttribute(exceptionMappingEClass, EXCEPTION_MAPPING__WSDL_MESSAGE_PART_NAME); - createEReference(exceptionMappingEClass, EXCEPTION_MAPPING__WSDL_MESSAGE); - createEReference(exceptionMappingEClass, EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER); - - serviceInterfaceMappingEClass = createEClass(SERVICE_INTERFACE_MAPPING); - createEAttribute(serviceInterfaceMappingEClass, SERVICE_INTERFACE_MAPPING__ID); - createEAttribute(serviceInterfaceMappingEClass, SERVICE_INTERFACE_MAPPING__SERVICE_INTERFACE); - createEReference(serviceInterfaceMappingEClass, SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME); - createEReference(serviceInterfaceMappingEClass, SERVICE_INTERFACE_MAPPING__PORT_MAPPINGS); - - serviceEndpointInterfaceMappingEClass = createEClass(SERVICE_ENDPOINT_INTERFACE_MAPPING); - createEAttribute(serviceEndpointInterfaceMappingEClass, SERVICE_ENDPOINT_INTERFACE_MAPPING__ID); - createEAttribute(serviceEndpointInterfaceMappingEClass, SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_INTERFACE); - createEReference(serviceEndpointInterfaceMappingEClass, SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE); - createEReference(serviceEndpointInterfaceMappingEClass, SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING); - createEReference(serviceEndpointInterfaceMappingEClass, SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_METHOD_MAPPINGS); - - rootTypeQnameEClass = createEClass(ROOT_TYPE_QNAME); - - variableMappingEClass = createEClass(VARIABLE_MAPPING); - createEAttribute(variableMappingEClass, VARIABLE_MAPPING__ID); - createEAttribute(variableMappingEClass, VARIABLE_MAPPING__JAVA_VARIABLE_NAME); - createEAttribute(variableMappingEClass, VARIABLE_MAPPING__XML_ELEMENT_NAME); - createEAttribute(variableMappingEClass, VARIABLE_MAPPING__DATA_MEMBER); - createEAttribute(variableMappingEClass, VARIABLE_MAPPING__XML_ATTRIBUTE_NAME); - createEAttribute(variableMappingEClass, VARIABLE_MAPPING__XML_WILDCARD); - - wsdlMessageEClass = createEClass(WSDL_MESSAGE); - - constructorParameterOrderEClass = createEClass(CONSTRUCTOR_PARAMETER_ORDER); - createEAttribute(constructorParameterOrderEClass, CONSTRUCTOR_PARAMETER_ORDER__ID); - createEReference(constructorParameterOrderEClass, CONSTRUCTOR_PARAMETER_ORDER__ELEMENT_NAMES); - - elementNameEClass = createEClass(ELEMENT_NAME); - createEAttribute(elementNameEClass, ELEMENT_NAME__ID); - createEAttribute(elementNameEClass, ELEMENT_NAME__TEXT); - - wsdlServiceNameEClass = createEClass(WSDL_SERVICE_NAME); - - portMappingEClass = createEClass(PORT_MAPPING); - createEAttribute(portMappingEClass, PORT_MAPPING__ID); - createEAttribute(portMappingEClass, PORT_MAPPING__PORT_NAME); - createEAttribute(portMappingEClass, PORT_MAPPING__JAVA_PORT_NAME); - - wsdlPortTypeEClass = createEClass(WSDL_PORT_TYPE); - - wsdlBindingEClass = createEClass(WSDL_BINDING); - - serviceEndpointMethodMappingEClass = createEClass(SERVICE_ENDPOINT_METHOD_MAPPING); - createEAttribute(serviceEndpointMethodMappingEClass, SERVICE_ENDPOINT_METHOD_MAPPING__ID); - createEAttribute(serviceEndpointMethodMappingEClass, SERVICE_ENDPOINT_METHOD_MAPPING__JAVA_METHOD_NAME); - createEAttribute(serviceEndpointMethodMappingEClass, SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_OPERATION); - createEAttribute(serviceEndpointMethodMappingEClass, SERVICE_ENDPOINT_METHOD_MAPPING__WRAPPED_ELEMENT); - createEReference(serviceEndpointMethodMappingEClass, SERVICE_ENDPOINT_METHOD_MAPPING__METHOD_PARAM_PARTS_MAPPINGS); - createEReference(serviceEndpointMethodMappingEClass, SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING); - - wsdlOperationEClass = createEClass(WSDL_OPERATION); - createEAttribute(wsdlOperationEClass, WSDL_OPERATION__ID); - createEAttribute(wsdlOperationEClass, WSDL_OPERATION__WSDL_OPERATION); - - methodParamPartsMappingEClass = createEClass(METHOD_PARAM_PARTS_MAPPING); - createEAttribute(methodParamPartsMappingEClass, METHOD_PARAM_PARTS_MAPPING__ID); - createEAttribute(methodParamPartsMappingEClass, METHOD_PARAM_PARTS_MAPPING__PARAM_POSITION); - createEAttribute(methodParamPartsMappingEClass, METHOD_PARAM_PARTS_MAPPING__PARAM_TYPE); - createEReference(methodParamPartsMappingEClass, METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING); - - wsdlReturnValueMappingEClass = createEClass(WSDL_RETURN_VALUE_MAPPING); - createEAttribute(wsdlReturnValueMappingEClass, WSDL_RETURN_VALUE_MAPPING__ID); - createEAttribute(wsdlReturnValueMappingEClass, WSDL_RETURN_VALUE_MAPPING__METHOD_RETURN_VALUE); - createEAttribute(wsdlReturnValueMappingEClass, WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE_PART_NAME); - createEReference(wsdlReturnValueMappingEClass, WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE); - - wsdlMessageMappingEClass = createEClass(WSDL_MESSAGE_MAPPING); - createEAttribute(wsdlMessageMappingEClass, WSDL_MESSAGE_MAPPING__ID); - createEAttribute(wsdlMessageMappingEClass, WSDL_MESSAGE_MAPPING__WSDL_MESSAGE_PART_NAME); - createEAttribute(wsdlMessageMappingEClass, WSDL_MESSAGE_MAPPING__PARAMETER_MODE); - createEAttribute(wsdlMessageMappingEClass, WSDL_MESSAGE_MAPPING__SOAP_HEADER); - createEReference(wsdlMessageMappingEClass, WSDL_MESSAGE_MAPPING__WSDL_MESSAGE); - - wsdlMessagePartNameEClass = createEClass(WSDL_MESSAGE_PART_NAME); - createEAttribute(wsdlMessagePartNameEClass, WSDL_MESSAGE_PART_NAME__ID); - createEAttribute(wsdlMessagePartNameEClass, WSDL_MESSAGE_PART_NAME__WSDL_MESSAGE_PART_NAME); - - interfaceMappingEClass = createEClass(INTERFACE_MAPPING); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); - - // Add supertypes to classes - serviceInterfaceMappingEClass.getESuperTypes().add(this.getInterfaceMapping()); - serviceEndpointInterfaceMappingEClass.getESuperTypes().add(this.getInterfaceMapping()); - rootTypeQnameEClass.getESuperTypes().add(theCommonPackage.getQName()); - wsdlMessageEClass.getESuperTypes().add(theCommonPackage.getQName()); - wsdlServiceNameEClass.getESuperTypes().add(theCommonPackage.getQName()); - wsdlPortTypeEClass.getESuperTypes().add(theCommonPackage.getQName()); - wsdlBindingEClass.getESuperTypes().add(theCommonPackage.getQName()); - - // Initialize classes and features; add operations and parameters - initEClass(javaWSDLMappingEClass, JavaWSDLMapping.class, "JavaWSDLMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getJavaWSDLMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, JavaWSDLMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJavaWSDLMapping_PackageMappings(), this.getPackageMapping(), null, "packageMappings", null, 1, -1, JavaWSDLMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJavaWSDLMapping_JavaXMLTypeMappings(), this.getJavaXMLTypeMapping(), null, "javaXMLTypeMappings", null, 0, -1, JavaWSDLMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJavaWSDLMapping_ExceptionMappings(), this.getExceptionMapping(), null, "exceptionMappings", null, 0, -1, JavaWSDLMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJavaWSDLMapping_InterfaceMappings(), this.getInterfaceMapping(), null, "interfaceMappings", null, 0, -1, JavaWSDLMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(packageMappingEClass, PackageMapping.class, "PackageMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPackageMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, PackageMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPackageMapping_PackageType(), ecorePackage.getEString(), "packageType", null, 0, 1, PackageMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPackageMapping_NamespaceURI(), ecorePackage.getEString(), "namespaceURI", null, 0, 1, PackageMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(javaXMLTypeMappingEClass, JavaXMLTypeMapping.class, "JavaXMLTypeMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getJavaXMLTypeMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, JavaXMLTypeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJavaXMLTypeMapping_ClassType(), ecorePackage.getEString(), "classType", null, 0, 1, JavaXMLTypeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJavaXMLTypeMapping_QnameScope(), ecorePackage.getEString(), "qnameScope", null, 0, 1, JavaXMLTypeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getJavaXMLTypeMapping_AnonymousTypeQname(), ecorePackage.getEString(), "anonymousTypeQname", null, 0, 1, JavaXMLTypeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJavaXMLTypeMapping_RootTypeQname(), this.getRootTypeQname(), null, "rootTypeQname", null, 1, 1, JavaXMLTypeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getJavaXMLTypeMapping_VariableMappings(), this.getVariableMapping(), null, "variableMappings", null, 0, -1, JavaXMLTypeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(exceptionMappingEClass, ExceptionMapping.class, "ExceptionMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getExceptionMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, ExceptionMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getExceptionMapping_ExceptionType(), ecorePackage.getEString(), "exceptionType", null, 0, 1, ExceptionMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getExceptionMapping_WsdlMessagePartName(), ecorePackage.getEString(), "wsdlMessagePartName", null, 0, 1, ExceptionMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getExceptionMapping_WsdlMessage(), this.getWSDLMessage(), null, "wsdlMessage", null, 1, 1, ExceptionMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getExceptionMapping_ConstructorParameterOrder(), this.getConstructorParameterOrder(), null, "constructorParameterOrder", null, 0, 1, ExceptionMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(serviceInterfaceMappingEClass, ServiceInterfaceMapping.class, "ServiceInterfaceMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getServiceInterfaceMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, ServiceInterfaceMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServiceInterfaceMapping_ServiceInterface(), ecorePackage.getEString(), "serviceInterface", null, 0, 1, ServiceInterfaceMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceInterfaceMapping_WsdlServiceName(), this.getWSDLServiceName(), null, "wsdlServiceName", null, 1, 1, ServiceInterfaceMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceInterfaceMapping_PortMappings(), this.getPortMapping(), null, "portMappings", null, 0, -1, ServiceInterfaceMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(serviceEndpointInterfaceMappingEClass, ServiceEndpointInterfaceMapping.class, "ServiceEndpointInterfaceMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getServiceEndpointInterfaceMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, ServiceEndpointInterfaceMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServiceEndpointInterfaceMapping_ServiceEndpointInterface(), ecorePackage.getEString(), "serviceEndpointInterface", null, 0, 1, ServiceEndpointInterfaceMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceEndpointInterfaceMapping_WsdlPortType(), this.getWSDLPortType(), null, "wsdlPortType", null, 1, 1, ServiceEndpointInterfaceMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceEndpointInterfaceMapping_WsdlBinding(), this.getWSDLBinding(), null, "wsdlBinding", null, 1, 1, ServiceEndpointInterfaceMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceEndpointInterfaceMapping_ServiceEndpointMethodMappings(), this.getServiceEndpointMethodMapping(), null, "serviceEndpointMethodMappings", null, 0, -1, ServiceEndpointInterfaceMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(rootTypeQnameEClass, RootTypeQname.class, "RootTypeQname", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(variableMappingEClass, VariableMapping.class, "VariableMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getVariableMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, VariableMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getVariableMapping_JavaVariableName(), ecorePackage.getEString(), "javaVariableName", null, 0, 1, VariableMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getVariableMapping_XmlElementName(), ecorePackage.getEString(), "xmlElementName", null, 0, 1, VariableMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getVariableMapping_DataMember(), ecorePackage.getEBoolean(), "dataMember", null, 0, 1, VariableMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getVariableMapping_XmlAttributeName(), ecorePackage.getEString(), "xmlAttributeName", null, 0, 1, VariableMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getVariableMapping_XmlWildcard(), ecorePackage.getEBoolean(), "xmlWildcard", null, 0, 1, VariableMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(wsdlMessageEClass, WSDLMessage.class, "WSDLMessage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(constructorParameterOrderEClass, ConstructorParameterOrder.class, "ConstructorParameterOrder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getConstructorParameterOrder_Id(), ecorePackage.getEString(), "id", null, 0, 1, ConstructorParameterOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getConstructorParameterOrder_ElementNames(), this.getElementName(), null, "elementNames", null, 1, -1, ConstructorParameterOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(elementNameEClass, ElementName.class, "ElementName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getElementName_Id(), ecorePackage.getEString(), "id", null, 0, 1, ElementName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getElementName_Text(), ecorePackage.getEString(), "text", null, 0, 1, ElementName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(wsdlServiceNameEClass, WSDLServiceName.class, "WSDLServiceName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(portMappingEClass, PortMapping.class, "PortMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPortMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, PortMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPortMapping_PortName(), ecorePackage.getEString(), "portName", null, 0, 1, PortMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPortMapping_JavaPortName(), ecorePackage.getEString(), "javaPortName", null, 0, 1, PortMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(wsdlPortTypeEClass, WSDLPortType.class, "WSDLPortType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(wsdlBindingEClass, WSDLBinding.class, "WSDLBinding", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(serviceEndpointMethodMappingEClass, ServiceEndpointMethodMapping.class, "ServiceEndpointMethodMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getServiceEndpointMethodMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, ServiceEndpointMethodMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServiceEndpointMethodMapping_JavaMethodName(), ecorePackage.getEString(), "javaMethodName", null, 0, 1, ServiceEndpointMethodMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServiceEndpointMethodMapping_WsdlOperation(), ecorePackage.getEString(), "wsdlOperation", null, 0, 1, ServiceEndpointMethodMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServiceEndpointMethodMapping_WrappedElement(), ecorePackage.getEBoolean(), "wrappedElement", null, 0, 1, ServiceEndpointMethodMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceEndpointMethodMapping_MethodParamPartsMappings(), this.getMethodParamPartsMapping(), null, "methodParamPartsMappings", null, 0, -1, ServiceEndpointMethodMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getServiceEndpointMethodMapping_WsdlReturnValueMapping(), this.getWSDLReturnValueMapping(), null, "wsdlReturnValueMapping", null, 0, 1, ServiceEndpointMethodMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(wsdlOperationEClass, WSDLOperation.class, "WSDLOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWSDLOperation_Id(), ecorePackage.getEString(), "id", null, 0, 1, WSDLOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWSDLOperation_WsdlOperation(), ecorePackage.getEString(), "wsdlOperation", null, 0, 1, WSDLOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(methodParamPartsMappingEClass, MethodParamPartsMapping.class, "MethodParamPartsMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMethodParamPartsMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, MethodParamPartsMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMethodParamPartsMapping_ParamPosition(), ecorePackage.getEString(), "paramPosition", null, 0, 1, MethodParamPartsMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMethodParamPartsMapping_ParamType(), ecorePackage.getEString(), "paramType", null, 0, 1, MethodParamPartsMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMethodParamPartsMapping_WsdlMessageMapping(), this.getWSDLMessageMapping(), null, "wsdlMessageMapping", null, 1, 1, MethodParamPartsMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(wsdlReturnValueMappingEClass, WSDLReturnValueMapping.class, "WSDLReturnValueMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWSDLReturnValueMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, WSDLReturnValueMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWSDLReturnValueMapping_MethodReturnValue(), ecorePackage.getEString(), "methodReturnValue", null, 0, 1, WSDLReturnValueMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWSDLReturnValueMapping_WsdlMessagePartName(), ecorePackage.getEString(), "wsdlMessagePartName", null, 0, 1, WSDLReturnValueMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWSDLReturnValueMapping_WsdlMessage(), this.getWSDLMessage(), null, "wsdlMessage", null, 1, 1, WSDLReturnValueMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(wsdlMessageMappingEClass, WSDLMessageMapping.class, "WSDLMessageMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWSDLMessageMapping_Id(), ecorePackage.getEString(), "id", null, 0, 1, WSDLMessageMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWSDLMessageMapping_WsdlMessagePartName(), ecorePackage.getEString(), "wsdlMessagePartName", null, 0, 1, WSDLMessageMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWSDLMessageMapping_ParameterMode(), ecorePackage.getEString(), "parameterMode", null, 0, 1, WSDLMessageMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWSDLMessageMapping_SoapHeader(), ecorePackage.getEBoolean(), "soapHeader", null, 0, 1, WSDLMessageMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getWSDLMessageMapping_WsdlMessage(), this.getWSDLMessage(), null, "wsdlMessage", null, 1, 1, WSDLMessageMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(wsdlMessagePartNameEClass, WSDLMessagePartName.class, "WSDLMessagePartName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWSDLMessagePartName_Id(), ecorePackage.getEString(), "id", null, 0, 1, WSDLMessagePartName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWSDLMessagePartName_WsdlMessagePartName(), ecorePackage.getEString(), "wsdlMessagePartName", null, 0, 1, WSDLMessagePartName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(interfaceMappingEClass, InterfaceMapping.class, "InterfaceMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - } - -} //JaxrpcmapPackageImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JaxrpcmapResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JaxrpcmapResourceImpl.java deleted file mode 100644 index ab78fec18..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/JaxrpcmapResourceImpl.java +++ /dev/null @@ -1,173 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - - -import org.eclipse.emf.common.util.URI; -import org.eclipse.jst.j2ee.common.internal.impl.XMLResourceImpl; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.j2ee.internal.model.translator.webservices.JaxrpcmapTranslator; -import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapResource; -import org.eclipse.wst.common.internal.emf.resource.Renderer; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -public class JaxrpcmapResourceImpl extends XMLResourceImpl implements JaxrpcmapResource -{ - public JaxrpcmapResourceImpl(Renderer aRenderer) { - super(aRenderer); - } - - public JaxrpcmapResourceImpl(URI uri, Renderer aRenderer) { - super(uri, aRenderer); - } - - /** - * Return the first element in the EList. - */ - public JavaWSDLMapping getJavaWSDLMapping() { - return (JavaWSDLMapping) getRootObject(); - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#getRootTranslator() - */ - public Translator getRootTranslator() { - return JaxrpcmapTranslator.INSTANCE; - } - - /** - * @see org.eclipse.jst.j2ee.internal.common.XMLResource#getType() - */ - public int getType() { - return JAXRPC_MAP_TYPE; - } - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.TranslatorResource#getDoctype() - */ - public String getDoctype() - { - switch (getJ2EEVersionID()) - { - case (J2EE_1_2_ID) : - case (J2EE_1_3_ID) : - return WebServiceConstants.JAXRPCMAP_DOCTYPE; - default : - return null; - } - } - - - public boolean isJaxrpcmap1_0() - { - return (getModuleVersionID()==WebServiceConstants.WEBSERVICE_1_0_ID); - } - - public boolean isJaxrpcmap1_1() - { - return (getModuleVersionID()==WebServiceConstants.WEBSERVICE_1_1_ID) ; - } - - - /* - * This directly sets the module version id - */ - public void setModuleVersionID(int id) { - super.setVersionID(id); - switch (id) { - case (WebServiceConstants.WEBSERVICE_1_1_ID) : - super.setDoctypeValues(null, null); - break; - case (WebServiceConstants.WEBSERVICE_1_0_ID) : - super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - break; - } - } - /* - * Based on the J2EE version, this will set the module version - */ - public void setJ2EEVersionID(int id) - { - switch (id) { - case (J2EE_1_4_ID) : - primSetDoctypeValues(null, null); - primSetVersionID(WebServiceConstants.WEBSERVICE_1_1_ID); - break; - case (J2EE_1_3_ID) : - primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID()); - primSetVersionID(WebServiceConstants.WEBSERVICE_1_0_ID); - break; - case (J2EE_1_2_ID) : - primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID()); - primSetVersionID(WebServiceConstants.WEBSERVICE_1_0_ID); - } - - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_PublicID() - */ - public String getJ2EE_1_2_PublicID() { - return WebServiceConstants.JAXRPCMAP_PUBLICID; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_SystemID() - */ - public String getJ2EE_1_2_SystemID() { - return WebServiceConstants.JAXRPCMAP_SYSTEMID; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_PublicID() - */ - public String getJ2EE_1_3_PublicID() { - return WebServiceConstants.JAXRPCMAP_PUBLICID; - } - - /* (non-Javadoc) - * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID() - */ - public String getJ2EE_1_3_SystemID() { - return WebServiceConstants.JAXRPCMAP_SYSTEMID; - } - - /* Return J2EE version based on module version - */ - public int getJ2EEVersionID() { - switch (getModuleVersionID()) { - case WebServiceConstants.WEBSERVICE_1_0_ID: - return J2EEVersionConstants.J2EE_1_3_ID; - case WebServiceConstants.WEBSERVICE_1_1_ID : - return J2EEVersionConstants.J2EE_1_4_ID; - default : - return J2EEVersionConstants.J2EE_1_4_ID; - } - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#getDefaultVersionID() - */ - protected int getDefaultVersionID() { - return WebServiceConstants.WEBSERVICE_1_1_ID; - } - - protected void syncVersionOfRootObject() - { - //Do nothing for now since the root object does not have a version. - } - - -} - diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/MethodParamPartsMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/MethodParamPartsMappingImpl.java deleted file mode 100644 index a00628de9..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/MethodParamPartsMappingImpl.java +++ /dev/null @@ -1,356 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Method Param Parts Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.MethodParamPartsMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.MethodParamPartsMappingImpl#getParamPosition <em>Param Position</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.MethodParamPartsMappingImpl#getParamType <em>Param Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.MethodParamPartsMappingImpl#getWsdlMessageMapping <em>Wsdl Message Mapping</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MethodParamPartsMappingImpl extends EObjectImpl implements MethodParamPartsMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getParamPosition() <em>Param Position</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamPosition() - * @generated - * @ordered - */ - protected static final String PARAM_POSITION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getParamPosition() <em>Param Position</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamPosition() - * @generated - * @ordered - */ - protected String paramPosition = PARAM_POSITION_EDEFAULT; - - /** - * The default value of the '{@link #getParamType() <em>Param Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamType() - * @generated - * @ordered - */ - protected static final String PARAM_TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getParamType() <em>Param Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParamType() - * @generated - * @ordered - */ - protected String paramType = PARAM_TYPE_EDEFAULT; - - /** - * The cached value of the '{@link #getWsdlMessageMapping() <em>Wsdl Message Mapping</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessageMapping() - * @generated - * @ordered - */ - protected WSDLMessageMapping wsdlMessageMapping = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MethodParamPartsMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getMethodParamPartsMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getParamPosition() { - return paramPosition; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParamPosition(String newParamPosition) { - String oldParamPosition = paramPosition; - paramPosition = newParamPosition; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_POSITION, oldParamPosition, paramPosition)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getParamType() { - return paramType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParamType(String newParamType) { - String oldParamType = paramType; - paramType = newParamType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_TYPE, oldParamType, paramType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLMessageMapping getWsdlMessageMapping() { - return wsdlMessageMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWsdlMessageMapping(WSDLMessageMapping newWsdlMessageMapping, NotificationChain msgs) { - WSDLMessageMapping oldWsdlMessageMapping = wsdlMessageMapping; - wsdlMessageMapping = newWsdlMessageMapping; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING, oldWsdlMessageMapping, newWsdlMessageMapping); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlMessageMapping(WSDLMessageMapping newWsdlMessageMapping) { - if (newWsdlMessageMapping != wsdlMessageMapping) { - NotificationChain msgs = null; - if (wsdlMessageMapping != null) - msgs = ((InternalEObject)wsdlMessageMapping).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING, null, msgs); - if (newWsdlMessageMapping != null) - msgs = ((InternalEObject)newWsdlMessageMapping).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING, null, msgs); - msgs = basicSetWsdlMessageMapping(newWsdlMessageMapping, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING, newWsdlMessageMapping, newWsdlMessageMapping)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING: - return basicSetWsdlMessageMapping(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_POSITION: - return getParamPosition(); - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_TYPE: - return getParamType(); - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING: - return getWsdlMessageMapping(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_POSITION: - setParamPosition((String)newValue); - return; - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_TYPE: - setParamType((String)newValue); - return; - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING: - setWsdlMessageMapping((WSDLMessageMapping)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_POSITION: - setParamPosition(PARAM_POSITION_EDEFAULT); - return; - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_TYPE: - setParamType(PARAM_TYPE_EDEFAULT); - return; - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING: - setWsdlMessageMapping((WSDLMessageMapping)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_POSITION: - return PARAM_POSITION_EDEFAULT == null ? paramPosition != null : !PARAM_POSITION_EDEFAULT.equals(paramPosition); - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_TYPE: - return PARAM_TYPE_EDEFAULT == null ? paramType != null : !PARAM_TYPE_EDEFAULT.equals(paramType); - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING: - return wsdlMessageMapping != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", paramPosition: "); - result.append(paramPosition); - result.append(", paramType: "); - result.append(paramType); - result.append(')'); - return result.toString(); - } - -} //MethodParamPartsMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/PackageMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/PackageMappingImpl.java deleted file mode 100644 index fdce857b5..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/PackageMappingImpl.java +++ /dev/null @@ -1,272 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Package Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.PackageMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.PackageMappingImpl#getPackageType <em>Package Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.PackageMappingImpl#getNamespaceURI <em>Namespace URI</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class PackageMappingImpl extends EObjectImpl implements PackageMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getPackageType() <em>Package Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPackageType() - * @generated - * @ordered - */ - protected static final String PACKAGE_TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPackageType() <em>Package Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPackageType() - * @generated - * @ordered - */ - protected String packageType = PACKAGE_TYPE_EDEFAULT; - - /** - * The default value of the '{@link #getNamespaceURI() <em>Namespace URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getNamespaceURI() - * @generated - * @ordered - */ - protected static final String NAMESPACE_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNamespaceURI() <em>Namespace URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getNamespaceURI() - * @generated - * @ordered - */ - protected String namespaceURI = NAMESPACE_URI_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PackageMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getPackageMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.PACKAGE_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getPackageType() { - return packageType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPackageType(String newPackageType) { - String oldPackageType = packageType; - packageType = newPackageType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.PACKAGE_MAPPING__PACKAGE_TYPE, oldPackageType, packageType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getNamespaceURI() { - return namespaceURI; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setNamespaceURI(String newNamespaceURI) { - String oldNamespaceURI = namespaceURI; - namespaceURI = newNamespaceURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.PACKAGE_MAPPING__NAMESPACE_URI, oldNamespaceURI, namespaceURI)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.PACKAGE_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.PACKAGE_MAPPING__PACKAGE_TYPE: - return getPackageType(); - case JaxrpcmapPackage.PACKAGE_MAPPING__NAMESPACE_URI: - return getNamespaceURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.PACKAGE_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.PACKAGE_MAPPING__PACKAGE_TYPE: - setPackageType((String)newValue); - return; - case JaxrpcmapPackage.PACKAGE_MAPPING__NAMESPACE_URI: - setNamespaceURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.PACKAGE_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.PACKAGE_MAPPING__PACKAGE_TYPE: - setPackageType(PACKAGE_TYPE_EDEFAULT); - return; - case JaxrpcmapPackage.PACKAGE_MAPPING__NAMESPACE_URI: - setNamespaceURI(NAMESPACE_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.PACKAGE_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.PACKAGE_MAPPING__PACKAGE_TYPE: - return PACKAGE_TYPE_EDEFAULT == null ? packageType != null : !PACKAGE_TYPE_EDEFAULT.equals(packageType); - case JaxrpcmapPackage.PACKAGE_MAPPING__NAMESPACE_URI: - return NAMESPACE_URI_EDEFAULT == null ? namespaceURI != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", packageType: "); - result.append(packageType); - result.append(", namespaceURI: "); - result.append(namespaceURI); - result.append(')'); - return result.toString(); - } - -} //PackageMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/PortMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/PortMappingImpl.java deleted file mode 100644 index 062428c6d..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/PortMappingImpl.java +++ /dev/null @@ -1,272 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Port Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.PortMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.PortMappingImpl#getPortName <em>Port Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.PortMappingImpl#getJavaPortName <em>Java Port Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class PortMappingImpl extends EObjectImpl implements PortMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getPortName() <em>Port Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortName() - * @generated - * @ordered - */ - protected static final String PORT_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPortName() <em>Port Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortName() - * @generated - * @ordered - */ - protected String portName = PORT_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getJavaPortName() <em>Java Port Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJavaPortName() - * @generated - * @ordered - */ - protected static final String JAVA_PORT_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getJavaPortName() <em>Java Port Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJavaPortName() - * @generated - * @ordered - */ - protected String javaPortName = JAVA_PORT_NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PortMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getPortMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.PORT_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getPortName() { - return portName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPortName(String newPortName) { - String oldPortName = portName; - portName = newPortName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.PORT_MAPPING__PORT_NAME, oldPortName, portName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getJavaPortName() { - return javaPortName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setJavaPortName(String newJavaPortName) { - String oldJavaPortName = javaPortName; - javaPortName = newJavaPortName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.PORT_MAPPING__JAVA_PORT_NAME, oldJavaPortName, javaPortName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.PORT_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.PORT_MAPPING__PORT_NAME: - return getPortName(); - case JaxrpcmapPackage.PORT_MAPPING__JAVA_PORT_NAME: - return getJavaPortName(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.PORT_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.PORT_MAPPING__PORT_NAME: - setPortName((String)newValue); - return; - case JaxrpcmapPackage.PORT_MAPPING__JAVA_PORT_NAME: - setJavaPortName((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.PORT_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.PORT_MAPPING__PORT_NAME: - setPortName(PORT_NAME_EDEFAULT); - return; - case JaxrpcmapPackage.PORT_MAPPING__JAVA_PORT_NAME: - setJavaPortName(JAVA_PORT_NAME_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.PORT_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.PORT_MAPPING__PORT_NAME: - return PORT_NAME_EDEFAULT == null ? portName != null : !PORT_NAME_EDEFAULT.equals(portName); - case JaxrpcmapPackage.PORT_MAPPING__JAVA_PORT_NAME: - return JAVA_PORT_NAME_EDEFAULT == null ? javaPortName != null : !JAVA_PORT_NAME_EDEFAULT.equals(javaPortName); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", portName: "); - result.append(portName); - result.append(", javaPortName: "); - result.append(javaPortName); - result.append(')'); - return result.toString(); - } - -} //PortMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/RootTypeQnameImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/RootTypeQnameImpl.java deleted file mode 100644 index e98bea656..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/RootTypeQnameImpl.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.internal.impl.QNameImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Root Type Qname</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class RootTypeQnameImpl extends QNameImpl implements RootTypeQname -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected RootTypeQnameImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getRootTypeQname(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.ROOT_TYPE_QNAME__NAMESPACE_URI: - return getNamespaceURI(); - case JaxrpcmapPackage.ROOT_TYPE_QNAME__LOCAL_PART: - return getLocalPart(); - case JaxrpcmapPackage.ROOT_TYPE_QNAME__COMBINED_QNAME: - return getCombinedQName(); - case JaxrpcmapPackage.ROOT_TYPE_QNAME__INTERNAL_PREFIX_OR_NS_URI: - return getInternalPrefixOrNsURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.ROOT_TYPE_QNAME__NAMESPACE_URI: - setNamespaceURI((String)newValue); - return; - case JaxrpcmapPackage.ROOT_TYPE_QNAME__LOCAL_PART: - setLocalPart((String)newValue); - return; - case JaxrpcmapPackage.ROOT_TYPE_QNAME__COMBINED_QNAME: - setCombinedQName((String)newValue); - return; - case JaxrpcmapPackage.ROOT_TYPE_QNAME__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.ROOT_TYPE_QNAME__NAMESPACE_URI: - setNamespaceURI(NAMESPACE_URI_EDEFAULT); - return; - case JaxrpcmapPackage.ROOT_TYPE_QNAME__LOCAL_PART: - setLocalPart(LOCAL_PART_EDEFAULT); - return; - case JaxrpcmapPackage.ROOT_TYPE_QNAME__COMBINED_QNAME: - setCombinedQName(COMBINED_QNAME_EDEFAULT); - return; - case JaxrpcmapPackage.ROOT_TYPE_QNAME__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI(INTERNAL_PREFIX_OR_NS_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.ROOT_TYPE_QNAME__NAMESPACE_URI: - return NAMESPACE_URI_EDEFAULT == null ? namespaceURI != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI); - case JaxrpcmapPackage.ROOT_TYPE_QNAME__LOCAL_PART: - return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart); - case JaxrpcmapPackage.ROOT_TYPE_QNAME__COMBINED_QNAME: - return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName); - case JaxrpcmapPackage.ROOT_TYPE_QNAME__INTERNAL_PREFIX_OR_NS_URI: - return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI); - } - return eDynamicIsSet(eFeature); - } - -} //RootTypeQnameImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ServiceEndpointInterfaceMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ServiceEndpointInterfaceMappingImpl.java deleted file mode 100644 index a04fc2ad7..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ServiceEndpointInterfaceMappingImpl.java +++ /dev/null @@ -1,410 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Service Endpoint Interface Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointInterfaceMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointInterfaceMappingImpl#getServiceEndpointInterface <em>Service Endpoint Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointInterfaceMappingImpl#getWsdlPortType <em>Wsdl Port Type</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointInterfaceMappingImpl#getWsdlBinding <em>Wsdl Binding</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointInterfaceMappingImpl#getServiceEndpointMethodMappings <em>Service Endpoint Method Mappings</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ServiceEndpointInterfaceMappingImpl extends InterfaceMappingImpl implements ServiceEndpointInterfaceMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getServiceEndpointInterface() <em>Service Endpoint Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceEndpointInterface() - * @generated - * @ordered - */ - protected static final String SERVICE_ENDPOINT_INTERFACE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getServiceEndpointInterface() <em>Service Endpoint Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceEndpointInterface() - * @generated - * @ordered - */ - protected String serviceEndpointInterface = SERVICE_ENDPOINT_INTERFACE_EDEFAULT; - - /** - * The cached value of the '{@link #getWsdlPortType() <em>Wsdl Port Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlPortType() - * @generated - * @ordered - */ - protected WSDLPortType wsdlPortType = null; - - /** - * The cached value of the '{@link #getWsdlBinding() <em>Wsdl Binding</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlBinding() - * @generated - * @ordered - */ - protected WSDLBinding wsdlBinding = null; - - /** - * The cached value of the '{@link #getServiceEndpointMethodMappings() <em>Service Endpoint Method Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceEndpointMethodMappings() - * @generated - * @ordered - */ - protected EList serviceEndpointMethodMappings = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ServiceEndpointInterfaceMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getServiceEndpointInterface() { - return serviceEndpointInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServiceEndpointInterface(String newServiceEndpointInterface) { - String oldServiceEndpointInterface = serviceEndpointInterface; - serviceEndpointInterface = newServiceEndpointInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_INTERFACE, oldServiceEndpointInterface, serviceEndpointInterface)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLPortType getWsdlPortType() { - return wsdlPortType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWsdlPortType(WSDLPortType newWsdlPortType, NotificationChain msgs) { - WSDLPortType oldWsdlPortType = wsdlPortType; - wsdlPortType = newWsdlPortType; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE, oldWsdlPortType, newWsdlPortType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlPortType(WSDLPortType newWsdlPortType) { - if (newWsdlPortType != wsdlPortType) { - NotificationChain msgs = null; - if (wsdlPortType != null) - msgs = ((InternalEObject)wsdlPortType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE, null, msgs); - if (newWsdlPortType != null) - msgs = ((InternalEObject)newWsdlPortType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE, null, msgs); - msgs = basicSetWsdlPortType(newWsdlPortType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE, newWsdlPortType, newWsdlPortType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLBinding getWsdlBinding() { - return wsdlBinding; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWsdlBinding(WSDLBinding newWsdlBinding, NotificationChain msgs) { - WSDLBinding oldWsdlBinding = wsdlBinding; - wsdlBinding = newWsdlBinding; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING, oldWsdlBinding, newWsdlBinding); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlBinding(WSDLBinding newWsdlBinding) { - if (newWsdlBinding != wsdlBinding) { - NotificationChain msgs = null; - if (wsdlBinding != null) - msgs = ((InternalEObject)wsdlBinding).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING, null, msgs); - if (newWsdlBinding != null) - msgs = ((InternalEObject)newWsdlBinding).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING, null, msgs); - msgs = basicSetWsdlBinding(newWsdlBinding, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING, newWsdlBinding, newWsdlBinding)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getServiceEndpointMethodMappings() { - if (serviceEndpointMethodMappings == null) { - serviceEndpointMethodMappings = new EObjectContainmentEList(ServiceEndpointMethodMapping.class, this, JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_METHOD_MAPPINGS); - } - return serviceEndpointMethodMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE: - return basicSetWsdlPortType(null, msgs); - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING: - return basicSetWsdlBinding(null, msgs); - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_METHOD_MAPPINGS: - return ((InternalEList)getServiceEndpointMethodMappings()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_INTERFACE: - return getServiceEndpointInterface(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE: - return getWsdlPortType(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING: - return getWsdlBinding(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_METHOD_MAPPINGS: - return getServiceEndpointMethodMappings(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_INTERFACE: - setServiceEndpointInterface((String)newValue); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE: - setWsdlPortType((WSDLPortType)newValue); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING: - setWsdlBinding((WSDLBinding)newValue); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_METHOD_MAPPINGS: - getServiceEndpointMethodMappings().clear(); - getServiceEndpointMethodMappings().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_INTERFACE: - setServiceEndpointInterface(SERVICE_ENDPOINT_INTERFACE_EDEFAULT); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE: - setWsdlPortType((WSDLPortType)null); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING: - setWsdlBinding((WSDLBinding)null); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_METHOD_MAPPINGS: - getServiceEndpointMethodMappings().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_INTERFACE: - return SERVICE_ENDPOINT_INTERFACE_EDEFAULT == null ? serviceEndpointInterface != null : !SERVICE_ENDPOINT_INTERFACE_EDEFAULT.equals(serviceEndpointInterface); - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE: - return wsdlPortType != null; - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING: - return wsdlBinding != null; - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_METHOD_MAPPINGS: - return serviceEndpointMethodMappings != null && !serviceEndpointMethodMappings.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", serviceEndpointInterface: "); - result.append(serviceEndpointInterface); - result.append(')'); - return result.toString(); - } - -} //ServiceEndpointInterfaceMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ServiceEndpointMethodMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ServiceEndpointMethodMappingImpl.java deleted file mode 100644 index d4f16c4d8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ServiceEndpointMethodMappingImpl.java +++ /dev/null @@ -1,486 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Service Endpoint Method Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointMethodMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointMethodMappingImpl#getJavaMethodName <em>Java Method Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointMethodMappingImpl#getWsdlOperation <em>Wsdl Operation</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointMethodMappingImpl#isWrappedElement <em>Wrapped Element</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointMethodMappingImpl#getMethodParamPartsMappings <em>Method Param Parts Mappings</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceEndpointMethodMappingImpl#getWsdlReturnValueMapping <em>Wsdl Return Value Mapping</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ServiceEndpointMethodMappingImpl extends EObjectImpl implements ServiceEndpointMethodMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getJavaMethodName() <em>Java Method Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJavaMethodName() - * @generated - * @ordered - */ - protected static final String JAVA_METHOD_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getJavaMethodName() <em>Java Method Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJavaMethodName() - * @generated - * @ordered - */ - protected String javaMethodName = JAVA_METHOD_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getWsdlOperation() <em>Wsdl Operation</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlOperation() - * @generated - * @ordered - */ - protected static final String WSDL_OPERATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWsdlOperation() <em>Wsdl Operation</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlOperation() - * @generated - * @ordered - */ - protected String wsdlOperation = WSDL_OPERATION_EDEFAULT; - - /** - * The default value of the '{@link #isWrappedElement() <em>Wrapped Element</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isWrappedElement() - * @generated - * @ordered - */ - protected static final boolean WRAPPED_ELEMENT_EDEFAULT = false; - - /** - * The cached value of the '{@link #isWrappedElement() <em>Wrapped Element</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isWrappedElement() - * @generated - * @ordered - */ - protected boolean wrappedElement = WRAPPED_ELEMENT_EDEFAULT; - - /** - * This is true if the Wrapped Element attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean wrappedElementESet = false; - - /** - * The cached value of the '{@link #getMethodParamPartsMappings() <em>Method Param Parts Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMethodParamPartsMappings() - * @generated - * @ordered - */ - protected EList methodParamPartsMappings = null; - - /** - * The cached value of the '{@link #getWsdlReturnValueMapping() <em>Wsdl Return Value Mapping</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlReturnValueMapping() - * @generated - * @ordered - */ - protected WSDLReturnValueMapping wsdlReturnValueMapping = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ServiceEndpointMethodMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getServiceEndpointMethodMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getJavaMethodName() { - return javaMethodName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setJavaMethodName(String newJavaMethodName) { - String oldJavaMethodName = javaMethodName; - javaMethodName = newJavaMethodName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__JAVA_METHOD_NAME, oldJavaMethodName, javaMethodName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWsdlOperation() { - return wsdlOperation; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlOperation(String newWsdlOperation) { - String oldWsdlOperation = wsdlOperation; - wsdlOperation = newWsdlOperation; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_OPERATION, oldWsdlOperation, wsdlOperation)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isWrappedElement() { - return wrappedElement; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWrappedElement(boolean newWrappedElement) { - boolean oldWrappedElement = wrappedElement; - wrappedElement = newWrappedElement; - boolean oldWrappedElementESet = wrappedElementESet; - wrappedElementESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WRAPPED_ELEMENT, oldWrappedElement, wrappedElement, !oldWrappedElementESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetWrappedElement() { - boolean oldWrappedElement = wrappedElement; - boolean oldWrappedElementESet = wrappedElementESet; - wrappedElement = WRAPPED_ELEMENT_EDEFAULT; - wrappedElementESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WRAPPED_ELEMENT, oldWrappedElement, WRAPPED_ELEMENT_EDEFAULT, oldWrappedElementESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetWrappedElement() { - return wrappedElementESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getMethodParamPartsMappings() { - if (methodParamPartsMappings == null) { - methodParamPartsMappings = new EObjectContainmentEList(MethodParamPartsMapping.class, this, JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__METHOD_PARAM_PARTS_MAPPINGS); - } - return methodParamPartsMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLReturnValueMapping getWsdlReturnValueMapping() { - return wsdlReturnValueMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWsdlReturnValueMapping(WSDLReturnValueMapping newWsdlReturnValueMapping, NotificationChain msgs) { - WSDLReturnValueMapping oldWsdlReturnValueMapping = wsdlReturnValueMapping; - wsdlReturnValueMapping = newWsdlReturnValueMapping; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING, oldWsdlReturnValueMapping, newWsdlReturnValueMapping); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlReturnValueMapping(WSDLReturnValueMapping newWsdlReturnValueMapping) { - if (newWsdlReturnValueMapping != wsdlReturnValueMapping) { - NotificationChain msgs = null; - if (wsdlReturnValueMapping != null) - msgs = ((InternalEObject)wsdlReturnValueMapping).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING, null, msgs); - if (newWsdlReturnValueMapping != null) - msgs = ((InternalEObject)newWsdlReturnValueMapping).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING, null, msgs); - msgs = basicSetWsdlReturnValueMapping(newWsdlReturnValueMapping, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING, newWsdlReturnValueMapping, newWsdlReturnValueMapping)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__METHOD_PARAM_PARTS_MAPPINGS: - return ((InternalEList)getMethodParamPartsMappings()).basicRemove(otherEnd, msgs); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING: - return basicSetWsdlReturnValueMapping(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__JAVA_METHOD_NAME: - return getJavaMethodName(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_OPERATION: - return getWsdlOperation(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WRAPPED_ELEMENT: - return isWrappedElement() ? Boolean.TRUE : Boolean.FALSE; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__METHOD_PARAM_PARTS_MAPPINGS: - return getMethodParamPartsMappings(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING: - return getWsdlReturnValueMapping(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__JAVA_METHOD_NAME: - setJavaMethodName((String)newValue); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_OPERATION: - setWsdlOperation((String)newValue); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WRAPPED_ELEMENT: - setWrappedElement(((Boolean)newValue).booleanValue()); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__METHOD_PARAM_PARTS_MAPPINGS: - getMethodParamPartsMappings().clear(); - getMethodParamPartsMappings().addAll((Collection)newValue); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING: - setWsdlReturnValueMapping((WSDLReturnValueMapping)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__JAVA_METHOD_NAME: - setJavaMethodName(JAVA_METHOD_NAME_EDEFAULT); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_OPERATION: - setWsdlOperation(WSDL_OPERATION_EDEFAULT); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WRAPPED_ELEMENT: - unsetWrappedElement(); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__METHOD_PARAM_PARTS_MAPPINGS: - getMethodParamPartsMappings().clear(); - return; - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING: - setWsdlReturnValueMapping((WSDLReturnValueMapping)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__JAVA_METHOD_NAME: - return JAVA_METHOD_NAME_EDEFAULT == null ? javaMethodName != null : !JAVA_METHOD_NAME_EDEFAULT.equals(javaMethodName); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_OPERATION: - return WSDL_OPERATION_EDEFAULT == null ? wsdlOperation != null : !WSDL_OPERATION_EDEFAULT.equals(wsdlOperation); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WRAPPED_ELEMENT: - return isSetWrappedElement(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__METHOD_PARAM_PARTS_MAPPINGS: - return methodParamPartsMappings != null && !methodParamPartsMappings.isEmpty(); - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING: - return wsdlReturnValueMapping != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", javaMethodName: "); - result.append(javaMethodName); - result.append(", wsdlOperation: "); - result.append(wsdlOperation); - result.append(", wrappedElement: "); - if (wrappedElementESet) result.append(wrappedElement); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} //ServiceEndpointMethodMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ServiceInterfaceMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ServiceInterfaceMappingImpl.java deleted file mode 100644 index 6c3eb1eca..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/ServiceInterfaceMappingImpl.java +++ /dev/null @@ -1,343 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Service Interface Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceInterfaceMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceInterfaceMappingImpl#getServiceInterface <em>Service Interface</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceInterfaceMappingImpl#getWsdlServiceName <em>Wsdl Service Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.ServiceInterfaceMappingImpl#getPortMappings <em>Port Mappings</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ServiceInterfaceMappingImpl extends InterfaceMappingImpl implements ServiceInterfaceMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getServiceInterface() <em>Service Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceInterface() - * @generated - * @ordered - */ - protected static final String SERVICE_INTERFACE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getServiceInterface() <em>Service Interface</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServiceInterface() - * @generated - * @ordered - */ - protected String serviceInterface = SERVICE_INTERFACE_EDEFAULT; - - /** - * The cached value of the '{@link #getWsdlServiceName() <em>Wsdl Service Name</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlServiceName() - * @generated - * @ordered - */ - protected WSDLServiceName wsdlServiceName = null; - - /** - * The cached value of the '{@link #getPortMappings() <em>Port Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPortMappings() - * @generated - * @ordered - */ - protected EList portMappings = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ServiceInterfaceMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getServiceInterfaceMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getServiceInterface() { - return serviceInterface; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServiceInterface(String newServiceInterface) { - String oldServiceInterface = serviceInterface; - serviceInterface = newServiceInterface; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__SERVICE_INTERFACE, oldServiceInterface, serviceInterface)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLServiceName getWsdlServiceName() { - return wsdlServiceName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWsdlServiceName(WSDLServiceName newWsdlServiceName, NotificationChain msgs) { - WSDLServiceName oldWsdlServiceName = wsdlServiceName; - wsdlServiceName = newWsdlServiceName; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME, oldWsdlServiceName, newWsdlServiceName); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlServiceName(WSDLServiceName newWsdlServiceName) { - if (newWsdlServiceName != wsdlServiceName) { - NotificationChain msgs = null; - if (wsdlServiceName != null) - msgs = ((InternalEObject)wsdlServiceName).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME, null, msgs); - if (newWsdlServiceName != null) - msgs = ((InternalEObject)newWsdlServiceName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME, null, msgs); - msgs = basicSetWsdlServiceName(newWsdlServiceName, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME, newWsdlServiceName, newWsdlServiceName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getPortMappings() { - if (portMappings == null) { - portMappings = new EObjectContainmentEList(PortMapping.class, this, JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__PORT_MAPPINGS); - } - return portMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME: - return basicSetWsdlServiceName(null, msgs); - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__PORT_MAPPINGS: - return ((InternalEList)getPortMappings()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__SERVICE_INTERFACE: - return getServiceInterface(); - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME: - return getWsdlServiceName(); - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__PORT_MAPPINGS: - return getPortMappings(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__SERVICE_INTERFACE: - setServiceInterface((String)newValue); - return; - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME: - setWsdlServiceName((WSDLServiceName)newValue); - return; - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__PORT_MAPPINGS: - getPortMappings().clear(); - getPortMappings().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__SERVICE_INTERFACE: - setServiceInterface(SERVICE_INTERFACE_EDEFAULT); - return; - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME: - setWsdlServiceName((WSDLServiceName)null); - return; - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__PORT_MAPPINGS: - getPortMappings().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__SERVICE_INTERFACE: - return SERVICE_INTERFACE_EDEFAULT == null ? serviceInterface != null : !SERVICE_INTERFACE_EDEFAULT.equals(serviceInterface); - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME: - return wsdlServiceName != null; - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__PORT_MAPPINGS: - return portMappings != null && !portMappings.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", serviceInterface: "); - result.append(serviceInterface); - result.append(')'); - return result.toString(); - } - -} //ServiceInterfaceMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/VariableMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/VariableMappingImpl.java deleted file mode 100644 index 4be70cf38..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/VariableMappingImpl.java +++ /dev/null @@ -1,502 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Variable Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.VariableMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.VariableMappingImpl#getJavaVariableName <em>Java Variable Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.VariableMappingImpl#getXmlElementName <em>Xml Element Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.VariableMappingImpl#isDataMember <em>Data Member</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.VariableMappingImpl#getXmlAttributeName <em>Xml Attribute Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.VariableMappingImpl#isXmlWildcard <em>Xml Wildcard</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class VariableMappingImpl extends EObjectImpl implements VariableMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getJavaVariableName() <em>Java Variable Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJavaVariableName() - * @generated - * @ordered - */ - protected static final String JAVA_VARIABLE_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getJavaVariableName() <em>Java Variable Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJavaVariableName() - * @generated - * @ordered - */ - protected String javaVariableName = JAVA_VARIABLE_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getXmlElementName() <em>Xml Element Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getXmlElementName() - * @generated - * @ordered - */ - protected static final String XML_ELEMENT_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getXmlElementName() <em>Xml Element Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getXmlElementName() - * @generated - * @ordered - */ - protected String xmlElementName = XML_ELEMENT_NAME_EDEFAULT; - - /** - * The default value of the '{@link #isDataMember() <em>Data Member</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isDataMember() - * @generated - * @ordered - */ - protected static final boolean DATA_MEMBER_EDEFAULT = false; - - /** - * The cached value of the '{@link #isDataMember() <em>Data Member</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isDataMember() - * @generated - * @ordered - */ - protected boolean dataMember = DATA_MEMBER_EDEFAULT; - - /** - * This is true if the Data Member attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean dataMemberESet = false; - - /** - * The default value of the '{@link #getXmlAttributeName() <em>Xml Attribute Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getXmlAttributeName() - * @generated - * @ordered - */ - protected static final String XML_ATTRIBUTE_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getXmlAttributeName() <em>Xml Attribute Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getXmlAttributeName() - * @generated - * @ordered - */ - protected String xmlAttributeName = XML_ATTRIBUTE_NAME_EDEFAULT; - - /** - * The default value of the '{@link #isXmlWildcard() <em>Xml Wildcard</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isXmlWildcard() - * @generated - * @ordered - */ - protected static final boolean XML_WILDCARD_EDEFAULT = false; - - /** - * The cached value of the '{@link #isXmlWildcard() <em>Xml Wildcard</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isXmlWildcard() - * @generated - * @ordered - */ - protected boolean xmlWildcard = XML_WILDCARD_EDEFAULT; - - /** - * This is true if the Xml Wildcard attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean xmlWildcardESet = false; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected VariableMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getVariableMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.VARIABLE_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getJavaVariableName() { - return javaVariableName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setJavaVariableName(String newJavaVariableName) { - String oldJavaVariableName = javaVariableName; - javaVariableName = newJavaVariableName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.VARIABLE_MAPPING__JAVA_VARIABLE_NAME, oldJavaVariableName, javaVariableName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getXmlElementName() { - return xmlElementName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setXmlElementName(String newXmlElementName) { - String oldXmlElementName = xmlElementName; - xmlElementName = newXmlElementName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.VARIABLE_MAPPING__XML_ELEMENT_NAME, oldXmlElementName, xmlElementName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isDataMember() { - return dataMember; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDataMember(boolean newDataMember) { - boolean oldDataMember = dataMember; - dataMember = newDataMember; - boolean oldDataMemberESet = dataMemberESet; - dataMemberESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.VARIABLE_MAPPING__DATA_MEMBER, oldDataMember, dataMember, !oldDataMemberESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetDataMember() { - boolean oldDataMember = dataMember; - boolean oldDataMemberESet = dataMemberESet; - dataMember = DATA_MEMBER_EDEFAULT; - dataMemberESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JaxrpcmapPackage.VARIABLE_MAPPING__DATA_MEMBER, oldDataMember, DATA_MEMBER_EDEFAULT, oldDataMemberESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetDataMember() { - return dataMemberESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getXmlAttributeName() { - return xmlAttributeName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setXmlAttributeName(String newXmlAttributeName) { - String oldXmlAttributeName = xmlAttributeName; - xmlAttributeName = newXmlAttributeName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.VARIABLE_MAPPING__XML_ATTRIBUTE_NAME, oldXmlAttributeName, xmlAttributeName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isXmlWildcard() { - return xmlWildcard; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setXmlWildcard(boolean newXmlWildcard) { - boolean oldXmlWildcard = xmlWildcard; - xmlWildcard = newXmlWildcard; - boolean oldXmlWildcardESet = xmlWildcardESet; - xmlWildcardESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.VARIABLE_MAPPING__XML_WILDCARD, oldXmlWildcard, xmlWildcard, !oldXmlWildcardESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetXmlWildcard() { - boolean oldXmlWildcard = xmlWildcard; - boolean oldXmlWildcardESet = xmlWildcardESet; - xmlWildcard = XML_WILDCARD_EDEFAULT; - xmlWildcardESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JaxrpcmapPackage.VARIABLE_MAPPING__XML_WILDCARD, oldXmlWildcard, XML_WILDCARD_EDEFAULT, oldXmlWildcardESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetXmlWildcard() { - return xmlWildcardESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.VARIABLE_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.VARIABLE_MAPPING__JAVA_VARIABLE_NAME: - return getJavaVariableName(); - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_ELEMENT_NAME: - return getXmlElementName(); - case JaxrpcmapPackage.VARIABLE_MAPPING__DATA_MEMBER: - return isDataMember() ? Boolean.TRUE : Boolean.FALSE; - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_ATTRIBUTE_NAME: - return getXmlAttributeName(); - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_WILDCARD: - return isXmlWildcard() ? Boolean.TRUE : Boolean.FALSE; - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.VARIABLE_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.VARIABLE_MAPPING__JAVA_VARIABLE_NAME: - setJavaVariableName((String)newValue); - return; - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_ELEMENT_NAME: - setXmlElementName((String)newValue); - return; - case JaxrpcmapPackage.VARIABLE_MAPPING__DATA_MEMBER: - setDataMember(((Boolean)newValue).booleanValue()); - return; - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_ATTRIBUTE_NAME: - setXmlAttributeName((String)newValue); - return; - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_WILDCARD: - setXmlWildcard(((Boolean)newValue).booleanValue()); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.VARIABLE_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.VARIABLE_MAPPING__JAVA_VARIABLE_NAME: - setJavaVariableName(JAVA_VARIABLE_NAME_EDEFAULT); - return; - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_ELEMENT_NAME: - setXmlElementName(XML_ELEMENT_NAME_EDEFAULT); - return; - case JaxrpcmapPackage.VARIABLE_MAPPING__DATA_MEMBER: - unsetDataMember(); - return; - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_ATTRIBUTE_NAME: - setXmlAttributeName(XML_ATTRIBUTE_NAME_EDEFAULT); - return; - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_WILDCARD: - unsetXmlWildcard(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.VARIABLE_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.VARIABLE_MAPPING__JAVA_VARIABLE_NAME: - return JAVA_VARIABLE_NAME_EDEFAULT == null ? javaVariableName != null : !JAVA_VARIABLE_NAME_EDEFAULT.equals(javaVariableName); - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_ELEMENT_NAME: - return XML_ELEMENT_NAME_EDEFAULT == null ? xmlElementName != null : !XML_ELEMENT_NAME_EDEFAULT.equals(xmlElementName); - case JaxrpcmapPackage.VARIABLE_MAPPING__DATA_MEMBER: - return isSetDataMember(); - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_ATTRIBUTE_NAME: - return XML_ATTRIBUTE_NAME_EDEFAULT == null ? xmlAttributeName != null : !XML_ATTRIBUTE_NAME_EDEFAULT.equals(xmlAttributeName); - case JaxrpcmapPackage.VARIABLE_MAPPING__XML_WILDCARD: - return isSetXmlWildcard(); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", javaVariableName: "); - result.append(javaVariableName); - result.append(", xmlElementName: "); - result.append(xmlElementName); - result.append(", dataMember: "); - if (dataMemberESet) result.append(dataMember); else result.append("<unset>"); - result.append(", xmlAttributeName: "); - result.append(xmlAttributeName); - result.append(", xmlWildcard: "); - if (xmlWildcardESet) result.append(xmlWildcard); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} //VariableMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLBindingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLBindingImpl.java deleted file mode 100644 index d5216f15e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLBindingImpl.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.internal.impl.QNameImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>WSDL Binding</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class WSDLBindingImpl extends QNameImpl implements WSDLBinding -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WSDLBindingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getWSDLBinding(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_BINDING__NAMESPACE_URI: - return getNamespaceURI(); - case JaxrpcmapPackage.WSDL_BINDING__LOCAL_PART: - return getLocalPart(); - case JaxrpcmapPackage.WSDL_BINDING__COMBINED_QNAME: - return getCombinedQName(); - case JaxrpcmapPackage.WSDL_BINDING__INTERNAL_PREFIX_OR_NS_URI: - return getInternalPrefixOrNsURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_BINDING__NAMESPACE_URI: - setNamespaceURI((String)newValue); - return; - case JaxrpcmapPackage.WSDL_BINDING__LOCAL_PART: - setLocalPart((String)newValue); - return; - case JaxrpcmapPackage.WSDL_BINDING__COMBINED_QNAME: - setCombinedQName((String)newValue); - return; - case JaxrpcmapPackage.WSDL_BINDING__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_BINDING__NAMESPACE_URI: - setNamespaceURI(NAMESPACE_URI_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_BINDING__LOCAL_PART: - setLocalPart(LOCAL_PART_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_BINDING__COMBINED_QNAME: - setCombinedQName(COMBINED_QNAME_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_BINDING__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI(INTERNAL_PREFIX_OR_NS_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_BINDING__NAMESPACE_URI: - return NAMESPACE_URI_EDEFAULT == null ? namespaceURI != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI); - case JaxrpcmapPackage.WSDL_BINDING__LOCAL_PART: - return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart); - case JaxrpcmapPackage.WSDL_BINDING__COMBINED_QNAME: - return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName); - case JaxrpcmapPackage.WSDL_BINDING__INTERNAL_PREFIX_OR_NS_URI: - return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI); - } - return eDynamicIsSet(eFeature); - } - -} //WSDLBindingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLMessageImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLMessageImpl.java deleted file mode 100644 index 349694742..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLMessageImpl.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.internal.impl.QNameImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>WSDL Message</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class WSDLMessageImpl extends QNameImpl implements WSDLMessage -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WSDLMessageImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getWSDLMessage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE__NAMESPACE_URI: - return getNamespaceURI(); - case JaxrpcmapPackage.WSDL_MESSAGE__LOCAL_PART: - return getLocalPart(); - case JaxrpcmapPackage.WSDL_MESSAGE__COMBINED_QNAME: - return getCombinedQName(); - case JaxrpcmapPackage.WSDL_MESSAGE__INTERNAL_PREFIX_OR_NS_URI: - return getInternalPrefixOrNsURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE__NAMESPACE_URI: - setNamespaceURI((String)newValue); - return; - case JaxrpcmapPackage.WSDL_MESSAGE__LOCAL_PART: - setLocalPart((String)newValue); - return; - case JaxrpcmapPackage.WSDL_MESSAGE__COMBINED_QNAME: - setCombinedQName((String)newValue); - return; - case JaxrpcmapPackage.WSDL_MESSAGE__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE__NAMESPACE_URI: - setNamespaceURI(NAMESPACE_URI_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_MESSAGE__LOCAL_PART: - setLocalPart(LOCAL_PART_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_MESSAGE__COMBINED_QNAME: - setCombinedQName(COMBINED_QNAME_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_MESSAGE__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI(INTERNAL_PREFIX_OR_NS_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE__NAMESPACE_URI: - return NAMESPACE_URI_EDEFAULT == null ? namespaceURI != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI); - case JaxrpcmapPackage.WSDL_MESSAGE__LOCAL_PART: - return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart); - case JaxrpcmapPackage.WSDL_MESSAGE__COMBINED_QNAME: - return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName); - case JaxrpcmapPackage.WSDL_MESSAGE__INTERNAL_PREFIX_OR_NS_URI: - return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI); - } - return eDynamicIsSet(eFeature); - } - -} //WSDLMessageImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLMessageMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLMessageMappingImpl.java deleted file mode 100644 index b131ad69e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLMessageMappingImpl.java +++ /dev/null @@ -1,444 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>WSDL Message Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessageMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessageMappingImpl#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessageMappingImpl#getParameterMode <em>Parameter Mode</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessageMappingImpl#isSoapHeader <em>Soap Header</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessageMappingImpl#getWsdlMessage <em>Wsdl Message</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WSDLMessageMappingImpl extends EObjectImpl implements WSDLMessageMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getWsdlMessagePartName() <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessagePartName() - * @generated - * @ordered - */ - protected static final String WSDL_MESSAGE_PART_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWsdlMessagePartName() <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessagePartName() - * @generated - * @ordered - */ - protected String wsdlMessagePartName = WSDL_MESSAGE_PART_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getParameterMode() <em>Parameter Mode</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParameterMode() - * @generated - * @ordered - */ - protected static final String PARAMETER_MODE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getParameterMode() <em>Parameter Mode</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getParameterMode() - * @generated - * @ordered - */ - protected String parameterMode = PARAMETER_MODE_EDEFAULT; - - /** - * The default value of the '{@link #isSoapHeader() <em>Soap Header</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSoapHeader() - * @generated - * @ordered - */ - protected static final boolean SOAP_HEADER_EDEFAULT = false; - - /** - * The cached value of the '{@link #isSoapHeader() <em>Soap Header</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSoapHeader() - * @generated - * @ordered - */ - protected boolean soapHeader = SOAP_HEADER_EDEFAULT; - - /** - * This is true if the Soap Header attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean soapHeaderESet = false; - - /** - * The cached value of the '{@link #getWsdlMessage() <em>Wsdl Message</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessage() - * @generated - * @ordered - */ - protected WSDLMessage wsdlMessage = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WSDLMessageMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getWSDLMessageMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWsdlMessagePartName() { - return wsdlMessagePartName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlMessagePartName(String newWsdlMessagePartName) { - String oldWsdlMessagePartName = wsdlMessagePartName; - wsdlMessagePartName = newWsdlMessagePartName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE_PART_NAME, oldWsdlMessagePartName, wsdlMessagePartName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getParameterMode() { - return parameterMode; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParameterMode(String newParameterMode) { - String oldParameterMode = parameterMode; - parameterMode = newParameterMode; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__PARAMETER_MODE, oldParameterMode, parameterMode)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSoapHeader() { - return soapHeader; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSoapHeader(boolean newSoapHeader) { - boolean oldSoapHeader = soapHeader; - soapHeader = newSoapHeader; - boolean oldSoapHeaderESet = soapHeaderESet; - soapHeaderESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__SOAP_HEADER, oldSoapHeader, soapHeader, !oldSoapHeaderESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetSoapHeader() { - boolean oldSoapHeader = soapHeader; - boolean oldSoapHeaderESet = soapHeaderESet; - soapHeader = SOAP_HEADER_EDEFAULT; - soapHeaderESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__SOAP_HEADER, oldSoapHeader, SOAP_HEADER_EDEFAULT, oldSoapHeaderESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetSoapHeader() { - return soapHeaderESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLMessage getWsdlMessage() { - return wsdlMessage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWsdlMessage(WSDLMessage newWsdlMessage, NotificationChain msgs) { - WSDLMessage oldWsdlMessage = wsdlMessage; - wsdlMessage = newWsdlMessage; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE, oldWsdlMessage, newWsdlMessage); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlMessage(WSDLMessage newWsdlMessage) { - if (newWsdlMessage != wsdlMessage) { - NotificationChain msgs = null; - if (wsdlMessage != null) - msgs = ((InternalEObject)wsdlMessage).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE, null, msgs); - if (newWsdlMessage != null) - msgs = ((InternalEObject)newWsdlMessage).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE, null, msgs); - msgs = basicSetWsdlMessage(newWsdlMessage, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE, newWsdlMessage, newWsdlMessage)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE: - return basicSetWsdlMessage(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE_PART_NAME: - return getWsdlMessagePartName(); - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__PARAMETER_MODE: - return getParameterMode(); - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__SOAP_HEADER: - return isSoapHeader() ? Boolean.TRUE : Boolean.FALSE; - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE: - return getWsdlMessage(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE_PART_NAME: - setWsdlMessagePartName((String)newValue); - return; - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__PARAMETER_MODE: - setParameterMode((String)newValue); - return; - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__SOAP_HEADER: - setSoapHeader(((Boolean)newValue).booleanValue()); - return; - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE: - setWsdlMessage((WSDLMessage)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE_PART_NAME: - setWsdlMessagePartName(WSDL_MESSAGE_PART_NAME_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__PARAMETER_MODE: - setParameterMode(PARAMETER_MODE_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__SOAP_HEADER: - unsetSoapHeader(); - return; - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE: - setWsdlMessage((WSDLMessage)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE_PART_NAME: - return WSDL_MESSAGE_PART_NAME_EDEFAULT == null ? wsdlMessagePartName != null : !WSDL_MESSAGE_PART_NAME_EDEFAULT.equals(wsdlMessagePartName); - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__PARAMETER_MODE: - return PARAMETER_MODE_EDEFAULT == null ? parameterMode != null : !PARAMETER_MODE_EDEFAULT.equals(parameterMode); - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__SOAP_HEADER: - return isSetSoapHeader(); - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE: - return wsdlMessage != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", wsdlMessagePartName: "); - result.append(wsdlMessagePartName); - result.append(", parameterMode: "); - result.append(parameterMode); - result.append(", soapHeader: "); - if (soapHeaderESet) result.append(soapHeader); else result.append("<unset>"); - result.append(')'); - return result.toString(); - } - -} //WSDLMessageMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLMessagePartNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLMessagePartNameImpl.java deleted file mode 100644 index 8e9019b9f..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLMessagePartNameImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>WSDL Message Part Name</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessagePartNameImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLMessagePartNameImpl#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WSDLMessagePartNameImpl extends EObjectImpl implements WSDLMessagePartName -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getWsdlMessagePartName() <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessagePartName() - * @generated - * @ordered - */ - protected static final String WSDL_MESSAGE_PART_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWsdlMessagePartName() <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessagePartName() - * @generated - * @ordered - */ - protected String wsdlMessagePartName = WSDL_MESSAGE_PART_NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WSDLMessagePartNameImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getWSDLMessagePartName(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWsdlMessagePartName() { - return wsdlMessagePartName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlMessagePartName(String newWsdlMessagePartName) { - String oldWsdlMessagePartName = wsdlMessagePartName; - wsdlMessagePartName = newWsdlMessagePartName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__WSDL_MESSAGE_PART_NAME, oldWsdlMessagePartName, wsdlMessagePartName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__ID: - return getId(); - case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__WSDL_MESSAGE_PART_NAME: - return getWsdlMessagePartName(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__WSDL_MESSAGE_PART_NAME: - setWsdlMessagePartName((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__WSDL_MESSAGE_PART_NAME: - setWsdlMessagePartName(WSDL_MESSAGE_PART_NAME_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__WSDL_MESSAGE_PART_NAME: - return WSDL_MESSAGE_PART_NAME_EDEFAULT == null ? wsdlMessagePartName != null : !WSDL_MESSAGE_PART_NAME_EDEFAULT.equals(wsdlMessagePartName); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", wsdlMessagePartName: "); - result.append(wsdlMessagePartName); - result.append(')'); - return result.toString(); - } - -} //WSDLMessagePartNameImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLOperationImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLOperationImpl.java deleted file mode 100644 index e86751b25..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLOperationImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>WSDL Operation</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLOperationImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLOperationImpl#getWsdlOperation <em>Wsdl Operation</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WSDLOperationImpl extends EObjectImpl implements WSDLOperation -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getWsdlOperation() <em>Wsdl Operation</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlOperation() - * @generated - * @ordered - */ - protected static final String WSDL_OPERATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWsdlOperation() <em>Wsdl Operation</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlOperation() - * @generated - * @ordered - */ - protected String wsdlOperation = WSDL_OPERATION_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WSDLOperationImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getWSDLOperation(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_OPERATION__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWsdlOperation() { - return wsdlOperation; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlOperation(String newWsdlOperation) { - String oldWsdlOperation = wsdlOperation; - wsdlOperation = newWsdlOperation; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_OPERATION__WSDL_OPERATION, oldWsdlOperation, wsdlOperation)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_OPERATION__ID: - return getId(); - case JaxrpcmapPackage.WSDL_OPERATION__WSDL_OPERATION: - return getWsdlOperation(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_OPERATION__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.WSDL_OPERATION__WSDL_OPERATION: - setWsdlOperation((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_OPERATION__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_OPERATION__WSDL_OPERATION: - setWsdlOperation(WSDL_OPERATION_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_OPERATION__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.WSDL_OPERATION__WSDL_OPERATION: - return WSDL_OPERATION_EDEFAULT == null ? wsdlOperation != null : !WSDL_OPERATION_EDEFAULT.equals(wsdlOperation); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", wsdlOperation: "); - result.append(wsdlOperation); - result.append(')'); - return result.toString(); - } - -} //WSDLOperationImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLPortTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLPortTypeImpl.java deleted file mode 100644 index 847aa5e03..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLPortTypeImpl.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.internal.impl.QNameImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>WSDL Port Type</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class WSDLPortTypeImpl extends QNameImpl implements WSDLPortType -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WSDLPortTypeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getWSDLPortType(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_PORT_TYPE__NAMESPACE_URI: - return getNamespaceURI(); - case JaxrpcmapPackage.WSDL_PORT_TYPE__LOCAL_PART: - return getLocalPart(); - case JaxrpcmapPackage.WSDL_PORT_TYPE__COMBINED_QNAME: - return getCombinedQName(); - case JaxrpcmapPackage.WSDL_PORT_TYPE__INTERNAL_PREFIX_OR_NS_URI: - return getInternalPrefixOrNsURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_PORT_TYPE__NAMESPACE_URI: - setNamespaceURI((String)newValue); - return; - case JaxrpcmapPackage.WSDL_PORT_TYPE__LOCAL_PART: - setLocalPart((String)newValue); - return; - case JaxrpcmapPackage.WSDL_PORT_TYPE__COMBINED_QNAME: - setCombinedQName((String)newValue); - return; - case JaxrpcmapPackage.WSDL_PORT_TYPE__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_PORT_TYPE__NAMESPACE_URI: - setNamespaceURI(NAMESPACE_URI_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_PORT_TYPE__LOCAL_PART: - setLocalPart(LOCAL_PART_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_PORT_TYPE__COMBINED_QNAME: - setCombinedQName(COMBINED_QNAME_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_PORT_TYPE__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI(INTERNAL_PREFIX_OR_NS_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_PORT_TYPE__NAMESPACE_URI: - return NAMESPACE_URI_EDEFAULT == null ? namespaceURI != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI); - case JaxrpcmapPackage.WSDL_PORT_TYPE__LOCAL_PART: - return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart); - case JaxrpcmapPackage.WSDL_PORT_TYPE__COMBINED_QNAME: - return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName); - case JaxrpcmapPackage.WSDL_PORT_TYPE__INTERNAL_PREFIX_OR_NS_URI: - return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI); - } - return eDynamicIsSet(eFeature); - } - -} //WSDLPortTypeImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLReturnValueMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLReturnValueMappingImpl.java deleted file mode 100644 index ac5247b5b..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLReturnValueMappingImpl.java +++ /dev/null @@ -1,356 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>WSDL Return Value Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLReturnValueMappingImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLReturnValueMappingImpl#getMethodReturnValue <em>Method Return Value</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLReturnValueMappingImpl#getWsdlMessagePartName <em>Wsdl Message Part Name</em>}</li> - * <li>{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl.WSDLReturnValueMappingImpl#getWsdlMessage <em>Wsdl Message</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WSDLReturnValueMappingImpl extends EObjectImpl implements WSDLReturnValueMapping -{ - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getMethodReturnValue() <em>Method Return Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMethodReturnValue() - * @generated - * @ordered - */ - protected static final String METHOD_RETURN_VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getMethodReturnValue() <em>Method Return Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMethodReturnValue() - * @generated - * @ordered - */ - protected String methodReturnValue = METHOD_RETURN_VALUE_EDEFAULT; - - /** - * The default value of the '{@link #getWsdlMessagePartName() <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessagePartName() - * @generated - * @ordered - */ - protected static final String WSDL_MESSAGE_PART_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWsdlMessagePartName() <em>Wsdl Message Part Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessagePartName() - * @generated - * @ordered - */ - protected String wsdlMessagePartName = WSDL_MESSAGE_PART_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getWsdlMessage() <em>Wsdl Message</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWsdlMessage() - * @generated - * @ordered - */ - protected WSDLMessage wsdlMessage = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WSDLReturnValueMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getWSDLReturnValueMapping(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getMethodReturnValue() { - return methodReturnValue; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMethodReturnValue(String newMethodReturnValue) { - String oldMethodReturnValue = methodReturnValue; - methodReturnValue = newMethodReturnValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__METHOD_RETURN_VALUE, oldMethodReturnValue, methodReturnValue)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWsdlMessagePartName() { - return wsdlMessagePartName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlMessagePartName(String newWsdlMessagePartName) { - String oldWsdlMessagePartName = wsdlMessagePartName; - wsdlMessagePartName = newWsdlMessagePartName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE_PART_NAME, oldWsdlMessagePartName, wsdlMessagePartName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WSDLMessage getWsdlMessage() { - return wsdlMessage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWsdlMessage(WSDLMessage newWsdlMessage, NotificationChain msgs) { - WSDLMessage oldWsdlMessage = wsdlMessage; - wsdlMessage = newWsdlMessage; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE, oldWsdlMessage, newWsdlMessage); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWsdlMessage(WSDLMessage newWsdlMessage) { - if (newWsdlMessage != wsdlMessage) { - NotificationChain msgs = null; - if (wsdlMessage != null) - msgs = ((InternalEObject)wsdlMessage).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE, null, msgs); - if (newWsdlMessage != null) - msgs = ((InternalEObject)newWsdlMessage).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE, null, msgs); - msgs = basicSetWsdlMessage(newWsdlMessage, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE, newWsdlMessage, newWsdlMessage)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE: - return basicSetWsdlMessage(null, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__ID: - return getId(); - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__METHOD_RETURN_VALUE: - return getMethodReturnValue(); - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE_PART_NAME: - return getWsdlMessagePartName(); - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE: - return getWsdlMessage(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__ID: - setId((String)newValue); - return; - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__METHOD_RETURN_VALUE: - setMethodReturnValue((String)newValue); - return; - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE_PART_NAME: - setWsdlMessagePartName((String)newValue); - return; - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE: - setWsdlMessage((WSDLMessage)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__ID: - setId(ID_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__METHOD_RETURN_VALUE: - setMethodReturnValue(METHOD_RETURN_VALUE_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE_PART_NAME: - setWsdlMessagePartName(WSDL_MESSAGE_PART_NAME_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE: - setWsdlMessage((WSDLMessage)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__METHOD_RETURN_VALUE: - return METHOD_RETURN_VALUE_EDEFAULT == null ? methodReturnValue != null : !METHOD_RETURN_VALUE_EDEFAULT.equals(methodReturnValue); - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE_PART_NAME: - return WSDL_MESSAGE_PART_NAME_EDEFAULT == null ? wsdlMessagePartName != null : !WSDL_MESSAGE_PART_NAME_EDEFAULT.equals(wsdlMessagePartName); - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE: - return wsdlMessage != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); - result.append(id); - result.append(", methodReturnValue: "); - result.append(methodReturnValue); - result.append(", wsdlMessagePartName: "); - result.append(wsdlMessagePartName); - result.append(')'); - return result.toString(); - } - -} //WSDLReturnValueMappingImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLServiceNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLServiceNameImpl.java deleted file mode 100644 index bcf33e59a..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/impl/WSDLServiceNameImpl.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.j2ee.common.internal.impl.QNameImpl; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>WSDL Service Name</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class WSDLServiceNameImpl extends QNameImpl implements WSDLServiceName -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WSDLServiceNameImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JaxrpcmapPackage.eINSTANCE.getWSDLServiceName(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_SERVICE_NAME__NAMESPACE_URI: - return getNamespaceURI(); - case JaxrpcmapPackage.WSDL_SERVICE_NAME__LOCAL_PART: - return getLocalPart(); - case JaxrpcmapPackage.WSDL_SERVICE_NAME__COMBINED_QNAME: - return getCombinedQName(); - case JaxrpcmapPackage.WSDL_SERVICE_NAME__INTERNAL_PREFIX_OR_NS_URI: - return getInternalPrefixOrNsURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_SERVICE_NAME__NAMESPACE_URI: - setNamespaceURI((String)newValue); - return; - case JaxrpcmapPackage.WSDL_SERVICE_NAME__LOCAL_PART: - setLocalPart((String)newValue); - return; - case JaxrpcmapPackage.WSDL_SERVICE_NAME__COMBINED_QNAME: - setCombinedQName((String)newValue); - return; - case JaxrpcmapPackage.WSDL_SERVICE_NAME__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_SERVICE_NAME__NAMESPACE_URI: - setNamespaceURI(NAMESPACE_URI_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_SERVICE_NAME__LOCAL_PART: - setLocalPart(LOCAL_PART_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_SERVICE_NAME__COMBINED_QNAME: - setCombinedQName(COMBINED_QNAME_EDEFAULT); - return; - case JaxrpcmapPackage.WSDL_SERVICE_NAME__INTERNAL_PREFIX_OR_NS_URI: - setInternalPrefixOrNsURI(INTERNAL_PREFIX_OR_NS_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JaxrpcmapPackage.WSDL_SERVICE_NAME__NAMESPACE_URI: - return NAMESPACE_URI_EDEFAULT == null ? namespaceURI != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI); - case JaxrpcmapPackage.WSDL_SERVICE_NAME__LOCAL_PART: - return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart); - case JaxrpcmapPackage.WSDL_SERVICE_NAME__COMBINED_QNAME: - return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName); - case JaxrpcmapPackage.WSDL_SERVICE_NAME__INTERNAL_PREFIX_OR_NS_URI: - return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI); - } - return eDynamicIsSet(eFeature); - } - -} //WSDLServiceNameImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/util/JaxrpcmapAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/util/JaxrpcmapAdapterFactory.java deleted file mode 100644 index a8419f4e6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/util/JaxrpcmapAdapterFactory.java +++ /dev/null @@ -1,521 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName; - - -/** - * <!-- begin-user-doc --> - * The <b>Adapter Factory</b> for the model. - * It provides an adapter <code>createXXX</code> method for each class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage - * @generated - */ -public class JaxrpcmapAdapterFactory extends AdapterFactoryImpl -{ - - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static JaxrpcmapPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JaxrpcmapAdapterFactory() { - if (modelPackage == null) { - modelPackage = JaxrpcmapPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * <!-- begin-user-doc --> - * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. - * <!-- end-user-doc --> - * @return whether this factory is applicable for the type of the object. - * @generated - */ - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected JaxrpcmapSwitch modelSwitch = - new JaxrpcmapSwitch() { - public Object caseJavaWSDLMapping(JavaWSDLMapping object) { - return createJavaWSDLMappingAdapter(); - } - public Object casePackageMapping(PackageMapping object) { - return createPackageMappingAdapter(); - } - public Object caseJavaXMLTypeMapping(JavaXMLTypeMapping object) { - return createJavaXMLTypeMappingAdapter(); - } - public Object caseExceptionMapping(ExceptionMapping object) { - return createExceptionMappingAdapter(); - } - public Object caseServiceInterfaceMapping(ServiceInterfaceMapping object) { - return createServiceInterfaceMappingAdapter(); - } - public Object caseServiceEndpointInterfaceMapping(ServiceEndpointInterfaceMapping object) { - return createServiceEndpointInterfaceMappingAdapter(); - } - public Object caseRootTypeQname(RootTypeQname object) { - return createRootTypeQnameAdapter(); - } - public Object caseVariableMapping(VariableMapping object) { - return createVariableMappingAdapter(); - } - public Object caseWSDLMessage(WSDLMessage object) { - return createWSDLMessageAdapter(); - } - public Object caseConstructorParameterOrder(ConstructorParameterOrder object) { - return createConstructorParameterOrderAdapter(); - } - public Object caseElementName(ElementName object) { - return createElementNameAdapter(); - } - public Object caseWSDLServiceName(WSDLServiceName object) { - return createWSDLServiceNameAdapter(); - } - public Object casePortMapping(PortMapping object) { - return createPortMappingAdapter(); - } - public Object caseWSDLPortType(WSDLPortType object) { - return createWSDLPortTypeAdapter(); - } - public Object caseWSDLBinding(WSDLBinding object) { - return createWSDLBindingAdapter(); - } - public Object caseServiceEndpointMethodMapping(ServiceEndpointMethodMapping object) { - return createServiceEndpointMethodMappingAdapter(); - } - public Object caseWSDLOperation(WSDLOperation object) { - return createWSDLOperationAdapter(); - } - public Object caseMethodParamPartsMapping(MethodParamPartsMapping object) { - return createMethodParamPartsMappingAdapter(); - } - public Object caseWSDLReturnValueMapping(WSDLReturnValueMapping object) { - return createWSDLReturnValueMappingAdapter(); - } - public Object caseWSDLMessageMapping(WSDLMessageMapping object) { - return createWSDLMessageMappingAdapter(); - } - public Object caseWSDLMessagePartName(WSDLMessagePartName object) { - return createWSDLMessagePartNameAdapter(); - } - public Object caseInterfaceMapping(InterfaceMapping object) { - return createInterfaceMappingAdapter(); - } - public Object caseQName(QName object) { - return createQNameAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param target the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping <em>Java WSDL Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping - * @generated - */ - public Adapter createJavaWSDLMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping <em>Package Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping - * @generated - */ - public Adapter createPackageMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping <em>Java XML Type Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping - * @generated - */ - public Adapter createJavaXMLTypeMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping <em>Exception Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping - * @generated - */ - public Adapter createExceptionMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping <em>Service Interface Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping - * @generated - */ - public Adapter createServiceInterfaceMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping <em>Service Endpoint Interface Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping - * @generated - */ - public Adapter createServiceEndpointInterfaceMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname <em>Root Type Qname</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname - * @generated - */ - public Adapter createRootTypeQnameAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping <em>Variable Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping - * @generated - */ - public Adapter createVariableMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage <em>WSDL Message</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage - * @generated - */ - public Adapter createWSDLMessageAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder <em>Constructor Parameter Order</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder - * @generated - */ - public Adapter createConstructorParameterOrderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName <em>Element Name</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName - * @generated - */ - public Adapter createElementNameAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName <em>WSDL Service Name</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName - * @generated - */ - public Adapter createWSDLServiceNameAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping <em>Port Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping - * @generated - */ - public Adapter createPortMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType <em>WSDL Port Type</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType - * @generated - */ - public Adapter createWSDLPortTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding <em>WSDL Binding</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding - * @generated - */ - public Adapter createWSDLBindingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping <em>Service Endpoint Method Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping - * @generated - */ - public Adapter createServiceEndpointMethodMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation <em>WSDL Operation</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation - * @generated - */ - public Adapter createWSDLOperationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping <em>Method Param Parts Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping - * @generated - */ - public Adapter createMethodParamPartsMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping <em>WSDL Return Value Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping - * @generated - */ - public Adapter createWSDLReturnValueMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping <em>WSDL Message Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping - * @generated - */ - public Adapter createWSDLMessageMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName <em>WSDL Message Part Name</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName - * @generated - */ - public Adapter createWSDLMessagePartNameAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping <em>Interface Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping - * @generated - */ - public Adapter createInterfaceMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.QName <em>QName</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.j2ee.common.QName - * @generated - */ - public Adapter createQNameAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //JaxrpcmapAdapterFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/util/JaxrpcmapSwitch.java b/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/util/JaxrpcmapSwitch.java deleted file mode 100644 index b43e55738..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/webservices/org/eclipse/jst/j2ee/webservice/jaxrpcmap/internal/util/JaxrpcmapSwitch.java +++ /dev/null @@ -1,621 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jst.j2ee.common.QName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.InterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping; -import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName; - - - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage - * @generated - */ -public class JaxrpcmapSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static JaxrpcmapPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public JaxrpcmapSwitch() { - if (modelPackage == null) { - modelPackage = JaxrpcmapPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case JaxrpcmapPackage.JAVA_WSDL_MAPPING: { - JavaWSDLMapping javaWSDLMapping = (JavaWSDLMapping)theEObject; - Object result = caseJavaWSDLMapping(javaWSDLMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.PACKAGE_MAPPING: { - PackageMapping packageMapping = (PackageMapping)theEObject; - Object result = casePackageMapping(packageMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING: { - JavaXMLTypeMapping javaXMLTypeMapping = (JavaXMLTypeMapping)theEObject; - Object result = caseJavaXMLTypeMapping(javaXMLTypeMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.EXCEPTION_MAPPING: { - ExceptionMapping exceptionMapping = (ExceptionMapping)theEObject; - Object result = caseExceptionMapping(exceptionMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING: { - ServiceInterfaceMapping serviceInterfaceMapping = (ServiceInterfaceMapping)theEObject; - Object result = caseServiceInterfaceMapping(serviceInterfaceMapping); - if (result == null) result = caseInterfaceMapping(serviceInterfaceMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING: { - ServiceEndpointInterfaceMapping serviceEndpointInterfaceMapping = (ServiceEndpointInterfaceMapping)theEObject; - Object result = caseServiceEndpointInterfaceMapping(serviceEndpointInterfaceMapping); - if (result == null) result = caseInterfaceMapping(serviceEndpointInterfaceMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.ROOT_TYPE_QNAME: { - RootTypeQname rootTypeQname = (RootTypeQname)theEObject; - Object result = caseRootTypeQname(rootTypeQname); - if (result == null) result = caseQName(rootTypeQname); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.VARIABLE_MAPPING: { - VariableMapping variableMapping = (VariableMapping)theEObject; - Object result = caseVariableMapping(variableMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.WSDL_MESSAGE: { - WSDLMessage wsdlMessage = (WSDLMessage)theEObject; - Object result = caseWSDLMessage(wsdlMessage); - if (result == null) result = caseQName(wsdlMessage); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER: { - ConstructorParameterOrder constructorParameterOrder = (ConstructorParameterOrder)theEObject; - Object result = caseConstructorParameterOrder(constructorParameterOrder); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.ELEMENT_NAME: { - ElementName elementName = (ElementName)theEObject; - Object result = caseElementName(elementName); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.WSDL_SERVICE_NAME: { - WSDLServiceName wsdlServiceName = (WSDLServiceName)theEObject; - Object result = caseWSDLServiceName(wsdlServiceName); - if (result == null) result = caseQName(wsdlServiceName); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.PORT_MAPPING: { - PortMapping portMapping = (PortMapping)theEObject; - Object result = casePortMapping(portMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.WSDL_PORT_TYPE: { - WSDLPortType wsdlPortType = (WSDLPortType)theEObject; - Object result = caseWSDLPortType(wsdlPortType); - if (result == null) result = caseQName(wsdlPortType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.WSDL_BINDING: { - WSDLBinding wsdlBinding = (WSDLBinding)theEObject; - Object result = caseWSDLBinding(wsdlBinding); - if (result == null) result = caseQName(wsdlBinding); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING: { - ServiceEndpointMethodMapping serviceEndpointMethodMapping = (ServiceEndpointMethodMapping)theEObject; - Object result = caseServiceEndpointMethodMapping(serviceEndpointMethodMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.WSDL_OPERATION: { - WSDLOperation wsdlOperation = (WSDLOperation)theEObject; - Object result = caseWSDLOperation(wsdlOperation); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING: { - MethodParamPartsMapping methodParamPartsMapping = (MethodParamPartsMapping)theEObject; - Object result = caseMethodParamPartsMapping(methodParamPartsMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING: { - WSDLReturnValueMapping wsdlReturnValueMapping = (WSDLReturnValueMapping)theEObject; - Object result = caseWSDLReturnValueMapping(wsdlReturnValueMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING: { - WSDLMessageMapping wsdlMessageMapping = (WSDLMessageMapping)theEObject; - Object result = caseWSDLMessageMapping(wsdlMessageMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME: { - WSDLMessagePartName wsdlMessagePartName = (WSDLMessagePartName)theEObject; - Object result = caseWSDLMessagePartName(wsdlMessagePartName); - if (result == null) result = defaultCase(theEObject); - return result; - } - case JaxrpcmapPackage.INTERFACE_MAPPING: { - InterfaceMapping interfaceMapping = (InterfaceMapping)theEObject; - Object result = caseInterfaceMapping(interfaceMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Java WSDL Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Java WSDL Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseJavaWSDLMapping(JavaWSDLMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Package Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Package Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object casePackageMapping(PackageMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Java XML Type Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Java XML Type Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseJavaXMLTypeMapping(JavaXMLTypeMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Exception Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Exception Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseExceptionMapping(ExceptionMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Service Interface Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Service Interface Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseServiceInterfaceMapping(ServiceInterfaceMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Service Endpoint Interface Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Service Endpoint Interface Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseServiceEndpointInterfaceMapping(ServiceEndpointInterfaceMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Root Type Qname</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Root Type Qname</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseRootTypeQname(RootTypeQname object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Variable Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Variable Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseVariableMapping(VariableMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>WSDL Message</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>WSDL Message</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLMessage(WSDLMessage object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Constructor Parameter Order</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Constructor Parameter Order</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseConstructorParameterOrder(ConstructorParameterOrder object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Element Name</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Element Name</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseElementName(ElementName object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>WSDL Service Name</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>WSDL Service Name</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLServiceName(WSDLServiceName object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Port Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Port Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object casePortMapping(PortMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>WSDL Port Type</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>WSDL Port Type</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLPortType(WSDLPortType object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>WSDL Binding</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>WSDL Binding</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLBinding(WSDLBinding object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Service Endpoint Method Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Service Endpoint Method Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseServiceEndpointMethodMapping(ServiceEndpointMethodMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>WSDL Operation</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>WSDL Operation</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLOperation(WSDLOperation object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Method Param Parts Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Method Param Parts Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMethodParamPartsMapping(MethodParamPartsMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>WSDL Return Value Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>WSDL Return Value Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLReturnValueMapping(WSDLReturnValueMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>WSDL Message Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>WSDL Message Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLMessageMapping(WSDLMessageMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>WSDL Message Part Name</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>WSDL Message Part Name</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLMessagePartName(WSDLMessagePartName object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Interface Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Interface Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseInterfaceMapping(InterfaceMapping object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>QName</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>QName</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseQName(QName object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //JaxrpcmapSwitch |